2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for tlm 0.0.1.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
569 PACKAGE_TARNAME='tlm'
570 PACKAGE_VERSION='0.0.1'
571 PACKAGE_STRING='tlm 0.0.1'
575 ac_unique_file="src/daemon/tlm-main.c"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
612 ac_subst_vars='am__EXEEXT_FALSE
623 ENABLE_EXAMPLES_FALSE
631 HAVE_LIBTLM_NFC_FALSE
642 GTK_DOC_USE_REBASE_FALSE
643 GTK_DOC_USE_REBASE_TRUE
644 GTK_DOC_USE_LIBTOOL_FALSE
645 GTK_DOC_USE_LIBTOOL_TRUE
646 GTK_DOC_BUILD_PDF_FALSE
647 GTK_DOC_BUILD_PDF_TRUE
648 GTK_DOC_BUILD_HTML_FALSE
649 GTK_DOC_BUILD_HTML_TRUE
720 INSTALL_STRIP_PROGRAM
762 program_transform_name
775 enable_option_checking
781 enable_dependency_tracking
795 ac_precious_vars='build_alias
825 # Initialize some variables set by options.
827 ac_init_version=false
828 ac_unrecognized_opts=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
839 program_transform_name=s,x,x,
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
885 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 # Accept the important Cygnus configure options, so we can diagnose typos.
892 case $ac_dashdash$ac_option in
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
914 cache_file=config.cache ;;
916 -datadir | --datadir | --datadi | --datad)
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
942 eval enable_$ac_useropt=no ;;
944 -docdir | --docdir | --docdi | --doc | --do)
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
968 eval enable_$ac_useropt=\$ac_optarg ;;
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
983 -help | --help | --hel | --he | -h)
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 htmldir=$ac_optarg ;;
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1013 -libdir | --libdir | --libdi | --libd)
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1104 -psdir | --psdir | --psdi | --psd | --ps)
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 sbindir=$ac_optarg ;;
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 sharedstatedir=$ac_optarg ;;
1130 -site | --site | --sit)
1132 -site=* | --site=* | --sit=*)
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval with_$ac_useropt=\$ac_optarg ;;
1174 -without-* | --without-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=no ;;
1191 # Obsolete; use --with-x.
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1208 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information"
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 case $ac_envvar in #(
1216 '' | [0-9]* | *[!_$as_cr_alnum]* )
1217 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1223 # FIXME: should be removed in autoconf 3.0.
1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 as_fn_error $? "missing argument to $ac_option"
1238 if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1241 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 # Check all directory arguments for consistency.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1259 # Be sure to have absolute directory names.
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1272 target=$target_alias
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1279 If a cross compiler is detected then cross compile mode will be used" >&2
1280 elif test "x$build_alias" != "x$host_alias"; then
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288 test "$silent" = yes && exec 6>/dev/null
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 as_fn_error $? "working directory cannot be determined"
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 as_fn_error $? "pwd does not report name of working directory"
1299 # Find the source files, if location was not specified.
1300 if test -z "$srcdir"; then
1301 ac_srcdir_defaulted=yes
1302 # Try the directory containing this script, then the parent directory.
1303 ac_confdir=`$as_dirname -- "$as_myself" ||
1304 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305 X"$as_myself" : 'X\(//\)[^/]' \| \
1306 X"$as_myself" : 'X\(//\)$' \| \
1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308 $as_echo X"$as_myself" |
1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1331 ac_srcdir_defaulted=no
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341 # When building in place, set srcdir=.
1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 # Remove unnecessary trailing slashes from srcdir.
1346 # Double slashes in file names in object file debugging info
1347 # mess up M-x gdb in Emacs.
1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 for ac_var in $ac_precious_vars; do
1352 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_env_${ac_var}_value=\$${ac_var}
1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 # Report the --help message.
1361 if test "$ac_init_help" = "long"; then
1362 # Omit some internal or obsolete options to make the list less imposing.
1363 # This message is too long to be a string in the A/UX 3.1 sh.
1365 \`configure' configures tlm 0.0.1 to adapt to many kinds of systems.
1367 Usage: $0 [OPTION]... [VAR=VALUE]...
1369 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370 VAR=VALUE. See below for descriptions of some of the useful variables.
1372 Defaults for the options are specified in brackets.
1375 -h, --help display this help and exit
1376 --help=short display options specific to this package
1377 --help=recursive display the short help of all the included packages
1378 -V, --version display version information and exit
1379 -q, --quiet, --silent do not print \`checking ...' messages
1380 --cache-file=FILE cache test results in FILE [disabled]
1381 -C, --config-cache alias for \`--cache-file=config.cache'
1382 -n, --no-create do not create output files
1383 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1385 Installation directories:
1386 --prefix=PREFIX install architecture-independent files in PREFIX
1387 [$ac_default_prefix]
1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391 By default, \`make install' will install all the files in
1392 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1393 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394 for instance \`--prefix=\$HOME'.
1396 For better control, use the options below.
1398 Fine tuning of the installation directories:
1399 --bindir=DIR user executables [EPREFIX/bin]
1400 --sbindir=DIR system admin executables [EPREFIX/sbin]
1401 --libexecdir=DIR program executables [EPREFIX/libexec]
1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1405 --libdir=DIR object code libraries [EPREFIX/lib]
1406 --includedir=DIR C header files [PREFIX/include]
1407 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1410 --infodir=DIR info documentation [DATAROOTDIR/info]
1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1412 --mandir=DIR man documentation [DATAROOTDIR/man]
1413 --docdir=DIR documentation root [DATAROOTDIR/doc/tlm]
1414 --htmldir=DIR html documentation [DOCDIR]
1415 --dvidir=DIR dvi documentation [DOCDIR]
1416 --pdfdir=DIR pdf documentation [DOCDIR]
1417 --psdir=DIR ps documentation [DOCDIR]
1423 --program-prefix=PREFIX prepend PREFIX to installed program names
1424 --program-suffix=SUFFIX append SUFFIX to installed program names
1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1428 --build=BUILD configure for building on BUILD [guessed]
1429 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1433 if test -n "$ac_init_help"; then
1434 case $ac_init_help in
1435 short | recursive ) echo "Configuration of tlm 0.0.1:";;
1440 --disable-option-checking ignore unrecognized --enable/--with options
1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1443 --enable-silent-rules less verbose build output (undo: `make V=1')
1444 --disable-silent-rules verbose build output (undo: `make V=0')
1445 --enable-static[=PKGS] build static libraries [default=no]
1446 --enable-shared[=PKGS] build shared libraries [default=yes]
1447 --enable-fast-install[=PKGS]
1448 optimize for fast installation [default=yes]
1449 --disable-dependency-tracking speeds up one-time build
1450 --enable-dependency-tracking do not reject slow dependency extractors
1451 --disable-libtool-lock avoid locking (might break parallel builds)
1452 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1453 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1454 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1455 --enable-debug enable debug features
1456 --enable-tests build unit tests
1457 --enable-examples enable examples
1458 --enable-sockets-path=path enable dbus sockets path at location'
1459 "path" instead of default "/var/run/tlm"
1460 --enable-gum build for gumd plugin
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1468 --with-sysroot=DIR Search for dependent libraries within DIR
1469 (or the compiler's sysroot if not specified).
1470 --with-html-dir=PATH path to installed docs
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1481 PKG_CONFIG path to pkg-config utility
1483 directories to add to pkg-config's search path
1485 path overriding pkg-config's built-in search path
1487 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1489 linker flags for GTKDOC_DEPS, overriding pkg-config
1490 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1491 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1492 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1493 GIO_LIBS linker flags for GIO, overriding pkg-config
1495 C compiler flags for GMODULE, overriding pkg-config
1497 linker flags for GMODULE, overriding pkg-config
1499 C compiler flags for LIBTLM_NFC, overriding pkg-config
1501 linker flags for LIBTLM_NFC, overriding pkg-config
1503 C compiler flags for CHECK, overriding pkg-config
1504 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1506 C compiler flags for ELEMENTARY, overriding pkg-config
1508 linker flags for ELEMENTARY, overriding pkg-config
1510 C compiler flags for LIBGUM, overriding pkg-config
1511 LIBGUM_LIBS linker flags for LIBGUM, overriding pkg-config
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1516 Report bugs to the package provider.
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1546 .) # We are building in place.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1580 generated by GNU Autoconf 2.68
1582 Copyright (C) 2010 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1589 ## ------------------------ ##
1590 ## Autoconf initialization. ##
1591 ## ------------------------ ##
1593 # ac_fn_c_try_compile LINENO
1594 # --------------------------
1595 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_compile ()
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1629 } # ac_fn_c_try_compile
1631 # ac_fn_c_try_link LINENO
1632 # -----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded.
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext conftest$ac_exeext
1638 if { { ac_try="$ac_link"
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>conftest.err
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest$ac_exeext && {
1657 test "$cross_compiling" = yes ||
1658 $as_test_x conftest$ac_exeext
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1669 # interfere with the next link command; also delete a directory that is
1670 # left behind by Apple's compiler. We do this before executing the actions.
1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1675 } # ac_fn_c_try_link
1677 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists and can be compiled using the include files in
1680 # INCLUDES, setting the cache variable VAR accordingly.
1681 ac_fn_c_check_header_compile ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if eval \${$3+:} false; then :
1687 $as_echo_n "(cached) " >&6
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1694 if ac_fn_c_try_compile "$LINENO"; then :
1699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 } # ac_fn_c_check_header_compile
1708 # ac_fn_c_try_cpp LINENO
1709 # ----------------------
1710 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_cpp conftest.$ac_ext"
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } > conftest.i && {
1730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1745 # ac_fn_c_try_run LINENO
1746 # ----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1748 # that executables *can* be run.
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_link"
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>&5
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1763 { { case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_try") 2>&5
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; }; }; then :
1775 $as_echo "$as_me: program exited with status $ac_status" >&5
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=$ac_status
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1787 # ac_fn_c_check_func LINENO FUNC VAR
1788 # ----------------------------------
1789 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1790 ac_fn_c_check_func ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1802 #define $2 innocuous_$2
1804 /* System header to define __stub macros and hopefully few prototypes,
1805 which can conflict with char $2 (); below.
1806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1807 <limits.h> exists even on freestanding compilers. */
1810 # include <limits.h>
1812 # include <assert.h>
1817 /* Override any GCC internal prototype to avoid an error.
1818 Use char because int might match the return type of a GCC
1819 builtin and then its argument prototype would still apply. */
1824 /* The GNU C library defines this for functions which it implements
1825 to always fail with ENOSYS. Some functions are actually named
1826 something starting with __ and the normal name is an alias. */
1827 #if defined __stub_$2 || defined __stub___$2
1839 if ac_fn_c_try_link "$LINENO"; then :
1844 rm -f core conftest.err conftest.$ac_objext \
1845 conftest$ac_exeext conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 } # ac_fn_c_check_func
1854 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1857 # the include files in INCLUDES and setting the cache variable VAR
1859 ac_fn_c_check_header_mongrel ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if eval \${$3+:} false; then :
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1872 # Is the header compilable?
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1874 $as_echo_n "checking $2 usability... " >&6; }
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881 ac_header_compiler=yes
1883 ac_header_compiler=no
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1887 $as_echo "$ac_header_compiler" >&6; }
1889 # Is the header present?
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1891 $as_echo_n "checking $2 presence... " >&6; }
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1896 if ac_fn_c_try_cpp "$LINENO"; then :
1897 ac_header_preproc=yes
1899 ac_header_preproc=no
1901 rm -f conftest.err conftest.i conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1903 $as_echo "$ac_header_preproc" >&6; }
1905 # So? What about this header?
1906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1909 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1915 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1917 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1919 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1921 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1931 eval "$3=\$ac_header_compiler"
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_header_mongrel
1940 cat >config.log <<_ACEOF
1941 This file contains any messages produced by compilers while
1942 running configure, to aid debugging if configure makes a mistake.
1944 It was created by tlm $as_me 0.0.1, which was
1945 generated by GNU Autoconf 2.68. Invocation command line was
1957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1964 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1966 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1967 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1969 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1970 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1971 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1972 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 test -z "$as_dir" && as_dir=.
1981 $as_echo "PATH: $as_dir"
1997 # Keep a trace of the command line.
1998 # Strip out --no-create and --no-recursion so they do not pile up.
1999 # Strip out --silent because we don't want to record it for future runs.
2000 # Also quote any args containing shell meta-characters.
2001 # Make two passes to allow for proper duplicate-argument suppression.
2005 ac_must_keep_next=false
2011 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2013 | -silent | --silent | --silen | --sile | --sil)
2016 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2019 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2021 as_fn_append ac_configure_args1 " '$ac_arg'"
2022 if test $ac_must_keep_next = true; then
2023 ac_must_keep_next=false # Got value, back to normal.
2026 *=* | --config-cache | -C | -disable-* | --disable-* \
2027 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2028 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2029 | -with-* | --with-* | -without-* | --without-* | --x)
2030 case "$ac_configure_args0 " in
2031 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2034 -* ) ac_must_keep_next=true ;;
2037 as_fn_append ac_configure_args " '$ac_arg'"
2042 { ac_configure_args0=; unset ac_configure_args0;}
2043 { ac_configure_args1=; unset ac_configure_args1;}
2045 # When interrupted or exit'd, cleanup temporary files, and complete
2046 # config.log. We remove comments because anyway the quotes in there
2047 # would cause problems or look ugly.
2048 # WARNING: Use '\'' to represent an apostrophe within the trap.
2049 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2050 trap 'exit_status=$?
2051 # Save into config.log some information that might help in debugging.
2055 $as_echo "## ---------------- ##
2056 ## Cache variables. ##
2057 ## ---------------- ##"
2059 # The following way of writing the cache mishandles newlines in values,
2061 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2062 eval ac_val=\$$ac_var
2066 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2067 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2070 _ | IFS | as_nl) ;; #(
2071 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2072 *) { eval $ac_var=; unset $ac_var;} ;;
2077 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2078 *${as_nl}ac_space=\ *)
2080 "s/'\''/'\''\\\\'\'''\''/g;
2081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2091 $as_echo "## ----------------- ##
2092 ## Output variables. ##
2093 ## ----------------- ##"
2095 for ac_var in $ac_subst_vars
2097 eval ac_val=\$$ac_var
2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101 $as_echo "$ac_var='\''$ac_val'\''"
2105 if test -n "$ac_subst_files"; then
2106 $as_echo "## ------------------- ##
2107 ## File substitutions. ##
2108 ## ------------------- ##"
2110 for ac_var in $ac_subst_files
2112 eval ac_val=\$$ac_var
2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 $as_echo "$ac_var='\''$ac_val'\''"
2121 if test -s confdefs.h; then
2122 $as_echo "## ----------- ##
2129 test "$ac_signal" != 0 &&
2130 $as_echo "$as_me: caught signal $ac_signal"
2131 $as_echo "$as_me: exit $exit_status"
2133 rm -f core *.core core.conftest.* &&
2134 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2137 for ac_signal in 1 2 13 15; do
2138 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2142 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2143 rm -f -r conftest* confdefs.h
2145 $as_echo "/* confdefs.h */" > confdefs.h
2147 # Predefined preprocessor variables.
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_NAME "$PACKAGE_NAME"
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_STRING "$PACKAGE_STRING"
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_URL "$PACKAGE_URL"
2174 # Let the site file select an alternate cache file if it wants to.
2175 # Prefer an explicitly selected file to automatically selected ones.
2178 if test -n "$CONFIG_SITE"; then
2179 # We do not want a PATH search for config.site.
2180 case $CONFIG_SITE in #((
2181 -*) ac_site_file1=./$CONFIG_SITE;;
2182 */*) ac_site_file1=$CONFIG_SITE;;
2183 *) ac_site_file1=./$CONFIG_SITE;;
2185 elif test "x$prefix" != xNONE; then
2186 ac_site_file1=$prefix/share/config.site
2187 ac_site_file2=$prefix/etc/config.site
2189 ac_site_file1=$ac_default_prefix/share/config.site
2190 ac_site_file2=$ac_default_prefix/etc/config.site
2192 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2194 test "x$ac_site_file" = xNONE && continue
2195 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2197 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2198 sed 's/^/| /' "$ac_site_file" >&5
2200 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2202 as_fn_error $? "failed to load site script $ac_site_file
2203 See \`config.log' for more details" "$LINENO" 5; }
2207 if test -r "$cache_file"; then
2208 # Some versions of bash will fail to source /dev/null (special files
2209 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2210 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2212 $as_echo "$as_me: loading cache $cache_file" >&6;}
2214 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2215 *) . "./$cache_file";;
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2220 $as_echo "$as_me: creating cache $cache_file" >&6;}
2224 # Check that the precious variables saved in the cache have kept the same
2226 ac_cache_corrupted=false
2227 for ac_var in $ac_precious_vars; do
2228 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2229 eval ac_new_set=\$ac_env_${ac_var}_set
2230 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2231 eval ac_new_val=\$ac_env_${ac_var}_value
2232 case $ac_old_set,$ac_new_set in
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2235 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2236 ac_cache_corrupted=: ;;
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2239 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2240 ac_cache_corrupted=: ;;
2243 if test "x$ac_old_val" != "x$ac_new_val"; then
2244 # differences in whitespace do not lead to failure.
2245 ac_old_val_w=`echo x $ac_old_val`
2246 ac_new_val_w=`echo x $ac_new_val`
2247 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2249 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2250 ac_cache_corrupted=:
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2253 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2254 eval $ac_var=\$ac_old_val
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2257 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2259 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2262 # Pass precious variables to config.status.
2263 if test "$ac_new_set" = set; then
2265 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2266 *) ac_arg=$ac_var=$ac_new_val ;;
2268 case " $ac_configure_args " in
2269 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2270 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2274 if $ac_cache_corrupted; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2278 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2279 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2281 ## -------------------- ##
2282 ## Main body of script. ##
2283 ## -------------------- ##
2286 ac_cpp='$CPP $CPPFLAGS'
2287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293 ac_config_headers="$ac_config_headers config.h"
2297 am__api_version='1.11'
2300 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2301 if test -f "$ac_dir/install-sh"; then
2303 ac_install_sh="$ac_aux_dir/install-sh -c"
2305 elif test -f "$ac_dir/install.sh"; then
2307 ac_install_sh="$ac_aux_dir/install.sh -c"
2309 elif test -f "$ac_dir/shtool"; then
2311 ac_install_sh="$ac_aux_dir/shtool install -c"
2315 if test -z "$ac_aux_dir"; then
2316 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2319 # These three variables are undocumented and unsupported,
2320 # and are intended to be withdrawn in a future Autoconf release.
2321 # They can cause serious problems if a builder's source tree is in a directory
2322 # whose full name contains unusual characters.
2323 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2324 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2325 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2328 # Find a good install program. We prefer a C program (faster),
2329 # so one script is as good as another. But avoid the broken or
2330 # incompatible versions:
2331 # SysV /etc/install, /usr/sbin/install
2332 # SunOS /usr/etc/install
2333 # IRIX /sbin/install
2335 # AmigaOS /C/install, which installs bootblocks on floppy discs
2336 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2337 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2338 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2339 # OS/2's system install, which has a completely different semantic
2340 # ./install, which can be erroneously created by make from ./install.sh.
2341 # Reject install programs that cannot install multiple files.
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2343 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2344 if test -z "$INSTALL"; then
2345 if ${ac_cv_path_install+:} false; then :
2346 $as_echo_n "(cached) " >&6
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 # Account for people who put trailing slashes in PATH elements.
2354 case $as_dir/ in #((
2355 ./ | .// | /[cC]/* | \
2356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2357 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2360 # OSF1 and SCO ODT 3.0 have their own names for install.
2361 # Don't use installbsd from OSF since it installs stuff as root
2363 for ac_prog in ginstall scoinst install; do
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2366 if test $ac_prog = install &&
2367 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368 # AIX install. It has an incompatible calling convention.
2370 elif test $ac_prog = install &&
2371 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372 # program-specific install script used by HP pwplus--don't use.
2375 rm -rf conftest.one conftest.two conftest.dir
2376 echo one > conftest.one
2377 echo two > conftest.two
2379 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2380 test -s conftest.one && test -s conftest.two &&
2381 test -s conftest.dir/conftest.one &&
2382 test -s conftest.dir/conftest.two
2384 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2397 rm -rf conftest.one conftest.two conftest.dir
2400 if test "${ac_cv_path_install+set}" = set; then
2401 INSTALL=$ac_cv_path_install
2403 # As a last resort, use the slow shell script. Don't cache a
2404 # value for INSTALL within a source directory, because that will
2405 # break other packages using the cache if that directory is
2406 # removed, or if the value is a relative name.
2407 INSTALL=$ac_install_sh
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2411 $as_echo "$INSTALL" >&6; }
2413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2414 # It thinks the first close brace ends the variable substitution.
2415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2417 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2422 $as_echo_n "checking whether build environment is sane... " >&6; }
2425 echo timestamp > conftest.file
2426 # Reject unsafe characters in $srcdir or the absolute working directory
2427 # name. Accept space and tab only in the latter.
2431 *[\\\"\#\$\&\'\`$am_lf]*)
2432 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2435 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2436 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2439 # Do `set' in a subshell so we don't clobber the current shell's
2440 # arguments. Must try -L first in case configure is actually a
2441 # symlink; some systems play weird games with the mod time of symlinks
2442 # (eg FreeBSD returns the mod time of the symlink's containing
2445 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2446 if test "$*" = "X"; then
2448 set X `ls -t "$srcdir/configure" conftest.file`
2451 if test "$*" != "X $srcdir/configure conftest.file" \
2452 && test "$*" != "X conftest.file $srcdir/configure"; then
2454 # If neither matched, then we have a broken ls. This can happen
2455 # if, for instance, CONFIG_SHELL is bash and it inherits a
2456 # broken ls alias from the environment. This has actually
2457 # happened. Such a system could not be considered "sane".
2458 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2459 alias in your environment" "$LINENO" 5
2462 test "$2" = conftest.file
2468 as_fn_error $? "newly created file is older than distributed files!
2469 Check your system clock" "$LINENO" 5
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2472 $as_echo "yes" >&6; }
2473 test "$program_prefix" != NONE &&
2474 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2475 # Use a double $ so make ignores it.
2476 test "$program_suffix" != NONE &&
2477 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2478 # Double any \ or $.
2479 # By default was `s,x,x', remove it if useless.
2480 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2481 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2483 # expand $ac_aux_dir to an absolute path
2484 am_aux_dir=`cd $ac_aux_dir && pwd`
2486 if test x"${MISSING+set}" != xset; then
2489 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2491 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2494 # Use eval to expand $SHELL
2495 if eval "$MISSING --run true"; then
2496 am_missing_run="$MISSING --run "
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2500 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2503 if test x"${install_sh}" != xset; then
2506 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2508 install_sh="\${SHELL} $am_aux_dir/install-sh"
2512 # Installed binaries are usually stripped using `strip' when the user
2513 # run `make install-strip'. However `strip' might not be the right
2514 # tool to use in cross-compilation environments, therefore Automake
2515 # will honor the `STRIP' environment variable to overrule this program.
2516 if test "$cross_compiling" != no; then
2517 if test -n "$ac_tool_prefix"; then
2518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2519 set dummy ${ac_tool_prefix}strip; ac_word=$2
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if ${ac_cv_prog_STRIP+:} false; then :
2523 $as_echo_n "(cached) " >&6
2525 if test -n "$STRIP"; then
2526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 STRIP=$ac_cv_prog_STRIP
2546 if test -n "$STRIP"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2548 $as_echo "$STRIP" >&6; }
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551 $as_echo "no" >&6; }
2556 if test -z "$ac_cv_prog_STRIP"; then
2558 # Extract the first word of "strip", so it can be a program name with args.
2559 set dummy strip; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$ac_ct_STRIP"; then
2566 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_ac_ct_STRIP="strip"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2586 if test -n "$ac_ct_STRIP"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2588 $as_echo "$ac_ct_STRIP" >&6; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2594 if test "x$ac_ct_STRIP" = x; then
2597 case $cross_compiling:$ac_tool_warned in
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2601 ac_tool_warned=yes ;;
2606 STRIP="$ac_cv_prog_STRIP"
2610 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2613 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2614 if test -z "$MKDIR_P"; then
2615 if ${ac_cv_path_mkdir+:} false; then :
2616 $as_echo_n "(cached) " >&6
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2622 test -z "$as_dir" && as_dir=.
2623 for ac_prog in mkdir gmkdir; do
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2626 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2627 'mkdir (GNU coreutils) '* | \
2628 'mkdir (coreutils) '* | \
2629 'mkdir (fileutils) '4.1*)
2630 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2640 test -d ./--version && rmdir ./--version
2641 if test "${ac_cv_path_mkdir+set}" = set; then
2642 MKDIR_P="$ac_cv_path_mkdir -p"
2644 # As a last resort, use the slow shell script. Don't cache a
2645 # value for MKDIR_P within a source directory, because that will
2646 # break other packages using the cache if that directory is
2647 # removed, or if the value is a relative name.
2648 MKDIR_P="$ac_install_sh -d"
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2652 $as_echo "$MKDIR_P" >&6; }
2656 [\\/$]* | ?:[\\/]*) ;;
2657 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2660 for ac_prog in gawk mawk nawk awk
2662 # Extract the first word of "$ac_prog", so it can be a program name with args.
2663 set dummy $ac_prog; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_AWK+:} false; then :
2667 $as_echo_n "(cached) " >&6
2669 if test -n "$AWK"; then
2670 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_AWK="$ac_prog"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 if test -n "$AWK"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2692 $as_echo "$AWK" >&6; }
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2699 test -n "$AWK" && break
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2703 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2705 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2706 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2707 $as_echo_n "(cached) " >&6
2709 cat >conftest.make <<\_ACEOF
2712 @echo '@@@%%%=$(MAKE)=@@@%%%'
2714 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2715 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2717 eval ac_cv_prog_make_${ac_make}_set=yes;;
2719 eval ac_cv_prog_make_${ac_make}_set=no;;
2723 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2725 $as_echo "yes" >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 SET_MAKE="MAKE=${MAKE-make}"
2733 rm -rf .tst 2>/dev/null
2734 mkdir .tst 2>/dev/null
2735 if test -d .tst; then
2740 rmdir .tst 2>/dev/null
2742 # Check whether --enable-silent-rules was given.
2743 if test "${enable_silent_rules+set}" = set; then :
2744 enableval=$enable_silent_rules;
2747 case $enable_silent_rules in
2748 yes) AM_DEFAULT_VERBOSITY=0;;
2749 no) AM_DEFAULT_VERBOSITY=1;;
2750 *) AM_DEFAULT_VERBOSITY=1;;
2752 am_make=${MAKE-make}
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2754 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2755 if ${am_cv_make_support_nested_variables+:} false; then :
2756 $as_echo_n "(cached) " >&6
2758 if $as_echo 'TRUE=$(BAR$(V))
2764 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2765 am_cv_make_support_nested_variables=yes
2767 am_cv_make_support_nested_variables=no
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2771 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2772 if test $am_cv_make_support_nested_variables = yes; then
2774 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2776 AM_V=$AM_DEFAULT_VERBOSITY
2777 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2781 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2782 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2783 # is not polluted with repeated "-I."
2784 am__isrc=' -I$(srcdir)'
2785 # test to see if srcdir already configured
2786 if test -f $srcdir/config.status; then
2787 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2791 # test whether we have cygpath
2792 if test -z "$CYGPATH_W"; then
2793 if (cygpath --version) >/dev/null 2>/dev/null; then
2794 CYGPATH_W='cygpath -w'
2801 # Define the identity of the package.
2806 cat >>confdefs.h <<_ACEOF
2807 #define PACKAGE "$PACKAGE"
2811 cat >>confdefs.h <<_ACEOF
2812 #define VERSION "$VERSION"
2815 # Some tools Automake needs.
2817 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2820 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2823 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2826 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2829 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2831 # We need awk for the "check" target. The system "awk" is bad on
2833 # Always define AMTAR for backward compatibility. Yes, it's still used
2834 # in the wild :-( We should find a proper way to deprecate it ...
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2839 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2840 # Loop over all known methods to create a tar archive until one works.
2841 _am_tools='gnutar pax cpio none'
2842 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2843 # Do not fold the above two line into one, because Tru64 sh and
2844 # Solaris sh will not grok spaces in the rhs of `-'.
2845 for _am_tool in $_am_tools
2849 for _am_tar in tar gnutar gtar;
2851 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2852 ($_am_tar --version) >&5 2>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && break
2857 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2858 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2859 am__untar="$_am_tar -xf -"
2862 # Must skip GNU tar: if it does not support --format= it doesn't create
2863 # ustar tarball either.
2864 (tar --version) >/dev/null 2>&1 && continue
2865 am__tar='tar chf - "$$tardir"'
2866 am__tar_='tar chf - "$tardir"'
2867 am__untar='tar xf -'
2870 am__tar='pax -L -x pax -w "$$tardir"'
2871 am__tar_='pax -L -x pax -w "$tardir"'
2875 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2876 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2877 am__untar='cpio -i -H pax -d'
2886 # If the value was cached, stop now. We just wanted to have am__tar
2887 # and am__untar set.
2888 test -n "${am_cv_prog_tar_pax}" && break
2890 # tar/untar a dummy directory, and stop if the command works
2893 echo GrepMe > conftest.dir/file
2894 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2895 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2900 if test -s conftest.tar; then
2901 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2902 ($am__untar <conftest.tar) >&5 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2911 if ${am_cv_prog_tar_pax+:} false; then :
2912 $as_echo_n "(cached) " >&6
2914 am_cv_prog_tar_pax=$_am_tool
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2918 $as_echo "$am_cv_prog_tar_pax" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2930 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2935 macro_version='2.4.2'
2936 macro_revision='1.3337'
2950 ltmain="$ac_aux_dir/ltmain.sh"
2952 # Make sure we can run config.sub.
2953 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2954 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2957 $as_echo_n "checking build system type... " >&6; }
2958 if ${ac_cv_build+:} false; then :
2959 $as_echo_n "(cached) " >&6
2961 ac_build_alias=$build_alias
2962 test "x$ac_build_alias" = x &&
2963 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2964 test "x$ac_build_alias" = x &&
2965 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2966 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2967 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2971 $as_echo "$ac_cv_build" >&6; }
2972 case $ac_cv_build in
2974 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2977 ac_save_IFS=$IFS; IFS='-'
2983 # Remember, the first character of IFS is used to create $*,
2984 # except with old shells:
2987 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2991 $as_echo_n "checking host system type... " >&6; }
2992 if ${ac_cv_host+:} false; then :
2993 $as_echo_n "(cached) " >&6
2995 if test "x$host_alias" = x; then
2996 ac_cv_host=$ac_cv_build
2998 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2999 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3004 $as_echo "$ac_cv_host" >&6; }
3007 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3010 ac_save_IFS=$IFS; IFS='-'
3016 # Remember, the first character of IFS is used to create $*,
3017 # except with old shells:
3020 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3023 # Backslashify metacharacters that are still active within
3024 # double-quoted strings.
3025 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3027 # Same as above, but do not quote variable references.
3028 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3030 # Sed substitution to delay expansion of an escaped shell variable in a
3031 # double_quote_subst'ed string.
3032 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3034 # Sed substitution to delay expansion of an escaped single quote.
3035 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3037 # Sed substitution to avoid accidental globbing in evaled expressions
3038 no_glob_subst='s/\*/\\\*/g'
3040 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3041 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3042 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3045 $as_echo_n "checking how to print strings... " >&6; }
3046 # Test print first, because it will be a builtin if present.
3047 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3048 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3050 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3053 # Use this function as a fallback that always works.
3054 func_fallback_echo ()
3056 eval 'cat <<_LTECHO_EOF
3060 ECHO='func_fallback_echo'
3063 # func_echo_all arg...
3064 # Invoke $ECHO with all args, space-separated.
3071 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3072 $as_echo "printf" >&6; } ;;
3073 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3074 $as_echo "print -r" >&6; } ;;
3075 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3076 $as_echo "cat" >&6; } ;;
3092 DEPDIR="${am__leading_dot}deps"
3094 ac_config_commands="$ac_config_commands depfiles"
3097 am_make=${MAKE-make}
3098 cat > confinc << 'END'
3100 @echo this is the am__doit target
3103 # If we don't find an include directive, just comment out the code.
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3105 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3109 # First try GNU make style include.
3110 echo "include confinc" > confmf
3111 # Ignore all kinds of additional output from `make'.
3112 case `$am_make -s -f confmf 2> /dev/null` in #(
3113 *the\ am__doit\ target*)
3119 # Now try BSD make style include.
3120 if test "$am__include" = "#"; then
3121 echo '.include "confinc"' > confmf
3122 case `$am_make -s -f confmf 2> /dev/null` in #(
3123 *the\ am__doit\ target*)
3124 am__include=.include
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3133 $as_echo "$_am_result" >&6; }
3134 rm -f confinc confmf
3136 # Check whether --enable-dependency-tracking was given.
3137 if test "${enable_dependency_tracking+set}" = set; then :
3138 enableval=$enable_dependency_tracking;
3141 if test "x$enable_dependency_tracking" != xno; then
3142 am_depcomp="$ac_aux_dir/depcomp"
3146 if test "x$enable_dependency_tracking" != xno; then
3156 ac_cpp='$CPP $CPPFLAGS'
3157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_CC+:} false; then :
3166 $as_echo_n "(cached) " >&6
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 if test -n "$CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191 $as_echo "$CC" >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3199 if test -z "$ac_cv_prog_CC"; then
3201 # Extract the first word of "gcc", so it can be a program name with args.
3202 set dummy gcc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3206 $as_echo_n "(cached) " >&6
3208 if test -n "$ac_ct_CC"; then
3209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_ac_ct_CC="gcc"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229 if test -n "$ac_ct_CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3231 $as_echo "$ac_ct_CC" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3237 if test "x$ac_ct_CC" = x; then
3240 case $cross_compiling:$ac_tool_warned in
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3252 if test -z "$CC"; then
3253 if test -n "$ac_tool_prefix"; then
3254 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}cc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271 ac_cv_prog_CC="${ac_tool_prefix}cc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 if test -n "$CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3293 if test -z "$CC"; then
3294 # Extract the first word of "cc", so it can be a program name with args.
3295 set dummy cc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if ${ac_cv_prog_CC+:} false; then :
3299 $as_echo_n "(cached) " >&6
3301 if test -n "$CC"; then
3302 ac_cv_prog_CC="$CC" # Let the user override the test.
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3313 ac_prog_rejected=yes
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 if test $ac_prog_rejected = yes; then
3325 # We found a bogon in the path, so make sure we never use it.
3326 set dummy $ac_cv_prog_CC
3328 if test $# != 0; then
3329 # We chose a different compiler from the bogus one.
3330 # However, it has the same basename, so the bogon will be chosen
3331 # first if we set CC to just the basename; use the full file name.
3333 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3349 if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 for ac_prog in cl.exe
3353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if ${ac_cv_prog_CC+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 if test -n "$CC"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3383 $as_echo "$CC" >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3390 test -n "$CC" && break
3393 if test -z "$CC"; then
3395 for ac_prog in cl.exe
3397 # Extract the first word of "$ac_prog", so it can be a program name with args.
3398 set dummy $ac_prog; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3402 $as_echo_n "(cached) " >&6
3404 if test -n "$ac_ct_CC"; then
3405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414 ac_cv_prog_ac_ct_CC="$ac_prog"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3425 if test -n "$ac_ct_CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3427 $as_echo "$ac_ct_CC" >&6; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3434 test -n "$ac_ct_CC" && break
3437 if test "x$ac_ct_CC" = x; then
3440 case $cross_compiling:$ac_tool_warned in
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3444 ac_tool_warned=yes ;;
3453 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "no acceptable C compiler found in \$PATH
3456 See \`config.log' for more details" "$LINENO" 5; }
3458 # Provide some information about the compiler.
3459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3462 for ac_option in --version -v -V -qversion; do
3463 { { ac_try="$ac_compiler $ac_option >&5"
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3472 if test -s conftest.err; then
3474 ... rest of stderr output deleted ...
3475 10q' conftest.err >conftest.er1
3476 cat conftest.er1 >&5
3478 rm -f conftest.er1 conftest.err
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3494 ac_clean_files_save=$ac_clean_files
3495 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3496 # Try to create an executable without -o first, disregard a.out.
3497 # It will help us diagnose broken compilers, and finding out an intuition
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3500 $as_echo_n "checking whether the C compiler works... " >&6; }
3501 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3503 # The possible output files:
3504 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3507 for ac_file in $ac_files
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3511 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3516 if { { ac_try="$ac_link_default"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_link_default") 2>&5
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; then :
3527 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3528 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3529 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3530 # so that the user can short-circuit this test for compilers unknown to
3532 for ac_file in $ac_files ''
3534 test -f "$ac_file" || continue
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3539 # We found the default executable, but exeext='' is most
3543 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3547 # We set ac_cv_exeext here because the later test for it is not
3548 # safe: cross compilers may not add the suffix if given an `-o'
3549 # argument, so we may need to know it at that point already.
3550 # Even if this section looks crufty: it has the advantage of
3557 test "$ac_cv_exeext" = no && ac_cv_exeext=
3562 if test -z "$ac_file"; then :
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 as_fn_error 77 "C compiler cannot create executables
3571 See \`config.log' for more details" "$LINENO" 5; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3574 $as_echo "yes" >&6; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3577 $as_echo_n "checking for C compiler default output file name... " >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3579 $as_echo "$ac_file" >&6; }
3580 ac_exeext=$ac_cv_exeext
3582 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3583 ac_clean_files=$ac_clean_files_save
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3585 $as_echo_n "checking for suffix of executables... " >&6; }
3586 if { { ac_try="$ac_link"
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_link") 2>&5
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }; then :
3597 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3598 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3599 # work properly (i.e., refer to `conftest.exe'), while it won't with
3601 for ac_file in conftest.exe conftest conftest.*; do
3602 test -f "$ac_file" || continue
3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3605 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3614 See \`config.log' for more details" "$LINENO" 5; }
3616 rm -f conftest conftest$ac_cv_exeext
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3618 $as_echo "$ac_cv_exeext" >&6; }
3620 rm -f conftest.$ac_ext
3621 EXEEXT=$ac_cv_exeext
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3629 FILE *f = fopen ("conftest.out", "w");
3630 return ferror (f) || fclose (f) != 0;
3636 ac_clean_files="$ac_clean_files conftest.out"
3637 # Check that the compiler produces executables we can run. If not, either
3638 # the compiler is broken, or we cross compile.
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3640 $as_echo_n "checking whether we are cross compiling... " >&6; }
3641 if test "$cross_compiling" != yes; then
3642 { { ac_try="$ac_link"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3648 $as_echo "$ac_try_echo"; } >&5
3649 (eval "$ac_link") 2>&5
3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652 test $ac_status = 0; }
3653 if { ac_try='./conftest$ac_cv_exeext'
3654 { { case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_try") 2>&5
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }; }; then
3666 if test "$cross_compiling" = maybe; then
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error $? "cannot run C compiled programs.
3672 If you meant to cross compile, use \`--host'.
3673 See \`config.log' for more details" "$LINENO" 5; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3678 $as_echo "$cross_compiling" >&6; }
3680 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3681 ac_clean_files=$ac_clean_files_save
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3683 $as_echo_n "checking for suffix of object files... " >&6; }
3684 if ${ac_cv_objext+:} false; then :
3685 $as_echo_n "(cached) " >&6
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3698 rm -f conftest.o conftest.obj
3699 if { { ac_try="$ac_compile"
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706 (eval "$ac_compile") 2>&5
3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }; then :
3710 for ac_file in conftest.o conftest.obj conftest.*; do
3711 test -f "$ac_file" || continue;
3713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3714 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error $? "cannot compute suffix of object files: cannot compile
3725 See \`config.log' for more details" "$LINENO" 5; }
3727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3730 $as_echo "$ac_cv_objext" >&6; }
3731 OBJEXT=$ac_cv_objext
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3734 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3735 if ${ac_cv_c_compiler_gnu+:} false; then :
3736 $as_echo_n "(cached) " >&6
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3752 if ac_fn_c_try_compile "$LINENO"; then :
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3762 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3763 if test $ac_compiler_gnu = yes; then
3768 ac_test_CFLAGS=${CFLAGS+set}
3769 ac_save_CFLAGS=$CFLAGS
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3771 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3772 if ${ac_cv_prog_cc_g+:} false; then :
3773 $as_echo_n "(cached) " >&6
3775 ac_save_c_werror_flag=$ac_c_werror_flag
3776 ac_c_werror_flag=yes
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3790 if ac_fn_c_try_compile "$LINENO"; then :
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3805 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_c_werror_flag=$ac_save_c_werror_flag
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3821 if ac_fn_c_try_compile "$LINENO"; then :
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 ac_c_werror_flag=$ac_save_c_werror_flag
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3832 $as_echo "$ac_cv_prog_cc_g" >&6; }
3833 if test "$ac_test_CFLAGS" = set; then
3834 CFLAGS=$ac_save_CFLAGS
3835 elif test $ac_cv_prog_cc_g = yes; then
3836 if test "$GCC" = yes; then
3842 if test "$GCC" = yes; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3849 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3850 if ${ac_cv_prog_cc_c89+:} false; then :
3851 $as_echo_n "(cached) " >&6
3853 ac_cv_prog_cc_c89=no
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3859 #include <sys/types.h>
3860 #include <sys/stat.h>
3861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3862 struct buf { int x; };
3863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3864 static char *e (p, i)
3870 static char *f (char * (*g) (char **, int), char **p, ...)
3875 s = g (p, va_arg (v,int));
3880 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3881 function prototypes and stuff, but not '\xHH' hex character constants.
3882 These don't provoke an error unfortunately, instead are silently treated
3883 as 'x'. The following induces an error, until -std is added to get
3884 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3885 array size at least. It's necessary to write '\x00'==0 to get something
3886 that's true only with -std. */
3887 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3889 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3890 inside strings and character constants. */
3892 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3894 int test (int i, double x);
3895 struct s1 {int (*f) (int a);};
3896 struct s2 {int (*f) (double a);};
3897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3903 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3908 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3909 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3911 CC="$ac_save_CC $ac_arg"
3912 if ac_fn_c_try_compile "$LINENO"; then :
3913 ac_cv_prog_cc_c89=$ac_arg
3915 rm -f core conftest.err conftest.$ac_objext
3916 test "x$ac_cv_prog_cc_c89" != "xno" && break
3918 rm -f conftest.$ac_ext
3923 case "x$ac_cv_prog_cc_c89" in
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3926 $as_echo "none needed" >&6; } ;;
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3929 $as_echo "unsupported" >&6; } ;;
3931 CC="$CC $ac_cv_prog_cc_c89"
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3933 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3935 if test "x$ac_cv_prog_cc_c89" != xno; then :
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945 depcc="$CC" am_compiler_list=
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3948 $as_echo_n "checking dependency style of $depcc... " >&6; }
3949 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3950 $as_echo_n "(cached) " >&6
3952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3953 # We make a subdir and do the tests there. Otherwise we can end up
3954 # making bogus files that we don't know about and never remove. For
3955 # instance it was reported that on HP-UX the gcc test will end up
3956 # making a dummy file named `D' -- because `-MD' means `put the output
3960 # Copy depcomp to subdir because otherwise we won't find it if we're
3961 # using a relative directory.
3962 cp "$am_depcomp" conftest.dir
3964 # We will build objects and dependencies in a subdirectory because
3965 # it helps to detect inapplicable dependency modes. For instance
3966 # both Tru64's cc and ICC support -MD to output dependencies as a
3967 # side effect of compilation, but ICC will put the dependencies in
3968 # the current directory while Tru64 will put them in the object
3972 am_cv_CC_dependencies_compiler_type=none
3973 if test "$am_compiler_list" = ""; then
3974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3977 case " $depcc " in #(
3978 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3981 for depmode in $am_compiler_list; do
3982 # Setup a source with many dependencies, because some compilers
3983 # like to wrap large dependency lists on column 80 (with \), and
3984 # we should not choose a depcomp mode which is confused by this.
3986 # We need to recreate these files for each test, as the compiler may
3987 # overwrite some of them when testing with obscure command lines.
3988 # This happens at least with the AIX C compiler.
3990 for i in 1 2 3 4 5 6; do
3991 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3992 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3993 # Solaris 8's {/usr,}/bin/sh.
3994 touch sub/conftst$i.h
3996 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3998 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3999 # mode. It turns out that the SunPro C++ compiler does not properly
4000 # handle `-M -o', and we need to detect this. Also, some Intel
4001 # versions had trouble with output in subdirs
4002 am__obj=sub/conftest.${OBJEXT-o}
4003 am__minus_obj="-o $am__obj"
4006 # This depmode causes a compiler race in universal mode.
4007 test "$am__universal" = false || continue
4010 # after this tag, mechanisms are not by side-effect, so they'll
4011 # only be used when explicitly requested
4012 if test "x$enable_dependency_tracking" = xyes; then
4018 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4019 # This compiler won't grok `-c -o', but also, the minuso test has
4020 # not run yet. These depmodes are late enough in the game, and
4021 # so weak that their functioning should not be impacted.
4022 am__obj=conftest.${OBJEXT-o}
4027 if depmode=$depmode \
4028 source=sub/conftest.c object=$am__obj \
4029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4030 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4031 >/dev/null 2>conftest.err &&
4032 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4033 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4034 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4035 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4036 # icc doesn't choke on unknown options, it will just issue warnings
4037 # or remarks (even with -Werror). So we grep stderr for any message
4038 # that says an option was ignored or not supported.
4039 # When given -MP, icc 7.0 and 7.1 complain thusly:
4040 # icc: Command line warning: ignoring option '-M'; no argument required
4041 # The diagnosis changed in icc 8.0:
4042 # icc: Command line remark: option '-MP' not supported
4043 if (grep 'ignoring option' conftest.err ||
4044 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4045 am_cv_CC_dependencies_compiler_type=$depmode
4054 am_cv_CC_dependencies_compiler_type=none
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4059 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4060 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4063 test "x$enable_dependency_tracking" != xno \
4064 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4066 am__fastdepCC_FALSE='#'
4068 am__fastdepCC_TRUE='#'
4069 am__fastdepCC_FALSE=
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4074 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4075 if ${ac_cv_path_SED+:} false; then :
4076 $as_echo_n "(cached) " >&6
4078 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4079 for ac_i in 1 2 3 4 5 6 7; do
4080 ac_script="$ac_script$as_nl$ac_script"
4082 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4083 { ac_script=; unset ac_script;}
4084 if test -z "$SED"; then
4085 ac_path_SED_found=false
4086 # Loop through the user's path and test for each of PROGNAME-LIST
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 test -z "$as_dir" && as_dir=.
4092 for ac_prog in sed gsed; do
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4095 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4096 # Check for GNU ac_path_SED and select it if it is found.
4097 # Check for GNU $ac_path_SED
4098 case `"$ac_path_SED" --version 2>&1` in
4100 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4103 $as_echo_n 0123456789 >"conftest.in"
4106 cat "conftest.in" "conftest.in" >"conftest.tmp"
4107 mv "conftest.tmp" "conftest.in"
4108 cp "conftest.in" "conftest.nl"
4109 $as_echo '' >> "conftest.nl"
4110 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4112 as_fn_arith $ac_count + 1 && ac_count=$as_val
4113 if test $ac_count -gt ${ac_path_SED_max-0}; then
4114 # Best one so far, save it but keep looking for a better one
4115 ac_cv_path_SED="$ac_path_SED"
4116 ac_path_SED_max=$ac_count
4118 # 10*(2^10) chars as input seems more than enough
4119 test $ac_count -gt 10 && break
4121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4124 $ac_path_SED_found && break 3
4129 if test -z "$ac_cv_path_SED"; then
4130 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4138 $as_echo "$ac_cv_path_SED" >&6; }
4139 SED="$ac_cv_path_SED"
4142 test -z "$SED" && SED=sed
4143 Xsed="$SED -e 1s/^X//"
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4156 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4157 if ${ac_cv_path_GREP+:} false; then :
4158 $as_echo_n "(cached) " >&6
4160 if test -z "$GREP"; then
4161 ac_path_GREP_found=false
4162 # Loop through the user's path and test for each of PROGNAME-LIST
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4167 test -z "$as_dir" && as_dir=.
4168 for ac_prog in grep ggrep; do
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4171 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4172 # Check for GNU ac_path_GREP and select it if it is found.
4173 # Check for GNU $ac_path_GREP
4174 case `"$ac_path_GREP" --version 2>&1` in
4176 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4179 $as_echo_n 0123456789 >"conftest.in"
4182 cat "conftest.in" "conftest.in" >"conftest.tmp"
4183 mv "conftest.tmp" "conftest.in"
4184 cp "conftest.in" "conftest.nl"
4185 $as_echo 'GREP' >> "conftest.nl"
4186 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188 as_fn_arith $ac_count + 1 && ac_count=$as_val
4189 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4190 # Best one so far, save it but keep looking for a better one
4191 ac_cv_path_GREP="$ac_path_GREP"
4192 ac_path_GREP_max=$ac_count
4194 # 10*(2^10) chars as input seems more than enough
4195 test $ac_count -gt 10 && break
4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4200 $ac_path_GREP_found && break 3
4205 if test -z "$ac_cv_path_GREP"; then
4206 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4209 ac_cv_path_GREP=$GREP
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4214 $as_echo "$ac_cv_path_GREP" >&6; }
4215 GREP="$ac_cv_path_GREP"
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4219 $as_echo_n "checking for egrep... " >&6; }
4220 if ${ac_cv_path_EGREP+:} false; then :
4221 $as_echo_n "(cached) " >&6
4223 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4224 then ac_cv_path_EGREP="$GREP -E"
4226 if test -z "$EGREP"; then
4227 ac_path_EGREP_found=false
4228 # Loop through the user's path and test for each of PROGNAME-LIST
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4233 test -z "$as_dir" && as_dir=.
4234 for ac_prog in egrep; do
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4237 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4238 # Check for GNU ac_path_EGREP and select it if it is found.
4239 # Check for GNU $ac_path_EGREP
4240 case `"$ac_path_EGREP" --version 2>&1` in
4242 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4245 $as_echo_n 0123456789 >"conftest.in"
4248 cat "conftest.in" "conftest.in" >"conftest.tmp"
4249 mv "conftest.tmp" "conftest.in"
4250 cp "conftest.in" "conftest.nl"
4251 $as_echo 'EGREP' >> "conftest.nl"
4252 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4254 as_fn_arith $ac_count + 1 && ac_count=$as_val
4255 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4256 # Best one so far, save it but keep looking for a better one
4257 ac_cv_path_EGREP="$ac_path_EGREP"
4258 ac_path_EGREP_max=$ac_count
4260 # 10*(2^10) chars as input seems more than enough
4261 test $ac_count -gt 10 && break
4263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4266 $ac_path_EGREP_found && break 3
4271 if test -z "$ac_cv_path_EGREP"; then
4272 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4275 ac_cv_path_EGREP=$EGREP
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4281 $as_echo "$ac_cv_path_EGREP" >&6; }
4282 EGREP="$ac_cv_path_EGREP"
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4286 $as_echo_n "checking for fgrep... " >&6; }
4287 if ${ac_cv_path_FGREP+:} false; then :
4288 $as_echo_n "(cached) " >&6
4290 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4291 then ac_cv_path_FGREP="$GREP -F"
4293 if test -z "$FGREP"; then
4294 ac_path_FGREP_found=false
4295 # Loop through the user's path and test for each of PROGNAME-LIST
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4300 test -z "$as_dir" && as_dir=.
4301 for ac_prog in fgrep; do
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4304 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4305 # Check for GNU ac_path_FGREP and select it if it is found.
4306 # Check for GNU $ac_path_FGREP
4307 case `"$ac_path_FGREP" --version 2>&1` in
4309 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4312 $as_echo_n 0123456789 >"conftest.in"
4315 cat "conftest.in" "conftest.in" >"conftest.tmp"
4316 mv "conftest.tmp" "conftest.in"
4317 cp "conftest.in" "conftest.nl"
4318 $as_echo 'FGREP' >> "conftest.nl"
4319 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4321 as_fn_arith $ac_count + 1 && ac_count=$as_val
4322 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4323 # Best one so far, save it but keep looking for a better one
4324 ac_cv_path_FGREP="$ac_path_FGREP"
4325 ac_path_FGREP_max=$ac_count
4327 # 10*(2^10) chars as input seems more than enough
4328 test $ac_count -gt 10 && break
4330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333 $ac_path_FGREP_found && break 3
4338 if test -z "$ac_cv_path_FGREP"; then
4339 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4342 ac_cv_path_FGREP=$FGREP
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4348 $as_echo "$ac_cv_path_FGREP" >&6; }
4349 FGREP="$ac_cv_path_FGREP"
4352 test -z "$GREP" && GREP=grep
4372 # Check whether --with-gnu-ld was given.
4373 if test "${with_gnu_ld+set}" = set; then :
4374 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4380 if test "$GCC" = yes; then
4381 # Check if gcc -print-prog-name=ld gives a path.
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4383 $as_echo_n "checking for ld used by $CC... " >&6; }
4386 # gcc leaves a trailing carriage return which upsets mingw
4387 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4389 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4392 # Accept absolute paths.
4394 re_direlt='/[^/][^/]*/\.\./'
4395 # Canonicalize the pathname of ld
4396 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4397 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4398 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4400 test -z "$LD" && LD="$ac_prog"
4403 # If it fails, then pretend we aren't using GCC.
4407 # If it is relative, then search for the first ld in PATH.
4411 elif test "$with_gnu_ld" = yes; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4413 $as_echo_n "checking for GNU ld... " >&6; }
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4416 $as_echo_n "checking for non-GNU ld... " >&6; }
4418 if ${lt_cv_path_LD+:} false; then :
4419 $as_echo_n "(cached) " >&6
4421 if test -z "$LD"; then
4422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4423 for ac_dir in $PATH; do
4425 test -z "$ac_dir" && ac_dir=.
4426 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4427 lt_cv_path_LD="$ac_dir/$ac_prog"
4428 # Check to see if the program is GNU ld. I'd rather use --version,
4429 # but apparently some variants of GNU ld only accept -v.
4430 # Break only if it was the GNU/non-GNU ld that we prefer.
4431 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4432 *GNU* | *'with BFD'*)
4433 test "$with_gnu_ld" != no && break
4436 test "$with_gnu_ld" != yes && break
4443 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4448 if test -n "$LD"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4450 $as_echo "$LD" >&6; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4455 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4457 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4458 if ${lt_cv_prog_gnu_ld+:} false; then :
4459 $as_echo_n "(cached) " >&6
4461 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4462 case `$LD -v 2>&1 </dev/null` in
4463 *GNU* | *'with BFD'*)
4464 lt_cv_prog_gnu_ld=yes
4467 lt_cv_prog_gnu_ld=no
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4472 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4473 with_gnu_ld=$lt_cv_prog_gnu_ld
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4484 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4485 if ${lt_cv_path_NM+:} false; then :
4486 $as_echo_n "(cached) " >&6
4488 if test -n "$NM"; then
4489 # Let the user override the test.
4492 lt_nm_to_check="${ac_tool_prefix}nm"
4493 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4494 lt_nm_to_check="$lt_nm_to_check nm"
4496 for lt_tmp_nm in $lt_nm_to_check; do
4497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4498 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4500 test -z "$ac_dir" && ac_dir=.
4501 tmp_nm="$ac_dir/$lt_tmp_nm"
4502 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4503 # Check to see if the nm accepts a BSD-compat flag.
4504 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4505 # nm: unknown option "B" ignored
4506 # Tru64's nm complains that /dev/null is an invalid object file
4507 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4508 */dev/null* | *'Invalid file or object type'*)
4509 lt_cv_path_NM="$tmp_nm -B"
4513 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4515 lt_cv_path_NM="$tmp_nm -p"
4519 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4520 continue # so that we can try to find one that supports BSD flags
4529 : ${lt_cv_path_NM=no}
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4533 $as_echo "$lt_cv_path_NM" >&6; }
4534 if test "$lt_cv_path_NM" != "no"; then
4537 # Didn't find any BSD compatible name lister, look for dumpbin.
4538 if test -n "$DUMPBIN"; then :
4539 # Let the user override the test.
4541 if test -n "$ac_tool_prefix"; then
4542 for ac_prog in dumpbin "link -dump"
4544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_DUMPBIN+:} false; then :
4549 $as_echo_n "(cached) " >&6
4551 if test -n "$DUMPBIN"; then
4552 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 DUMPBIN=$ac_cv_prog_DUMPBIN
4572 if test -n "$DUMPBIN"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4574 $as_echo "$DUMPBIN" >&6; }
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4581 test -n "$DUMPBIN" && break
4584 if test -z "$DUMPBIN"; then
4585 ac_ct_DUMPBIN=$DUMPBIN
4586 for ac_prog in dumpbin "link -dump"
4588 # Extract the first word of "$ac_prog", so it can be a program name with args.
4589 set dummy $ac_prog; ac_word=$2
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4593 $as_echo_n "(cached) " >&6
4595 if test -n "$ac_ct_DUMPBIN"; then
4596 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4616 if test -n "$ac_ct_DUMPBIN"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4618 $as_echo "$ac_ct_DUMPBIN" >&6; }
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4625 test -n "$ac_ct_DUMPBIN" && break
4628 if test "x$ac_ct_DUMPBIN" = x; then
4631 case $cross_compiling:$ac_tool_warned in
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4635 ac_tool_warned=yes ;;
4637 DUMPBIN=$ac_ct_DUMPBIN
4641 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4643 DUMPBIN="$DUMPBIN -symbols"
4651 if test "$DUMPBIN" != ":"; then
4655 test -z "$NM" && NM=nm
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4663 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4664 if ${lt_cv_nm_interface+:} false; then :
4665 $as_echo_n "(cached) " >&6
4667 lt_cv_nm_interface="BSD nm"
4668 echo "int some_variable = 0;" > conftest.$ac_ext
4669 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4670 (eval "$ac_compile" 2>conftest.err)
4671 cat conftest.err >&5
4672 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4673 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4674 cat conftest.err >&5
4675 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4676 cat conftest.out >&5
4677 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4678 lt_cv_nm_interface="MS dumpbin"
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4683 $as_echo "$lt_cv_nm_interface" >&6; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4686 $as_echo_n "checking whether ln -s works... " >&6; }
4688 if test "$LN_S" = "ln -s"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4690 $as_echo "yes" >&6; }
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4693 $as_echo "no, using $LN_S" >&6; }
4696 # find the maximum length of command line arguments
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4698 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4699 if ${lt_cv_sys_max_cmd_len+:} false; then :
4700 $as_echo_n "(cached) " >&6
4707 # On DJGPP, this test can blow up pretty badly due to problems in libc
4708 # (any single argument exceeding 2000 bytes causes a buffer overrun
4709 # during glob expansion). Even if it were fixed, the result of this
4710 # check would be larger than it should be.
4711 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4715 # Under GNU Hurd, this test is not required because there is
4716 # no limit to the length of command line arguments.
4717 # Libtool will interpret -1 as no limit whatsoever
4718 lt_cv_sys_max_cmd_len=-1;
4721 cygwin* | mingw* | cegcc*)
4722 # On Win9x/ME, this test blows up -- it succeeds, but takes
4723 # about 5 minutes as the teststring grows exponentially.
4724 # Worse, since 9x/ME are not pre-emptively multitasking,
4725 # you end up with a "frozen" computer, even though with patience
4726 # the test eventually succeeds (with a max line length of 256k).
4727 # Instead, let's just punt: use the minimum linelength reported by
4728 # all of the supported platforms: 8192 (on NT/2K/XP).
4729 lt_cv_sys_max_cmd_len=8192;
4733 # On MiNT this can take a long time and run out of memory.
4734 lt_cv_sys_max_cmd_len=8192;
4738 # On AmigaOS with pdksh, this test takes hours, literally.
4739 # So we just punt and use a minimum line length of 8192.
4740 lt_cv_sys_max_cmd_len=8192;
4743 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4744 # This has been around since 386BSD, at least. Likely further.
4745 if test -x /sbin/sysctl; then
4746 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4747 elif test -x /usr/sbin/sysctl; then
4748 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4750 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4752 # And add a safety zone
4753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4758 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4759 lt_cv_sys_max_cmd_len=196608
4763 # The test takes a long time on OS/2.
4764 lt_cv_sys_max_cmd_len=8192
4768 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4769 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4770 # nice to cause kernel panics so lets avoid the loop below.
4771 # First set a reasonable default.
4772 lt_cv_sys_max_cmd_len=16384
4774 if test -x /sbin/sysconfig; then
4775 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4776 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4781 lt_cv_sys_max_cmd_len=102400
4783 sysv5* | sco5v6* | sysv4.2uw2*)
4784 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4785 if test -n "$kargmax"; then
4786 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4788 lt_cv_sys_max_cmd_len=32768
4792 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4793 if test -n "$lt_cv_sys_max_cmd_len"; then
4794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4797 # Make teststring a little bigger before we do anything with it.
4798 # a 1K string should be a reasonable start.
4799 for i in 1 2 3 4 5 6 7 8 ; do
4800 teststring=$teststring$teststring
4802 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4803 # If test is not a shell built-in, we'll probably end up computing a
4804 # maximum length that is only half of the actual maximum length, but
4806 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4807 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4808 test $i != 17 # 1/2 MB should be enough
4811 teststring=$teststring$teststring
4813 # Only check the string length outside the loop.
4814 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4816 # Add a significant safety factor because C++ compilers can tack on
4817 # massive amounts of additional arguments before passing them to the
4818 # linker. It appears as though 1/2 is a usable value.
4819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4826 if test -n $lt_cv_sys_max_cmd_len ; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4828 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4831 $as_echo "none" >&6; }
4833 max_cmd_len=$lt_cv_sys_max_cmd_len
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4845 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4846 # Try some XSI features
4849 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4851 && eval 'test $(( 1 + 1 )) -eq 2 \
4852 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4855 $as_echo "$xsi_shell" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4859 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4861 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4863 && lt_shell_append=yes
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4865 $as_echo "$lt_shell_append" >&6; }
4868 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4878 # test EBCDIC or ASCII
4879 case `echo X|tr X '\101'` in
4880 A) # ASCII based system
4881 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4882 lt_SP2NL='tr \040 \012'
4883 lt_NL2SP='tr \015\012 \040\040'
4885 *) # EBCDIC based system
4886 lt_SP2NL='tr \100 \n'
4887 lt_NL2SP='tr \r\n \100\100'
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4900 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4901 if ${lt_cv_to_host_file_cmd+:} false; then :
4902 $as_echo_n "(cached) " >&6
4907 *-*-mingw* ) # actually msys
4908 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4911 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4913 * ) # otherwise, assume *nix
4914 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4920 *-*-mingw* ) # actually msys
4921 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4924 lt_cv_to_host_file_cmd=func_convert_file_noop
4926 * ) # otherwise, assume *nix
4927 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4931 * ) # unhandled hosts (and "normal" native builds)
4932 lt_cv_to_host_file_cmd=func_convert_file_noop
4938 to_host_file_cmd=$lt_cv_to_host_file_cmd
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4940 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4947 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4948 if ${lt_cv_to_tool_file_cmd+:} false; then :
4949 $as_echo_n "(cached) " >&6
4951 #assume ordinary cross tools, or native build.
4952 lt_cv_to_tool_file_cmd=func_convert_file_noop
4956 *-*-mingw* ) # actually msys
4957 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4965 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4967 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4974 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4975 if ${lt_cv_ld_reload_flag+:} false; then :
4976 $as_echo_n "(cached) " >&6
4978 lt_cv_ld_reload_flag='-r'
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4981 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4982 reload_flag=$lt_cv_ld_reload_flag
4983 case $reload_flag in
4985 *) reload_flag=" $reload_flag" ;;
4987 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4989 cygwin* | mingw* | pw32* | cegcc*)
4990 if test "$GCC" != yes; then
4995 if test "$GCC" = yes; then
4996 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4998 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5011 if test -n "$ac_tool_prefix"; then
5012 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5013 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_prog_OBJDUMP+:} false; then :
5017 $as_echo_n "(cached) " >&6
5019 if test -n "$OBJDUMP"; then
5020 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 OBJDUMP=$ac_cv_prog_OBJDUMP
5040 if test -n "$OBJDUMP"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5042 $as_echo "$OBJDUMP" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5050 if test -z "$ac_cv_prog_OBJDUMP"; then
5051 ac_ct_OBJDUMP=$OBJDUMP
5052 # Extract the first word of "objdump", so it can be a program name with args.
5053 set dummy objdump; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5057 $as_echo_n "(cached) " >&6
5059 if test -n "$ac_ct_OBJDUMP"; then
5060 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5080 if test -n "$ac_ct_OBJDUMP"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5082 $as_echo "$ac_ct_OBJDUMP" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5088 if test "x$ac_ct_OBJDUMP" = x; then
5091 case $cross_compiling:$ac_tool_warned in
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5095 ac_tool_warned=yes ;;
5097 OBJDUMP=$ac_ct_OBJDUMP
5100 OBJDUMP="$ac_cv_prog_OBJDUMP"
5103 test -z "$OBJDUMP" && OBJDUMP=objdump
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5114 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5115 if ${lt_cv_deplibs_check_method+:} false; then :
5116 $as_echo_n "(cached) " >&6
5118 lt_cv_file_magic_cmd='$MAGIC_CMD'
5119 lt_cv_file_magic_test_file=
5120 lt_cv_deplibs_check_method='unknown'
5121 # Need to set the preceding variable on all platforms that support
5122 # interlibrary dependencies.
5123 # 'none' -- dependencies not supported.
5124 # `unknown' -- same as none, but documents that we really don't know.
5125 # 'pass_all' -- all dependencies passed with no checks.
5126 # 'test_compile' -- check by making test program.
5127 # 'file_magic [[regex]]' -- check by looking for files in library path
5128 # which responds to the $file_magic_cmd with a given extended regex.
5129 # If you have `file' or equivalent on your system and you're not sure
5130 # whether `pass_all' will *always* work, you probably want this one.
5134 lt_cv_deplibs_check_method=pass_all
5138 lt_cv_deplibs_check_method=pass_all
5142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5143 lt_cv_file_magic_cmd='/usr/bin/file -L'
5144 lt_cv_file_magic_test_file=/shlib/libc.so
5148 # func_win32_libid is a shell function defined in ltmain.sh
5149 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5150 lt_cv_file_magic_cmd='func_win32_libid'
5154 # Base MSYS/MinGW do not provide the 'file' command needed by
5155 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5156 # unless we find 'file', for example because we are cross-compiling.
5157 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5158 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5159 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5160 lt_cv_file_magic_cmd='func_win32_libid'
5162 # Keep this pattern in sync with the one in func_win32_libid.
5163 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5164 lt_cv_file_magic_cmd='$OBJDUMP -f'
5169 # use the weaker test based on 'objdump'. See mingw*.
5170 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5171 lt_cv_file_magic_cmd='$OBJDUMP -f'
5174 darwin* | rhapsody*)
5175 lt_cv_deplibs_check_method=pass_all
5178 freebsd* | dragonfly*)
5179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5182 # Not sure whether the presence of OpenBSD here was a mistake.
5183 # Let's accept both of them until this is cleared up.
5184 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5185 lt_cv_file_magic_cmd=/usr/bin/file
5186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5190 lt_cv_deplibs_check_method=pass_all
5195 lt_cv_deplibs_check_method=pass_all
5199 lt_cv_deplibs_check_method=pass_all
5202 hpux10.20* | hpux11*)
5203 lt_cv_file_magic_cmd=/usr/bin/file
5206 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5207 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5210 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]'
5211 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5214 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5215 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5221 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5225 irix5* | irix6* | nonstopux*)
5227 *-32|*"-32 ") libmagic=32-bit;;
5228 *-n32|*"-n32 ") libmagic=N32;;
5229 *-64|*"-64 ") libmagic=64-bit;;
5230 *) libmagic=never-match;;
5232 lt_cv_deplibs_check_method=pass_all
5235 # This must be glibc/ELF.
5236 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5237 lt_cv_deplibs_check_method=pass_all
5240 netbsd* | netbsdelf*-gnu)
5241 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5249 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5250 lt_cv_file_magic_cmd=/usr/bin/file
5251 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5255 lt_cv_deplibs_check_method=pass_all
5259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5266 osf3* | osf4* | osf5*)
5267 lt_cv_deplibs_check_method=pass_all
5271 lt_cv_deplibs_check_method=pass_all
5275 lt_cv_deplibs_check_method=pass_all
5278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5279 lt_cv_deplibs_check_method=pass_all
5283 case $host_vendor in
5285 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]'
5286 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5289 lt_cv_deplibs_check_method=pass_all
5292 lt_cv_file_magic_cmd='/bin/file'
5293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5296 lt_cv_file_magic_cmd='/bin/file'
5297 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5298 lt_cv_file_magic_test_file=/lib/libc.so
5301 lt_cv_deplibs_check_method=pass_all
5304 lt_cv_deplibs_check_method=pass_all
5310 lt_cv_deplibs_check_method=pass_all
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5316 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5320 if test "$build" = "$host"; then
5323 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5326 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5332 file_magic_cmd=$lt_cv_file_magic_cmd
5333 deplibs_check_method=$lt_cv_deplibs_check_method
5334 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5357 if test -n "$ac_tool_prefix"; then
5358 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5359 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if ${ac_cv_prog_DLLTOOL+:} false; then :
5363 $as_echo_n "(cached) " >&6
5365 if test -n "$DLLTOOL"; then
5366 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 DLLTOOL=$ac_cv_prog_DLLTOOL
5386 if test -n "$DLLTOOL"; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5388 $as_echo "$DLLTOOL" >&6; }
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5396 if test -z "$ac_cv_prog_DLLTOOL"; then
5397 ac_ct_DLLTOOL=$DLLTOOL
5398 # Extract the first word of "dlltool", so it can be a program name with args.
5399 set dummy dlltool; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5403 $as_echo_n "(cached) " >&6
5405 if test -n "$ac_ct_DLLTOOL"; then
5406 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5426 if test -n "$ac_ct_DLLTOOL"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5428 $as_echo "$ac_ct_DLLTOOL" >&6; }
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5434 if test "x$ac_ct_DLLTOOL" = x; then
5437 case $cross_compiling:$ac_tool_warned in
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5441 ac_tool_warned=yes ;;
5443 DLLTOOL=$ac_ct_DLLTOOL
5446 DLLTOOL="$ac_cv_prog_DLLTOOL"
5449 test -z "$DLLTOOL" && DLLTOOL=dlltool
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5461 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5462 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5463 $as_echo_n "(cached) " >&6
5465 lt_cv_sharedlib_from_linklib_cmd='unknown'
5468 cygwin* | mingw* | pw32* | cegcc*)
5469 # two different shell functions defined in ltmain.sh
5470 # decide which to use based on capabilities of $DLLTOOL
5471 case `$DLLTOOL --help 2>&1` in
5472 *--identify-strict*)
5473 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5476 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5481 # fallback: assume linklib IS sharedlib
5482 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5488 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5489 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5490 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5499 if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5503 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_prog_AR+:} false; then :
5507 $as_echo_n "(cached) " >&6
5509 if test -n "$AR"; then
5510 ac_cv_prog_AR="$AR" # Let the user override the test.
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 if test -n "$AR"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5532 $as_echo "$AR" >&6; }
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5539 test -n "$AR" && break
5542 if test -z "$AR"; then
5546 # Extract the first word of "$ac_prog", so it can be a program name with args.
5547 set dummy $ac_prog; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5551 $as_echo_n "(cached) " >&6
5553 if test -n "$ac_ct_AR"; then
5554 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_ac_ct_AR="$ac_prog"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5574 if test -n "$ac_ct_AR"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5576 $as_echo "$ac_ct_AR" >&6; }
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5583 test -n "$ac_ct_AR" && break
5586 if test "x$ac_ct_AR" = x; then
5589 case $cross_compiling:$ac_tool_warned in
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5593 ac_tool_warned=yes ;;
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5613 $as_echo_n "checking for archiver @FILE support... " >&6; }
5614 if ${lt_cv_ar_at_file+:} false; then :
5615 $as_echo_n "(cached) " >&6
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5629 if ac_fn_c_try_compile "$LINENO"; then :
5630 echo conftest.$ac_objext > conftest.lst
5631 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5633 (eval $lt_ar_try) 2>&5
5635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5636 test $ac_status = 0; }
5637 if test "$ac_status" -eq 0; then
5638 # Ensure the archiver fails upon bogus file names.
5639 rm -f conftest.$ac_objext libconftest.a
5640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5641 (eval $lt_ar_try) 2>&5
5643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5644 test $ac_status = 0; }
5645 if test "$ac_status" -ne 0; then
5649 rm -f conftest.* libconftest.a
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5656 $as_echo "$lt_cv_ar_at_file" >&6; }
5658 if test "x$lt_cv_ar_at_file" = xno; then
5661 archiver_list_spec=$lt_cv_ar_at_file
5670 if test -n "$ac_tool_prefix"; then
5671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5672 set dummy ${ac_tool_prefix}strip; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_STRIP+:} false; then :
5676 $as_echo_n "(cached) " >&6
5678 if test -n "$STRIP"; then
5679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 STRIP=$ac_cv_prog_STRIP
5699 if test -n "$STRIP"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5701 $as_echo "$STRIP" >&6; }
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5709 if test -z "$ac_cv_prog_STRIP"; then
5711 # Extract the first word of "strip", so it can be a program name with args.
5712 set dummy strip; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5716 $as_echo_n "(cached) " >&6
5718 if test -n "$ac_ct_STRIP"; then
5719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728 ac_cv_prog_ac_ct_STRIP="strip"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5739 if test -n "$ac_ct_STRIP"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5741 $as_echo "$ac_ct_STRIP" >&6; }
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5747 if test "x$ac_ct_STRIP" = x; then
5750 case $cross_compiling:$ac_tool_warned in
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5754 ac_tool_warned=yes ;;
5759 STRIP="$ac_cv_prog_STRIP"
5762 test -z "$STRIP" && STRIP=:
5769 if test -n "$ac_tool_prefix"; then
5770 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5771 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_prog_RANLIB+:} false; then :
5775 $as_echo_n "(cached) " >&6
5777 if test -n "$RANLIB"; then
5778 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5787 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 RANLIB=$ac_cv_prog_RANLIB
5798 if test -n "$RANLIB"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5800 $as_echo "$RANLIB" >&6; }
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5808 if test -z "$ac_cv_prog_RANLIB"; then
5809 ac_ct_RANLIB=$RANLIB
5810 # Extract the first word of "ranlib", so it can be a program name with args.
5811 set dummy ranlib; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5815 $as_echo_n "(cached) " >&6
5817 if test -n "$ac_ct_RANLIB"; then
5818 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_ac_ct_RANLIB="ranlib"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5838 if test -n "$ac_ct_RANLIB"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5840 $as_echo "$ac_ct_RANLIB" >&6; }
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5846 if test "x$ac_ct_RANLIB" = x; then
5849 case $cross_compiling:$ac_tool_warned in
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5853 ac_tool_warned=yes ;;
5855 RANLIB=$ac_ct_RANLIB
5858 RANLIB="$ac_cv_prog_RANLIB"
5861 test -z "$RANLIB" && RANLIB=:
5868 # Determine commands to create old-style static archives.
5869 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5870 old_postinstall_cmds='chmod 644 $oldlib'
5871 old_postuninstall_cmds=
5873 if test -n "$RANLIB"; then
5876 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5879 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5882 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5887 lock_old_archive_extraction=yes ;;
5889 lock_old_archive_extraction=no ;;
5930 # If no C compiler was specified, use CC.
5933 # If no C compiler flags were specified, use CFLAGS.
5934 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5936 # Allow CC to be a program name with arguments.
5940 # Check for command to grab the raw symbol name followed by C symbol from nm.
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5942 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5943 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5944 $as_echo_n "(cached) " >&6
5947 # These are sane defaults that work on at least a few old systems.
5948 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5950 # Character class describing NM global symbol codes.
5951 symcode='[BCDEGRST]'
5953 # Regexp to match symbols that can be accessed directly from C.
5954 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5956 # Define system-specific variables.
5961 cygwin* | mingw* | pw32* | cegcc*)
5962 symcode='[ABCDGISTW]'
5965 if test "$host_cpu" = ia64; then
5966 symcode='[ABCDEGRST]'
5970 symcode='[BCDEGRST]'
5973 symcode='[BCDEGQRST]'
5984 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5992 # If we're using GNU nm, then use its standard symbol codes.
5993 case `$NM -V 2>&1` in
5994 *GNU* | *'with BFD'*)
5995 symcode='[ABCDGIRSTW]' ;;
5998 # Transform an extracted symbol line into a proper C declaration.
5999 # Some systems (esp. on ia64) link data and code symbols differently,
6000 # so use this general approach.
6001 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6003 # Transform an extracted symbol line into symbol name and symbol address
6004 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6005 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'"
6007 # Handle CRLF in mingw tool chain
6011 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6015 # Try without a prefix underscore, then with it.
6016 for ac_symprfx in "" "_"; do
6018 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6019 symxfrm="\\1 $ac_symprfx\\2 \\2"
6021 # Write the raw and C identifiers.
6022 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6023 # Fake it for dumpbin and say T for any non-static function
6024 # and D for any global variable.
6025 # Also find C++ and __fastcall symbols from MSVC++,
6026 # which start with @ or ?.
6027 lt_cv_sys_global_symbol_pipe="$AWK '"\
6028 " {last_section=section; section=\$ 3};"\
6029 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6030 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6031 " \$ 0!~/External *\|/{next};"\
6032 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6033 " {if(hide[section]) next};"\
6034 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6035 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6036 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6037 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6038 " ' prfx=^$ac_symprfx"
6040 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6042 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6044 # Check to see that the pipe works correctly.
6048 cat > conftest.$ac_ext <<_LT_EOF
6053 void nm_test_func(void);
6054 void nm_test_func(void){}
6058 int main(){nm_test_var='a';nm_test_func();return(0);}
6061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6062 (eval $ac_compile) 2>&5
6064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6065 test $ac_status = 0; }; then
6066 # Now try to grab the symbols.
6068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6069 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072 test $ac_status = 0; } && test -s "$nlist"; then
6073 # Try sorting and uniquifying the output.
6074 if sort "$nlist" | uniq > "$nlist"T; then
6075 mv -f "$nlist"T "$nlist"
6080 # Make sure that we snagged all the symbols we need.
6081 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6083 cat <<_LT_EOF > conftest.$ac_ext
6084 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6085 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6086 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6087 relocations are performed -- see ld's documentation on pseudo-relocs. */
6088 # define LT_DLSYM_CONST
6089 #elif defined(__osf__)
6090 /* This system does not cope well with relocations in const data. */
6091 # define LT_DLSYM_CONST
6093 # define LT_DLSYM_CONST const
6101 # Now generate the symbol file.
6102 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6104 cat <<_LT_EOF >> conftest.$ac_ext
6106 /* The mapping between symbol names and symbols. */
6107 LT_DLSYM_CONST struct {
6111 lt__PROGRAM__LTX_preloaded_symbols[] =
6113 { "@PROGRAM@", (void *) 0 },
6115 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6116 cat <<\_LT_EOF >> conftest.$ac_ext
6120 /* This works around a problem in FreeBSD linker */
6121 #ifdef FREEBSD_WORKAROUND
6122 static const void *lt_preloaded_setup() {
6123 return lt__PROGRAM__LTX_preloaded_symbols;
6131 # Now try linking the two files.
6132 mv conftest.$ac_objext conftstm.$ac_objext
6133 lt_globsym_save_LIBS=$LIBS
6134 lt_globsym_save_CFLAGS=$CFLAGS
6135 LIBS="conftstm.$ac_objext"
6136 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6138 (eval $ac_link) 2>&5
6140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6144 LIBS=$lt_globsym_save_LIBS
6145 CFLAGS=$lt_globsym_save_CFLAGS
6147 echo "cannot find nm_test_func in $nlist" >&5
6150 echo "cannot find nm_test_var in $nlist" >&5
6153 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6156 echo "$progname: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6159 rm -rf conftest* conftst*
6161 # Do not use the global_symbol_pipe unless it works.
6162 if test "$pipe_works" = yes; then
6165 lt_cv_sys_global_symbol_pipe=
6171 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6172 lt_cv_sys_global_symbol_to_cdecl=
6174 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6176 $as_echo "failed" >&6; }
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6179 $as_echo "ok" >&6; }
6182 # Response file support.
6183 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6184 nm_file_list_spec='@'
6185 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6186 nm_file_list_spec='@'
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6216 $as_echo_n "checking for sysroot... " >&6; }
6218 # Check whether --with-sysroot was given.
6219 if test "${with_sysroot+set}" = set; then :
6220 withval=$with_sysroot;
6227 case ${with_sysroot} in #(
6229 if test "$GCC" = yes; then
6230 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6234 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6240 $as_echo "${with_sysroot}" >&6; }
6241 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6246 $as_echo "${lt_sysroot:-no}" >&6; }
6252 # Check whether --enable-libtool-lock was given.
6253 if test "${enable_libtool_lock+set}" = set; then :
6254 enableval=$enable_libtool_lock;
6257 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6259 # Some flags need to be propagated to the compiler or linker for good
6263 # Find out which ABI we are using.
6264 echo 'int i;' > conftest.$ac_ext
6265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6266 (eval $ac_compile) 2>&5
6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269 test $ac_status = 0; }; then
6270 case `/usr/bin/file conftest.$ac_objext` in
6282 # Find out which ABI we are using.
6283 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6285 (eval $ac_compile) 2>&5
6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; }; then
6289 if test "$lt_cv_prog_gnu_ld" = yes; then
6290 case `/usr/bin/file conftest.$ac_objext` in
6292 LD="${LD-ld} -melf32bsmip"
6295 LD="${LD-ld} -melf32bmipn32"
6298 LD="${LD-ld} -melf64bmip"
6302 case `/usr/bin/file conftest.$ac_objext` in
6318 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6319 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6320 # Find out which ABI we are using.
6321 echo 'int i;' > conftest.$ac_ext
6322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6323 (eval $ac_compile) 2>&5
6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326 test $ac_status = 0; }; then
6327 case `/usr/bin/file conftest.o` in
6330 x86_64-*kfreebsd*-gnu)
6331 LD="${LD-ld} -m elf_i386_fbsd"
6334 LD="${LD-ld} -m elf_i386"
6336 ppc64-*linux*|powerpc64-*linux*)
6337 LD="${LD-ld} -m elf32ppclinux"
6340 LD="${LD-ld} -m elf_s390"
6343 LD="${LD-ld} -m elf32_sparc"
6349 x86_64-*kfreebsd*-gnu)
6350 LD="${LD-ld} -m elf_x86_64_fbsd"
6353 LD="${LD-ld} -m elf_x86_64"
6355 ppc*-*linux*|powerpc*-*linux*)
6356 LD="${LD-ld} -m elf64ppc"
6358 s390*-*linux*|s390*-*tpf*)
6359 LD="${LD-ld} -m elf64_s390"
6362 LD="${LD-ld} -m elf64_sparc"
6372 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6373 SAVE_CFLAGS="$CFLAGS"
6374 CFLAGS="$CFLAGS -belf"
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6376 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6377 if ${lt_cv_cc_needs_belf+:} false; then :
6378 $as_echo_n "(cached) " >&6
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6397 if ac_fn_c_try_link "$LINENO"; then :
6398 lt_cv_cc_needs_belf=yes
6400 lt_cv_cc_needs_belf=no
6402 rm -f core conftest.err conftest.$ac_objext \
6403 conftest$ac_exeext conftest.$ac_ext
6405 ac_cpp='$CPP $CPPFLAGS'
6406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6412 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6413 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6414 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6415 CFLAGS="$SAVE_CFLAGS"
6419 # Find out which ABI we are using.
6420 echo 'int i;' > conftest.$ac_ext
6421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6422 (eval $ac_compile) 2>&5
6424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6425 test $ac_status = 0; }; then
6426 case `/usr/bin/file conftest.o` in
6428 case $lt_cv_prog_gnu_ld in
6432 LD="${LD-ld} -m elf_x86_64"
6435 LD="${LD-ld} -m elf64_sparc"
6438 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6439 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6444 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6456 need_locks="$enable_libtool_lock"
6458 if test -n "$ac_tool_prefix"; then
6459 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}mt; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 if test -n "$MANIFEST_TOOL"; then
6467 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6487 if test -n "$MANIFEST_TOOL"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6489 $as_echo "$MANIFEST_TOOL" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6497 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6498 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6499 # Extract the first word of "mt", so it can be a program name with args.
6500 set dummy mt; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -n "$ac_ct_MANIFEST_TOOL"; then
6507 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6527 if test -n "$ac_ct_MANIFEST_TOOL"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6529 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6535 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6538 case $cross_compiling:$ac_tool_warned in
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6544 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6547 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6550 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6552 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6553 if ${lt_cv_path_mainfest_tool+:} false; then :
6554 $as_echo_n "(cached) " >&6
6556 lt_cv_path_mainfest_tool=no
6557 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6558 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6559 cat conftest.err >&5
6560 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6561 lt_cv_path_mainfest_tool=yes
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6566 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6567 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6577 rhapsody* | darwin*)
6578 if test -n "$ac_tool_prefix"; then
6579 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6580 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6584 $as_echo_n "(cached) " >&6
6586 if test -n "$DSYMUTIL"; then
6587 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6607 if test -n "$DSYMUTIL"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6609 $as_echo "$DSYMUTIL" >&6; }
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6617 if test -z "$ac_cv_prog_DSYMUTIL"; then
6618 ac_ct_DSYMUTIL=$DSYMUTIL
6619 # Extract the first word of "dsymutil", so it can be a program name with args.
6620 set dummy dsymutil; ac_word=$2
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6624 $as_echo_n "(cached) " >&6
6626 if test -n "$ac_ct_DSYMUTIL"; then
6627 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6636 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6647 if test -n "$ac_ct_DSYMUTIL"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6649 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 $as_echo "no" >&6; }
6655 if test "x$ac_ct_DSYMUTIL" = x; then
6658 case $cross_compiling:$ac_tool_warned in
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6662 ac_tool_warned=yes ;;
6664 DSYMUTIL=$ac_ct_DSYMUTIL
6667 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6670 if test -n "$ac_tool_prefix"; then
6671 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6672 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if ${ac_cv_prog_NMEDIT+:} false; then :
6676 $as_echo_n "(cached) " >&6
6678 if test -n "$NMEDIT"; then
6679 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 NMEDIT=$ac_cv_prog_NMEDIT
6699 if test -n "$NMEDIT"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6701 $as_echo "$NMEDIT" >&6; }
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 $as_echo "no" >&6; }
6709 if test -z "$ac_cv_prog_NMEDIT"; then
6710 ac_ct_NMEDIT=$NMEDIT
6711 # Extract the first word of "nmedit", so it can be a program name with args.
6712 set dummy nmedit; ac_word=$2
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6716 $as_echo_n "(cached) " >&6
6718 if test -n "$ac_ct_NMEDIT"; then
6719 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6728 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6739 if test -n "$ac_ct_NMEDIT"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6741 $as_echo "$ac_ct_NMEDIT" >&6; }
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6747 if test "x$ac_ct_NMEDIT" = x; then
6750 case $cross_compiling:$ac_tool_warned in
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6754 ac_tool_warned=yes ;;
6756 NMEDIT=$ac_ct_NMEDIT
6759 NMEDIT="$ac_cv_prog_NMEDIT"
6762 if test -n "$ac_tool_prefix"; then
6763 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6764 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_LIPO+:} false; then :
6768 $as_echo_n "(cached) " >&6
6770 if test -n "$LIPO"; then
6771 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 LIPO=$ac_cv_prog_LIPO
6791 if test -n "$LIPO"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6793 $as_echo "$LIPO" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6801 if test -z "$ac_cv_prog_LIPO"; then
6803 # Extract the first word of "lipo", so it can be a program name with args.
6804 set dummy lipo; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6808 $as_echo_n "(cached) " >&6
6810 if test -n "$ac_ct_LIPO"; then
6811 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6820 ac_cv_prog_ac_ct_LIPO="lipo"
6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6831 if test -n "$ac_ct_LIPO"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6833 $as_echo "$ac_ct_LIPO" >&6; }
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6839 if test "x$ac_ct_LIPO" = x; then
6842 case $cross_compiling:$ac_tool_warned in
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6846 ac_tool_warned=yes ;;
6851 LIPO="$ac_cv_prog_LIPO"
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}otool; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_prog_OTOOL+:} false; then :
6860 $as_echo_n "(cached) " >&6
6862 if test -n "$OTOOL"; then
6863 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 OTOOL=$ac_cv_prog_OTOOL
6883 if test -n "$OTOOL"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6885 $as_echo "$OTOOL" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6893 if test -z "$ac_cv_prog_OTOOL"; then
6895 # Extract the first word of "otool", so it can be a program name with args.
6896 set dummy otool; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6900 $as_echo_n "(cached) " >&6
6902 if test -n "$ac_ct_OTOOL"; then
6903 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_prog_ac_ct_OTOOL="otool"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6923 if test -n "$ac_ct_OTOOL"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6925 $as_echo "$ac_ct_OTOOL" >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6931 if test "x$ac_ct_OTOOL" = x; then
6934 case $cross_compiling:$ac_tool_warned in
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938 ac_tool_warned=yes ;;
6943 OTOOL="$ac_cv_prog_OTOOL"
6946 if test -n "$ac_tool_prefix"; then
6947 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6948 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if ${ac_cv_prog_OTOOL64+:} false; then :
6952 $as_echo_n "(cached) " >&6
6954 if test -n "$OTOOL64"; then
6955 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 OTOOL64=$ac_cv_prog_OTOOL64
6975 if test -n "$OTOOL64"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6977 $as_echo "$OTOOL64" >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6985 if test -z "$ac_cv_prog_OTOOL64"; then
6986 ac_ct_OTOOL64=$OTOOL64
6987 # Extract the first word of "otool64", so it can be a program name with args.
6988 set dummy otool64; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6992 $as_echo_n "(cached) " >&6
6994 if test -n "$ac_ct_OTOOL64"; then
6995 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_prog_ac_ct_OTOOL64="otool64"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7015 if test -n "$ac_ct_OTOOL64"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7017 $as_echo "$ac_ct_OTOOL64" >&6; }
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7023 if test "x$ac_ct_OTOOL64" = x; then
7026 case $cross_compiling:$ac_tool_warned in
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7030 ac_tool_warned=yes ;;
7032 OTOOL64=$ac_ct_OTOOL64
7035 OTOOL64="$ac_cv_prog_OTOOL64"
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7065 $as_echo_n "checking for -single_module linker flag... " >&6; }
7066 if ${lt_cv_apple_cc_single_mod+:} false; then :
7067 $as_echo_n "(cached) " >&6
7069 lt_cv_apple_cc_single_mod=no
7070 if test -z "${LT_MULTI_MODULE}"; then
7071 # By default we will add the -single_module flag. You can override
7072 # by either setting the environment variable LT_MULTI_MODULE
7073 # non-empty at configure time, or by adding -multi_module to the
7075 rm -rf libconftest.dylib*
7076 echo "int foo(void){return 1;}" > conftest.c
7077 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7078 -dynamiclib -Wl,-single_module conftest.c" >&5
7079 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7080 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7082 # If there is a non-empty error log, and "single_module"
7083 # appears in it, assume the flag caused a linker warning
7084 if test -s conftest.err && $GREP single_module conftest.err; then
7085 cat conftest.err >&5
7086 # Otherwise, if the output was created with a 0 exit code from
7087 # the compiler, it worked.
7088 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7089 lt_cv_apple_cc_single_mod=yes
7091 cat conftest.err >&5
7093 rm -rf libconftest.dylib*
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7098 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7101 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7102 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7103 $as_echo_n "(cached) " >&6
7105 lt_cv_ld_exported_symbols_list=no
7106 save_LDFLAGS=$LDFLAGS
7107 echo "_main" > conftest.sym
7108 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7120 if ac_fn_c_try_link "$LINENO"; then :
7121 lt_cv_ld_exported_symbols_list=yes
7123 lt_cv_ld_exported_symbols_list=no
7125 rm -f core conftest.err conftest.$ac_objext \
7126 conftest$ac_exeext conftest.$ac_ext
7127 LDFLAGS="$save_LDFLAGS"
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7131 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7134 $as_echo_n "checking for -force_load linker flag... " >&6; }
7135 if ${lt_cv_ld_force_load+:} false; then :
7136 $as_echo_n "(cached) " >&6
7138 lt_cv_ld_force_load=no
7139 cat > conftest.c << _LT_EOF
7140 int forced_loaded() { return 2;}
7142 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7143 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7144 echo "$AR cru libconftest.a conftest.o" >&5
7145 $AR cru libconftest.a conftest.o 2>&5
7146 echo "$RANLIB libconftest.a" >&5
7147 $RANLIB libconftest.a 2>&5
7148 cat > conftest.c << _LT_EOF
7149 int main() { return 0;}
7151 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7152 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7154 if test -s conftest.err && $GREP force_load conftest.err; then
7155 cat conftest.err >&5
7156 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7157 lt_cv_ld_force_load=yes
7159 cat conftest.err >&5
7161 rm -f conftest.err libconftest.a conftest conftest.c
7162 rm -rf conftest.dSYM
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7166 $as_echo "$lt_cv_ld_force_load" >&6; }
7168 rhapsody* | darwin1.[012])
7169 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7171 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7172 darwin*) # darwin 5.x on
7173 # if running on 10.5 or later, the deployment target defaults
7174 # to the OS version, if on x86, and 10.4, the deployment
7175 # target defaults to 10.4. Don't you love it?
7176 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7177 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7178 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7180 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7182 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7186 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7187 _lt_dar_single_mod='$single_module'
7189 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7190 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7192 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7194 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7195 _lt_dsymutil='~$DSYMUTIL $lib || :'
7203 ac_cpp='$CPP $CPPFLAGS'
7204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7208 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7209 # On Suns, sometimes $CPP names a directory.
7210 if test -n "$CPP" && test -d "$CPP"; then
7213 if test -z "$CPP"; then
7214 if ${ac_cv_prog_CPP+:} false; then :
7215 $as_echo_n "(cached) " >&6
7217 # Double quotes because CPP needs to be expanded
7218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7221 for ac_c_preproc_warn_flag in '' yes
7223 # Use a header file that comes with gcc, so configuring glibc
7224 # with a fresh cross-compiler works.
7225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7226 # <limits.h> exists even on freestanding compilers.
7227 # On the NeXT, cc -E runs the code through the compiler's parser,
7228 # not just through cpp. "Syntax error" is here to catch this case.
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7232 # include <limits.h>
7234 # include <assert.h>
7238 if ac_fn_c_try_cpp "$LINENO"; then :
7241 # Broken: fails on valid input.
7244 rm -f conftest.err conftest.i conftest.$ac_ext
7246 # OK, works on sane cases. Now check whether nonexistent headers
7247 # can be detected and how.
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 #include <ac_nonexistent.h>
7252 if ac_fn_c_try_cpp "$LINENO"; then :
7253 # Broken: success on invalid input.
7256 # Passes both tests.
7260 rm -f conftest.err conftest.i conftest.$ac_ext
7263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7264 rm -f conftest.i conftest.err conftest.$ac_ext
7265 if $ac_preproc_ok; then :
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7278 $as_echo "$CPP" >&6; }
7280 for ac_c_preproc_warn_flag in '' yes
7282 # Use a header file that comes with gcc, so configuring glibc
7283 # with a fresh cross-compiler works.
7284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7285 # <limits.h> exists even on freestanding compilers.
7286 # On the NeXT, cc -E runs the code through the compiler's parser,
7287 # not just through cpp. "Syntax error" is here to catch this case.
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7291 # include <limits.h>
7293 # include <assert.h>
7297 if ac_fn_c_try_cpp "$LINENO"; then :
7300 # Broken: fails on valid input.
7303 rm -f conftest.err conftest.i conftest.$ac_ext
7305 # OK, works on sane cases. Now check whether nonexistent headers
7306 # can be detected and how.
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 #include <ac_nonexistent.h>
7311 if ac_fn_c_try_cpp "$LINENO"; then :
7312 # Broken: success on invalid input.
7315 # Passes both tests.
7319 rm -f conftest.err conftest.i conftest.$ac_ext
7322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7323 rm -f conftest.i conftest.err conftest.$ac_ext
7324 if $ac_preproc_ok; then :
7327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7329 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7330 See \`config.log' for more details" "$LINENO" 5; }
7334 ac_cpp='$CPP $CPPFLAGS'
7335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7341 $as_echo_n "checking for ANSI C header files... " >&6; }
7342 if ${ac_cv_header_stdc+:} false; then :
7343 $as_echo_n "(cached) " >&6
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7360 if ac_fn_c_try_compile "$LINENO"; then :
7361 ac_cv_header_stdc=yes
7363 ac_cv_header_stdc=no
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 if test $ac_cv_header_stdc = yes; then
7368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7375 $EGREP "memchr" >/dev/null 2>&1; then :
7378 ac_cv_header_stdc=no
7384 if test $ac_cv_header_stdc = yes; then
7385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7392 $EGREP "free" >/dev/null 2>&1; then :
7395 ac_cv_header_stdc=no
7401 if test $ac_cv_header_stdc = yes; then
7402 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7403 if test "$cross_compiling" = yes; then :
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7410 #if ((' ' & 0x0FF) == 0x020)
7411 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7412 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7414 # define ISLOWER(c) \
7415 (('a' <= (c) && (c) <= 'i') \
7416 || ('j' <= (c) && (c) <= 'r') \
7417 || ('s' <= (c) && (c) <= 'z'))
7418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7426 for (i = 0; i < 256; i++)
7427 if (XOR (islower (i), ISLOWER (i))
7428 || toupper (i) != TOUPPER (i))
7433 if ac_fn_c_try_run "$LINENO"; then :
7436 ac_cv_header_stdc=no
7438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7439 conftest.$ac_objext conftest.beam conftest.$ac_ext
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7445 $as_echo "$ac_cv_header_stdc" >&6; }
7446 if test $ac_cv_header_stdc = yes; then
7448 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7452 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7453 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7454 inttypes.h stdint.h unistd.h
7456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7457 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7460 cat >>confdefs.h <<_ACEOF
7461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7469 for ac_header in dlfcn.h
7471 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7473 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7474 cat >>confdefs.h <<_ACEOF
7475 #define HAVE_DLFCN_H 1
7487 # Check whether --enable-static was given.
7488 if test "${enable_static+set}" = set; then :
7489 enableval=$enable_static; p=${PACKAGE-default}
7491 yes) enable_static=yes ;;
7492 no) enable_static=no ;;
7495 # Look at the argument we got. We use all the common list separators.
7496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7497 for pkg in $enableval; do
7499 if test "X$pkg" = "X$p"; then
7525 # Check whether --enable-shared was given.
7526 if test "${enable_shared+set}" = set; then :
7527 enableval=$enable_shared; p=${PACKAGE-default}
7529 yes) enable_shared=yes ;;
7530 no) enable_shared=no ;;
7533 # Look at the argument we got. We use all the common list separators.
7534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7535 for pkg in $enableval; do
7537 if test "X$pkg" = "X$p"; then
7558 # Check whether --with-pic was given.
7559 if test "${with_pic+set}" = set; then :
7560 withval=$with_pic; lt_p=${PACKAGE-default}
7562 yes|no) pic_mode=$withval ;;
7565 # Look at the argument we got. We use all the common list separators.
7566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7567 for lt_pkg in $withval; do
7569 if test "X$lt_pkg" = "X$lt_p"; then
7581 test -z "$pic_mode" && pic_mode=default
7589 # Check whether --enable-fast-install was given.
7590 if test "${enable_fast_install+set}" = set; then :
7591 enableval=$enable_fast_install; p=${PACKAGE-default}
7593 yes) enable_fast_install=yes ;;
7594 no) enable_fast_install=no ;;
7596 enable_fast_install=no
7597 # Look at the argument we got. We use all the common list separators.
7598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7599 for pkg in $enableval; do
7601 if test "X$pkg" = "X$p"; then
7602 enable_fast_install=yes
7609 enable_fast_install=yes
7622 # This can be used to rebuild libtool when needed
7623 LIBTOOL_DEPS="$ltmain"
7625 # Always use our own libtool.
7626 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7657 test -z "$LN_S" && LN_S="ln -s"
7672 if test -n "${ZSH_VERSION+set}" ; then
7673 setopt NO_GLOB_SUBST
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7677 $as_echo_n "checking for objdir... " >&6; }
7678 if ${lt_cv_objdir+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 rm -f .libs 2>/dev/null
7682 mkdir .libs 2>/dev/null
7683 if test -d .libs; then
7686 # MS-DOS does not allow filenames that begin with a dot.
7689 rmdir .libs 2>/dev/null
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7692 $as_echo "$lt_cv_objdir" >&6; }
7693 objdir=$lt_cv_objdir
7699 cat >>confdefs.h <<_ACEOF
7700 #define LT_OBJDIR "$lt_cv_objdir/"
7708 # AIX sometimes has problems with the GCC collect2 program. For some
7709 # reason, if we set the COLLECT_NAMES environment variable, the problems
7710 # vanish in a puff of smoke.
7711 if test "X${COLLECT_NAMES+set}" != Xset; then
7713 export COLLECT_NAMES
7720 can_build_shared=yes
7722 # All known linkers require a `.a' archive for static linking (except MSVC,
7723 # which needs '.lib').
7726 with_gnu_ld="$lt_cv_prog_gnu_ld"
7729 old_CFLAGS="$CFLAGS"
7731 # Set sane defaults for various variables
7732 test -z "$CC" && CC=cc
7733 test -z "$LTCC" && LTCC=$CC
7734 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7735 test -z "$LD" && LD=ld
7736 test -z "$ac_objext" && ac_objext=o
7738 for cc_temp in $compiler""; do
7740 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7741 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7746 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7749 # Only perform the check for file, if the check method requires it
7750 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7751 case $deplibs_check_method in
7753 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7755 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7756 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7757 $as_echo_n "(cached) " >&6
7761 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7764 lt_save_MAGIC_CMD="$MAGIC_CMD"
7765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7766 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7767 for ac_dir in $ac_dummy; do
7769 test -z "$ac_dir" && ac_dir=.
7770 if test -f $ac_dir/${ac_tool_prefix}file; then
7771 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7772 if test -n "$file_magic_test_file"; then
7773 case $deplibs_check_method in
7775 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7777 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7778 $EGREP "$file_magic_regex" > /dev/null; then
7783 *** Warning: the command libtool uses to detect shared libraries,
7784 *** $file_magic_cmd, produces output that libtool cannot recognize.
7785 *** The result is that libtool may fail to recognize shared libraries
7786 *** as such. This will affect the creation of libtool libraries that
7787 *** depend on shared libraries, but programs linked with such libtool
7788 *** libraries will work regardless of this problem. Nevertheless, you
7789 *** may want to report the problem to your system manager and/or to
7790 *** bug-libtool@gnu.org
7800 MAGIC_CMD="$lt_save_MAGIC_CMD"
7805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7806 if test -n "$MAGIC_CMD"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7808 $as_echo "$MAGIC_CMD" >&6; }
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7818 if test -z "$lt_cv_path_MAGIC_CMD"; then
7819 if test -n "$ac_tool_prefix"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7821 $as_echo_n "checking for file... " >&6; }
7822 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7823 $as_echo_n "(cached) " >&6
7827 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7830 lt_save_MAGIC_CMD="$MAGIC_CMD"
7831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7832 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7833 for ac_dir in $ac_dummy; do
7835 test -z "$ac_dir" && ac_dir=.
7836 if test -f $ac_dir/file; then
7837 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7838 if test -n "$file_magic_test_file"; then
7839 case $deplibs_check_method in
7841 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7842 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7843 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7844 $EGREP "$file_magic_regex" > /dev/null; then
7849 *** Warning: the command libtool uses to detect shared libraries,
7850 *** $file_magic_cmd, produces output that libtool cannot recognize.
7851 *** The result is that libtool may fail to recognize shared libraries
7852 *** as such. This will affect the creation of libtool libraries that
7853 *** depend on shared libraries, but programs linked with such libtool
7854 *** libraries will work regardless of this problem. Nevertheless, you
7855 *** may want to report the problem to your system manager and/or to
7856 *** bug-libtool@gnu.org
7866 MAGIC_CMD="$lt_save_MAGIC_CMD"
7871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7872 if test -n "$MAGIC_CMD"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7874 $as_echo "$MAGIC_CMD" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7890 # Use C for the default configuration in the libtool script
7894 ac_cpp='$CPP $CPPFLAGS'
7895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900 # Source file extension for C test sources.
7903 # Object file extension for compiled C test sources.
7907 # Code to be used in simple compile tests
7908 lt_simple_compile_test_code="int some_variable = 0;"
7910 # Code to be used in simple link tests
7911 lt_simple_link_test_code='int main(){return(0);}'
7919 # If no C compiler was specified, use CC.
7922 # If no C compiler flags were specified, use CFLAGS.
7923 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7925 # Allow CC to be a program name with arguments.
7928 # Save the default compiler, since it gets overwritten when the other
7929 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7930 compiler_DEFAULT=$CC
7932 # save warnings/boilerplate of simple test code
7933 ac_outfile=conftest.$ac_objext
7934 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7935 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7936 _lt_compiler_boilerplate=`cat conftest.err`
7939 ac_outfile=conftest.$ac_objext
7940 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7941 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7942 _lt_linker_boilerplate=`cat conftest.err`
7947 ## There is no encapsulation within the following macros, do not change
7948 ## the running order or otherwise move them around unless you know exactly
7949 ## what you are doing...
7950 if test -n "$compiler"; then
7952 lt_prog_compiler_no_builtin_flag=
7954 if test "$GCC" = yes; then
7955 case $cc_basename in
7957 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7959 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7963 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7964 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7965 $as_echo_n "(cached) " >&6
7967 lt_cv_prog_compiler_rtti_exceptions=no
7968 ac_outfile=conftest.$ac_objext
7969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7970 lt_compiler_flag="-fno-rtti -fno-exceptions"
7971 # Insert the option either (1) after the last *FLAGS variable, or
7972 # (2) before a word containing "conftest.", or (3) at the end.
7973 # Note that $ac_compile itself does not contain backslashes and begins
7974 # with a dollar sign (not a hyphen), so the echo should work correctly.
7975 # The option is referenced via a variable to avoid confusing sed.
7976 lt_compile=`echo "$ac_compile" | $SED \
7977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7979 -e 's:$: $lt_compiler_flag:'`
7980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7981 (eval "$lt_compile" 2>conftest.err)
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 if (exit $ac_status) && test -s "$ac_outfile"; then
7986 # The compiler can only warn and ignore the option if not recognized
7987 # So say no if there are warnings other than the usual output.
7988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7991 lt_cv_prog_compiler_rtti_exceptions=yes
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7998 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8000 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8001 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8013 lt_prog_compiler_wl=
8014 lt_prog_compiler_pic=
8015 lt_prog_compiler_static=
8018 if test "$GCC" = yes; then
8019 lt_prog_compiler_wl='-Wl,'
8020 lt_prog_compiler_static='-static'
8024 # All AIX code is PIC.
8025 if test "$host_cpu" = ia64; then
8026 # AIX 5 now supports IA64 processor
8027 lt_prog_compiler_static='-Bstatic'
8034 # see comment about AmigaOS4 .so support
8035 lt_prog_compiler_pic='-fPIC'
8038 # FIXME: we need at least 68020 code to build shared libraries, but
8039 # adding the `-m68020' flag to GCC prevents building anything better,
8041 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8046 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8047 # PIC is the default for these OSes.
8050 mingw* | cygwin* | pw32* | os2* | cegcc*)
8051 # This hack is so that the source file can tell whether it is being
8052 # built for inclusion in a dll (and should export symbols for example).
8053 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8054 # (--disable-auto-import) libraries
8055 lt_prog_compiler_pic='-DDLL_EXPORT'
8058 darwin* | rhapsody*)
8059 # PIC is the default on this platform
8060 # Common symbols not allowed in MH_DYLIB files
8061 lt_prog_compiler_pic='-fno-common'
8065 # PIC is the default for Haiku.
8066 # The "-static" flag exists, but is broken.
8067 lt_prog_compiler_static=
8071 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8072 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8073 # sets the default TLS model and affects inlining.
8079 lt_prog_compiler_pic='-fPIC'
8085 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8086 # Instead, we relocate shared libraries at runtime.
8090 # Just because we use GCC doesn't mean we suddenly get shared libraries
8091 # on systems that don't support them.
8092 lt_prog_compiler_can_build_shared=no
8097 # QNX uses GNU C++, but need to define -shared option too, otherwise
8099 lt_prog_compiler_pic='-fPIC -shared'
8103 if test -d /usr/nec; then
8104 lt_prog_compiler_pic=-Kconform_pic
8109 lt_prog_compiler_pic='-fPIC'
8113 case $cc_basename in
8114 nvcc*) # Cuda Compiler Driver 2.2
8115 lt_prog_compiler_wl='-Xlinker '
8116 if test -n "$lt_prog_compiler_pic"; then
8117 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8122 # PORTME Check for flag to pass linker flags through the system compiler.
8125 lt_prog_compiler_wl='-Wl,'
8126 if test "$host_cpu" = ia64; then
8127 # AIX 5 now supports IA64 processor
8128 lt_prog_compiler_static='-Bstatic'
8130 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8134 mingw* | cygwin* | pw32* | os2* | cegcc*)
8135 # This hack is so that the source file can tell whether it is being
8136 # built for inclusion in a dll (and should export symbols for example).
8137 lt_prog_compiler_pic='-DDLL_EXPORT'
8140 hpux9* | hpux10* | hpux11*)
8141 lt_prog_compiler_wl='-Wl,'
8142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8149 lt_prog_compiler_pic='+Z'
8152 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8153 lt_prog_compiler_static='${wl}-a ${wl}archive'
8156 irix5* | irix6* | nonstopux*)
8157 lt_prog_compiler_wl='-Wl,'
8158 # PIC (with -KPIC) is the default.
8159 lt_prog_compiler_static='-non_shared'
8162 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8163 case $cc_basename in
8164 # old Intel for x86_64 which still supported -KPIC.
8166 lt_prog_compiler_wl='-Wl,'
8167 lt_prog_compiler_pic='-KPIC'
8168 lt_prog_compiler_static='-static'
8170 # icc used to be incompatible with GCC.
8171 # ICC 10 doesn't accept -KPIC any more.
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_pic='-fPIC'
8175 lt_prog_compiler_static='-static'
8177 # Lahey Fortran 8.1.
8179 lt_prog_compiler_wl='-Wl,'
8180 lt_prog_compiler_pic='--shared'
8181 lt_prog_compiler_static='--static'
8184 # NAG Fortran compiler
8185 lt_prog_compiler_wl='-Wl,-Wl,,'
8186 lt_prog_compiler_pic='-PIC'
8187 lt_prog_compiler_static='-Bstatic'
8189 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8190 # Portland Group compilers (*not* the Pentium gcc compiler,
8191 # which looks to be a dead project)
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_pic='-fpic'
8194 lt_prog_compiler_static='-Bstatic'
8197 lt_prog_compiler_wl='-Wl,'
8198 # All Alpha code is PIC.
8199 lt_prog_compiler_static='-non_shared'
8201 xl* | bgxl* | bgf* | mpixl*)
8202 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8203 lt_prog_compiler_wl='-Wl,'
8204 lt_prog_compiler_pic='-qpic'
8205 lt_prog_compiler_static='-qstaticlink'
8208 case `$CC -V 2>&1 | sed 5q` in
8209 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8210 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8211 lt_prog_compiler_pic='-KPIC'
8212 lt_prog_compiler_static='-Bstatic'
8213 lt_prog_compiler_wl=''
8215 *Sun\ F* | *Sun*Fortran*)
8216 lt_prog_compiler_pic='-KPIC'
8217 lt_prog_compiler_static='-Bstatic'
8218 lt_prog_compiler_wl='-Qoption ld '
8222 lt_prog_compiler_pic='-KPIC'
8223 lt_prog_compiler_static='-Bstatic'
8224 lt_prog_compiler_wl='-Wl,'
8226 *Intel*\ [CF]*Compiler*)
8227 lt_prog_compiler_wl='-Wl,'
8228 lt_prog_compiler_pic='-fPIC'
8229 lt_prog_compiler_static='-static'
8232 lt_prog_compiler_wl='-Wl,'
8233 lt_prog_compiler_pic='-fpic'
8234 lt_prog_compiler_static='-Bstatic'
8242 lt_prog_compiler_pic='-KPIC'
8243 lt_prog_compiler_static='-Bstatic'
8247 # QNX uses GNU C++, but need to define -shared option too, otherwise
8249 lt_prog_compiler_pic='-fPIC -shared'
8252 osf3* | osf4* | osf5*)
8253 lt_prog_compiler_wl='-Wl,'
8254 # All OSF/1 code is PIC.
8255 lt_prog_compiler_static='-non_shared'
8259 lt_prog_compiler_static='-non_shared'
8263 lt_prog_compiler_pic='-KPIC'
8264 lt_prog_compiler_static='-Bstatic'
8265 case $cc_basename in
8266 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8267 lt_prog_compiler_wl='-Qoption ld ';;
8269 lt_prog_compiler_wl='-Wl,';;
8274 lt_prog_compiler_wl='-Qoption ld '
8275 lt_prog_compiler_pic='-PIC'
8276 lt_prog_compiler_static='-Bstatic'
8279 sysv4 | sysv4.2uw2* | sysv4.3*)
8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_pic='-KPIC'
8282 lt_prog_compiler_static='-Bstatic'
8286 if test -d /usr/nec ;then
8287 lt_prog_compiler_pic='-Kconform_pic'
8288 lt_prog_compiler_static='-Bstatic'
8292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_pic='-KPIC'
8295 lt_prog_compiler_static='-Bstatic'
8299 lt_prog_compiler_wl='-Wl,'
8300 lt_prog_compiler_can_build_shared=no
8304 lt_prog_compiler_pic='-pic'
8305 lt_prog_compiler_static='-Bstatic'
8309 lt_prog_compiler_can_build_shared=no
8315 # For platforms which do not support PIC, -DPIC is meaningless:
8317 lt_prog_compiler_pic=
8320 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8325 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8326 if ${lt_cv_prog_compiler_pic+:} false; then :
8327 $as_echo_n "(cached) " >&6
8329 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8332 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8333 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8336 # Check to make sure the PIC flag actually works.
8338 if test -n "$lt_prog_compiler_pic"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8340 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8341 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8342 $as_echo_n "(cached) " >&6
8344 lt_cv_prog_compiler_pic_works=no
8345 ac_outfile=conftest.$ac_objext
8346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8347 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8348 # Insert the option either (1) after the last *FLAGS variable, or
8349 # (2) before a word containing "conftest.", or (3) at the end.
8350 # Note that $ac_compile itself does not contain backslashes and begins
8351 # with a dollar sign (not a hyphen), so the echo should work correctly.
8352 # The option is referenced via a variable to avoid confusing sed.
8353 lt_compile=`echo "$ac_compile" | $SED \
8354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8356 -e 's:$: $lt_compiler_flag:'`
8357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8358 (eval "$lt_compile" 2>conftest.err)
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 if (exit $ac_status) && test -s "$ac_outfile"; then
8363 # The compiler can only warn and ignore the option if not recognized
8364 # So say no if there are warnings other than the usual output.
8365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8368 lt_cv_prog_compiler_pic_works=yes
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8375 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8377 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8378 case $lt_prog_compiler_pic in
8380 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8383 lt_prog_compiler_pic=
8384 lt_prog_compiler_can_build_shared=no
8400 # Check to make sure the static flag actually works.
8402 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8404 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8405 if ${lt_cv_prog_compiler_static_works+:} false; then :
8406 $as_echo_n "(cached) " >&6
8408 lt_cv_prog_compiler_static_works=no
8409 save_LDFLAGS="$LDFLAGS"
8410 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8411 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8412 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8413 # The linker can only warn and ignore the option if not recognized
8414 # So say no if there are warnings
8415 if test -s conftest.err; then
8416 # Append any errors to the config.log.
8417 cat conftest.err 1>&5
8418 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8420 if diff conftest.exp conftest.er2 >/dev/null; then
8421 lt_cv_prog_compiler_static_works=yes
8424 lt_cv_prog_compiler_static_works=yes
8428 LDFLAGS="$save_LDFLAGS"
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8432 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8434 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8437 lt_prog_compiler_static=
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8447 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8448 if ${lt_cv_prog_compiler_c_o+:} false; then :
8449 $as_echo_n "(cached) " >&6
8451 lt_cv_prog_compiler_c_o=no
8452 $RM -r conftest 2>/dev/null
8456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8458 lt_compiler_flag="-o out/conftest2.$ac_objext"
8459 # Insert the option either (1) after the last *FLAGS variable, or
8460 # (2) before a word containing "conftest.", or (3) at the end.
8461 # Note that $ac_compile itself does not contain backslashes and begins
8462 # with a dollar sign (not a hyphen), so the echo should work correctly.
8463 lt_compile=`echo "$ac_compile" | $SED \
8464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8466 -e 's:$: $lt_compiler_flag:'`
8467 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8468 (eval "$lt_compile" 2>out/conftest.err)
8470 cat out/conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8474 # The compiler can only warn and ignore the option if not recognized
8475 # So say no if there are warnings
8476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8477 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8478 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8479 lt_cv_prog_compiler_c_o=yes
8484 # SGI C++ compiler will create directory out/ii_files/ for
8485 # template instantiation
8486 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8487 $RM out/* && rmdir out
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8494 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8503 if ${lt_cv_prog_compiler_c_o+:} false; then :
8504 $as_echo_n "(cached) " >&6
8506 lt_cv_prog_compiler_c_o=no
8507 $RM -r conftest 2>/dev/null
8511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8513 lt_compiler_flag="-o out/conftest2.$ac_objext"
8514 # Insert the option either (1) after the last *FLAGS variable, or
8515 # (2) before a word containing "conftest.", or (3) at the end.
8516 # Note that $ac_compile itself does not contain backslashes and begins
8517 # with a dollar sign (not a hyphen), so the echo should work correctly.
8518 lt_compile=`echo "$ac_compile" | $SED \
8519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8521 -e 's:$: $lt_compiler_flag:'`
8522 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8523 (eval "$lt_compile" 2>out/conftest.err)
8525 cat out/conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8529 # The compiler can only warn and ignore the option if not recognized
8530 # So say no if there are warnings
8531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8534 lt_cv_prog_compiler_c_o=yes
8539 # SGI C++ compiler will create directory out/ii_files/ for
8540 # template instantiation
8541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8542 $RM out/* && rmdir out
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8549 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8554 hard_links="nottested"
8555 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8556 # do not overwrite the value of need_locks provided by the user
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8558 $as_echo_n "checking if we can lock with hard links... " >&6; }
8561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8563 ln conftest.a conftest.b 2>&5 || hard_links=no
8564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8566 $as_echo "$hard_links" >&6; }
8567 if test "$hard_links" = no; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8569 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8582 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8585 allow_undefined_flag=
8586 always_export_symbols=no
8588 archive_expsym_cmds=
8589 compiler_needs_object=no
8590 enable_shared_with_static_runtimes=no
8591 export_dynamic_flag_spec=
8592 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8593 hardcode_automatic=no
8595 hardcode_direct_absolute=no
8596 hardcode_libdir_flag_spec=
8597 hardcode_libdir_separator=
8599 hardcode_shlibpath_var=unsupported
8601 link_all_deplibs=unknown
8604 old_archive_from_new_cmds=
8605 old_archive_from_expsyms_cmds=
8606 thread_safe_flag_spec=
8607 whole_archive_flag_spec=
8608 # include_expsyms should be a list of space-separated symbols to be *always*
8609 # included in the symbol list
8611 # exclude_expsyms can be an extended regexp of symbols to exclude
8612 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8613 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8614 # as well as any symbol that contains `d'.
8615 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8616 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8617 # platforms (ab)use it in PIC code, but their linkers get confused if
8618 # the symbol is explicitly referenced. Since portable code cannot
8619 # rely on this symbol name, it's probably fine to never include it in
8620 # preloaded symbol tables.
8621 # Exclude shared library initialization/finalization symbols.
8622 extract_expsyms_cmds=
8625 cygwin* | mingw* | pw32* | cegcc*)
8626 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8627 # When not using gcc, we currently assume that we are using
8628 # Microsoft Visual C++.
8629 if test "$GCC" != yes; then
8634 # we just hope/assume this is gcc and not c89 (= MSVC++)
8640 linux* | k*bsd*-gnu | gnu*)
8647 # On some targets, GNU ld is compatible enough with the native linker
8648 # that we're better off using the native interface for both.
8649 lt_use_gnu_ld_interface=no
8650 if test "$with_gnu_ld" = yes; then
8653 # The AIX port of GNU ld has always aspired to compatibility
8654 # with the native linker. However, as the warning in the GNU ld
8655 # block says, versions before 2.19.5* couldn't really create working
8656 # shared libraries, regardless of the interface used.
8657 case `$LD -v 2>&1` in
8658 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8659 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8660 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8662 lt_use_gnu_ld_interface=yes
8667 lt_use_gnu_ld_interface=yes
8672 if test "$lt_use_gnu_ld_interface" = yes; then
8673 # If archive_cmds runs LD, not CC, wlarc should be empty
8676 # Set some defaults for GNU ld with shared library support. These
8677 # are reset later if shared libraries are not supported. Putting them
8678 # here allows them to be overridden if necessary.
8679 runpath_var=LD_RUN_PATH
8680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8681 export_dynamic_flag_spec='${wl}--export-dynamic'
8682 # ancient GNU ld didn't support --whole-archive et. al.
8683 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8684 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8686 whole_archive_flag_spec=
8688 supports_anon_versioning=no
8689 case `$LD -v 2>&1` in
8690 *GNU\ gold*) supports_anon_versioning=yes ;;
8691 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8692 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8693 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8694 *\ 2.11.*) ;; # other 2.11 versions
8695 *) supports_anon_versioning=yes ;;
8698 # See if GNU ld supports shared libraries.
8701 # On AIX/PPC, the GNU linker is very broken
8702 if test "$host_cpu" != ia64; then
8706 *** Warning: the GNU linker, at least up to release 2.19, is reported
8707 *** to be unable to reliably create shared libraries on AIX.
8708 *** Therefore, libtool is disabling shared libraries support. If you
8709 *** really care for shared libraries, you may want to install binutils
8710 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8711 *** You will then need to restart the configuration process.
8720 # see comment about AmigaOS4 .so support
8721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722 archive_expsym_cmds=''
8725 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)'
8726 hardcode_libdir_flag_spec='-L$libdir'
8727 hardcode_minus_L=yes
8733 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8734 allow_undefined_flag=unsupported
8735 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8736 # support --undefined. This deserves some investigation. FIXME
8737 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743 cygwin* | mingw* | pw32* | cegcc*)
8744 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8745 # as there is no search path for DLLs.
8746 hardcode_libdir_flag_spec='-L$libdir'
8747 export_dynamic_flag_spec='${wl}--export-all-symbols'
8748 allow_undefined_flag=unsupported
8749 always_export_symbols=no
8750 enable_shared_with_static_runtimes=yes
8751 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'
8752 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8754 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8756 # If the export-symbols file already is a .def file (1st line
8757 # is EXPORTS), use it as is; otherwise, prepend...
8758 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8759 cp $export_symbols $output_objdir/$soname.def;
8761 echo EXPORTS > $output_objdir/$soname.def;
8762 cat $export_symbols >> $output_objdir/$soname.def;
8764 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772 link_all_deplibs=yes
8777 hardcode_shlibpath_var=no
8778 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8779 export_dynamic_flag_spec='${wl}-E'
8780 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8781 # Instead, shared libraries are loaded at an image base (0x10000000 by
8782 # default) and relocated if they conflict, which is a slow very memory
8783 # consuming and fragmenting process. To avoid this, we pick a random,
8784 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8785 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8786 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8787 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'
8790 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8792 if test "$host_os" = linux-dietlibc; then
8793 case $cc_basename in
8794 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8797 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8798 && test "$tmp_diet" = no
8800 tmp_addflag=' $pic_flag'
8801 tmp_sharedflag='-shared'
8802 case $cc_basename,$host_cpu in
8803 pgcc*) # Portland Group C compiler
8804 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'
8805 tmp_addflag=' $pic_flag'
8807 pgf77* | pgf90* | pgf95* | pgfortran*)
8808 # Portland Group f77 and f90 compilers
8809 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'
8810 tmp_addflag=' $pic_flag -Mnomain' ;;
8811 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8812 tmp_addflag=' -i_dynamic' ;;
8813 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8814 tmp_addflag=' -i_dynamic -nofor_main' ;;
8815 ifc* | ifort*) # Intel Fortran compiler
8816 tmp_addflag=' -nofor_main' ;;
8817 lf95*) # Lahey Fortran 8.1
8818 whole_archive_flag_spec=
8819 tmp_sharedflag='--shared' ;;
8820 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8821 tmp_sharedflag='-qmkshrobj'
8823 nvcc*) # Cuda Compiler Driver 2.2
8824 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'
8825 compiler_needs_object=yes
8828 case `$CC -V 2>&1 | sed 5q` in
8829 *Sun\ C*) # Sun C 5.9
8830 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'
8831 compiler_needs_object=yes
8832 tmp_sharedflag='-G' ;;
8833 *Sun\ F*) # Sun Fortran 8.3
8834 tmp_sharedflag='-G' ;;
8836 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838 if test "x$supports_anon_versioning" = xyes; then
8839 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8841 echo "local: *; };" >> $output_objdir/$libname.ver~
8842 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8845 case $cc_basename in
8846 xlf* | bgf* | bgxlf* | mpixlf*)
8847 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8848 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8850 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8851 if test "x$supports_anon_versioning" = xyes; then
8852 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8854 echo "local: *; };" >> $output_objdir/$libname.ver~
8855 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8864 netbsd* | netbsdelf*-gnu)
8865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8866 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8869 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8870 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8875 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8879 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8880 *** create shared libraries on Solaris systems. Therefore, libtool
8881 *** is disabling shared libraries support. We urge you to upgrade GNU
8882 *** binutils to release 2.9.1 or newer. Another option is to modify
8883 *** your PATH or compiler configuration so that the native linker is
8884 *** used, and then restart.
8887 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8896 case `$LD -v 2>&1` in
8897 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8901 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8902 *** reliably create shared libraries on SCO systems. Therefore, libtool
8903 *** is disabling shared libraries support. We urge you to upgrade GNU
8904 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8905 *** your PATH or compiler configuration so that the native linker is
8906 *** used, and then restart.
8911 # For security reasons, it is highly recommended that you always
8912 # use absolute paths for naming shared libraries, and exclude the
8913 # DT_RUNPATH tag from executables and libraries. But doing so
8914 # requires that you compile everything twice, which is a pain.
8915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8918 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8927 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8930 hardcode_shlibpath_var=no
8934 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8935 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8943 if test "$ld_shlibs" = no; then
8945 hardcode_libdir_flag_spec=
8946 export_dynamic_flag_spec=
8947 whole_archive_flag_spec=
8950 # PORTME fill in a description of your system's linker (not GNU ld)
8953 allow_undefined_flag=unsupported
8954 always_export_symbols=yes
8955 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'
8956 # Note: this linker hardcodes the directories in LIBPATH if there
8957 # are no directories specified by -L.
8958 hardcode_minus_L=yes
8959 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8960 # Neither direct hardcoding nor static linking is supported with a
8962 hardcode_direct=unsupported
8967 if test "$host_cpu" = ia64; then
8968 # On IA64, the linker does run time linking by default, so we don't
8969 # have to do anything special.
8970 aix_use_runtimelinking=no
8971 exp_sym_flag='-Bexport'
8974 # If we're using GNU nm, then we don't want the "-C" option.
8975 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8976 # Also, AIX nm treats weak defined symbols like other global
8977 # defined symbols, whereas GNU nm marks them as "W".
8978 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8979 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'
8981 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'
8983 aix_use_runtimelinking=no
8985 # Test if we are trying to use run time linking or normal
8986 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8987 # need to do runtime linking.
8988 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8989 for ld_flag in $LDFLAGS; do
8990 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8991 aix_use_runtimelinking=yes
8998 exp_sym_flag='-bexport'
8999 no_entry_flag='-bnoentry'
9002 # When large executables or shared objects are built, AIX ld can
9003 # have problems creating the table of contents. If linking a library
9004 # or program results in "error TOC overflow" add -mminimal-toc to
9005 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9006 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9010 hardcode_direct_absolute=yes
9011 hardcode_libdir_separator=':'
9012 link_all_deplibs=yes
9013 file_list_spec='${wl}-f,'
9015 if test "$GCC" = yes; then
9016 case $host_os in aix4.[012]|aix4.[012].*)
9017 # We only want to do this on AIX 4.2 and lower, the check
9018 # below for broken collect2 doesn't work under 4.3+
9019 collect2name=`${CC} -print-prog-name=collect2`
9020 if test -f "$collect2name" &&
9021 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9023 # We have reworked collect2
9026 # We have old collect2
9027 hardcode_direct=unsupported
9028 # It fails to find uninstalled libraries when the uninstalled
9029 # path is not listed in the libpath. Setting hardcode_minus_L
9030 # to unsupported forces relinking
9031 hardcode_minus_L=yes
9032 hardcode_libdir_flag_spec='-L$libdir'
9033 hardcode_libdir_separator=
9037 shared_flag='-shared'
9038 if test "$aix_use_runtimelinking" = yes; then
9039 shared_flag="$shared_flag "'${wl}-G'
9044 if test "$host_cpu" = ia64; then
9045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9046 # chokes on -Wl,-G. The following line is correct:
9049 if test "$aix_use_runtimelinking" = yes; then
9050 shared_flag='${wl}-G'
9052 shared_flag='${wl}-bM:SRE'
9057 export_dynamic_flag_spec='${wl}-bexpall'
9058 # It seems that -bexpall does not export symbols beginning with
9059 # underscore (_), so it is better to generate a list of symbols to export.
9060 always_export_symbols=yes
9061 if test "$aix_use_runtimelinking" = yes; then
9062 # Warning - without using the other runtime loading flags (-brtl),
9063 # -berok will link without error, but may produce a broken library.
9064 allow_undefined_flag='-berok'
9065 # Determine the default libpath from the value encoded in an
9067 if test "${lt_cv_aix_libpath+set}" = set; then
9068 aix_libpath=$lt_cv_aix_libpath
9070 if ${lt_cv_aix_libpath_+:} false; then :
9071 $as_echo_n "(cached) " >&6
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9084 if ac_fn_c_try_link "$LINENO"; then :
9086 lt_aix_libpath_sed='
9087 /Import File Strings/,/^$/ {
9089 s/^0 *\([^ ]*\) *$/\1/
9093 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9094 # Check for a 64-bit object if we didn't find anything.
9095 if test -z "$lt_cv_aix_libpath_"; then
9096 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9099 rm -f core conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext conftest.$ac_ext
9101 if test -z "$lt_cv_aix_libpath_"; then
9102 lt_cv_aix_libpath_="/usr/lib:/lib"
9107 aix_libpath=$lt_cv_aix_libpath_
9110 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9111 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"
9113 if test "$host_cpu" = ia64; then
9114 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9115 allow_undefined_flag="-z nodefs"
9116 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"
9118 # Determine the default libpath from the value encoded in an
9120 if test "${lt_cv_aix_libpath+set}" = set; then
9121 aix_libpath=$lt_cv_aix_libpath
9123 if ${lt_cv_aix_libpath_+:} false; then :
9124 $as_echo_n "(cached) " >&6
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9137 if ac_fn_c_try_link "$LINENO"; then :
9139 lt_aix_libpath_sed='
9140 /Import File Strings/,/^$/ {
9142 s/^0 *\([^ ]*\) *$/\1/
9146 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9147 # Check for a 64-bit object if we didn't find anything.
9148 if test -z "$lt_cv_aix_libpath_"; then
9149 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9152 rm -f core conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 if test -z "$lt_cv_aix_libpath_"; then
9155 lt_cv_aix_libpath_="/usr/lib:/lib"
9160 aix_libpath=$lt_cv_aix_libpath_
9163 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9164 # Warning - without using the other run time loading flags,
9165 # -berok will link without error, but may produce a broken library.
9166 no_undefined_flag=' ${wl}-bernotok'
9167 allow_undefined_flag=' ${wl}-berok'
9168 if test "$with_gnu_ld" = yes; then
9169 # We only use this code for GNU lds that support --whole-archive.
9170 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9172 # Exported symbols can be pulled into shared objects from archives
9173 whole_archive_flag_spec='$convenience'
9175 archive_cmds_need_lc=yes
9176 # This is similar to how AIX traditionally builds its shared libraries.
9177 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'
9185 # see comment about AmigaOS4 .so support
9186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187 archive_expsym_cmds=''
9190 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)'
9191 hardcode_libdir_flag_spec='-L$libdir'
9192 hardcode_minus_L=yes
9198 export_dynamic_flag_spec=-rdynamic
9201 cygwin* | mingw* | pw32* | cegcc*)
9202 # When not using gcc, we currently assume that we are using
9203 # Microsoft Visual C++.
9204 # hardcode_libdir_flag_spec is actually meaningless, as there is
9205 # no search path for DLLs.
9206 case $cc_basename in
9209 hardcode_libdir_flag_spec=' '
9210 allow_undefined_flag=unsupported
9211 always_export_symbols=yes
9213 # Tell ltmain to make .lib files, not .a files.
9215 # Tell ltmain to make .dll files, not .so files.
9217 # FIXME: Setting linknames here is a bad hack.
9218 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9219 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9220 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9222 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9224 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9226 # The linker will not automatically build a static lib if we build a DLL.
9227 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9228 enable_shared_with_static_runtimes=yes
9229 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9232 old_postinstall_cmds='chmod 644 $oldlib'
9233 postlink_cmds='lt_outputfile="@OUTPUT@"~
9234 lt_tool_outputfile="@TOOL_OUTPUT@"~
9235 case $lt_outputfile in
9238 lt_outputfile="$lt_outputfile.exe"
9239 lt_tool_outputfile="$lt_tool_outputfile.exe"
9242 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9243 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9244 $RM "$lt_outputfile.manifest";
9248 # Assume MSVC wrapper
9249 hardcode_libdir_flag_spec=' '
9250 allow_undefined_flag=unsupported
9251 # Tell ltmain to make .lib files, not .a files.
9253 # Tell ltmain to make .dll files, not .so files.
9255 # FIXME: Setting linknames here is a bad hack.
9256 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9257 # The linker will automatically build a .lib file if we build a DLL.
9258 old_archive_from_new_cmds='true'
9259 # FIXME: Should let the user specify the lib program.
9260 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9261 enable_shared_with_static_runtimes=yes
9266 darwin* | rhapsody*)
9269 archive_cmds_need_lc=no
9271 hardcode_automatic=yes
9272 hardcode_shlibpath_var=unsupported
9273 if test "$lt_cv_ld_force_load" = "yes"; then
9274 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\"`'
9277 whole_archive_flag_spec=''
9279 link_all_deplibs=yes
9280 allow_undefined_flag="$_lt_dar_allow_undefined"
9281 case $cc_basename in
9282 ifort*) _lt_dar_can_shared=yes ;;
9283 *) _lt_dar_can_shared=$GCC ;;
9285 if test "$_lt_dar_can_shared" = "yes"; then
9286 output_verbose_link_cmd=func_echo_all
9287 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9288 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9289 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}"
9290 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}"
9299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9300 hardcode_libdir_flag_spec='-L$libdir'
9301 hardcode_shlibpath_var=no
9304 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9305 # support. Future versions do this automatically, but an explicit c++rt0.o
9306 # does not break anything, and helps significantly (at the cost of a little
9309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9310 hardcode_libdir_flag_spec='-R$libdir'
9312 hardcode_shlibpath_var=no
9315 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9319 hardcode_minus_L=yes
9320 hardcode_shlibpath_var=no
9323 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9324 freebsd* | dragonfly*)
9325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9326 hardcode_libdir_flag_spec='-R$libdir'
9328 hardcode_shlibpath_var=no
9332 if test "$GCC" = yes; then
9333 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'
9335 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'
9337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9338 hardcode_libdir_separator=:
9341 # hardcode_minus_L: Not really in the search PATH,
9342 # but as the default location of the library.
9343 hardcode_minus_L=yes
9344 export_dynamic_flag_spec='${wl}-E'
9348 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9349 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9351 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9353 if test "$with_gnu_ld" = no; then
9354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9355 hardcode_libdir_separator=:
9357 hardcode_direct_absolute=yes
9358 export_dynamic_flag_spec='${wl}-E'
9359 # hardcode_minus_L: Not really in the search PATH,
9360 # but as the default location of the library.
9361 hardcode_minus_L=yes
9366 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9369 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9372 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9375 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9381 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9388 # Older versions of the 11.00 compiler do not understand -b yet
9389 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9391 $as_echo_n "checking if $CC understands -b... " >&6; }
9392 if ${lt_cv_prog_compiler__b+:} false; then :
9393 $as_echo_n "(cached) " >&6
9395 lt_cv_prog_compiler__b=no
9396 save_LDFLAGS="$LDFLAGS"
9397 LDFLAGS="$LDFLAGS -b"
9398 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9399 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9400 # The linker can only warn and ignore the option if not recognized
9401 # So say no if there are warnings
9402 if test -s conftest.err; then
9403 # Append any errors to the config.log.
9404 cat conftest.err 1>&5
9405 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9407 if diff conftest.exp conftest.er2 >/dev/null; then
9408 lt_cv_prog_compiler__b=yes
9411 lt_cv_prog_compiler__b=yes
9415 LDFLAGS="$save_LDFLAGS"
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9419 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9421 if test x"$lt_cv_prog_compiler__b" = xyes; then
9422 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9424 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9430 if test "$with_gnu_ld" = no; then
9431 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9432 hardcode_libdir_separator=:
9437 hardcode_shlibpath_var=no
9441 hardcode_direct_absolute=yes
9442 export_dynamic_flag_spec='${wl}-E'
9444 # hardcode_minus_L: Not really in the search PATH,
9445 # but as the default location of the library.
9446 hardcode_minus_L=yes
9452 irix5* | irix6* | nonstopux*)
9453 if test "$GCC" = yes; then
9454 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'
9455 # Try to use the -exported_symbol ld option, if it does not
9456 # work, assume that -exports_file does not work either and
9457 # implicitly export all symbols.
9458 # This should be the same for all languages, so no per-tag cache variable.
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9460 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9461 if ${lt_cv_irix_exported_symbol+:} false; then :
9462 $as_echo_n "(cached) " >&6
9464 save_LDFLAGS="$LDFLAGS"
9465 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9468 int foo (void) { return 0; }
9470 if ac_fn_c_try_link "$LINENO"; then :
9471 lt_cv_irix_exported_symbol=yes
9473 lt_cv_irix_exported_symbol=no
9475 rm -f core conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9477 LDFLAGS="$save_LDFLAGS"
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9480 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9481 if test "$lt_cv_irix_exported_symbol" = yes; then
9482 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'
9485 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'
9486 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'
9488 archive_cmds_need_lc='no'
9489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9490 hardcode_libdir_separator=:
9492 link_all_deplibs=yes
9495 netbsd* | netbsdelf*-gnu)
9496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9499 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9501 hardcode_libdir_flag_spec='-R$libdir'
9503 hardcode_shlibpath_var=no
9507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9510 hardcode_libdir_separator=:
9511 hardcode_shlibpath_var=no
9518 if test -f /usr/libexec/ld.so; then
9520 hardcode_shlibpath_var=no
9521 hardcode_direct_absolute=yes
9522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9523 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9524 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9526 export_dynamic_flag_spec='${wl}-E'
9529 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9531 hardcode_libdir_flag_spec='-R$libdir'
9534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9545 hardcode_libdir_flag_spec='-L$libdir'
9546 hardcode_minus_L=yes
9547 allow_undefined_flag=unsupported
9548 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'
9549 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9553 if test "$GCC" = yes; then
9554 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9555 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'
9557 allow_undefined_flag=' -expect_unresolved \*'
9558 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'
9560 archive_cmds_need_lc='no'
9561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9562 hardcode_libdir_separator=:
9565 osf4* | osf5*) # as osf3* with the addition of -msym flag
9566 if test "$GCC" = yes; then
9567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9568 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'
9569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9571 allow_undefined_flag=' -expect_unresolved \*'
9572 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'
9573 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~
9574 $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'
9576 # Both c and cxx compiler support -rpath directly
9577 hardcode_libdir_flag_spec='-rpath $libdir'
9579 archive_cmds_need_lc='no'
9580 hardcode_libdir_separator=:
9584 no_undefined_flag=' -z defs'
9585 if test "$GCC" = yes; then
9587 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9588 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9589 $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'
9591 case `$CC -V 2>&1` in
9594 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9596 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9600 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9601 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9602 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9606 hardcode_libdir_flag_spec='-R$libdir'
9607 hardcode_shlibpath_var=no
9609 solaris2.[0-5] | solaris2.[0-5].*) ;;
9611 # The compiler driver will combine and reorder linker options,
9612 # but understands `-z linker_flag'. GCC discards it without `$wl',
9613 # but is careful enough not to reorder.
9614 # Supported since Solaris 2.6 (maybe 2.5.1?)
9615 if test "$GCC" = yes; then
9616 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9618 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9622 link_all_deplibs=yes
9626 if test "x$host_vendor" = xsequent; then
9627 # Use $CC to link under sequent, because it throws in some extra .o
9628 # files that make .init and .fini sections work.
9629 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9631 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9633 hardcode_libdir_flag_spec='-L$libdir'
9635 hardcode_minus_L=yes
9636 hardcode_shlibpath_var=no
9640 case $host_vendor in
9642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643 hardcode_direct=yes # is this really true???
9646 ## LD is ld it makes a PLAMLIB
9647 ## CC just makes a GrossModule.
9648 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9649 reload_cmds='$CC -r -o $output$reload_objs'
9653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9654 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9657 runpath_var='LD_RUN_PATH'
9658 hardcode_shlibpath_var=no
9662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663 hardcode_shlibpath_var=no
9664 export_dynamic_flag_spec='-Bexport'
9668 if test -d /usr/nec; then
9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_shlibpath_var=no
9671 runpath_var=LD_RUN_PATH
9672 hardcode_runpath_var=yes
9677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9678 no_undefined_flag='${wl}-z,text'
9679 archive_cmds_need_lc=no
9680 hardcode_shlibpath_var=no
9681 runpath_var='LD_RUN_PATH'
9683 if test "$GCC" = yes; then
9684 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9687 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9688 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 sysv5* | sco3.2v5* | sco5v6*)
9693 # Note: We can NOT use -z defs as we might desire, because we do not
9694 # link with -lc, and that would cause any symbols used from libc to
9695 # always be unresolved, which means just about no library would
9696 # ever link correctly. If we're not using GNU ld we use -z text
9697 # though, which does catch some bad symbols but isn't as heavy-handed
9699 no_undefined_flag='${wl}-z,text'
9700 allow_undefined_flag='${wl}-z,nodefs'
9701 archive_cmds_need_lc=no
9702 hardcode_shlibpath_var=no
9703 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9704 hardcode_libdir_separator=':'
9705 link_all_deplibs=yes
9706 export_dynamic_flag_spec='${wl}-Bexport'
9707 runpath_var='LD_RUN_PATH'
9709 if test "$GCC" = yes; then
9710 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9711 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_libdir_flag_spec='-L$libdir'
9721 hardcode_shlibpath_var=no
9729 if test x$host_vendor = xsni; then
9731 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9732 export_dynamic_flag_spec='${wl}-Blargedynsym'
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9739 $as_echo "$ld_shlibs" >&6; }
9740 test "$ld_shlibs" = no && can_build_shared=no
9742 with_gnu_ld=$with_gnu_ld
9759 # Do we need to explicitly link libc?
9761 case "x$archive_cmds_need_lc" in
9763 # Assume -lc should be added
9764 archive_cmds_need_lc=yes
9766 if test "$enable_shared" = yes && test "$GCC" = yes; then
9767 case $archive_cmds in
9769 # FIXME: we may have to deal with multi-command sequences.
9772 # Test whether the compiler implicitly links with -lc since on some
9773 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9774 # to ld, don't add -lc before -lgcc.
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9776 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9777 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9778 $as_echo_n "(cached) " >&6
9781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9784 (eval $ac_compile) 2>&5
9786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9787 test $ac_status = 0; } 2>conftest.err; then
9790 libobjs=conftest.$ac_objext
9792 wl=$lt_prog_compiler_wl
9793 pic_flag=$lt_prog_compiler_pic
9799 lt_save_allow_undefined_flag=$allow_undefined_flag
9800 allow_undefined_flag=
9801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9802 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805 test $ac_status = 0; }
9807 lt_cv_archive_cmds_need_lc=no
9809 lt_cv_archive_cmds_need_lc=yes
9811 allow_undefined_flag=$lt_save_allow_undefined_flag
9813 cat conftest.err 1>&5
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9819 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9820 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9979 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9981 if test "$GCC" = yes; then
9983 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9984 *) lt_awk_arg="/^libraries:/" ;;
9987 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9988 *) lt_sed_strip_eq="s,=/,/,g" ;;
9990 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9991 case $lt_search_path_spec in
9993 # if the path contains ";" then we assume it to be the separator
9994 # otherwise default to the standard path separator (i.e. ":") - it is
9995 # assumed that no part of a normal pathname contains ";" but that should
9996 # okay in the real world where ";" in dirpaths is itself problematic.
9997 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10000 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10003 # Ok, now we have the path, separated by spaces, we can step through it
10004 # and add multilib dir if necessary.
10005 lt_tmp_lt_search_path_spec=
10006 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10007 for lt_sys_path in $lt_search_path_spec; do
10008 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10009 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10011 test -d "$lt_sys_path" && \
10012 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10015 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10016 BEGIN {RS=" "; FS="/|\n";} {
10019 for (lt_i = NF; lt_i > 0; lt_i--) {
10020 if ($lt_i != "" && $lt_i != ".") {
10021 if ($lt_i == "..") {
10024 if (lt_count == 0) {
10025 lt_foo="/" $lt_i lt_foo;
10032 if (lt_foo != "") { lt_freq[lt_foo]++; }
10033 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10035 # AWK program above erroneously prepends '/' to C:/dos/paths
10038 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10039 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10041 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10043 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10045 library_names_spec=
10046 libname_spec='lib$name'
10050 postuninstall_cmds=
10054 shlibpath_overrides_runpath=unknown
10056 dynamic_linker="$host_os ld.so"
10057 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10058 need_lib_prefix=unknown
10059 hardcode_into_libs=no
10061 # when you set need_version to no, make sure it does not cause -set_version
10062 # flags to be left without arguments
10063 need_version=unknown
10067 version_type=linux # correct to gnu/linux during the next big refactor
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10069 shlibpath_var=LIBPATH
10071 # AIX 3 has no versioning support, so we append a major version to the name.
10072 soname_spec='${libname}${release}${shared_ext}$major'
10076 version_type=linux # correct to gnu/linux during the next big refactor
10079 hardcode_into_libs=yes
10080 if test "$host_cpu" = ia64; then
10081 # AIX 5 supports IA64
10082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10083 shlibpath_var=LD_LIBRARY_PATH
10085 # With GCC up to 2.95.x, collect2 would create an import file
10086 # for dependence libraries. The import file would start with
10087 # the line `#! .'. This would cause the generated library to
10088 # depend on `.', always an invalid library. This was fixed in
10089 # development snapshots of GCC prior to 3.0.
10091 aix4 | aix4.[01] | aix4.[01].*)
10092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10094 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10097 can_build_shared=no
10101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10102 # soname into executable. Probably we can add versioning support to
10103 # collect2, so additional links can be useful in future.
10104 if test "$aix_use_runtimelinking" = yes; then
10105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10106 # instead of lib<name>.a to let people know that these are not
10107 # typical AIX shared libraries.
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110 # We preserve .a as extension for shared libraries through AIX4.2
10111 # and later when we are not doing run time linking.
10112 library_names_spec='${libname}${release}.a $libname.a'
10113 soname_spec='${libname}${release}${shared_ext}$major'
10115 shlibpath_var=LIBPATH
10122 # Since July 2007 AmigaOS4 officially supports .so libraries.
10123 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127 library_names_spec='$libname.ixlibrary $libname.a'
10128 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10129 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'
10135 library_names_spec='${libname}${shared_ext}'
10136 dynamic_linker="$host_os ld.so"
10137 shlibpath_var=LIBRARY_PATH
10141 version_type=linux # correct to gnu/linux during the next big refactor
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10149 # the default ld.so.conf also contains /usr/contrib/lib and
10150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10151 # libtool to hard-code these into programs
10154 cygwin* | mingw* | pw32* | cegcc*)
10155 version_type=windows
10160 case $GCC,$cc_basename in
10163 library_names_spec='$libname.dll.a'
10164 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10165 postinstall_cmds='base_file=`basename \${file}`~
10166 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10167 dldir=$destdir/`dirname \$dlpath`~
10168 test -d \$dldir || mkdir -p \$dldir~
10169 $install_prog $dir/$dlname \$dldir/$dlname~
10170 chmod a+x \$dldir/$dlname~
10171 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10172 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10174 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10175 dlpath=$dir/\$dldll~
10177 shlibpath_overrides_runpath=yes
10181 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10182 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10184 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10187 # MinGW DLLs use traditional 'lib' prefix
10188 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10191 # pw32 DLLs use 'pw' prefix rather than 'lib'
10192 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10195 dynamic_linker='Win32 ld.exe'
10200 libname_spec='$name'
10201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10202 library_names_spec='${libname}.dll.lib'
10206 sys_lib_search_path_spec=
10209 for lt_path in $LIB
10212 # Let DOS variable expansion print the short 8.3 style file name.
10213 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10214 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10217 # Convert to MSYS style.
10218 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10221 # Convert to unix form, then to dos form, then back to unix form
10222 # but this time dos style (no spaces!) so that the unix form looks
10223 # like /cygdrive/c/PROGRA~1:/cygdr...
10224 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10225 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10226 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10229 sys_lib_search_path_spec="$LIB"
10230 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10231 # It is most probably a Windows format PATH.
10232 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10234 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10236 # FIXME: find the short name or the path components, as spaces are
10237 # common. (e.g. "Program Files" -> "PROGRA~1")
10241 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10242 postinstall_cmds='base_file=`basename \${file}`~
10243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10244 dldir=$destdir/`dirname \$dlpath`~
10245 test -d \$dldir || mkdir -p \$dldir~
10246 $install_prog $dir/$dlname \$dldir/$dlname'
10247 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10248 dlpath=$dir/\$dldll~
10250 shlibpath_overrides_runpath=yes
10251 dynamic_linker='Win32 link.exe'
10255 # Assume MSVC wrapper
10256 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10257 dynamic_linker='Win32 ld.exe'
10260 # FIXME: first we should search . and the directory the executable is in
10264 darwin* | rhapsody*)
10265 dynamic_linker="$host_os dyld"
10266 version_type=darwin
10269 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10270 soname_spec='${libname}${release}${major}$shared_ext'
10271 shlibpath_overrides_runpath=yes
10272 shlibpath_var=DYLD_LIBRARY_PATH
10273 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10275 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10276 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10280 version_type=linux # correct to gnu/linux during the next big refactor
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 shlibpath_var=LD_LIBRARY_PATH
10288 freebsd* | dragonfly*)
10289 # DragonFly does not have aout. When/if they implement a new
10290 # versioning mechanism, adjust this.
10291 if test -x /usr/bin/objformat; then
10292 objformat=`/usr/bin/objformat`
10295 freebsd[23].*) objformat=aout ;;
10296 *) objformat=elf ;;
10299 version_type=freebsd-$objformat
10300 case $version_type in
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10311 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10316 freebsd3.[01]* | freebsdelf3.[01]*)
10317 shlibpath_overrides_runpath=yes
10318 hardcode_into_libs=yes
10320 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10321 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10322 shlibpath_overrides_runpath=no
10323 hardcode_into_libs=yes
10325 *) # from 4.6 on, and DragonFly
10326 shlibpath_overrides_runpath=yes
10327 hardcode_into_libs=yes
10333 version_type=linux # correct to gnu/linux during the next big refactor
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 shlibpath_overrides_runpath=no
10340 hardcode_into_libs=yes
10344 version_type=linux # correct to gnu/linux during the next big refactor
10347 dynamic_linker="$host_os runtime_loader"
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 shlibpath_var=LIBRARY_PATH
10351 shlibpath_overrides_runpath=yes
10352 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10353 hardcode_into_libs=yes
10356 hpux9* | hpux10* | hpux11*)
10357 # Give a soname corresponding to the major version so that dld.sl refuses to
10358 # link against other versions.
10365 hardcode_into_libs=yes
10366 dynamic_linker="$host_os dld.so"
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 if test "X$HPUX_IA64_MODE" = X32; then
10372 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10374 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10380 hardcode_into_libs=yes
10381 dynamic_linker="$host_os dld.sl"
10382 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10391 dynamic_linker="$host_os dld.sl"
10392 shlibpath_var=SHLIB_PATH
10393 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10398 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10399 postinstall_cmds='chmod 555 $lib'
10400 # or fails outright, so override atomically:
10401 install_override_mode=555
10405 version_type=linux # correct to gnu/linux during the next big refactor
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 shlibpath_overrides_runpath=no
10413 hardcode_into_libs=yes
10416 irix5* | irix6* | nonstopux*)
10418 nonstopux*) version_type=nonstopux ;;
10420 if test "$lt_cv_prog_gnu_ld" = yes; then
10421 version_type=linux # correct to gnu/linux during the next big refactor
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10431 irix5* | nonstopux*)
10432 libsuff= shlibsuff=
10435 case $LD in # libtool.m4 will add one of these switches to LD
10436 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10437 libsuff= shlibsuff= libmagic=32-bit;;
10438 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10439 libsuff=32 shlibsuff=N32 libmagic=N32;;
10440 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10441 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10442 *) libsuff= shlibsuff= libmagic=never-match;;
10446 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10447 shlibpath_overrides_runpath=no
10448 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10449 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10450 hardcode_into_libs=yes
10453 # No shared lib support for Linux oldld, aout, or coff.
10454 linux*oldld* | linux*aout* | linux*coff*)
10458 # This must be glibc/ELF.
10459 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10460 version_type=linux # correct to gnu/linux during the next big refactor
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10469 # Some binutils ld are patched to set DT_RUNPATH
10470 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10471 $as_echo_n "(cached) " >&6
10473 lt_cv_shlibpath_overrides_runpath=no
10474 save_LDFLAGS=$LDFLAGS
10475 save_libdir=$libdir
10476 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10477 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10489 if ac_fn_c_try_link "$LINENO"; then :
10490 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10491 lt_cv_shlibpath_overrides_runpath=yes
10494 rm -f core conftest.err conftest.$ac_objext \
10495 conftest$ac_exeext conftest.$ac_ext
10496 LDFLAGS=$save_LDFLAGS
10497 libdir=$save_libdir
10501 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10503 # This implies no fast_install, which is unacceptable.
10504 # Some rework will be needed to allow for fast_install
10505 # before this can be enabled.
10506 hardcode_into_libs=yes
10508 # Append ld.so.conf contents to the search path
10509 if test -f /etc/ld.so.conf; then
10510 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' ' '`
10511 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10514 # We used to test for /lib/ld.so.1 and disable shared libraries on
10515 # powerpc, because MkLinux only supported shared libraries with the
10516 # GNU dynamic linker. Since this was broken with cross compilers,
10517 # most powerpc-linux boxes support dynamic linking these days and
10518 # people can always --disable-shared, the test was removed, and we
10519 # assume the GNU/Linux dynamic linker is in use.
10520 dynamic_linker='GNU/Linux ld.so'
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 shlibpath_overrides_runpath=no
10531 hardcode_into_libs=yes
10532 dynamic_linker='NetBSD ld.elf_so'
10539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10542 dynamic_linker='NetBSD (a.out) ld.so'
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 dynamic_linker='NetBSD ld.elf_so'
10548 shlibpath_var=LD_LIBRARY_PATH
10549 shlibpath_overrides_runpath=yes
10550 hardcode_into_libs=yes
10554 version_type=linux # correct to gnu/linux during the next big refactor
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 shlibpath_overrides_runpath=yes
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 shlibpath_overrides_runpath=no
10568 hardcode_into_libs=yes
10569 dynamic_linker='ldqnx.so'
10574 sys_lib_dlsearch_path_spec="/usr/lib"
10576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10578 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10579 *) need_version=no ;;
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10586 openbsd2.[89] | openbsd2.[89].*)
10587 shlibpath_overrides_runpath=no
10590 shlibpath_overrides_runpath=yes
10594 shlibpath_overrides_runpath=yes
10599 libname_spec='$name'
10602 library_names_spec='$libname${shared_ext} $libname.a'
10603 dynamic_linker='OS/2 ld.exe'
10604 shlibpath_var=LIBPATH
10607 osf3* | osf4* | osf5*)
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10615 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10623 version_type=linux # correct to gnu/linux during the next big refactor
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=yes
10630 hardcode_into_libs=yes
10631 # ldd complains unless libraries are executable
10632 postinstall_cmds='chmod +x $lib'
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10638 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10641 if test "$with_gnu_ld" = yes; then
10648 version_type=linux # correct to gnu/linux during the next big refactor
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 case $host_vendor in
10654 shlibpath_overrides_runpath=no
10656 runpath_var=LD_RUN_PATH
10664 shlibpath_overrides_runpath=no
10665 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10671 if test -d /usr/nec ;then
10672 version_type=linux # correct to gnu/linux during the next big refactor
10673 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10674 soname_spec='$libname${shared_ext}.$major'
10675 shlibpath_var=LD_LIBRARY_PATH
10679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10680 version_type=freebsd-elf
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 shlibpath_overrides_runpath=yes
10687 hardcode_into_libs=yes
10688 if test "$with_gnu_ld" = yes; then
10689 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10691 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10694 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10698 sys_lib_dlsearch_path_spec='/usr/lib'
10702 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10703 version_type=linux # correct to gnu/linux during the next big refactor
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=no
10709 hardcode_into_libs=yes
10713 version_type=linux # correct to gnu/linux during the next big refactor
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 shlibpath_var=LD_LIBRARY_PATH
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10724 $as_echo "$dynamic_linker" >&6; }
10725 test "$dynamic_linker" = no && can_build_shared=no
10727 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10728 if test "$GCC" = yes; then
10729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10732 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10733 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10735 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10736 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10831 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10833 if test -n "$hardcode_libdir_flag_spec" ||
10834 test -n "$runpath_var" ||
10835 test "X$hardcode_automatic" = "Xyes" ; then
10837 # We can hardcode non-existent directories.
10838 if test "$hardcode_direct" != no &&
10839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10840 # have to relink, otherwise we might link with an installed library
10841 # when we should be linking with a yet-to-be-installed one
10842 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10843 test "$hardcode_minus_L" != no; then
10844 # Linking always hardcodes the temporary library directory.
10845 hardcode_action=relink
10847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10848 hardcode_action=immediate
10851 # We cannot hardcode anything, or else we can only hardcode existing
10853 hardcode_action=unsupported
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10856 $as_echo "$hardcode_action" >&6; }
10858 if test "$hardcode_action" = relink ||
10859 test "$inherit_rpath" = yes; then
10860 # Fast installation is not supported
10861 enable_fast_install=no
10862 elif test "$shlibpath_overrides_runpath" = yes ||
10863 test "$enable_shared" = no; then
10864 # Fast installation is not necessary
10865 enable_fast_install=needless
10873 if test "x$enable_dlopen" != xyes; then
10874 enable_dlopen=unknown
10875 enable_dlopen_self=unknown
10876 enable_dlopen_self_static=unknown
10883 lt_cv_dlopen="load_add_on"
10885 lt_cv_dlopen_self=yes
10888 mingw* | pw32* | cegcc*)
10889 lt_cv_dlopen="LoadLibrary"
10894 lt_cv_dlopen="dlopen"
10899 # if libdl is installed we need to link against it
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10901 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10902 if ${ac_cv_lib_dl_dlopen+:} false; then :
10903 $as_echo_n "(cached) " >&6
10905 ac_check_lib_save_LIBS=$LIBS
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10925 if ac_fn_c_try_link "$LINENO"; then :
10926 ac_cv_lib_dl_dlopen=yes
10928 ac_cv_lib_dl_dlopen=no
10930 rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10935 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10936 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10937 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10940 lt_cv_dlopen="dyld"
10942 lt_cv_dlopen_self=yes
10949 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10950 if test "x$ac_cv_func_shl_load" = xyes; then :
10951 lt_cv_dlopen="shl_load"
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10954 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10955 if ${ac_cv_lib_dld_shl_load+:} false; then :
10956 $as_echo_n "(cached) " >&6
10958 ac_check_lib_save_LIBS=$LIBS
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10963 /* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10973 return shl_load ();
10978 if ac_fn_c_try_link "$LINENO"; then :
10979 ac_cv_lib_dld_shl_load=yes
10981 ac_cv_lib_dld_shl_load=no
10983 rm -f core conftest.err conftest.$ac_objext \
10984 conftest$ac_exeext conftest.$ac_ext
10985 LIBS=$ac_check_lib_save_LIBS
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10988 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10989 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10990 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10992 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10993 if test "x$ac_cv_func_dlopen" = xyes; then :
10994 lt_cv_dlopen="dlopen"
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10997 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10998 if ${ac_cv_lib_dl_dlopen+:} false; then :
10999 $as_echo_n "(cached) " >&6
11001 ac_check_lib_save_LIBS=$LIBS
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11021 if ac_fn_c_try_link "$LINENO"; then :
11022 ac_cv_lib_dl_dlopen=yes
11024 ac_cv_lib_dl_dlopen=no
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11031 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11032 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11036 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11037 if ${ac_cv_lib_svld_dlopen+:} false; then :
11038 $as_echo_n "(cached) " >&6
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-lsvld $LIBS"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 ac_cv_lib_svld_dlopen=yes
11063 ac_cv_lib_svld_dlopen=no
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11070 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11071 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11075 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11076 if ${ac_cv_lib_dld_dld_link+:} false; then :
11077 $as_echo_n "(cached) " >&6
11079 ac_check_lib_save_LIBS=$LIBS
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11084 /* Override any GCC internal prototype to avoid an error.
11085 Use char because int might match the return type of a GCC
11086 builtin and then its argument prototype would still apply. */
11094 return dld_link ();
11099 if ac_fn_c_try_link "$LINENO"; then :
11100 ac_cv_lib_dld_dld_link=yes
11102 ac_cv_lib_dld_dld_link=no
11104 rm -f core conftest.err conftest.$ac_objext \
11105 conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11109 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11110 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11111 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11132 if test "x$lt_cv_dlopen" != xno; then
11138 case $lt_cv_dlopen in
11140 save_CPPFLAGS="$CPPFLAGS"
11141 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11143 save_LDFLAGS="$LDFLAGS"
11144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11147 LIBS="$lt_cv_dlopen_libs $LIBS"
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11150 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11151 if ${lt_cv_dlopen_self+:} false; then :
11152 $as_echo_n "(cached) " >&6
11154 if test "$cross_compiling" = yes; then :
11155 lt_cv_dlopen_self=cross
11157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11158 lt_status=$lt_dlunknown
11159 cat > conftest.$ac_ext <<_LT_EOF
11160 #line $LINENO "configure"
11161 #include "confdefs.h"
11170 # define LT_DLGLOBAL RTLD_GLOBAL
11173 # define LT_DLGLOBAL DL_GLOBAL
11175 # define LT_DLGLOBAL 0
11179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11180 find out it does not work in some platform. */
11181 #ifndef LT_DLLAZY_OR_NOW
11183 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11186 # define LT_DLLAZY_OR_NOW DL_LAZY
11189 # define LT_DLLAZY_OR_NOW RTLD_NOW
11192 # define LT_DLLAZY_OR_NOW DL_NOW
11194 # define LT_DLLAZY_OR_NOW 0
11201 /* When -fvisbility=hidden is used, assume the code has been annotated
11202 correspondingly for the symbols needed. */
11203 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11204 int fnord () __attribute__((visibility("default")));
11207 int fnord () { return 42; }
11210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11211 int status = $lt_dlunknown;
11215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11218 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11219 else puts (dlerror ());
11221 /* dlclose (self); */
11229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11230 (eval $ac_link) 2>&5
11232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11233 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11234 (./conftest; exit; ) >&5 2>/dev/null
11236 case x$lt_status in
11237 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11238 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11239 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11242 # compilation failed
11243 lt_cv_dlopen_self=no
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11251 $as_echo "$lt_cv_dlopen_self" >&6; }
11253 if test "x$lt_cv_dlopen_self" = xyes; then
11254 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11256 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11257 if ${lt_cv_dlopen_self_static+:} false; then :
11258 $as_echo_n "(cached) " >&6
11260 if test "$cross_compiling" = yes; then :
11261 lt_cv_dlopen_self_static=cross
11263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11264 lt_status=$lt_dlunknown
11265 cat > conftest.$ac_ext <<_LT_EOF
11266 #line $LINENO "configure"
11267 #include "confdefs.h"
11276 # define LT_DLGLOBAL RTLD_GLOBAL
11279 # define LT_DLGLOBAL DL_GLOBAL
11281 # define LT_DLGLOBAL 0
11285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11286 find out it does not work in some platform. */
11287 #ifndef LT_DLLAZY_OR_NOW
11289 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11292 # define LT_DLLAZY_OR_NOW DL_LAZY
11295 # define LT_DLLAZY_OR_NOW RTLD_NOW
11298 # define LT_DLLAZY_OR_NOW DL_NOW
11300 # define LT_DLLAZY_OR_NOW 0
11307 /* When -fvisbility=hidden is used, assume the code has been annotated
11308 correspondingly for the symbols needed. */
11309 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11310 int fnord () __attribute__((visibility("default")));
11313 int fnord () { return 42; }
11316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11317 int status = $lt_dlunknown;
11321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11324 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11325 else puts (dlerror ());
11327 /* dlclose (self); */
11335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11336 (eval $ac_link) 2>&5
11338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11340 (./conftest; exit; ) >&5 2>/dev/null
11342 case x$lt_status in
11343 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11344 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11345 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11348 # compilation failed
11349 lt_cv_dlopen_self_static=no
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11357 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11360 CPPFLAGS="$save_CPPFLAGS"
11361 LDFLAGS="$save_LDFLAGS"
11366 case $lt_cv_dlopen_self in
11367 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11368 *) enable_dlopen_self=unknown ;;
11371 case $lt_cv_dlopen_self_static in
11372 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11373 *) enable_dlopen_self_static=unknown ;;
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11396 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11397 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11398 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11399 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401 $as_echo "yes" >&6; }
11403 # FIXME - insert some real tests, host_os isn't really good enough
11406 if test -n "$STRIP" ; then
11407 striplib="$STRIP -x"
11408 old_striplib="$STRIP -S"
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11410 $as_echo "yes" >&6; }
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11434 # Report which library types will actually be built
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11436 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11438 $as_echo "$can_build_shared" >&6; }
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11441 $as_echo_n "checking whether to build shared libraries... " >&6; }
11442 test "$can_build_shared" = "no" && enable_shared=no
11444 # On AIX, shared libraries and static libraries use the same namespace, and
11445 # are all built from PIC.
11448 test "$enable_shared" = yes && enable_static=no
11449 if test -n "$RANLIB"; then
11450 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11451 postinstall_cmds='$RANLIB $lib'
11456 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11457 test "$enable_shared" = yes && enable_static=no
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11462 $as_echo "$enable_shared" >&6; }
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11465 $as_echo_n "checking whether to build static libraries... " >&6; }
11466 # Make sure either enable_shared or enable_static is yes.
11467 test "$enable_shared" = yes || enable_static=yes
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11469 $as_echo "$enable_static" >&6; }
11476 ac_cpp='$CPP $CPPFLAGS'
11477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11497 ac_config_commands="$ac_config_commands libtool"
11502 # Only expand once:
11514 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11515 if test -n "$ac_tool_prefix"; then
11516 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11517 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11519 $as_echo_n "checking for $ac_word... " >&6; }
11520 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11521 $as_echo_n "(cached) " >&6
11523 case $PKG_CONFIG in
11525 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529 for as_dir in $PATH
11532 test -z "$as_dir" && as_dir=.
11533 for ac_exec_ext in '' $ac_executable_extensions; do
11534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11535 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11546 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11547 if test -n "$PKG_CONFIG"; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11549 $as_echo "$PKG_CONFIG" >&6; }
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11557 if test -z "$ac_cv_path_PKG_CONFIG"; then
11558 ac_pt_PKG_CONFIG=$PKG_CONFIG
11559 # Extract the first word of "pkg-config", so it can be a program name with args.
11560 set dummy pkg-config; ac_word=$2
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 $as_echo_n "checking for $ac_word... " >&6; }
11563 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11564 $as_echo_n "(cached) " >&6
11566 case $ac_pt_PKG_CONFIG in
11568 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11578 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11589 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11590 if test -n "$ac_pt_PKG_CONFIG"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11592 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11598 if test "x$ac_pt_PKG_CONFIG" = x; then
11601 case $cross_compiling:$ac_tool_warned in
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11605 ac_tool_warned=yes ;;
11607 PKG_CONFIG=$ac_pt_PKG_CONFIG
11610 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11614 if test -n "$PKG_CONFIG"; then
11615 _pkg_min_version=0.9.0
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11617 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11618 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11620 $as_echo "yes" >&6; }
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11630 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
11631 set dummy gtkdoc-check; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
11635 $as_echo_n "(cached) " >&6
11637 case $GTKDOC_CHECK in
11639 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in $PATH
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11649 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11660 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
11661 if test -n "$GTKDOC_CHECK"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
11663 $as_echo "$GTKDOC_CHECK" >&6; }
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11670 for ac_prog in gtkdoc-rebase
11672 # Extract the first word of "$ac_prog", so it can be a program name with args.
11673 set dummy $ac_prog; ac_word=$2
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11675 $as_echo_n "checking for $ac_word... " >&6; }
11676 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
11677 $as_echo_n "(cached) " >&6
11679 case $GTKDOC_REBASE in
11681 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
11684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685 for as_dir in $PATH
11688 test -z "$as_dir" && as_dir=.
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11691 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
11703 if test -n "$GTKDOC_REBASE"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
11705 $as_echo "$GTKDOC_REBASE" >&6; }
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11712 test -n "$GTKDOC_REBASE" && break
11714 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
11716 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
11717 set dummy gtkdoc-mkpdf; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
11721 $as_echo_n "(cached) " >&6
11723 case $GTKDOC_MKPDF in
11725 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11732 test -z "$as_dir" && as_dir=.
11733 for ac_exec_ext in '' $ac_executable_extensions; do
11734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11735 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
11736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11746 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
11747 if test -n "$GTKDOC_MKPDF"; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
11749 $as_echo "$GTKDOC_MKPDF" >&6; }
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11758 # Check whether --with-html-dir was given.
11759 if test "${with_html_dir+set}" = set; then :
11760 withval=$with_html_dir;
11762 with_html_dir='${datadir}/gtk-doc/html'
11765 HTML_DIR="$with_html_dir"
11768 # Check whether --enable-gtk-doc was given.
11769 if test "${enable_gtk_doc+set}" = set; then :
11770 enableval=$enable_gtk_doc;
11776 if test x$enable_gtk_doc = xyes; then
11777 if test -n "$PKG_CONFIG" && \
11778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.18\""; } >&5
11779 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.18") 2>&5
11781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11782 test $ac_status = 0; }; then
11785 as_fn_error $? "You need to have gtk-doc >= 1.18 installed to build $PACKAGE_NAME" "$LINENO" 5
11787 if test "x$PACKAGE_NAME" != "xglib"; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
11791 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
11793 if test -n "$GTKDOC_DEPS_CFLAGS"; then
11794 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
11795 elif test -n "$PKG_CONFIG"; then
11796 if test -n "$PKG_CONFIG" && \
11797 { { $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
11798 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
11800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801 test $ac_status = 0; }; then
11802 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
11803 test "x$?" != "x0" && pkg_failed=yes
11810 if test -n "$GTKDOC_DEPS_LIBS"; then
11811 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
11812 elif test -n "$PKG_CONFIG"; then
11813 if test -n "$PKG_CONFIG" && \
11814 { { $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
11815 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
11817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11818 test $ac_status = 0; }; then
11819 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
11820 test "x$?" != "x0" && pkg_failed=yes
11830 if test $pkg_failed = yes; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832 $as_echo "no" >&6; }
11834 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11835 _pkg_short_errors_supported=yes
11837 _pkg_short_errors_supported=no
11839 if test $_pkg_short_errors_supported = yes; then
11840 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`
11842 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
11844 # Put the nasty error message in config.log where it belongs
11845 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
11847 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
11849 $GTKDOC_DEPS_PKG_ERRORS
11851 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11852 installed software in a non-standard prefix.
11854 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
11855 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
11856 See the pkg-config man page for more details." "$LINENO" 5
11857 elif test $pkg_failed = untried; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11862 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11863 is in your PATH or set the PKG_CONFIG environment variable to the full
11864 path to pkg-config.
11866 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
11867 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
11868 See the pkg-config man page for more details.
11870 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11871 See \`config.log' for more details" "$LINENO" 5; }
11873 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
11874 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11876 $as_echo "yes" >&6; }
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
11883 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
11885 $as_echo "$enable_gtk_doc" >&6; }
11887 # Check whether --enable-gtk-doc-html was given.
11888 if test "${enable_gtk_doc_html+set}" = set; then :
11889 enableval=$enable_gtk_doc_html;
11891 enable_gtk_doc_html=yes
11894 # Check whether --enable-gtk-doc-pdf was given.
11895 if test "${enable_gtk_doc_pdf+set}" = set; then :
11896 enableval=$enable_gtk_doc_pdf;
11898 enable_gtk_doc_pdf=no
11902 if test -z "$GTKDOC_MKPDF"; then
11903 enable_gtk_doc_pdf=no
11907 if test x$enable_gtk_doc = xyes; then
11908 ENABLE_GTK_DOC_TRUE=
11909 ENABLE_GTK_DOC_FALSE='#'
11911 ENABLE_GTK_DOC_TRUE='#'
11912 ENABLE_GTK_DOC_FALSE=
11915 if test x$enable_gtk_doc_html = xyes; then
11916 GTK_DOC_BUILD_HTML_TRUE=
11917 GTK_DOC_BUILD_HTML_FALSE='#'
11919 GTK_DOC_BUILD_HTML_TRUE='#'
11920 GTK_DOC_BUILD_HTML_FALSE=
11923 if test x$enable_gtk_doc_pdf = xyes; then
11924 GTK_DOC_BUILD_PDF_TRUE=
11925 GTK_DOC_BUILD_PDF_FALSE='#'
11927 GTK_DOC_BUILD_PDF_TRUE='#'
11928 GTK_DOC_BUILD_PDF_FALSE=
11931 if test -n "$LIBTOOL"; then
11932 GTK_DOC_USE_LIBTOOL_TRUE=
11933 GTK_DOC_USE_LIBTOOL_FALSE='#'
11935 GTK_DOC_USE_LIBTOOL_TRUE='#'
11936 GTK_DOC_USE_LIBTOOL_FALSE=
11939 if test -n "$GTKDOC_REBASE"; then
11940 GTK_DOC_USE_REBASE_TRUE=
11941 GTK_DOC_USE_REBASE_FALSE='#'
11943 GTK_DOC_USE_REBASE_TRUE='#'
11944 GTK_DOC_USE_REBASE_FALSE=
11949 # Checks for programs.
11951 ac_cpp='$CPP $CPPFLAGS'
11952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11955 if test -n "$ac_tool_prefix"; then
11956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11957 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if ${ac_cv_prog_CC+:} false; then :
11961 $as_echo_n "(cached) " >&6
11963 if test -n "$CC"; then
11964 ac_cv_prog_CC="$CC" # Let the user override the test.
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11984 if test -n "$CC"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11986 $as_echo "$CC" >&6; }
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989 $as_echo "no" >&6; }
11994 if test -z "$ac_cv_prog_CC"; then
11996 # Extract the first word of "gcc", so it can be a program name with args.
11997 set dummy gcc; ac_word=$2
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999 $as_echo_n "checking for $ac_word... " >&6; }
12000 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12001 $as_echo_n "(cached) " >&6
12003 if test -n "$ac_ct_CC"; then
12004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12013 ac_cv_prog_ac_ct_CC="gcc"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12024 if test -n "$ac_ct_CC"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12026 $as_echo "$ac_ct_CC" >&6; }
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12032 if test "x$ac_ct_CC" = x; then
12035 case $cross_compiling:$ac_tool_warned in
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12039 ac_tool_warned=yes ;;
12044 CC="$ac_cv_prog_CC"
12047 if test -z "$CC"; then
12048 if test -n "$ac_tool_prefix"; then
12049 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12050 set dummy ${ac_tool_prefix}cc; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_prog_CC+:} false; then :
12054 $as_echo_n "(cached) " >&6
12056 if test -n "$CC"; then
12057 ac_cv_prog_CC="$CC" # Let the user override the test.
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12066 ac_cv_prog_CC="${ac_tool_prefix}cc"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 if test -n "$CC"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12079 $as_echo "$CC" >&6; }
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12088 if test -z "$CC"; then
12089 # Extract the first word of "cc", so it can be a program name with args.
12090 set dummy cc; ac_word=$2
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092 $as_echo_n "checking for $ac_word... " >&6; }
12093 if ${ac_cv_prog_CC+:} false; then :
12094 $as_echo_n "(cached) " >&6
12096 if test -n "$CC"; then
12097 ac_cv_prog_CC="$CC" # Let the user override the test.
12099 ac_prog_rejected=no
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $PATH
12104 test -z "$as_dir" && as_dir=.
12105 for ac_exec_ext in '' $ac_executable_extensions; do
12106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12108 ac_prog_rejected=yes
12112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 if test $ac_prog_rejected = yes; then
12120 # We found a bogon in the path, so make sure we never use it.
12121 set dummy $ac_cv_prog_CC
12123 if test $# != 0; then
12124 # We chose a different compiler from the bogus one.
12125 # However, it has the same basename, so the bogon will be chosen
12126 # first if we set CC to just the basename; use the full file name.
12128 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12134 if test -n "$CC"; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12136 $as_echo "$CC" >&6; }
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12144 if test -z "$CC"; then
12145 if test -n "$ac_tool_prefix"; then
12146 for ac_prog in cl.exe
12148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12151 $as_echo_n "checking for $ac_word... " >&6; }
12152 if ${ac_cv_prog_CC+:} false; then :
12153 $as_echo_n "(cached) " >&6
12155 if test -n "$CC"; then
12156 ac_cv_prog_CC="$CC" # Let the user override the test.
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12165 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176 if test -n "$CC"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12178 $as_echo "$CC" >&6; }
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12185 test -n "$CC" && break
12188 if test -z "$CC"; then
12190 for ac_prog in cl.exe
12192 # Extract the first word of "$ac_prog", so it can be a program name with args.
12193 set dummy $ac_prog; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12197 $as_echo_n "(cached) " >&6
12199 if test -n "$ac_ct_CC"; then
12200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 for as_dir in $PATH
12206 test -z "$as_dir" && as_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12209 ac_cv_prog_ac_ct_CC="$ac_prog"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12220 if test -n "$ac_ct_CC"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12222 $as_echo "$ac_ct_CC" >&6; }
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12229 test -n "$ac_ct_CC" && break
12232 if test "x$ac_ct_CC" = x; then
12235 case $cross_compiling:$ac_tool_warned in
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12239 ac_tool_warned=yes ;;
12248 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12250 as_fn_error $? "no acceptable C compiler found in \$PATH
12251 See \`config.log' for more details" "$LINENO" 5; }
12253 # Provide some information about the compiler.
12254 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12257 for ac_option in --version -v -V -qversion; do
12258 { { ac_try="$ac_compiler $ac_option >&5"
12259 case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12264 $as_echo "$ac_try_echo"; } >&5
12265 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12267 if test -s conftest.err; then
12269 ... rest of stderr output deleted ...
12270 10q' conftest.err >conftest.er1
12271 cat conftest.er1 >&5
12273 rm -f conftest.er1 conftest.err
12274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12275 test $ac_status = 0; }
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12279 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12280 if ${ac_cv_c_compiler_gnu+:} false; then :
12281 $as_echo_n "(cached) " >&6
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12297 if ac_fn_c_try_compile "$LINENO"; then :
12298 ac_compiler_gnu=yes
12302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12307 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12308 if test $ac_compiler_gnu = yes; then
12313 ac_test_CFLAGS=${CFLAGS+set}
12314 ac_save_CFLAGS=$CFLAGS
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12316 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12317 if ${ac_cv_prog_cc_g+:} false; then :
12318 $as_echo_n "(cached) " >&6
12320 ac_save_c_werror_flag=$ac_c_werror_flag
12321 ac_c_werror_flag=yes
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12335 if ac_fn_c_try_compile "$LINENO"; then :
12336 ac_cv_prog_cc_g=yes
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12350 if ac_fn_c_try_compile "$LINENO"; then :
12353 ac_c_werror_flag=$ac_save_c_werror_flag
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12366 if ac_fn_c_try_compile "$LINENO"; then :
12367 ac_cv_prog_cc_g=yes
12369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 ac_c_werror_flag=$ac_save_c_werror_flag
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12377 $as_echo "$ac_cv_prog_cc_g" >&6; }
12378 if test "$ac_test_CFLAGS" = set; then
12379 CFLAGS=$ac_save_CFLAGS
12380 elif test $ac_cv_prog_cc_g = yes; then
12381 if test "$GCC" = yes; then
12387 if test "$GCC" = yes; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12394 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12395 if ${ac_cv_prog_cc_c89+:} false; then :
12396 $as_echo_n "(cached) " >&6
12398 ac_cv_prog_cc_c89=no
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12402 #include <stdarg.h>
12404 #include <sys/types.h>
12405 #include <sys/stat.h>
12406 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12407 struct buf { int x; };
12408 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12409 static char *e (p, i)
12415 static char *f (char * (*g) (char **, int), char **p, ...)
12420 s = g (p, va_arg (v,int));
12425 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12426 function prototypes and stuff, but not '\xHH' hex character constants.
12427 These don't provoke an error unfortunately, instead are silently treated
12428 as 'x'. The following induces an error, until -std is added to get
12429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12430 array size at least. It's necessary to write '\x00'==0 to get something
12431 that's true only with -std. */
12432 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12434 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12435 inside strings and character constants. */
12437 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12439 int test (int i, double x);
12440 struct s1 {int (*f) (int a);};
12441 struct s2 {int (*f) (double a);};
12442 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12448 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12453 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12454 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12456 CC="$ac_save_CC $ac_arg"
12457 if ac_fn_c_try_compile "$LINENO"; then :
12458 ac_cv_prog_cc_c89=$ac_arg
12460 rm -f core conftest.err conftest.$ac_objext
12461 test "x$ac_cv_prog_cc_c89" != "xno" && break
12463 rm -f conftest.$ac_ext
12468 case "x$ac_cv_prog_cc_c89" in
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12471 $as_echo "none needed" >&6; } ;;
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12474 $as_echo "unsupported" >&6; } ;;
12476 CC="$CC $ac_cv_prog_cc_c89"
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12478 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12480 if test "x$ac_cv_prog_cc_c89" != xno; then :
12485 ac_cpp='$CPP $CPPFLAGS'
12486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12490 depcc="$CC" am_compiler_list=
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12493 $as_echo_n "checking dependency style of $depcc... " >&6; }
12494 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12495 $as_echo_n "(cached) " >&6
12497 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12498 # We make a subdir and do the tests there. Otherwise we can end up
12499 # making bogus files that we don't know about and never remove. For
12500 # instance it was reported that on HP-UX the gcc test will end up
12501 # making a dummy file named `D' -- because `-MD' means `put the output
12503 rm -rf conftest.dir
12505 # Copy depcomp to subdir because otherwise we won't find it if we're
12506 # using a relative directory.
12507 cp "$am_depcomp" conftest.dir
12509 # We will build objects and dependencies in a subdirectory because
12510 # it helps to detect inapplicable dependency modes. For instance
12511 # both Tru64's cc and ICC support -MD to output dependencies as a
12512 # side effect of compilation, but ICC will put the dependencies in
12513 # the current directory while Tru64 will put them in the object
12517 am_cv_CC_dependencies_compiler_type=none
12518 if test "$am_compiler_list" = ""; then
12519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12521 am__universal=false
12522 case " $depcc " in #(
12523 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12526 for depmode in $am_compiler_list; do
12527 # Setup a source with many dependencies, because some compilers
12528 # like to wrap large dependency lists on column 80 (with \), and
12529 # we should not choose a depcomp mode which is confused by this.
12531 # We need to recreate these files for each test, as the compiler may
12532 # overwrite some of them when testing with obscure command lines.
12533 # This happens at least with the AIX C compiler.
12535 for i in 1 2 3 4 5 6; do
12536 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12537 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12538 # Solaris 8's {/usr,}/bin/sh.
12539 touch sub/conftst$i.h
12541 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12543 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12544 # mode. It turns out that the SunPro C++ compiler does not properly
12545 # handle `-M -o', and we need to detect this. Also, some Intel
12546 # versions had trouble with output in subdirs
12547 am__obj=sub/conftest.${OBJEXT-o}
12548 am__minus_obj="-o $am__obj"
12551 # This depmode causes a compiler race in universal mode.
12552 test "$am__universal" = false || continue
12555 # after this tag, mechanisms are not by side-effect, so they'll
12556 # only be used when explicitly requested
12557 if test "x$enable_dependency_tracking" = xyes; then
12563 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12564 # This compiler won't grok `-c -o', but also, the minuso test has
12565 # not run yet. These depmodes are late enough in the game, and
12566 # so weak that their functioning should not be impacted.
12567 am__obj=conftest.${OBJEXT-o}
12572 if depmode=$depmode \
12573 source=sub/conftest.c object=$am__obj \
12574 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12575 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12576 >/dev/null 2>conftest.err &&
12577 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12578 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12579 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12580 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12581 # icc doesn't choke on unknown options, it will just issue warnings
12582 # or remarks (even with -Werror). So we grep stderr for any message
12583 # that says an option was ignored or not supported.
12584 # When given -MP, icc 7.0 and 7.1 complain thusly:
12585 # icc: Command line warning: ignoring option '-M'; no argument required
12586 # The diagnosis changed in icc 8.0:
12587 # icc: Command line remark: option '-MP' not supported
12588 if (grep 'ignoring option' conftest.err ||
12589 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12590 am_cv_CC_dependencies_compiler_type=$depmode
12597 rm -rf conftest.dir
12599 am_cv_CC_dependencies_compiler_type=none
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12604 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12605 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12608 test "x$enable_dependency_tracking" != xno \
12609 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12610 am__fastdepCC_TRUE=
12611 am__fastdepCC_FALSE='#'
12613 am__fastdepCC_TRUE='#'
12614 am__fastdepCC_FALSE=
12618 # Extract the first word of "glib-mkenums", so it can be a program name with args.
12619 set dummy glib-mkenums; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if ${ac_cv_path_GLIB_MKENUMS+:} false; then :
12623 $as_echo_n "(cached) " >&6
12625 case $GLIB_MKENUMS in
12627 ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path.
12630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631 for as_dir in $PATH
12634 test -z "$as_dir" && as_dir=.
12635 for ac_exec_ext in '' $ac_executable_extensions; do
12636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12637 ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext"
12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 test -z "$ac_cv_path_GLIB_MKENUMS" && ac_cv_path_GLIB_MKENUMS="$PATH"
12649 GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS
12650 if test -n "$GLIB_MKENUMS"; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5
12652 $as_echo "$GLIB_MKENUMS" >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12660 # Checks for libraries.
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12664 $as_echo_n "checking for GLIB... " >&6; }
12666 if test -n "$GLIB_CFLAGS"; then
12667 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12668 elif test -n "$PKG_CONFIG"; then
12669 if test -n "$PKG_CONFIG" && \
12670 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.30\""; } >&5
12671 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.30") 2>&5
12673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12674 test $ac_status = 0; }; then
12675 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.30" 2>/dev/null`
12676 test "x$?" != "x0" && pkg_failed=yes
12683 if test -n "$GLIB_LIBS"; then
12684 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12685 elif test -n "$PKG_CONFIG"; then
12686 if test -n "$PKG_CONFIG" && \
12687 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.30\""; } >&5
12688 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.30") 2>&5
12690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12691 test $ac_status = 0; }; then
12692 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.30" 2>/dev/null`
12693 test "x$?" != "x0" && pkg_failed=yes
12703 if test $pkg_failed = yes; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12707 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12708 _pkg_short_errors_supported=yes
12710 _pkg_short_errors_supported=no
12712 if test $_pkg_short_errors_supported = yes; then
12713 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.30" 2>&1`
12715 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.30" 2>&1`
12717 # Put the nasty error message in config.log where it belongs
12718 echo "$GLIB_PKG_ERRORS" >&5
12720 as_fn_error $? "Package requirements (glib-2.0 >= 2.30) were not met:
12724 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12725 installed software in a non-standard prefix.
12727 Alternatively, you may set the environment variables GLIB_CFLAGS
12728 and GLIB_LIBS to avoid the need to call pkg-config.
12729 See the pkg-config man page for more details." "$LINENO" 5
12730 elif test $pkg_failed = untried; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12735 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12736 is in your PATH or set the PKG_CONFIG environment variable to the full
12737 path to pkg-config.
12739 Alternatively, you may set the environment variables GLIB_CFLAGS
12740 and GLIB_LIBS to avoid the need to call pkg-config.
12741 See the pkg-config man page for more details.
12743 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12744 See \`config.log' for more details" "$LINENO" 5; }
12746 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12747 GLIB_LIBS=$pkg_cv_GLIB_LIBS
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12749 $as_echo "yes" >&6; }
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
12758 $as_echo_n "checking for GIO... " >&6; }
12760 if test -n "$GIO_CFLAGS"; then
12761 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
12762 elif test -n "$PKG_CONFIG"; then
12763 if test -n "$PKG_CONFIG" && \
12764 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 gio-unix-2.0\""; } >&5
12765 ($PKG_CONFIG --exists --print-errors "gio-2.0 gio-unix-2.0") 2>&5
12767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12768 test $ac_status = 0; }; then
12769 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 gio-unix-2.0" 2>/dev/null`
12770 test "x$?" != "x0" && pkg_failed=yes
12777 if test -n "$GIO_LIBS"; then
12778 pkg_cv_GIO_LIBS="$GIO_LIBS"
12779 elif test -n "$PKG_CONFIG"; then
12780 if test -n "$PKG_CONFIG" && \
12781 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 gio-unix-2.0\""; } >&5
12782 ($PKG_CONFIG --exists --print-errors "gio-2.0 gio-unix-2.0") 2>&5
12784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12785 test $ac_status = 0; }; then
12786 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 gio-unix-2.0" 2>/dev/null`
12787 test "x$?" != "x0" && pkg_failed=yes
12797 if test $pkg_failed = yes; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799 $as_echo "no" >&6; }
12801 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12802 _pkg_short_errors_supported=yes
12804 _pkg_short_errors_supported=no
12806 if test $_pkg_short_errors_supported = yes; then
12807 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 gio-unix-2.0" 2>&1`
12809 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 gio-unix-2.0" 2>&1`
12811 # Put the nasty error message in config.log where it belongs
12812 echo "$GIO_PKG_ERRORS" >&5
12814 as_fn_error $? "Package requirements (gio-2.0 gio-unix-2.0) were not met:
12818 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12819 installed software in a non-standard prefix.
12821 Alternatively, you may set the environment variables GIO_CFLAGS
12822 and GIO_LIBS to avoid the need to call pkg-config.
12823 See the pkg-config man page for more details." "$LINENO" 5
12824 elif test $pkg_failed = untried; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12829 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12830 is in your PATH or set the PKG_CONFIG environment variable to the full
12831 path to pkg-config.
12833 Alternatively, you may set the environment variables GIO_CFLAGS
12834 and GIO_LIBS to avoid the need to call pkg-config.
12835 See the pkg-config man page for more details.
12837 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12838 See \`config.log' for more details" "$LINENO" 5; }
12840 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
12841 GIO_LIBS=$pkg_cv_GIO_LIBS
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12843 $as_echo "yes" >&6; }
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
12852 $as_echo_n "checking for GMODULE... " >&6; }
12854 if test -n "$GMODULE_CFLAGS"; then
12855 pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
12856 elif test -n "$PKG_CONFIG"; then
12857 if test -n "$PKG_CONFIG" && \
12858 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12859 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12862 test $ac_status = 0; }; then
12863 pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
12864 test "x$?" != "x0" && pkg_failed=yes
12871 if test -n "$GMODULE_LIBS"; then
12872 pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
12873 elif test -n "$PKG_CONFIG"; then
12874 if test -n "$PKG_CONFIG" && \
12875 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12876 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12879 test $ac_status = 0; }; then
12880 pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
12881 test "x$?" != "x0" && pkg_failed=yes
12891 if test $pkg_failed = yes; then
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12895 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12896 _pkg_short_errors_supported=yes
12898 _pkg_short_errors_supported=no
12900 if test $_pkg_short_errors_supported = yes; then
12901 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1`
12903 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1`
12905 # Put the nasty error message in config.log where it belongs
12906 echo "$GMODULE_PKG_ERRORS" >&5
12908 as_fn_error $? "Package requirements (gmodule-2.0) were not met:
12910 $GMODULE_PKG_ERRORS
12912 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12913 installed software in a non-standard prefix.
12915 Alternatively, you may set the environment variables GMODULE_CFLAGS
12916 and GMODULE_LIBS to avoid the need to call pkg-config.
12917 See the pkg-config man page for more details." "$LINENO" 5
12918 elif test $pkg_failed = untried; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12923 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12924 is in your PATH or set the PKG_CONFIG environment variable to the full
12925 path to pkg-config.
12927 Alternatively, you may set the environment variables GMODULE_CFLAGS
12928 and GMODULE_LIBS to avoid the need to call pkg-config.
12929 See the pkg-config man page for more details.
12931 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12932 See \`config.log' for more details" "$LINENO" 5; }
12934 GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
12935 GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12937 $as_echo "yes" >&6; }
12943 # Check for libtlm-nfc
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTLM_NFC" >&5
12947 $as_echo_n "checking for LIBTLM_NFC... " >&6; }
12949 if test -n "$LIBTLM_NFC_CFLAGS"; then
12950 pkg_cv_LIBTLM_NFC_CFLAGS="$LIBTLM_NFC_CFLAGS"
12951 elif test -n "$PKG_CONFIG"; then
12952 if test -n "$PKG_CONFIG" && \
12953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtlm-nfc\""; } >&5
12954 ($PKG_CONFIG --exists --print-errors "libtlm-nfc") 2>&5
12956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12957 test $ac_status = 0; }; then
12958 pkg_cv_LIBTLM_NFC_CFLAGS=`$PKG_CONFIG --cflags "libtlm-nfc" 2>/dev/null`
12959 test "x$?" != "x0" && pkg_failed=yes
12966 if test -n "$LIBTLM_NFC_LIBS"; then
12967 pkg_cv_LIBTLM_NFC_LIBS="$LIBTLM_NFC_LIBS"
12968 elif test -n "$PKG_CONFIG"; then
12969 if test -n "$PKG_CONFIG" && \
12970 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtlm-nfc\""; } >&5
12971 ($PKG_CONFIG --exists --print-errors "libtlm-nfc") 2>&5
12973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12974 test $ac_status = 0; }; then
12975 pkg_cv_LIBTLM_NFC_LIBS=`$PKG_CONFIG --libs "libtlm-nfc" 2>/dev/null`
12976 test "x$?" != "x0" && pkg_failed=yes
12986 if test $pkg_failed = yes; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 $as_echo "no" >&6; }
12990 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12991 _pkg_short_errors_supported=yes
12993 _pkg_short_errors_supported=no
12995 if test $_pkg_short_errors_supported = yes; then
12996 LIBTLM_NFC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtlm-nfc" 2>&1`
12998 LIBTLM_NFC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtlm-nfc" 2>&1`
13000 # Put the nasty error message in config.log where it belongs
13001 echo "$LIBTLM_NFC_PKG_ERRORS" >&5
13004 elif test $pkg_failed = untried; then
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13009 LIBTLM_NFC_CFLAGS=$pkg_cv_LIBTLM_NFC_CFLAGS
13010 LIBTLM_NFC_LIBS=$pkg_cv_LIBTLM_NFC_LIBS
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13012 $as_echo "yes" >&6; }
13013 have_libtlm_nfc=yes
13017 if test x$have_libtlm_nfc = xyes; then
13018 HAVE_LIBTLM_NFC_TRUE=
13019 HAVE_LIBTLM_NFC_FALSE='#'
13021 HAVE_LIBTLM_NFC_TRUE='#'
13022 HAVE_LIBTLM_NFC_FALSE=
13026 for ac_header in security/pam_appl.h
13028 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
13029 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
13030 cat >>confdefs.h <<_ACEOF
13031 #define HAVE_SECURITY_PAM_APPL_H 1
13035 as_fn_error $? "\"pam-devel is required\"" "$LINENO" 5
13041 TLM_CFLAGS="$GLIB_CFLAGS $GIO_CFLAGS $GMODULE_CFLAGS -D_POSIX_C_SOURCE=\"200809L\" -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -Wall -Werror"
13042 TLM_LIBS="$GLIB_LIBS $GIO_LIBS $GMODULE_LIBS"
13047 # Check whether --enable-debug was given.
13048 if test "${enable_debug+set}" = set; then :
13049 enableval=$enable_debug; enable_debug=$enable_debug
13054 if test "x$enable_debug" = "xyes" ; then
13056 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
13058 # Check whether --enable-tests was given.
13059 if test "${enable_tests+set}" = set; then :
13060 enableval=$enable_tests; enable_tests=$enable_tests
13065 if test "x$enable_tests" = "xyes" ; then
13067 $as_echo "#define ENABLE_TESTS 1" >>confdefs.h
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
13072 $as_echo_n "checking for CHECK... " >&6; }
13074 if test -n "$CHECK_CFLAGS"; then
13075 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
13076 elif test -n "$PKG_CONFIG"; then
13077 if test -n "$PKG_CONFIG" && \
13078 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
13079 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
13081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13082 test $ac_status = 0; }; then
13083 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
13084 test "x$?" != "x0" && pkg_failed=yes
13091 if test -n "$CHECK_LIBS"; then
13092 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
13093 elif test -n "$PKG_CONFIG"; then
13094 if test -n "$PKG_CONFIG" && \
13095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
13096 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
13098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13099 test $ac_status = 0; }; then
13100 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
13101 test "x$?" != "x0" && pkg_failed=yes
13111 if test $pkg_failed = yes; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13115 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13116 _pkg_short_errors_supported=yes
13118 _pkg_short_errors_supported=no
13120 if test $_pkg_short_errors_supported = yes; then
13121 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
13123 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
13125 # Put the nasty error message in config.log where it belongs
13126 echo "$CHECK_PKG_ERRORS" >&5
13128 as_fn_error $? "Package requirements (check >= 0.9.4) were not met:
13132 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13133 installed software in a non-standard prefix.
13135 Alternatively, you may set the environment variables CHECK_CFLAGS
13136 and CHECK_LIBS to avoid the need to call pkg-config.
13137 See the pkg-config man page for more details." "$LINENO" 5
13138 elif test $pkg_failed = untried; then
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13143 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13144 is in your PATH or set the PKG_CONFIG environment variable to the full
13145 path to pkg-config.
13147 Alternatively, you may set the environment variables CHECK_CFLAGS
13148 and CHECK_LIBS to avoid the need to call pkg-config.
13149 See the pkg-config man page for more details.
13151 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13152 See \`config.log' for more details" "$LINENO" 5; }
13154 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
13155 CHECK_LIBS=$pkg_cv_CHECK_LIBS
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13157 $as_echo "yes" >&6; }
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Tests can't be enabled without debug features\"" >&5
13163 $as_echo "$as_me: WARNING: \"Tests can't be enabled without debug features\"" >&2;}
13168 if test "x$enable_tests" = "xyes"; then
13170 ENABLE_TESTS_FALSE='#'
13172 ENABLE_TESTS_TRUE='#'
13173 ENABLE_TESTS_FALSE=
13178 # Check whether --enable-examples was given.
13179 if test "${enable_examples+set}" = set; then :
13180 enableval=$enable_examples; enable_examples=$enable_examples
13182 enable_examples="no"
13185 if test x$enable_examples = xyes; then
13186 ENABLE_EXAMPLES_TRUE=
13187 ENABLE_EXAMPLES_FALSE='#'
13189 ENABLE_EXAMPLES_TRUE='#'
13190 ENABLE_EXAMPLES_FALSE=
13194 if test "x$enable_examples" = "xyes" ; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELEMENTARY" >&5
13198 $as_echo_n "checking for ELEMENTARY... " >&6; }
13200 if test -n "$ELEMENTARY_CFLAGS"; then
13201 pkg_cv_ELEMENTARY_CFLAGS="$ELEMENTARY_CFLAGS"
13202 elif test -n "$PKG_CONFIG"; then
13203 if test -n "$PKG_CONFIG" && \
13204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"elementary\""; } >&5
13205 ($PKG_CONFIG --exists --print-errors "elementary") 2>&5
13207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13208 test $ac_status = 0; }; then
13209 pkg_cv_ELEMENTARY_CFLAGS=`$PKG_CONFIG --cflags "elementary" 2>/dev/null`
13210 test "x$?" != "x0" && pkg_failed=yes
13217 if test -n "$ELEMENTARY_LIBS"; then
13218 pkg_cv_ELEMENTARY_LIBS="$ELEMENTARY_LIBS"
13219 elif test -n "$PKG_CONFIG"; then
13220 if test -n "$PKG_CONFIG" && \
13221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"elementary\""; } >&5
13222 ($PKG_CONFIG --exists --print-errors "elementary") 2>&5
13224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13225 test $ac_status = 0; }; then
13226 pkg_cv_ELEMENTARY_LIBS=`$PKG_CONFIG --libs "elementary" 2>/dev/null`
13227 test "x$?" != "x0" && pkg_failed=yes
13237 if test $pkg_failed = yes; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239 $as_echo "no" >&6; }
13241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13242 _pkg_short_errors_supported=yes
13244 _pkg_short_errors_supported=no
13246 if test $_pkg_short_errors_supported = yes; then
13247 ELEMENTARY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "elementary" 2>&1`
13249 ELEMENTARY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "elementary" 2>&1`
13251 # Put the nasty error message in config.log where it belongs
13252 echo "$ELEMENTARY_PKG_ERRORS" >&5
13254 as_fn_error $? "Package requirements (elementary) were not met:
13256 $ELEMENTARY_PKG_ERRORS
13258 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13259 installed software in a non-standard prefix.
13261 Alternatively, you may set the environment variables ELEMENTARY_CFLAGS
13262 and ELEMENTARY_LIBS to avoid the need to call pkg-config.
13263 See the pkg-config man page for more details." "$LINENO" 5
13264 elif test $pkg_failed = untried; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13269 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13270 is in your PATH or set the PKG_CONFIG environment variable to the full
13271 path to pkg-config.
13273 Alternatively, you may set the environment variables ELEMENTARY_CFLAGS
13274 and ELEMENTARY_LIBS to avoid the need to call pkg-config.
13275 See the pkg-config man page for more details.
13277 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13278 See \`config.log' for more details" "$LINENO" 5; }
13280 ELEMENTARY_CFLAGS=$pkg_cv_ELEMENTARY_CFLAGS
13281 ELEMENTARY_LIBS=$pkg_cv_ELEMENTARY_LIBS
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13283 $as_echo "yes" >&6; }
13290 # Define socket path
13291 # Check whether --enable-sockets-path was given.
13292 if test "${enable_sockets_path+set}" = set; then :
13293 enableval=$enable_sockets_path; enable_sockets_path=$enableval
13295 enable_sockets_path="/var/run/tlm"
13299 cat >>confdefs.h <<_ACEOF
13300 #define TLM_DBUS_SOCKET_PATH "$enable_sockets_path"
13304 cat >>confdefs.h <<_ACEOF
13305 #define TLM_DBUS_ROOT_SOCKET_ADDRESS "unix:path=$enable_sockets_path/dbus-sock"
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUM" >&5
13313 $as_echo_n "checking for LIBGUM... " >&6; }
13315 if test -n "$LIBGUM_CFLAGS"; then
13316 pkg_cv_LIBGUM_CFLAGS="$LIBGUM_CFLAGS"
13317 elif test -n "$PKG_CONFIG"; then
13318 if test -n "$PKG_CONFIG" && \
13319 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgum\""; } >&5
13320 ($PKG_CONFIG --exists --print-errors "libgum") 2>&5
13322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13323 test $ac_status = 0; }; then
13324 pkg_cv_LIBGUM_CFLAGS=`$PKG_CONFIG --cflags "libgum" 2>/dev/null`
13325 test "x$?" != "x0" && pkg_failed=yes
13332 if test -n "$LIBGUM_LIBS"; then
13333 pkg_cv_LIBGUM_LIBS="$LIBGUM_LIBS"
13334 elif test -n "$PKG_CONFIG"; then
13335 if test -n "$PKG_CONFIG" && \
13336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgum\""; } >&5
13337 ($PKG_CONFIG --exists --print-errors "libgum") 2>&5
13339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13340 test $ac_status = 0; }; then
13341 pkg_cv_LIBGUM_LIBS=`$PKG_CONFIG --libs "libgum" 2>/dev/null`
13342 test "x$?" != "x0" && pkg_failed=yes
13352 if test $pkg_failed = yes; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13357 _pkg_short_errors_supported=yes
13359 _pkg_short_errors_supported=no
13361 if test $_pkg_short_errors_supported = yes; then
13362 LIBGUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgum" 2>&1`
13364 LIBGUM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgum" 2>&1`
13366 # Put the nasty error message in config.log where it belongs
13367 echo "$LIBGUM_PKG_ERRORS" >&5
13370 elif test $pkg_failed = untried; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 $as_echo "no" >&6; }
13375 LIBGUM_CFLAGS=$pkg_cv_LIBGUM_CFLAGS
13376 LIBGUM_LIBS=$pkg_cv_LIBGUM_LIBS
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13378 $as_echo "yes" >&6; }
13381 # Check whether --enable-gum was given.
13382 if test "${enable_gum+set}" = set; then :
13383 enableval=$enable_gum;
13385 enable_gum=$have_libgum
13388 if test "x$enable_gum" = "xyes" && test "x$have_libgum" = "xno" ; then
13389 as_fn_error $? "\"libgum is required.\"" "$LINENO" 5
13393 if test x$have_libgum = xyes; then
13395 HAVE_LIBGUM_FALSE='#'
13397 HAVE_LIBGUM_TRUE='#'
13402 if test "x$enable_gum" = "xyes" ; then
13403 ACCOUNT_PLUGIN_NAME=gumd
13406 ACCOUNT_PLUGIN_NAME=default
13410 ac_config_files="$ac_config_files Makefile docs/Makefile src/Makefile src/common/Makefile src/common/dbus/Makefile src/daemon/Makefile src/daemon/dbus/Makefile src/daemon/tlm.pc src/plugins/Makefile src/plugins/default/Makefile src/plugins/gumd/Makefile src/plugins/nfc/Makefile data/Makefile data/tlm.conf tests/Makefile tests/config/Makefile tests/daemon/Makefile tests/tlm-test.conf examples/Makefile"
13413 cat >confcache <<\_ACEOF
13414 # This file is a shell script that caches the results of configure
13415 # tests run on this system so they can be shared between configure
13416 # scripts and configure runs, see configure's option --config-cache.
13417 # It is not useful on other systems. If it contains results you don't
13418 # want to keep, you may remove or edit it.
13420 # config.status only pays attention to the cache file if you give it
13421 # the --recheck option to rerun configure.
13423 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13424 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13425 # following values.
13429 # The following way of writing the cache mishandles newlines in values,
13430 # but we know of no workaround that is simple, portable, and efficient.
13431 # So, we kill variables containing newlines.
13432 # Ultrix sh set writes to stderr and can't be redirected directly,
13433 # and sets the high bit in the cache file unless we assign to the vars.
13435 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13436 eval ac_val=\$$ac_var
13440 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13441 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13444 _ | IFS | as_nl) ;; #(
13445 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13446 *) { eval $ac_var=; unset $ac_var;} ;;
13452 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13453 *${as_nl}ac_space=\ *)
13454 # `set' does not quote correctly, so add quotes: double-quote
13455 # substitution turns \\\\ into \\, and sed turns \\ into \.
13458 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13461 # `set' quotes correctly as required by POSIX, so do not add quotes.
13462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13471 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13473 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13475 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13476 if test -w "$cache_file"; then
13477 if test "x$cache_file" != "x/dev/null"; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13479 $as_echo "$as_me: updating cache $cache_file" >&6;}
13480 if test ! -f "$cache_file" || test -h "$cache_file"; then
13481 cat confcache >"$cache_file"
13483 case $cache_file in #(
13485 mv -f confcache "$cache_file"$$ &&
13486 mv -f "$cache_file"$$ "$cache_file" ;; #(
13488 mv -f confcache "$cache_file" ;;
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13494 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13499 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13500 # Let make expand exec_prefix.
13501 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13503 DEFS=-DHAVE_CONFIG_H
13508 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13509 # 1. Remove the extension, and $U if already installed.
13510 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13511 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13512 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13513 # will be set to the directory where LIBOBJS objects are built.
13514 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13515 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13517 LIBOBJS=$ac_libobjs
13519 LTLIBOBJS=$ac_ltlibobjs
13522 if test -n "$EXEEXT"; then
13524 am__EXEEXT_FALSE='#'
13526 am__EXEEXT_TRUE='#'
13530 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13531 as_fn_error $? "conditional \"AMDEP\" was never defined.
13532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13534 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13535 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13538 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13539 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13542 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13543 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13546 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13547 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13550 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13551 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13554 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13555 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13558 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13559 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13562 if test -z "${HAVE_LIBTLM_NFC_TRUE}" && test -z "${HAVE_LIBTLM_NFC_FALSE}"; then
13563 as_fn_error $? "conditional \"HAVE_LIBTLM_NFC\" was never defined.
13564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13566 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
13567 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
13568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13570 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
13571 as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
13572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13574 if test -z "${HAVE_LIBGUM_TRUE}" && test -z "${HAVE_LIBGUM_FALSE}"; then
13575 as_fn_error $? "conditional \"HAVE_LIBGUM\" was never defined.
13576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13579 : "${CONFIG_STATUS=./config.status}"
13581 ac_clean_files_save=$ac_clean_files
13582 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13584 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13586 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13588 # Generated by $as_me.
13589 # Run this file to recreate the current configuration.
13590 # Compiler output produced by configure, useful for debugging
13591 # configure, is in config.log if it exists.
13594 ac_cs_recheck=false
13597 SHELL=\${CONFIG_SHELL-$SHELL}
13600 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13601 ## -------------------- ##
13602 ## M4sh Initialization. ##
13603 ## -------------------- ##
13605 # Be more Bourne compatible
13606 DUALCASE=1; export DUALCASE # for MKS sh
13607 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13610 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13611 # is contrary to our usage. Disable this feature.
13612 alias -g '${1+"$@"}'='"$@"'
13613 setopt NO_GLOB_SUBST
13615 case `(set -o) 2>/dev/null` in #(
13627 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13628 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13629 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13630 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13631 # Prefer a ksh shell builtin over an external printf program on Solaris,
13632 # but without wasting forks for bash or zsh.
13633 if test -z "$BASH_VERSION$ZSH_VERSION" \
13634 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13635 as_echo='print -r --'
13636 as_echo_n='print -rn --'
13637 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13638 as_echo='printf %s\n'
13639 as_echo_n='printf %s'
13641 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13642 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13643 as_echo_n='/usr/ucb/echo -n'
13645 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13646 as_echo_n_body='eval
13650 expr "X$arg" : "X\\(.*\\)$as_nl";
13651 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13653 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13655 export as_echo_n_body
13656 as_echo_n='sh -c $as_echo_n_body as_echo'
13658 export as_echo_body
13659 as_echo='sh -c $as_echo_body as_echo'
13662 # The user is always right.
13663 if test "${PATH_SEPARATOR+set}" != set; then
13665 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13666 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13673 # We need space, tab and new line, in precisely that order. Quoting is
13674 # there to prevent editors from complaining about space-tab.
13675 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13676 # splitting by setting IFS to empty value.)
13679 # Find who we are. Look in the path if we contain no directory separator.
13682 *[\\/]* ) as_myself=$0 ;;
13683 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684 for as_dir in $PATH
13687 test -z "$as_dir" && as_dir=.
13688 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13694 # We did not find ourselves, most probably we were run as `sh COMMAND'
13695 # in which case we are not to be found in the path.
13696 if test "x$as_myself" = x; then
13699 if test ! -f "$as_myself"; then
13700 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13704 # Unset variables that we do not need and which cause bugs (e.g. in
13705 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13706 # suppresses any "Segmentation fault" message there. '((' could
13707 # trigger a bug in pdksh 5.2.14.
13708 for as_var in BASH_ENV ENV MAIL MAILPATH
13709 do eval test x\${$as_var+set} = xset \
13710 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13723 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13726 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13727 # ----------------------------------------
13728 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13729 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13730 # script with STATUS, using 1 if that was 0.
13733 as_status=$1; test $as_status -eq 0 && as_status=1
13735 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13736 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13738 $as_echo "$as_me: error: $2" >&2
13739 as_fn_exit $as_status
13743 # as_fn_set_status STATUS
13744 # -----------------------
13745 # Set $? to STATUS, without forking.
13746 as_fn_set_status ()
13749 } # as_fn_set_status
13751 # as_fn_exit STATUS
13752 # -----------------
13753 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13757 as_fn_set_status $1
13763 # Portably unset VAR.
13766 { eval $1=; unset $1;}
13768 as_unset=as_fn_unset
13769 # as_fn_append VAR VALUE
13770 # ----------------------
13771 # Append the text in VALUE to the end of the definition contained in VAR. Take
13772 # advantage of any shell optimizations that allow amortized linear growth over
13773 # repeated appends, instead of the typical quadratic growth present in naive
13775 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13776 eval 'as_fn_append ()
13787 # as_fn_arith ARG...
13788 # ------------------
13789 # Perform arithmetic evaluation on the ARGs, and store the result in the
13790 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13791 # must be portable across $(()) and expr.
13792 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13793 eval 'as_fn_arith ()
13800 as_val=`expr "$@" || test $? -eq 1`
13805 if expr a : '\(a\)' >/dev/null 2>&1 &&
13806 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13812 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13813 as_basename=basename
13818 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13824 as_me=`$as_basename -- "$0" ||
13825 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13826 X"$0" : 'X\(//\)$' \| \
13827 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13829 sed '/^.*\/\([^/][^/]*\)\/*$/{
13843 # Avoid depending upon Character Ranges.
13844 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13845 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13846 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13847 as_cr_digits='0123456789'
13848 as_cr_alnum=$as_cr_Letters$as_cr_digits
13850 ECHO_C= ECHO_N= ECHO_T=
13851 case `echo -n x` in #(((((
13853 case `echo 'xy\c'` in
13854 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13856 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13863 rm -f conf$$ conf$$.exe conf$$.file
13864 if test -d conf$$.dir; then
13865 rm -f conf$$.dir/conf$$.file
13868 mkdir conf$$.dir 2>/dev/null
13870 if (echo >conf$$.file) 2>/dev/null; then
13871 if ln -s conf$$.file conf$$ 2>/dev/null; then
13873 # ... but there are two gotchas:
13874 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13875 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13876 # In both cases, we have to default to `cp -p'.
13877 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13879 elif ln conf$$.file conf$$ 2>/dev/null; then
13887 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13888 rmdir conf$$.dir 2>/dev/null
13893 # Create "$as_dir" as a directory, including parents if necessary.
13898 -*) as_dir=./$as_dir;;
13900 test -d "$as_dir" || eval $as_mkdir_p || {
13904 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13905 *) as_qdir=$as_dir;;
13907 as_dirs="'$as_qdir' $as_dirs"
13908 as_dir=`$as_dirname -- "$as_dir" ||
13909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13910 X"$as_dir" : 'X\(//\)[^/]' \| \
13911 X"$as_dir" : 'X\(//\)$' \| \
13912 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13913 $as_echo X"$as_dir" |
13914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13918 /^X\(\/\/\)[^/].*/{
13931 test -d "$as_dir" && break
13933 test -z "$as_dirs" || eval "mkdir $as_dirs"
13934 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13938 if mkdir -p . 2>/dev/null; then
13939 as_mkdir_p='mkdir -p "$as_dir"'
13941 test -d ./-p && rmdir ./-p
13945 if test -x / >/dev/null 2>&1; then
13946 as_test_x='test -x'
13948 if ls -dL / >/dev/null 2>&1; then
13955 if test -d "$1"; then
13961 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13962 ???[sx]*):;;*)false;;esac;fi
13966 as_executable_p=$as_test_x
13968 # Sed expression to map a string onto a valid CPP name.
13969 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13971 # Sed expression to map a string onto a valid variable name.
13972 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13976 ## ----------------------------------- ##
13977 ## Main body of $CONFIG_STATUS script. ##
13978 ## ----------------------------------- ##
13980 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13983 # Save the log message, to keep $0 and so on meaningful, and to
13984 # report actual input values of CONFIG_FILES etc. instead of their
13985 # values after options handling.
13987 This file was extended by tlm $as_me 0.0.1, which was
13988 generated by GNU Autoconf 2.68. Invocation command line was
13990 CONFIG_FILES = $CONFIG_FILES
13991 CONFIG_HEADERS = $CONFIG_HEADERS
13992 CONFIG_LINKS = $CONFIG_LINKS
13993 CONFIG_COMMANDS = $CONFIG_COMMANDS
13996 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14001 case $ac_config_files in *"
14002 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14005 case $ac_config_headers in *"
14006 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14011 # Files that config.status was made for.
14012 config_files="$ac_config_files"
14013 config_headers="$ac_config_headers"
14014 config_commands="$ac_config_commands"
14018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14020 \`$as_me' instantiates files and other configuration actions
14021 from templates according to the current configuration. Unless the files
14022 and actions are specified as TAGs, all are instantiated by default.
14024 Usage: $0 [OPTION]... [TAG]...
14026 -h, --help print this help, then exit
14027 -V, --version print version number and configuration settings, then exit
14028 --config print configuration, then exit
14029 -q, --quiet, --silent
14030 do not print progress messages
14031 -d, --debug don't remove temporary files
14032 --recheck update $as_me by reconfiguring in the same conditions
14033 --file=FILE[:TEMPLATE]
14034 instantiate the configuration file FILE
14035 --header=FILE[:TEMPLATE]
14036 instantiate the configuration header FILE
14038 Configuration files:
14041 Configuration headers:
14044 Configuration commands:
14047 Report bugs to the package provider."
14050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14051 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14053 tlm config.status 0.0.1
14054 configured by $0, generated by GNU Autoconf 2.68,
14055 with options \\"\$ac_cs_config\\"
14057 Copyright (C) 2010 Free Software Foundation, Inc.
14058 This config.status script is free software; the Free Software Foundation
14059 gives unlimited permission to copy, distribute and modify it."
14066 test -n "\$AWK" || AWK=awk
14069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14070 # The default lists apply if the user does not specify any file.
14076 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14077 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14093 # Handling of the options.
14094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14096 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14097 $as_echo "$ac_cs_version"; exit ;;
14098 --config | --confi | --conf | --con | --co | --c )
14099 $as_echo "$ac_cs_config"; exit ;;
14100 --debug | --debu | --deb | --de | --d | -d )
14102 --file | --fil | --fi | --f )
14105 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14106 '') as_fn_error $? "missing file argument" ;;
14108 as_fn_append CONFIG_FILES " '$ac_optarg'"
14109 ac_need_defaults=false;;
14110 --header | --heade | --head | --hea )
14113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14115 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14116 ac_need_defaults=false;;
14118 # Conflict between --help and --header
14119 as_fn_error $? "ambiguous option: \`$1'
14120 Try \`$0 --help' for more information.";;
14121 --help | --hel | -h )
14122 $as_echo "$ac_cs_usage"; exit ;;
14123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14124 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14127 # This is an error.
14128 -*) as_fn_error $? "unrecognized option: \`$1'
14129 Try \`$0 --help' for more information." ;;
14131 *) as_fn_append ac_config_targets " $1"
14132 ac_need_defaults=false ;;
14138 ac_configure_extra_args=
14140 if $ac_cs_silent; then
14142 ac_configure_extra_args="$ac_configure_extra_args --silent"
14146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14147 if \$ac_cs_recheck; then
14148 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14150 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14151 CONFIG_SHELL='$SHELL'
14152 export CONFIG_SHELL
14157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14161 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14162 ## Running $as_me. ##
14168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14172 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14175 # The HP-UX ksh and POSIX shell print the target directory to stdout
14176 # if CDPATH is set.
14177 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14179 sed_quote_subst='$sed_quote_subst'
14180 double_quote_subst='$double_quote_subst'
14181 delay_variable_subst='$delay_variable_subst'
14182 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14183 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14184 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14185 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14186 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14187 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14188 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14189 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14190 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14191 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14192 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14193 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14194 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14195 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14196 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14197 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14198 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14199 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14200 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14201 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14202 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14203 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14204 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14205 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14206 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14207 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14208 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14209 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14210 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14211 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14212 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14213 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14214 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14215 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14216 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14217 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14218 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14219 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14220 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14221 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14222 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14223 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14224 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14225 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14226 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14227 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14228 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14229 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14230 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14231 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14232 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14233 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14234 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14235 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14236 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14237 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14238 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"`'
14239 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14240 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14241 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14242 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14243 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14244 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14245 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14246 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14247 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14248 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14249 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14250 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14251 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14252 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14253 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14254 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14255 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14256 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14257 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14258 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14259 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14260 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14261 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14262 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14263 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14264 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14265 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14266 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14267 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14268 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14269 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14270 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14271 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14272 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14273 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14274 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14275 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14276 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14277 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14278 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14279 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14280 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14281 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14282 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14283 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14284 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14285 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14286 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14287 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14288 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14289 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14290 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14291 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14292 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14293 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14294 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14295 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14296 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14297 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14298 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14299 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14300 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14301 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14302 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14303 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14304 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14305 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14306 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14307 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14308 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14309 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14310 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14311 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14314 LTCFLAGS='$LTCFLAGS'
14315 compiler='$compiler_DEFAULT'
14317 # A function that is used when there is no print builtin or printf.
14318 func_fallback_echo ()
14320 eval 'cat <<_LTECHO_EOF
14325 # Quote evaled strings.
14340 deplibs_check_method \
14345 sharedlib_from_linklib_cmd \
14348 archiver_list_spec \
14354 lt_cv_sys_global_symbol_pipe \
14355 lt_cv_sys_global_symbol_to_cdecl \
14356 lt_cv_sys_global_symbol_to_c_name_address \
14357 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14358 nm_file_list_spec \
14359 lt_prog_compiler_no_builtin_flag \
14360 lt_prog_compiler_pic \
14361 lt_prog_compiler_wl \
14362 lt_prog_compiler_static \
14363 lt_cv_prog_compiler_c_o \
14372 export_dynamic_flag_spec \
14373 whole_archive_flag_spec \
14374 compiler_needs_object \
14376 allow_undefined_flag \
14377 no_undefined_flag \
14378 hardcode_libdir_flag_spec \
14379 hardcode_libdir_separator \
14383 variables_saved_for_relink \
14385 library_names_spec \
14387 install_override_mode \
14391 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14392 *[\\\\\\\`\\"\\\$]*)
14393 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14396 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14401 # Double-quote double-evaled strings.
14402 for var in reload_cmds \
14403 old_postinstall_cmds \
14404 old_postuninstall_cmds \
14406 extract_expsyms_cmds \
14407 old_archive_from_new_cmds \
14408 old_archive_from_expsyms_cmds \
14410 archive_expsym_cmds \
14412 module_expsym_cmds \
14413 export_symbols_cmds \
14417 postuninstall_cmds \
14419 sys_lib_search_path_spec \
14420 sys_lib_dlsearch_path_spec; do
14421 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14422 *[\\\\\\\`\\"\\\$]*)
14423 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14426 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14431 ac_aux_dir='$ac_aux_dir'
14432 xsi_shell='$xsi_shell'
14433 lt_shell_append='$lt_shell_append'
14435 # See if we are running on zsh, and set the options which allow our
14436 # commands through without removal of \ escapes INIT.
14437 if test -n "\${ZSH_VERSION+set}" ; then
14438 setopt NO_GLOB_SUBST
14444 TIMESTAMP='$TIMESTAMP'
14453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14455 # Handling of arguments.
14456 for ac_config_target in $ac_config_targets
14458 case $ac_config_target in
14459 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14460 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14461 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14462 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14463 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
14464 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14465 "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
14466 "src/common/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/dbus/Makefile" ;;
14467 "src/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/Makefile" ;;
14468 "src/daemon/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/dbus/Makefile" ;;
14469 "src/daemon/tlm.pc") CONFIG_FILES="$CONFIG_FILES src/daemon/tlm.pc" ;;
14470 "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
14471 "src/plugins/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/default/Makefile" ;;
14472 "src/plugins/gumd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/gumd/Makefile" ;;
14473 "src/plugins/nfc/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/nfc/Makefile" ;;
14474 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
14475 "data/tlm.conf") CONFIG_FILES="$CONFIG_FILES data/tlm.conf" ;;
14476 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14477 "tests/config/Makefile") CONFIG_FILES="$CONFIG_FILES tests/config/Makefile" ;;
14478 "tests/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES tests/daemon/Makefile" ;;
14479 "tests/tlm-test.conf") CONFIG_FILES="$CONFIG_FILES tests/tlm-test.conf" ;;
14480 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14482 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14487 # If the user did not use the arguments to specify the items to instantiate,
14488 # then the envvar interface is used. Set only those that are not.
14489 # We use the long form for the default assignment because of an extremely
14490 # bizarre bug on SunOS 4.1.3.
14491 if $ac_need_defaults; then
14492 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14493 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14494 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14497 # Have a temporary directory for convenience. Make it in the build tree
14498 # simply because there is no reason against having it here, and in addition,
14499 # creating and moving files from /tmp can sometimes cause problems.
14500 # Hook for its removal unless debugging.
14501 # Note that there is a small window in which the directory will not be cleaned:
14502 # after its creation but before its name has been assigned to `$tmp'.
14506 trap 'exit_status=$?
14507 : "${ac_tmp:=$tmp}"
14508 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14510 trap 'as_fn_exit 1' 1 2 13 15
14512 # Create a (secure) tmp directory for tmp files.
14515 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14519 tmp=./conf$$-$RANDOM
14520 (umask 077 && mkdir "$tmp")
14521 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14524 # Set up the scripts for CONFIG_FILES section.
14525 # No need to generate them if there are no CONFIG_FILES.
14526 # This happens for instance with `./config.status config.h'.
14527 if test -n "$CONFIG_FILES"; then
14530 ac_cr=`echo X | tr X '\015'`
14531 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14532 # But we know of no other shell where ac_cr would be empty at this
14533 # point, so we can use a bashism as a fallback.
14534 if test "x$ac_cr" = x; then
14535 eval ac_cr=\$\'\\r\'
14537 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14538 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14541 ac_cs_awk_cr=$ac_cr
14544 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14549 echo "cat >conf$$subs.awk <<_ACEOF" &&
14550 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14552 } >conf$$subs.sh ||
14553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14554 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14556 for ac_last_try in false false false false false :; do
14557 . ./conf$$subs.sh ||
14558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14560 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14561 if test $ac_delim_n = $ac_delim_num; then
14563 elif $ac_last_try; then
14564 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14569 rm -f conf$$subs.sh
14571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14572 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14576 s/^/S["/; s/!.*/"]=/
14586 s/\(.\{148\}\)..*/\1/
14588 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14593 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14600 s/\(.\{148\}\)..*/\1/
14602 s/["\\]/\\&/g; s/^/"/; s/$/"/
14606 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14611 ' <conf$$subs.awk | sed '
14616 ' >>$CONFIG_STATUS || ac_write_fail=1
14617 rm -f conf$$subs.awk
14618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14620 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14621 for (key in S) S_is_set[key] = 1
14627 nfields = split(line, field, "@")
14629 len = length(field[1])
14630 for (i = 2; i < nfields; i++) {
14632 keylen = length(key)
14633 if (S_is_set[key]) {
14635 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14636 len += length(value) + length(field[++i])
14647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14648 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14649 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14652 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14653 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14656 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14657 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14658 # trailing colons and then remove the whole line if VPATH becomes empty
14659 # (actually we leave an empty line to preserve line numbers).
14660 if test "x$srcdir" = x.; then
14661 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14680 fi # test -n "$CONFIG_FILES"
14682 # Set up the scripts for CONFIG_HEADERS section.
14683 # No need to generate them if there are no CONFIG_HEADERS.
14684 # This happens for instance with `./config.status Makefile'.
14685 if test -n "$CONFIG_HEADERS"; then
14686 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14690 # Transform confdefs.h into an awk script `defines.awk', embedded as
14691 # here-document in config.status, that substitutes the proper values into
14692 # config.h.in to produce config.h.
14694 # Create a delimiter string that does not exist in confdefs.h, to ease
14695 # handling of long lines.
14697 for ac_last_try in false false :; do
14698 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14699 if test -z "$ac_tt"; then
14701 elif $ac_last_try; then
14702 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14704 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14708 # For the awk script, D is an array of macro values keyed by name,
14709 # likewise P contains macro parameters if any. Preserve backslash
14710 # newline sequences.
14712 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14714 s/.\{148\}/&'"$ac_delim"'/g
14717 s/^[ ]*#[ ]*define[ ][ ]*/ /
14724 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14726 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14730 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14731 D["\1"]=" \3\\\\\\n"\\/p
14733 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14738 s/.\{148\}/&'"$ac_delim"'/g
14743 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14746 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14748 ' <confdefs.h | sed '
14749 s/'"$ac_delim"'/"\\\
14750 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14753 for (key in D) D_is_set[key] = 1
14756 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14758 split(line, arg, " ")
14759 if (arg[1] == "#") {
14763 defundef = substr(arg[1], 2)
14766 split(mac1, mac2, "(") #)
14768 prefix = substr(line, 1, index(line, defundef) - 1)
14769 if (D_is_set[macro]) {
14770 # Preserve the white space surrounding the "#".
14771 print prefix "define", macro P[macro] D[macro]
14774 # Replace #undef with comments. This is necessary, for example,
14775 # in the case of _POSIX_SOURCE, which is predefined and required
14776 # on some systems where configure will not decide to define it.
14777 if (defundef == "undef") {
14778 print "/*", prefix defundef, macro, "*/"
14786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14787 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14788 fi # test -n "$CONFIG_HEADERS"
14791 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14796 :[FHLC]) ac_mode=$ac_tag; continue;;
14798 case $ac_mode$ac_tag in
14800 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14801 :[FH]-) ac_tag=-:-;;
14802 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14819 -) ac_f="$ac_tmp/stdin";;
14820 *) # Look for the file first in the build tree, then in the source tree
14821 # (if the path is not absolute). The absolute path cannot be DOS-style,
14822 # because $ac_f cannot contain `:'.
14826 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14828 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14830 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14831 as_fn_append ac_file_inputs " '$ac_f'"
14834 # Let's still pretend it is `configure' which instantiates (i.e., don't
14835 # use $as_me), people would be surprised to read:
14836 # /* config.h. Generated by config.status. */
14837 configure_input='Generated from '`
14838 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14840 if test x"$ac_file" != x-; then
14841 configure_input="$ac_file. $configure_input"
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14843 $as_echo "$as_me: creating $ac_file" >&6;}
14845 # Neutralize special characters interpreted by sed in replacement strings.
14846 case $configure_input in #(
14847 *\&* | *\|* | *\\* )
14848 ac_sed_conf_input=`$as_echo "$configure_input" |
14849 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14850 *) ac_sed_conf_input=$configure_input;;
14854 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14860 ac_dir=`$as_dirname -- "$ac_file" ||
14861 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14862 X"$ac_file" : 'X\(//\)[^/]' \| \
14863 X"$ac_file" : 'X\(//\)$' \| \
14864 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14865 $as_echo X"$ac_file" |
14866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14870 /^X\(\/\/\)[^/].*/{
14883 as_dir="$ac_dir"; as_fn_mkdir_p
14887 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14889 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14890 # A ".." for each directory in $ac_dir_suffix.
14891 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14892 case $ac_top_builddir_sub in
14893 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14894 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14897 ac_abs_top_builddir=$ac_pwd
14898 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14899 # for backward compatibility:
14900 ac_top_builddir=$ac_top_build_prefix
14903 .) # We are building in place.
14905 ac_top_srcdir=$ac_top_builddir_sub
14906 ac_abs_top_srcdir=$ac_pwd ;;
14907 [\\/]* | ?:[\\/]* ) # Absolute name.
14908 ac_srcdir=$srcdir$ac_dir_suffix;
14909 ac_top_srcdir=$srcdir
14910 ac_abs_top_srcdir=$srcdir ;;
14911 *) # Relative name.
14912 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14913 ac_top_srcdir=$ac_top_build_prefix$srcdir
14914 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14916 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14926 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14927 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14929 ac_MKDIR_P=$MKDIR_P
14931 [\\/$]* | ?:[\\/]* ) ;;
14932 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14937 # If the template does not know about datarootdir, expand it.
14938 # FIXME: This hack should be removed a few years after 2.60.
14939 ac_datarootdir_hack=; ac_datarootdir_seen=
14950 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14951 *datarootdir*) ac_datarootdir_seen=yes;;
14952 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14954 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14957 ac_datarootdir_hack='
14958 s&@datadir@&$datadir&g
14959 s&@docdir@&$docdir&g
14960 s&@infodir@&$infodir&g
14961 s&@localedir@&$localedir&g
14962 s&@mandir@&$mandir&g
14963 s&\\\${datarootdir}&$datarootdir&g' ;;
14967 # Neutralize VPATH when `$srcdir' = `.'.
14968 # Shell code in configure.ac might set extrasub.
14969 # FIXME: do we really want to maintain this feature?
14970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14971 ac_sed_extra="$ac_vpsub
14974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14977 s|@configure_input@|$ac_sed_conf_input|;t t
14978 s&@top_builddir@&$ac_top_builddir_sub&;t t
14979 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14980 s&@srcdir@&$ac_srcdir&;t t
14981 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14982 s&@top_srcdir@&$ac_top_srcdir&;t t
14983 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14984 s&@builddir@&$ac_builddir&;t t
14985 s&@abs_builddir@&$ac_abs_builddir&;t t
14986 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14987 s&@INSTALL@&$ac_INSTALL&;t t
14988 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14989 $ac_datarootdir_hack
14991 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14992 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14994 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14995 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14996 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14997 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14999 which seems to be undefined. Please make sure it is defined" >&5
15000 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15001 which seems to be undefined. Please make sure it is defined" >&2;}
15003 rm -f "$ac_tmp/stdin"
15005 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15006 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15014 if test x"$ac_file" != x-; then
15016 $as_echo "/* $configure_input */" \
15017 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15018 } >"$ac_tmp/config.h" \
15019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15020 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15022 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15025 mv "$ac_tmp/config.h" "$ac_file" \
15026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15029 $as_echo "/* $configure_input */" \
15030 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15031 || as_fn_error $? "could not create -" "$LINENO" 5
15033 # Compute "$ac_file"'s index in $config_headers.
15036 for _am_header in $config_headers :; do
15037 case $_am_header in
15038 $_am_arg | $_am_arg:* )
15041 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15044 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15045 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15046 X"$_am_arg" : 'X\(//\)[^/]' \| \
15047 X"$_am_arg" : 'X\(//\)$' \| \
15048 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15049 $as_echo X"$_am_arg" |
15050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15054 /^X\(\/\/\)[^/].*/{
15066 s/.*/./; q'`/stamp-h$_am_stamp_count
15069 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15070 $as_echo "$as_me: executing $ac_file commands" >&6;}
15075 case $ac_file$ac_mode in
15076 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15077 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15078 # are listed without --file. Let's play safe and only enable the eval
15079 # if we detect the quoting.
15080 case $CONFIG_FILES in
15081 *\'*) eval set x "$CONFIG_FILES" ;;
15082 *) set x $CONFIG_FILES ;;
15087 # Strip MF so we end up with the name of the file.
15088 mf=`echo "$mf" | sed -e 's/:.*$//'`
15089 # Check whether this is an Automake generated Makefile or not.
15090 # We used to match only the files named `Makefile.in', but
15091 # some people rename them; so instead we look at the file content.
15092 # Grep'ing the first line is not enough: some people post-process
15093 # each Makefile.in and add a new line on top of each file to say so.
15094 # Grep'ing the whole file is not good either: AIX grep has a line
15095 # limit of 2048, but all sed's we know have understand at least 4000.
15096 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15097 dirpart=`$as_dirname -- "$mf" ||
15098 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15099 X"$mf" : 'X\(//\)[^/]' \| \
15100 X"$mf" : 'X\(//\)$' \| \
15101 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15107 /^X\(\/\/\)[^/].*/{
15123 # Extract the definition of DEPDIR, am__include, and am__quote
15124 # from the Makefile without running `make'.
15125 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15126 test -z "$DEPDIR" && continue
15127 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15128 test -z "am__include" && continue
15129 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15130 # When using ansi2knr, U may be empty or an underscore; expand it
15131 U=`sed -n 's/^U = //p' < "$mf"`
15132 # Find all dependency output files, they are included files with
15133 # $(DEPDIR) in their names. We invoke sed twice because it is the
15134 # simplest approach to changing $(DEPDIR) to its actual value in the
15136 for file in `sed -n "
15137 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15138 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15139 # Make sure the directory exists.
15140 test -f "$dirpart/$file" && continue
15141 fdir=`$as_dirname -- "$file" ||
15142 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15143 X"$file" : 'X\(//\)[^/]' \| \
15144 X"$file" : 'X\(//\)$' \| \
15145 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15146 $as_echo X"$file" |
15147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15151 /^X\(\/\/\)[^/].*/{
15164 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15165 # echo "creating $dirpart/$file"
15166 echo '# dummy' > "$dirpart/$file"
15173 # See if we are running on zsh, and set the options which allow our
15174 # commands through without removal of \ escapes.
15175 if test -n "${ZSH_VERSION+set}" ; then
15176 setopt NO_GLOB_SUBST
15179 cfgfile="${ofile}T"
15180 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15183 cat <<_LT_EOF >> "$cfgfile"
15186 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15187 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15188 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15189 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15191 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15192 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15194 # Written by Gordon Matzigkeit, 1996
15196 # This file is part of GNU Libtool.
15198 # GNU Libtool is free software; you can redistribute it and/or
15199 # modify it under the terms of the GNU General Public License as
15200 # published by the Free Software Foundation; either version 2 of
15201 # the License, or (at your option) any later version.
15203 # As a special exception to the GNU General Public License,
15204 # if you distribute this file as part of a program or library that
15205 # is built using GNU Libtool, you may include this file under the
15206 # same distribution terms that you use for the rest of that program.
15208 # GNU Libtool is distributed in the hope that it will be useful,
15209 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15210 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15211 # GNU General Public License for more details.
15213 # You should have received a copy of the GNU General Public License
15214 # along with GNU Libtool; see the file COPYING. If not, a copy
15215 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15216 # obtained by writing to the Free Software Foundation, Inc.,
15217 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15220 # The names of the tagged configurations supported by this script.
15223 # ### BEGIN LIBTOOL CONFIG
15225 # Which release of libtool.m4 was used?
15226 macro_version=$macro_version
15227 macro_revision=$macro_revision
15229 # Whether or not to build static libraries.
15230 build_old_libs=$enable_static
15232 # Whether or not to build shared libraries.
15233 build_libtool_libs=$enable_shared
15235 # What type of objects to build.
15238 # Whether or not to optimize for fast installation.
15239 fast_install=$enable_fast_install
15241 # Shell to use when invoking shell scripts.
15244 # An echo program that protects backslashes.
15247 # The PATH separator for the build system.
15248 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15251 host_alias=$host_alias
15255 # The build system.
15256 build_alias=$build_alias
15260 # A sed program that does not truncate output.
15263 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15264 Xsed="\$SED -e 1s/^X//"
15266 # A grep program that handles long lines.
15272 # A literal string matcher.
15275 # A BSD- or MS-compatible name lister.
15278 # Whether we need soft or hard links.
15281 # What is the maximum length of a command?
15282 max_cmd_len=$max_cmd_len
15284 # Object file suffix (normally "o").
15287 # Executable file suffix (normally "").
15290 # whether the shell understands "unset".
15293 # turn spaces into newlines.
15296 # turn newlines into spaces.
15299 # convert \$build file names to \$host format.
15300 to_host_file_cmd=$lt_cv_to_host_file_cmd
15302 # convert \$build files to toolchain format.
15303 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15305 # An object symbol dumper.
15306 OBJDUMP=$lt_OBJDUMP
15308 # Method to check whether dependent libraries are shared objects.
15309 deplibs_check_method=$lt_deplibs_check_method
15311 # Command to use when deplibs_check_method = "file_magic".
15312 file_magic_cmd=$lt_file_magic_cmd
15314 # How to find potential files when deplibs_check_method = "file_magic".
15315 file_magic_glob=$lt_file_magic_glob
15317 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15318 want_nocaseglob=$lt_want_nocaseglob
15320 # DLL creation program.
15321 DLLTOOL=$lt_DLLTOOL
15323 # Command to associate shared and link libraries.
15324 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15329 # Flags to create an archive.
15330 AR_FLAGS=$lt_AR_FLAGS
15332 # How to feed a file listing to the archiver.
15333 archiver_list_spec=$lt_archiver_list_spec
15335 # A symbol stripping program.
15338 # Commands used to install an old-style archive.
15340 old_postinstall_cmds=$lt_old_postinstall_cmds
15341 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15343 # Whether to use a lock for old archive extraction.
15344 lock_old_archive_extraction=$lock_old_archive_extraction
15349 # LTCC compiler flags.
15350 LTCFLAGS=$lt_CFLAGS
15352 # Take the output of nm and produce a listing of raw symbols and C names.
15353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15355 # Transform the output of nm in a proper C declaration.
15356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15358 # Transform the output of nm in a C name address pair.
15359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15361 # Transform the output of nm in a C name address pair when lib prefix is needed.
15362 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15364 # Specify filename containing input files for \$NM.
15365 nm_file_list_spec=$lt_nm_file_list_spec
15367 # The root where to search for dependent libraries,and in which our libraries should be installed.
15368 lt_sysroot=$lt_sysroot
15370 # The name of the directory that contains temporary libtool files.
15373 # Used to examine libraries when file_magic_cmd begins with "file".
15374 MAGIC_CMD=$MAGIC_CMD
15376 # Must we lock files when doing compilation?
15377 need_locks=$lt_need_locks
15380 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15382 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15383 DSYMUTIL=$lt_DSYMUTIL
15385 # Tool to change global to local symbols on Mac OS X.
15388 # Tool to manipulate fat objects and archives on Mac OS X.
15391 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15394 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15395 OTOOL64=$lt_OTOOL64
15397 # Old archive suffix (normally "a").
15400 # Shared library suffix (normally ".so").
15401 shrext_cmds=$lt_shrext_cmds
15403 # The commands to extract the exported symbol list from a shared archive.
15404 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15406 # Variables whose values should be saved in libtool wrapper scripts and
15407 # restored at link time.
15408 variables_saved_for_relink=$lt_variables_saved_for_relink
15410 # Do we need the "lib" prefix for modules?
15411 need_lib_prefix=$need_lib_prefix
15413 # Do we need a version for libraries?
15414 need_version=$need_version
15416 # Library versioning type.
15417 version_type=$version_type
15419 # Shared library runtime path variable.
15420 runpath_var=$runpath_var
15422 # Shared library path variable.
15423 shlibpath_var=$shlibpath_var
15425 # Is shlibpath searched before the hard-coded library search path?
15426 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15428 # Format of library name prefix.
15429 libname_spec=$lt_libname_spec
15431 # List of archive names. First name is the real one, the rest are links.
15432 # The last name is the one that the linker finds with -lNAME
15433 library_names_spec=$lt_library_names_spec
15435 # The coded name of the library, if different from the real name.
15436 soname_spec=$lt_soname_spec
15438 # Permission mode override for installation of shared libraries.
15439 install_override_mode=$lt_install_override_mode
15441 # Command to use after installation of a shared archive.
15442 postinstall_cmds=$lt_postinstall_cmds
15444 # Command to use after uninstallation of a shared archive.
15445 postuninstall_cmds=$lt_postuninstall_cmds
15447 # Commands used to finish a libtool library installation in a directory.
15448 finish_cmds=$lt_finish_cmds
15450 # As "finish_cmds", except a single script fragment to be evaled but
15452 finish_eval=$lt_finish_eval
15454 # Whether we should hardcode library paths into libraries.
15455 hardcode_into_libs=$hardcode_into_libs
15457 # Compile-time system search path for libraries.
15458 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15460 # Run-time system search path for libraries.
15461 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15463 # Whether dlopen is supported.
15464 dlopen_support=$enable_dlopen
15466 # Whether dlopen of programs is supported.
15467 dlopen_self=$enable_dlopen_self
15469 # Whether dlopen of statically linked programs is supported.
15470 dlopen_self_static=$enable_dlopen_self_static
15472 # Commands to strip libraries.
15473 old_striplib=$lt_old_striplib
15474 striplib=$lt_striplib
15477 # The linker used to build libraries.
15480 # How to create reloadable object files.
15481 reload_flag=$lt_reload_flag
15482 reload_cmds=$lt_reload_cmds
15484 # Commands used to build an old-style archive.
15485 old_archive_cmds=$lt_old_archive_cmds
15487 # A language specific compiler.
15490 # Is the compiler the GNU compiler?
15493 # Compiler flag to turn off builtin functions.
15494 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15496 # Additional compiler flags for building library objects.
15497 pic_flag=$lt_lt_prog_compiler_pic
15499 # How to pass a linker flag through the compiler.
15500 wl=$lt_lt_prog_compiler_wl
15502 # Compiler flag to prevent dynamic linking.
15503 link_static_flag=$lt_lt_prog_compiler_static
15505 # Does compiler simultaneously support -c and -o options?
15506 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15508 # Whether or not to add -lc for building shared libraries.
15509 build_libtool_need_lc=$archive_cmds_need_lc
15511 # Whether or not to disallow shared libs when runtime libs are static.
15512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15514 # Compiler flag to allow reflexive dlopens.
15515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15517 # Compiler flag to generate shared objects directly from archives.
15518 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15520 # Whether the compiler copes with passing no objects directly.
15521 compiler_needs_object=$lt_compiler_needs_object
15523 # Create an old-style archive from a shared archive.
15524 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15526 # Create a temporary old-style archive to link instead of a shared archive.
15527 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15529 # Commands used to build a shared archive.
15530 archive_cmds=$lt_archive_cmds
15531 archive_expsym_cmds=$lt_archive_expsym_cmds
15533 # Commands used to build a loadable module if different from building
15534 # a shared archive.
15535 module_cmds=$lt_module_cmds
15536 module_expsym_cmds=$lt_module_expsym_cmds
15538 # Whether we are building with GNU ld or not.
15539 with_gnu_ld=$lt_with_gnu_ld
15541 # Flag that allows shared libraries with undefined symbols to be built.
15542 allow_undefined_flag=$lt_allow_undefined_flag
15544 # Flag that enforces no undefined symbols.
15545 no_undefined_flag=$lt_no_undefined_flag
15547 # Flag to hardcode \$libdir into a binary during linking.
15548 # This must work even if \$libdir does not exist
15549 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15551 # Whether we need a single "-rpath" flag with a separated argument.
15552 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15554 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15555 # DIR into the resulting binary.
15556 hardcode_direct=$hardcode_direct
15558 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15559 # DIR into the resulting binary and the resulting library dependency is
15560 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15561 # library is relocated.
15562 hardcode_direct_absolute=$hardcode_direct_absolute
15564 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15565 # into the resulting binary.
15566 hardcode_minus_L=$hardcode_minus_L
15568 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15569 # into the resulting binary.
15570 hardcode_shlibpath_var=$hardcode_shlibpath_var
15572 # Set to "yes" if building a shared library automatically hardcodes DIR
15573 # into the library and all subsequent libraries and executables linked
15575 hardcode_automatic=$hardcode_automatic
15577 # Set to yes if linker adds runtime paths of dependent libraries
15578 # to runtime path list.
15579 inherit_rpath=$inherit_rpath
15581 # Whether libtool must link a program against all its dependency libraries.
15582 link_all_deplibs=$link_all_deplibs
15584 # Set to "yes" if exported symbols are required.
15585 always_export_symbols=$always_export_symbols
15587 # The commands to list exported symbols.
15588 export_symbols_cmds=$lt_export_symbols_cmds
15590 # Symbols that should not be listed in the preloaded symbols.
15591 exclude_expsyms=$lt_exclude_expsyms
15593 # Symbols that must always be exported.
15594 include_expsyms=$lt_include_expsyms
15596 # Commands necessary for linking programs (against libraries) with templates.
15597 prelink_cmds=$lt_prelink_cmds
15599 # Commands necessary for finishing linking programs.
15600 postlink_cmds=$lt_postlink_cmds
15602 # Specify filename containing input files.
15603 file_list_spec=$lt_file_list_spec
15605 # How to hardcode a shared library path into an executable.
15606 hardcode_action=$hardcode_action
15608 # ### END LIBTOOL CONFIG
15614 cat <<\_LT_EOF >> "$cfgfile"
15615 # AIX sometimes has problems with the GCC collect2 program. For some
15616 # reason, if we set the COLLECT_NAMES environment variable, the problems
15617 # vanish in a puff of smoke.
15618 if test "X${COLLECT_NAMES+set}" != Xset; then
15620 export COLLECT_NAMES
15627 ltmain="$ac_aux_dir/ltmain.sh"
15630 # We use sed instead of cat because bash on DJGPP gets confused if
15631 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15632 # text mode, it properly converts lines to CR/LF. This bash problem
15633 # is reportedly fixed, but why not run on old versions too?
15634 sed '$q' "$ltmain" >> "$cfgfile" \
15635 || (rm -f "$cfgfile"; exit 1)
15637 if test x"$xsi_shell" = xyes; then
15638 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15642 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15643 \ * ) func_dirname_result="${3}" ;;\
15645 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15646 && mv -f "$cfgfile.tmp" "$cfgfile" \
15647 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15648 test 0 -eq $? || _lt_function_replace_fail=:
15651 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15654 \ func_basename_result="${1##*/}"\
15655 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15656 && mv -f "$cfgfile.tmp" "$cfgfile" \
15657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15658 test 0 -eq $? || _lt_function_replace_fail=:
15661 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15662 func_dirname_and_basename ()\
15665 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15666 \ * ) func_dirname_result="${3}" ;;\
15668 \ func_basename_result="${1##*/}"\
15669 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15670 && mv -f "$cfgfile.tmp" "$cfgfile" \
15671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15672 test 0 -eq $? || _lt_function_replace_fail=:
15675 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15678 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15679 \ # positional parameters, so assign one to ordinary parameter first.\
15680 \ func_stripname_result=${3}\
15681 \ func_stripname_result=${func_stripname_result#"${1}"}\
15682 \ func_stripname_result=${func_stripname_result%"${2}"}\
15683 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15684 && mv -f "$cfgfile.tmp" "$cfgfile" \
15685 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15686 test 0 -eq $? || _lt_function_replace_fail=:
15689 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15690 func_split_long_opt ()\
15692 \ func_split_long_opt_name=${1%%=*}\
15693 \ func_split_long_opt_arg=${1#*=}\
15694 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15695 && mv -f "$cfgfile.tmp" "$cfgfile" \
15696 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15697 test 0 -eq $? || _lt_function_replace_fail=:
15700 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15701 func_split_short_opt ()\
15703 \ func_split_short_opt_arg=${1#??}\
15704 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15705 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15706 && mv -f "$cfgfile.tmp" "$cfgfile" \
15707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15708 test 0 -eq $? || _lt_function_replace_fail=:
15711 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15715 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15716 \ *) func_lo2o_result=${1} ;;\
15718 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15719 && mv -f "$cfgfile.tmp" "$cfgfile" \
15720 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15721 test 0 -eq $? || _lt_function_replace_fail=:
15724 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15727 func_xform_result=${1%.*}.lo\
15728 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15729 && mv -f "$cfgfile.tmp" "$cfgfile" \
15730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15731 test 0 -eq $? || _lt_function_replace_fail=:
15734 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15737 func_arith_result=$(( $* ))\
15738 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15739 && mv -f "$cfgfile.tmp" "$cfgfile" \
15740 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15741 test 0 -eq $? || _lt_function_replace_fail=:
15744 sed -e '/^func_len ()$/,/^} # func_len /c\
15747 func_len_result=${#1}\
15748 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15749 && mv -f "$cfgfile.tmp" "$cfgfile" \
15750 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15751 test 0 -eq $? || _lt_function_replace_fail=:
15755 if test x"$lt_shell_append" = xyes; then
15756 sed -e '/^func_append ()$/,/^} # func_append /c\
15759 eval "${1}+=\\${2}"\
15760 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15761 && mv -f "$cfgfile.tmp" "$cfgfile" \
15762 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15763 test 0 -eq $? || _lt_function_replace_fail=:
15766 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15767 func_append_quoted ()\
15769 \ func_quote_for_eval "${2}"\
15770 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15771 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15772 && mv -f "$cfgfile.tmp" "$cfgfile" \
15773 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15774 test 0 -eq $? || _lt_function_replace_fail=:
15777 # Save a `func_append' function call where possible by direct use of '+='
15778 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15779 && mv -f "$cfgfile.tmp" "$cfgfile" \
15780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15781 test 0 -eq $? || _lt_function_replace_fail=:
15783 # Save a `func_append' function call even when '+=' is not available
15784 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15785 && mv -f "$cfgfile.tmp" "$cfgfile" \
15786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15787 test 0 -eq $? || _lt_function_replace_fail=:
15790 if test x"$_lt_function_replace_fail" = x":"; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15792 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15796 mv -f "$cfgfile" "$ofile" ||
15797 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15808 ac_clean_files=$ac_clean_files_save
15810 test $ac_write_fail = 0 ||
15811 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15814 # configure is writing to config.log, and then calls config.status.
15815 # config.status does its own redirection, appending to config.log.
15816 # Unfortunately, on DOS this fails, as config.log is still kept open
15817 # by configure, so config.status won't be able to write to it; its
15818 # output is simply discarded. So we exec the FD to /dev/null,
15819 # effectively closing config.log, so it can be properly (re)opened and
15820 # appended to by config.status. When coming back to configure, we
15821 # need to make the FD available again.
15822 if test "$no_create" != yes; then
15824 ac_config_status_args=
15825 test "$silent" = yes &&
15826 ac_config_status_args="$ac_config_status_args --quiet"
15828 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15830 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15831 # would make configure fail if this is the last instruction.
15832 $ac_cs_success || as_fn_exit 1
15834 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15836 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15841 echo "Enabled debug features : "$enable_debug
15842 echo "Building tests : "$enable_tests
15843 echo "Enabled Gumd : "$enable_gum $have_libgum
15844 echo "Enabled NFC : "$have_libtlm_nfc
15845 echo "Enabled examples : "$enable_examples