2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gsignond-plugin-oauth 1.0.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='gsignond-plugin-oauth'
589 PACKAGE_TARNAME='gsignond-plugin-oauth'
590 PACKAGE_VERSION='1.0.0'
591 PACKAGE_STRING='gsignond-plugin-oauth 1.0.0'
595 ac_unique_file="src/gsignond-oauth-plugin.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
644 GTK_DOC_USE_REBASE_FALSE
645 GTK_DOC_USE_REBASE_TRUE
646 GTK_DOC_USE_LIBTOOL_FALSE
647 GTK_DOC_USE_LIBTOOL_TRUE
648 GTK_DOC_BUILD_PDF_FALSE
649 GTK_DOC_BUILD_PDF_TRUE
650 GTK_DOC_BUILD_HTML_FALSE
651 GTK_DOC_BUILD_HTML_TRUE
725 INSTALL_STRIP_PROGRAM
767 program_transform_name
780 enable_option_checking
782 enable_dependency_tracking
797 ac_precious_vars='build_alias
819 # Initialize some variables set by options.
821 ac_init_version=false
822 ac_unrecognized_opts=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name=s,x,x,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
936 eval enable_$ac_useropt=no ;;
938 -docdir | --docdir | --docdi | --doc | --do)
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
962 eval enable_$ac_useropt=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1126 -site=* | --site=* | --sit=*)
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1166 eval with_$ac_useropt=\$ac_optarg ;;
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1182 eval with_$ac_useropt=no ;;
1185 # Obsolete; use --with-x.
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1217 # FIXME: should be removed in autoconf 3.0.
1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1253 # Be sure to have absolute directory names.
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1266 target=$target_alias
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 elif test "x$build_alias" != "x$host_alias"; then
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280 test "$silent" = yes && exec 6>/dev/null
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error $? "working directory cannot be determined"
1287 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error $? "pwd does not report name of working directory"
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300 $as_echo X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1323 ac_srcdir_defaulted=no
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 # Report the --help message.
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1357 \`configure' configures gsignond-plugin-oauth 1.0.0 to adapt to many kinds of systems.
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1364 Defaults for the options are specified in brackets.
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print \`checking ...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1388 For better control, use the options below.
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --libdir=DIR object code libraries [EPREFIX/lib]
1398 --includedir=DIR C header files [PREFIX/include]
1399 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1402 --infodir=DIR info documentation [DATAROOTDIR/info]
1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1404 --mandir=DIR man documentation [DATAROOTDIR/man]
1405 --docdir=DIR documentation root
1406 [DATAROOTDIR/doc/gsignond-plugin-oauth]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 if test -n "$ac_init_help"; then
1427 case $ac_init_help in
1428 short | recursive ) echo "Configuration of gsignond-plugin-oauth 1.0.0:";;
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-silent-rules less verbose build output (undo: "make V=1")
1437 --disable-silent-rules verbose build output (undo: "make V=0")
1438 --enable-dependency-tracking
1439 do not reject slow dependency extractors
1440 --disable-dependency-tracking
1441 speeds up one-time build
1442 --enable-static[=PKGS] build static libraries [default=no]
1443 --enable-shared[=PKGS] build shared libraries [default=yes]
1444 --enable-fast-install[=PKGS]
1445 optimize for fast installation [default=yes]
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1447 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1448 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1449 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1450 --enable-coverage compile with coverage info
1451 --enable-distcheck build for distcheck target
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1459 --with-sysroot=DIR Search for dependent libraries within DIR
1460 (or the compiler's sysroot if not specified).
1461 --with-html-dir=PATH path to installed docs
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1472 PKG_CONFIG path to pkg-config utility
1474 directories to add to pkg-config's search path
1476 path overriding pkg-config's built-in search path
1478 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1480 linker flags for GTKDOC_DEPS, overriding pkg-config
1482 C compiler flags for GSIGNON, overriding pkg-config
1484 linker flags for GSIGNON, overriding pkg-config
1486 C compiler flags for LIBSOUP, overriding pkg-config
1488 linker flags for LIBSOUP, overriding pkg-config
1490 C compiler flags for CHECK, overriding pkg-config
1491 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1496 Report bugs to the package provider.
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1526 .) # We are building in place.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1559 gsignond-plugin-oauth configure 1.0.0
1560 generated by GNU Autoconf 2.69
1562 Copyright (C) 2012 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1609 } # ac_fn_c_try_compile
1611 # ac_fn_c_try_link LINENO
1612 # -----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded.
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext conftest$ac_exeext
1618 if { { ac_try="$ac_link"
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>conftest.err
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest$ac_exeext && {
1637 test "$cross_compiling" = yes ||
1638 test -x conftest$ac_exeext
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649 # interfere with the next link command; also delete a directory that is
1650 # left behind by Apple's compiler. We do this before executing the actions.
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1655 } # ac_fn_c_try_link
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \${$3+:} false; then :
1667 $as_echo_n "(cached) " >&6
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1674 if ac_fn_c_try_compile "$LINENO"; then :
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 } # ac_fn_c_check_header_compile
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1759 ac_retval=$ac_status
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1767 # ac_fn_c_check_func LINENO FUNC VAR
1768 # ----------------------------------
1769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770 ac_fn_c_check_func ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782 #define $2 innocuous_$2
1784 /* System header to define __stub macros and hopefully few prototypes,
1785 which can conflict with char $2 (); below.
1786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787 <limits.h> exists even on freestanding compilers. */
1790 # include <limits.h>
1792 # include <assert.h>
1797 /* Override any GCC internal prototype to avoid an error.
1798 Use char because int might match the return type of a GCC
1799 builtin and then its argument prototype would still apply. */
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined __stub_$2 || defined __stub___$2
1819 if ac_fn_c_try_link "$LINENO"; then :
1824 rm -f core conftest.err conftest.$ac_objext \
1825 conftest$ac_exeext conftest.$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 } # ac_fn_c_check_func
1833 cat >config.log <<_ACEOF
1834 This file contains any messages produced by compilers while
1835 running configure, to aid debugging if configure makes a mistake.
1837 It was created by gsignond-plugin-oauth $as_me 1.0.0, which was
1838 generated by GNU Autoconf 2.69. Invocation command line was
1850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 test -z "$as_dir" && as_dir=.
1874 $as_echo "PATH: $as_dir"
1890 # Keep a trace of the command line.
1891 # Strip out --no-create and --no-recursion so they do not pile up.
1892 # Strip out --silent because we don't want to record it for future runs.
1893 # Also quote any args containing shell meta-characters.
1894 # Make two passes to allow for proper duplicate-argument suppression.
1898 ac_must_keep_next=false
1904 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1906 | -silent | --silent | --silen | --sile | --sil)
1909 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1914 as_fn_append ac_configure_args1 " '$ac_arg'"
1915 if test $ac_must_keep_next = true; then
1916 ac_must_keep_next=false # Got value, back to normal.
1919 *=* | --config-cache | -C | -disable-* | --disable-* \
1920 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1921 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1922 | -with-* | --with-* | -without-* | --without-* | --x)
1923 case "$ac_configure_args0 " in
1924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927 -* ) ac_must_keep_next=true ;;
1930 as_fn_append ac_configure_args " '$ac_arg'"
1935 { ac_configure_args0=; unset ac_configure_args0;}
1936 { ac_configure_args1=; unset ac_configure_args1;}
1938 # When interrupted or exit'd, cleanup temporary files, and complete
1939 # config.log. We remove comments because anyway the quotes in there
1940 # would cause problems or look ugly.
1941 # WARNING: Use '\'' to represent an apostrophe within the trap.
1942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1943 trap 'exit_status=$?
1944 # Save into config.log some information that might help in debugging.
1948 $as_echo "## ---------------- ##
1949 ## Cache variables. ##
1950 ## ---------------- ##"
1952 # The following way of writing the cache mishandles newlines in values,
1954 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1955 eval ac_val=\$$ac_var
1959 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1963 _ | IFS | as_nl) ;; #(
1964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1965 *) { eval $ac_var=; unset $ac_var;} ;;
1970 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1971 *${as_nl}ac_space=\ *)
1973 "s/'\''/'\''\\\\'\'''\''/g;
1974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1984 $as_echo "## ----------------- ##
1985 ## Output variables. ##
1986 ## ----------------- ##"
1988 for ac_var in $ac_subst_vars
1990 eval ac_val=\$$ac_var
1992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 $as_echo "$ac_var='\''$ac_val'\''"
1998 if test -n "$ac_subst_files"; then
1999 $as_echo "## ------------------- ##
2000 ## File substitutions. ##
2001 ## ------------------- ##"
2003 for ac_var in $ac_subst_files
2005 eval ac_val=\$$ac_var
2007 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009 $as_echo "$ac_var='\''$ac_val'\''"
2014 if test -s confdefs.h; then
2015 $as_echo "## ----------- ##
2022 test "$ac_signal" != 0 &&
2023 $as_echo "$as_me: caught signal $ac_signal"
2024 $as_echo "$as_me: exit $exit_status"
2026 rm -f core *.core core.conftest.* &&
2027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2030 for ac_signal in 1 2 13 15; do
2031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2035 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2036 rm -f -r conftest* confdefs.h
2038 $as_echo "/* confdefs.h */" > confdefs.h
2040 # Predefined preprocessor variables.
2042 cat >>confdefs.h <<_ACEOF
2043 #define PACKAGE_NAME "$PACKAGE_NAME"
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_STRING "$PACKAGE_STRING"
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_URL "$PACKAGE_URL"
2067 # Let the site file select an alternate cache file if it wants to.
2068 # Prefer an explicitly selected file to automatically selected ones.
2071 if test -n "$CONFIG_SITE"; then
2072 # We do not want a PATH search for config.site.
2073 case $CONFIG_SITE in #((
2074 -*) ac_site_file1=./$CONFIG_SITE;;
2075 */*) ac_site_file1=$CONFIG_SITE;;
2076 *) ac_site_file1=./$CONFIG_SITE;;
2078 elif test "x$prefix" != xNONE; then
2079 ac_site_file1=$prefix/share/config.site
2080 ac_site_file2=$prefix/etc/config.site
2082 ac_site_file1=$ac_default_prefix/share/config.site
2083 ac_site_file2=$ac_default_prefix/etc/config.site
2085 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2087 test "x$ac_site_file" = xNONE && continue
2088 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2090 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2091 sed 's/^/| /' "$ac_site_file" >&5
2093 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2095 as_fn_error $? "failed to load site script $ac_site_file
2096 See \`config.log' for more details" "$LINENO" 5; }
2100 if test -r "$cache_file"; then
2101 # Some versions of bash will fail to source /dev/null (special files
2102 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2103 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2105 $as_echo "$as_me: loading cache $cache_file" >&6;}
2107 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2108 *) . "./$cache_file";;
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2113 $as_echo "$as_me: creating cache $cache_file" >&6;}
2117 # Check that the precious variables saved in the cache have kept the same
2119 ac_cache_corrupted=false
2120 for ac_var in $ac_precious_vars; do
2121 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2122 eval ac_new_set=\$ac_env_${ac_var}_set
2123 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2124 eval ac_new_val=\$ac_env_${ac_var}_value
2125 case $ac_old_set,$ac_new_set in
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2128 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2129 ac_cache_corrupted=: ;;
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2132 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2133 ac_cache_corrupted=: ;;
2136 if test "x$ac_old_val" != "x$ac_new_val"; then
2137 # differences in whitespace do not lead to failure.
2138 ac_old_val_w=`echo x $ac_old_val`
2139 ac_new_val_w=`echo x $ac_new_val`
2140 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2142 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2143 ac_cache_corrupted=:
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2146 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2147 eval $ac_var=\$ac_old_val
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2150 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2152 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2155 # Pass precious variables to config.status.
2156 if test "$ac_new_set" = set; then
2158 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2159 *) ac_arg=$ac_var=$ac_new_val ;;
2161 case " $ac_configure_args " in
2162 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2163 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2167 if $ac_cache_corrupted; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2171 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2172 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2174 ## -------------------- ##
2175 ## Main body of script. ##
2176 ## -------------------- ##
2179 ac_cpp='$CPP $CPPFLAGS'
2180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186 ac_config_headers="$ac_config_headers config.h"
2189 for ac_dir in build-aux "$srcdir"/build-aux; do
2190 if test -f "$ac_dir/install-sh"; then
2192 ac_install_sh="$ac_aux_dir/install-sh -c"
2194 elif test -f "$ac_dir/install.sh"; then
2196 ac_install_sh="$ac_aux_dir/install.sh -c"
2198 elif test -f "$ac_dir/shtool"; then
2200 ac_install_sh="$ac_aux_dir/shtool install -c"
2204 if test -z "$ac_aux_dir"; then
2205 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2208 # These three variables are undocumented and unsupported,
2209 # and are intended to be withdrawn in a future Autoconf release.
2210 # They can cause serious problems if a builder's source tree is in a directory
2211 # whose full name contains unusual characters.
2212 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2213 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2214 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2219 am__api_version='1.14'
2221 # Find a good install program. We prefer a C program (faster),
2222 # so one script is as good as another. But avoid the broken or
2223 # incompatible versions:
2224 # SysV /etc/install, /usr/sbin/install
2225 # SunOS /usr/etc/install
2226 # IRIX /sbin/install
2228 # AmigaOS /C/install, which installs bootblocks on floppy discs
2229 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2232 # OS/2's system install, which has a completely different semantic
2233 # ./install, which can be erroneously created by make from ./install.sh.
2234 # Reject install programs that cannot install multiple files.
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2236 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2237 if test -z "$INSTALL"; then
2238 if ${ac_cv_path_install+:} false; then :
2239 $as_echo_n "(cached) " >&6
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 # Account for people who put trailing slashes in PATH elements.
2247 case $as_dir/ in #((
2248 ./ | .// | /[cC]/* | \
2249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2250 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2253 # OSF1 and SCO ODT 3.0 have their own names for install.
2254 # Don't use installbsd from OSF since it installs stuff as root
2256 for ac_prog in ginstall scoinst install; do
2257 for ac_exec_ext in '' $ac_executable_extensions; do
2258 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2259 if test $ac_prog = install &&
2260 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2261 # AIX install. It has an incompatible calling convention.
2263 elif test $ac_prog = install &&
2264 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2265 # program-specific install script used by HP pwplus--don't use.
2268 rm -rf conftest.one conftest.two conftest.dir
2269 echo one > conftest.one
2270 echo two > conftest.two
2272 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2273 test -s conftest.one && test -s conftest.two &&
2274 test -s conftest.dir/conftest.one &&
2275 test -s conftest.dir/conftest.two
2277 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2290 rm -rf conftest.one conftest.two conftest.dir
2293 if test "${ac_cv_path_install+set}" = set; then
2294 INSTALL=$ac_cv_path_install
2296 # As a last resort, use the slow shell script. Don't cache a
2297 # value for INSTALL within a source directory, because that will
2298 # break other packages using the cache if that directory is
2299 # removed, or if the value is a relative name.
2300 INSTALL=$ac_install_sh
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2304 $as_echo "$INSTALL" >&6; }
2306 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2307 # It thinks the first close brace ends the variable substitution.
2308 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2310 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2312 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2315 $as_echo_n "checking whether build environment is sane... " >&6; }
2316 # Reject unsafe characters in $srcdir or the absolute working directory
2317 # name. Accept space and tab only in the latter.
2321 *[\\\"\#\$\&\'\`$am_lf]*)
2322 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2325 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2326 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2329 # Do 'set' in a subshell so we don't clobber the current shell's
2330 # arguments. Must try -L first in case configure is actually a
2331 # symlink; some systems play weird games with the mod time of symlinks
2332 # (eg FreeBSD returns the mod time of the symlink's containing
2336 for am_try in 1 2; do
2337 echo "timestamp, slept: $am_has_slept" > conftest.file
2338 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2339 if test "$*" = "X"; then
2341 set X `ls -t "$srcdir/configure" conftest.file`
2343 if test "$*" != "X $srcdir/configure conftest.file" \
2344 && test "$*" != "X conftest.file $srcdir/configure"; then
2346 # If neither matched, then we have a broken ls. This can happen
2347 # if, for instance, CONFIG_SHELL is bash and it inherits a
2348 # broken ls alias from the environment. This has actually
2349 # happened. Such a system could not be considered "sane".
2350 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2351 alias in your environment" "$LINENO" 5
2353 if test "$2" = conftest.file || test $am_try -eq 2; then
2360 test "$2" = conftest.file
2366 as_fn_error $? "newly created file is older than distributed files!
2367 Check your system clock" "$LINENO" 5
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2370 $as_echo "yes" >&6; }
2371 # If we didn't sleep, we still need to ensure time stamps of config.status and
2372 # generated files are strictly newer.
2374 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2381 test "$program_prefix" != NONE &&
2382 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2383 # Use a double $ so make ignores it.
2384 test "$program_suffix" != NONE &&
2385 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2386 # Double any \ or $.
2387 # By default was `s,x,x', remove it if useless.
2388 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2389 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2391 # expand $ac_aux_dir to an absolute path
2392 am_aux_dir=`cd $ac_aux_dir && pwd`
2394 if test x"${MISSING+set}" != xset; then
2397 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2399 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2402 # Use eval to expand $SHELL
2403 if eval "$MISSING --is-lightweight"; then
2404 am_missing_run="$MISSING "
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2408 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2411 if test x"${install_sh}" != xset; then
2414 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2416 install_sh="\${SHELL} $am_aux_dir/install-sh"
2420 # Installed binaries are usually stripped using 'strip' when the user
2421 # run "make install-strip". However 'strip' might not be the right
2422 # tool to use in cross-compilation environments, therefore Automake
2423 # will honor the 'STRIP' environment variable to overrule this program.
2424 if test "$cross_compiling" != no; then
2425 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}strip; ac_word=$2
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2429 $as_echo_n "checking for $ac_word... " >&6; }
2430 if ${ac_cv_prog_STRIP+:} false; then :
2431 $as_echo_n "(cached) " >&6
2433 if test -n "$STRIP"; then
2434 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 STRIP=$ac_cv_prog_STRIP
2454 if test -n "$STRIP"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2456 $as_echo "$STRIP" >&6; }
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459 $as_echo "no" >&6; }
2464 if test -z "$ac_cv_prog_STRIP"; then
2466 # Extract the first word of "strip", so it can be a program name with args.
2467 set dummy strip; ac_word=$2
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2471 $as_echo_n "(cached) " >&6
2473 if test -n "$ac_ct_STRIP"; then
2474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2483 ac_cv_prog_ac_ct_STRIP="strip"
2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2494 if test -n "$ac_ct_STRIP"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2496 $as_echo "$ac_ct_STRIP" >&6; }
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499 $as_echo "no" >&6; }
2502 if test "x$ac_ct_STRIP" = x; then
2505 case $cross_compiling:$ac_tool_warned in
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2509 ac_tool_warned=yes ;;
2514 STRIP="$ac_cv_prog_STRIP"
2518 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2521 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2522 if test -z "$MKDIR_P"; then
2523 if ${ac_cv_path_mkdir+:} false; then :
2524 $as_echo_n "(cached) " >&6
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2530 test -z "$as_dir" && as_dir=.
2531 for ac_prog in mkdir gmkdir; do
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2534 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2535 'mkdir (GNU coreutils) '* | \
2536 'mkdir (coreutils) '* | \
2537 'mkdir (fileutils) '4.1*)
2538 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2548 test -d ./--version && rmdir ./--version
2549 if test "${ac_cv_path_mkdir+set}" = set; then
2550 MKDIR_P="$ac_cv_path_mkdir -p"
2552 # As a last resort, use the slow shell script. Don't cache a
2553 # value for MKDIR_P within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the value is a relative name.
2556 MKDIR_P="$ac_install_sh -d"
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2560 $as_echo "$MKDIR_P" >&6; }
2562 for ac_prog in gawk mawk nawk awk
2564 # Extract the first word of "$ac_prog", so it can be a program name with args.
2565 set dummy $ac_prog; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if ${ac_cv_prog_AWK+:} false; then :
2569 $as_echo_n "(cached) " >&6
2571 if test -n "$AWK"; then
2572 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2581 ac_cv_prog_AWK="$ac_prog"
2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 if test -n "$AWK"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2594 $as_echo "$AWK" >&6; }
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2601 test -n "$AWK" && break
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2605 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2607 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2608 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2609 $as_echo_n "(cached) " >&6
2611 cat >conftest.make <<\_ACEOF
2614 @echo '@@@%%%=$(MAKE)=@@@%%%'
2616 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2617 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2619 eval ac_cv_prog_make_${ac_make}_set=yes;;
2621 eval ac_cv_prog_make_${ac_make}_set=no;;
2625 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2632 SET_MAKE="MAKE=${MAKE-make}"
2635 rm -rf .tst 2>/dev/null
2636 mkdir .tst 2>/dev/null
2637 if test -d .tst; then
2642 rmdir .tst 2>/dev/null
2644 # Check whether --enable-silent-rules was given.
2645 if test "${enable_silent_rules+set}" = set; then :
2646 enableval=$enable_silent_rules;
2649 case $enable_silent_rules in # (((
2650 yes) AM_DEFAULT_VERBOSITY=0;;
2651 no) AM_DEFAULT_VERBOSITY=1;;
2652 *) AM_DEFAULT_VERBOSITY=1;;
2654 am_make=${MAKE-make}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2656 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2657 if ${am_cv_make_support_nested_variables+:} false; then :
2658 $as_echo_n "(cached) " >&6
2660 if $as_echo 'TRUE=$(BAR$(V))
2666 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2667 am_cv_make_support_nested_variables=yes
2669 am_cv_make_support_nested_variables=no
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2673 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2674 if test $am_cv_make_support_nested_variables = yes; then
2676 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2678 AM_V=$AM_DEFAULT_VERBOSITY
2679 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2683 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2684 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2685 # is not polluted with repeated "-I."
2686 am__isrc=' -I$(srcdir)'
2687 # test to see if srcdir already configured
2688 if test -f $srcdir/config.status; then
2689 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2693 # test whether we have cygpath
2694 if test -z "$CYGPATH_W"; then
2695 if (cygpath --version) >/dev/null 2>/dev/null; then
2696 CYGPATH_W='cygpath -w'
2703 # Define the identity of the package.
2704 PACKAGE='gsignond-plugin-oauth'
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE "$PACKAGE"
2713 cat >>confdefs.h <<_ACEOF
2714 #define VERSION "$VERSION"
2717 # Some tools Automake needs.
2719 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2722 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2725 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2728 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2731 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2733 # For better backward compatibility. To be removed once Automake 1.9.x
2734 # dies out for good. For more background, see:
2735 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2736 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2737 mkdir_p='$(MKDIR_P)'
2739 # We need awk for the "check" target. The system "awk" is bad on
2741 # Always define AMTAR for backward compatibility. Yes, it's still used
2742 # in the wild :-( We should find a proper way to deprecate it ...
2746 # We'll loop over all known methods to create a tar archive until one works.
2747 _am_tools='gnutar pax cpio none'
2749 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2756 # POSIX will say in a future version that running "rm -f" with no argument
2757 # is OK; and we want to be able to make that assumption in our Makefile
2758 # recipes. So use an aggressive probe to check that the usage we want is
2759 # actually supported "in the wild" to an acceptable degree.
2760 # See automake bug#10828.
2761 # To make any issue more visible, cause the running configure to be aborted
2762 # by default if the 'rm' program in use doesn't match our expectations; the
2763 # user can still override this though.
2764 if rm -f && rm -fr && rm -rf; then : OK; else
2768 Your 'rm' program seems unable to run without file operands specified
2769 on the command line, even when the '-f' option is present. This is contrary
2770 to the behaviour of most rm programs out there, and not conforming with
2771 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2773 Please tell bug-automake@gnu.org about your system, including the value
2774 of your $PATH and any error possibly output before this message. This
2775 can help us improve future automake versions.
2778 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2779 echo 'Configuration will proceed anyway, since you have set the' >&2
2780 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2784 Aborting the configuration process, to ensure you take notice of the issue.
2786 You can download and install GNU coreutils to get an 'rm' implementation
2787 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2789 If you want to complete the configuration process using your problematic
2790 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2791 to "yes", and re-run configure.
2794 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2799 # Checks for programs.
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 if test -n "$CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836 $as_echo "$CC" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2844 if test -z "$ac_cv_prog_CC"; then
2846 # Extract the first word of "gcc", so it can be a program name with args.
2847 set dummy gcc; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2851 $as_echo_n "(cached) " >&6
2853 if test -n "$ac_ct_CC"; then
2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_ac_ct_CC="gcc"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2874 if test -n "$ac_ct_CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2876 $as_echo "$ac_ct_CC" >&6; }
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2882 if test "x$ac_ct_CC" = x; then
2885 case $cross_compiling:$ac_tool_warned in
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2889 ac_tool_warned=yes ;;
2897 if test -z "$CC"; then
2898 if test -n "$ac_tool_prefix"; then
2899 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2900 set dummy ${ac_tool_prefix}cc; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_CC+:} false; then :
2904 $as_echo_n "(cached) " >&6
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916 ac_cv_prog_CC="${ac_tool_prefix}cc"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 if test -n "$CC"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929 $as_echo "$CC" >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2938 if test -z "$CC"; then
2939 # Extract the first word of "cc", so it can be a program name with args.
2940 set dummy cc; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_CC+:} false; then :
2944 $as_echo_n "(cached) " >&6
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2958 ac_prog_rejected=yes
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 if test $ac_prog_rejected = yes; then
2970 # We found a bogon in the path, so make sure we never use it.
2971 set dummy $ac_cv_prog_CC
2973 if test $# != 0; then
2974 # We chose a different compiler from the bogus one.
2975 # However, it has the same basename, so the bogon will be chosen
2976 # first if we set CC to just the basename; use the full file name.
2978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2994 if test -z "$CC"; then
2995 if test -n "$ac_tool_prefix"; then
2996 for ac_prog in cl.exe
2998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_CC+:} false; then :
3003 $as_echo_n "(cached) " >&6
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 if test -n "$CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3035 test -n "$CC" && break
3038 if test -z "$CC"; then
3040 for ac_prog in cl.exe
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy $ac_prog; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3047 $as_echo_n "(cached) " >&6
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_ac_ct_CC="$ac_prog"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3072 $as_echo "$ac_ct_CC" >&6; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3079 test -n "$ac_ct_CC" && break
3082 if test "x$ac_ct_CC" = x; then
3085 case $cross_compiling:$ac_tool_warned in
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089 ac_tool_warned=yes ;;
3098 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100 as_fn_error $? "no acceptable C compiler found in \$PATH
3101 See \`config.log' for more details" "$LINENO" 5; }
3103 # Provide some information about the compiler.
3104 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3107 for ac_option in --version -v -V -qversion; do
3108 { { ac_try="$ac_compiler $ac_option >&5"
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3117 if test -s conftest.err; then
3119 ... rest of stderr output deleted ...
3120 10q' conftest.err >conftest.er1
3121 cat conftest.er1 >&5
3123 rm -f conftest.er1 conftest.err
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3139 ac_clean_files_save=$ac_clean_files
3140 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3141 # Try to create an executable without -o first, disregard a.out.
3142 # It will help us diagnose broken compilers, and finding out an intuition
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3145 $as_echo_n "checking whether the C compiler works... " >&6; }
3146 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3148 # The possible output files:
3149 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3152 for ac_file in $ac_files
3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3161 if { { ac_try="$ac_link_default"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_link_default") 2>&5
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; then :
3172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3174 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3175 # so that the user can short-circuit this test for compilers unknown to
3177 for ac_file in $ac_files ''
3179 test -f "$ac_file" || continue
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3184 # We found the default executable, but exeext='' is most
3188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3192 # We set ac_cv_exeext here because the later test for it is not
3193 # safe: cross compilers may not add the suffix if given an `-o'
3194 # argument, so we may need to know it at that point already.
3195 # Even if this section looks crufty: it has the advantage of
3202 test "$ac_cv_exeext" = no && ac_cv_exeext=
3207 if test -z "$ac_file"; then :
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 $as_echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error 77 "C compiler cannot create executables
3216 See \`config.log' for more details" "$LINENO" 5; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219 $as_echo "yes" >&6; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3222 $as_echo_n "checking for C compiler default output file name... " >&6; }
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3224 $as_echo "$ac_file" >&6; }
3225 ac_exeext=$ac_cv_exeext
3227 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3228 ac_clean_files=$ac_clean_files_save
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3230 $as_echo_n "checking for suffix of executables... " >&6; }
3231 if { { ac_try="$ac_link"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_link") 2>&5
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }; then :
3242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3243 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3244 # work properly (i.e., refer to `conftest.exe'), while it won't with
3246 for ac_file in conftest.exe conftest conftest.*; do
3247 test -f "$ac_file" || continue
3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3259 See \`config.log' for more details" "$LINENO" 5; }
3261 rm -f conftest conftest$ac_cv_exeext
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3263 $as_echo "$ac_cv_exeext" >&6; }
3265 rm -f conftest.$ac_ext
3266 EXEEXT=$ac_cv_exeext
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3274 FILE *f = fopen ("conftest.out", "w");
3275 return ferror (f) || fclose (f) != 0;
3281 ac_clean_files="$ac_clean_files conftest.out"
3282 # Check that the compiler produces executables we can run. If not, either
3283 # the compiler is broken, or we cross compile.
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3285 $as_echo_n "checking whether we are cross compiling... " >&6; }
3286 if test "$cross_compiling" != yes; then
3287 { { ac_try="$ac_link"
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_link") 2>&5
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }
3298 if { ac_try='./conftest$ac_cv_exeext'
3299 { { case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304 $as_echo "$ac_try_echo"; } >&5
3305 (eval "$ac_try") 2>&5
3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308 test $ac_status = 0; }; }; then
3311 if test "$cross_compiling" = maybe; then
3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 as_fn_error $? "cannot run C compiled programs.
3317 If you meant to cross compile, use \`--host'.
3318 See \`config.log' for more details" "$LINENO" 5; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3323 $as_echo "$cross_compiling" >&6; }
3325 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3326 ac_clean_files=$ac_clean_files_save
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3328 $as_echo_n "checking for suffix of object files... " >&6; }
3329 if ${ac_cv_objext+:} false; then :
3330 $as_echo_n "(cached) " >&6
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3343 rm -f conftest.o conftest.obj
3344 if { { ac_try="$ac_compile"
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_compile") 2>&5
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }; then :
3355 for ac_file in conftest.o conftest.obj conftest.*; do
3356 test -f "$ac_file" || continue;
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error $? "cannot compute suffix of object files: cannot compile
3370 See \`config.log' for more details" "$LINENO" 5; }
3372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3375 $as_echo "$ac_cv_objext" >&6; }
3376 OBJEXT=$ac_cv_objext
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3379 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3380 if ${ac_cv_c_compiler_gnu+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3397 if ac_fn_c_try_compile "$LINENO"; then :
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3407 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3408 if test $ac_compiler_gnu = yes; then
3413 ac_test_CFLAGS=${CFLAGS+set}
3414 ac_save_CFLAGS=$CFLAGS
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3416 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3417 if ${ac_cv_prog_cc_g+:} false; then :
3418 $as_echo_n "(cached) " >&6
3420 ac_save_c_werror_flag=$ac_c_werror_flag
3421 ac_c_werror_flag=yes
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3435 if ac_fn_c_try_compile "$LINENO"; then :
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3450 if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_c_werror_flag=$ac_save_c_werror_flag
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3466 if ac_fn_c_try_compile "$LINENO"; then :
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3477 $as_echo "$ac_cv_prog_cc_g" >&6; }
3478 if test "$ac_test_CFLAGS" = set; then
3479 CFLAGS=$ac_save_CFLAGS
3480 elif test $ac_cv_prog_cc_g = yes; then
3481 if test "$GCC" = yes; then
3487 if test "$GCC" = yes; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3494 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3495 if ${ac_cv_prog_cc_c89+:} false; then :
3496 $as_echo_n "(cached) " >&6
3498 ac_cv_prog_cc_c89=no
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3505 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3506 struct buf { int x; };
3507 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3508 static char *e (p, i)
3514 static char *f (char * (*g) (char **, int), char **p, ...)
3519 s = g (p, va_arg (v,int));
3524 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3525 function prototypes and stuff, but not '\xHH' hex character constants.
3526 These don't provoke an error unfortunately, instead are silently treated
3527 as 'x'. The following induces an error, until -std is added to get
3528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3529 array size at least. It's necessary to write '\x00'==0 to get something
3530 that's true only with -std. */
3531 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3533 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3534 inside strings and character constants. */
3536 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3538 int test (int i, double x);
3539 struct s1 {int (*f) (int a);};
3540 struct s2 {int (*f) (double a);};
3541 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3547 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3552 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3553 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3555 CC="$ac_save_CC $ac_arg"
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557 ac_cv_prog_cc_c89=$ac_arg
3559 rm -f core conftest.err conftest.$ac_objext
3560 test "x$ac_cv_prog_cc_c89" != "xno" && break
3562 rm -f conftest.$ac_ext
3567 case "x$ac_cv_prog_cc_c89" in
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3570 $as_echo "none needed" >&6; } ;;
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3573 $as_echo "unsupported" >&6; } ;;
3575 CC="$CC $ac_cv_prog_cc_c89"
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3577 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3579 if test "x$ac_cv_prog_cc_c89" != xno; then :
3584 ac_cpp='$CPP $CPPFLAGS'
3585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3595 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3596 if ${am_cv_prog_cc_c_o+:} false; then :
3597 $as_echo_n "(cached) " >&6
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3610 # Make sure it works both with $CC and with simple cc.
3611 # Following AC_PROG_CC_C_O, we do the test twice because some
3612 # compilers refuse to overwrite an existing .o file with -o,
3613 # though they will create one.
3614 am_cv_prog_cc_c_o=yes
3616 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3617 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } \
3621 && test -f conftest2.$ac_objext; then
3624 am_cv_prog_cc_c_o=no
3628 rm -f core conftest*
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3632 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3633 if test "$am_cv_prog_cc_c_o" != yes; then
3634 # Losing compiler, so override with the script.
3635 # FIXME: It is wrong to rewrite CC.
3636 # But if we don't then we get into trouble of one sort or another.
3637 # A longer-term fix would be to have automake use am__CC in this case,
3638 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3639 CC="$am_aux_dir/compile $CC"
3642 ac_cpp='$CPP $CPPFLAGS'
3643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 DEPDIR="${am__leading_dot}deps"
3649 ac_config_commands="$ac_config_commands depfiles"
3652 am_make=${MAKE-make}
3653 cat > confinc << 'END'
3655 @echo this is the am__doit target
3658 # If we don't find an include directive, just comment out the code.
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3660 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3664 # First try GNU make style include.
3665 echo "include confinc" > confmf
3666 # Ignore all kinds of additional output from 'make'.
3667 case `$am_make -s -f confmf 2> /dev/null` in #(
3668 *the\ am__doit\ target*)
3674 # Now try BSD make style include.
3675 if test "$am__include" = "#"; then
3676 echo '.include "confinc"' > confmf
3677 case `$am_make -s -f confmf 2> /dev/null` in #(
3678 *the\ am__doit\ target*)
3679 am__include=.include
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3688 $as_echo "$_am_result" >&6; }
3689 rm -f confinc confmf
3691 # Check whether --enable-dependency-tracking was given.
3692 if test "${enable_dependency_tracking+set}" = set; then :
3693 enableval=$enable_dependency_tracking;
3696 if test "x$enable_dependency_tracking" != xno; then
3697 am_depcomp="$ac_aux_dir/depcomp"
3701 if test "x$enable_dependency_tracking" != xno; then
3711 depcc="$CC" am_compiler_list=
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3714 $as_echo_n "checking dependency style of $depcc... " >&6; }
3715 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3716 $as_echo_n "(cached) " >&6
3718 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3719 # We make a subdir and do the tests there. Otherwise we can end up
3720 # making bogus files that we don't know about and never remove. For
3721 # instance it was reported that on HP-UX the gcc test will end up
3722 # making a dummy file named 'D' -- because '-MD' means "put the output
3726 # Copy depcomp to subdir because otherwise we won't find it if we're
3727 # using a relative directory.
3728 cp "$am_depcomp" conftest.dir
3730 # We will build objects and dependencies in a subdirectory because
3731 # it helps to detect inapplicable dependency modes. For instance
3732 # both Tru64's cc and ICC support -MD to output dependencies as a
3733 # side effect of compilation, but ICC will put the dependencies in
3734 # the current directory while Tru64 will put them in the object
3738 am_cv_CC_dependencies_compiler_type=none
3739 if test "$am_compiler_list" = ""; then
3740 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3743 case " $depcc " in #(
3744 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3747 for depmode in $am_compiler_list; do
3748 # Setup a source with many dependencies, because some compilers
3749 # like to wrap large dependency lists on column 80 (with \), and
3750 # we should not choose a depcomp mode which is confused by this.
3752 # We need to recreate these files for each test, as the compiler may
3753 # overwrite some of them when testing with obscure command lines.
3754 # This happens at least with the AIX C compiler.
3756 for i in 1 2 3 4 5 6; do
3757 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3758 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3759 # Solaris 10 /bin/sh.
3760 echo '/* dummy */' > sub/conftst$i.h
3762 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3764 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3765 # mode. It turns out that the SunPro C++ compiler does not properly
3766 # handle '-M -o', and we need to detect this. Also, some Intel
3767 # versions had trouble with output in subdirs.
3768 am__obj=sub/conftest.${OBJEXT-o}
3769 am__minus_obj="-o $am__obj"
3772 # This depmode causes a compiler race in universal mode.
3773 test "$am__universal" = false || continue
3776 # After this tag, mechanisms are not by side-effect, so they'll
3777 # only be used when explicitly requested.
3778 if test "x$enable_dependency_tracking" = xyes; then
3784 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3785 # This compiler won't grok '-c -o', but also, the minuso test has
3786 # not run yet. These depmodes are late enough in the game, and
3787 # so weak that their functioning should not be impacted.
3788 am__obj=conftest.${OBJEXT-o}
3793 if depmode=$depmode \
3794 source=sub/conftest.c object=$am__obj \
3795 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3796 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3797 >/dev/null 2>conftest.err &&
3798 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3800 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3802 # icc doesn't choke on unknown options, it will just issue warnings
3803 # or remarks (even with -Werror). So we grep stderr for any message
3804 # that says an option was ignored or not supported.
3805 # When given -MP, icc 7.0 and 7.1 complain thusly:
3806 # icc: Command line warning: ignoring option '-M'; no argument required
3807 # The diagnosis changed in icc 8.0:
3808 # icc: Command line remark: option '-MP' not supported
3809 if (grep 'ignoring option' conftest.err ||
3810 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3811 am_cv_CC_dependencies_compiler_type=$depmode
3820 am_cv_CC_dependencies_compiler_type=none
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3825 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3826 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3829 test "x$enable_dependency_tracking" != xno \
3830 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3832 am__fastdepCC_FALSE='#'
3834 am__fastdepCC_TRUE='#'
3835 am__fastdepCC_FALSE=
3840 if test -n "$ac_tool_prefix"; then
3841 for ac_prog in ar lib "link -lib"
3843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_prog_AR+:} false; then :
3848 $as_echo_n "(cached) " >&6
3850 if test -n "$AR"; then
3851 ac_cv_prog_AR="$AR" # Let the user override the test.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 if test -n "$AR"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3873 $as_echo "$AR" >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3880 test -n "$AR" && break
3883 if test -z "$AR"; then
3885 for ac_prog in ar lib "link -lib"
3887 # Extract the first word of "$ac_prog", so it can be a program name with args.
3888 set dummy $ac_prog; ac_word=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3892 $as_echo_n "(cached) " >&6
3894 if test -n "$ac_ct_AR"; then
3895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904 ac_cv_prog_ac_ct_AR="$ac_prog"
3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3915 if test -n "$ac_ct_AR"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3917 $as_echo "$ac_ct_AR" >&6; }
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920 $as_echo "no" >&6; }
3924 test -n "$ac_ct_AR" && break
3927 if test "x$ac_ct_AR" = x; then
3930 case $cross_compiling:$ac_tool_warned in
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3934 ac_tool_warned=yes ;;
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3943 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3944 if ${am_cv_ar_interface+:} false; then :
3945 $as_echo_n "(cached) " >&6
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953 am_cv_ar_interface=ar
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 int some_variable = 0;
3958 if ac_fn_c_try_compile "$LINENO"; then :
3959 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3961 (eval $am_ar_try) 2>&5
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3965 if test "$ac_status" -eq 0; then
3966 am_cv_ar_interface=ar
3968 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3970 (eval $am_ar_try) 2>&5
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }
3974 if test "$ac_status" -eq 0; then
3975 am_cv_ar_interface=lib
3977 am_cv_ar_interface=unknown
3980 rm -f conftest.lib libconftest.a
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3992 $as_echo "$am_cv_ar_interface" >&6; }
3994 case $am_cv_ar_interface in
3998 # Microsoft lib, so override with the ar-lib wrapper script.
3999 # FIXME: It is wrong to rewrite AR.
4000 # But if we don't then we get into trouble of one sort or another.
4001 # A longer-term fix would be to have automake use am__AR in this case,
4002 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4004 AR="$am_aux_dir/ar-lib $AR"
4007 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4017 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4022 macro_version='2.4.2'
4023 macro_revision='1.3337'
4037 ltmain="$ac_aux_dir/ltmain.sh"
4039 # Make sure we can run config.sub.
4040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4041 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4044 $as_echo_n "checking build system type... " >&6; }
4045 if ${ac_cv_build+:} false; then :
4046 $as_echo_n "(cached) " >&6
4048 ac_build_alias=$build_alias
4049 test "x$ac_build_alias" = x &&
4050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4051 test "x$ac_build_alias" = x &&
4052 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4054 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4058 $as_echo "$ac_cv_build" >&6; }
4059 case $ac_cv_build in
4061 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4064 ac_save_IFS=$IFS; IFS='-'
4070 # Remember, the first character of IFS is used to create $*,
4071 # except with old shells:
4074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4078 $as_echo_n "checking host system type... " >&6; }
4079 if ${ac_cv_host+:} false; then :
4080 $as_echo_n "(cached) " >&6
4082 if test "x$host_alias" = x; then
4083 ac_cv_host=$ac_cv_build
4085 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4086 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4091 $as_echo "$ac_cv_host" >&6; }
4094 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4097 ac_save_IFS=$IFS; IFS='-'
4103 # Remember, the first character of IFS is used to create $*,
4104 # except with old shells:
4107 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4110 # Backslashify metacharacters that are still active within
4111 # double-quoted strings.
4112 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4114 # Same as above, but do not quote variable references.
4115 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4117 # Sed substitution to delay expansion of an escaped shell variable in a
4118 # double_quote_subst'ed string.
4119 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4121 # Sed substitution to delay expansion of an escaped single quote.
4122 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4124 # Sed substitution to avoid accidental globbing in evaled expressions
4125 no_glob_subst='s/\*/\\\*/g'
4127 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4128 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4129 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4132 $as_echo_n "checking how to print strings... " >&6; }
4133 # Test print first, because it will be a builtin if present.
4134 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4135 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4137 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4140 # Use this function as a fallback that always works.
4141 func_fallback_echo ()
4143 eval 'cat <<_LTECHO_EOF
4147 ECHO='func_fallback_echo'
4150 # func_echo_all arg...
4151 # Invoke $ECHO with all args, space-separated.
4158 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4159 $as_echo "printf" >&6; } ;;
4160 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4161 $as_echo "print -r" >&6; } ;;
4162 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4163 $as_echo "cat" >&6; } ;;
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4180 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4181 if ${ac_cv_path_SED+:} false; then :
4182 $as_echo_n "(cached) " >&6
4184 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4185 for ac_i in 1 2 3 4 5 6 7; do
4186 ac_script="$ac_script$as_nl$ac_script"
4188 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4189 { ac_script=; unset ac_script;}
4190 if test -z "$SED"; then
4191 ac_path_SED_found=false
4192 # Loop through the user's path and test for each of PROGNAME-LIST
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 test -z "$as_dir" && as_dir=.
4198 for ac_prog in sed gsed; do
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4201 as_fn_executable_p "$ac_path_SED" || continue
4202 # Check for GNU ac_path_SED and select it if it is found.
4203 # Check for GNU $ac_path_SED
4204 case `"$ac_path_SED" --version 2>&1` in
4206 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4209 $as_echo_n 0123456789 >"conftest.in"
4212 cat "conftest.in" "conftest.in" >"conftest.tmp"
4213 mv "conftest.tmp" "conftest.in"
4214 cp "conftest.in" "conftest.nl"
4215 $as_echo '' >> "conftest.nl"
4216 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4218 as_fn_arith $ac_count + 1 && ac_count=$as_val
4219 if test $ac_count -gt ${ac_path_SED_max-0}; then
4220 # Best one so far, save it but keep looking for a better one
4221 ac_cv_path_SED="$ac_path_SED"
4222 ac_path_SED_max=$ac_count
4224 # 10*(2^10) chars as input seems more than enough
4225 test $ac_count -gt 10 && break
4227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4230 $ac_path_SED_found && break 3
4235 if test -z "$ac_cv_path_SED"; then
4236 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4244 $as_echo "$ac_cv_path_SED" >&6; }
4245 SED="$ac_cv_path_SED"
4248 test -z "$SED" && SED=sed
4249 Xsed="$SED -e 1s/^X//"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4262 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4263 if ${ac_cv_path_GREP+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 if test -z "$GREP"; then
4267 ac_path_GREP_found=false
4268 # Loop through the user's path and test for each of PROGNAME-LIST
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4273 test -z "$as_dir" && as_dir=.
4274 for ac_prog in grep ggrep; do
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4277 as_fn_executable_p "$ac_path_GREP" || continue
4278 # Check for GNU ac_path_GREP and select it if it is found.
4279 # Check for GNU $ac_path_GREP
4280 case `"$ac_path_GREP" --version 2>&1` in
4282 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4285 $as_echo_n 0123456789 >"conftest.in"
4288 cat "conftest.in" "conftest.in" >"conftest.tmp"
4289 mv "conftest.tmp" "conftest.in"
4290 cp "conftest.in" "conftest.nl"
4291 $as_echo 'GREP' >> "conftest.nl"
4292 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4294 as_fn_arith $ac_count + 1 && ac_count=$as_val
4295 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4296 # Best one so far, save it but keep looking for a better one
4297 ac_cv_path_GREP="$ac_path_GREP"
4298 ac_path_GREP_max=$ac_count
4300 # 10*(2^10) chars as input seems more than enough
4301 test $ac_count -gt 10 && break
4303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4306 $ac_path_GREP_found && break 3
4311 if test -z "$ac_cv_path_GREP"; then
4312 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4315 ac_cv_path_GREP=$GREP
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4320 $as_echo "$ac_cv_path_GREP" >&6; }
4321 GREP="$ac_cv_path_GREP"
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4325 $as_echo_n "checking for egrep... " >&6; }
4326 if ${ac_cv_path_EGREP+:} false; then :
4327 $as_echo_n "(cached) " >&6
4329 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4330 then ac_cv_path_EGREP="$GREP -E"
4332 if test -z "$EGREP"; then
4333 ac_path_EGREP_found=false
4334 # Loop through the user's path and test for each of PROGNAME-LIST
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4339 test -z "$as_dir" && as_dir=.
4340 for ac_prog in egrep; do
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4343 as_fn_executable_p "$ac_path_EGREP" || continue
4344 # Check for GNU ac_path_EGREP and select it if it is found.
4345 # Check for GNU $ac_path_EGREP
4346 case `"$ac_path_EGREP" --version 2>&1` in
4348 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4351 $as_echo_n 0123456789 >"conftest.in"
4354 cat "conftest.in" "conftest.in" >"conftest.tmp"
4355 mv "conftest.tmp" "conftest.in"
4356 cp "conftest.in" "conftest.nl"
4357 $as_echo 'EGREP' >> "conftest.nl"
4358 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4359 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4360 as_fn_arith $ac_count + 1 && ac_count=$as_val
4361 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4362 # Best one so far, save it but keep looking for a better one
4363 ac_cv_path_EGREP="$ac_path_EGREP"
4364 ac_path_EGREP_max=$ac_count
4366 # 10*(2^10) chars as input seems more than enough
4367 test $ac_count -gt 10 && break
4369 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4372 $ac_path_EGREP_found && break 3
4377 if test -z "$ac_cv_path_EGREP"; then
4378 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4381 ac_cv_path_EGREP=$EGREP
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4387 $as_echo "$ac_cv_path_EGREP" >&6; }
4388 EGREP="$ac_cv_path_EGREP"
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4392 $as_echo_n "checking for fgrep... " >&6; }
4393 if ${ac_cv_path_FGREP+:} false; then :
4394 $as_echo_n "(cached) " >&6
4396 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4397 then ac_cv_path_FGREP="$GREP -F"
4399 if test -z "$FGREP"; then
4400 ac_path_FGREP_found=false
4401 # Loop through the user's path and test for each of PROGNAME-LIST
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4406 test -z "$as_dir" && as_dir=.
4407 for ac_prog in fgrep; do
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4410 as_fn_executable_p "$ac_path_FGREP" || continue
4411 # Check for GNU ac_path_FGREP and select it if it is found.
4412 # Check for GNU $ac_path_FGREP
4413 case `"$ac_path_FGREP" --version 2>&1` in
4415 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4418 $as_echo_n 0123456789 >"conftest.in"
4421 cat "conftest.in" "conftest.in" >"conftest.tmp"
4422 mv "conftest.tmp" "conftest.in"
4423 cp "conftest.in" "conftest.nl"
4424 $as_echo 'FGREP' >> "conftest.nl"
4425 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4426 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4427 as_fn_arith $ac_count + 1 && ac_count=$as_val
4428 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4429 # Best one so far, save it but keep looking for a better one
4430 ac_cv_path_FGREP="$ac_path_FGREP"
4431 ac_path_FGREP_max=$ac_count
4433 # 10*(2^10) chars as input seems more than enough
4434 test $ac_count -gt 10 && break
4436 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4439 $ac_path_FGREP_found && break 3
4444 if test -z "$ac_cv_path_FGREP"; then
4445 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4448 ac_cv_path_FGREP=$FGREP
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4454 $as_echo "$ac_cv_path_FGREP" >&6; }
4455 FGREP="$ac_cv_path_FGREP"
4458 test -z "$GREP" && GREP=grep
4478 # Check whether --with-gnu-ld was given.
4479 if test "${with_gnu_ld+set}" = set; then :
4480 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4486 if test "$GCC" = yes; then
4487 # Check if gcc -print-prog-name=ld gives a path.
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4489 $as_echo_n "checking for ld used by $CC... " >&6; }
4492 # gcc leaves a trailing carriage return which upsets mingw
4493 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4495 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4498 # Accept absolute paths.
4500 re_direlt='/[^/][^/]*/\.\./'
4501 # Canonicalize the pathname of ld
4502 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4503 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4504 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4506 test -z "$LD" && LD="$ac_prog"
4509 # If it fails, then pretend we aren't using GCC.
4513 # If it is relative, then search for the first ld in PATH.
4517 elif test "$with_gnu_ld" = yes; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4519 $as_echo_n "checking for GNU ld... " >&6; }
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4522 $as_echo_n "checking for non-GNU ld... " >&6; }
4524 if ${lt_cv_path_LD+:} false; then :
4525 $as_echo_n "(cached) " >&6
4527 if test -z "$LD"; then
4528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4529 for ac_dir in $PATH; do
4531 test -z "$ac_dir" && ac_dir=.
4532 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4533 lt_cv_path_LD="$ac_dir/$ac_prog"
4534 # Check to see if the program is GNU ld. I'd rather use --version,
4535 # but apparently some variants of GNU ld only accept -v.
4536 # Break only if it was the GNU/non-GNU ld that we prefer.
4537 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4538 *GNU* | *'with BFD'*)
4539 test "$with_gnu_ld" != no && break
4542 test "$with_gnu_ld" != yes && break
4549 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4554 if test -n "$LD"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4556 $as_echo "$LD" >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4561 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4563 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4564 if ${lt_cv_prog_gnu_ld+:} false; then :
4565 $as_echo_n "(cached) " >&6
4567 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4568 case `$LD -v 2>&1 </dev/null` in
4569 *GNU* | *'with BFD'*)
4570 lt_cv_prog_gnu_ld=yes
4573 lt_cv_prog_gnu_ld=no
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4578 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4579 with_gnu_ld=$lt_cv_prog_gnu_ld
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4590 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4591 if ${lt_cv_path_NM+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 if test -n "$NM"; then
4595 # Let the user override the test.
4598 lt_nm_to_check="${ac_tool_prefix}nm"
4599 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4600 lt_nm_to_check="$lt_nm_to_check nm"
4602 for lt_tmp_nm in $lt_nm_to_check; do
4603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4604 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4606 test -z "$ac_dir" && ac_dir=.
4607 tmp_nm="$ac_dir/$lt_tmp_nm"
4608 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4609 # Check to see if the nm accepts a BSD-compat flag.
4610 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4611 # nm: unknown option "B" ignored
4612 # Tru64's nm complains that /dev/null is an invalid object file
4613 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4614 */dev/null* | *'Invalid file or object type'*)
4615 lt_cv_path_NM="$tmp_nm -B"
4619 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4621 lt_cv_path_NM="$tmp_nm -p"
4625 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4626 continue # so that we can try to find one that supports BSD flags
4635 : ${lt_cv_path_NM=no}
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4639 $as_echo "$lt_cv_path_NM" >&6; }
4640 if test "$lt_cv_path_NM" != "no"; then
4643 # Didn't find any BSD compatible name lister, look for dumpbin.
4644 if test -n "$DUMPBIN"; then :
4645 # Let the user override the test.
4647 if test -n "$ac_tool_prefix"; then
4648 for ac_prog in dumpbin "link -dump"
4650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if ${ac_cv_prog_DUMPBIN+:} false; then :
4655 $as_echo_n "(cached) " >&6
4657 if test -n "$DUMPBIN"; then
4658 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 DUMPBIN=$ac_cv_prog_DUMPBIN
4678 if test -n "$DUMPBIN"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4680 $as_echo "$DUMPBIN" >&6; }
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4687 test -n "$DUMPBIN" && break
4690 if test -z "$DUMPBIN"; then
4691 ac_ct_DUMPBIN=$DUMPBIN
4692 for ac_prog in dumpbin "link -dump"
4694 # Extract the first word of "$ac_prog", so it can be a program name with args.
4695 set dummy $ac_prog; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4699 $as_echo_n "(cached) " >&6
4701 if test -n "$ac_ct_DUMPBIN"; then
4702 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4711 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4722 if test -n "$ac_ct_DUMPBIN"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4724 $as_echo "$ac_ct_DUMPBIN" >&6; }
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4731 test -n "$ac_ct_DUMPBIN" && break
4734 if test "x$ac_ct_DUMPBIN" = x; then
4737 case $cross_compiling:$ac_tool_warned in
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4741 ac_tool_warned=yes ;;
4743 DUMPBIN=$ac_ct_DUMPBIN
4747 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4749 DUMPBIN="$DUMPBIN -symbols"
4757 if test "$DUMPBIN" != ":"; then
4761 test -z "$NM" && NM=nm
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4769 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4770 if ${lt_cv_nm_interface+:} false; then :
4771 $as_echo_n "(cached) " >&6
4773 lt_cv_nm_interface="BSD nm"
4774 echo "int some_variable = 0;" > conftest.$ac_ext
4775 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4776 (eval "$ac_compile" 2>conftest.err)
4777 cat conftest.err >&5
4778 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4779 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4780 cat conftest.err >&5
4781 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4782 cat conftest.out >&5
4783 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4784 lt_cv_nm_interface="MS dumpbin"
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4789 $as_echo "$lt_cv_nm_interface" >&6; }
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4792 $as_echo_n "checking whether ln -s works... " >&6; }
4794 if test "$LN_S" = "ln -s"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4796 $as_echo "yes" >&6; }
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4799 $as_echo "no, using $LN_S" >&6; }
4802 # find the maximum length of command line arguments
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4804 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4805 if ${lt_cv_sys_max_cmd_len+:} false; then :
4806 $as_echo_n "(cached) " >&6
4813 # On DJGPP, this test can blow up pretty badly due to problems in libc
4814 # (any single argument exceeding 2000 bytes causes a buffer overrun
4815 # during glob expansion). Even if it were fixed, the result of this
4816 # check would be larger than it should be.
4817 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4821 # Under GNU Hurd, this test is not required because there is
4822 # no limit to the length of command line arguments.
4823 # Libtool will interpret -1 as no limit whatsoever
4824 lt_cv_sys_max_cmd_len=-1;
4827 cygwin* | mingw* | cegcc*)
4828 # On Win9x/ME, this test blows up -- it succeeds, but takes
4829 # about 5 minutes as the teststring grows exponentially.
4830 # Worse, since 9x/ME are not pre-emptively multitasking,
4831 # you end up with a "frozen" computer, even though with patience
4832 # the test eventually succeeds (with a max line length of 256k).
4833 # Instead, let's just punt: use the minimum linelength reported by
4834 # all of the supported platforms: 8192 (on NT/2K/XP).
4835 lt_cv_sys_max_cmd_len=8192;
4839 # On MiNT this can take a long time and run out of memory.
4840 lt_cv_sys_max_cmd_len=8192;
4844 # On AmigaOS with pdksh, this test takes hours, literally.
4845 # So we just punt and use a minimum line length of 8192.
4846 lt_cv_sys_max_cmd_len=8192;
4849 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4850 # This has been around since 386BSD, at least. Likely further.
4851 if test -x /sbin/sysctl; then
4852 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4853 elif test -x /usr/sbin/sysctl; then
4854 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4856 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4858 # And add a safety zone
4859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4864 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4865 lt_cv_sys_max_cmd_len=196608
4869 # The test takes a long time on OS/2.
4870 lt_cv_sys_max_cmd_len=8192
4874 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4875 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4876 # nice to cause kernel panics so lets avoid the loop below.
4877 # First set a reasonable default.
4878 lt_cv_sys_max_cmd_len=16384
4880 if test -x /sbin/sysconfig; then
4881 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4882 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4887 lt_cv_sys_max_cmd_len=102400
4889 sysv5* | sco5v6* | sysv4.2uw2*)
4890 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4891 if test -n "$kargmax"; then
4892 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4894 lt_cv_sys_max_cmd_len=32768
4898 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4899 if test -n "$lt_cv_sys_max_cmd_len" && \
4900 test undefined != "$lt_cv_sys_max_cmd_len"; then
4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4904 # Make teststring a little bigger before we do anything with it.
4905 # a 1K string should be a reasonable start.
4906 for i in 1 2 3 4 5 6 7 8 ; do
4907 teststring=$teststring$teststring
4909 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4910 # If test is not a shell built-in, we'll probably end up computing a
4911 # maximum length that is only half of the actual maximum length, but
4913 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4914 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4915 test $i != 17 # 1/2 MB should be enough
4918 teststring=$teststring$teststring
4920 # Only check the string length outside the loop.
4921 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4923 # Add a significant safety factor because C++ compilers can tack on
4924 # massive amounts of additional arguments before passing them to the
4925 # linker. It appears as though 1/2 is a usable value.
4926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4933 if test -n $lt_cv_sys_max_cmd_len ; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4935 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4938 $as_echo "none" >&6; }
4940 max_cmd_len=$lt_cv_sys_max_cmd_len
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4952 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4953 # Try some XSI features
4956 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4958 && eval 'test $(( 1 + 1 )) -eq 2 \
4959 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4962 $as_echo "$xsi_shell" >&6; }
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4966 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4968 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4970 && lt_shell_append=yes
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4972 $as_echo "$lt_shell_append" >&6; }
4975 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4985 # test EBCDIC or ASCII
4986 case `echo X|tr X '\101'` in
4987 A) # ASCII based system
4988 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4989 lt_SP2NL='tr \040 \012'
4990 lt_NL2SP='tr \015\012 \040\040'
4992 *) # EBCDIC based system
4993 lt_SP2NL='tr \100 \n'
4994 lt_NL2SP='tr \r\n \100\100'
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5007 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5008 if ${lt_cv_to_host_file_cmd+:} false; then :
5009 $as_echo_n "(cached) " >&6
5014 *-*-mingw* ) # actually msys
5015 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5018 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5020 * ) # otherwise, assume *nix
5021 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5027 *-*-mingw* ) # actually msys
5028 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5031 lt_cv_to_host_file_cmd=func_convert_file_noop
5033 * ) # otherwise, assume *nix
5034 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5038 * ) # unhandled hosts (and "normal" native builds)
5039 lt_cv_to_host_file_cmd=func_convert_file_noop
5045 to_host_file_cmd=$lt_cv_to_host_file_cmd
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5047 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5054 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5055 if ${lt_cv_to_tool_file_cmd+:} false; then :
5056 $as_echo_n "(cached) " >&6
5058 #assume ordinary cross tools, or native build.
5059 lt_cv_to_tool_file_cmd=func_convert_file_noop
5063 *-*-mingw* ) # actually msys
5064 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5072 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5074 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5081 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5082 if ${lt_cv_ld_reload_flag+:} false; then :
5083 $as_echo_n "(cached) " >&6
5085 lt_cv_ld_reload_flag='-r'
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5088 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5089 reload_flag=$lt_cv_ld_reload_flag
5090 case $reload_flag in
5092 *) reload_flag=" $reload_flag" ;;
5094 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5096 cygwin* | mingw* | pw32* | cegcc*)
5097 if test "$GCC" != yes; then
5102 if test "$GCC" = yes; then
5103 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5105 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if ${ac_cv_prog_OBJDUMP+:} false; then :
5124 $as_echo_n "(cached) " >&6
5126 if test -n "$OBJDUMP"; then
5127 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 OBJDUMP=$ac_cv_prog_OBJDUMP
5147 if test -n "$OBJDUMP"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5149 $as_echo "$OBJDUMP" >&6; }
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5157 if test -z "$ac_cv_prog_OBJDUMP"; then
5158 ac_ct_OBJDUMP=$OBJDUMP
5159 # Extract the first word of "objdump", so it can be a program name with args.
5160 set dummy objdump; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5164 $as_echo_n "(cached) " >&6
5166 if test -n "$ac_ct_OBJDUMP"; then
5167 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5187 if test -n "$ac_ct_OBJDUMP"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5189 $as_echo "$ac_ct_OBJDUMP" >&6; }
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5195 if test "x$ac_ct_OBJDUMP" = x; then
5198 case $cross_compiling:$ac_tool_warned in
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned=yes ;;
5204 OBJDUMP=$ac_ct_OBJDUMP
5207 OBJDUMP="$ac_cv_prog_OBJDUMP"
5210 test -z "$OBJDUMP" && OBJDUMP=objdump
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5221 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5222 if ${lt_cv_deplibs_check_method+:} false; then :
5223 $as_echo_n "(cached) " >&6
5225 lt_cv_file_magic_cmd='$MAGIC_CMD'
5226 lt_cv_file_magic_test_file=
5227 lt_cv_deplibs_check_method='unknown'
5228 # Need to set the preceding variable on all platforms that support
5229 # interlibrary dependencies.
5230 # 'none' -- dependencies not supported.
5231 # `unknown' -- same as none, but documents that we really don't know.
5232 # 'pass_all' -- all dependencies passed with no checks.
5233 # 'test_compile' -- check by making test program.
5234 # 'file_magic [[regex]]' -- check by looking for files in library path
5235 # which responds to the $file_magic_cmd with a given extended regex.
5236 # If you have `file' or equivalent on your system and you're not sure
5237 # whether `pass_all' will *always* work, you probably want this one.
5241 lt_cv_deplibs_check_method=pass_all
5245 lt_cv_deplibs_check_method=pass_all
5249 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5250 lt_cv_file_magic_cmd='/usr/bin/file -L'
5251 lt_cv_file_magic_test_file=/shlib/libc.so
5255 # func_win32_libid is a shell function defined in ltmain.sh
5256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5257 lt_cv_file_magic_cmd='func_win32_libid'
5261 # Base MSYS/MinGW do not provide the 'file' command needed by
5262 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5263 # unless we find 'file', for example because we are cross-compiling.
5264 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5265 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5266 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5267 lt_cv_file_magic_cmd='func_win32_libid'
5269 # Keep this pattern in sync with the one in func_win32_libid.
5270 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5271 lt_cv_file_magic_cmd='$OBJDUMP -f'
5276 # use the weaker test based on 'objdump'. See mingw*.
5277 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5278 lt_cv_file_magic_cmd='$OBJDUMP -f'
5281 darwin* | rhapsody*)
5282 lt_cv_deplibs_check_method=pass_all
5285 freebsd* | dragonfly*)
5286 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5289 # Not sure whether the presence of OpenBSD here was a mistake.
5290 # Let's accept both of them until this is cleared up.
5291 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5292 lt_cv_file_magic_cmd=/usr/bin/file
5293 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5297 lt_cv_deplibs_check_method=pass_all
5302 lt_cv_deplibs_check_method=pass_all
5305 hpux10.20* | hpux11*)
5306 lt_cv_file_magic_cmd=/usr/bin/file
5309 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5310 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5313 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]'
5314 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5318 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5324 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5328 irix5* | irix6* | nonstopux*)
5330 *-32|*"-32 ") libmagic=32-bit;;
5331 *-n32|*"-n32 ") libmagic=N32;;
5332 *-64|*"-64 ") libmagic=64-bit;;
5333 *) libmagic=never-match;;
5335 lt_cv_deplibs_check_method=pass_all
5338 # This must be glibc/ELF.
5339 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5340 lt_cv_deplibs_check_method=pass_all
5343 netbsd* | netbsdelf*-gnu)
5344 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5353 lt_cv_file_magic_cmd=/usr/bin/file
5354 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5358 lt_cv_deplibs_check_method=pass_all
5362 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5369 osf3* | osf4* | osf5*)
5370 lt_cv_deplibs_check_method=pass_all
5374 lt_cv_deplibs_check_method=pass_all
5378 lt_cv_deplibs_check_method=pass_all
5381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5382 lt_cv_deplibs_check_method=pass_all
5386 case $host_vendor in
5388 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]'
5389 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5392 lt_cv_deplibs_check_method=pass_all
5395 lt_cv_file_magic_cmd='/bin/file'
5396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5399 lt_cv_file_magic_cmd='/bin/file'
5400 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5401 lt_cv_file_magic_test_file=/lib/libc.so
5404 lt_cv_deplibs_check_method=pass_all
5407 lt_cv_deplibs_check_method=pass_all
5413 lt_cv_deplibs_check_method=pass_all
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5419 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5423 if test "$build" = "$host"; then
5426 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5429 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5435 file_magic_cmd=$lt_cv_file_magic_cmd
5436 deplibs_check_method=$lt_cv_deplibs_check_method
5437 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5460 if test -n "$ac_tool_prefix"; then
5461 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5462 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if ${ac_cv_prog_DLLTOOL+:} false; then :
5466 $as_echo_n "(cached) " >&6
5468 if test -n "$DLLTOOL"; then
5469 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 DLLTOOL=$ac_cv_prog_DLLTOOL
5489 if test -n "$DLLTOOL"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5491 $as_echo "$DLLTOOL" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5499 if test -z "$ac_cv_prog_DLLTOOL"; then
5500 ac_ct_DLLTOOL=$DLLTOOL
5501 # Extract the first word of "dlltool", so it can be a program name with args.
5502 set dummy dlltool; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5506 $as_echo_n "(cached) " >&6
5508 if test -n "$ac_ct_DLLTOOL"; then
5509 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5529 if test -n "$ac_ct_DLLTOOL"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5531 $as_echo "$ac_ct_DLLTOOL" >&6; }
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5537 if test "x$ac_ct_DLLTOOL" = x; then
5540 case $cross_compiling:$ac_tool_warned in
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5544 ac_tool_warned=yes ;;
5546 DLLTOOL=$ac_ct_DLLTOOL
5549 DLLTOOL="$ac_cv_prog_DLLTOOL"
5552 test -z "$DLLTOOL" && DLLTOOL=dlltool
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5564 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5565 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5566 $as_echo_n "(cached) " >&6
5568 lt_cv_sharedlib_from_linklib_cmd='unknown'
5571 cygwin* | mingw* | pw32* | cegcc*)
5572 # two different shell functions defined in ltmain.sh
5573 # decide which to use based on capabilities of $DLLTOOL
5574 case `$DLLTOOL --help 2>&1` in
5575 *--identify-strict*)
5576 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5579 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5584 # fallback: assume linklib IS sharedlib
5585 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5591 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5592 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5593 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5601 if test -n "$ac_tool_prefix"; then
5604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_AR+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 if test -n "$AR"; then
5612 ac_cv_prog_AR="$AR" # Let the user override the test.
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 if test -n "$AR"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5634 $as_echo "$AR" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5641 test -n "$AR" && break
5644 if test -z "$AR"; then
5648 # Extract the first word of "$ac_prog", so it can be a program name with args.
5649 set dummy $ac_prog; ac_word=$2
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 $as_echo_n "checking for $ac_word... " >&6; }
5652 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5653 $as_echo_n "(cached) " >&6
5655 if test -n "$ac_ct_AR"; then
5656 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665 ac_cv_prog_ac_ct_AR="$ac_prog"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5676 if test -n "$ac_ct_AR"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5678 $as_echo "$ac_ct_AR" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5685 test -n "$ac_ct_AR" && break
5688 if test "x$ac_ct_AR" = x; then
5691 case $cross_compiling:$ac_tool_warned in
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5695 ac_tool_warned=yes ;;
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5715 $as_echo_n "checking for archiver @FILE support... " >&6; }
5716 if ${lt_cv_ar_at_file+:} false; then :
5717 $as_echo_n "(cached) " >&6
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5731 if ac_fn_c_try_compile "$LINENO"; then :
5732 echo conftest.$ac_objext > conftest.lst
5733 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5735 (eval $lt_ar_try) 2>&5
5737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5738 test $ac_status = 0; }
5739 if test "$ac_status" -eq 0; then
5740 # Ensure the archiver fails upon bogus file names.
5741 rm -f conftest.$ac_objext libconftest.a
5742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5743 (eval $lt_ar_try) 2>&5
5745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5746 test $ac_status = 0; }
5747 if test "$ac_status" -ne 0; then
5751 rm -f conftest.* libconftest.a
5754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5758 $as_echo "$lt_cv_ar_at_file" >&6; }
5760 if test "x$lt_cv_ar_at_file" = xno; then
5763 archiver_list_spec=$lt_cv_ar_at_file
5772 if test -n "$ac_tool_prefix"; then
5773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5774 set dummy ${ac_tool_prefix}strip; ac_word=$2
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 $as_echo_n "checking for $ac_word... " >&6; }
5777 if ${ac_cv_prog_STRIP+:} false; then :
5778 $as_echo_n "(cached) " >&6
5780 if test -n "$STRIP"; then
5781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 STRIP=$ac_cv_prog_STRIP
5801 if test -n "$STRIP"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5803 $as_echo "$STRIP" >&6; }
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5811 if test -z "$ac_cv_prog_STRIP"; then
5813 # Extract the first word of "strip", so it can be a program name with args.
5814 set dummy strip; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5818 $as_echo_n "(cached) " >&6
5820 if test -n "$ac_ct_STRIP"; then
5821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_ac_ct_STRIP="strip"
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5841 if test -n "$ac_ct_STRIP"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5843 $as_echo "$ac_ct_STRIP" >&6; }
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5849 if test "x$ac_ct_STRIP" = x; then
5852 case $cross_compiling:$ac_tool_warned in
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5856 ac_tool_warned=yes ;;
5861 STRIP="$ac_cv_prog_STRIP"
5864 test -z "$STRIP" && STRIP=:
5871 if test -n "$ac_tool_prefix"; then
5872 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5873 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_RANLIB+:} false; then :
5877 $as_echo_n "(cached) " >&6
5879 if test -n "$RANLIB"; then
5880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 RANLIB=$ac_cv_prog_RANLIB
5900 if test -n "$RANLIB"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5902 $as_echo "$RANLIB" >&6; }
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5910 if test -z "$ac_cv_prog_RANLIB"; then
5911 ac_ct_RANLIB=$RANLIB
5912 # Extract the first word of "ranlib", so it can be a program name with args.
5913 set dummy ranlib; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5917 $as_echo_n "(cached) " >&6
5919 if test -n "$ac_ct_RANLIB"; then
5920 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_RANLIB="ranlib"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5940 if test -n "$ac_ct_RANLIB"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5942 $as_echo "$ac_ct_RANLIB" >&6; }
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5948 if test "x$ac_ct_RANLIB" = x; then
5951 case $cross_compiling:$ac_tool_warned in
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955 ac_tool_warned=yes ;;
5957 RANLIB=$ac_ct_RANLIB
5960 RANLIB="$ac_cv_prog_RANLIB"
5963 test -z "$RANLIB" && RANLIB=:
5970 # Determine commands to create old-style static archives.
5971 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5972 old_postinstall_cmds='chmod 644 $oldlib'
5973 old_postuninstall_cmds=
5975 if test -n "$RANLIB"; then
5978 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5981 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5984 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5989 lock_old_archive_extraction=yes ;;
5991 lock_old_archive_extraction=no ;;
6032 # If no C compiler was specified, use CC.
6035 # If no C compiler flags were specified, use CFLAGS.
6036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6038 # Allow CC to be a program name with arguments.
6042 # Check for command to grab the raw symbol name followed by C symbol from nm.
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6044 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6045 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6046 $as_echo_n "(cached) " >&6
6049 # These are sane defaults that work on at least a few old systems.
6050 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6052 # Character class describing NM global symbol codes.
6053 symcode='[BCDEGRST]'
6055 # Regexp to match symbols that can be accessed directly from C.
6056 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6058 # Define system-specific variables.
6063 cygwin* | mingw* | pw32* | cegcc*)
6064 symcode='[ABCDGISTW]'
6067 if test "$host_cpu" = ia64; then
6068 symcode='[ABCDEGRST]'
6072 symcode='[BCDEGRST]'
6075 symcode='[BCDEGQRST]'
6086 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6094 # If we're using GNU nm, then use its standard symbol codes.
6095 case `$NM -V 2>&1` in
6096 *GNU* | *'with BFD'*)
6097 symcode='[ABCDGIRSTW]' ;;
6100 # Transform an extracted symbol line into a proper C declaration.
6101 # Some systems (esp. on ia64) link data and code symbols differently,
6102 # so use this general approach.
6103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6105 # Transform an extracted symbol line into symbol name and symbol address
6106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6107 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'"
6109 # Handle CRLF in mingw tool chain
6113 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6117 # Try without a prefix underscore, then with it.
6118 for ac_symprfx in "" "_"; do
6120 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6121 symxfrm="\\1 $ac_symprfx\\2 \\2"
6123 # Write the raw and C identifiers.
6124 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6125 # Fake it for dumpbin and say T for any non-static function
6126 # and D for any global variable.
6127 # Also find C++ and __fastcall symbols from MSVC++,
6128 # which start with @ or ?.
6129 lt_cv_sys_global_symbol_pipe="$AWK '"\
6130 " {last_section=section; section=\$ 3};"\
6131 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6132 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6133 " \$ 0!~/External *\|/{next};"\
6134 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6135 " {if(hide[section]) next};"\
6136 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6137 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6138 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6139 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6140 " ' prfx=^$ac_symprfx"
6142 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6144 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6146 # Check to see that the pipe works correctly.
6150 cat > conftest.$ac_ext <<_LT_EOF
6155 void nm_test_func(void);
6156 void nm_test_func(void){}
6160 int main(){nm_test_var='a';nm_test_func();return(0);}
6163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6164 (eval $ac_compile) 2>&5
6166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6167 test $ac_status = 0; }; then
6168 # Now try to grab the symbols.
6170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6171 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174 test $ac_status = 0; } && test -s "$nlist"; then
6175 # Try sorting and uniquifying the output.
6176 if sort "$nlist" | uniq > "$nlist"T; then
6177 mv -f "$nlist"T "$nlist"
6182 # Make sure that we snagged all the symbols we need.
6183 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6184 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6185 cat <<_LT_EOF > conftest.$ac_ext
6186 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6187 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6188 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6189 relocations are performed -- see ld's documentation on pseudo-relocs. */
6190 # define LT_DLSYM_CONST
6191 #elif defined(__osf__)
6192 /* This system does not cope well with relocations in const data. */
6193 # define LT_DLSYM_CONST
6195 # define LT_DLSYM_CONST const
6203 # Now generate the symbol file.
6204 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6206 cat <<_LT_EOF >> conftest.$ac_ext
6208 /* The mapping between symbol names and symbols. */
6209 LT_DLSYM_CONST struct {
6213 lt__PROGRAM__LTX_preloaded_symbols[] =
6215 { "@PROGRAM@", (void *) 0 },
6217 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6218 cat <<\_LT_EOF >> conftest.$ac_ext
6222 /* This works around a problem in FreeBSD linker */
6223 #ifdef FREEBSD_WORKAROUND
6224 static const void *lt_preloaded_setup() {
6225 return lt__PROGRAM__LTX_preloaded_symbols;
6233 # Now try linking the two files.
6234 mv conftest.$ac_objext conftstm.$ac_objext
6235 lt_globsym_save_LIBS=$LIBS
6236 lt_globsym_save_CFLAGS=$CFLAGS
6237 LIBS="conftstm.$ac_objext"
6238 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6240 (eval $ac_link) 2>&5
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6246 LIBS=$lt_globsym_save_LIBS
6247 CFLAGS=$lt_globsym_save_CFLAGS
6249 echo "cannot find nm_test_func in $nlist" >&5
6252 echo "cannot find nm_test_var in $nlist" >&5
6255 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6258 echo "$progname: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6261 rm -rf conftest* conftst*
6263 # Do not use the global_symbol_pipe unless it works.
6264 if test "$pipe_works" = yes; then
6267 lt_cv_sys_global_symbol_pipe=
6273 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6274 lt_cv_sys_global_symbol_to_cdecl=
6276 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6278 $as_echo "failed" >&6; }
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6281 $as_echo "ok" >&6; }
6284 # Response file support.
6285 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6286 nm_file_list_spec='@'
6287 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6288 nm_file_list_spec='@'
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6318 $as_echo_n "checking for sysroot... " >&6; }
6320 # Check whether --with-sysroot was given.
6321 if test "${with_sysroot+set}" = set; then :
6322 withval=$with_sysroot;
6329 case ${with_sysroot} in #(
6331 if test "$GCC" = yes; then
6332 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6336 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6342 $as_echo "${with_sysroot}" >&6; }
6343 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6348 $as_echo "${lt_sysroot:-no}" >&6; }
6354 # Check whether --enable-libtool-lock was given.
6355 if test "${enable_libtool_lock+set}" = set; then :
6356 enableval=$enable_libtool_lock;
6359 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6361 # Some flags need to be propagated to the compiler or linker for good
6365 # Find out which ABI we are using.
6366 echo 'int i;' > conftest.$ac_ext
6367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6368 (eval $ac_compile) 2>&5
6370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6371 test $ac_status = 0; }; then
6372 case `/usr/bin/file conftest.$ac_objext` in
6384 # Find out which ABI we are using.
6385 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6387 (eval $ac_compile) 2>&5
6389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6390 test $ac_status = 0; }; then
6391 if test "$lt_cv_prog_gnu_ld" = yes; then
6392 case `/usr/bin/file conftest.$ac_objext` in
6394 LD="${LD-ld} -melf32bsmip"
6397 LD="${LD-ld} -melf32bmipn32"
6400 LD="${LD-ld} -melf64bmip"
6404 case `/usr/bin/file conftest.$ac_objext` in
6420 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6421 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6422 # Find out which ABI we are using.
6423 echo 'int i;' > conftest.$ac_ext
6424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6425 (eval $ac_compile) 2>&5
6427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6428 test $ac_status = 0; }; then
6429 case `/usr/bin/file conftest.o` in
6432 x86_64-*kfreebsd*-gnu)
6433 LD="${LD-ld} -m elf_i386_fbsd"
6436 case `/usr/bin/file conftest.o` in
6438 LD="${LD-ld} -m elf32_x86_64"
6441 LD="${LD-ld} -m elf_i386"
6446 LD="${LD-ld} -m elf32lppclinux"
6449 LD="${LD-ld} -m elf32ppclinux"
6452 LD="${LD-ld} -m elf_s390"
6455 LD="${LD-ld} -m elf32_sparc"
6461 x86_64-*kfreebsd*-gnu)
6462 LD="${LD-ld} -m elf_x86_64_fbsd"
6465 LD="${LD-ld} -m elf_x86_64"
6468 LD="${LD-ld} -m elf64lppc"
6471 LD="${LD-ld} -m elf64ppc"
6473 s390*-*linux*|s390*-*tpf*)
6474 LD="${LD-ld} -m elf64_s390"
6477 LD="${LD-ld} -m elf64_sparc"
6487 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6488 SAVE_CFLAGS="$CFLAGS"
6489 CFLAGS="$CFLAGS -belf"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6491 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6492 if ${lt_cv_cc_needs_belf+:} false; then :
6493 $as_echo_n "(cached) " >&6
6496 ac_cpp='$CPP $CPPFLAGS'
6497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6512 if ac_fn_c_try_link "$LINENO"; then :
6513 lt_cv_cc_needs_belf=yes
6515 lt_cv_cc_needs_belf=no
6517 rm -f core conftest.err conftest.$ac_objext \
6518 conftest$ac_exeext conftest.$ac_ext
6520 ac_cpp='$CPP $CPPFLAGS'
6521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6527 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6528 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6529 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6530 CFLAGS="$SAVE_CFLAGS"
6534 # Find out which ABI we are using.
6535 echo 'int i;' > conftest.$ac_ext
6536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6537 (eval $ac_compile) 2>&5
6539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540 test $ac_status = 0; }; then
6541 case `/usr/bin/file conftest.o` in
6543 case $lt_cv_prog_gnu_ld in
6547 LD="${LD-ld} -m elf_x86_64"
6550 LD="${LD-ld} -m elf64_sparc"
6553 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6554 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6559 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6571 need_locks="$enable_libtool_lock"
6573 if test -n "$ac_tool_prefix"; then
6574 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6575 set dummy ${ac_tool_prefix}mt; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6579 $as_echo_n "(cached) " >&6
6581 if test -n "$MANIFEST_TOOL"; then
6582 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6602 if test -n "$MANIFEST_TOOL"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6604 $as_echo "$MANIFEST_TOOL" >&6; }
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6612 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6613 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6614 # Extract the first word of "mt", so it can be a program name with args.
6615 set dummy mt; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6619 $as_echo_n "(cached) " >&6
6621 if test -n "$ac_ct_MANIFEST_TOOL"; then
6622 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6642 if test -n "$ac_ct_MANIFEST_TOOL"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6644 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6650 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6653 case $cross_compiling:$ac_tool_warned in
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6657 ac_tool_warned=yes ;;
6659 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6662 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6665 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6667 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6668 if ${lt_cv_path_mainfest_tool+:} false; then :
6669 $as_echo_n "(cached) " >&6
6671 lt_cv_path_mainfest_tool=no
6672 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6673 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6674 cat conftest.err >&5
6675 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6676 lt_cv_path_mainfest_tool=yes
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6681 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6682 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6692 rhapsody* | darwin*)
6693 if test -n "$ac_tool_prefix"; then
6694 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6699 $as_echo_n "(cached) " >&6
6701 if test -n "$DSYMUTIL"; then
6702 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6722 if test -n "$DSYMUTIL"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6724 $as_echo "$DSYMUTIL" >&6; }
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6732 if test -z "$ac_cv_prog_DSYMUTIL"; then
6733 ac_ct_DSYMUTIL=$DSYMUTIL
6734 # Extract the first word of "dsymutil", so it can be a program name with args.
6735 set dummy dsymutil; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6739 $as_echo_n "(cached) " >&6
6741 if test -n "$ac_ct_DSYMUTIL"; then
6742 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6762 if test -n "$ac_ct_DSYMUTIL"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6764 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6770 if test "x$ac_ct_DSYMUTIL" = x; then
6773 case $cross_compiling:$ac_tool_warned in
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6777 ac_tool_warned=yes ;;
6779 DSYMUTIL=$ac_ct_DSYMUTIL
6782 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6785 if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_prog_NMEDIT+:} false; then :
6791 $as_echo_n "(cached) " >&6
6793 if test -n "$NMEDIT"; then
6794 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 NMEDIT=$ac_cv_prog_NMEDIT
6814 if test -n "$NMEDIT"; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6816 $as_echo "$NMEDIT" >&6; }
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6824 if test -z "$ac_cv_prog_NMEDIT"; then
6825 ac_ct_NMEDIT=$NMEDIT
6826 # Extract the first word of "nmedit", so it can be a program name with args.
6827 set dummy nmedit; ac_word=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6831 $as_echo_n "(cached) " >&6
6833 if test -n "$ac_ct_NMEDIT"; then
6834 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6843 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6854 if test -n "$ac_ct_NMEDIT"; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6856 $as_echo "$ac_ct_NMEDIT" >&6; }
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6862 if test "x$ac_ct_NMEDIT" = x; then
6865 case $cross_compiling:$ac_tool_warned in
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869 ac_tool_warned=yes ;;
6871 NMEDIT=$ac_ct_NMEDIT
6874 NMEDIT="$ac_cv_prog_NMEDIT"
6877 if test -n "$ac_tool_prefix"; then
6878 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6879 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if ${ac_cv_prog_LIPO+:} false; then :
6883 $as_echo_n "(cached) " >&6
6885 if test -n "$LIPO"; then
6886 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 LIPO=$ac_cv_prog_LIPO
6906 if test -n "$LIPO"; then
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6908 $as_echo "$LIPO" >&6; }
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 $as_echo "no" >&6; }
6916 if test -z "$ac_cv_prog_LIPO"; then
6918 # Extract the first word of "lipo", so it can be a program name with args.
6919 set dummy lipo; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6923 $as_echo_n "(cached) " >&6
6925 if test -n "$ac_ct_LIPO"; then
6926 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935 ac_cv_prog_ac_ct_LIPO="lipo"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6946 if test -n "$ac_ct_LIPO"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6948 $as_echo "$ac_ct_LIPO" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6954 if test "x$ac_ct_LIPO" = x; then
6957 case $cross_compiling:$ac_tool_warned in
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6961 ac_tool_warned=yes ;;
6966 LIPO="$ac_cv_prog_LIPO"
6969 if test -n "$ac_tool_prefix"; then
6970 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6971 set dummy ${ac_tool_prefix}otool; ac_word=$2
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973 $as_echo_n "checking for $ac_word... " >&6; }
6974 if ${ac_cv_prog_OTOOL+:} false; then :
6975 $as_echo_n "(cached) " >&6
6977 if test -n "$OTOOL"; then
6978 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6987 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 OTOOL=$ac_cv_prog_OTOOL
6998 if test -n "$OTOOL"; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7000 $as_echo "$OTOOL" >&6; }
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003 $as_echo "no" >&6; }
7008 if test -z "$ac_cv_prog_OTOOL"; then
7010 # Extract the first word of "otool", so it can be a program name with args.
7011 set dummy otool; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 if test -n "$ac_ct_OTOOL"; then
7018 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_ac_ct_OTOOL="otool"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7038 if test -n "$ac_ct_OTOOL"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7040 $as_echo "$ac_ct_OTOOL" >&6; }
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7046 if test "x$ac_ct_OTOOL" = x; then
7049 case $cross_compiling:$ac_tool_warned in
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7053 ac_tool_warned=yes ;;
7058 OTOOL="$ac_cv_prog_OTOOL"
7061 if test -n "$ac_tool_prefix"; then
7062 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7063 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_OTOOL64+:} false; then :
7067 $as_echo_n "(cached) " >&6
7069 if test -n "$OTOOL64"; then
7070 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 OTOOL64=$ac_cv_prog_OTOOL64
7090 if test -n "$OTOOL64"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7092 $as_echo "$OTOOL64" >&6; }
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7100 if test -z "$ac_cv_prog_OTOOL64"; then
7101 ac_ct_OTOOL64=$OTOOL64
7102 # Extract the first word of "otool64", so it can be a program name with args.
7103 set dummy otool64; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105 $as_echo_n "checking for $ac_word... " >&6; }
7106 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7107 $as_echo_n "(cached) " >&6
7109 if test -n "$ac_ct_OTOOL64"; then
7110 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_ac_ct_OTOOL64="otool64"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7130 if test -n "$ac_ct_OTOOL64"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7132 $as_echo "$ac_ct_OTOOL64" >&6; }
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7138 if test "x$ac_ct_OTOOL64" = x; then
7141 case $cross_compiling:$ac_tool_warned in
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7145 ac_tool_warned=yes ;;
7147 OTOOL64=$ac_ct_OTOOL64
7150 OTOOL64="$ac_cv_prog_OTOOL64"
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7180 $as_echo_n "checking for -single_module linker flag... " >&6; }
7181 if ${lt_cv_apple_cc_single_mod+:} false; then :
7182 $as_echo_n "(cached) " >&6
7184 lt_cv_apple_cc_single_mod=no
7185 if test -z "${LT_MULTI_MODULE}"; then
7186 # By default we will add the -single_module flag. You can override
7187 # by either setting the environment variable LT_MULTI_MODULE
7188 # non-empty at configure time, or by adding -multi_module to the
7190 rm -rf libconftest.dylib*
7191 echo "int foo(void){return 1;}" > conftest.c
7192 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7193 -dynamiclib -Wl,-single_module conftest.c" >&5
7194 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7195 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7197 # If there is a non-empty error log, and "single_module"
7198 # appears in it, assume the flag caused a linker warning
7199 if test -s conftest.err && $GREP single_module conftest.err; then
7200 cat conftest.err >&5
7201 # Otherwise, if the output was created with a 0 exit code from
7202 # the compiler, it worked.
7203 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7204 lt_cv_apple_cc_single_mod=yes
7206 cat conftest.err >&5
7208 rm -rf libconftest.dylib*
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7213 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7216 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7217 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7218 $as_echo_n "(cached) " >&6
7220 lt_cv_ld_exported_symbols_list=no
7221 save_LDFLAGS=$LDFLAGS
7222 echo "_main" > conftest.sym
7223 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7235 if ac_fn_c_try_link "$LINENO"; then :
7236 lt_cv_ld_exported_symbols_list=yes
7238 lt_cv_ld_exported_symbols_list=no
7240 rm -f core conftest.err conftest.$ac_objext \
7241 conftest$ac_exeext conftest.$ac_ext
7242 LDFLAGS="$save_LDFLAGS"
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7246 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7249 $as_echo_n "checking for -force_load linker flag... " >&6; }
7250 if ${lt_cv_ld_force_load+:} false; then :
7251 $as_echo_n "(cached) " >&6
7253 lt_cv_ld_force_load=no
7254 cat > conftest.c << _LT_EOF
7255 int forced_loaded() { return 2;}
7257 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7258 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7259 echo "$AR cru libconftest.a conftest.o" >&5
7260 $AR cru libconftest.a conftest.o 2>&5
7261 echo "$RANLIB libconftest.a" >&5
7262 $RANLIB libconftest.a 2>&5
7263 cat > conftest.c << _LT_EOF
7264 int main() { return 0;}
7266 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7267 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7269 if test -s conftest.err && $GREP force_load conftest.err; then
7270 cat conftest.err >&5
7271 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7272 lt_cv_ld_force_load=yes
7274 cat conftest.err >&5
7276 rm -f conftest.err libconftest.a conftest conftest.c
7277 rm -rf conftest.dSYM
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7281 $as_echo "$lt_cv_ld_force_load" >&6; }
7283 rhapsody* | darwin1.[012])
7284 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7286 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7287 darwin*) # darwin 5.x on
7288 # if running on 10.5 or later, the deployment target defaults
7289 # to the OS version, if on x86, and 10.4, the deployment
7290 # target defaults to 10.4. Don't you love it?
7291 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7292 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7293 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7295 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7297 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7301 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7302 _lt_dar_single_mod='$single_module'
7304 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7305 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7307 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7309 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7310 _lt_dsymutil='~$DSYMUTIL $lib || :'
7318 ac_cpp='$CPP $CPPFLAGS'
7319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7323 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7324 # On Suns, sometimes $CPP names a directory.
7325 if test -n "$CPP" && test -d "$CPP"; then
7328 if test -z "$CPP"; then
7329 if ${ac_cv_prog_CPP+:} false; then :
7330 $as_echo_n "(cached) " >&6
7332 # Double quotes because CPP needs to be expanded
7333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7336 for ac_c_preproc_warn_flag in '' yes
7338 # Use a header file that comes with gcc, so configuring glibc
7339 # with a fresh cross-compiler works.
7340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7341 # <limits.h> exists even on freestanding compilers.
7342 # On the NeXT, cc -E runs the code through the compiler's parser,
7343 # not just through cpp. "Syntax error" is here to catch this case.
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7347 # include <limits.h>
7349 # include <assert.h>
7353 if ac_fn_c_try_cpp "$LINENO"; then :
7356 # Broken: fails on valid input.
7359 rm -f conftest.err conftest.i conftest.$ac_ext
7361 # OK, works on sane cases. Now check whether nonexistent headers
7362 # can be detected and how.
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 #include <ac_nonexistent.h>
7367 if ac_fn_c_try_cpp "$LINENO"; then :
7368 # Broken: success on invalid input.
7371 # Passes both tests.
7375 rm -f conftest.err conftest.i conftest.$ac_ext
7378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7379 rm -f conftest.i conftest.err conftest.$ac_ext
7380 if $ac_preproc_ok; then :
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7393 $as_echo "$CPP" >&6; }
7395 for ac_c_preproc_warn_flag in '' yes
7397 # Use a header file that comes with gcc, so configuring glibc
7398 # with a fresh cross-compiler works.
7399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7400 # <limits.h> exists even on freestanding compilers.
7401 # On the NeXT, cc -E runs the code through the compiler's parser,
7402 # not just through cpp. "Syntax error" is here to catch this case.
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7406 # include <limits.h>
7408 # include <assert.h>
7412 if ac_fn_c_try_cpp "$LINENO"; then :
7415 # Broken: fails on valid input.
7418 rm -f conftest.err conftest.i conftest.$ac_ext
7420 # OK, works on sane cases. Now check whether nonexistent headers
7421 # can be detected and how.
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424 #include <ac_nonexistent.h>
7426 if ac_fn_c_try_cpp "$LINENO"; then :
7427 # Broken: success on invalid input.
7430 # Passes both tests.
7434 rm -f conftest.err conftest.i conftest.$ac_ext
7437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7438 rm -f conftest.i conftest.err conftest.$ac_ext
7439 if $ac_preproc_ok; then :
7442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7444 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7445 See \`config.log' for more details" "$LINENO" 5; }
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7456 $as_echo_n "checking for ANSI C header files... " >&6; }
7457 if ${ac_cv_header_stdc+:} false; then :
7458 $as_echo_n "(cached) " >&6
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7475 if ac_fn_c_try_compile "$LINENO"; then :
7476 ac_cv_header_stdc=yes
7478 ac_cv_header_stdc=no
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 if test $ac_cv_header_stdc = yes; then
7483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7490 $EGREP "memchr" >/dev/null 2>&1; then :
7493 ac_cv_header_stdc=no
7499 if test $ac_cv_header_stdc = yes; then
7500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7507 $EGREP "free" >/dev/null 2>&1; then :
7510 ac_cv_header_stdc=no
7516 if test $ac_cv_header_stdc = yes; then
7517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7518 if test "$cross_compiling" = yes; then :
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7525 #if ((' ' & 0x0FF) == 0x020)
7526 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7527 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7529 # define ISLOWER(c) \
7530 (('a' <= (c) && (c) <= 'i') \
7531 || ('j' <= (c) && (c) <= 'r') \
7532 || ('s' <= (c) && (c) <= 'z'))
7533 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7541 for (i = 0; i < 256; i++)
7542 if (XOR (islower (i), ISLOWER (i))
7543 || toupper (i) != TOUPPER (i))
7548 if ac_fn_c_try_run "$LINENO"; then :
7551 ac_cv_header_stdc=no
7553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7554 conftest.$ac_objext conftest.beam conftest.$ac_ext
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7560 $as_echo "$ac_cv_header_stdc" >&6; }
7561 if test $ac_cv_header_stdc = yes; then
7563 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7567 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7568 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7569 inttypes.h stdint.h unistd.h
7571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7572 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7574 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7575 cat >>confdefs.h <<_ACEOF
7576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7584 for ac_header in dlfcn.h
7586 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7588 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7589 cat >>confdefs.h <<_ACEOF
7590 #define HAVE_DLFCN_H 1
7602 # Check whether --enable-static was given.
7603 if test "${enable_static+set}" = set; then :
7604 enableval=$enable_static; p=${PACKAGE-default}
7606 yes) enable_static=yes ;;
7607 no) enable_static=no ;;
7610 # Look at the argument we got. We use all the common list separators.
7611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7612 for pkg in $enableval; do
7614 if test "X$pkg" = "X$p"; then
7640 # Check whether --enable-shared was given.
7641 if test "${enable_shared+set}" = set; then :
7642 enableval=$enable_shared; p=${PACKAGE-default}
7644 yes) enable_shared=yes ;;
7645 no) enable_shared=no ;;
7648 # Look at the argument we got. We use all the common list separators.
7649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7650 for pkg in $enableval; do
7652 if test "X$pkg" = "X$p"; then
7673 # Check whether --with-pic was given.
7674 if test "${with_pic+set}" = set; then :
7675 withval=$with_pic; lt_p=${PACKAGE-default}
7677 yes|no) pic_mode=$withval ;;
7680 # Look at the argument we got. We use all the common list separators.
7681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7682 for lt_pkg in $withval; do
7684 if test "X$lt_pkg" = "X$lt_p"; then
7696 test -z "$pic_mode" && pic_mode=default
7704 # Check whether --enable-fast-install was given.
7705 if test "${enable_fast_install+set}" = set; then :
7706 enableval=$enable_fast_install; p=${PACKAGE-default}
7708 yes) enable_fast_install=yes ;;
7709 no) enable_fast_install=no ;;
7711 enable_fast_install=no
7712 # Look at the argument we got. We use all the common list separators.
7713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7714 for pkg in $enableval; do
7716 if test "X$pkg" = "X$p"; then
7717 enable_fast_install=yes
7724 enable_fast_install=yes
7737 # This can be used to rebuild libtool when needed
7738 LIBTOOL_DEPS="$ltmain"
7740 # Always use our own libtool.
7741 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7772 test -z "$LN_S" && LN_S="ln -s"
7787 if test -n "${ZSH_VERSION+set}" ; then
7788 setopt NO_GLOB_SUBST
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7792 $as_echo_n "checking for objdir... " >&6; }
7793 if ${lt_cv_objdir+:} false; then :
7794 $as_echo_n "(cached) " >&6
7796 rm -f .libs 2>/dev/null
7797 mkdir .libs 2>/dev/null
7798 if test -d .libs; then
7801 # MS-DOS does not allow filenames that begin with a dot.
7804 rmdir .libs 2>/dev/null
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7807 $as_echo "$lt_cv_objdir" >&6; }
7808 objdir=$lt_cv_objdir
7814 cat >>confdefs.h <<_ACEOF
7815 #define LT_OBJDIR "$lt_cv_objdir/"
7823 # AIX sometimes has problems with the GCC collect2 program. For some
7824 # reason, if we set the COLLECT_NAMES environment variable, the problems
7825 # vanish in a puff of smoke.
7826 if test "X${COLLECT_NAMES+set}" != Xset; then
7828 export COLLECT_NAMES
7835 can_build_shared=yes
7837 # All known linkers require a `.a' archive for static linking (except MSVC,
7838 # which needs '.lib').
7841 with_gnu_ld="$lt_cv_prog_gnu_ld"
7844 old_CFLAGS="$CFLAGS"
7846 # Set sane defaults for various variables
7847 test -z "$CC" && CC=cc
7848 test -z "$LTCC" && LTCC=$CC
7849 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7850 test -z "$LD" && LD=ld
7851 test -z "$ac_objext" && ac_objext=o
7853 for cc_temp in $compiler""; do
7855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7861 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7864 # Only perform the check for file, if the check method requires it
7865 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7866 case $deplibs_check_method in
7868 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7870 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7871 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7872 $as_echo_n "(cached) " >&6
7876 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7879 lt_save_MAGIC_CMD="$MAGIC_CMD"
7880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7881 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7882 for ac_dir in $ac_dummy; do
7884 test -z "$ac_dir" && ac_dir=.
7885 if test -f $ac_dir/${ac_tool_prefix}file; then
7886 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7887 if test -n "$file_magic_test_file"; then
7888 case $deplibs_check_method in
7890 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7892 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7893 $EGREP "$file_magic_regex" > /dev/null; then
7898 *** Warning: the command libtool uses to detect shared libraries,
7899 *** $file_magic_cmd, produces output that libtool cannot recognize.
7900 *** The result is that libtool may fail to recognize shared libraries
7901 *** as such. This will affect the creation of libtool libraries that
7902 *** depend on shared libraries, but programs linked with such libtool
7903 *** libraries will work regardless of this problem. Nevertheless, you
7904 *** may want to report the problem to your system manager and/or to
7905 *** bug-libtool@gnu.org
7915 MAGIC_CMD="$lt_save_MAGIC_CMD"
7920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7921 if test -n "$MAGIC_CMD"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7923 $as_echo "$MAGIC_CMD" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7933 if test -z "$lt_cv_path_MAGIC_CMD"; then
7934 if test -n "$ac_tool_prefix"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7936 $as_echo_n "checking for file... " >&6; }
7937 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7938 $as_echo_n "(cached) " >&6
7942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7945 lt_save_MAGIC_CMD="$MAGIC_CMD"
7946 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7947 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7948 for ac_dir in $ac_dummy; do
7950 test -z "$ac_dir" && ac_dir=.
7951 if test -f $ac_dir/file; then
7952 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7953 if test -n "$file_magic_test_file"; then
7954 case $deplibs_check_method in
7956 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7958 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7959 $EGREP "$file_magic_regex" > /dev/null; then
7964 *** Warning: the command libtool uses to detect shared libraries,
7965 *** $file_magic_cmd, produces output that libtool cannot recognize.
7966 *** The result is that libtool may fail to recognize shared libraries
7967 *** as such. This will affect the creation of libtool libraries that
7968 *** depend on shared libraries, but programs linked with such libtool
7969 *** libraries will work regardless of this problem. Nevertheless, you
7970 *** may want to report the problem to your system manager and/or to
7971 *** bug-libtool@gnu.org
7981 MAGIC_CMD="$lt_save_MAGIC_CMD"
7986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7987 if test -n "$MAGIC_CMD"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7989 $as_echo "$MAGIC_CMD" >&6; }
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
8005 # Use C for the default configuration in the libtool script
8009 ac_cpp='$CPP $CPPFLAGS'
8010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8015 # Source file extension for C test sources.
8018 # Object file extension for compiled C test sources.
8022 # Code to be used in simple compile tests
8023 lt_simple_compile_test_code="int some_variable = 0;"
8025 # Code to be used in simple link tests
8026 lt_simple_link_test_code='int main(){return(0);}'
8034 # If no C compiler was specified, use CC.
8037 # If no C compiler flags were specified, use CFLAGS.
8038 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8040 # Allow CC to be a program name with arguments.
8043 # Save the default compiler, since it gets overwritten when the other
8044 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8045 compiler_DEFAULT=$CC
8047 # save warnings/boilerplate of simple test code
8048 ac_outfile=conftest.$ac_objext
8049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8051 _lt_compiler_boilerplate=`cat conftest.err`
8054 ac_outfile=conftest.$ac_objext
8055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8057 _lt_linker_boilerplate=`cat conftest.err`
8062 ## There is no encapsulation within the following macros, do not change
8063 ## the running order or otherwise move them around unless you know exactly
8064 ## what you are doing...
8065 if test -n "$compiler"; then
8067 lt_prog_compiler_no_builtin_flag=
8069 if test "$GCC" = yes; then
8070 case $cc_basename in
8072 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8074 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8078 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8079 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8080 $as_echo_n "(cached) " >&6
8082 lt_cv_prog_compiler_rtti_exceptions=no
8083 ac_outfile=conftest.$ac_objext
8084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8085 lt_compiler_flag="-fno-rtti -fno-exceptions"
8086 # Insert the option either (1) after the last *FLAGS variable, or
8087 # (2) before a word containing "conftest.", or (3) at the end.
8088 # Note that $ac_compile itself does not contain backslashes and begins
8089 # with a dollar sign (not a hyphen), so the echo should work correctly.
8090 # The option is referenced via a variable to avoid confusing sed.
8091 lt_compile=`echo "$ac_compile" | $SED \
8092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8094 -e 's:$: $lt_compiler_flag:'`
8095 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8096 (eval "$lt_compile" 2>conftest.err)
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 if (exit $ac_status) && test -s "$ac_outfile"; then
8101 # The compiler can only warn and ignore the option if not recognized
8102 # So say no if there are warnings other than the usual output.
8103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8106 lt_cv_prog_compiler_rtti_exceptions=yes
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8113 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8115 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8116 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8128 lt_prog_compiler_wl=
8129 lt_prog_compiler_pic=
8130 lt_prog_compiler_static=
8133 if test "$GCC" = yes; then
8134 lt_prog_compiler_wl='-Wl,'
8135 lt_prog_compiler_static='-static'
8139 # All AIX code is PIC.
8140 if test "$host_cpu" = ia64; then
8141 # AIX 5 now supports IA64 processor
8142 lt_prog_compiler_static='-Bstatic'
8149 # see comment about AmigaOS4 .so support
8150 lt_prog_compiler_pic='-fPIC'
8153 # FIXME: we need at least 68020 code to build shared libraries, but
8154 # adding the `-m68020' flag to GCC prevents building anything better,
8156 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8161 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8162 # PIC is the default for these OSes.
8165 mingw* | cygwin* | pw32* | os2* | cegcc*)
8166 # This hack is so that the source file can tell whether it is being
8167 # built for inclusion in a dll (and should export symbols for example).
8168 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8169 # (--disable-auto-import) libraries
8170 lt_prog_compiler_pic='-DDLL_EXPORT'
8173 darwin* | rhapsody*)
8174 # PIC is the default on this platform
8175 # Common symbols not allowed in MH_DYLIB files
8176 lt_prog_compiler_pic='-fno-common'
8180 # PIC is the default for Haiku.
8181 # The "-static" flag exists, but is broken.
8182 lt_prog_compiler_static=
8186 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8187 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8188 # sets the default TLS model and affects inlining.
8194 lt_prog_compiler_pic='-fPIC'
8200 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8201 # Instead, we relocate shared libraries at runtime.
8205 # Just because we use GCC doesn't mean we suddenly get shared libraries
8206 # on systems that don't support them.
8207 lt_prog_compiler_can_build_shared=no
8212 # QNX uses GNU C++, but need to define -shared option too, otherwise
8214 lt_prog_compiler_pic='-fPIC -shared'
8218 if test -d /usr/nec; then
8219 lt_prog_compiler_pic=-Kconform_pic
8224 lt_prog_compiler_pic='-fPIC'
8228 case $cc_basename in
8229 nvcc*) # Cuda Compiler Driver 2.2
8230 lt_prog_compiler_wl='-Xlinker '
8231 if test -n "$lt_prog_compiler_pic"; then
8232 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8237 # PORTME Check for flag to pass linker flags through the system compiler.
8240 lt_prog_compiler_wl='-Wl,'
8241 if test "$host_cpu" = ia64; then
8242 # AIX 5 now supports IA64 processor
8243 lt_prog_compiler_static='-Bstatic'
8245 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8249 mingw* | cygwin* | pw32* | os2* | cegcc*)
8250 # This hack is so that the source file can tell whether it is being
8251 # built for inclusion in a dll (and should export symbols for example).
8252 lt_prog_compiler_pic='-DDLL_EXPORT'
8255 hpux9* | hpux10* | hpux11*)
8256 lt_prog_compiler_wl='-Wl,'
8257 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8264 lt_prog_compiler_pic='+Z'
8267 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8268 lt_prog_compiler_static='${wl}-a ${wl}archive'
8271 irix5* | irix6* | nonstopux*)
8272 lt_prog_compiler_wl='-Wl,'
8273 # PIC (with -KPIC) is the default.
8274 lt_prog_compiler_static='-non_shared'
8277 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8278 case $cc_basename in
8279 # old Intel for x86_64 which still supported -KPIC.
8281 lt_prog_compiler_wl='-Wl,'
8282 lt_prog_compiler_pic='-KPIC'
8283 lt_prog_compiler_static='-static'
8285 # icc used to be incompatible with GCC.
8286 # ICC 10 doesn't accept -KPIC any more.
8288 lt_prog_compiler_wl='-Wl,'
8289 lt_prog_compiler_pic='-fPIC'
8290 lt_prog_compiler_static='-static'
8292 # Lahey Fortran 8.1.
8294 lt_prog_compiler_wl='-Wl,'
8295 lt_prog_compiler_pic='--shared'
8296 lt_prog_compiler_static='--static'
8299 # NAG Fortran compiler
8300 lt_prog_compiler_wl='-Wl,-Wl,,'
8301 lt_prog_compiler_pic='-PIC'
8302 lt_prog_compiler_static='-Bstatic'
8304 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8305 # Portland Group compilers (*not* the Pentium gcc compiler,
8306 # which looks to be a dead project)
8307 lt_prog_compiler_wl='-Wl,'
8308 lt_prog_compiler_pic='-fpic'
8309 lt_prog_compiler_static='-Bstatic'
8312 lt_prog_compiler_wl='-Wl,'
8313 # All Alpha code is PIC.
8314 lt_prog_compiler_static='-non_shared'
8316 xl* | bgxl* | bgf* | mpixl*)
8317 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_pic='-qpic'
8320 lt_prog_compiler_static='-qstaticlink'
8323 case `$CC -V 2>&1 | sed 5q` in
8324 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8325 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8326 lt_prog_compiler_pic='-KPIC'
8327 lt_prog_compiler_static='-Bstatic'
8328 lt_prog_compiler_wl=''
8330 *Sun\ F* | *Sun*Fortran*)
8331 lt_prog_compiler_pic='-KPIC'
8332 lt_prog_compiler_static='-Bstatic'
8333 lt_prog_compiler_wl='-Qoption ld '
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 lt_prog_compiler_wl='-Wl,'
8341 *Intel*\ [CF]*Compiler*)
8342 lt_prog_compiler_wl='-Wl,'
8343 lt_prog_compiler_pic='-fPIC'
8344 lt_prog_compiler_static='-static'
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='-fpic'
8349 lt_prog_compiler_static='-Bstatic'
8357 lt_prog_compiler_pic='-KPIC'
8358 lt_prog_compiler_static='-Bstatic'
8362 # QNX uses GNU C++, but need to define -shared option too, otherwise
8364 lt_prog_compiler_pic='-fPIC -shared'
8367 osf3* | osf4* | osf5*)
8368 lt_prog_compiler_wl='-Wl,'
8369 # All OSF/1 code is PIC.
8370 lt_prog_compiler_static='-non_shared'
8374 lt_prog_compiler_static='-non_shared'
8378 lt_prog_compiler_pic='-KPIC'
8379 lt_prog_compiler_static='-Bstatic'
8380 case $cc_basename in
8381 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8382 lt_prog_compiler_wl='-Qoption ld ';;
8384 lt_prog_compiler_wl='-Wl,';;
8389 lt_prog_compiler_wl='-Qoption ld '
8390 lt_prog_compiler_pic='-PIC'
8391 lt_prog_compiler_static='-Bstatic'
8394 sysv4 | sysv4.2uw2* | sysv4.3*)
8395 lt_prog_compiler_wl='-Wl,'
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8401 if test -d /usr/nec ;then
8402 lt_prog_compiler_pic='-Kconform_pic'
8403 lt_prog_compiler_static='-Bstatic'
8407 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_pic='-KPIC'
8410 lt_prog_compiler_static='-Bstatic'
8414 lt_prog_compiler_wl='-Wl,'
8415 lt_prog_compiler_can_build_shared=no
8419 lt_prog_compiler_pic='-pic'
8420 lt_prog_compiler_static='-Bstatic'
8424 lt_prog_compiler_can_build_shared=no
8430 # For platforms which do not support PIC, -DPIC is meaningless:
8432 lt_prog_compiler_pic=
8435 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8440 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8441 if ${lt_cv_prog_compiler_pic+:} false; then :
8442 $as_echo_n "(cached) " >&6
8444 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8447 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8448 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8451 # Check to make sure the PIC flag actually works.
8453 if test -n "$lt_prog_compiler_pic"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8455 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8456 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8457 $as_echo_n "(cached) " >&6
8459 lt_cv_prog_compiler_pic_works=no
8460 ac_outfile=conftest.$ac_objext
8461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8462 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8463 # Insert the option either (1) after the last *FLAGS variable, or
8464 # (2) before a word containing "conftest.", or (3) at the end.
8465 # Note that $ac_compile itself does not contain backslashes and begins
8466 # with a dollar sign (not a hyphen), so the echo should work correctly.
8467 # The option is referenced via a variable to avoid confusing sed.
8468 lt_compile=`echo "$ac_compile" | $SED \
8469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8471 -e 's:$: $lt_compiler_flag:'`
8472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8473 (eval "$lt_compile" 2>conftest.err)
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 if (exit $ac_status) && test -s "$ac_outfile"; then
8478 # The compiler can only warn and ignore the option if not recognized
8479 # So say no if there are warnings other than the usual output.
8480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8482 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8483 lt_cv_prog_compiler_pic_works=yes
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8490 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8492 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8493 case $lt_prog_compiler_pic in
8495 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8498 lt_prog_compiler_pic=
8499 lt_prog_compiler_can_build_shared=no
8515 # Check to make sure the static flag actually works.
8517 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8519 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8520 if ${lt_cv_prog_compiler_static_works+:} false; then :
8521 $as_echo_n "(cached) " >&6
8523 lt_cv_prog_compiler_static_works=no
8524 save_LDFLAGS="$LDFLAGS"
8525 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8526 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8527 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8528 # The linker can only warn and ignore the option if not recognized
8529 # So say no if there are warnings
8530 if test -s conftest.err; then
8531 # Append any errors to the config.log.
8532 cat conftest.err 1>&5
8533 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8535 if diff conftest.exp conftest.er2 >/dev/null; then
8536 lt_cv_prog_compiler_static_works=yes
8539 lt_cv_prog_compiler_static_works=yes
8543 LDFLAGS="$save_LDFLAGS"
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8547 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8549 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8552 lt_prog_compiler_static=
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8562 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8563 if ${lt_cv_prog_compiler_c_o+:} false; then :
8564 $as_echo_n "(cached) " >&6
8566 lt_cv_prog_compiler_c_o=no
8567 $RM -r conftest 2>/dev/null
8571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8573 lt_compiler_flag="-o out/conftest2.$ac_objext"
8574 # Insert the option either (1) after the last *FLAGS variable, or
8575 # (2) before a word containing "conftest.", or (3) at the end.
8576 # Note that $ac_compile itself does not contain backslashes and begins
8577 # with a dollar sign (not a hyphen), so the echo should work correctly.
8578 lt_compile=`echo "$ac_compile" | $SED \
8579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8581 -e 's:$: $lt_compiler_flag:'`
8582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8583 (eval "$lt_compile" 2>out/conftest.err)
8585 cat out/conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8589 # The compiler can only warn and ignore the option if not recognized
8590 # So say no if there are warnings
8591 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8592 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8593 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8594 lt_cv_prog_compiler_c_o=yes
8599 # SGI C++ compiler will create directory out/ii_files/ for
8600 # template instantiation
8601 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8602 $RM out/* && rmdir out
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8609 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8617 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8618 if ${lt_cv_prog_compiler_c_o+:} false; then :
8619 $as_echo_n "(cached) " >&6
8621 lt_cv_prog_compiler_c_o=no
8622 $RM -r conftest 2>/dev/null
8626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8628 lt_compiler_flag="-o out/conftest2.$ac_objext"
8629 # Insert the option either (1) after the last *FLAGS variable, or
8630 # (2) before a word containing "conftest.", or (3) at the end.
8631 # Note that $ac_compile itself does not contain backslashes and begins
8632 # with a dollar sign (not a hyphen), so the echo should work correctly.
8633 lt_compile=`echo "$ac_compile" | $SED \
8634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8636 -e 's:$: $lt_compiler_flag:'`
8637 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8638 (eval "$lt_compile" 2>out/conftest.err)
8640 cat out/conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8644 # The compiler can only warn and ignore the option if not recognized
8645 # So say no if there are warnings
8646 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8647 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8648 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8649 lt_cv_prog_compiler_c_o=yes
8654 # SGI C++ compiler will create directory out/ii_files/ for
8655 # template instantiation
8656 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8657 $RM out/* && rmdir out
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8664 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8669 hard_links="nottested"
8670 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8671 # do not overwrite the value of need_locks provided by the user
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8673 $as_echo_n "checking if we can lock with hard links... " >&6; }
8676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8678 ln conftest.a conftest.b 2>&5 || hard_links=no
8679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8681 $as_echo "$hard_links" >&6; }
8682 if test "$hard_links" = no; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8684 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8697 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8700 allow_undefined_flag=
8701 always_export_symbols=no
8703 archive_expsym_cmds=
8704 compiler_needs_object=no
8705 enable_shared_with_static_runtimes=no
8706 export_dynamic_flag_spec=
8707 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8708 hardcode_automatic=no
8710 hardcode_direct_absolute=no
8711 hardcode_libdir_flag_spec=
8712 hardcode_libdir_separator=
8714 hardcode_shlibpath_var=unsupported
8716 link_all_deplibs=unknown
8719 old_archive_from_new_cmds=
8720 old_archive_from_expsyms_cmds=
8721 thread_safe_flag_spec=
8722 whole_archive_flag_spec=
8723 # include_expsyms should be a list of space-separated symbols to be *always*
8724 # included in the symbol list
8726 # exclude_expsyms can be an extended regexp of symbols to exclude
8727 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8728 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8729 # as well as any symbol that contains `d'.
8730 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8731 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8732 # platforms (ab)use it in PIC code, but their linkers get confused if
8733 # the symbol is explicitly referenced. Since portable code cannot
8734 # rely on this symbol name, it's probably fine to never include it in
8735 # preloaded symbol tables.
8736 # Exclude shared library initialization/finalization symbols.
8737 extract_expsyms_cmds=
8740 cygwin* | mingw* | pw32* | cegcc*)
8741 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8742 # When not using gcc, we currently assume that we are using
8743 # Microsoft Visual C++.
8744 if test "$GCC" != yes; then
8749 # we just hope/assume this is gcc and not c89 (= MSVC++)
8755 linux* | k*bsd*-gnu | gnu*)
8762 # On some targets, GNU ld is compatible enough with the native linker
8763 # that we're better off using the native interface for both.
8764 lt_use_gnu_ld_interface=no
8765 if test "$with_gnu_ld" = yes; then
8768 # The AIX port of GNU ld has always aspired to compatibility
8769 # with the native linker. However, as the warning in the GNU ld
8770 # block says, versions before 2.19.5* couldn't really create working
8771 # shared libraries, regardless of the interface used.
8772 case `$LD -v 2>&1` in
8773 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8774 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8775 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8777 lt_use_gnu_ld_interface=yes
8782 lt_use_gnu_ld_interface=yes
8787 if test "$lt_use_gnu_ld_interface" = yes; then
8788 # If archive_cmds runs LD, not CC, wlarc should be empty
8791 # Set some defaults for GNU ld with shared library support. These
8792 # are reset later if shared libraries are not supported. Putting them
8793 # here allows them to be overridden if necessary.
8794 runpath_var=LD_RUN_PATH
8795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8796 export_dynamic_flag_spec='${wl}--export-dynamic'
8797 # ancient GNU ld didn't support --whole-archive et. al.
8798 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8799 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8801 whole_archive_flag_spec=
8803 supports_anon_versioning=no
8804 case `$LD -v 2>&1` in
8805 *GNU\ gold*) supports_anon_versioning=yes ;;
8806 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8807 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8808 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8809 *\ 2.11.*) ;; # other 2.11 versions
8810 *) supports_anon_versioning=yes ;;
8813 # See if GNU ld supports shared libraries.
8816 # On AIX/PPC, the GNU linker is very broken
8817 if test "$host_cpu" != ia64; then
8821 *** Warning: the GNU linker, at least up to release 2.19, is reported
8822 *** to be unable to reliably create shared libraries on AIX.
8823 *** Therefore, libtool is disabling shared libraries support. If you
8824 *** really care for shared libraries, you may want to install binutils
8825 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8826 *** You will then need to restart the configuration process.
8835 # see comment about AmigaOS4 .so support
8836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 archive_expsym_cmds=''
8840 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)'
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 hardcode_minus_L=yes
8848 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8849 allow_undefined_flag=unsupported
8850 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8851 # support --undefined. This deserves some investigation. FIXME
8852 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8858 cygwin* | mingw* | pw32* | cegcc*)
8859 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8860 # as there is no search path for DLLs.
8861 hardcode_libdir_flag_spec='-L$libdir'
8862 export_dynamic_flag_spec='${wl}--export-all-symbols'
8863 allow_undefined_flag=unsupported
8864 always_export_symbols=no
8865 enable_shared_with_static_runtimes=yes
8866 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'
8867 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8869 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8871 # If the export-symbols file already is a .def file (1st line
8872 # is EXPORTS), use it as is; otherwise, prepend...
8873 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8874 cp $export_symbols $output_objdir/$soname.def;
8876 echo EXPORTS > $output_objdir/$soname.def;
8877 cat $export_symbols >> $output_objdir/$soname.def;
8879 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8887 link_all_deplibs=yes
8892 hardcode_shlibpath_var=no
8893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8894 export_dynamic_flag_spec='${wl}-E'
8895 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8896 # Instead, shared libraries are loaded at an image base (0x10000000 by
8897 # default) and relocated if they conflict, which is a slow very memory
8898 # consuming and fragmenting process. To avoid this, we pick a random,
8899 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8900 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8901 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8902 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'
8905 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8907 if test "$host_os" = linux-dietlibc; then
8908 case $cc_basename in
8909 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8912 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8913 && test "$tmp_diet" = no
8915 tmp_addflag=' $pic_flag'
8916 tmp_sharedflag='-shared'
8917 case $cc_basename,$host_cpu in
8918 pgcc*) # Portland Group C compiler
8919 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'
8920 tmp_addflag=' $pic_flag'
8922 pgf77* | pgf90* | pgf95* | pgfortran*)
8923 # Portland Group f77 and f90 compilers
8924 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'
8925 tmp_addflag=' $pic_flag -Mnomain' ;;
8926 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8927 tmp_addflag=' -i_dynamic' ;;
8928 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8929 tmp_addflag=' -i_dynamic -nofor_main' ;;
8930 ifc* | ifort*) # Intel Fortran compiler
8931 tmp_addflag=' -nofor_main' ;;
8932 lf95*) # Lahey Fortran 8.1
8933 whole_archive_flag_spec=
8934 tmp_sharedflag='--shared' ;;
8935 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8936 tmp_sharedflag='-qmkshrobj'
8938 nvcc*) # Cuda Compiler Driver 2.2
8939 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'
8940 compiler_needs_object=yes
8943 case `$CC -V 2>&1 | sed 5q` in
8944 *Sun\ C*) # Sun C 5.9
8945 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'
8946 compiler_needs_object=yes
8947 tmp_sharedflag='-G' ;;
8948 *Sun\ F*) # Sun Fortran 8.3
8949 tmp_sharedflag='-G' ;;
8951 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 if test "x$supports_anon_versioning" = xyes; then
8954 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8956 echo "local: *; };" >> $output_objdir/$libname.ver~
8957 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8960 case $cc_basename in
8961 xlf* | bgf* | bgxlf* | mpixlf*)
8962 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8963 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8965 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8966 if test "x$supports_anon_versioning" = xyes; then
8967 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8969 echo "local: *; };" >> $output_objdir/$libname.ver~
8970 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8979 netbsd* | netbsdelf*-gnu)
8980 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8981 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8984 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8990 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8994 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8995 *** create shared libraries on Solaris systems. Therefore, libtool
8996 *** is disabling shared libraries support. We urge you to upgrade GNU
8997 *** binutils to release 2.9.1 or newer. Another option is to modify
8998 *** your PATH or compiler configuration so that the native linker is
8999 *** used, and then restart.
9002 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9011 case `$LD -v 2>&1` in
9012 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9016 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9017 *** reliably create shared libraries on SCO systems. Therefore, libtool
9018 *** is disabling shared libraries support. We urge you to upgrade GNU
9019 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9020 *** your PATH or compiler configuration so that the native linker is
9021 *** used, and then restart.
9026 # For security reasons, it is highly recommended that you always
9027 # use absolute paths for naming shared libraries, and exclude the
9028 # DT_RUNPATH tag from executables and libraries. But doing so
9029 # requires that you compile everything twice, which is a pain.
9030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9042 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9045 hardcode_shlibpath_var=no
9049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9050 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9058 if test "$ld_shlibs" = no; then
9060 hardcode_libdir_flag_spec=
9061 export_dynamic_flag_spec=
9062 whole_archive_flag_spec=
9065 # PORTME fill in a description of your system's linker (not GNU ld)
9068 allow_undefined_flag=unsupported
9069 always_export_symbols=yes
9070 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'
9071 # Note: this linker hardcodes the directories in LIBPATH if there
9072 # are no directories specified by -L.
9073 hardcode_minus_L=yes
9074 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9075 # Neither direct hardcoding nor static linking is supported with a
9077 hardcode_direct=unsupported
9082 if test "$host_cpu" = ia64; then
9083 # On IA64, the linker does run time linking by default, so we don't
9084 # have to do anything special.
9085 aix_use_runtimelinking=no
9086 exp_sym_flag='-Bexport'
9089 # If we're using GNU nm, then we don't want the "-C" option.
9090 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9091 # Also, AIX nm treats weak defined symbols like other global
9092 # defined symbols, whereas GNU nm marks them as "W".
9093 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9094 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'
9096 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'
9098 aix_use_runtimelinking=no
9100 # Test if we are trying to use run time linking or normal
9101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9102 # need to do runtime linking.
9103 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9104 for ld_flag in $LDFLAGS; do
9105 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9106 aix_use_runtimelinking=yes
9113 exp_sym_flag='-bexport'
9114 no_entry_flag='-bnoentry'
9117 # When large executables or shared objects are built, AIX ld can
9118 # have problems creating the table of contents. If linking a library
9119 # or program results in "error TOC overflow" add -mminimal-toc to
9120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9125 hardcode_direct_absolute=yes
9126 hardcode_libdir_separator=':'
9127 link_all_deplibs=yes
9128 file_list_spec='${wl}-f,'
9130 if test "$GCC" = yes; then
9131 case $host_os in aix4.[012]|aix4.[012].*)
9132 # We only want to do this on AIX 4.2 and lower, the check
9133 # below for broken collect2 doesn't work under 4.3+
9134 collect2name=`${CC} -print-prog-name=collect2`
9135 if test -f "$collect2name" &&
9136 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9138 # We have reworked collect2
9141 # We have old collect2
9142 hardcode_direct=unsupported
9143 # It fails to find uninstalled libraries when the uninstalled
9144 # path is not listed in the libpath. Setting hardcode_minus_L
9145 # to unsupported forces relinking
9146 hardcode_minus_L=yes
9147 hardcode_libdir_flag_spec='-L$libdir'
9148 hardcode_libdir_separator=
9152 shared_flag='-shared'
9153 if test "$aix_use_runtimelinking" = yes; then
9154 shared_flag="$shared_flag "'${wl}-G'
9159 if test "$host_cpu" = ia64; then
9160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9161 # chokes on -Wl,-G. The following line is correct:
9164 if test "$aix_use_runtimelinking" = yes; then
9165 shared_flag='${wl}-G'
9167 shared_flag='${wl}-bM:SRE'
9172 export_dynamic_flag_spec='${wl}-bexpall'
9173 # It seems that -bexpall does not export symbols beginning with
9174 # underscore (_), so it is better to generate a list of symbols to export.
9175 always_export_symbols=yes
9176 if test "$aix_use_runtimelinking" = yes; then
9177 # Warning - without using the other runtime loading flags (-brtl),
9178 # -berok will link without error, but may produce a broken library.
9179 allow_undefined_flag='-berok'
9180 # Determine the default libpath from the value encoded in an
9182 if test "${lt_cv_aix_libpath+set}" = set; then
9183 aix_libpath=$lt_cv_aix_libpath
9185 if ${lt_cv_aix_libpath_+:} false; then :
9186 $as_echo_n "(cached) " >&6
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9199 if ac_fn_c_try_link "$LINENO"; then :
9201 lt_aix_libpath_sed='
9202 /Import File Strings/,/^$/ {
9204 s/^0 *\([^ ]*\) *$/\1/
9208 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9209 # Check for a 64-bit object if we didn't find anything.
9210 if test -z "$lt_cv_aix_libpath_"; then
9211 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9214 rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9216 if test -z "$lt_cv_aix_libpath_"; then
9217 lt_cv_aix_libpath_="/usr/lib:/lib"
9222 aix_libpath=$lt_cv_aix_libpath_
9225 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9226 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"
9228 if test "$host_cpu" = ia64; then
9229 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9230 allow_undefined_flag="-z nodefs"
9231 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"
9233 # Determine the default libpath from the value encoded in an
9235 if test "${lt_cv_aix_libpath+set}" = set; then
9236 aix_libpath=$lt_cv_aix_libpath
9238 if ${lt_cv_aix_libpath_+:} false; then :
9239 $as_echo_n "(cached) " >&6
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9252 if ac_fn_c_try_link "$LINENO"; then :
9254 lt_aix_libpath_sed='
9255 /Import File Strings/,/^$/ {
9257 s/^0 *\([^ ]*\) *$/\1/
9261 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9262 # Check for a 64-bit object if we didn't find anything.
9263 if test -z "$lt_cv_aix_libpath_"; then
9264 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9267 rm -f core conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
9269 if test -z "$lt_cv_aix_libpath_"; then
9270 lt_cv_aix_libpath_="/usr/lib:/lib"
9275 aix_libpath=$lt_cv_aix_libpath_
9278 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9279 # Warning - without using the other run time loading flags,
9280 # -berok will link without error, but may produce a broken library.
9281 no_undefined_flag=' ${wl}-bernotok'
9282 allow_undefined_flag=' ${wl}-berok'
9283 if test "$with_gnu_ld" = yes; then
9284 # We only use this code for GNU lds that support --whole-archive.
9285 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9287 # Exported symbols can be pulled into shared objects from archives
9288 whole_archive_flag_spec='$convenience'
9290 archive_cmds_need_lc=yes
9291 # This is similar to how AIX traditionally builds its shared libraries.
9292 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'
9300 # see comment about AmigaOS4 .so support
9301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302 archive_expsym_cmds=''
9305 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)'
9306 hardcode_libdir_flag_spec='-L$libdir'
9307 hardcode_minus_L=yes
9313 export_dynamic_flag_spec=-rdynamic
9316 cygwin* | mingw* | pw32* | cegcc*)
9317 # When not using gcc, we currently assume that we are using
9318 # Microsoft Visual C++.
9319 # hardcode_libdir_flag_spec is actually meaningless, as there is
9320 # no search path for DLLs.
9321 case $cc_basename in
9324 hardcode_libdir_flag_spec=' '
9325 allow_undefined_flag=unsupported
9326 always_export_symbols=yes
9328 # Tell ltmain to make .lib files, not .a files.
9330 # Tell ltmain to make .dll files, not .so files.
9332 # FIXME: Setting linknames here is a bad hack.
9333 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9334 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9335 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9337 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9339 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9341 # The linker will not automatically build a static lib if we build a DLL.
9342 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9343 enable_shared_with_static_runtimes=yes
9344 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9345 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9347 old_postinstall_cmds='chmod 644 $oldlib'
9348 postlink_cmds='lt_outputfile="@OUTPUT@"~
9349 lt_tool_outputfile="@TOOL_OUTPUT@"~
9350 case $lt_outputfile in
9353 lt_outputfile="$lt_outputfile.exe"
9354 lt_tool_outputfile="$lt_tool_outputfile.exe"
9357 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9358 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9359 $RM "$lt_outputfile.manifest";
9363 # Assume MSVC wrapper
9364 hardcode_libdir_flag_spec=' '
9365 allow_undefined_flag=unsupported
9366 # Tell ltmain to make .lib files, not .a files.
9368 # Tell ltmain to make .dll files, not .so files.
9370 # FIXME: Setting linknames here is a bad hack.
9371 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9372 # The linker will automatically build a .lib file if we build a DLL.
9373 old_archive_from_new_cmds='true'
9374 # FIXME: Should let the user specify the lib program.
9375 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9376 enable_shared_with_static_runtimes=yes
9381 darwin* | rhapsody*)
9384 archive_cmds_need_lc=no
9386 hardcode_automatic=yes
9387 hardcode_shlibpath_var=unsupported
9388 if test "$lt_cv_ld_force_load" = "yes"; then
9389 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\"`'
9392 whole_archive_flag_spec=''
9394 link_all_deplibs=yes
9395 allow_undefined_flag="$_lt_dar_allow_undefined"
9396 case $cc_basename in
9397 ifort*) _lt_dar_can_shared=yes ;;
9398 *) _lt_dar_can_shared=$GCC ;;
9400 if test "$_lt_dar_can_shared" = "yes"; then
9401 output_verbose_link_cmd=func_echo_all
9402 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9403 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9404 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}"
9405 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}"
9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 hardcode_shlibpath_var=no
9419 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9420 # support. Future versions do this automatically, but an explicit c++rt0.o
9421 # does not break anything, and helps significantly (at the cost of a little
9424 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9425 hardcode_libdir_flag_spec='-R$libdir'
9427 hardcode_shlibpath_var=no
9430 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9434 hardcode_minus_L=yes
9435 hardcode_shlibpath_var=no
9438 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9439 freebsd* | dragonfly*)
9440 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9441 hardcode_libdir_flag_spec='-R$libdir'
9443 hardcode_shlibpath_var=no
9447 if test "$GCC" = yes; then
9448 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'
9450 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'
9452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9453 hardcode_libdir_separator=:
9456 # hardcode_minus_L: Not really in the search PATH,
9457 # but as the default location of the library.
9458 hardcode_minus_L=yes
9459 export_dynamic_flag_spec='${wl}-E'
9463 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9464 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9468 if test "$with_gnu_ld" = no; then
9469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9470 hardcode_libdir_separator=:
9472 hardcode_direct_absolute=yes
9473 export_dynamic_flag_spec='${wl}-E'
9474 # hardcode_minus_L: Not really in the search PATH,
9475 # but as the default location of the library.
9476 hardcode_minus_L=yes
9481 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9484 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9487 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9490 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9499 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9503 # Older versions of the 11.00 compiler do not understand -b yet
9504 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9506 $as_echo_n "checking if $CC understands -b... " >&6; }
9507 if ${lt_cv_prog_compiler__b+:} false; then :
9508 $as_echo_n "(cached) " >&6
9510 lt_cv_prog_compiler__b=no
9511 save_LDFLAGS="$LDFLAGS"
9512 LDFLAGS="$LDFLAGS -b"
9513 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9515 # The linker can only warn and ignore the option if not recognized
9516 # So say no if there are warnings
9517 if test -s conftest.err; then
9518 # Append any errors to the config.log.
9519 cat conftest.err 1>&5
9520 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9522 if diff conftest.exp conftest.er2 >/dev/null; then
9523 lt_cv_prog_compiler__b=yes
9526 lt_cv_prog_compiler__b=yes
9530 LDFLAGS="$save_LDFLAGS"
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9534 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9536 if test x"$lt_cv_prog_compiler__b" = xyes; then
9537 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9539 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9545 if test "$with_gnu_ld" = no; then
9546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9547 hardcode_libdir_separator=:
9552 hardcode_shlibpath_var=no
9556 hardcode_direct_absolute=yes
9557 export_dynamic_flag_spec='${wl}-E'
9559 # hardcode_minus_L: Not really in the search PATH,
9560 # but as the default location of the library.
9561 hardcode_minus_L=yes
9567 irix5* | irix6* | nonstopux*)
9568 if test "$GCC" = yes; then
9569 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'
9570 # Try to use the -exported_symbol ld option, if it does not
9571 # work, assume that -exports_file does not work either and
9572 # implicitly export all symbols.
9573 # This should be the same for all languages, so no per-tag cache variable.
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9575 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9576 if ${lt_cv_irix_exported_symbol+:} false; then :
9577 $as_echo_n "(cached) " >&6
9579 save_LDFLAGS="$LDFLAGS"
9580 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9583 int foo (void) { return 0; }
9585 if ac_fn_c_try_link "$LINENO"; then :
9586 lt_cv_irix_exported_symbol=yes
9588 lt_cv_irix_exported_symbol=no
9590 rm -f core conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
9592 LDFLAGS="$save_LDFLAGS"
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9595 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9596 if test "$lt_cv_irix_exported_symbol" = yes; then
9597 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'
9600 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'
9601 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'
9603 archive_cmds_need_lc='no'
9604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9605 hardcode_libdir_separator=:
9607 link_all_deplibs=yes
9610 netbsd* | netbsdelf*-gnu)
9611 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9614 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9616 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_shlibpath_var=no
9622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625 hardcode_libdir_separator=:
9626 hardcode_shlibpath_var=no
9633 if test -f /usr/libexec/ld.so; then
9635 hardcode_shlibpath_var=no
9636 hardcode_direct_absolute=yes
9637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9639 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9640 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9641 export_dynamic_flag_spec='${wl}-E'
9644 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9646 hardcode_libdir_flag_spec='-R$libdir'
9649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9650 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9660 hardcode_libdir_flag_spec='-L$libdir'
9661 hardcode_minus_L=yes
9662 allow_undefined_flag=unsupported
9663 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'
9664 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9668 if test "$GCC" = yes; then
9669 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9670 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'
9672 allow_undefined_flag=' -expect_unresolved \*'
9673 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'
9675 archive_cmds_need_lc='no'
9676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9677 hardcode_libdir_separator=:
9680 osf4* | osf5*) # as osf3* with the addition of -msym flag
9681 if test "$GCC" = yes; then
9682 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9683 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'
9684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9686 allow_undefined_flag=' -expect_unresolved \*'
9687 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'
9688 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~
9689 $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'
9691 # Both c and cxx compiler support -rpath directly
9692 hardcode_libdir_flag_spec='-rpath $libdir'
9694 archive_cmds_need_lc='no'
9695 hardcode_libdir_separator=:
9699 no_undefined_flag=' -z defs'
9700 if test "$GCC" = yes; then
9702 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9704 $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'
9706 case `$CC -V 2>&1` in
9709 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9715 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9717 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9721 hardcode_libdir_flag_spec='-R$libdir'
9722 hardcode_shlibpath_var=no
9724 solaris2.[0-5] | solaris2.[0-5].*) ;;
9726 # The compiler driver will combine and reorder linker options,
9727 # but understands `-z linker_flag'. GCC discards it without `$wl',
9728 # but is careful enough not to reorder.
9729 # Supported since Solaris 2.6 (maybe 2.5.1?)
9730 if test "$GCC" = yes; then
9731 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9733 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9737 link_all_deplibs=yes
9741 if test "x$host_vendor" = xsequent; then
9742 # Use $CC to link under sequent, because it throws in some extra .o
9743 # files that make .init and .fini sections work.
9744 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_minus_L=yes
9751 hardcode_shlibpath_var=no
9755 case $host_vendor in
9757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9758 hardcode_direct=yes # is this really true???
9761 ## LD is ld it makes a PLAMLIB
9762 ## CC just makes a GrossModule.
9763 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9764 reload_cmds='$CC -r -o $output$reload_objs'
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9772 runpath_var='LD_RUN_PATH'
9773 hardcode_shlibpath_var=no
9777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778 hardcode_shlibpath_var=no
9779 export_dynamic_flag_spec='-Bexport'
9783 if test -d /usr/nec; then
9784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785 hardcode_shlibpath_var=no
9786 runpath_var=LD_RUN_PATH
9787 hardcode_runpath_var=yes
9792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9793 no_undefined_flag='${wl}-z,text'
9794 archive_cmds_need_lc=no
9795 hardcode_shlibpath_var=no
9796 runpath_var='LD_RUN_PATH'
9798 if test "$GCC" = yes; then
9799 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9800 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9802 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9803 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9807 sysv5* | sco3.2v5* | sco5v6*)
9808 # Note: We can NOT use -z defs as we might desire, because we do not
9809 # link with -lc, and that would cause any symbols used from libc to
9810 # always be unresolved, which means just about no library would
9811 # ever link correctly. If we're not using GNU ld we use -z text
9812 # though, which does catch some bad symbols but isn't as heavy-handed
9814 no_undefined_flag='${wl}-z,text'
9815 allow_undefined_flag='${wl}-z,nodefs'
9816 archive_cmds_need_lc=no
9817 hardcode_shlibpath_var=no
9818 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9819 hardcode_libdir_separator=':'
9820 link_all_deplibs=yes
9821 export_dynamic_flag_spec='${wl}-Bexport'
9822 runpath_var='LD_RUN_PATH'
9824 if test "$GCC" = yes; then
9825 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9826 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9829 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9835 hardcode_libdir_flag_spec='-L$libdir'
9836 hardcode_shlibpath_var=no
9844 if test x$host_vendor = xsni; then
9846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9847 export_dynamic_flag_spec='${wl}-Blargedynsym'
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9854 $as_echo "$ld_shlibs" >&6; }
9855 test "$ld_shlibs" = no && can_build_shared=no
9857 with_gnu_ld=$with_gnu_ld
9874 # Do we need to explicitly link libc?
9876 case "x$archive_cmds_need_lc" in
9878 # Assume -lc should be added
9879 archive_cmds_need_lc=yes
9881 if test "$enable_shared" = yes && test "$GCC" = yes; then
9882 case $archive_cmds in
9884 # FIXME: we may have to deal with multi-command sequences.
9887 # Test whether the compiler implicitly links with -lc since on some
9888 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9889 # to ld, don't add -lc before -lgcc.
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9891 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9892 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9893 $as_echo_n "(cached) " >&6
9896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9899 (eval $ac_compile) 2>&5
9901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9902 test $ac_status = 0; } 2>conftest.err; then
9905 libobjs=conftest.$ac_objext
9907 wl=$lt_prog_compiler_wl
9908 pic_flag=$lt_prog_compiler_pic
9914 lt_save_allow_undefined_flag=$allow_undefined_flag
9915 allow_undefined_flag=
9916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9917 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9920 test $ac_status = 0; }
9922 lt_cv_archive_cmds_need_lc=no
9924 lt_cv_archive_cmds_need_lc=yes
9926 allow_undefined_flag=$lt_save_allow_undefined_flag
9928 cat conftest.err 1>&5
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9934 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9935 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10094 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10096 if test "$GCC" = yes; then
10098 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10099 *) lt_awk_arg="/^libraries:/" ;;
10102 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10103 *) lt_sed_strip_eq="s,=/,/,g" ;;
10105 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10106 case $lt_search_path_spec in
10108 # if the path contains ";" then we assume it to be the separator
10109 # otherwise default to the standard path separator (i.e. ":") - it is
10110 # assumed that no part of a normal pathname contains ";" but that should
10111 # okay in the real world where ";" in dirpaths is itself problematic.
10112 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10115 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10118 # Ok, now we have the path, separated by spaces, we can step through it
10119 # and add multilib dir if necessary.
10120 lt_tmp_lt_search_path_spec=
10121 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10122 for lt_sys_path in $lt_search_path_spec; do
10123 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10124 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10126 test -d "$lt_sys_path" && \
10127 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10130 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10131 BEGIN {RS=" "; FS="/|\n";} {
10134 for (lt_i = NF; lt_i > 0; lt_i--) {
10135 if ($lt_i != "" && $lt_i != ".") {
10136 if ($lt_i == "..") {
10139 if (lt_count == 0) {
10140 lt_foo="/" $lt_i lt_foo;
10147 if (lt_foo != "") { lt_freq[lt_foo]++; }
10148 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10150 # AWK program above erroneously prepends '/' to C:/dos/paths
10153 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10154 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10156 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10158 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10160 library_names_spec=
10161 libname_spec='lib$name'
10165 postuninstall_cmds=
10169 shlibpath_overrides_runpath=unknown
10171 dynamic_linker="$host_os ld.so"
10172 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10173 need_lib_prefix=unknown
10174 hardcode_into_libs=no
10176 # when you set need_version to no, make sure it does not cause -set_version
10177 # flags to be left without arguments
10178 need_version=unknown
10182 version_type=linux # correct to gnu/linux during the next big refactor
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10184 shlibpath_var=LIBPATH
10186 # AIX 3 has no versioning support, so we append a major version to the name.
10187 soname_spec='${libname}${release}${shared_ext}$major'
10191 version_type=linux # correct to gnu/linux during the next big refactor
10194 hardcode_into_libs=yes
10195 if test "$host_cpu" = ia64; then
10196 # AIX 5 supports IA64
10197 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10198 shlibpath_var=LD_LIBRARY_PATH
10200 # With GCC up to 2.95.x, collect2 would create an import file
10201 # for dependence libraries. The import file would start with
10202 # the line `#! .'. This would cause the generated library to
10203 # depend on `.', always an invalid library. This was fixed in
10204 # development snapshots of GCC prior to 3.0.
10206 aix4 | aix4.[01] | aix4.[01].*)
10207 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10209 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10212 can_build_shared=no
10216 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10217 # soname into executable. Probably we can add versioning support to
10218 # collect2, so additional links can be useful in future.
10219 if test "$aix_use_runtimelinking" = yes; then
10220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10221 # instead of lib<name>.a to let people know that these are not
10222 # typical AIX shared libraries.
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225 # We preserve .a as extension for shared libraries through AIX4.2
10226 # and later when we are not doing run time linking.
10227 library_names_spec='${libname}${release}.a $libname.a'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10230 shlibpath_var=LIBPATH
10237 # Since July 2007 AmigaOS4 officially supports .so libraries.
10238 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 library_names_spec='$libname.ixlibrary $libname.a'
10243 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10244 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'
10250 library_names_spec='${libname}${shared_ext}'
10251 dynamic_linker="$host_os ld.so"
10252 shlibpath_var=LIBRARY_PATH
10256 version_type=linux # correct to gnu/linux during the next big refactor
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10261 shlibpath_var=LD_LIBRARY_PATH
10262 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10263 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10264 # the default ld.so.conf also contains /usr/contrib/lib and
10265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10266 # libtool to hard-code these into programs
10269 cygwin* | mingw* | pw32* | cegcc*)
10270 version_type=windows
10275 case $GCC,$cc_basename in
10278 library_names_spec='$libname.dll.a'
10279 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10280 postinstall_cmds='base_file=`basename \${file}`~
10281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10282 dldir=$destdir/`dirname \$dlpath`~
10283 test -d \$dldir || mkdir -p \$dldir~
10284 $install_prog $dir/$dlname \$dldir/$dlname~
10285 chmod a+x \$dldir/$dlname~
10286 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10287 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10290 dlpath=$dir/\$dldll~
10292 shlibpath_overrides_runpath=yes
10296 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10297 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10299 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10302 # MinGW DLLs use traditional 'lib' prefix
10303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10306 # pw32 DLLs use 'pw' prefix rather than 'lib'
10307 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10310 dynamic_linker='Win32 ld.exe'
10315 libname_spec='$name'
10316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10317 library_names_spec='${libname}.dll.lib'
10321 sys_lib_search_path_spec=
10324 for lt_path in $LIB
10327 # Let DOS variable expansion print the short 8.3 style file name.
10328 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10329 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10332 # Convert to MSYS style.
10333 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10336 # Convert to unix form, then to dos form, then back to unix form
10337 # but this time dos style (no spaces!) so that the unix form looks
10338 # like /cygdrive/c/PROGRA~1:/cygdr...
10339 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10340 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10341 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10344 sys_lib_search_path_spec="$LIB"
10345 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10346 # It is most probably a Windows format PATH.
10347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10351 # FIXME: find the short name or the path components, as spaces are
10352 # common. (e.g. "Program Files" -> "PROGRA~1")
10356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10357 postinstall_cmds='base_file=`basename \${file}`~
10358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10359 dldir=$destdir/`dirname \$dlpath`~
10360 test -d \$dldir || mkdir -p \$dldir~
10361 $install_prog $dir/$dlname \$dldir/$dlname'
10362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10363 dlpath=$dir/\$dldll~
10365 shlibpath_overrides_runpath=yes
10366 dynamic_linker='Win32 link.exe'
10370 # Assume MSVC wrapper
10371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10372 dynamic_linker='Win32 ld.exe'
10375 # FIXME: first we should search . and the directory the executable is in
10379 darwin* | rhapsody*)
10380 dynamic_linker="$host_os dyld"
10381 version_type=darwin
10384 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10385 soname_spec='${libname}${release}${major}$shared_ext'
10386 shlibpath_overrides_runpath=yes
10387 shlibpath_var=DYLD_LIBRARY_PATH
10388 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10390 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10391 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10395 version_type=linux # correct to gnu/linux during the next big refactor
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10403 freebsd* | dragonfly*)
10404 # DragonFly does not have aout. When/if they implement a new
10405 # versioning mechanism, adjust this.
10406 if test -x /usr/bin/objformat; then
10407 objformat=`/usr/bin/objformat`
10410 freebsd[23].*) objformat=aout ;;
10411 *) objformat=elf ;;
10414 version_type=freebsd-$objformat
10415 case $version_type in
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10426 shlibpath_var=LD_LIBRARY_PATH
10429 shlibpath_overrides_runpath=yes
10431 freebsd3.[01]* | freebsdelf3.[01]*)
10432 shlibpath_overrides_runpath=yes
10433 hardcode_into_libs=yes
10435 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10436 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10437 shlibpath_overrides_runpath=no
10438 hardcode_into_libs=yes
10440 *) # from 4.6 on, and DragonFly
10441 shlibpath_overrides_runpath=yes
10442 hardcode_into_libs=yes
10448 version_type=linux # correct to gnu/linux during the next big refactor
10451 dynamic_linker="$host_os runtime_loader"
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10453 soname_spec='${libname}${release}${shared_ext}$major'
10454 shlibpath_var=LIBRARY_PATH
10455 shlibpath_overrides_runpath=yes
10456 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10457 hardcode_into_libs=yes
10460 hpux9* | hpux10* | hpux11*)
10461 # Give a soname corresponding to the major version so that dld.sl refuses to
10462 # link against other versions.
10469 hardcode_into_libs=yes
10470 dynamic_linker="$host_os dld.so"
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 if test "X$HPUX_IA64_MODE" = X32; then
10476 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10478 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10484 hardcode_into_libs=yes
10485 dynamic_linker="$host_os dld.sl"
10486 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10495 dynamic_linker="$host_os dld.sl"
10496 shlibpath_var=SHLIB_PATH
10497 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499 soname_spec='${libname}${release}${shared_ext}$major'
10502 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10503 postinstall_cmds='chmod 555 $lib'
10504 # or fails outright, so override atomically:
10505 install_override_mode=555
10509 version_type=linux # correct to gnu/linux during the next big refactor
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 shlibpath_overrides_runpath=no
10517 hardcode_into_libs=yes
10520 irix5* | irix6* | nonstopux*)
10522 nonstopux*) version_type=nonstopux ;;
10524 if test "$lt_cv_prog_gnu_ld" = yes; then
10525 version_type=linux # correct to gnu/linux during the next big refactor
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10535 irix5* | nonstopux*)
10536 libsuff= shlibsuff=
10539 case $LD in # libtool.m4 will add one of these switches to LD
10540 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10541 libsuff= shlibsuff= libmagic=32-bit;;
10542 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10543 libsuff=32 shlibsuff=N32 libmagic=N32;;
10544 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10545 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10546 *) libsuff= shlibsuff= libmagic=never-match;;
10550 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10551 shlibpath_overrides_runpath=no
10552 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10553 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10554 hardcode_into_libs=yes
10557 # No shared lib support for Linux oldld, aout, or coff.
10558 linux*oldld* | linux*aout* | linux*coff*)
10562 # This must be glibc/ELF.
10563 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10564 version_type=linux # correct to gnu/linux during the next big refactor
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=no
10573 # Some binutils ld are patched to set DT_RUNPATH
10574 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10575 $as_echo_n "(cached) " >&6
10577 lt_cv_shlibpath_overrides_runpath=no
10578 save_LDFLAGS=$LDFLAGS
10579 save_libdir=$libdir
10580 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10581 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583 /* end confdefs.h. */
10593 if ac_fn_c_try_link "$LINENO"; then :
10594 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10595 lt_cv_shlibpath_overrides_runpath=yes
10598 rm -f core conftest.err conftest.$ac_objext \
10599 conftest$ac_exeext conftest.$ac_ext
10600 LDFLAGS=$save_LDFLAGS
10601 libdir=$save_libdir
10605 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10607 # This implies no fast_install, which is unacceptable.
10608 # Some rework will be needed to allow for fast_install
10609 # before this can be enabled.
10610 hardcode_into_libs=yes
10612 # Append ld.so.conf contents to the search path
10613 if test -f /etc/ld.so.conf; then
10614 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' ' '`
10615 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10618 # We used to test for /lib/ld.so.1 and disable shared libraries on
10619 # powerpc, because MkLinux only supported shared libraries with the
10620 # GNU dynamic linker. Since this was broken with cross compilers,
10621 # most powerpc-linux boxes support dynamic linking these days and
10622 # people can always --disable-shared, the test was removed, and we
10623 # assume the GNU/Linux dynamic linker is in use.
10624 dynamic_linker='GNU/Linux ld.so'
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=no
10635 hardcode_into_libs=yes
10636 dynamic_linker='NetBSD ld.elf_so'
10643 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10646 dynamic_linker='NetBSD (a.out) ld.so'
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10649 soname_spec='${libname}${release}${shared_ext}$major'
10650 dynamic_linker='NetBSD ld.elf_so'
10652 shlibpath_var=LD_LIBRARY_PATH
10653 shlibpath_overrides_runpath=yes
10654 hardcode_into_libs=yes
10658 version_type=linux # correct to gnu/linux during the next big refactor
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath=yes
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 shlibpath_var=LD_LIBRARY_PATH
10671 shlibpath_overrides_runpath=no
10672 hardcode_into_libs=yes
10673 dynamic_linker='ldqnx.so'
10678 sys_lib_dlsearch_path_spec="/usr/lib"
10680 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10682 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10683 *) need_version=no ;;
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10690 openbsd2.[89] | openbsd2.[89].*)
10691 shlibpath_overrides_runpath=no
10694 shlibpath_overrides_runpath=yes
10698 shlibpath_overrides_runpath=yes
10703 libname_spec='$name'
10706 library_names_spec='$libname${shared_ext} $libname.a'
10707 dynamic_linker='OS/2 ld.exe'
10708 shlibpath_var=LIBPATH
10711 osf3* | osf4* | osf5*)
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 shlibpath_var=LD_LIBRARY_PATH
10718 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10719 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10727 version_type=linux # correct to gnu/linux during the next big refactor
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 shlibpath_overrides_runpath=yes
10734 hardcode_into_libs=yes
10735 # ldd complains unless libraries are executable
10736 postinstall_cmds='chmod +x $lib'
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10742 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10743 shlibpath_var=LD_LIBRARY_PATH
10744 shlibpath_overrides_runpath=yes
10745 if test "$with_gnu_ld" = yes; then
10752 version_type=linux # correct to gnu/linux during the next big refactor
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754 soname_spec='${libname}${release}${shared_ext}$major'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 case $host_vendor in
10758 shlibpath_overrides_runpath=no
10760 runpath_var=LD_RUN_PATH
10768 shlibpath_overrides_runpath=no
10769 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10775 if test -d /usr/nec ;then
10776 version_type=linux # correct to gnu/linux during the next big refactor
10777 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10778 soname_spec='$libname${shared_ext}.$major'
10779 shlibpath_var=LD_LIBRARY_PATH
10783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10784 version_type=freebsd-elf
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 shlibpath_overrides_runpath=yes
10791 hardcode_into_libs=yes
10792 if test "$with_gnu_ld" = yes; then
10793 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10795 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10798 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10802 sys_lib_dlsearch_path_spec='/usr/lib'
10806 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10807 version_type=linux # correct to gnu/linux during the next big refactor
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811 shlibpath_var=LD_LIBRARY_PATH
10812 shlibpath_overrides_runpath=no
10813 hardcode_into_libs=yes
10817 version_type=linux # correct to gnu/linux during the next big refactor
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10819 soname_spec='${libname}${release}${shared_ext}$major'
10820 shlibpath_var=LD_LIBRARY_PATH
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10828 $as_echo "$dynamic_linker" >&6; }
10829 test "$dynamic_linker" = no && can_build_shared=no
10831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10832 if test "$GCC" = yes; then
10833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10836 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10837 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10839 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10840 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10935 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10937 if test -n "$hardcode_libdir_flag_spec" ||
10938 test -n "$runpath_var" ||
10939 test "X$hardcode_automatic" = "Xyes" ; then
10941 # We can hardcode non-existent directories.
10942 if test "$hardcode_direct" != no &&
10943 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10944 # have to relink, otherwise we might link with an installed library
10945 # when we should be linking with a yet-to-be-installed one
10946 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10947 test "$hardcode_minus_L" != no; then
10948 # Linking always hardcodes the temporary library directory.
10949 hardcode_action=relink
10951 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10952 hardcode_action=immediate
10955 # We cannot hardcode anything, or else we can only hardcode existing
10957 hardcode_action=unsupported
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10960 $as_echo "$hardcode_action" >&6; }
10962 if test "$hardcode_action" = relink ||
10963 test "$inherit_rpath" = yes; then
10964 # Fast installation is not supported
10965 enable_fast_install=no
10966 elif test "$shlibpath_overrides_runpath" = yes ||
10967 test "$enable_shared" = no; then
10968 # Fast installation is not necessary
10969 enable_fast_install=needless
10977 if test "x$enable_dlopen" != xyes; then
10978 enable_dlopen=unknown
10979 enable_dlopen_self=unknown
10980 enable_dlopen_self_static=unknown
10987 lt_cv_dlopen="load_add_on"
10989 lt_cv_dlopen_self=yes
10992 mingw* | pw32* | cegcc*)
10993 lt_cv_dlopen="LoadLibrary"
10998 lt_cv_dlopen="dlopen"
11003 # if libdl is installed we need to link against it
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11005 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11006 if ${ac_cv_lib_dl_dlopen+:} false; then :
11007 $as_echo_n "(cached) " >&6
11009 ac_check_lib_save_LIBS=$LIBS
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11029 if ac_fn_c_try_link "$LINENO"; then :
11030 ac_cv_lib_dl_dlopen=yes
11032 ac_cv_lib_dl_dlopen=no
11034 rm -f core conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
11036 LIBS=$ac_check_lib_save_LIBS
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11039 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11040 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11041 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11044 lt_cv_dlopen="dyld"
11046 lt_cv_dlopen_self=yes
11053 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11054 if test "x$ac_cv_func_shl_load" = xyes; then :
11055 lt_cv_dlopen="shl_load"
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11058 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11059 if ${ac_cv_lib_dld_shl_load+:} false; then :
11060 $as_echo_n "(cached) " >&6
11062 ac_check_lib_save_LIBS=$LIBS
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11067 /* Override any GCC internal prototype to avoid an error.
11068 Use char because int might match the return type of a GCC
11069 builtin and then its argument prototype would still apply. */
11077 return shl_load ();
11082 if ac_fn_c_try_link "$LINENO"; then :
11083 ac_cv_lib_dld_shl_load=yes
11085 ac_cv_lib_dld_shl_load=no
11087 rm -f core conftest.err conftest.$ac_objext \
11088 conftest$ac_exeext conftest.$ac_ext
11089 LIBS=$ac_check_lib_save_LIBS
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11092 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11093 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11094 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11096 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11097 if test "x$ac_cv_func_dlopen" = xyes; then :
11098 lt_cv_dlopen="dlopen"
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11101 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11102 if ${ac_cv_lib_dl_dlopen+:} false; then :
11103 $as_echo_n "(cached) " >&6
11105 ac_check_lib_save_LIBS=$LIBS
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11110 /* Override any GCC internal prototype to avoid an error.
11111 Use char because int might match the return type of a GCC
11112 builtin and then its argument prototype would still apply. */
11125 if ac_fn_c_try_link "$LINENO"; then :
11126 ac_cv_lib_dl_dlopen=yes
11128 ac_cv_lib_dl_dlopen=no
11130 rm -f core conftest.err conftest.$ac_objext \
11131 conftest$ac_exeext conftest.$ac_ext
11132 LIBS=$ac_check_lib_save_LIBS
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11135 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11136 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11140 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11141 if ${ac_cv_lib_svld_dlopen+:} false; then :
11142 $as_echo_n "(cached) " >&6
11144 ac_check_lib_save_LIBS=$LIBS
11145 LIBS="-lsvld $LIBS"
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11149 /* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
11164 if ac_fn_c_try_link "$LINENO"; then :
11165 ac_cv_lib_svld_dlopen=yes
11167 ac_cv_lib_svld_dlopen=no
11169 rm -f core conftest.err conftest.$ac_objext \
11170 conftest$ac_exeext conftest.$ac_ext
11171 LIBS=$ac_check_lib_save_LIBS
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11174 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11175 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11179 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11180 if ${ac_cv_lib_dld_dld_link+:} false; then :
11181 $as_echo_n "(cached) " >&6
11183 ac_check_lib_save_LIBS=$LIBS
11185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11186 /* end confdefs.h. */
11188 /* Override any GCC internal prototype to avoid an error.
11189 Use char because int might match the return type of a GCC
11190 builtin and then its argument prototype would still apply. */
11198 return dld_link ();
11203 if ac_fn_c_try_link "$LINENO"; then :
11204 ac_cv_lib_dld_dld_link=yes
11206 ac_cv_lib_dld_dld_link=no
11208 rm -f core conftest.err conftest.$ac_objext \
11209 conftest$ac_exeext conftest.$ac_ext
11210 LIBS=$ac_check_lib_save_LIBS
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11213 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11214 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11215 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11236 if test "x$lt_cv_dlopen" != xno; then
11242 case $lt_cv_dlopen in
11244 save_CPPFLAGS="$CPPFLAGS"
11245 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11247 save_LDFLAGS="$LDFLAGS"
11248 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11251 LIBS="$lt_cv_dlopen_libs $LIBS"
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11254 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11255 if ${lt_cv_dlopen_self+:} false; then :
11256 $as_echo_n "(cached) " >&6
11258 if test "$cross_compiling" = yes; then :
11259 lt_cv_dlopen_self=cross
11261 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11262 lt_status=$lt_dlunknown
11263 cat > conftest.$ac_ext <<_LT_EOF
11264 #line $LINENO "configure"
11265 #include "confdefs.h"
11274 # define LT_DLGLOBAL RTLD_GLOBAL
11277 # define LT_DLGLOBAL DL_GLOBAL
11279 # define LT_DLGLOBAL 0
11283 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11284 find out it does not work in some platform. */
11285 #ifndef LT_DLLAZY_OR_NOW
11287 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11290 # define LT_DLLAZY_OR_NOW DL_LAZY
11293 # define LT_DLLAZY_OR_NOW RTLD_NOW
11296 # define LT_DLLAZY_OR_NOW DL_NOW
11298 # define LT_DLLAZY_OR_NOW 0
11305 /* When -fvisbility=hidden is used, assume the code has been annotated
11306 correspondingly for the symbols needed. */
11307 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11308 int fnord () __attribute__((visibility("default")));
11311 int fnord () { return 42; }
11314 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11315 int status = $lt_dlunknown;
11319 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11322 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11323 else puts (dlerror ());
11325 /* dlclose (self); */
11333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11334 (eval $ac_link) 2>&5
11336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11337 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11338 (./conftest; exit; ) >&5 2>/dev/null
11340 case x$lt_status in
11341 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11342 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11343 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11346 # compilation failed
11347 lt_cv_dlopen_self=no
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11355 $as_echo "$lt_cv_dlopen_self" >&6; }
11357 if test "x$lt_cv_dlopen_self" = xyes; then
11358 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11360 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11361 if ${lt_cv_dlopen_self_static+:} false; then :
11362 $as_echo_n "(cached) " >&6
11364 if test "$cross_compiling" = yes; then :
11365 lt_cv_dlopen_self_static=cross
11367 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11368 lt_status=$lt_dlunknown
11369 cat > conftest.$ac_ext <<_LT_EOF
11370 #line $LINENO "configure"
11371 #include "confdefs.h"
11380 # define LT_DLGLOBAL RTLD_GLOBAL
11383 # define LT_DLGLOBAL DL_GLOBAL
11385 # define LT_DLGLOBAL 0
11389 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11390 find out it does not work in some platform. */
11391 #ifndef LT_DLLAZY_OR_NOW
11393 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11396 # define LT_DLLAZY_OR_NOW DL_LAZY
11399 # define LT_DLLAZY_OR_NOW RTLD_NOW
11402 # define LT_DLLAZY_OR_NOW DL_NOW
11404 # define LT_DLLAZY_OR_NOW 0
11411 /* When -fvisbility=hidden is used, assume the code has been annotated
11412 correspondingly for the symbols needed. */
11413 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11414 int fnord () __attribute__((visibility("default")));
11417 int fnord () { return 42; }
11420 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11421 int status = $lt_dlunknown;
11425 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11428 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11429 else puts (dlerror ());
11431 /* dlclose (self); */
11439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11440 (eval $ac_link) 2>&5
11442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11443 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11444 (./conftest; exit; ) >&5 2>/dev/null
11446 case x$lt_status in
11447 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11448 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11449 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11452 # compilation failed
11453 lt_cv_dlopen_self_static=no
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11461 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11464 CPPFLAGS="$save_CPPFLAGS"
11465 LDFLAGS="$save_LDFLAGS"
11470 case $lt_cv_dlopen_self in
11471 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11472 *) enable_dlopen_self=unknown ;;
11475 case $lt_cv_dlopen_self_static in
11476 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11477 *) enable_dlopen_self_static=unknown ;;
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11500 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11501 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11502 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11503 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11505 $as_echo "yes" >&6; }
11507 # FIXME - insert some real tests, host_os isn't really good enough
11510 if test -n "$STRIP" ; then
11511 striplib="$STRIP -x"
11512 old_striplib="$STRIP -S"
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11514 $as_echo "yes" >&6; }
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517 $as_echo "no" >&6; }
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; }
11538 # Report which library types will actually be built
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11540 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11542 $as_echo "$can_build_shared" >&6; }
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11545 $as_echo_n "checking whether to build shared libraries... " >&6; }
11546 test "$can_build_shared" = "no" && enable_shared=no
11548 # On AIX, shared libraries and static libraries use the same namespace, and
11549 # are all built from PIC.
11552 test "$enable_shared" = yes && enable_static=no
11553 if test -n "$RANLIB"; then
11554 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11555 postinstall_cmds='$RANLIB $lib'
11560 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11561 test "$enable_shared" = yes && enable_static=no
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11566 $as_echo "$enable_shared" >&6; }
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11569 $as_echo_n "checking whether to build static libraries... " >&6; }
11570 # Make sure either enable_shared or enable_static is yes.
11571 test "$enable_shared" = yes || enable_static=yes
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11573 $as_echo "$enable_static" >&6; }
11580 ac_cpp='$CPP $CPPFLAGS'
11581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11601 ac_config_commands="$ac_config_commands libtool"
11606 # Only expand once:
11618 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11619 if test -n "$ac_tool_prefix"; then
11620 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11621 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11625 $as_echo_n "(cached) " >&6
11627 case $PKG_CONFIG in
11629 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11639 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11650 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11651 if test -n "$PKG_CONFIG"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11653 $as_echo "$PKG_CONFIG" >&6; }
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11661 if test -z "$ac_cv_path_PKG_CONFIG"; then
11662 ac_pt_PKG_CONFIG=$PKG_CONFIG
11663 # Extract the first word of "pkg-config", so it can be a program name with args.
11664 set dummy pkg-config; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11668 $as_echo_n "(cached) " >&6
11670 case $ac_pt_PKG_CONFIG in
11672 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11682 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11694 if test -n "$ac_pt_PKG_CONFIG"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11696 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11702 if test "x$ac_pt_PKG_CONFIG" = x; then
11705 case $cross_compiling:$ac_tool_warned in
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11709 ac_tool_warned=yes ;;
11711 PKG_CONFIG=$ac_pt_PKG_CONFIG
11714 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11718 if test -n "$PKG_CONFIG"; then
11719 _pkg_min_version=0.9.0
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11721 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11722 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724 $as_echo "yes" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11734 gtk_doc_requires="gtk-doc >= 1.18"
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
11736 $as_echo_n "checking for gtk-doc... " >&6; }
11737 if test -n "$PKG_CONFIG" && \
11738 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
11739 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
11741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11742 test $ac_status = 0; }; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
11748 $as_echo "$have_gtk_doc" >&6; }
11750 if test "$have_gtk_doc" = "no"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11752 You will not be able to create source packages with 'make dist'
11753 because $gtk_doc_requires is not found." >&5
11754 $as_echo "$as_me: WARNING:
11755 You will not be able to create source packages with 'make dist'
11756 because $gtk_doc_requires is not found." >&2;}
11759 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
11760 set dummy gtkdoc-check; ac_word=$2
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762 $as_echo_n "checking for $ac_word... " >&6; }
11763 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
11764 $as_echo_n "(cached) " >&6
11766 if test -n "$GTKDOC_CHECK"; then
11767 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
11769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770 for as_dir in $PATH
11773 test -z "$as_dir" && as_dir=.
11774 for ac_exec_ext in '' $ac_executable_extensions; do
11775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11776 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
11787 if test -n "$GTKDOC_CHECK"; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
11789 $as_echo "$GTKDOC_CHECK" >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792 $as_echo "no" >&6; }
11796 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
11797 set dummy gtkdoc-check; ac_word=$2
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799 $as_echo_n "checking for $ac_word... " >&6; }
11800 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
11801 $as_echo_n "(cached) " >&6
11803 case $GTKDOC_CHECK_PATH in
11805 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
11808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809 for as_dir in $PATH
11812 test -z "$as_dir" && as_dir=.
11813 for ac_exec_ext in '' $ac_executable_extensions; do
11814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11815 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
11816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
11827 if test -n "$GTKDOC_CHECK_PATH"; then
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
11829 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832 $as_echo "no" >&6; }
11836 for ac_prog in gtkdoc-rebase
11838 # Extract the first word of "$ac_prog", so it can be a program name with args.
11839 set dummy $ac_prog; ac_word=$2
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11841 $as_echo_n "checking for $ac_word... " >&6; }
11842 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
11843 $as_echo_n "(cached) " >&6
11845 case $GTKDOC_REBASE in
11847 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
11850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851 for as_dir in $PATH
11854 test -z "$as_dir" && as_dir=.
11855 for ac_exec_ext in '' $ac_executable_extensions; do
11856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11857 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
11858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11868 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
11869 if test -n "$GTKDOC_REBASE"; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
11871 $as_echo "$GTKDOC_REBASE" >&6; }
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11878 test -n "$GTKDOC_REBASE" && break
11880 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
11882 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
11883 set dummy gtkdoc-mkpdf; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
11887 $as_echo_n "(cached) " >&6
11889 case $GTKDOC_MKPDF in
11891 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $PATH
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11901 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
11913 if test -n "$GTKDOC_MKPDF"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
11915 $as_echo "$GTKDOC_MKPDF" >&6; }
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11924 # Check whether --with-html-dir was given.
11925 if test "${with_html_dir+set}" = set; then :
11926 withval=$with_html_dir;
11928 with_html_dir='${datadir}/gtk-doc/html'
11931 HTML_DIR="$with_html_dir"
11934 # Check whether --enable-gtk-doc was given.
11935 if test "${enable_gtk_doc+set}" = set; then :
11936 enableval=$enable_gtk_doc;
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
11943 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
11945 $as_echo "$enable_gtk_doc" >&6; }
11947 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
11949 You must have $gtk_doc_requires installed to build documentation for
11950 $PACKAGE_NAME. Please install gtk-doc or disable building the
11951 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
11954 if test "x$PACKAGE_NAME" != "xglib"; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
11958 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
11960 if test -n "$GTKDOC_DEPS_CFLAGS"; then
11961 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
11962 elif test -n "$PKG_CONFIG"; then
11963 if test -n "$PKG_CONFIG" && \
11964 { { $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
11965 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
11967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11968 test $ac_status = 0; }; then
11969 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
11970 test "x$?" != "x0" && pkg_failed=yes
11977 if test -n "$GTKDOC_DEPS_LIBS"; then
11978 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
11979 elif test -n "$PKG_CONFIG"; then
11980 if test -n "$PKG_CONFIG" && \
11981 { { $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
11982 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
11984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11985 test $ac_status = 0; }; then
11986 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
11987 test "x$?" != "x0" && pkg_failed=yes
11997 if test $pkg_failed = yes; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12002 _pkg_short_errors_supported=yes
12004 _pkg_short_errors_supported=no
12006 if test $_pkg_short_errors_supported = yes; then
12007 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`
12009 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
12011 # Put the nasty error message in config.log where it belongs
12012 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
12015 elif test $pkg_failed = untried; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12020 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
12021 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12023 $as_echo "yes" >&6; }
12028 # Check whether --enable-gtk-doc-html was given.
12029 if test "${enable_gtk_doc_html+set}" = set; then :
12030 enableval=$enable_gtk_doc_html;
12032 enable_gtk_doc_html=yes
12035 # Check whether --enable-gtk-doc-pdf was given.
12036 if test "${enable_gtk_doc_pdf+set}" = set; then :
12037 enableval=$enable_gtk_doc_pdf;
12039 enable_gtk_doc_pdf=no
12043 if test -z "$GTKDOC_MKPDF"; then
12044 enable_gtk_doc_pdf=no
12047 if test -z "$AM_DEFAULT_VERBOSITY"; then
12048 AM_DEFAULT_VERBOSITY=1
12052 if test x$have_gtk_doc = xyes; then
12054 HAVE_GTK_DOC_FALSE='#'
12056 HAVE_GTK_DOC_TRUE='#'
12057 HAVE_GTK_DOC_FALSE=
12060 if test x$enable_gtk_doc = xyes; then
12061 ENABLE_GTK_DOC_TRUE=
12062 ENABLE_GTK_DOC_FALSE='#'
12064 ENABLE_GTK_DOC_TRUE='#'
12065 ENABLE_GTK_DOC_FALSE=
12068 if test x$enable_gtk_doc_html = xyes; then
12069 GTK_DOC_BUILD_HTML_TRUE=
12070 GTK_DOC_BUILD_HTML_FALSE='#'
12072 GTK_DOC_BUILD_HTML_TRUE='#'
12073 GTK_DOC_BUILD_HTML_FALSE=
12076 if test x$enable_gtk_doc_pdf = xyes; then
12077 GTK_DOC_BUILD_PDF_TRUE=
12078 GTK_DOC_BUILD_PDF_FALSE='#'
12080 GTK_DOC_BUILD_PDF_TRUE='#'
12081 GTK_DOC_BUILD_PDF_FALSE=
12084 if test -n "$LIBTOOL"; then
12085 GTK_DOC_USE_LIBTOOL_TRUE=
12086 GTK_DOC_USE_LIBTOOL_FALSE='#'
12088 GTK_DOC_USE_LIBTOOL_TRUE='#'
12089 GTK_DOC_USE_LIBTOOL_FALSE=
12092 if test -n "$GTKDOC_REBASE"; then
12093 GTK_DOC_USE_REBASE_TRUE=
12094 GTK_DOC_USE_REBASE_FALSE='#'
12096 GTK_DOC_USE_REBASE_TRUE='#'
12097 GTK_DOC_USE_REBASE_FALSE=
12102 # Checks for libraries.
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSIGNON" >&5
12106 $as_echo_n "checking for GSIGNON... " >&6; }
12108 if test -n "$GSIGNON_CFLAGS"; then
12109 pkg_cv_GSIGNON_CFLAGS="$GSIGNON_CFLAGS"
12110 elif test -n "$PKG_CONFIG"; then
12111 if test -n "$PKG_CONFIG" && \
12112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.30
12117 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.30
12123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12124 test $ac_status = 0; }; then
12125 pkg_cv_GSIGNON_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.30
12130 test "x$?" != "x0" && pkg_failed=yes
12137 if test -n "$GSIGNON_LIBS"; then
12138 pkg_cv_GSIGNON_LIBS="$GSIGNON_LIBS"
12139 elif test -n "$PKG_CONFIG"; then
12140 if test -n "$PKG_CONFIG" && \
12141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.30
12146 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.30
12152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12153 test $ac_status = 0; }; then
12154 pkg_cv_GSIGNON_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.30
12159 test "x$?" != "x0" && pkg_failed=yes
12169 if test $pkg_failed = yes; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171 $as_echo "no" >&6; }
12173 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12174 _pkg_short_errors_supported=yes
12176 _pkg_short_errors_supported=no
12178 if test $_pkg_short_errors_supported = yes; then
12179 GSIGNON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.30
12185 GSIGNON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.30
12191 # Put the nasty error message in config.log where it belongs
12192 echo "$GSIGNON_PKG_ERRORS" >&5
12194 as_fn_error $? "Package requirements (glib-2.0 >= 2.30
12200 $GSIGNON_PKG_ERRORS
12202 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12203 installed software in a non-standard prefix.
12205 Alternatively, you may set the environment variables GSIGNON_CFLAGS
12206 and GSIGNON_LIBS to avoid the need to call pkg-config.
12207 See the pkg-config man page for more details." "$LINENO" 5
12208 elif test $pkg_failed = untried; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12213 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12214 is in your PATH or set the PKG_CONFIG environment variable to the full
12215 path to pkg-config.
12217 Alternatively, you may set the environment variables GSIGNON_CFLAGS
12218 and GSIGNON_LIBS to avoid the need to call pkg-config.
12219 See the pkg-config man page for more details.
12221 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12222 See \`config.log' for more details" "$LINENO" 5; }
12224 GSIGNON_CFLAGS=$pkg_cv_GSIGNON_CFLAGS
12225 GSIGNON_LIBS=$pkg_cv_GSIGNON_LIBS
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12227 $as_echo "yes" >&6; }
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5
12236 $as_echo_n "checking for LIBSOUP... " >&6; }
12238 if test -n "$LIBSOUP_CFLAGS"; then
12239 pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
12240 elif test -n "$PKG_CONFIG"; then
12241 if test -n "$PKG_CONFIG" && \
12242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
12243 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
12245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12246 test $ac_status = 0; }; then
12247 pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
12248 test "x$?" != "x0" && pkg_failed=yes
12255 if test -n "$LIBSOUP_LIBS"; then
12256 pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
12257 elif test -n "$PKG_CONFIG"; then
12258 if test -n "$PKG_CONFIG" && \
12259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\""; } >&5
12260 ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
12262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12263 test $ac_status = 0; }; then
12264 pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
12265 test "x$?" != "x0" && pkg_failed=yes
12275 if test $pkg_failed = yes; then
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12279 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12280 _pkg_short_errors_supported=yes
12282 _pkg_short_errors_supported=no
12284 if test $_pkg_short_errors_supported = yes; then
12285 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4" 2>&1`
12287 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4" 2>&1`
12289 # Put the nasty error message in config.log where it belongs
12290 echo "$LIBSOUP_PKG_ERRORS" >&5
12292 as_fn_error $? "Package requirements (libsoup-2.4) were not met:
12294 $LIBSOUP_PKG_ERRORS
12296 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12297 installed software in a non-standard prefix.
12299 Alternatively, you may set the environment variables LIBSOUP_CFLAGS
12300 and LIBSOUP_LIBS to avoid the need to call pkg-config.
12301 See the pkg-config man page for more details." "$LINENO" 5
12302 elif test $pkg_failed = untried; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12307 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12308 is in your PATH or set the PKG_CONFIG environment variable to the full
12309 path to pkg-config.
12311 Alternatively, you may set the environment variables LIBSOUP_CFLAGS
12312 and LIBSOUP_LIBS to avoid the need to call pkg-config.
12313 See the pkg-config man page for more details.
12315 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12316 See \`config.log' for more details" "$LINENO" 5; }
12318 LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
12319 LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321 $as_echo "yes" >&6; }
12327 # AM_PATH_CHECK() is deprecated, but check documentation fails to tell that :-/
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
12331 $as_echo_n "checking for CHECK... " >&6; }
12333 if test -n "$CHECK_CFLAGS"; then
12334 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
12335 elif test -n "$PKG_CONFIG"; then
12336 if test -n "$PKG_CONFIG" && \
12337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
12338 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
12340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12341 test $ac_status = 0; }; then
12342 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
12343 test "x$?" != "x0" && pkg_failed=yes
12350 if test -n "$CHECK_LIBS"; then
12351 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
12352 elif test -n "$PKG_CONFIG"; then
12353 if test -n "$PKG_CONFIG" && \
12354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
12355 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
12357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12358 test $ac_status = 0; }; then
12359 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
12360 test "x$?" != "x0" && pkg_failed=yes
12370 if test $pkg_failed = yes; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12375 _pkg_short_errors_supported=yes
12377 _pkg_short_errors_supported=no
12379 if test $_pkg_short_errors_supported = yes; then
12380 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
12382 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
12384 # Put the nasty error message in config.log where it belongs
12385 echo "$CHECK_PKG_ERRORS" >&5
12388 elif test $pkg_failed = untried; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12393 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
12394 CHECK_LIBS=$pkg_cv_CHECK_LIBS
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12396 $as_echo "yes" >&6; }
12402 # Check whether --enable-coverage was given.
12403 if test "${enable_coverage+set}" = set; then :
12404 enableval=$enable_coverage;
12407 if test "x$enable_coverage" = "xyes"; then :
12408 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
12411 # allow fake installations for "distcheck"
12412 # Check whether --enable-distcheck was given.
12413 if test "${enable_distcheck+set}" = set; then :
12414 enableval=$enable_distcheck; enable_distcheck=yes
12416 enable_distcheck=no
12419 echo -n "running distcheck... "
12420 echo $enable_distcheck
12422 if test "x$enable_distcheck" = "xyes" ; then
12423 EXTENSIONSDIR="${libdir}/gsignond/extensions"
12424 PLUGINSDIR="${libdir}/gsignond/gplugins"
12426 PLUGINSDIR=`pkg-config gsignond --variable=gpluginsdir`
12427 EXTENSIONSDIR=`pkg-config gsignond --variable=extensionsdir`
12432 GSIGNON_CFLAGS="$GSIGNON_CFLAGS -Wall -Werror"
12434 ac_config_files="$ac_config_files Makefile docs/Makefile src/Makefile test/Makefile examples/Makefile"
12436 cat >confcache <<\_ACEOF
12437 # This file is a shell script that caches the results of configure
12438 # tests run on this system so they can be shared between configure
12439 # scripts and configure runs, see configure's option --config-cache.
12440 # It is not useful on other systems. If it contains results you don't
12441 # want to keep, you may remove or edit it.
12443 # config.status only pays attention to the cache file if you give it
12444 # the --recheck option to rerun configure.
12446 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12447 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12448 # following values.
12452 # The following way of writing the cache mishandles newlines in values,
12453 # but we know of no workaround that is simple, portable, and efficient.
12454 # So, we kill variables containing newlines.
12455 # Ultrix sh set writes to stderr and can't be redirected directly,
12456 # and sets the high bit in the cache file unless we assign to the vars.
12458 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12459 eval ac_val=\$$ac_var
12463 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12464 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12467 _ | IFS | as_nl) ;; #(
12468 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12469 *) { eval $ac_var=; unset $ac_var;} ;;
12475 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12476 *${as_nl}ac_space=\ *)
12477 # `set' does not quote correctly, so add quotes: double-quote
12478 # substitution turns \\\\ into \\, and sed turns \\ into \.
12481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12484 # `set' quotes correctly as required by POSIX, so do not add quotes.
12485 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12494 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12496 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12498 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12499 if test -w "$cache_file"; then
12500 if test "x$cache_file" != "x/dev/null"; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12502 $as_echo "$as_me: updating cache $cache_file" >&6;}
12503 if test ! -f "$cache_file" || test -h "$cache_file"; then
12504 cat confcache >"$cache_file"
12506 case $cache_file in #(
12508 mv -f confcache "$cache_file"$$ &&
12509 mv -f "$cache_file"$$ "$cache_file" ;; #(
12511 mv -f confcache "$cache_file" ;;
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12517 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12522 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12523 # Let make expand exec_prefix.
12524 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12526 DEFS=-DHAVE_CONFIG_H
12531 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12532 # 1. Remove the extension, and $U if already installed.
12533 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12534 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12535 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12536 # will be set to the directory where LIBOBJS objects are built.
12537 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12538 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12540 LIBOBJS=$ac_libobjs
12542 LTLIBOBJS=$ac_ltlibobjs
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12546 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12547 if test -n "$am_sleep_pid"; then
12548 # Hide warnings about reused PIDs.
12549 wait $am_sleep_pid 2>/dev/null
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12552 $as_echo "done" >&6; }
12553 if test -n "$EXEEXT"; then
12555 am__EXEEXT_FALSE='#'
12557 am__EXEEXT_TRUE='#'
12561 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12562 as_fn_error $? "conditional \"AMDEP\" was never defined.
12563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12565 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12566 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12569 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
12570 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
12571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12573 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
12574 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
12575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12577 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
12578 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
12579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12581 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
12582 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
12583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12585 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
12586 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
12587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12589 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
12590 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
12591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12594 : "${CONFIG_STATUS=./config.status}"
12596 ac_clean_files_save=$ac_clean_files
12597 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12599 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12601 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12603 # Generated by $as_me.
12604 # Run this file to recreate the current configuration.
12605 # Compiler output produced by configure, useful for debugging
12606 # configure, is in config.log if it exists.
12609 ac_cs_recheck=false
12612 SHELL=\${CONFIG_SHELL-$SHELL}
12615 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12616 ## -------------------- ##
12617 ## M4sh Initialization. ##
12618 ## -------------------- ##
12620 # Be more Bourne compatible
12621 DUALCASE=1; export DUALCASE # for MKS sh
12622 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12625 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12626 # is contrary to our usage. Disable this feature.
12627 alias -g '${1+"$@"}'='"$@"'
12628 setopt NO_GLOB_SUBST
12630 case `(set -o) 2>/dev/null` in #(
12642 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12643 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12644 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12646 # Prefer a ksh shell builtin over an external printf program on Solaris,
12647 # but without wasting forks for bash or zsh.
12648 if test -z "$BASH_VERSION$ZSH_VERSION" \
12649 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12650 as_echo='print -r --'
12651 as_echo_n='print -rn --'
12652 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12653 as_echo='printf %s\n'
12654 as_echo_n='printf %s'
12656 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12657 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12658 as_echo_n='/usr/ucb/echo -n'
12660 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12661 as_echo_n_body='eval
12665 expr "X$arg" : "X\\(.*\\)$as_nl";
12666 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12668 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12670 export as_echo_n_body
12671 as_echo_n='sh -c $as_echo_n_body as_echo'
12673 export as_echo_body
12674 as_echo='sh -c $as_echo_body as_echo'
12677 # The user is always right.
12678 if test "${PATH_SEPARATOR+set}" != set; then
12680 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12681 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12688 # We need space, tab and new line, in precisely that order. Quoting is
12689 # there to prevent editors from complaining about space-tab.
12690 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12691 # splitting by setting IFS to empty value.)
12694 # Find who we are. Look in the path if we contain no directory separator.
12697 *[\\/]* ) as_myself=$0 ;;
12698 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699 for as_dir in $PATH
12702 test -z "$as_dir" && as_dir=.
12703 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12709 # We did not find ourselves, most probably we were run as `sh COMMAND'
12710 # in which case we are not to be found in the path.
12711 if test "x$as_myself" = x; then
12714 if test ! -f "$as_myself"; then
12715 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12719 # Unset variables that we do not need and which cause bugs (e.g. in
12720 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12721 # suppresses any "Segmentation fault" message there. '((' could
12722 # trigger a bug in pdksh 5.2.14.
12723 for as_var in BASH_ENV ENV MAIL MAILPATH
12724 do eval test x\${$as_var+set} = xset \
12725 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12738 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12741 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12742 # ----------------------------------------
12743 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12744 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12745 # script with STATUS, using 1 if that was 0.
12748 as_status=$1; test $as_status -eq 0 && as_status=1
12750 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12751 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12753 $as_echo "$as_me: error: $2" >&2
12754 as_fn_exit $as_status
12758 # as_fn_set_status STATUS
12759 # -----------------------
12760 # Set $? to STATUS, without forking.
12761 as_fn_set_status ()
12764 } # as_fn_set_status
12766 # as_fn_exit STATUS
12767 # -----------------
12768 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12772 as_fn_set_status $1
12778 # Portably unset VAR.
12781 { eval $1=; unset $1;}
12783 as_unset=as_fn_unset
12784 # as_fn_append VAR VALUE
12785 # ----------------------
12786 # Append the text in VALUE to the end of the definition contained in VAR. Take
12787 # advantage of any shell optimizations that allow amortized linear growth over
12788 # repeated appends, instead of the typical quadratic growth present in naive
12790 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12791 eval 'as_fn_append ()
12802 # as_fn_arith ARG...
12803 # ------------------
12804 # Perform arithmetic evaluation on the ARGs, and store the result in the
12805 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12806 # must be portable across $(()) and expr.
12807 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12808 eval 'as_fn_arith ()
12815 as_val=`expr "$@" || test $? -eq 1`
12820 if expr a : '\(a\)' >/dev/null 2>&1 &&
12821 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12827 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12828 as_basename=basename
12833 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12839 as_me=`$as_basename -- "$0" ||
12840 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12841 X"$0" : 'X\(//\)$' \| \
12842 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12844 sed '/^.*\/\([^/][^/]*\)\/*$/{
12858 # Avoid depending upon Character Ranges.
12859 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12860 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12861 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12862 as_cr_digits='0123456789'
12863 as_cr_alnum=$as_cr_Letters$as_cr_digits
12865 ECHO_C= ECHO_N= ECHO_T=
12866 case `echo -n x` in #(((((
12868 case `echo 'xy\c'` in
12869 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12871 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12878 rm -f conf$$ conf$$.exe conf$$.file
12879 if test -d conf$$.dir; then
12880 rm -f conf$$.dir/conf$$.file
12883 mkdir conf$$.dir 2>/dev/null
12885 if (echo >conf$$.file) 2>/dev/null; then
12886 if ln -s conf$$.file conf$$ 2>/dev/null; then
12888 # ... but there are two gotchas:
12889 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12890 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12891 # In both cases, we have to default to `cp -pR'.
12892 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12894 elif ln conf$$.file conf$$ 2>/dev/null; then
12902 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12903 rmdir conf$$.dir 2>/dev/null
12908 # Create "$as_dir" as a directory, including parents if necessary.
12913 -*) as_dir=./$as_dir;;
12915 test -d "$as_dir" || eval $as_mkdir_p || {
12919 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12920 *) as_qdir=$as_dir;;
12922 as_dirs="'$as_qdir' $as_dirs"
12923 as_dir=`$as_dirname -- "$as_dir" ||
12924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12925 X"$as_dir" : 'X\(//\)[^/]' \| \
12926 X"$as_dir" : 'X\(//\)$' \| \
12927 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12928 $as_echo X"$as_dir" |
12929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12933 /^X\(\/\/\)[^/].*/{
12946 test -d "$as_dir" && break
12948 test -z "$as_dirs" || eval "mkdir $as_dirs"
12949 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12953 if mkdir -p . 2>/dev/null; then
12954 as_mkdir_p='mkdir -p "$as_dir"'
12956 test -d ./-p && rmdir ./-p
12961 # as_fn_executable_p FILE
12962 # -----------------------
12963 # Test if FILE is an executable regular file.
12964 as_fn_executable_p ()
12966 test -f "$1" && test -x "$1"
12967 } # as_fn_executable_p
12968 as_test_x='test -x'
12969 as_executable_p=as_fn_executable_p
12971 # Sed expression to map a string onto a valid CPP name.
12972 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12974 # Sed expression to map a string onto a valid variable name.
12975 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12979 ## ----------------------------------- ##
12980 ## Main body of $CONFIG_STATUS script. ##
12981 ## ----------------------------------- ##
12983 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12986 # Save the log message, to keep $0 and so on meaningful, and to
12987 # report actual input values of CONFIG_FILES etc. instead of their
12988 # values after options handling.
12990 This file was extended by gsignond-plugin-oauth $as_me 1.0.0, which was
12991 generated by GNU Autoconf 2.69. Invocation command line was
12993 CONFIG_FILES = $CONFIG_FILES
12994 CONFIG_HEADERS = $CONFIG_HEADERS
12995 CONFIG_LINKS = $CONFIG_LINKS
12996 CONFIG_COMMANDS = $CONFIG_COMMANDS
12999 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13004 case $ac_config_files in *"
13005 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13008 case $ac_config_headers in *"
13009 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13014 # Files that config.status was made for.
13015 config_files="$ac_config_files"
13016 config_headers="$ac_config_headers"
13017 config_commands="$ac_config_commands"
13021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13023 \`$as_me' instantiates files and other configuration actions
13024 from templates according to the current configuration. Unless the files
13025 and actions are specified as TAGs, all are instantiated by default.
13027 Usage: $0 [OPTION]... [TAG]...
13029 -h, --help print this help, then exit
13030 -V, --version print version number and configuration settings, then exit
13031 --config print configuration, then exit
13032 -q, --quiet, --silent
13033 do not print progress messages
13034 -d, --debug don't remove temporary files
13035 --recheck update $as_me by reconfiguring in the same conditions
13036 --file=FILE[:TEMPLATE]
13037 instantiate the configuration file FILE
13038 --header=FILE[:TEMPLATE]
13039 instantiate the configuration header FILE
13041 Configuration files:
13044 Configuration headers:
13047 Configuration commands:
13050 Report bugs to the package provider."
13053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13054 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13056 gsignond-plugin-oauth config.status 1.0.0
13057 configured by $0, generated by GNU Autoconf 2.69,
13058 with options \\"\$ac_cs_config\\"
13060 Copyright (C) 2012 Free Software Foundation, Inc.
13061 This config.status script is free software; the Free Software Foundation
13062 gives unlimited permission to copy, distribute and modify it."
13069 test -n "\$AWK" || AWK=awk
13072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13073 # The default lists apply if the user does not specify any file.
13079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13084 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13096 # Handling of the options.
13097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13099 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13100 $as_echo "$ac_cs_version"; exit ;;
13101 --config | --confi | --conf | --con | --co | --c )
13102 $as_echo "$ac_cs_config"; exit ;;
13103 --debug | --debu | --deb | --de | --d | -d )
13105 --file | --fil | --fi | --f )
13108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13109 '') as_fn_error $? "missing file argument" ;;
13111 as_fn_append CONFIG_FILES " '$ac_optarg'"
13112 ac_need_defaults=false;;
13113 --header | --heade | --head | --hea )
13116 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13118 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13119 ac_need_defaults=false;;
13121 # Conflict between --help and --header
13122 as_fn_error $? "ambiguous option: \`$1'
13123 Try \`$0 --help' for more information.";;
13124 --help | --hel | -h )
13125 $as_echo "$ac_cs_usage"; exit ;;
13126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13130 # This is an error.
13131 -*) as_fn_error $? "unrecognized option: \`$1'
13132 Try \`$0 --help' for more information." ;;
13134 *) as_fn_append ac_config_targets " $1"
13135 ac_need_defaults=false ;;
13141 ac_configure_extra_args=
13143 if $ac_cs_silent; then
13145 ac_configure_extra_args="$ac_configure_extra_args --silent"
13149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13150 if \$ac_cs_recheck; then
13151 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13154 CONFIG_SHELL='$SHELL'
13155 export CONFIG_SHELL
13160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13165 ## Running $as_me. ##
13171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13175 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13178 # The HP-UX ksh and POSIX shell print the target directory to stdout
13179 # if CDPATH is set.
13180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13182 sed_quote_subst='$sed_quote_subst'
13183 double_quote_subst='$double_quote_subst'
13184 delay_variable_subst='$delay_variable_subst'
13185 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13186 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13187 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13188 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13189 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13190 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13191 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13192 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13193 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13194 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13195 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13196 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13197 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13198 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13199 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13200 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13201 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13202 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13203 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13204 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13205 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13206 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13207 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13208 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13209 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13210 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13211 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13212 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13213 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13214 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13215 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13216 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13217 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13218 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13219 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13220 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13221 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13222 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13223 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13224 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13225 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13226 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13227 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13228 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13229 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13230 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13231 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13232 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13233 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13234 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13235 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13236 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13237 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13238 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13239 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13240 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13241 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"`'
13242 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13243 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13244 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13245 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13246 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13247 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13248 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13249 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13250 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13251 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13252 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13253 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13254 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13255 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13256 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13257 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13258 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13259 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13260 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13261 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13262 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13263 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13264 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13265 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13266 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13267 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13268 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13269 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13270 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13271 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13272 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13273 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13274 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13275 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13276 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13277 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13278 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13279 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13280 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13281 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13282 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13283 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13284 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13285 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13286 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13287 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13288 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13289 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13290 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13291 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13292 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13293 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13294 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13295 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13296 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13297 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13298 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13299 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13300 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13301 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13302 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13303 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13304 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13305 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13306 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13307 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13308 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13309 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13310 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13311 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13312 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13313 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13314 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13317 LTCFLAGS='$LTCFLAGS'
13318 compiler='$compiler_DEFAULT'
13320 # A function that is used when there is no print builtin or printf.
13321 func_fallback_echo ()
13323 eval 'cat <<_LTECHO_EOF
13328 # Quote evaled strings.
13343 deplibs_check_method \
13348 sharedlib_from_linklib_cmd \
13351 archiver_list_spec \
13357 lt_cv_sys_global_symbol_pipe \
13358 lt_cv_sys_global_symbol_to_cdecl \
13359 lt_cv_sys_global_symbol_to_c_name_address \
13360 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13361 nm_file_list_spec \
13362 lt_prog_compiler_no_builtin_flag \
13363 lt_prog_compiler_pic \
13364 lt_prog_compiler_wl \
13365 lt_prog_compiler_static \
13366 lt_cv_prog_compiler_c_o \
13375 export_dynamic_flag_spec \
13376 whole_archive_flag_spec \
13377 compiler_needs_object \
13379 allow_undefined_flag \
13380 no_undefined_flag \
13381 hardcode_libdir_flag_spec \
13382 hardcode_libdir_separator \
13386 variables_saved_for_relink \
13388 library_names_spec \
13390 install_override_mode \
13394 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13395 *[\\\\\\\`\\"\\\$]*)
13396 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13399 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13404 # Double-quote double-evaled strings.
13405 for var in reload_cmds \
13406 old_postinstall_cmds \
13407 old_postuninstall_cmds \
13409 extract_expsyms_cmds \
13410 old_archive_from_new_cmds \
13411 old_archive_from_expsyms_cmds \
13413 archive_expsym_cmds \
13415 module_expsym_cmds \
13416 export_symbols_cmds \
13420 postuninstall_cmds \
13422 sys_lib_search_path_spec \
13423 sys_lib_dlsearch_path_spec; do
13424 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13425 *[\\\\\\\`\\"\\\$]*)
13426 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13429 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13434 ac_aux_dir='$ac_aux_dir'
13435 xsi_shell='$xsi_shell'
13436 lt_shell_append='$lt_shell_append'
13438 # See if we are running on zsh, and set the options which allow our
13439 # commands through without removal of \ escapes INIT.
13440 if test -n "\${ZSH_VERSION+set}" ; then
13441 setopt NO_GLOB_SUBST
13447 TIMESTAMP='$TIMESTAMP'
13456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13458 # Handling of arguments.
13459 for ac_config_target in $ac_config_targets
13461 case $ac_config_target in
13462 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13463 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13464 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13465 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13466 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
13467 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13468 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13469 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13471 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13476 # If the user did not use the arguments to specify the items to instantiate,
13477 # then the envvar interface is used. Set only those that are not.
13478 # We use the long form for the default assignment because of an extremely
13479 # bizarre bug on SunOS 4.1.3.
13480 if $ac_need_defaults; then
13481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13482 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13483 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13486 # Have a temporary directory for convenience. Make it in the build tree
13487 # simply because there is no reason against having it here, and in addition,
13488 # creating and moving files from /tmp can sometimes cause problems.
13489 # Hook for its removal unless debugging.
13490 # Note that there is a small window in which the directory will not be cleaned:
13491 # after its creation but before its name has been assigned to `$tmp'.
13495 trap 'exit_status=$?
13496 : "${ac_tmp:=$tmp}"
13497 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13499 trap 'as_fn_exit 1' 1 2 13 15
13501 # Create a (secure) tmp directory for tmp files.
13504 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13508 tmp=./conf$$-$RANDOM
13509 (umask 077 && mkdir "$tmp")
13510 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13513 # Set up the scripts for CONFIG_FILES section.
13514 # No need to generate them if there are no CONFIG_FILES.
13515 # This happens for instance with `./config.status config.h'.
13516 if test -n "$CONFIG_FILES"; then
13519 ac_cr=`echo X | tr X '\015'`
13520 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13521 # But we know of no other shell where ac_cr would be empty at this
13522 # point, so we can use a bashism as a fallback.
13523 if test "x$ac_cr" = x; then
13524 eval ac_cr=\$\'\\r\'
13526 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13527 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13530 ac_cs_awk_cr=$ac_cr
13533 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13538 echo "cat >conf$$subs.awk <<_ACEOF" &&
13539 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13541 } >conf$$subs.sh ||
13542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13543 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13545 for ac_last_try in false false false false false :; do
13546 . ./conf$$subs.sh ||
13547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13549 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13550 if test $ac_delim_n = $ac_delim_num; then
13552 elif $ac_last_try; then
13553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13555 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13558 rm -f conf$$subs.sh
13560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13561 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13565 s/^/S["/; s/!.*/"]=/
13575 s/\(.\{148\}\)..*/\1/
13577 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13589 s/\(.\{148\}\)..*/\1/
13591 s/["\\]/\\&/g; s/^/"/; s/$/"/
13595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13600 ' <conf$$subs.awk | sed '
13605 ' >>$CONFIG_STATUS || ac_write_fail=1
13606 rm -f conf$$subs.awk
13607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13609 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13610 for (key in S) S_is_set[key] = 1
13616 nfields = split(line, field, "@")
13618 len = length(field[1])
13619 for (i = 2; i < nfields; i++) {
13621 keylen = length(key)
13622 if (S_is_set[key]) {
13624 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13625 len += length(value) + length(field[++i])
13636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13637 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13638 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13641 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13642 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13645 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13646 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13647 # trailing colons and then remove the whole line if VPATH becomes empty
13648 # (actually we leave an empty line to preserve line numbers).
13649 if test "x$srcdir" = x.; then
13650 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13669 fi # test -n "$CONFIG_FILES"
13671 # Set up the scripts for CONFIG_HEADERS section.
13672 # No need to generate them if there are no CONFIG_HEADERS.
13673 # This happens for instance with `./config.status Makefile'.
13674 if test -n "$CONFIG_HEADERS"; then
13675 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13679 # Transform confdefs.h into an awk script `defines.awk', embedded as
13680 # here-document in config.status, that substitutes the proper values into
13681 # config.h.in to produce config.h.
13683 # Create a delimiter string that does not exist in confdefs.h, to ease
13684 # handling of long lines.
13686 for ac_last_try in false false :; do
13687 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13688 if test -z "$ac_tt"; then
13690 elif $ac_last_try; then
13691 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13693 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13697 # For the awk script, D is an array of macro values keyed by name,
13698 # likewise P contains macro parameters if any. Preserve backslash
13699 # newline sequences.
13701 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13703 s/.\{148\}/&'"$ac_delim"'/g
13706 s/^[ ]*#[ ]*define[ ][ ]*/ /
13713 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13715 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13719 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13720 D["\1"]=" \3\\\\\\n"\\/p
13722 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13727 s/.\{148\}/&'"$ac_delim"'/g
13732 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13735 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13737 ' <confdefs.h | sed '
13738 s/'"$ac_delim"'/"\\\
13739 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13742 for (key in D) D_is_set[key] = 1
13745 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13747 split(line, arg, " ")
13748 if (arg[1] == "#") {
13752 defundef = substr(arg[1], 2)
13755 split(mac1, mac2, "(") #)
13757 prefix = substr(line, 1, index(line, defundef) - 1)
13758 if (D_is_set[macro]) {
13759 # Preserve the white space surrounding the "#".
13760 print prefix "define", macro P[macro] D[macro]
13763 # Replace #undef with comments. This is necessary, for example,
13764 # in the case of _POSIX_SOURCE, which is predefined and required
13765 # on some systems where configure will not decide to define it.
13766 if (defundef == "undef") {
13767 print "/*", prefix defundef, macro, "*/"
13775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13776 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13777 fi # test -n "$CONFIG_HEADERS"
13780 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13785 :[FHLC]) ac_mode=$ac_tag; continue;;
13787 case $ac_mode$ac_tag in
13789 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13790 :[FH]-) ac_tag=-:-;;
13791 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13808 -) ac_f="$ac_tmp/stdin";;
13809 *) # Look for the file first in the build tree, then in the source tree
13810 # (if the path is not absolute). The absolute path cannot be DOS-style,
13811 # because $ac_f cannot contain `:'.
13815 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13817 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13819 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13820 as_fn_append ac_file_inputs " '$ac_f'"
13823 # Let's still pretend it is `configure' which instantiates (i.e., don't
13824 # use $as_me), people would be surprised to read:
13825 # /* config.h. Generated by config.status. */
13826 configure_input='Generated from '`
13827 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13829 if test x"$ac_file" != x-; then
13830 configure_input="$ac_file. $configure_input"
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13832 $as_echo "$as_me: creating $ac_file" >&6;}
13834 # Neutralize special characters interpreted by sed in replacement strings.
13835 case $configure_input in #(
13836 *\&* | *\|* | *\\* )
13837 ac_sed_conf_input=`$as_echo "$configure_input" |
13838 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13839 *) ac_sed_conf_input=$configure_input;;
13843 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13849 ac_dir=`$as_dirname -- "$ac_file" ||
13850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13851 X"$ac_file" : 'X\(//\)[^/]' \| \
13852 X"$ac_file" : 'X\(//\)$' \| \
13853 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13854 $as_echo X"$ac_file" |
13855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13859 /^X\(\/\/\)[^/].*/{
13872 as_dir="$ac_dir"; as_fn_mkdir_p
13876 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13878 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13879 # A ".." for each directory in $ac_dir_suffix.
13880 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13881 case $ac_top_builddir_sub in
13882 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13883 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13886 ac_abs_top_builddir=$ac_pwd
13887 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13888 # for backward compatibility:
13889 ac_top_builddir=$ac_top_build_prefix
13892 .) # We are building in place.
13894 ac_top_srcdir=$ac_top_builddir_sub
13895 ac_abs_top_srcdir=$ac_pwd ;;
13896 [\\/]* | ?:[\\/]* ) # Absolute name.
13897 ac_srcdir=$srcdir$ac_dir_suffix;
13898 ac_top_srcdir=$srcdir
13899 ac_abs_top_srcdir=$srcdir ;;
13900 *) # Relative name.
13901 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13902 ac_top_srcdir=$ac_top_build_prefix$srcdir
13903 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13905 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13915 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13916 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13918 ac_MKDIR_P=$MKDIR_P
13920 [\\/$]* | ?:[\\/]* ) ;;
13921 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13926 # If the template does not know about datarootdir, expand it.
13927 # FIXME: This hack should be removed a few years after 2.60.
13928 ac_datarootdir_hack=; ac_datarootdir_seen=
13939 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13940 *datarootdir*) ac_datarootdir_seen=yes;;
13941 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13943 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13946 ac_datarootdir_hack='
13947 s&@datadir@&$datadir&g
13948 s&@docdir@&$docdir&g
13949 s&@infodir@&$infodir&g
13950 s&@localedir@&$localedir&g
13951 s&@mandir@&$mandir&g
13952 s&\\\${datarootdir}&$datarootdir&g' ;;
13956 # Neutralize VPATH when `$srcdir' = `.'.
13957 # Shell code in configure.ac might set extrasub.
13958 # FIXME: do we really want to maintain this feature?
13959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13960 ac_sed_extra="$ac_vpsub
13963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13965 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13966 s|@configure_input@|$ac_sed_conf_input|;t t
13967 s&@top_builddir@&$ac_top_builddir_sub&;t t
13968 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13969 s&@srcdir@&$ac_srcdir&;t t
13970 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13971 s&@top_srcdir@&$ac_top_srcdir&;t t
13972 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13973 s&@builddir@&$ac_builddir&;t t
13974 s&@abs_builddir@&$ac_abs_builddir&;t t
13975 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13976 s&@INSTALL@&$ac_INSTALL&;t t
13977 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13978 $ac_datarootdir_hack
13980 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13981 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13983 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13984 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13985 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13986 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13988 which seems to be undefined. Please make sure it is defined" >&5
13989 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13990 which seems to be undefined. Please make sure it is defined" >&2;}
13992 rm -f "$ac_tmp/stdin"
13994 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13995 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14003 if test x"$ac_file" != x-; then
14005 $as_echo "/* $configure_input */" \
14006 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14007 } >"$ac_tmp/config.h" \
14008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14009 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14011 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14014 mv "$ac_tmp/config.h" "$ac_file" \
14015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14018 $as_echo "/* $configure_input */" \
14019 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14020 || as_fn_error $? "could not create -" "$LINENO" 5
14022 # Compute "$ac_file"'s index in $config_headers.
14025 for _am_header in $config_headers :; do
14026 case $_am_header in
14027 $_am_arg | $_am_arg:* )
14030 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14033 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14034 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14035 X"$_am_arg" : 'X\(//\)[^/]' \| \
14036 X"$_am_arg" : 'X\(//\)$' \| \
14037 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14038 $as_echo X"$_am_arg" |
14039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14043 /^X\(\/\/\)[^/].*/{
14055 s/.*/./; q'`/stamp-h$_am_stamp_count
14058 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14059 $as_echo "$as_me: executing $ac_file commands" >&6;}
14064 case $ac_file$ac_mode in
14065 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14066 # Older Autoconf quotes --file arguments for eval, but not when files
14067 # are listed without --file. Let's play safe and only enable the eval
14068 # if we detect the quoting.
14069 case $CONFIG_FILES in
14070 *\'*) eval set x "$CONFIG_FILES" ;;
14071 *) set x $CONFIG_FILES ;;
14076 # Strip MF so we end up with the name of the file.
14077 mf=`echo "$mf" | sed -e 's/:.*$//'`
14078 # Check whether this is an Automake generated Makefile or not.
14079 # We used to match only the files named 'Makefile.in', but
14080 # some people rename them; so instead we look at the file content.
14081 # Grep'ing the first line is not enough: some people post-process
14082 # each Makefile.in and add a new line on top of each file to say so.
14083 # Grep'ing the whole file is not good either: AIX grep has a line
14084 # limit of 2048, but all sed's we know have understand at least 4000.
14085 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14086 dirpart=`$as_dirname -- "$mf" ||
14087 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14088 X"$mf" : 'X\(//\)[^/]' \| \
14089 X"$mf" : 'X\(//\)$' \| \
14090 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14096 /^X\(\/\/\)[^/].*/{
14112 # Extract the definition of DEPDIR, am__include, and am__quote
14113 # from the Makefile without running 'make'.
14114 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14115 test -z "$DEPDIR" && continue
14116 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14117 test -z "$am__include" && continue
14118 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14119 # Find all dependency output files, they are included files with
14120 # $(DEPDIR) in their names. We invoke sed twice because it is the
14121 # simplest approach to changing $(DEPDIR) to its actual value in the
14123 for file in `sed -n "
14124 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14125 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14126 # Make sure the directory exists.
14127 test -f "$dirpart/$file" && continue
14128 fdir=`$as_dirname -- "$file" ||
14129 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14130 X"$file" : 'X\(//\)[^/]' \| \
14131 X"$file" : 'X\(//\)$' \| \
14132 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14133 $as_echo X"$file" |
14134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14138 /^X\(\/\/\)[^/].*/{
14151 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14152 # echo "creating $dirpart/$file"
14153 echo '# dummy' > "$dirpart/$file"
14160 # See if we are running on zsh, and set the options which allow our
14161 # commands through without removal of \ escapes.
14162 if test -n "${ZSH_VERSION+set}" ; then
14163 setopt NO_GLOB_SUBST
14166 cfgfile="${ofile}T"
14167 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14170 cat <<_LT_EOF >> "$cfgfile"
14173 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14174 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14176 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14178 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14179 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14181 # Written by Gordon Matzigkeit, 1996
14183 # This file is part of GNU Libtool.
14185 # GNU Libtool is free software; you can redistribute it and/or
14186 # modify it under the terms of the GNU General Public License as
14187 # published by the Free Software Foundation; either version 2 of
14188 # the License, or (at your option) any later version.
14190 # As a special exception to the GNU General Public License,
14191 # if you distribute this file as part of a program or library that
14192 # is built using GNU Libtool, you may include this file under the
14193 # same distribution terms that you use for the rest of that program.
14195 # GNU Libtool is distributed in the hope that it will be useful,
14196 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14197 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14198 # GNU General Public License for more details.
14200 # You should have received a copy of the GNU General Public License
14201 # along with GNU Libtool; see the file COPYING. If not, a copy
14202 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14203 # obtained by writing to the Free Software Foundation, Inc.,
14204 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14207 # The names of the tagged configurations supported by this script.
14210 # ### BEGIN LIBTOOL CONFIG
14212 # Which release of libtool.m4 was used?
14213 macro_version=$macro_version
14214 macro_revision=$macro_revision
14216 # Whether or not to build static libraries.
14217 build_old_libs=$enable_static
14219 # Whether or not to build shared libraries.
14220 build_libtool_libs=$enable_shared
14222 # What type of objects to build.
14225 # Whether or not to optimize for fast installation.
14226 fast_install=$enable_fast_install
14228 # Shell to use when invoking shell scripts.
14231 # An echo program that protects backslashes.
14234 # The PATH separator for the build system.
14235 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14238 host_alias=$host_alias
14242 # The build system.
14243 build_alias=$build_alias
14247 # A sed program that does not truncate output.
14250 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14251 Xsed="\$SED -e 1s/^X//"
14253 # A grep program that handles long lines.
14259 # A literal string matcher.
14262 # A BSD- or MS-compatible name lister.
14265 # Whether we need soft or hard links.
14268 # What is the maximum length of a command?
14269 max_cmd_len=$max_cmd_len
14271 # Object file suffix (normally "o").
14274 # Executable file suffix (normally "").
14277 # whether the shell understands "unset".
14280 # turn spaces into newlines.
14283 # turn newlines into spaces.
14286 # convert \$build file names to \$host format.
14287 to_host_file_cmd=$lt_cv_to_host_file_cmd
14289 # convert \$build files to toolchain format.
14290 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14292 # An object symbol dumper.
14293 OBJDUMP=$lt_OBJDUMP
14295 # Method to check whether dependent libraries are shared objects.
14296 deplibs_check_method=$lt_deplibs_check_method
14298 # Command to use when deplibs_check_method = "file_magic".
14299 file_magic_cmd=$lt_file_magic_cmd
14301 # How to find potential files when deplibs_check_method = "file_magic".
14302 file_magic_glob=$lt_file_magic_glob
14304 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14305 want_nocaseglob=$lt_want_nocaseglob
14307 # DLL creation program.
14308 DLLTOOL=$lt_DLLTOOL
14310 # Command to associate shared and link libraries.
14311 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14316 # Flags to create an archive.
14317 AR_FLAGS=$lt_AR_FLAGS
14319 # How to feed a file listing to the archiver.
14320 archiver_list_spec=$lt_archiver_list_spec
14322 # A symbol stripping program.
14325 # Commands used to install an old-style archive.
14327 old_postinstall_cmds=$lt_old_postinstall_cmds
14328 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14330 # Whether to use a lock for old archive extraction.
14331 lock_old_archive_extraction=$lock_old_archive_extraction
14336 # LTCC compiler flags.
14337 LTCFLAGS=$lt_CFLAGS
14339 # Take the output of nm and produce a listing of raw symbols and C names.
14340 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14342 # Transform the output of nm in a proper C declaration.
14343 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14345 # Transform the output of nm in a C name address pair.
14346 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14348 # Transform the output of nm in a C name address pair when lib prefix is needed.
14349 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14351 # Specify filename containing input files for \$NM.
14352 nm_file_list_spec=$lt_nm_file_list_spec
14354 # The root where to search for dependent libraries,and in which our libraries should be installed.
14355 lt_sysroot=$lt_sysroot
14357 # The name of the directory that contains temporary libtool files.
14360 # Used to examine libraries when file_magic_cmd begins with "file".
14361 MAGIC_CMD=$MAGIC_CMD
14363 # Must we lock files when doing compilation?
14364 need_locks=$lt_need_locks
14367 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14369 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14370 DSYMUTIL=$lt_DSYMUTIL
14372 # Tool to change global to local symbols on Mac OS X.
14375 # Tool to manipulate fat objects and archives on Mac OS X.
14378 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14381 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14382 OTOOL64=$lt_OTOOL64
14384 # Old archive suffix (normally "a").
14387 # Shared library suffix (normally ".so").
14388 shrext_cmds=$lt_shrext_cmds
14390 # The commands to extract the exported symbol list from a shared archive.
14391 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14393 # Variables whose values should be saved in libtool wrapper scripts and
14394 # restored at link time.
14395 variables_saved_for_relink=$lt_variables_saved_for_relink
14397 # Do we need the "lib" prefix for modules?
14398 need_lib_prefix=$need_lib_prefix
14400 # Do we need a version for libraries?
14401 need_version=$need_version
14403 # Library versioning type.
14404 version_type=$version_type
14406 # Shared library runtime path variable.
14407 runpath_var=$runpath_var
14409 # Shared library path variable.
14410 shlibpath_var=$shlibpath_var
14412 # Is shlibpath searched before the hard-coded library search path?
14413 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14415 # Format of library name prefix.
14416 libname_spec=$lt_libname_spec
14418 # List of archive names. First name is the real one, the rest are links.
14419 # The last name is the one that the linker finds with -lNAME
14420 library_names_spec=$lt_library_names_spec
14422 # The coded name of the library, if different from the real name.
14423 soname_spec=$lt_soname_spec
14425 # Permission mode override for installation of shared libraries.
14426 install_override_mode=$lt_install_override_mode
14428 # Command to use after installation of a shared archive.
14429 postinstall_cmds=$lt_postinstall_cmds
14431 # Command to use after uninstallation of a shared archive.
14432 postuninstall_cmds=$lt_postuninstall_cmds
14434 # Commands used to finish a libtool library installation in a directory.
14435 finish_cmds=$lt_finish_cmds
14437 # As "finish_cmds", except a single script fragment to be evaled but
14439 finish_eval=$lt_finish_eval
14441 # Whether we should hardcode library paths into libraries.
14442 hardcode_into_libs=$hardcode_into_libs
14444 # Compile-time system search path for libraries.
14445 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14447 # Run-time system search path for libraries.
14448 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14450 # Whether dlopen is supported.
14451 dlopen_support=$enable_dlopen
14453 # Whether dlopen of programs is supported.
14454 dlopen_self=$enable_dlopen_self
14456 # Whether dlopen of statically linked programs is supported.
14457 dlopen_self_static=$enable_dlopen_self_static
14459 # Commands to strip libraries.
14460 old_striplib=$lt_old_striplib
14461 striplib=$lt_striplib
14464 # The linker used to build libraries.
14467 # How to create reloadable object files.
14468 reload_flag=$lt_reload_flag
14469 reload_cmds=$lt_reload_cmds
14471 # Commands used to build an old-style archive.
14472 old_archive_cmds=$lt_old_archive_cmds
14474 # A language specific compiler.
14477 # Is the compiler the GNU compiler?
14480 # Compiler flag to turn off builtin functions.
14481 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14483 # Additional compiler flags for building library objects.
14484 pic_flag=$lt_lt_prog_compiler_pic
14486 # How to pass a linker flag through the compiler.
14487 wl=$lt_lt_prog_compiler_wl
14489 # Compiler flag to prevent dynamic linking.
14490 link_static_flag=$lt_lt_prog_compiler_static
14492 # Does compiler simultaneously support -c and -o options?
14493 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14495 # Whether or not to add -lc for building shared libraries.
14496 build_libtool_need_lc=$archive_cmds_need_lc
14498 # Whether or not to disallow shared libs when runtime libs are static.
14499 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14501 # Compiler flag to allow reflexive dlopens.
14502 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14504 # Compiler flag to generate shared objects directly from archives.
14505 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14507 # Whether the compiler copes with passing no objects directly.
14508 compiler_needs_object=$lt_compiler_needs_object
14510 # Create an old-style archive from a shared archive.
14511 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14513 # Create a temporary old-style archive to link instead of a shared archive.
14514 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14516 # Commands used to build a shared archive.
14517 archive_cmds=$lt_archive_cmds
14518 archive_expsym_cmds=$lt_archive_expsym_cmds
14520 # Commands used to build a loadable module if different from building
14521 # a shared archive.
14522 module_cmds=$lt_module_cmds
14523 module_expsym_cmds=$lt_module_expsym_cmds
14525 # Whether we are building with GNU ld or not.
14526 with_gnu_ld=$lt_with_gnu_ld
14528 # Flag that allows shared libraries with undefined symbols to be built.
14529 allow_undefined_flag=$lt_allow_undefined_flag
14531 # Flag that enforces no undefined symbols.
14532 no_undefined_flag=$lt_no_undefined_flag
14534 # Flag to hardcode \$libdir into a binary during linking.
14535 # This must work even if \$libdir does not exist
14536 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14538 # Whether we need a single "-rpath" flag with a separated argument.
14539 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14541 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14542 # DIR into the resulting binary.
14543 hardcode_direct=$hardcode_direct
14545 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14546 # DIR into the resulting binary and the resulting library dependency is
14547 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14548 # library is relocated.
14549 hardcode_direct_absolute=$hardcode_direct_absolute
14551 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14552 # into the resulting binary.
14553 hardcode_minus_L=$hardcode_minus_L
14555 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14556 # into the resulting binary.
14557 hardcode_shlibpath_var=$hardcode_shlibpath_var
14559 # Set to "yes" if building a shared library automatically hardcodes DIR
14560 # into the library and all subsequent libraries and executables linked
14562 hardcode_automatic=$hardcode_automatic
14564 # Set to yes if linker adds runtime paths of dependent libraries
14565 # to runtime path list.
14566 inherit_rpath=$inherit_rpath
14568 # Whether libtool must link a program against all its dependency libraries.
14569 link_all_deplibs=$link_all_deplibs
14571 # Set to "yes" if exported symbols are required.
14572 always_export_symbols=$always_export_symbols
14574 # The commands to list exported symbols.
14575 export_symbols_cmds=$lt_export_symbols_cmds
14577 # Symbols that should not be listed in the preloaded symbols.
14578 exclude_expsyms=$lt_exclude_expsyms
14580 # Symbols that must always be exported.
14581 include_expsyms=$lt_include_expsyms
14583 # Commands necessary for linking programs (against libraries) with templates.
14584 prelink_cmds=$lt_prelink_cmds
14586 # Commands necessary for finishing linking programs.
14587 postlink_cmds=$lt_postlink_cmds
14589 # Specify filename containing input files.
14590 file_list_spec=$lt_file_list_spec
14592 # How to hardcode a shared library path into an executable.
14593 hardcode_action=$hardcode_action
14595 # ### END LIBTOOL CONFIG
14601 cat <<\_LT_EOF >> "$cfgfile"
14602 # AIX sometimes has problems with the GCC collect2 program. For some
14603 # reason, if we set the COLLECT_NAMES environment variable, the problems
14604 # vanish in a puff of smoke.
14605 if test "X${COLLECT_NAMES+set}" != Xset; then
14607 export COLLECT_NAMES
14614 ltmain="$ac_aux_dir/ltmain.sh"
14617 # We use sed instead of cat because bash on DJGPP gets confused if
14618 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14619 # text mode, it properly converts lines to CR/LF. This bash problem
14620 # is reportedly fixed, but why not run on old versions too?
14621 sed '$q' "$ltmain" >> "$cfgfile" \
14622 || (rm -f "$cfgfile"; exit 1)
14624 if test x"$xsi_shell" = xyes; then
14625 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14629 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14630 \ * ) func_dirname_result="${3}" ;;\
14632 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14633 && mv -f "$cfgfile.tmp" "$cfgfile" \
14634 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14635 test 0 -eq $? || _lt_function_replace_fail=:
14638 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14641 \ func_basename_result="${1##*/}"\
14642 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14643 && mv -f "$cfgfile.tmp" "$cfgfile" \
14644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14645 test 0 -eq $? || _lt_function_replace_fail=:
14648 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14649 func_dirname_and_basename ()\
14652 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14653 \ * ) func_dirname_result="${3}" ;;\
14655 \ func_basename_result="${1##*/}"\
14656 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14657 && mv -f "$cfgfile.tmp" "$cfgfile" \
14658 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14659 test 0 -eq $? || _lt_function_replace_fail=:
14662 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14665 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14666 \ # positional parameters, so assign one to ordinary parameter first.\
14667 \ func_stripname_result=${3}\
14668 \ func_stripname_result=${func_stripname_result#"${1}"}\
14669 \ func_stripname_result=${func_stripname_result%"${2}"}\
14670 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14671 && mv -f "$cfgfile.tmp" "$cfgfile" \
14672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14673 test 0 -eq $? || _lt_function_replace_fail=:
14676 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14677 func_split_long_opt ()\
14679 \ func_split_long_opt_name=${1%%=*}\
14680 \ func_split_long_opt_arg=${1#*=}\
14681 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14682 && mv -f "$cfgfile.tmp" "$cfgfile" \
14683 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14684 test 0 -eq $? || _lt_function_replace_fail=:
14687 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14688 func_split_short_opt ()\
14690 \ func_split_short_opt_arg=${1#??}\
14691 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14692 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14693 && mv -f "$cfgfile.tmp" "$cfgfile" \
14694 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14695 test 0 -eq $? || _lt_function_replace_fail=:
14698 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14702 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14703 \ *) func_lo2o_result=${1} ;;\
14705 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14706 && mv -f "$cfgfile.tmp" "$cfgfile" \
14707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14708 test 0 -eq $? || _lt_function_replace_fail=:
14711 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14714 func_xform_result=${1%.*}.lo\
14715 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14716 && mv -f "$cfgfile.tmp" "$cfgfile" \
14717 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14718 test 0 -eq $? || _lt_function_replace_fail=:
14721 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14724 func_arith_result=$(( $* ))\
14725 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14726 && mv -f "$cfgfile.tmp" "$cfgfile" \
14727 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14728 test 0 -eq $? || _lt_function_replace_fail=:
14731 sed -e '/^func_len ()$/,/^} # func_len /c\
14734 func_len_result=${#1}\
14735 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14736 && mv -f "$cfgfile.tmp" "$cfgfile" \
14737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14738 test 0 -eq $? || _lt_function_replace_fail=:
14742 if test x"$lt_shell_append" = xyes; then
14743 sed -e '/^func_append ()$/,/^} # func_append /c\
14746 eval "${1}+=\\${2}"\
14747 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14748 && mv -f "$cfgfile.tmp" "$cfgfile" \
14749 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14750 test 0 -eq $? || _lt_function_replace_fail=:
14753 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14754 func_append_quoted ()\
14756 \ func_quote_for_eval "${2}"\
14757 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14758 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14759 && mv -f "$cfgfile.tmp" "$cfgfile" \
14760 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14761 test 0 -eq $? || _lt_function_replace_fail=:
14764 # Save a `func_append' function call where possible by direct use of '+='
14765 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14766 && mv -f "$cfgfile.tmp" "$cfgfile" \
14767 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14768 test 0 -eq $? || _lt_function_replace_fail=:
14770 # Save a `func_append' function call even when '+=' is not available
14771 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14772 && mv -f "$cfgfile.tmp" "$cfgfile" \
14773 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14774 test 0 -eq $? || _lt_function_replace_fail=:
14777 if test x"$_lt_function_replace_fail" = x":"; then
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14779 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14783 mv -f "$cfgfile" "$ofile" ||
14784 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14795 ac_clean_files=$ac_clean_files_save
14797 test $ac_write_fail = 0 ||
14798 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14801 # configure is writing to config.log, and then calls config.status.
14802 # config.status does its own redirection, appending to config.log.
14803 # Unfortunately, on DOS this fails, as config.log is still kept open
14804 # by configure, so config.status won't be able to write to it; its
14805 # output is simply discarded. So we exec the FD to /dev/null,
14806 # effectively closing config.log, so it can be properly (re)opened and
14807 # appended to by config.status. When coming back to configure, we
14808 # need to make the FD available again.
14809 if test "$no_create" != yes; then
14811 ac_config_status_args=
14812 test "$silent" = yes &&
14813 ac_config_status_args="$ac_config_status_args --quiet"
14815 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14817 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14818 # would make configure fail if this is the last instruction.
14819 $ac_cs_success || as_fn_exit 1
14821 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14823 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}