2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Conky 1.8.0.
5 # Report bugs to <brenden1@users.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: brenden1@users.sourceforge.net about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 ac_default_prefix=/usr/local
694 ac_config_libobj_dir=.
701 # Identity of this package.
703 PACKAGE_TARNAME='conky'
704 PACKAGE_VERSION='1.8.0'
705 PACKAGE_STRING='Conky 1.8.0'
706 PACKAGE_BUGREPORT='brenden1@users.sourceforge.net'
709 # Factoring default headers for most tests.
710 ac_includes_default="\
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
722 # ifdef HAVE_STDLIB_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
745 ac_subst_vars='am__EXEEXT_FALSE
776 BUILD_PORT_MONITORS_FALSE
777 BUILD_PORT_MONITORS_TRUE
780 BUILD_LUA_IMLIB2_FALSE
781 BUILD_LUA_IMLIB2_TRUE
782 BUILD_LUA_CAIRO_FALSE
840 BUILD_AUDACIOUS_FALSE
844 BUILD_CONFIG_OUTPUT_FALSE
845 BUILD_CONFIG_OUTPUT_TRUE
908 INSTALL_STRIP_PROGRAM
950 program_transform_name
963 enable_option_checking
964 enable_dependency_tracking
1000 enable_double_buffer
1009 ac_precious_vars='build_alias
1052 # Initialize some variables set by options.
1054 ac_init_version=false
1055 ac_unrecognized_opts=
1056 ac_unrecognized_sep=
1057 # The variables have the same names as the options, with
1058 # dashes changed to underlines.
1059 cache_file=/dev/null
1066 program_transform_name=s,x,x,
1074 # Installation directory options.
1075 # These are left unexpanded so users can "make install exec_prefix=/foo"
1076 # and all the variables that are supposed to be based on exec_prefix
1077 # by default will actually change.
1078 # Use braces instead of parens because sh, perl, etc. also accept them.
1079 # (The list follows the same order as the GNU Coding Standards.)
1080 bindir='${exec_prefix}/bin'
1081 sbindir='${exec_prefix}/sbin'
1082 libexecdir='${exec_prefix}/libexec'
1083 datarootdir='${prefix}/share'
1084 datadir='${datarootdir}'
1085 sysconfdir='${prefix}/etc'
1086 sharedstatedir='${prefix}/com'
1087 localstatedir='${prefix}/var'
1088 includedir='${prefix}/include'
1089 oldincludedir='/usr/include'
1090 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1091 infodir='${datarootdir}/info'
1096 libdir='${exec_prefix}/lib'
1097 localedir='${datarootdir}/locale'
1098 mandir='${datarootdir}/man'
1104 # If the previous option needs an argument, assign it.
1105 if test -n "$ac_prev"; then
1106 eval $ac_prev=\$ac_option
1112 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116 # Accept the important Cygnus configure options, so we can diagnose typos.
1118 case $ac_dashdash$ac_option in
1122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1125 bindir=$ac_optarg ;;
1127 -build | --build | --buil | --bui | --bu)
1128 ac_prev=build_alias ;;
1129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1130 build_alias=$ac_optarg ;;
1132 -cache-file | --cache-file | --cache-fil | --cache-fi \
1133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1134 ac_prev=cache_file ;;
1135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1137 cache_file=$ac_optarg ;;
1139 --config-cache | -C)
1140 cache_file=config.cache ;;
1142 -datadir | --datadir | --datadi | --datad)
1144 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1145 datadir=$ac_optarg ;;
1147 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1148 | --dataroo | --dataro | --datar)
1149 ac_prev=datarootdir ;;
1150 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1151 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1152 datarootdir=$ac_optarg ;;
1154 -disable-* | --disable-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error "invalid feature name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1163 "enable_$ac_useropt"
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1168 eval enable_$ac_useropt=no ;;
1170 -docdir | --docdir | --docdi | --doc | --do)
1172 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1173 docdir=$ac_optarg ;;
1175 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1177 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1178 dvidir=$ac_optarg ;;
1180 -enable-* | --enable-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid feature name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1189 "enable_$ac_useropt"
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1194 eval enable_$ac_useropt=\$ac_optarg ;;
1196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1198 | --exec | --exe | --ex)
1199 ac_prev=exec_prefix ;;
1200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1202 | --exec=* | --exe=* | --ex=*)
1203 exec_prefix=$ac_optarg ;;
1205 -gas | --gas | --ga | --g)
1206 # Obsolete; use --with-gas.
1209 -help | --help | --hel | --he | -h)
1210 ac_init_help=long ;;
1211 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1212 ac_init_help=recursive ;;
1213 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1214 ac_init_help=short ;;
1216 -host | --host | --hos | --ho)
1217 ac_prev=host_alias ;;
1218 -host=* | --host=* | --hos=* | --ho=*)
1219 host_alias=$ac_optarg ;;
1221 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1223 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1225 htmldir=$ac_optarg ;;
1227 -includedir | --includedir | --includedi | --included | --include \
1228 | --includ | --inclu | --incl | --inc)
1229 ac_prev=includedir ;;
1230 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1231 | --includ=* | --inclu=* | --incl=* | --inc=*)
1232 includedir=$ac_optarg ;;
1234 -infodir | --infodir | --infodi | --infod | --info | --inf)
1236 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1237 infodir=$ac_optarg ;;
1239 -libdir | --libdir | --libdi | --libd)
1241 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1242 libdir=$ac_optarg ;;
1244 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1245 | --libexe | --libex | --libe)
1246 ac_prev=libexecdir ;;
1247 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1248 | --libexe=* | --libex=* | --libe=*)
1249 libexecdir=$ac_optarg ;;
1251 -localedir | --localedir | --localedi | --localed | --locale)
1252 ac_prev=localedir ;;
1253 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1254 localedir=$ac_optarg ;;
1256 -localstatedir | --localstatedir | --localstatedi | --localstated \
1257 | --localstate | --localstat | --localsta | --localst | --locals)
1258 ac_prev=localstatedir ;;
1259 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1260 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1261 localstatedir=$ac_optarg ;;
1263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1266 mandir=$ac_optarg ;;
1268 -nfp | --nfp | --nf)
1269 # Obsolete; use --without-fp.
1272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1273 | --no-cr | --no-c | -n)
1276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1282 | --oldin | --oldi | --old | --ol | --o)
1283 ac_prev=oldincludedir ;;
1284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1287 oldincludedir=$ac_optarg ;;
1289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1292 prefix=$ac_optarg ;;
1294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1295 | --program-pre | --program-pr | --program-p)
1296 ac_prev=program_prefix ;;
1297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1299 program_prefix=$ac_optarg ;;
1301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1302 | --program-suf | --program-su | --program-s)
1303 ac_prev=program_suffix ;;
1304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1306 program_suffix=$ac_optarg ;;
1308 -program-transform-name | --program-transform-name \
1309 | --program-transform-nam | --program-transform-na \
1310 | --program-transform-n | --program-transform- \
1311 | --program-transform | --program-transfor \
1312 | --program-transfo | --program-transf \
1313 | --program-trans | --program-tran \
1314 | --progr-tra | --program-tr | --program-t)
1315 ac_prev=program_transform_name ;;
1316 -program-transform-name=* | --program-transform-name=* \
1317 | --program-transform-nam=* | --program-transform-na=* \
1318 | --program-transform-n=* | --program-transform-=* \
1319 | --program-transform=* | --program-transfor=* \
1320 | --program-transfo=* | --program-transf=* \
1321 | --program-trans=* | --program-tran=* \
1322 | --progr-tra=* | --program-tr=* | --program-t=*)
1323 program_transform_name=$ac_optarg ;;
1325 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1327 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1328 pdfdir=$ac_optarg ;;
1330 -psdir | --psdir | --psdi | --psd | --ps)
1332 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336 | -silent | --silent | --silen | --sile | --sil)
1339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1343 sbindir=$ac_optarg ;;
1345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347 | --sharedst | --shareds | --shared | --share | --shar \
1349 ac_prev=sharedstatedir ;;
1350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1354 sharedstatedir=$ac_optarg ;;
1356 -site | --site | --sit)
1358 -site=* | --site=* | --sit=*)
1361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364 srcdir=$ac_optarg ;;
1366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367 | --syscon | --sysco | --sysc | --sys | --sy)
1368 ac_prev=sysconfdir ;;
1369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371 sysconfdir=$ac_optarg ;;
1373 -target | --target | --targe | --targ | --tar | --ta | --t)
1374 ac_prev=target_alias ;;
1375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376 target_alias=$ac_optarg ;;
1378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1381 -version | --version | --versio | --versi | --vers | -V)
1382 ac_init_version=: ;;
1385 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1388 as_fn_error "invalid package name: $ac_useropt"
1389 ac_useropt_orig=$ac_useropt
1390 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1395 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1396 ac_unrecognized_sep=', ';;
1398 eval with_$ac_useropt=\$ac_optarg ;;
1400 -without-* | --without-*)
1401 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1402 # Reject names that are not valid shell variable names.
1403 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1404 as_fn_error "invalid package name: $ac_useropt"
1405 ac_useropt_orig=$ac_useropt
1406 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1407 case $ac_user_opts in
1411 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1412 ac_unrecognized_sep=', ';;
1414 eval with_$ac_useropt=no ;;
1417 # Obsolete; use --with-x.
1420 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1421 | --x-incl | --x-inc | --x-in | --x-i)
1422 ac_prev=x_includes ;;
1423 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1424 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1425 x_includes=$ac_optarg ;;
1427 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1428 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1429 ac_prev=x_libraries ;;
1430 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1431 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1432 x_libraries=$ac_optarg ;;
1434 -*) as_fn_error "unrecognized option: \`$ac_option'
1435 Try \`$0 --help' for more information."
1439 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1440 # Reject names that are not valid shell variable names.
1441 case $ac_envvar in #(
1442 '' | [0-9]* | *[!_$as_cr_alnum]* )
1443 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1445 eval $ac_envvar=\$ac_optarg
1446 export $ac_envvar ;;
1449 # FIXME: should be removed in autoconf 3.0.
1450 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1451 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1452 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1453 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1459 if test -n "$ac_prev"; then
1460 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1461 as_fn_error "missing argument to $ac_option"
1464 if test -n "$ac_unrecognized_opts"; then
1465 case $enable_option_checking in
1467 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1468 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1472 # Check all directory arguments for consistency.
1473 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1474 datadir sysconfdir sharedstatedir localstatedir includedir \
1475 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1476 libdir localedir mandir
1478 eval ac_val=\$$ac_var
1479 # Remove trailing slashes.
1482 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1483 eval $ac_var=\$ac_val;;
1485 # Be sure to have absolute directory names.
1487 [\\/$]* | ?:[\\/]* ) continue;;
1488 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1490 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1493 # There might be people who depend on the old broken behavior: `$host'
1494 # used to hold the argument of --host etc.
1495 # FIXME: To remove some day.
1498 target=$target_alias
1500 # FIXME: To remove some day.
1501 if test "x$host_alias" != x; then
1502 if test "x$build_alias" = x; then
1503 cross_compiling=maybe
1504 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1505 If a cross compiler is detected then cross compile mode will be used." >&2
1506 elif test "x$build_alias" != "x$host_alias"; then
1512 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1514 test "$silent" = yes && exec 6>/dev/null
1517 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1518 ac_ls_di=`ls -di .` &&
1519 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1520 as_fn_error "working directory cannot be determined"
1521 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1522 as_fn_error "pwd does not report name of working directory"
1525 # Find the source files, if location was not specified.
1526 if test -z "$srcdir"; then
1527 ac_srcdir_defaulted=yes
1528 # Try the directory containing this script, then the parent directory.
1529 ac_confdir=`$as_dirname -- "$as_myself" ||
1530 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1531 X"$as_myself" : 'X\(//\)[^/]' \| \
1532 X"$as_myself" : 'X\(//\)$' \| \
1533 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1534 $as_echo X"$as_myself" |
1535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1553 if test ! -r "$srcdir/$ac_unique_file"; then
1557 ac_srcdir_defaulted=no
1559 if test ! -r "$srcdir/$ac_unique_file"; then
1560 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1561 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1563 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1565 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1567 # When building in place, set srcdir=.
1568 if test "$ac_abs_confdir" = "$ac_pwd"; then
1571 # Remove unnecessary trailing slashes from srcdir.
1572 # Double slashes in file names in object file debugging info
1573 # mess up M-x gdb in Emacs.
1575 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1577 for ac_var in $ac_precious_vars; do
1578 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1579 eval ac_env_${ac_var}_value=\$${ac_var}
1580 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1585 # Report the --help message.
1587 if test "$ac_init_help" = "long"; then
1588 # Omit some internal or obsolete options to make the list less imposing.
1589 # This message is too long to be a string in the A/UX 3.1 sh.
1591 \`configure' configures Conky 1.8.0 to adapt to many kinds of systems.
1593 Usage: $0 [OPTION]... [VAR=VALUE]...
1595 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1596 VAR=VALUE. See below for descriptions of some of the useful variables.
1598 Defaults for the options are specified in brackets.
1601 -h, --help display this help and exit
1602 --help=short display options specific to this package
1603 --help=recursive display the short help of all the included packages
1604 -V, --version display version information and exit
1605 -q, --quiet, --silent do not print \`checking...' messages
1606 --cache-file=FILE cache test results in FILE [disabled]
1607 -C, --config-cache alias for \`--cache-file=config.cache'
1608 -n, --no-create do not create output files
1609 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1611 Installation directories:
1612 --prefix=PREFIX install architecture-independent files in PREFIX
1613 [$ac_default_prefix]
1614 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1617 By default, \`make install' will install all the files in
1618 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1619 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1620 for instance \`--prefix=\$HOME'.
1622 For better control, use the options below.
1624 Fine tuning of the installation directories:
1625 --bindir=DIR user executables [EPREFIX/bin]
1626 --sbindir=DIR system admin executables [EPREFIX/sbin]
1627 --libexecdir=DIR program executables [EPREFIX/libexec]
1628 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1629 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1630 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1631 --libdir=DIR object code libraries [EPREFIX/lib]
1632 --includedir=DIR C header files [PREFIX/include]
1633 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1634 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1635 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1636 --infodir=DIR info documentation [DATAROOTDIR/info]
1637 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1638 --mandir=DIR man documentation [DATAROOTDIR/man]
1639 --docdir=DIR documentation root [DATAROOTDIR/doc/conky]
1640 --htmldir=DIR html documentation [DOCDIR]
1641 --dvidir=DIR dvi documentation [DOCDIR]
1642 --pdfdir=DIR pdf documentation [DOCDIR]
1643 --psdir=DIR ps documentation [DOCDIR]
1649 --program-prefix=PREFIX prepend PREFIX to installed program names
1650 --program-suffix=SUFFIX append SUFFIX to installed program names
1651 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1654 --x-includes=DIR X include files are in DIR
1655 --x-libraries=DIR X library files are in DIR
1658 --build=BUILD configure for building on BUILD [guessed]
1659 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1663 if test -n "$ac_init_help"; then
1664 case $ac_init_help in
1665 short | recursive ) echo "Configuration of Conky 1.8.0:";;
1670 --disable-option-checking ignore unrecognized --enable/--with options
1671 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1672 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1673 --disable-dependency-tracking speeds up one-time build
1674 --enable-dependency-tracking do not reject slow dependency extractors
1675 --enable-shared[=PKGS] build shared libraries [default=yes]
1676 --enable-static[=PKGS] build static libraries [default=yes]
1677 --enable-fast-install[=PKGS]
1678 optimize for fast installation [default=yes]
1679 --disable-libtool-lock avoid locking (might break parallel builds)
1680 --disable-config-output disable if you do not want conky to output a default
1681 config (with -C) [default=yes]
1682 --disable-own-window disable if you do not want support for creating own
1683 window [default=yes]
1684 --disable-ncurses disable if you do not want ncurses support in conky
1686 --enable-audacious=yes|no|legacy
1687 enable audacious player support [default=no]
1688 --enable-bmpx enable if you want BMPx support [default=no]
1689 --enable-ibm enable if you want support for IBM/Lenovo notebooks
1691 --disable-hddtemp disable if you do not want hddtemp support
1693 --disable-apcupsd disable if you do not want apcupsd support
1695 --enable-iostats enable if you want support for per-task I/O
1696 statistics [default=yes]
1697 --disable-math disable if you do not want math support
1699 --disable-mpd disable if you do not want MPD support [default=yes]
1700 --disable-moc disable if you do not want MOC support [default=yes]
1701 --enable-xmms2 enable if you want XMMS2 support [default=no]
1702 --enable-curl enable if you want curl support [default=no]
1703 --enable-eve Eve-Online skill monitor [default=no]
1704 --enable-rss enable if you want rss support [default=no]
1705 --enable-weather-metar enable if you want METAR weather support
1707 --enable-weather-xoap enable if you want XOAP weather support (also
1708 enables METAR) [default=no]
1709 --disable-x11 disable if you do not want X11 support [default=yes]
1710 --disable-argb disable if you do not want a argb visual
1712 --enable-imlib2 enable if you want Imlib2 support [[default=no]]
1713 --enable-lua-imlib2 enable if you want Lua Imlib2 bindings for Conky
1715 --enable-lua enable if you want Lua scripting support
1717 --enable-lua-cairo enable if you want Lua Cairo bindings for Conky
1719 --enable-wlan enable if you want wireless support [default=no]
1720 --disable-portmon disable if you do not want tcp (ip4) port monitoring
1722 --disable-rpath do not hardcode runtime library paths
1723 --disable-double-buffer disable for no Xdbe double-buffering support
1725 --disable-xdamage disable if you do not want Xdamage support
1727 --disable-xft disable if you do not want to use Xft [default=yes]
1728 --enable-nvidia enable if you want nvidia support [default=no]
1729 --disable-alsa disable if you do not want ALSA support
1731 --enable-debug compile with debug symbols [default=no]
1732 --enable-testing use strict compiler flags for testing [default=no]
1733 --enable-profiling specify compiler flags for use with gprof and gcov
1737 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1738 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1739 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1740 --with-pic try to use only PIC/non-PIC objects [default=use
1742 --with-x use the X Window System
1743 --with-gnu-ld assume the C compiler uses GNU ld default=no
1744 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1745 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1747 Some influential environment variables:
1748 CC C compiler command
1749 CFLAGS C compiler flags
1750 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1751 nonstandard directory <lib dir>
1752 LIBS libraries to pass to the linker, e.g. -l<library>
1753 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1754 you have headers in a nonstandard directory <include dir>
1756 PKG_CONFIG path to pkg-config utility
1758 C compiler flags for Audacious, overriding pkg-config
1760 linker flags for Audacious, overriding pkg-config
1761 BMPx_CFLAGS C compiler flags for BMPx, overriding pkg-config
1762 BMPx_LIBS linker flags for BMPx, overriding pkg-config
1764 C compiler flags for XMMS2, overriding pkg-config
1765 XMMS2_LIBS linker flags for XMMS2, overriding pkg-config
1766 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1767 X11_LIBS linker flags for X11, overriding pkg-config
1768 XMKMF Path to xmkmf, Makefile generator for X Window System
1770 C compiler flags for Imlib2, overriding pkg-config
1771 Imlib2_LIBS linker flags for Imlib2, overriding pkg-config
1772 LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
1773 LUA_LIBS linker flags for LUA, overriding pkg-config
1775 C compiler flags for LUA51, overriding pkg-config
1776 LUA51_LIBS linker flags for LUA51, overriding pkg-config
1778 C compiler flags for cairo, overriding pkg-config
1779 cairo_LIBS linker flags for cairo, overriding pkg-config
1781 C compiler flags for cairo_xlib, overriding pkg-config
1783 linker flags for cairo_xlib, overriding pkg-config
1784 Xext_CFLAGS C compiler flags for Xext, overriding pkg-config
1785 Xext_LIBS linker flags for Xext, overriding pkg-config
1787 C compiler flags for XDamage, overriding pkg-config
1789 linker flags for XDamage, overriding pkg-config
1790 Xft_CFLAGS C compiler flags for Xft, overriding pkg-config
1791 Xft_LIBS linker flags for Xft, overriding pkg-config
1793 C compiler flags for GLib2, overriding pkg-config
1794 GLib2_LIBS linker flags for GLib2, overriding pkg-config
1796 C compiler flags for libcurl, overriding pkg-config
1798 linker flags for libcurl, overriding pkg-config
1800 C compiler flags for libxml2, overriding pkg-config
1802 linker flags for libxml2, overriding pkg-config
1804 Use these variables to override the choices made by `configure' or to help
1805 it to find libraries and programs with nonstandard names/locations.
1807 Report bugs to <brenden1@users.sourceforge.net>.
1812 if test "$ac_init_help" = "recursive"; then
1813 # If there are subdirs, report their specific --help.
1814 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1815 test -d "$ac_dir" ||
1816 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1821 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1823 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1824 # A ".." for each directory in $ac_dir_suffix.
1825 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1826 case $ac_top_builddir_sub in
1827 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1828 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1831 ac_abs_top_builddir=$ac_pwd
1832 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1833 # for backward compatibility:
1834 ac_top_builddir=$ac_top_build_prefix
1837 .) # We are building in place.
1839 ac_top_srcdir=$ac_top_builddir_sub
1840 ac_abs_top_srcdir=$ac_pwd ;;
1841 [\\/]* | ?:[\\/]* ) # Absolute name.
1842 ac_srcdir=$srcdir$ac_dir_suffix;
1843 ac_top_srcdir=$srcdir
1844 ac_abs_top_srcdir=$srcdir ;;
1846 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1847 ac_top_srcdir=$ac_top_build_prefix$srcdir
1848 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1850 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1852 cd "$ac_dir" || { ac_status=$?; continue; }
1853 # Check for guested configure.
1854 if test -f "$ac_srcdir/configure.gnu"; then
1856 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1857 elif test -f "$ac_srcdir/configure"; then
1859 $SHELL "$ac_srcdir/configure" --help=recursive
1861 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1863 cd "$ac_pwd" || { ac_status=$?; break; }
1867 test -n "$ac_init_help" && exit $ac_status
1868 if $ac_init_version; then
1870 Conky configure 1.8.0
1871 generated by GNU Autoconf 2.65
1873 Copyright (C) 2009 Free Software Foundation, Inc.
1874 This configure script is free software; the Free Software Foundation
1875 gives unlimited permission to copy, distribute and modify it.
1880 ## ------------------------ ##
1881 ## Autoconf initialization. ##
1882 ## ------------------------ ##
1884 # ac_fn_c_try_compile LINENO
1885 # --------------------------
1886 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_c_try_compile ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext
1891 if { { ac_try="$ac_compile"
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_compile") 2>conftest.err
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest.$ac_objext; then :
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 as_fn_set_status $ac_retval
1920 } # ac_fn_c_try_compile
1922 # ac_fn_c_try_link LINENO
1923 # -----------------------
1924 # Try to link conftest.$ac_ext, and return whether this succeeded.
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 rm -f conftest.$ac_objext conftest$ac_exeext
1929 if { { ac_try="$ac_link"
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_link") 2>conftest.err
1938 if test -s conftest.err; then
1939 grep -v '^ *+' conftest.err >conftest.er1
1940 cat conftest.er1 >&5
1941 mv -f conftest.er1 conftest.err
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } && {
1945 test -z "$ac_c_werror_flag" ||
1946 test ! -s conftest.err
1947 } && test -s conftest$ac_exeext && {
1948 test "$cross_compiling" = yes ||
1949 $as_test_x conftest$ac_exeext
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1958 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1959 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1960 # interfere with the next link command; also delete a directory that is
1961 # left behind by Apple's compiler. We do this before executing the actions.
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 as_fn_set_status $ac_retval
1966 } # ac_fn_c_try_link
1968 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1969 # -------------------------------------------------------
1970 # Tests whether HEADER exists and can be compiled using the include files in
1971 # INCLUDES, setting the cache variable VAR accordingly.
1972 ac_fn_c_check_header_compile ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978 $as_echo_n "(cached) " >&6
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1985 if ac_fn_c_try_compile "$LINENO"; then :
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 } # ac_fn_c_check_header_compile
1999 # ac_fn_c_try_cpp LINENO
2000 # ----------------------
2001 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 if { { ac_try="$ac_cpp conftest.$ac_ext"
2007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2008 *) ac_try_echo=$ac_try;;
2010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2011 $as_echo "$ac_try_echo"; } >&5
2012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2014 if test -s conftest.err; then
2015 grep -v '^ *+' conftest.err >conftest.er1
2016 cat conftest.er1 >&5
2017 mv -f conftest.er1 conftest.err
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; } >/dev/null && {
2021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2022 test ! -s conftest.err
2026 $as_echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032 as_fn_set_status $ac_retval
2036 # ac_fn_c_try_run LINENO
2037 # ----------------------
2038 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2039 # that executables *can* be run.
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if { { ac_try="$ac_link"
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_link") 2>&5
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2054 { { case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_try") 2>&5
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; }; }; then :
2066 $as_echo "$as_me: program exited with status $ac_status" >&5
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 ac_retval=$ac_status
2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074 as_fn_set_status $ac_retval
2078 # ac_fn_c_check_func LINENO FUNC VAR
2079 # ----------------------------------
2080 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2081 ac_fn_c_check_func ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2087 $as_echo_n "(cached) " >&6
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2091 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2093 #define $2 innocuous_$2
2095 /* System header to define __stub macros and hopefully few prototypes,
2096 which can conflict with char $2 (); below.
2097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2098 <limits.h> exists even on freestanding compilers. */
2101 # include <limits.h>
2103 # include <assert.h>
2108 /* Override any GCC internal prototype to avoid an error.
2109 Use char because int might match the return type of a GCC
2110 builtin and then its argument prototype would still apply. */
2115 /* The GNU C library defines this for functions which it implements
2116 to always fail with ENOSYS. Some functions are actually named
2117 something starting with __ and the normal name is an alias. */
2118 #if defined __stub_$2 || defined __stub___$2
2130 if ac_fn_c_try_link "$LINENO"; then :
2135 rm -f core conftest.err conftest.$ac_objext \
2136 conftest$ac_exeext conftest.$ac_ext
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2140 $as_echo "$ac_res" >&6; }
2141 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2143 } # ac_fn_c_check_func
2145 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2146 # -------------------------------------------------------
2147 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2148 # the include files in INCLUDES and setting the cache variable VAR
2150 ac_fn_c_check_header_mongrel ()
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155 $as_echo_n "checking for $2... " >&6; }
2156 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2157 $as_echo_n "(cached) " >&6
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2163 # Is the header compilable?
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2165 $as_echo_n "checking $2 usability... " >&6; }
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2171 if ac_fn_c_try_compile "$LINENO"; then :
2172 ac_header_compiler=yes
2174 ac_header_compiler=no
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2178 $as_echo "$ac_header_compiler" >&6; }
2180 # Is the header present?
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2182 $as_echo_n "checking $2 presence... " >&6; }
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2187 if ac_fn_c_try_cpp "$LINENO"; then :
2188 ac_header_preproc=yes
2190 ac_header_preproc=no
2192 rm -f conftest.err conftest.$ac_ext
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2194 $as_echo "$ac_header_preproc" >&6; }
2196 # So? What about this header?
2197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2200 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2202 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2206 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2208 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2210 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2212 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2214 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 ## --------------------------------------------- ##
2217 ## Report this to brenden1@users.sourceforge.net ##
2218 ## --------------------------------------------- ##
2220 ) | sed "s/^/$as_me: WARNING: /" >&2
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2226 $as_echo_n "(cached) " >&6
2228 eval "$3=\$ac_header_compiler"
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236 } # ac_fn_c_check_header_mongrel
2238 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2239 # ----------------------------------------------------
2240 # Tries to find if the field MEMBER exists in type AGGR, after including
2241 # INCLUDES, setting cache variable VAR accordingly.
2242 ac_fn_c_check_member ()
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2246 $as_echo_n "checking for $2.$3... " >&6; }
2247 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2263 if ac_fn_c_try_compile "$LINENO"; then :
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2273 if (sizeof ac_aggr.$3)
2279 if ac_fn_c_try_compile "$LINENO"; then :
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2293 } # ac_fn_c_check_member
2294 cat >config.log <<_ACEOF
2295 This file contains any messages produced by compilers while
2296 running configure, to aid debugging if configure makes a mistake.
2298 It was created by Conky $as_me 1.8.0, which was
2299 generated by GNU Autoconf 2.65. Invocation command line was
2311 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2312 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2313 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2314 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2315 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2317 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2318 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2320 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2321 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2322 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2323 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2324 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2325 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2326 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 test -z "$as_dir" && as_dir=.
2335 $as_echo "PATH: $as_dir"
2351 # Keep a trace of the command line.
2352 # Strip out --no-create and --no-recursion so they do not pile up.
2353 # Strip out --silent because we don't want to record it for future runs.
2354 # Also quote any args containing shell meta-characters.
2355 # Make two passes to allow for proper duplicate-argument suppression.
2359 ac_must_keep_next=false
2365 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2367 | -silent | --silent | --silen | --sile | --sil)
2370 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2373 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2375 as_fn_append ac_configure_args1 " '$ac_arg'"
2376 if test $ac_must_keep_next = true; then
2377 ac_must_keep_next=false # Got value, back to normal.
2380 *=* | --config-cache | -C | -disable-* | --disable-* \
2381 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2382 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2383 | -with-* | --with-* | -without-* | --without-* | --x)
2384 case "$ac_configure_args0 " in
2385 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2388 -* ) ac_must_keep_next=true ;;
2391 as_fn_append ac_configure_args " '$ac_arg'"
2396 { ac_configure_args0=; unset ac_configure_args0;}
2397 { ac_configure_args1=; unset ac_configure_args1;}
2399 # When interrupted or exit'd, cleanup temporary files, and complete
2400 # config.log. We remove comments because anyway the quotes in there
2401 # would cause problems or look ugly.
2402 # WARNING: Use '\'' to represent an apostrophe within the trap.
2403 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2404 trap 'exit_status=$?
2405 # Save into config.log some information that might help in debugging.
2410 ## ---------------- ##
2411 ## Cache variables. ##
2412 ## ---------------- ##
2415 # The following way of writing the cache mishandles newlines in values,
2417 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2418 eval ac_val=\$$ac_var
2422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2423 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2426 _ | IFS | as_nl) ;; #(
2427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428 *) { eval $ac_var=; unset $ac_var;} ;;
2433 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434 *${as_nl}ac_space=\ *)
2436 "s/'\''/'\''\\\\'\'''\''/g;
2437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2448 ## ----------------- ##
2449 ## Output variables. ##
2450 ## ----------------- ##
2453 for ac_var in $ac_subst_vars
2455 eval ac_val=\$$ac_var
2457 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2459 $as_echo "$ac_var='\''$ac_val'\''"
2463 if test -n "$ac_subst_files"; then
2465 ## ------------------- ##
2466 ## File substitutions. ##
2467 ## ------------------- ##
2470 for ac_var in $ac_subst_files
2472 eval ac_val=\$$ac_var
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2476 $as_echo "$ac_var='\''$ac_val'\''"
2481 if test -s confdefs.h; then
2491 test "$ac_signal" != 0 &&
2492 $as_echo "$as_me: caught signal $ac_signal"
2493 $as_echo "$as_me: exit $exit_status"
2495 rm -f core *.core core.conftest.* &&
2496 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2499 for ac_signal in 1 2 13 15; do
2500 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2505 rm -f -r conftest* confdefs.h
2507 $as_echo "/* confdefs.h */" > confdefs.h
2509 # Predefined preprocessor variables.
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_NAME "$PACKAGE_NAME"
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_STRING "$PACKAGE_STRING"
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_URL "$PACKAGE_URL"
2536 # Let the site file select an alternate cache file if it wants to.
2537 # Prefer an explicitly selected file to automatically selected ones.
2540 if test -n "$CONFIG_SITE"; then
2541 ac_site_file1=$CONFIG_SITE
2542 elif test "x$prefix" != xNONE; then
2543 ac_site_file1=$prefix/share/config.site
2544 ac_site_file2=$prefix/etc/config.site
2546 ac_site_file1=$ac_default_prefix/share/config.site
2547 ac_site_file2=$ac_default_prefix/etc/config.site
2549 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2551 test "x$ac_site_file" = xNONE && continue
2552 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2554 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2555 sed 's/^/| /' "$ac_site_file" >&5
2560 if test -r "$cache_file"; then
2561 # Some versions of bash will fail to source /dev/null (special files
2562 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2563 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2565 $as_echo "$as_me: loading cache $cache_file" >&6;}
2567 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2568 *) . "./$cache_file";;
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2573 $as_echo "$as_me: creating cache $cache_file" >&6;}
2577 # Check that the precious variables saved in the cache have kept the same
2579 ac_cache_corrupted=false
2580 for ac_var in $ac_precious_vars; do
2581 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582 eval ac_new_set=\$ac_env_${ac_var}_set
2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584 eval ac_new_val=\$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2588 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted=: ;;
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2592 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=`echo x $ac_old_val`
2599 ac_new_val_w=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2602 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2603 ac_cache_corrupted=:
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\$ac_old_val
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2610 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2612 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2615 # Pass precious variables to config.status.
2616 if test "$ac_new_set" = set; then
2618 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 *) ac_arg=$ac_var=$ac_new_val ;;
2621 case " $ac_configure_args " in
2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2627 if $ac_cache_corrupted; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2632 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2634 ## -------------------- ##
2635 ## Main body of script. ##
2636 ## -------------------- ##
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2646 am__api_version='1.11'
2649 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2650 for ac_t in install-sh install.sh shtool; do
2651 if test -f "$ac_dir/$ac_t"; then
2653 ac_install_sh="$ac_aux_dir/$ac_t -c"
2658 if test -z "$ac_aux_dir"; then
2659 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2662 # These three variables are undocumented and unsupported,
2663 # and are intended to be withdrawn in a future Autoconf release.
2664 # They can cause serious problems if a builder's source tree is in a directory
2665 # whose full name contains unusual characters.
2666 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2667 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2668 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2671 # Find a good install program. We prefer a C program (faster),
2672 # so one script is as good as another. But avoid the broken or
2673 # incompatible versions:
2674 # SysV /etc/install, /usr/sbin/install
2675 # SunOS /usr/etc/install
2676 # IRIX /sbin/install
2678 # AmigaOS /C/install, which installs bootblocks on floppy discs
2679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2682 # OS/2's system install, which has a completely different semantic
2683 # ./install, which can be erroneously created by make from ./install.sh.
2684 # Reject install programs that cannot install multiple files.
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2686 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2687 if test -z "$INSTALL"; then
2688 if test "${ac_cv_path_install+set}" = set; then :
2689 $as_echo_n "(cached) " >&6
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 # Account for people who put trailing slashes in PATH elements.
2697 case $as_dir/ in #((
2698 ./ | .// | /[cC]/* | \
2699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2700 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2703 # OSF1 and SCO ODT 3.0 have their own names for install.
2704 # Don't use installbsd from OSF since it installs stuff as root
2706 for ac_prog in ginstall scoinst install; do
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2709 if test $ac_prog = install &&
2710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711 # AIX install. It has an incompatible calling convention.
2713 elif test $ac_prog = install &&
2714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715 # program-specific install script used by HP pwplus--don't use.
2718 rm -rf conftest.one conftest.two conftest.dir
2719 echo one > conftest.one
2720 echo two > conftest.two
2722 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2723 test -s conftest.one && test -s conftest.two &&
2724 test -s conftest.dir/conftest.one &&
2725 test -s conftest.dir/conftest.two
2727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2740 rm -rf conftest.one conftest.two conftest.dir
2743 if test "${ac_cv_path_install+set}" = set; then
2744 INSTALL=$ac_cv_path_install
2746 # As a last resort, use the slow shell script. Don't cache a
2747 # value for INSTALL within a source directory, because that will
2748 # break other packages using the cache if that directory is
2749 # removed, or if the value is a relative name.
2750 INSTALL=$ac_install_sh
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2754 $as_echo "$INSTALL" >&6; }
2756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2757 # It thinks the first close brace ends the variable substitution.
2758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2765 $as_echo_n "checking whether build environment is sane... " >&6; }
2768 echo timestamp > conftest.file
2769 # Reject unsafe characters in $srcdir or the absolute working directory
2770 # name. Accept space and tab only in the latter.
2774 *[\\\"\#\$\&\'\`$am_lf]*)
2775 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2778 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2779 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2782 # Do `set' in a subshell so we don't clobber the current shell's
2783 # arguments. Must try -L first in case configure is actually a
2784 # symlink; some systems play weird games with the mod time of symlinks
2785 # (eg FreeBSD returns the mod time of the symlink's containing
2788 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2789 if test "$*" = "X"; then
2791 set X `ls -t "$srcdir/configure" conftest.file`
2794 if test "$*" != "X $srcdir/configure conftest.file" \
2795 && test "$*" != "X conftest.file $srcdir/configure"; then
2797 # If neither matched, then we have a broken ls. This can happen
2798 # if, for instance, CONFIG_SHELL is bash and it inherits a
2799 # broken ls alias from the environment. This has actually
2800 # happened. Such a system could not be considered "sane".
2801 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2802 alias in your environment" "$LINENO" 5
2805 test "$2" = conftest.file
2811 as_fn_error "newly created file is older than distributed files!
2812 Check your system clock" "$LINENO" 5
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2815 $as_echo "yes" >&6; }
2816 test "$program_prefix" != NONE &&
2817 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2818 # Use a double $ so make ignores it.
2819 test "$program_suffix" != NONE &&
2820 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2821 # Double any \ or $.
2822 # By default was `s,x,x', remove it if useless.
2823 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2824 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2826 # expand $ac_aux_dir to an absolute path
2827 am_aux_dir=`cd $ac_aux_dir && pwd`
2829 if test x"${MISSING+set}" != xset; then
2832 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2834 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2837 # Use eval to expand $SHELL
2838 if eval "$MISSING --run true"; then
2839 am_missing_run="$MISSING --run "
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2843 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2846 if test x"${install_sh}" != xset; then
2849 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2851 install_sh="\${SHELL} $am_aux_dir/install-sh"
2855 # Installed binaries are usually stripped using `strip' when the user
2856 # run `make install-strip'. However `strip' might not be the right
2857 # tool to use in cross-compilation environments, therefore Automake
2858 # will honor the `STRIP' environment variable to overrule this program.
2859 if test "$cross_compiling" != no; then
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2862 set dummy ${ac_tool_prefix}strip; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_STRIP+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
2868 if test -n "$STRIP"; then
2869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 STRIP=$ac_cv_prog_STRIP
2889 if test -n "$STRIP"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2891 $as_echo "$STRIP" >&6; }
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2899 if test -z "$ac_cv_prog_STRIP"; then
2901 # Extract the first word of "strip", so it can be a program name with args.
2902 set dummy strip; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2906 $as_echo_n "(cached) " >&6
2908 if test -n "$ac_ct_STRIP"; then
2909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_ac_ct_STRIP="strip"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2929 if test -n "$ac_ct_STRIP"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2931 $as_echo "$ac_ct_STRIP" >&6; }
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2937 if test "x$ac_ct_STRIP" = x; then
2940 case $cross_compiling:$ac_tool_warned in
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2944 ac_tool_warned=yes ;;
2949 STRIP="$ac_cv_prog_STRIP"
2953 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2956 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2957 if test -z "$MKDIR_P"; then
2958 if test "${ac_cv_path_mkdir+set}" = set; then :
2959 $as_echo_n "(cached) " >&6
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2965 test -z "$as_dir" && as_dir=.
2966 for ac_prog in mkdir gmkdir; do
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2969 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2970 'mkdir (GNU coreutils) '* | \
2971 'mkdir (coreutils) '* | \
2972 'mkdir (fileutils) '4.1*)
2973 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2983 test -d ./--version && rmdir ./--version
2984 if test "${ac_cv_path_mkdir+set}" = set; then
2985 MKDIR_P="$ac_cv_path_mkdir -p"
2987 # As a last resort, use the slow shell script. Don't cache a
2988 # value for MKDIR_P within a source directory, because that will
2989 # break other packages using the cache if that directory is
2990 # removed, or if the value is a relative name.
2991 MKDIR_P="$ac_install_sh -d"
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2995 $as_echo "$MKDIR_P" >&6; }
2999 [\\/$]* | ?:[\\/]*) ;;
3000 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3003 for ac_prog in gawk mawk nawk awk
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_AWK+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3012 if test -n "$AWK"; then
3013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_AWK="$ac_prog"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 if test -n "$AWK"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3035 $as_echo "$AWK" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3042 test -n "$AWK" && break
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3046 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3048 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3049 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3050 $as_echo_n "(cached) " >&6
3052 cat >conftest.make <<\_ACEOF
3055 @echo '@@@%%%=$(MAKE)=@@@%%%'
3057 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3058 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3060 eval ac_cv_prog_make_${ac_make}_set=yes;;
3062 eval ac_cv_prog_make_${ac_make}_set=no;;
3066 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068 $as_echo "yes" >&6; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 SET_MAKE="MAKE=${MAKE-make}"
3076 rm -rf .tst 2>/dev/null
3077 mkdir .tst 2>/dev/null
3078 if test -d .tst; then
3083 rmdir .tst 2>/dev/null
3085 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3086 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3087 # is not polluted with repeated "-I."
3088 am__isrc=' -I$(srcdir)'
3089 # test to see if srcdir already configured
3090 if test -f $srcdir/config.status; then
3091 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3095 # test whether we have cygpath
3096 if test -z "$CYGPATH_W"; then
3097 if (cygpath --version) >/dev/null 2>/dev/null; then
3098 CYGPATH_W='cygpath -w'
3105 # Define the identity of the package.
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE "$PACKAGE"
3115 cat >>confdefs.h <<_ACEOF
3116 #define VERSION "$VERSION"
3119 # Some tools Automake needs.
3121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3135 # We need awk for the "check" target. The system "awk" is bad on
3137 # Always define AMTAR for backward compatibility.
3139 AMTAR=${AMTAR-"${am_missing_run}tar"}
3141 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3147 ac_config_headers="$ac_config_headers src/config.h"
3151 if test x"$CFLAGS" = x""; then
3157 $as_echo "#define _GNU_SOURCE /**/" >>confdefs.h
3161 ac_cpp='$CPP $CPPFLAGS'
3162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165 if test -n "$ac_tool_prefix"; then
3166 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if test "${ac_cv_prog_CC+set}" = set; then :
3171 $as_echo_n "(cached) " >&6
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 if test -n "$CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 $as_echo "$CC" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3204 if test -z "$ac_cv_prog_CC"; then
3206 # Extract the first word of "gcc", so it can be a program name with args.
3207 set dummy gcc; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3211 $as_echo_n "(cached) " >&6
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_CC="gcc"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3236 $as_echo "$ac_ct_CC" >&6; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3242 if test "x$ac_ct_CC" = x; then
3245 case $cross_compiling:$ac_tool_warned in
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3249 ac_tool_warned=yes ;;
3257 if test -z "$CC"; then
3258 if test -n "$ac_tool_prefix"; then
3259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3260 set dummy ${ac_tool_prefix}cc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if test "${ac_cv_prog_CC+set}" = set; then :
3264 $as_echo_n "(cached) " >&6
3266 if test -n "$CC"; then
3267 ac_cv_prog_CC="$CC" # Let the user override the test.
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_CC="${ac_tool_prefix}cc"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 if test -n "$CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3298 if test -z "$CC"; then
3299 # Extract the first word of "cc", so it can be a program name with args.
3300 set dummy cc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if test "${ac_cv_prog_CC+set}" = set; then :
3304 $as_echo_n "(cached) " >&6
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC="$CC" # Let the user override the test.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3318 ac_prog_rejected=yes
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 if test $ac_prog_rejected = yes; then
3330 # We found a bogon in the path, so make sure we never use it.
3331 set dummy $ac_cv_prog_CC
3333 if test $# != 0; then
3334 # We chose a different compiler from the bogus one.
3335 # However, it has the same basename, so the bogon will be chosen
3336 # first if we set CC to just the basename; use the full file name.
3338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3344 if test -n "$CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3354 if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 for ac_prog in cl.exe
3358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if test "${ac_cv_prog_CC+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 if test -n "$CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388 $as_echo "$CC" >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3395 test -n "$CC" && break
3398 if test -z "$CC"; then
3400 for ac_prog in cl.exe
3402 # Extract the first word of "$ac_prog", so it can be a program name with args.
3403 set dummy $ac_prog; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3407 $as_echo_n "(cached) " >&6
3409 if test -n "$ac_ct_CC"; then
3410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3419 ac_cv_prog_ac_ct_CC="$ac_prog"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3430 if test -n "$ac_ct_CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432 $as_echo "$ac_ct_CC" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3439 test -n "$ac_ct_CC" && break
3442 if test "x$ac_ct_CC" = x; then
3445 case $cross_compiling:$ac_tool_warned in
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3449 ac_tool_warned=yes ;;
3458 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error "no acceptable C compiler found in \$PATH
3461 See \`config.log' for more details." "$LINENO" 5; }
3463 # Provide some information about the compiler.
3464 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3467 for ac_option in --version -v -V -qversion; do
3468 { { ac_try="$ac_compiler $ac_option >&5"
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3477 if test -s conftest.err; then
3479 ... rest of stderr output deleted ...
3480 10q' conftest.err >conftest.er1
3481 cat conftest.er1 >&5
3483 rm -f conftest.er1 conftest.err
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3499 ac_clean_files_save=$ac_clean_files
3500 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3501 # Try to create an executable without -o first, disregard a.out.
3502 # It will help us diagnose broken compilers, and finding out an intuition
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3505 $as_echo_n "checking whether the C compiler works... " >&6; }
3506 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3508 # The possible output files:
3509 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3512 for ac_file in $ac_files
3515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3516 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521 if { { ac_try="$ac_link_default"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_link_default") 2>&5
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; then :
3532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3534 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3535 # so that the user can short-circuit this test for compilers unknown to
3537 for ac_file in $ac_files ''
3539 test -f "$ac_file" || continue
3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3544 # We found the default executable, but exeext='' is most
3548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3552 # We set ac_cv_exeext here because the later test for it is not
3553 # safe: cross compilers may not add the suffix if given an `-o'
3554 # argument, so we may need to know it at that point already.
3555 # Even if this section looks crufty: it has the advantage of
3562 test "$ac_cv_exeext" = no && ac_cv_exeext=
3567 if test -z "$ac_file"; then :
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 { as_fn_set_status 77
3576 as_fn_error "C compiler cannot create executables
3577 See \`config.log' for more details." "$LINENO" 5; }; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3580 $as_echo "yes" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3583 $as_echo_n "checking for C compiler default output file name... " >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3585 $as_echo "$ac_file" >&6; }
3586 ac_exeext=$ac_cv_exeext
3588 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3589 ac_clean_files=$ac_clean_files_save
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3591 $as_echo_n "checking for suffix of executables... " >&6; }
3592 if { { ac_try="$ac_link"
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_link") 2>&5
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; then :
3603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3605 # work properly (i.e., refer to `conftest.exe'), while it won't with
3607 for ac_file in conftest.exe conftest conftest.*; do
3608 test -f "$ac_file" || continue
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error "cannot compute suffix of executables: cannot compile and link
3620 See \`config.log' for more details." "$LINENO" 5; }
3622 rm -f conftest conftest$ac_cv_exeext
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3624 $as_echo "$ac_cv_exeext" >&6; }
3626 rm -f conftest.$ac_ext
3627 EXEEXT=$ac_cv_exeext
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3635 FILE *f = fopen ("conftest.out", "w");
3636 return ferror (f) || fclose (f) != 0;
3642 ac_clean_files="$ac_clean_files conftest.out"
3643 # Check that the compiler produces executables we can run. If not, either
3644 # the compiler is broken, or we cross compile.
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3646 $as_echo_n "checking whether we are cross compiling... " >&6; }
3647 if test "$cross_compiling" != yes; then
3648 { { ac_try="$ac_link"
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_link") 2>&5
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }
3659 if { ac_try='./conftest$ac_cv_exeext'
3660 { { case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_try") 2>&5
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; }; then
3672 if test "$cross_compiling" = maybe; then
3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3677 as_fn_error "cannot run C compiled programs.
3678 If you meant to cross compile, use \`--host'.
3679 See \`config.log' for more details." "$LINENO" 5; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3684 $as_echo "$cross_compiling" >&6; }
3686 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3687 ac_clean_files=$ac_clean_files_save
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3689 $as_echo_n "checking for suffix of object files... " >&6; }
3690 if test "${ac_cv_objext+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3704 rm -f conftest.o conftest.obj
3705 if { { ac_try="$ac_compile"
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 $as_echo "$ac_try_echo"; } >&5
3712 (eval "$ac_compile") 2>&5
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }; then :
3716 for ac_file in conftest.o conftest.obj conftest.*; do
3717 test -f "$ac_file" || continue;
3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3725 $as_echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730 as_fn_error "cannot compute suffix of object files: cannot compile
3731 See \`config.log' for more details." "$LINENO" 5; }
3733 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3736 $as_echo "$ac_cv_objext" >&6; }
3737 OBJEXT=$ac_cv_objext
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3740 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3741 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3758 if ac_fn_c_try_compile "$LINENO"; then :
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3768 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3769 if test $ac_compiler_gnu = yes; then
3774 ac_test_CFLAGS=${CFLAGS+set}
3775 ac_save_CFLAGS=$CFLAGS
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3777 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3778 if test "${ac_cv_prog_cc_g+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3781 ac_save_c_werror_flag=$ac_c_werror_flag
3782 ac_c_werror_flag=yes
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3796 if ac_fn_c_try_compile "$LINENO"; then :
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3811 if ac_fn_c_try_compile "$LINENO"; then :
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3827 if ac_fn_c_try_compile "$LINENO"; then :
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 ac_c_werror_flag=$ac_save_c_werror_flag
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3838 $as_echo "$ac_cv_prog_cc_g" >&6; }
3839 if test "$ac_test_CFLAGS" = set; then
3840 CFLAGS=$ac_save_CFLAGS
3841 elif test $ac_cv_prog_cc_g = yes; then
3842 if test "$GCC" = yes; then
3848 if test "$GCC" = yes; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3855 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3856 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3859 ac_cv_prog_cc_c89=no
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3865 #include <sys/types.h>
3866 #include <sys/stat.h>
3867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3868 struct buf { int x; };
3869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3870 static char *e (p, i)
3876 static char *f (char * (*g) (char **, int), char **p, ...)
3881 s = g (p, va_arg (v,int));
3886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3887 function prototypes and stuff, but not '\xHH' hex character constants.
3888 These don't provoke an error unfortunately, instead are silently treated
3889 as 'x'. The following induces an error, until -std is added to get
3890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3891 array size at least. It's necessary to write '\x00'==0 to get something
3892 that's true only with -std. */
3893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3895 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3896 inside strings and character constants. */
3898 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3900 int test (int i, double x);
3901 struct s1 {int (*f) (int a);};
3902 struct s2 {int (*f) (double a);};
3903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3914 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3917 CC="$ac_save_CC $ac_arg"
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919 ac_cv_prog_cc_c89=$ac_arg
3921 rm -f core conftest.err conftest.$ac_objext
3922 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924 rm -f conftest.$ac_ext
3929 case "x$ac_cv_prog_cc_c89" in
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3932 $as_echo "none needed" >&6; } ;;
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3935 $as_echo "unsupported" >&6; } ;;
3937 CC="$CC $ac_cv_prog_cc_c89"
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3939 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941 if test "x$ac_cv_prog_cc_c89" != xno; then :
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950 DEPDIR="${am__leading_dot}deps"
3952 ac_config_commands="$ac_config_commands depfiles"
3955 am_make=${MAKE-make}
3956 cat > confinc << 'END'
3958 @echo this is the am__doit target
3961 # If we don't find an include directive, just comment out the code.
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3963 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3967 # First try GNU make style include.
3968 echo "include confinc" > confmf
3969 # Ignore all kinds of additional output from `make'.
3970 case `$am_make -s -f confmf 2> /dev/null` in #(
3971 *the\ am__doit\ target*)
3977 # Now try BSD make style include.
3978 if test "$am__include" = "#"; then
3979 echo '.include "confinc"' > confmf
3980 case `$am_make -s -f confmf 2> /dev/null` in #(
3981 *the\ am__doit\ target*)
3982 am__include=.include
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3991 $as_echo "$_am_result" >&6; }
3992 rm -f confinc confmf
3994 # Check whether --enable-dependency-tracking was given.
3995 if test "${enable_dependency_tracking+set}" = set; then :
3996 enableval=$enable_dependency_tracking;
3999 if test "x$enable_dependency_tracking" != xno; then
4000 am_depcomp="$ac_aux_dir/depcomp"
4003 if test "x$enable_dependency_tracking" != xno; then
4013 depcc="$CC" am_compiler_list=
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4016 $as_echo_n "checking dependency style of $depcc... " >&6; }
4017 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4018 $as_echo_n "(cached) " >&6
4020 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4021 # We make a subdir and do the tests there. Otherwise we can end up
4022 # making bogus files that we don't know about and never remove. For
4023 # instance it was reported that on HP-UX the gcc test will end up
4024 # making a dummy file named `D' -- because `-MD' means `put the output
4027 # Copy depcomp to subdir because otherwise we won't find it if we're
4028 # using a relative directory.
4029 cp "$am_depcomp" conftest.dir
4031 # We will build objects and dependencies in a subdirectory because
4032 # it helps to detect inapplicable dependency modes. For instance
4033 # both Tru64's cc and ICC support -MD to output dependencies as a
4034 # side effect of compilation, but ICC will put the dependencies in
4035 # the current directory while Tru64 will put them in the object
4039 am_cv_CC_dependencies_compiler_type=none
4040 if test "$am_compiler_list" = ""; then
4041 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4044 case " $depcc " in #(
4045 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4048 for depmode in $am_compiler_list; do
4049 # Setup a source with many dependencies, because some compilers
4050 # like to wrap large dependency lists on column 80 (with \), and
4051 # we should not choose a depcomp mode which is confused by this.
4053 # We need to recreate these files for each test, as the compiler may
4054 # overwrite some of them when testing with obscure command lines.
4055 # This happens at least with the AIX C compiler.
4057 for i in 1 2 3 4 5 6; do
4058 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4059 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4060 # Solaris 8's {/usr,}/bin/sh.
4061 touch sub/conftst$i.h
4063 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4065 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4066 # mode. It turns out that the SunPro C++ compiler does not properly
4067 # handle `-M -o', and we need to detect this. Also, some Intel
4068 # versions had trouble with output in subdirs
4069 am__obj=sub/conftest.${OBJEXT-o}
4070 am__minus_obj="-o $am__obj"
4073 # This depmode causes a compiler race in universal mode.
4074 test "$am__universal" = false || continue
4077 # after this tag, mechanisms are not by side-effect, so they'll
4078 # only be used when explicitly requested
4079 if test "x$enable_dependency_tracking" = xyes; then
4085 msvisualcpp | msvcmsys)
4086 # This compiler won't grok `-c -o', but also, the minuso test has
4087 # not run yet. These depmodes are late enough in the game, and
4088 # so weak that their functioning should not be impacted.
4089 am__obj=conftest.${OBJEXT-o}
4094 if depmode=$depmode \
4095 source=sub/conftest.c object=$am__obj \
4096 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4097 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4098 >/dev/null 2>conftest.err &&
4099 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4100 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4101 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4102 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4103 # icc doesn't choke on unknown options, it will just issue warnings
4104 # or remarks (even with -Werror). So we grep stderr for any message
4105 # that says an option was ignored or not supported.
4106 # When given -MP, icc 7.0 and 7.1 complain thusly:
4107 # icc: Command line warning: ignoring option '-M'; no argument required
4108 # The diagnosis changed in icc 8.0:
4109 # icc: Command line remark: option '-MP' not supported
4110 if (grep 'ignoring option' conftest.err ||
4111 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4112 am_cv_CC_dependencies_compiler_type=$depmode
4121 am_cv_CC_dependencies_compiler_type=none
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4126 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4127 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4130 test "x$enable_dependency_tracking" != xno \
4131 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4133 am__fastdepCC_FALSE='#'
4135 am__fastdepCC_TRUE='#'
4136 am__fastdepCC_FALSE=
4140 # Make sure we can run config.sub.
4141 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4142 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4145 $as_echo_n "checking build system type... " >&6; }
4146 if test "${ac_cv_build+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
4149 ac_build_alias=$build_alias
4150 test "x$ac_build_alias" = x &&
4151 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4152 test "x$ac_build_alias" = x &&
4153 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4154 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4155 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4159 $as_echo "$ac_cv_build" >&6; }
4160 case $ac_cv_build in
4162 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4165 ac_save_IFS=$IFS; IFS='-'
4171 # Remember, the first character of IFS is used to create $*,
4172 # except with old shells:
4175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4179 $as_echo_n "checking host system type... " >&6; }
4180 if test "${ac_cv_host+set}" = set; then :
4181 $as_echo_n "(cached) " >&6
4183 if test "x$host_alias" = x; then
4184 ac_cv_host=$ac_cv_build
4186 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4187 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4192 $as_echo "$ac_cv_host" >&6; }
4195 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4198 ac_save_IFS=$IFS; IFS='-'
4204 # Remember, the first character of IFS is used to create $*,
4205 # except with old shells:
4208 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4212 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4213 if test "${ac_cv_path_SED+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4216 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4217 for ac_i in 1 2 3 4 5 6 7; do
4218 ac_script="$ac_script$as_nl$ac_script"
4220 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4221 { ac_script=; unset ac_script;}
4222 if test -z "$SED"; then
4223 ac_path_SED_found=false
4224 # Loop through the user's path and test for each of PROGNAME-LIST
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir=.
4230 for ac_prog in sed gsed; do
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4233 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4234 # Check for GNU ac_path_SED and select it if it is found.
4235 # Check for GNU $ac_path_SED
4236 case `"$ac_path_SED" --version 2>&1` in
4238 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4241 $as_echo_n 0123456789 >"conftest.in"
4244 cat "conftest.in" "conftest.in" >"conftest.tmp"
4245 mv "conftest.tmp" "conftest.in"
4246 cp "conftest.in" "conftest.nl"
4247 $as_echo '' >> "conftest.nl"
4248 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250 as_fn_arith $ac_count + 1 && ac_count=$as_val
4251 if test $ac_count -gt ${ac_path_SED_max-0}; then
4252 # Best one so far, save it but keep looking for a better one
4253 ac_cv_path_SED="$ac_path_SED"
4254 ac_path_SED_max=$ac_count
4256 # 10*(2^10) chars as input seems more than enough
4257 test $ac_count -gt 10 && break
4259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4262 $ac_path_SED_found && break 3
4267 if test -z "$ac_cv_path_SED"; then
4268 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4276 $as_echo "$ac_cv_path_SED" >&6; }
4277 SED="$ac_cv_path_SED"
4280 test -z "$SED" && SED=sed
4281 Xsed="$SED -e 1s/^X//"
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4294 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4295 if test "${ac_cv_path_GREP+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4298 if test -z "$GREP"; then
4299 ac_path_GREP_found=false
4300 # Loop through the user's path and test for each of PROGNAME-LIST
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4305 test -z "$as_dir" && as_dir=.
4306 for ac_prog in grep ggrep; do
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4310 # Check for GNU ac_path_GREP and select it if it is found.
4311 # Check for GNU $ac_path_GREP
4312 case `"$ac_path_GREP" --version 2>&1` in
4314 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4317 $as_echo_n 0123456789 >"conftest.in"
4320 cat "conftest.in" "conftest.in" >"conftest.tmp"
4321 mv "conftest.tmp" "conftest.in"
4322 cp "conftest.in" "conftest.nl"
4323 $as_echo 'GREP' >> "conftest.nl"
4324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326 as_fn_arith $ac_count + 1 && ac_count=$as_val
4327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4328 # Best one so far, save it but keep looking for a better one
4329 ac_cv_path_GREP="$ac_path_GREP"
4330 ac_path_GREP_max=$ac_count
4332 # 10*(2^10) chars as input seems more than enough
4333 test $ac_count -gt 10 && break
4335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4338 $ac_path_GREP_found && break 3
4343 if test -z "$ac_cv_path_GREP"; then
4344 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4347 ac_cv_path_GREP=$GREP
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4352 $as_echo "$ac_cv_path_GREP" >&6; }
4353 GREP="$ac_cv_path_GREP"
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4357 $as_echo_n "checking for egrep... " >&6; }
4358 if test "${ac_cv_path_EGREP+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4361 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4362 then ac_cv_path_EGREP="$GREP -E"
4364 if test -z "$EGREP"; then
4365 ac_path_EGREP_found=false
4366 # Loop through the user's path and test for each of PROGNAME-LIST
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4371 test -z "$as_dir" && as_dir=.
4372 for ac_prog in egrep; do
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4375 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4376 # Check for GNU ac_path_EGREP and select it if it is found.
4377 # Check for GNU $ac_path_EGREP
4378 case `"$ac_path_EGREP" --version 2>&1` in
4380 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4383 $as_echo_n 0123456789 >"conftest.in"
4386 cat "conftest.in" "conftest.in" >"conftest.tmp"
4387 mv "conftest.tmp" "conftest.in"
4388 cp "conftest.in" "conftest.nl"
4389 $as_echo 'EGREP' >> "conftest.nl"
4390 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4392 as_fn_arith $ac_count + 1 && ac_count=$as_val
4393 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4394 # Best one so far, save it but keep looking for a better one
4395 ac_cv_path_EGREP="$ac_path_EGREP"
4396 ac_path_EGREP_max=$ac_count
4398 # 10*(2^10) chars as input seems more than enough
4399 test $ac_count -gt 10 && break
4401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404 $ac_path_EGREP_found && break 3
4409 if test -z "$ac_cv_path_EGREP"; then
4410 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4413 ac_cv_path_EGREP=$EGREP
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4419 $as_echo "$ac_cv_path_EGREP" >&6; }
4420 EGREP="$ac_cv_path_EGREP"
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4424 $as_echo_n "checking for fgrep... " >&6; }
4425 if test "${ac_cv_path_FGREP+set}" = set; then :
4426 $as_echo_n "(cached) " >&6
4428 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4429 then ac_cv_path_FGREP="$GREP -F"
4431 if test -z "$FGREP"; then
4432 ac_path_FGREP_found=false
4433 # Loop through the user's path and test for each of PROGNAME-LIST
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4438 test -z "$as_dir" && as_dir=.
4439 for ac_prog in fgrep; do
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4442 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4443 # Check for GNU ac_path_FGREP and select it if it is found.
4444 # Check for GNU $ac_path_FGREP
4445 case `"$ac_path_FGREP" --version 2>&1` in
4447 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4450 $as_echo_n 0123456789 >"conftest.in"
4453 cat "conftest.in" "conftest.in" >"conftest.tmp"
4454 mv "conftest.tmp" "conftest.in"
4455 cp "conftest.in" "conftest.nl"
4456 $as_echo 'FGREP' >> "conftest.nl"
4457 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4459 as_fn_arith $ac_count + 1 && ac_count=$as_val
4460 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4461 # Best one so far, save it but keep looking for a better one
4462 ac_cv_path_FGREP="$ac_path_FGREP"
4463 ac_path_FGREP_max=$ac_count
4465 # 10*(2^10) chars as input seems more than enough
4466 test $ac_count -gt 10 && break
4468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4471 $ac_path_FGREP_found && break 3
4476 if test -z "$ac_cv_path_FGREP"; then
4477 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4480 ac_cv_path_FGREP=$FGREP
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4486 $as_echo "$ac_cv_path_FGREP" >&6; }
4487 FGREP="$ac_cv_path_FGREP"
4490 test -z "$GREP" && GREP=grep
4510 # Check whether --with-gnu-ld was given.
4511 if test "${with_gnu_ld+set}" = set; then :
4512 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4518 if test "$GCC" = yes; then
4519 # Check if gcc -print-prog-name=ld gives a path.
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4521 $as_echo_n "checking for ld used by $CC... " >&6; }
4524 # gcc leaves a trailing carriage return which upsets mingw
4525 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4527 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4530 # Accept absolute paths.
4532 re_direlt='/[^/][^/]*/\.\./'
4533 # Canonicalize the pathname of ld
4534 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4535 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4536 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4538 test -z "$LD" && LD="$ac_prog"
4541 # If it fails, then pretend we aren't using GCC.
4545 # If it is relative, then search for the first ld in PATH.
4549 elif test "$with_gnu_ld" = yes; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4551 $as_echo_n "checking for GNU ld... " >&6; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4554 $as_echo_n "checking for non-GNU ld... " >&6; }
4556 if test "${lt_cv_path_LD+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 if test -z "$LD"; then
4560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4561 for ac_dir in $PATH; do
4563 test -z "$ac_dir" && ac_dir=.
4564 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4565 lt_cv_path_LD="$ac_dir/$ac_prog"
4566 # Check to see if the program is GNU ld. I'd rather use --version,
4567 # but apparently some variants of GNU ld only accept -v.
4568 # Break only if it was the GNU/non-GNU ld that we prefer.
4569 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4570 *GNU* | *'with BFD'*)
4571 test "$with_gnu_ld" != no && break
4574 test "$with_gnu_ld" != yes && break
4581 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4586 if test -n "$LD"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4588 $as_echo "$LD" >&6; }
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4593 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4595 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4596 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4597 $as_echo_n "(cached) " >&6
4599 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4600 case `$LD -v 2>&1 </dev/null` in
4601 *GNU* | *'with BFD'*)
4602 lt_cv_prog_gnu_ld=yes
4605 lt_cv_prog_gnu_ld=no
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4610 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4611 with_gnu_ld=$lt_cv_prog_gnu_ld
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4625 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4630 macro_version='2.2.6b'
4631 macro_revision='1.3017'
4645 ltmain="$ac_aux_dir/ltmain.sh"
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4648 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4649 if test "${lt_cv_path_NM+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4652 if test -n "$NM"; then
4653 # Let the user override the test.
4656 lt_nm_to_check="${ac_tool_prefix}nm"
4657 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4658 lt_nm_to_check="$lt_nm_to_check nm"
4660 for lt_tmp_nm in $lt_nm_to_check; do
4661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4662 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4664 test -z "$ac_dir" && ac_dir=.
4665 tmp_nm="$ac_dir/$lt_tmp_nm"
4666 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4667 # Check to see if the nm accepts a BSD-compat flag.
4668 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4669 # nm: unknown option "B" ignored
4670 # Tru64's nm complains that /dev/null is an invalid object file
4671 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4672 */dev/null* | *'Invalid file or object type'*)
4673 lt_cv_path_NM="$tmp_nm -B"
4677 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4679 lt_cv_path_NM="$tmp_nm -p"
4683 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4684 continue # so that we can try to find one that supports BSD flags
4693 : ${lt_cv_path_NM=no}
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4697 $as_echo "$lt_cv_path_NM" >&6; }
4698 if test "$lt_cv_path_NM" != "no"; then
4701 # Didn't find any BSD compatible name lister, look for dumpbin.
4702 if test -n "$ac_tool_prefix"; then
4703 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4712 if test -n "$DUMPBIN"; then
4713 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 DUMPBIN=$ac_cv_prog_DUMPBIN
4733 if test -n "$DUMPBIN"; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4735 $as_echo "$DUMPBIN" >&6; }
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4742 test -n "$DUMPBIN" && break
4745 if test -z "$DUMPBIN"; then
4746 ac_ct_DUMPBIN=$DUMPBIN
4747 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4749 # Extract the first word of "$ac_prog", so it can be a program name with args.
4750 set dummy $ac_prog; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4756 if test -n "$ac_ct_DUMPBIN"; then
4757 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4777 if test -n "$ac_ct_DUMPBIN"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4779 $as_echo "$ac_ct_DUMPBIN" >&6; }
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4786 test -n "$ac_ct_DUMPBIN" && break
4789 if test "x$ac_ct_DUMPBIN" = x; then
4792 case $cross_compiling:$ac_tool_warned in
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4796 ac_tool_warned=yes ;;
4798 DUMPBIN=$ac_ct_DUMPBIN
4803 if test "$DUMPBIN" != ":"; then
4807 test -z "$NM" && NM=nm
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4815 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4816 if test "${lt_cv_nm_interface+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4819 lt_cv_nm_interface="BSD nm"
4820 echo "int some_variable = 0;" > conftest.$ac_ext
4821 (eval echo "\"\$as_me:4821: $ac_compile\"" >&5)
4822 (eval "$ac_compile" 2>conftest.err)
4823 cat conftest.err >&5
4824 (eval echo "\"\$as_me:4824: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4825 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4826 cat conftest.err >&5
4827 (eval echo "\"\$as_me:4827: output\"" >&5)
4828 cat conftest.out >&5
4829 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4830 lt_cv_nm_interface="MS dumpbin"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4835 $as_echo "$lt_cv_nm_interface" >&6; }
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4838 $as_echo_n "checking whether ln -s works... " >&6; }
4840 if test "$LN_S" = "ln -s"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4842 $as_echo "yes" >&6; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4845 $as_echo "no, using $LN_S" >&6; }
4848 # find the maximum length of command line arguments
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4850 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4851 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4859 # On DJGPP, this test can blow up pretty badly due to problems in libc
4860 # (any single argument exceeding 2000 bytes causes a buffer overrun
4861 # during glob expansion). Even if it were fixed, the result of this
4862 # check would be larger than it should be.
4863 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4867 # Under GNU Hurd, this test is not required because there is
4868 # no limit to the length of command line arguments.
4869 # Libtool will interpret -1 as no limit whatsoever
4870 lt_cv_sys_max_cmd_len=-1;
4873 cygwin* | mingw* | cegcc*)
4874 # On Win9x/ME, this test blows up -- it succeeds, but takes
4875 # about 5 minutes as the teststring grows exponentially.
4876 # Worse, since 9x/ME are not pre-emptively multitasking,
4877 # you end up with a "frozen" computer, even though with patience
4878 # the test eventually succeeds (with a max line length of 256k).
4879 # Instead, let's just punt: use the minimum linelength reported by
4880 # all of the supported platforms: 8192 (on NT/2K/XP).
4881 lt_cv_sys_max_cmd_len=8192;
4885 # On AmigaOS with pdksh, this test takes hours, literally.
4886 # So we just punt and use a minimum line length of 8192.
4887 lt_cv_sys_max_cmd_len=8192;
4890 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4891 # This has been around since 386BSD, at least. Likely further.
4892 if test -x /sbin/sysctl; then
4893 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4894 elif test -x /usr/sbin/sysctl; then
4895 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4897 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4899 # And add a safety zone
4900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4905 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4906 lt_cv_sys_max_cmd_len=196608
4910 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4911 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4912 # nice to cause kernel panics so lets avoid the loop below.
4913 # First set a reasonable default.
4914 lt_cv_sys_max_cmd_len=16384
4916 if test -x /sbin/sysconfig; then
4917 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4918 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4923 lt_cv_sys_max_cmd_len=102400
4925 sysv5* | sco5v6* | sysv4.2uw2*)
4926 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4927 if test -n "$kargmax"; then
4928 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4930 lt_cv_sys_max_cmd_len=32768
4934 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4935 if test -n "$lt_cv_sys_max_cmd_len"; then
4936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4939 # Make teststring a little bigger before we do anything with it.
4940 # a 1K string should be a reasonable start.
4941 for i in 1 2 3 4 5 6 7 8 ; do
4942 teststring=$teststring$teststring
4944 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4945 # If test is not a shell built-in, we'll probably end up computing a
4946 # maximum length that is only half of the actual maximum length, but
4948 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4949 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4950 test $i != 17 # 1/2 MB should be enough
4953 teststring=$teststring$teststring
4955 # Only check the string length outside the loop.
4956 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4958 # Add a significant safety factor because C++ compilers can tack on
4959 # massive amounts of additional arguments before passing them to the
4960 # linker. It appears as though 1/2 is a usable value.
4961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4968 if test -n $lt_cv_sys_max_cmd_len ; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4970 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4973 $as_echo "none" >&6; }
4975 max_cmd_len=$lt_cv_sys_max_cmd_len
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4987 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4988 # Try some XSI features
4991 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4993 && eval 'test $(( 1 + 1 )) -eq 2 \
4994 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4997 $as_echo "$xsi_shell" >&6; }
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5001 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5003 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5005 && lt_shell_append=yes
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5007 $as_echo "$lt_shell_append" >&6; }
5010 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5020 # test EBCDIC or ASCII
5021 case `echo X|tr X '\101'` in
5022 A) # ASCII based system
5023 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5024 lt_SP2NL='tr \040 \012'
5025 lt_NL2SP='tr \015\012 \040\040'
5027 *) # EBCDIC based system
5028 lt_SP2NL='tr \100 \n'
5029 lt_NL2SP='tr \r\n \100\100'
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5042 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5043 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5046 lt_cv_ld_reload_flag='-r'
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5049 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5050 reload_flag=$lt_cv_ld_reload_flag
5051 case $reload_flag in
5053 *) reload_flag=" $reload_flag" ;;
5055 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5058 if test "$GCC" = yes; then
5059 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5061 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5074 if test -n "$ac_tool_prefix"; then
5075 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5076 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5080 $as_echo_n "(cached) " >&6
5082 if test -n "$OBJDUMP"; then
5083 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 OBJDUMP=$ac_cv_prog_OBJDUMP
5103 if test -n "$OBJDUMP"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5105 $as_echo "$OBJDUMP" >&6; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5113 if test -z "$ac_cv_prog_OBJDUMP"; then
5114 ac_ct_OBJDUMP=$OBJDUMP
5115 # Extract the first word of "objdump", so it can be a program name with args.
5116 set dummy objdump; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5122 if test -n "$ac_ct_OBJDUMP"; then
5123 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5143 if test -n "$ac_ct_OBJDUMP"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5145 $as_echo "$ac_ct_OBJDUMP" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5151 if test "x$ac_ct_OBJDUMP" = x; then
5154 case $cross_compiling:$ac_tool_warned in
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158 ac_tool_warned=yes ;;
5160 OBJDUMP=$ac_ct_OBJDUMP
5163 OBJDUMP="$ac_cv_prog_OBJDUMP"
5166 test -z "$OBJDUMP" && OBJDUMP=objdump
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5177 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5178 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5181 lt_cv_file_magic_cmd='$MAGIC_CMD'
5182 lt_cv_file_magic_test_file=
5183 lt_cv_deplibs_check_method='unknown'
5184 # Need to set the preceding variable on all platforms that support
5185 # interlibrary dependencies.
5186 # 'none' -- dependencies not supported.
5187 # `unknown' -- same as none, but documents that we really don't know.
5188 # 'pass_all' -- all dependencies passed with no checks.
5189 # 'test_compile' -- check by making test program.
5190 # 'file_magic [[regex]]' -- check by looking for files in library path
5191 # which responds to the $file_magic_cmd with a given extended regex.
5192 # If you have `file' or equivalent on your system and you're not sure
5193 # whether `pass_all' will *always* work, you probably want this one.
5197 lt_cv_deplibs_check_method=pass_all
5201 lt_cv_deplibs_check_method=pass_all
5205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5206 lt_cv_file_magic_cmd='/usr/bin/file -L'
5207 lt_cv_file_magic_test_file=/shlib/libc.so
5211 # func_win32_libid is a shell function defined in ltmain.sh
5212 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5213 lt_cv_file_magic_cmd='func_win32_libid'
5217 # Base MSYS/MinGW do not provide the 'file' command needed by
5218 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5219 # unless we find 'file', for example because we are cross-compiling.
5220 if ( file / ) >/dev/null 2>&1; then
5221 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5222 lt_cv_file_magic_cmd='func_win32_libid'
5224 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5225 lt_cv_file_magic_cmd='$OBJDUMP -f'
5230 # use the weaker test based on 'objdump'. See mingw*.
5231 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5232 lt_cv_file_magic_cmd='$OBJDUMP -f'
5235 darwin* | rhapsody*)
5236 lt_cv_deplibs_check_method=pass_all
5239 freebsd* | dragonfly*)
5240 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5243 # Not sure whether the presence of OpenBSD here was a mistake.
5244 # Let's accept both of them until this is cleared up.
5245 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5246 lt_cv_file_magic_cmd=/usr/bin/file
5247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5251 lt_cv_deplibs_check_method=pass_all
5256 lt_cv_deplibs_check_method=pass_all
5259 hpux10.20* | hpux11*)
5260 lt_cv_file_magic_cmd=/usr/bin/file
5263 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5264 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5268 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5271 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5272 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5278 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5282 irix5* | irix6* | nonstopux*)
5284 *-32|*"-32 ") libmagic=32-bit;;
5285 *-n32|*"-n32 ") libmagic=N32;;
5286 *-64|*"-64 ") libmagic=64-bit;;
5287 *) libmagic=never-match;;
5289 lt_cv_deplibs_check_method=pass_all
5292 # This must be Linux ELF.
5293 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5294 lt_cv_deplibs_check_method=pass_all
5297 netbsd* | netbsdelf*-gnu)
5298 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5307 lt_cv_file_magic_cmd=/usr/bin/file
5308 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5312 lt_cv_deplibs_check_method=pass_all
5316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5323 osf3* | osf4* | osf5*)
5324 lt_cv_deplibs_check_method=pass_all
5328 lt_cv_deplibs_check_method=pass_all
5332 lt_cv_deplibs_check_method=pass_all
5335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5336 lt_cv_deplibs_check_method=pass_all
5340 case $host_vendor in
5342 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]'
5343 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5346 lt_cv_deplibs_check_method=pass_all
5349 lt_cv_file_magic_cmd='/bin/file'
5350 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5353 lt_cv_file_magic_cmd='/bin/file'
5354 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5355 lt_cv_file_magic_test_file=/lib/libc.so
5358 lt_cv_deplibs_check_method=pass_all
5361 lt_cv_deplibs_check_method=pass_all
5367 lt_cv_deplibs_check_method=pass_all
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5373 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5374 file_magic_cmd=$lt_cv_file_magic_cmd
5375 deplibs_check_method=$lt_cv_deplibs_check_method
5376 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5389 if test -n "$ac_tool_prefix"; then
5390 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5391 set dummy ${ac_tool_prefix}ar; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_AR+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5397 if test -n "$AR"; then
5398 ac_cv_prog_AR="$AR" # Let the user override the test.
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_AR="${ac_tool_prefix}ar"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 if test -n "$AR"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5420 $as_echo "$AR" >&6; }
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5428 if test -z "$ac_cv_prog_AR"; then
5430 # Extract the first word of "ar", so it can be a program name with args.
5431 set dummy ar; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5437 if test -n "$ac_ct_AR"; then
5438 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5447 ac_cv_prog_ac_ct_AR="ar"
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5458 if test -n "$ac_ct_AR"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5460 $as_echo "$ac_ct_AR" >&6; }
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5466 if test "x$ac_ct_AR" = x; then
5469 case $cross_compiling:$ac_tool_warned in
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473 ac_tool_warned=yes ;;
5481 test -z "$AR" && AR=ar
5482 test -z "$AR_FLAGS" && AR_FLAGS=cru
5494 if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5496 set dummy ${ac_tool_prefix}strip; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if test "${ac_cv_prog_STRIP+set}" = set; then :
5500 $as_echo_n "(cached) " >&6
5502 if test -n "$STRIP"; then
5503 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 STRIP=$ac_cv_prog_STRIP
5523 if test -n "$STRIP"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5525 $as_echo "$STRIP" >&6; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5533 if test -z "$ac_cv_prog_STRIP"; then
5535 # Extract the first word of "strip", so it can be a program name with args.
5536 set dummy strip; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5542 if test -n "$ac_ct_STRIP"; then
5543 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5552 ac_cv_prog_ac_ct_STRIP="strip"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5563 if test -n "$ac_ct_STRIP"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5565 $as_echo "$ac_ct_STRIP" >&6; }
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5571 if test "x$ac_ct_STRIP" = x; then
5574 case $cross_compiling:$ac_tool_warned in
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5578 ac_tool_warned=yes ;;
5583 STRIP="$ac_cv_prog_STRIP"
5586 test -z "$STRIP" && STRIP=:
5593 if test -n "$ac_tool_prefix"; then
5594 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5595 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 $as_echo_n "checking for $ac_word... " >&6; }
5598 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5599 $as_echo_n "(cached) " >&6
5601 if test -n "$RANLIB"; then
5602 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5611 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 RANLIB=$ac_cv_prog_RANLIB
5622 if test -n "$RANLIB"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5624 $as_echo "$RANLIB" >&6; }
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5632 if test -z "$ac_cv_prog_RANLIB"; then
5633 ac_ct_RANLIB=$RANLIB
5634 # Extract the first word of "ranlib", so it can be a program name with args.
5635 set dummy ranlib; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5641 if test -n "$ac_ct_RANLIB"; then
5642 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5651 ac_cv_prog_ac_ct_RANLIB="ranlib"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5662 if test -n "$ac_ct_RANLIB"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5664 $as_echo "$ac_ct_RANLIB" >&6; }
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5670 if test "x$ac_ct_RANLIB" = x; then
5673 case $cross_compiling:$ac_tool_warned in
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5677 ac_tool_warned=yes ;;
5679 RANLIB=$ac_ct_RANLIB
5682 RANLIB="$ac_cv_prog_RANLIB"
5685 test -z "$RANLIB" && RANLIB=:
5692 # Determine commands to create old-style static archives.
5693 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5694 old_postinstall_cmds='chmod 644 $oldlib'
5695 old_postuninstall_cmds=
5697 if test -n "$RANLIB"; then
5700 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5703 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5706 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5742 # If no C compiler was specified, use CC.
5745 # If no C compiler flags were specified, use CFLAGS.
5746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5748 # Allow CC to be a program name with arguments.
5752 # Check for command to grab the raw symbol name followed by C symbol from nm.
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5754 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5755 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5759 # These are sane defaults that work on at least a few old systems.
5760 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5762 # Character class describing NM global symbol codes.
5763 symcode='[BCDEGRST]'
5765 # Regexp to match symbols that can be accessed directly from C.
5766 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5768 # Define system-specific variables.
5773 cygwin* | mingw* | pw32* | cegcc*)
5774 symcode='[ABCDGISTW]'
5777 if test "$host_cpu" = ia64; then
5778 symcode='[ABCDEGRST]'
5782 symcode='[BCDEGRST]'
5785 symcode='[BCDEGQRST]'
5796 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5804 # If we're using GNU nm, then use its standard symbol codes.
5805 case `$NM -V 2>&1` in
5806 *GNU* | *'with BFD'*)
5807 symcode='[ABCDGIRSTW]' ;;
5810 # Transform an extracted symbol line into a proper C declaration.
5811 # Some systems (esp. on ia64) link data and code symbols differently,
5812 # so use this general approach.
5813 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5815 # Transform an extracted symbol line into symbol name and symbol address
5816 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5817 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'"
5819 # Handle CRLF in mingw tool chain
5823 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5827 # Try without a prefix underscore, then with it.
5828 for ac_symprfx in "" "_"; do
5830 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5831 symxfrm="\\1 $ac_symprfx\\2 \\2"
5833 # Write the raw and C identifiers.
5834 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5835 # Fake it for dumpbin and say T for any non-static function
5836 # and D for any global variable.
5837 # Also find C++ and __fastcall symbols from MSVC++,
5838 # which start with @ or ?.
5839 lt_cv_sys_global_symbol_pipe="$AWK '"\
5840 " {last_section=section; section=\$ 3};"\
5841 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5842 " \$ 0!~/External *\|/{next};"\
5843 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5844 " {if(hide[section]) next};"\
5845 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5846 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5847 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5848 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5849 " ' prfx=^$ac_symprfx"
5851 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5854 # Check to see that the pipe works correctly.
5858 cat > conftest.$ac_ext <<_LT_EOF
5863 void nm_test_func(void);
5864 void nm_test_func(void){}
5868 int main(){nm_test_var='a';nm_test_func();return(0);}
5871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5872 (eval $ac_compile) 2>&5
5874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5875 test $ac_status = 0; }; then
5876 # Now try to grab the symbols.
5878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5879 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5882 test $ac_status = 0; } && test -s "$nlist"; then
5883 # Try sorting and uniquifying the output.
5884 if sort "$nlist" | uniq > "$nlist"T; then
5885 mv -f "$nlist"T "$nlist"
5890 # Make sure that we snagged all the symbols we need.
5891 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5892 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5893 cat <<_LT_EOF > conftest.$ac_ext
5899 # Now generate the symbol file.
5900 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5902 cat <<_LT_EOF >> conftest.$ac_ext
5904 /* The mapping between symbol names and symbols. */
5909 lt__PROGRAM__LTX_preloaded_symbols[] =
5911 { "@PROGRAM@", (void *) 0 },
5913 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5914 cat <<\_LT_EOF >> conftest.$ac_ext
5918 /* This works around a problem in FreeBSD linker */
5919 #ifdef FREEBSD_WORKAROUND
5920 static const void *lt_preloaded_setup() {
5921 return lt__PROGRAM__LTX_preloaded_symbols;
5929 # Now try linking the two files.
5930 mv conftest.$ac_objext conftstm.$ac_objext
5931 lt_save_LIBS="$LIBS"
5932 lt_save_CFLAGS="$CFLAGS"
5933 LIBS="conftstm.$ac_objext"
5934 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5936 (eval $ac_link) 2>&5
5938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5939 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5942 LIBS="$lt_save_LIBS"
5943 CFLAGS="$lt_save_CFLAGS"
5945 echo "cannot find nm_test_func in $nlist" >&5
5948 echo "cannot find nm_test_var in $nlist" >&5
5951 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5954 echo "$progname: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5957 rm -rf conftest* conftst*
5959 # Do not use the global_symbol_pipe unless it works.
5960 if test "$pipe_works" = yes; then
5963 lt_cv_sys_global_symbol_pipe=
5969 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5970 lt_cv_sys_global_symbol_to_cdecl=
5972 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5974 $as_echo "failed" >&6; }
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5977 $as_echo "ok" >&6; }
6002 # Check whether --enable-libtool-lock was given.
6003 if test "${enable_libtool_lock+set}" = set; then :
6004 enableval=$enable_libtool_lock;
6007 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6009 # Some flags need to be propagated to the compiler or linker for good
6013 # Find out which ABI we are using.
6014 echo 'int i;' > conftest.$ac_ext
6015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6016 (eval $ac_compile) 2>&5
6018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6019 test $ac_status = 0; }; then
6020 case `/usr/bin/file conftest.$ac_objext` in
6032 # Find out which ABI we are using.
6033 echo '#line 6033 "configure"' > conftest.$ac_ext
6034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6035 (eval $ac_compile) 2>&5
6037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6038 test $ac_status = 0; }; then
6039 if test "$lt_cv_prog_gnu_ld" = yes; then
6040 case `/usr/bin/file conftest.$ac_objext` in
6042 LD="${LD-ld} -melf32bsmip"
6045 LD="${LD-ld} -melf32bmipn32"
6048 LD="${LD-ld} -melf64bmip"
6052 case `/usr/bin/file conftest.$ac_objext` in
6068 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6069 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6070 # Find out which ABI we are using.
6071 echo 'int i;' > conftest.$ac_ext
6072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6073 (eval $ac_compile) 2>&5
6075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6076 test $ac_status = 0; }; then
6077 case `/usr/bin/file conftest.o` in
6080 x86_64-*kfreebsd*-gnu)
6081 LD="${LD-ld} -m elf_i386_fbsd"
6084 LD="${LD-ld} -m elf_i386"
6086 ppc64-*linux*|powerpc64-*linux*)
6087 LD="${LD-ld} -m elf32ppclinux"
6090 LD="${LD-ld} -m elf_s390"
6093 LD="${LD-ld} -m elf32_sparc"
6099 x86_64-*kfreebsd*-gnu)
6100 LD="${LD-ld} -m elf_x86_64_fbsd"
6103 LD="${LD-ld} -m elf_x86_64"
6105 ppc*-*linux*|powerpc*-*linux*)
6106 LD="${LD-ld} -m elf64ppc"
6108 s390*-*linux*|s390*-*tpf*)
6109 LD="${LD-ld} -m elf64_s390"
6112 LD="${LD-ld} -m elf64_sparc"
6122 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6123 SAVE_CFLAGS="$CFLAGS"
6124 CFLAGS="$CFLAGS -belf"
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6126 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6127 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6131 ac_cpp='$CPP $CPPFLAGS'
6132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6147 if ac_fn_c_try_link "$LINENO"; then :
6148 lt_cv_cc_needs_belf=yes
6150 lt_cv_cc_needs_belf=no
6152 rm -f core conftest.err conftest.$ac_objext \
6153 conftest$ac_exeext conftest.$ac_ext
6155 ac_cpp='$CPP $CPPFLAGS'
6156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6162 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6163 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6164 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6165 CFLAGS="$SAVE_CFLAGS"
6169 # Find out which ABI we are using.
6170 echo 'int i;' > conftest.$ac_ext
6171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6172 (eval $ac_compile) 2>&5
6174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6175 test $ac_status = 0; }; then
6176 case `/usr/bin/file conftest.o` in
6178 case $lt_cv_prog_gnu_ld in
6179 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6181 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6193 need_locks="$enable_libtool_lock"
6197 rhapsody* | darwin*)
6198 if test -n "$ac_tool_prefix"; then
6199 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6200 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6204 $as_echo_n "(cached) " >&6
6206 if test -n "$DSYMUTIL"; then
6207 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6216 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6227 if test -n "$DSYMUTIL"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6229 $as_echo "$DSYMUTIL" >&6; }
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6237 if test -z "$ac_cv_prog_DSYMUTIL"; then
6238 ac_ct_DSYMUTIL=$DSYMUTIL
6239 # Extract the first word of "dsymutil", so it can be a program name with args.
6240 set dummy dsymutil; ac_word=$2
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242 $as_echo_n "checking for $ac_word... " >&6; }
6243 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6246 if test -n "$ac_ct_DSYMUTIL"; then
6247 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6267 if test -n "$ac_ct_DSYMUTIL"; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6269 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6275 if test "x$ac_ct_DSYMUTIL" = x; then
6278 case $cross_compiling:$ac_tool_warned in
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282 ac_tool_warned=yes ;;
6284 DSYMUTIL=$ac_ct_DSYMUTIL
6287 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6290 if test -n "$ac_tool_prefix"; then
6291 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6292 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6298 if test -n "$NMEDIT"; then
6299 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 NMEDIT=$ac_cv_prog_NMEDIT
6319 if test -n "$NMEDIT"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6321 $as_echo "$NMEDIT" >&6; }
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6329 if test -z "$ac_cv_prog_NMEDIT"; then
6330 ac_ct_NMEDIT=$NMEDIT
6331 # Extract the first word of "nmedit", so it can be a program name with args.
6332 set dummy nmedit; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6336 $as_echo_n "(cached) " >&6
6338 if test -n "$ac_ct_NMEDIT"; then
6339 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6359 if test -n "$ac_ct_NMEDIT"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6361 $as_echo "$ac_ct_NMEDIT" >&6; }
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6367 if test "x$ac_ct_NMEDIT" = x; then
6370 case $cross_compiling:$ac_tool_warned in
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374 ac_tool_warned=yes ;;
6376 NMEDIT=$ac_ct_NMEDIT
6379 NMEDIT="$ac_cv_prog_NMEDIT"
6382 if test -n "$ac_tool_prefix"; then
6383 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6384 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_LIPO+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6390 if test -n "$LIPO"; then
6391 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 LIPO=$ac_cv_prog_LIPO
6411 if test -n "$LIPO"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6413 $as_echo "$LIPO" >&6; }
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6421 if test -z "$ac_cv_prog_LIPO"; then
6423 # Extract the first word of "lipo", so it can be a program name with args.
6424 set dummy lipo; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6430 if test -n "$ac_ct_LIPO"; then
6431 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_ac_ct_LIPO="lipo"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6451 if test -n "$ac_ct_LIPO"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6453 $as_echo "$ac_ct_LIPO" >&6; }
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6459 if test "x$ac_ct_LIPO" = x; then
6462 case $cross_compiling:$ac_tool_warned in
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466 ac_tool_warned=yes ;;
6471 LIPO="$ac_cv_prog_LIPO"
6474 if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6476 set dummy ${ac_tool_prefix}otool; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6480 $as_echo_n "(cached) " >&6
6482 if test -n "$OTOOL"; then
6483 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 OTOOL=$ac_cv_prog_OTOOL
6503 if test -n "$OTOOL"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6505 $as_echo "$OTOOL" >&6; }
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6513 if test -z "$ac_cv_prog_OTOOL"; then
6515 # Extract the first word of "otool", so it can be a program name with args.
6516 set dummy otool; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6522 if test -n "$ac_ct_OTOOL"; then
6523 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_ac_ct_OTOOL="otool"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6543 if test -n "$ac_ct_OTOOL"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6545 $as_echo "$ac_ct_OTOOL" >&6; }
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6551 if test "x$ac_ct_OTOOL" = x; then
6554 case $cross_compiling:$ac_tool_warned in
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558 ac_tool_warned=yes ;;
6563 OTOOL="$ac_cv_prog_OTOOL"
6566 if test -n "$ac_tool_prefix"; then
6567 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6574 if test -n "$OTOOL64"; then
6575 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 OTOOL64=$ac_cv_prog_OTOOL64
6595 if test -n "$OTOOL64"; then
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6597 $as_echo "$OTOOL64" >&6; }
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6605 if test -z "$ac_cv_prog_OTOOL64"; then
6606 ac_ct_OTOOL64=$OTOOL64
6607 # Extract the first word of "otool64", so it can be a program name with args.
6608 set dummy otool64; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6612 $as_echo_n "(cached) " >&6
6614 if test -n "$ac_ct_OTOOL64"; then
6615 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_ac_ct_OTOOL64="otool64"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6635 if test -n "$ac_ct_OTOOL64"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6637 $as_echo "$ac_ct_OTOOL64" >&6; }
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6643 if test "x$ac_ct_OTOOL64" = x; then
6646 case $cross_compiling:$ac_tool_warned in
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6650 ac_tool_warned=yes ;;
6652 OTOOL64=$ac_ct_OTOOL64
6655 OTOOL64="$ac_cv_prog_OTOOL64"
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6685 $as_echo_n "checking for -single_module linker flag... " >&6; }
6686 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6689 lt_cv_apple_cc_single_mod=no
6690 if test -z "${LT_MULTI_MODULE}"; then
6691 # By default we will add the -single_module flag. You can override
6692 # by either setting the environment variable LT_MULTI_MODULE
6693 # non-empty at configure time, or by adding -multi_module to the
6695 rm -rf libconftest.dylib*
6696 echo "int foo(void){return 1;}" > conftest.c
6697 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6698 -dynamiclib -Wl,-single_module conftest.c" >&5
6699 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6700 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6702 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6703 lt_cv_apple_cc_single_mod=yes
6705 cat conftest.err >&5
6707 rm -rf libconftest.dylib*
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6712 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6714 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6715 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6716 $as_echo_n "(cached) " >&6
6718 lt_cv_ld_exported_symbols_list=no
6719 save_LDFLAGS=$LDFLAGS
6720 echo "_main" > conftest.sym
6721 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6733 if ac_fn_c_try_link "$LINENO"; then :
6734 lt_cv_ld_exported_symbols_list=yes
6736 lt_cv_ld_exported_symbols_list=no
6738 rm -f core conftest.err conftest.$ac_objext \
6739 conftest$ac_exeext conftest.$ac_ext
6740 LDFLAGS="$save_LDFLAGS"
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6744 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6746 rhapsody* | darwin1.[012])
6747 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6749 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6750 darwin*) # darwin 5.x on
6751 # if running on 10.5 or later, the deployment target defaults
6752 # to the OS version, if on x86, and 10.4, the deployment
6753 # target defaults to 10.4. Don't you love it?
6754 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6755 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6756 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6760 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6764 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6765 _lt_dar_single_mod='$single_module'
6767 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6768 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6770 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6772 if test "$DSYMUTIL" != ":"; then
6773 _lt_dsymutil='~$DSYMUTIL $lib || :'
6781 ac_cpp='$CPP $CPPFLAGS'
6782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6786 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6787 # On Suns, sometimes $CPP names a directory.
6788 if test -n "$CPP" && test -d "$CPP"; then
6791 if test -z "$CPP"; then
6792 if test "${ac_cv_prog_CPP+set}" = set; then :
6793 $as_echo_n "(cached) " >&6
6795 # Double quotes because CPP needs to be expanded
6796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6799 for ac_c_preproc_warn_flag in '' yes
6801 # Use a header file that comes with gcc, so configuring glibc
6802 # with a fresh cross-compiler works.
6803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6804 # <limits.h> exists even on freestanding compilers.
6805 # On the NeXT, cc -E runs the code through the compiler's parser,
6806 # not just through cpp. "Syntax error" is here to catch this case.
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6810 # include <limits.h>
6812 # include <assert.h>
6816 if ac_fn_c_try_cpp "$LINENO"; then :
6819 # Broken: fails on valid input.
6822 rm -f conftest.err conftest.$ac_ext
6824 # OK, works on sane cases. Now check whether nonexistent headers
6825 # can be detected and how.
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 #include <ac_nonexistent.h>
6830 if ac_fn_c_try_cpp "$LINENO"; then :
6831 # Broken: success on invalid input.
6834 # Passes both tests.
6838 rm -f conftest.err conftest.$ac_ext
6841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6842 rm -f conftest.err conftest.$ac_ext
6843 if $ac_preproc_ok; then :
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6856 $as_echo "$CPP" >&6; }
6858 for ac_c_preproc_warn_flag in '' yes
6860 # Use a header file that comes with gcc, so configuring glibc
6861 # with a fresh cross-compiler works.
6862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6863 # <limits.h> exists even on freestanding compilers.
6864 # On the NeXT, cc -E runs the code through the compiler's parser,
6865 # not just through cpp. "Syntax error" is here to catch this case.
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6869 # include <limits.h>
6871 # include <assert.h>
6875 if ac_fn_c_try_cpp "$LINENO"; then :
6878 # Broken: fails on valid input.
6881 rm -f conftest.err conftest.$ac_ext
6883 # OK, works on sane cases. Now check whether nonexistent headers
6884 # can be detected and how.
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 #include <ac_nonexistent.h>
6889 if ac_fn_c_try_cpp "$LINENO"; then :
6890 # Broken: success on invalid input.
6893 # Passes both tests.
6897 rm -f conftest.err conftest.$ac_ext
6900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6901 rm -f conftest.err conftest.$ac_ext
6902 if $ac_preproc_ok; then :
6905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6907 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6908 See \`config.log' for more details." "$LINENO" 5; }
6912 ac_cpp='$CPP $CPPFLAGS'
6913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6919 $as_echo_n "checking for ANSI C header files... " >&6; }
6920 if test "${ac_cv_header_stdc+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6938 if ac_fn_c_try_compile "$LINENO"; then :
6939 ac_cv_header_stdc=yes
6941 ac_cv_header_stdc=no
6943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945 if test $ac_cv_header_stdc = yes; then
6946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953 $EGREP "memchr" >/dev/null 2>&1; then :
6956 ac_cv_header_stdc=no
6962 if test $ac_cv_header_stdc = yes; then
6963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970 $EGREP "free" >/dev/null 2>&1; then :
6973 ac_cv_header_stdc=no
6979 if test $ac_cv_header_stdc = yes; then
6980 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6981 if test "$cross_compiling" = yes; then :
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6988 #if ((' ' & 0x0FF) == 0x020)
6989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6992 # define ISLOWER(c) \
6993 (('a' <= (c) && (c) <= 'i') \
6994 || ('j' <= (c) && (c) <= 'r') \
6995 || ('s' <= (c) && (c) <= 'z'))
6996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7004 for (i = 0; i < 256; i++)
7005 if (XOR (islower (i), ISLOWER (i))
7006 || toupper (i) != TOUPPER (i))
7011 if ac_fn_c_try_run "$LINENO"; then :
7014 ac_cv_header_stdc=no
7016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7017 conftest.$ac_objext conftest.beam conftest.$ac_ext
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7023 $as_echo "$ac_cv_header_stdc" >&6; }
7024 if test $ac_cv_header_stdc = yes; then
7026 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7030 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7032 inttypes.h stdint.h unistd.h
7034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7035 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7037 eval as_val=\$$as_ac_Header
7038 if test "x$as_val" = x""yes; then :
7039 cat >>confdefs.h <<_ACEOF
7040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7048 for ac_header in dlfcn.h
7050 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7052 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7053 cat >>confdefs.h <<_ACEOF
7054 #define HAVE_DLFCN_H 1
7073 # Check whether --enable-shared was given.
7074 if test "${enable_shared+set}" = set; then :
7075 enableval=$enable_shared; p=${PACKAGE-default}
7077 yes) enable_shared=yes ;;
7078 no) enable_shared=no ;;
7081 # Look at the argument we got. We use all the common list separators.
7082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7083 for pkg in $enableval; do
7085 if test "X$pkg" = "X$p"; then
7104 # Check whether --enable-static was given.
7105 if test "${enable_static+set}" = set; then :
7106 enableval=$enable_static; p=${PACKAGE-default}
7108 yes) enable_static=yes ;;
7109 no) enable_static=no ;;
7112 # Look at the argument we got. We use all the common list separators.
7113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7114 for pkg in $enableval; do
7116 if test "X$pkg" = "X$p"; then
7136 # Check whether --with-pic was given.
7137 if test "${with_pic+set}" = set; then :
7138 withval=$with_pic; pic_mode="$withval"
7144 test -z "$pic_mode" && pic_mode=default
7152 # Check whether --enable-fast-install was given.
7153 if test "${enable_fast_install+set}" = set; then :
7154 enableval=$enable_fast_install; p=${PACKAGE-default}
7156 yes) enable_fast_install=yes ;;
7157 no) enable_fast_install=no ;;
7159 enable_fast_install=no
7160 # Look at the argument we got. We use all the common list separators.
7161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7162 for pkg in $enableval; do
7164 if test "X$pkg" = "X$p"; then
7165 enable_fast_install=yes
7172 enable_fast_install=yes
7185 # This can be used to rebuild libtool when needed
7186 LIBTOOL_DEPS="$ltmain"
7188 # Always use our own libtool.
7189 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7215 test -z "$LN_S" && LN_S="ln -s"
7230 if test -n "${ZSH_VERSION+set}" ; then
7231 setopt NO_GLOB_SUBST
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7235 $as_echo_n "checking for objdir... " >&6; }
7236 if test "${lt_cv_objdir+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7239 rm -f .libs 2>/dev/null
7240 mkdir .libs 2>/dev/null
7241 if test -d .libs; then
7244 # MS-DOS does not allow filenames that begin with a dot.
7247 rmdir .libs 2>/dev/null
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7250 $as_echo "$lt_cv_objdir" >&6; }
7251 objdir=$lt_cv_objdir
7257 cat >>confdefs.h <<_ACEOF
7258 #define LT_OBJDIR "$lt_cv_objdir/"
7279 # AIX sometimes has problems with the GCC collect2 program. For some
7280 # reason, if we set the COLLECT_NAMES environment variable, the problems
7281 # vanish in a puff of smoke.
7282 if test "X${COLLECT_NAMES+set}" != Xset; then
7284 export COLLECT_NAMES
7289 # Sed substitution that helps us do robust quoting. It backslashifies
7290 # metacharacters that are still active within double-quoted strings.
7291 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7293 # Same as above, but do not quote variable references.
7294 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7296 # Sed substitution to delay expansion of an escaped shell variable in a
7297 # double_quote_subst'ed string.
7298 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7300 # Sed substitution to delay expansion of an escaped single quote.
7301 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7303 # Sed substitution to avoid accidental globbing in evaled expressions
7304 no_glob_subst='s/\*/\\\*/g'
7308 can_build_shared=yes
7310 # All known linkers require a `.a' archive for static linking (except MSVC,
7311 # which needs '.lib').
7314 with_gnu_ld="$lt_cv_prog_gnu_ld"
7317 old_CFLAGS="$CFLAGS"
7319 # Set sane defaults for various variables
7320 test -z "$CC" && CC=cc
7321 test -z "$LTCC" && LTCC=$CC
7322 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7323 test -z "$LD" && LD=ld
7324 test -z "$ac_objext" && ac_objext=o
7326 for cc_temp in $compiler""; do
7328 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7329 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7334 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7337 # Only perform the check for file, if the check method requires it
7338 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7339 case $deplibs_check_method in
7341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7343 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7344 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
7349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7352 lt_save_MAGIC_CMD="$MAGIC_CMD"
7353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7355 for ac_dir in $ac_dummy; do
7357 test -z "$ac_dir" && ac_dir=.
7358 if test -f $ac_dir/${ac_tool_prefix}file; then
7359 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7360 if test -n "$file_magic_test_file"; then
7361 case $deplibs_check_method in
7363 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7366 $EGREP "$file_magic_regex" > /dev/null; then
7371 *** Warning: the command libtool uses to detect shared libraries,
7372 *** $file_magic_cmd, produces output that libtool cannot recognize.
7373 *** The result is that libtool may fail to recognize shared libraries
7374 *** as such. This will affect the creation of libtool libraries that
7375 *** depend on shared libraries, but programs linked with such libtool
7376 *** libraries will work regardless of this problem. Nevertheless, you
7377 *** may want to report the problem to your system manager and/or to
7378 *** bug-libtool@gnu.org
7388 MAGIC_CMD="$lt_save_MAGIC_CMD"
7393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7394 if test -n "$MAGIC_CMD"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7396 $as_echo "$MAGIC_CMD" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7406 if test -z "$lt_cv_path_MAGIC_CMD"; then
7407 if test -n "$ac_tool_prefix"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7409 $as_echo_n "checking for file... " >&6; }
7410 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7411 $as_echo_n "(cached) " >&6
7415 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7418 lt_save_MAGIC_CMD="$MAGIC_CMD"
7419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7420 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7421 for ac_dir in $ac_dummy; do
7423 test -z "$ac_dir" && ac_dir=.
7424 if test -f $ac_dir/file; then
7425 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7426 if test -n "$file_magic_test_file"; then
7427 case $deplibs_check_method in
7429 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7432 $EGREP "$file_magic_regex" > /dev/null; then
7437 *** Warning: the command libtool uses to detect shared libraries,
7438 *** $file_magic_cmd, produces output that libtool cannot recognize.
7439 *** The result is that libtool may fail to recognize shared libraries
7440 *** as such. This will affect the creation of libtool libraries that
7441 *** depend on shared libraries, but programs linked with such libtool
7442 *** libraries will work regardless of this problem. Nevertheless, you
7443 *** may want to report the problem to your system manager and/or to
7444 *** bug-libtool@gnu.org
7454 MAGIC_CMD="$lt_save_MAGIC_CMD"
7459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460 if test -n "$MAGIC_CMD"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7462 $as_echo "$MAGIC_CMD" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7478 # Use C for the default configuration in the libtool script
7482 ac_cpp='$CPP $CPPFLAGS'
7483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7488 # Source file extension for C test sources.
7491 # Object file extension for compiled C test sources.
7495 # Code to be used in simple compile tests
7496 lt_simple_compile_test_code="int some_variable = 0;"
7498 # Code to be used in simple link tests
7499 lt_simple_link_test_code='int main(){return(0);}'
7507 # If no C compiler was specified, use CC.
7510 # If no C compiler flags were specified, use CFLAGS.
7511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7513 # Allow CC to be a program name with arguments.
7516 # Save the default compiler, since it gets overwritten when the other
7517 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7518 compiler_DEFAULT=$CC
7520 # save warnings/boilerplate of simple test code
7521 ac_outfile=conftest.$ac_objext
7522 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7523 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7524 _lt_compiler_boilerplate=`cat conftest.err`
7527 ac_outfile=conftest.$ac_objext
7528 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7529 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7530 _lt_linker_boilerplate=`cat conftest.err`
7535 ## There is no encapsulation within the following macros, do not change
7536 ## the running order or otherwise move them around unless you know exactly
7537 ## what you are doing...
7538 if test -n "$compiler"; then
7540 lt_prog_compiler_no_builtin_flag=
7542 if test "$GCC" = yes; then
7543 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7546 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7547 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7550 lt_cv_prog_compiler_rtti_exceptions=no
7551 ac_outfile=conftest.$ac_objext
7552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7553 lt_compiler_flag="-fno-rtti -fno-exceptions"
7554 # Insert the option either (1) after the last *FLAGS variable, or
7555 # (2) before a word containing "conftest.", or (3) at the end.
7556 # Note that $ac_compile itself does not contain backslashes and begins
7557 # with a dollar sign (not a hyphen), so the echo should work correctly.
7558 # The option is referenced via a variable to avoid confusing sed.
7559 lt_compile=`echo "$ac_compile" | $SED \
7560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7562 -e 's:$: $lt_compiler_flag:'`
7563 (eval echo "\"\$as_me:7563: $lt_compile\"" >&5)
7564 (eval "$lt_compile" 2>conftest.err)
7566 cat conftest.err >&5
7567 echo "$as_me:7567: \$? = $ac_status" >&5
7568 if (exit $ac_status) && test -s "$ac_outfile"; then
7569 # The compiler can only warn and ignore the option if not recognized
7570 # So say no if there are warnings other than the usual output.
7571 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7573 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7574 lt_cv_prog_compiler_rtti_exceptions=yes
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7581 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7583 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7584 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7596 lt_prog_compiler_wl=
7597 lt_prog_compiler_pic=
7598 lt_prog_compiler_static=
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7603 if test "$GCC" = yes; then
7604 lt_prog_compiler_wl='-Wl,'
7605 lt_prog_compiler_static='-static'
7609 # All AIX code is PIC.
7610 if test "$host_cpu" = ia64; then
7611 # AIX 5 now supports IA64 processor
7612 lt_prog_compiler_static='-Bstatic'
7619 # see comment about AmigaOS4 .so support
7620 lt_prog_compiler_pic='-fPIC'
7623 # FIXME: we need at least 68020 code to build shared libraries, but
7624 # adding the `-m68020' flag to GCC prevents building anything better,
7626 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7631 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7632 # PIC is the default for these OSes.
7635 mingw* | cygwin* | pw32* | os2* | cegcc*)
7636 # This hack is so that the source file can tell whether it is being
7637 # built for inclusion in a dll (and should export symbols for example).
7638 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7639 # (--disable-auto-import) libraries
7640 lt_prog_compiler_pic='-DDLL_EXPORT'
7643 darwin* | rhapsody*)
7644 # PIC is the default on this platform
7645 # Common symbols not allowed in MH_DYLIB files
7646 lt_prog_compiler_pic='-fno-common'
7650 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7651 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7652 # sets the default TLS model and affects inlining.
7658 lt_prog_compiler_pic='-fPIC'
7664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7665 # Instead, we relocate shared libraries at runtime.
7669 # Just because we use GCC doesn't mean we suddenly get shared libraries
7670 # on systems that don't support them.
7671 lt_prog_compiler_can_build_shared=no
7676 # QNX uses GNU C++, but need to define -shared option too, otherwise
7678 lt_prog_compiler_pic='-fPIC -shared'
7682 if test -d /usr/nec; then
7683 lt_prog_compiler_pic=-Kconform_pic
7688 lt_prog_compiler_pic='-fPIC'
7692 # PORTME Check for flag to pass linker flags through the system compiler.
7695 lt_prog_compiler_wl='-Wl,'
7696 if test "$host_cpu" = ia64; then
7697 # AIX 5 now supports IA64 processor
7698 lt_prog_compiler_static='-Bstatic'
7700 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7704 mingw* | cygwin* | pw32* | os2* | cegcc*)
7705 # This hack is so that the source file can tell whether it is being
7706 # built for inclusion in a dll (and should export symbols for example).
7707 lt_prog_compiler_pic='-DDLL_EXPORT'
7710 hpux9* | hpux10* | hpux11*)
7711 lt_prog_compiler_wl='-Wl,'
7712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7719 lt_prog_compiler_pic='+Z'
7722 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7723 lt_prog_compiler_static='${wl}-a ${wl}archive'
7726 irix5* | irix6* | nonstopux*)
7727 lt_prog_compiler_wl='-Wl,'
7728 # PIC (with -KPIC) is the default.
7729 lt_prog_compiler_static='-non_shared'
7732 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7733 case $cc_basename in
7734 # old Intel for x86_64 which still supported -KPIC.
7736 lt_prog_compiler_wl='-Wl,'
7737 lt_prog_compiler_pic='-KPIC'
7738 lt_prog_compiler_static='-static'
7740 # icc used to be incompatible with GCC.
7741 # ICC 10 doesn't accept -KPIC any more.
7743 lt_prog_compiler_wl='-Wl,'
7744 lt_prog_compiler_pic='-fPIC'
7745 lt_prog_compiler_static='-static'
7747 # Lahey Fortran 8.1.
7749 lt_prog_compiler_wl='-Wl,'
7750 lt_prog_compiler_pic='--shared'
7751 lt_prog_compiler_static='--static'
7753 pgcc* | pgf77* | pgf90* | pgf95*)
7754 # Portland Group compilers (*not* the Pentium gcc compiler,
7755 # which looks to be a dead project)
7756 lt_prog_compiler_wl='-Wl,'
7757 lt_prog_compiler_pic='-fpic'
7758 lt_prog_compiler_static='-Bstatic'
7761 lt_prog_compiler_wl='-Wl,'
7762 # All Alpha code is PIC.
7763 lt_prog_compiler_static='-non_shared'
7766 # IBM XL C 8.0/Fortran 10.1 on PPC
7767 lt_prog_compiler_wl='-Wl,'
7768 lt_prog_compiler_pic='-qpic'
7769 lt_prog_compiler_static='-qstaticlink'
7772 case `$CC -V 2>&1 | sed 5q` in
7775 lt_prog_compiler_pic='-KPIC'
7776 lt_prog_compiler_static='-Bstatic'
7777 lt_prog_compiler_wl='-Wl,'
7780 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7781 lt_prog_compiler_pic='-KPIC'
7782 lt_prog_compiler_static='-Bstatic'
7783 lt_prog_compiler_wl=''
7791 lt_prog_compiler_pic='-KPIC'
7792 lt_prog_compiler_static='-Bstatic'
7796 # QNX uses GNU C++, but need to define -shared option too, otherwise
7798 lt_prog_compiler_pic='-fPIC -shared'
7801 osf3* | osf4* | osf5*)
7802 lt_prog_compiler_wl='-Wl,'
7803 # All OSF/1 code is PIC.
7804 lt_prog_compiler_static='-non_shared'
7808 lt_prog_compiler_static='-non_shared'
7812 lt_prog_compiler_pic='-KPIC'
7813 lt_prog_compiler_static='-Bstatic'
7814 case $cc_basename in
7816 lt_prog_compiler_wl='-Qoption ld ';;
7818 lt_prog_compiler_wl='-Wl,';;
7823 lt_prog_compiler_wl='-Qoption ld '
7824 lt_prog_compiler_pic='-PIC'
7825 lt_prog_compiler_static='-Bstatic'
7828 sysv4 | sysv4.2uw2* | sysv4.3*)
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-Bstatic'
7835 if test -d /usr/nec ;then
7836 lt_prog_compiler_pic='-Kconform_pic'
7837 lt_prog_compiler_static='-Bstatic'
7841 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7842 lt_prog_compiler_wl='-Wl,'
7843 lt_prog_compiler_pic='-KPIC'
7844 lt_prog_compiler_static='-Bstatic'
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_can_build_shared=no
7853 lt_prog_compiler_pic='-pic'
7854 lt_prog_compiler_static='-Bstatic'
7858 lt_prog_compiler_can_build_shared=no
7864 # For platforms which do not support PIC, -DPIC is meaningless:
7866 lt_prog_compiler_pic=
7869 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7873 $as_echo "$lt_prog_compiler_pic" >&6; }
7881 # Check to make sure the PIC flag actually works.
7883 if test -n "$lt_prog_compiler_pic"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7885 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7886 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7889 lt_cv_prog_compiler_pic_works=no
7890 ac_outfile=conftest.$ac_objext
7891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7892 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7893 # Insert the option either (1) after the last *FLAGS variable, or
7894 # (2) before a word containing "conftest.", or (3) at the end.
7895 # Note that $ac_compile itself does not contain backslashes and begins
7896 # with a dollar sign (not a hyphen), so the echo should work correctly.
7897 # The option is referenced via a variable to avoid confusing sed.
7898 lt_compile=`echo "$ac_compile" | $SED \
7899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7901 -e 's:$: $lt_compiler_flag:'`
7902 (eval echo "\"\$as_me:7902: $lt_compile\"" >&5)
7903 (eval "$lt_compile" 2>conftest.err)
7905 cat conftest.err >&5
7906 echo "$as_me:7906: \$? = $ac_status" >&5
7907 if (exit $ac_status) && test -s "$ac_outfile"; then
7908 # The compiler can only warn and ignore the option if not recognized
7909 # So say no if there are warnings other than the usual output.
7910 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7913 lt_cv_prog_compiler_pic_works=yes
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7920 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7922 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7923 case $lt_prog_compiler_pic in
7925 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7928 lt_prog_compiler_pic=
7929 lt_prog_compiler_can_build_shared=no
7940 # Check to make sure the static flag actually works.
7942 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7944 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7945 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7948 lt_cv_prog_compiler_static_works=no
7949 save_LDFLAGS="$LDFLAGS"
7950 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7951 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7952 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7953 # The linker can only warn and ignore the option if not recognized
7954 # So say no if there are warnings
7955 if test -s conftest.err; then
7956 # Append any errors to the config.log.
7957 cat conftest.err 1>&5
7958 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7960 if diff conftest.exp conftest.er2 >/dev/null; then
7961 lt_cv_prog_compiler_static_works=yes
7964 lt_cv_prog_compiler_static_works=yes
7968 LDFLAGS="$save_LDFLAGS"
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7972 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7974 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7977 lt_prog_compiler_static=
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7987 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7988 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7991 lt_cv_prog_compiler_c_o=no
7992 $RM -r conftest 2>/dev/null
7996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7998 lt_compiler_flag="-o out/conftest2.$ac_objext"
7999 # Insert the option either (1) after the last *FLAGS variable, or
8000 # (2) before a word containing "conftest.", or (3) at the end.
8001 # Note that $ac_compile itself does not contain backslashes and begins
8002 # with a dollar sign (not a hyphen), so the echo should work correctly.
8003 lt_compile=`echo "$ac_compile" | $SED \
8004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8006 -e 's:$: $lt_compiler_flag:'`
8007 (eval echo "\"\$as_me:8007: $lt_compile\"" >&5)
8008 (eval "$lt_compile" 2>out/conftest.err)
8010 cat out/conftest.err >&5
8011 echo "$as_me:8011: \$? = $ac_status" >&5
8012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8014 # The compiler can only warn and ignore the option if not recognized
8015 # So say no if there are warnings
8016 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8017 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8018 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8019 lt_cv_prog_compiler_c_o=yes
8024 # SGI C++ compiler will create directory out/ii_files/ for
8025 # template instantiation
8026 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8027 $RM out/* && rmdir out
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8034 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8046 lt_cv_prog_compiler_c_o=no
8047 $RM -r conftest 2>/dev/null
8051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8053 lt_compiler_flag="-o out/conftest2.$ac_objext"
8054 # Insert the option either (1) after the last *FLAGS variable, or
8055 # (2) before a word containing "conftest.", or (3) at the end.
8056 # Note that $ac_compile itself does not contain backslashes and begins
8057 # with a dollar sign (not a hyphen), so the echo should work correctly.
8058 lt_compile=`echo "$ac_compile" | $SED \
8059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8061 -e 's:$: $lt_compiler_flag:'`
8062 (eval echo "\"\$as_me:8062: $lt_compile\"" >&5)
8063 (eval "$lt_compile" 2>out/conftest.err)
8065 cat out/conftest.err >&5
8066 echo "$as_me:8066: \$? = $ac_status" >&5
8067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8069 # The compiler can only warn and ignore the option if not recognized
8070 # So say no if there are warnings
8071 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8074 lt_cv_prog_compiler_c_o=yes
8079 # SGI C++ compiler will create directory out/ii_files/ for
8080 # template instantiation
8081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8082 $RM out/* && rmdir out
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8094 hard_links="nottested"
8095 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8096 # do not overwrite the value of need_locks provided by the user
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8098 $as_echo_n "checking if we can lock with hard links... " >&6; }
8101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8103 ln conftest.a conftest.b 2>&5 || hard_links=no
8104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8106 $as_echo "$hard_links" >&6; }
8107 if test "$hard_links" = no; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8109 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8122 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8125 allow_undefined_flag=
8126 always_export_symbols=no
8128 archive_expsym_cmds=
8129 compiler_needs_object=no
8130 enable_shared_with_static_runtimes=no
8131 export_dynamic_flag_spec=
8132 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8133 hardcode_automatic=no
8135 hardcode_direct_absolute=no
8136 hardcode_libdir_flag_spec=
8137 hardcode_libdir_flag_spec_ld=
8138 hardcode_libdir_separator=
8140 hardcode_shlibpath_var=unsupported
8142 link_all_deplibs=unknown
8145 old_archive_from_new_cmds=
8146 old_archive_from_expsyms_cmds=
8147 thread_safe_flag_spec=
8148 whole_archive_flag_spec=
8149 # include_expsyms should be a list of space-separated symbols to be *always*
8150 # included in the symbol list
8152 # exclude_expsyms can be an extended regexp of symbols to exclude
8153 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8154 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8155 # as well as any symbol that contains `d'.
8156 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8157 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8158 # platforms (ab)use it in PIC code, but their linkers get confused if
8159 # the symbol is explicitly referenced. Since portable code cannot
8160 # rely on this symbol name, it's probably fine to never include it in
8161 # preloaded symbol tables.
8162 # Exclude shared library initialization/finalization symbols.
8163 extract_expsyms_cmds=
8166 cygwin* | mingw* | pw32* | cegcc*)
8167 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8168 # When not using gcc, we currently assume that we are using
8169 # Microsoft Visual C++.
8170 if test "$GCC" != yes; then
8175 # we just hope/assume this is gcc and not c89 (= MSVC++)
8181 linux* | k*bsd*-gnu)
8187 if test "$with_gnu_ld" = yes; then
8188 # If archive_cmds runs LD, not CC, wlarc should be empty
8191 # Set some defaults for GNU ld with shared library support. These
8192 # are reset later if shared libraries are not supported. Putting them
8193 # here allows them to be overridden if necessary.
8194 runpath_var=LD_RUN_PATH
8195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8196 export_dynamic_flag_spec='${wl}--export-dynamic'
8197 # ancient GNU ld didn't support --whole-archive et. al.
8198 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8199 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8201 whole_archive_flag_spec=
8203 supports_anon_versioning=no
8204 case `$LD -v 2>&1` in
8205 *GNU\ gold*) supports_anon_versioning=yes ;;
8206 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8207 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8208 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8209 *\ 2.11.*) ;; # other 2.11 versions
8210 *) supports_anon_versioning=yes ;;
8213 # See if GNU ld supports shared libraries.
8216 # On AIX/PPC, the GNU linker is very broken
8217 if test "$host_cpu" != ia64; then
8221 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8222 *** to be unable to reliably create shared libraries on AIX.
8223 *** Therefore, libtool is disabling shared libraries support. If you
8224 *** really care for shared libraries, you may want to modify your PATH
8225 *** so that a non-GNU linker is found, and then restart.
8234 # see comment about AmigaOS4 .so support
8235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8236 archive_expsym_cmds=''
8239 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)'
8240 hardcode_libdir_flag_spec='-L$libdir'
8241 hardcode_minus_L=yes
8247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8248 allow_undefined_flag=unsupported
8249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8250 # support --undefined. This deserves some investigation. FIXME
8251 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8257 cygwin* | mingw* | pw32* | cegcc*)
8258 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8259 # as there is no search path for DLLs.
8260 hardcode_libdir_flag_spec='-L$libdir'
8261 allow_undefined_flag=unsupported
8262 always_export_symbols=no
8263 enable_shared_with_static_runtimes=yes
8264 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8266 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8268 # If the export-symbols file already is a .def file (1st line
8269 # is EXPORTS), use it as is; otherwise, prepend...
8270 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8271 cp $export_symbols $output_objdir/$soname.def;
8273 echo EXPORTS > $output_objdir/$soname.def;
8274 cat $export_symbols >> $output_objdir/$soname.def;
8276 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8284 hardcode_shlibpath_var=no
8285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8286 export_dynamic_flag_spec='${wl}-E'
8287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8288 # Instead, shared libraries are loaded at an image base (0x10000000 by
8289 # default) and relocated if they conflict, which is a slow very memory
8290 # consuming and fragmenting process. To avoid this, we pick a random,
8291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8294 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'
8297 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8299 if test "$host_os" = linux-dietlibc; then
8300 case $cc_basename in
8301 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8304 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8305 && test "$tmp_diet" = no
8308 tmp_sharedflag='-shared'
8309 case $cc_basename,$host_cpu in
8310 pgcc*) # Portland Group C compiler
8311 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8312 tmp_addflag=' $pic_flag'
8314 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8315 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8316 tmp_addflag=' $pic_flag -Mnomain' ;;
8317 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8318 tmp_addflag=' -i_dynamic' ;;
8319 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8320 tmp_addflag=' -i_dynamic -nofor_main' ;;
8321 ifc* | ifort*) # Intel Fortran compiler
8322 tmp_addflag=' -nofor_main' ;;
8323 lf95*) # Lahey Fortran 8.1
8324 whole_archive_flag_spec=
8325 tmp_sharedflag='--shared' ;;
8326 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8327 tmp_sharedflag='-qmkshrobj'
8330 case `$CC -V 2>&1 | sed 5q` in
8331 *Sun\ C*) # Sun C 5.9
8332 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8333 compiler_needs_object=yes
8334 tmp_sharedflag='-G' ;;
8335 *Sun\ F*) # Sun Fortran 8.3
8336 tmp_sharedflag='-G' ;;
8338 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8340 if test "x$supports_anon_versioning" = xyes; then
8341 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8343 echo "local: *; };" >> $output_objdir/$libname.ver~
8344 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8347 case $cc_basename in
8349 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8350 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8351 hardcode_libdir_flag_spec=
8352 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8353 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8354 if test "x$supports_anon_versioning" = xyes; then
8355 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8356 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8357 echo "local: *; };" >> $output_objdir/$libname.ver~
8358 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8367 netbsd* | netbsdelf*-gnu)
8368 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8369 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8378 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8383 *** create shared libraries on Solaris systems. Therefore, libtool
8384 *** is disabling shared libraries support. We urge you to upgrade GNU
8385 *** binutils to release 2.9.1 or newer. Another option is to modify
8386 *** your PATH or compiler configuration so that the native linker is
8387 *** used, and then restart.
8390 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8399 case `$LD -v 2>&1` in
8400 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8404 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8405 *** reliably create shared libraries on SCO systems. Therefore, libtool
8406 *** is disabling shared libraries support. We urge you to upgrade GNU
8407 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8408 *** your PATH or compiler configuration so that the native linker is
8409 *** used, and then restart.
8414 # For security reasons, it is highly recommended that you always
8415 # use absolute paths for naming shared libraries, and exclude the
8416 # DT_RUNPATH tag from executables and libraries. But doing so
8417 # requires that you compile everything twice, which is a pain.
8418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8430 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8433 hardcode_shlibpath_var=no
8437 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8446 if test "$ld_shlibs" = no; then
8448 hardcode_libdir_flag_spec=
8449 export_dynamic_flag_spec=
8450 whole_archive_flag_spec=
8453 # PORTME fill in a description of your system's linker (not GNU ld)
8456 allow_undefined_flag=unsupported
8457 always_export_symbols=yes
8458 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'
8459 # Note: this linker hardcodes the directories in LIBPATH if there
8460 # are no directories specified by -L.
8461 hardcode_minus_L=yes
8462 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8463 # Neither direct hardcoding nor static linking is supported with a
8465 hardcode_direct=unsupported
8470 if test "$host_cpu" = ia64; then
8471 # On IA64, the linker does run time linking by default, so we don't
8472 # have to do anything special.
8473 aix_use_runtimelinking=no
8474 exp_sym_flag='-Bexport'
8477 # If we're using GNU nm, then we don't want the "-C" option.
8478 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8479 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8480 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8482 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'
8484 aix_use_runtimelinking=no
8486 # Test if we are trying to use run time linking or normal
8487 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8488 # need to do runtime linking.
8489 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8490 for ld_flag in $LDFLAGS; do
8491 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8492 aix_use_runtimelinking=yes
8499 exp_sym_flag='-bexport'
8500 no_entry_flag='-bnoentry'
8503 # When large executables or shared objects are built, AIX ld can
8504 # have problems creating the table of contents. If linking a library
8505 # or program results in "error TOC overflow" add -mminimal-toc to
8506 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8507 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8511 hardcode_direct_absolute=yes
8512 hardcode_libdir_separator=':'
8513 link_all_deplibs=yes
8514 file_list_spec='${wl}-f,'
8516 if test "$GCC" = yes; then
8517 case $host_os in aix4.[012]|aix4.[012].*)
8518 # We only want to do this on AIX 4.2 and lower, the check
8519 # below for broken collect2 doesn't work under 4.3+
8520 collect2name=`${CC} -print-prog-name=collect2`
8521 if test -f "$collect2name" &&
8522 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8524 # We have reworked collect2
8527 # We have old collect2
8528 hardcode_direct=unsupported
8529 # It fails to find uninstalled libraries when the uninstalled
8530 # path is not listed in the libpath. Setting hardcode_minus_L
8531 # to unsupported forces relinking
8532 hardcode_minus_L=yes
8533 hardcode_libdir_flag_spec='-L$libdir'
8534 hardcode_libdir_separator=
8538 shared_flag='-shared'
8539 if test "$aix_use_runtimelinking" = yes; then
8540 shared_flag="$shared_flag "'${wl}-G'
8545 if test "$host_cpu" = ia64; then
8546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8547 # chokes on -Wl,-G. The following line is correct:
8550 if test "$aix_use_runtimelinking" = yes; then
8551 shared_flag='${wl}-G'
8553 shared_flag='${wl}-bM:SRE'
8558 export_dynamic_flag_spec='${wl}-bexpall'
8559 # It seems that -bexpall does not export symbols beginning with
8560 # underscore (_), so it is better to generate a list of symbols to export.
8561 always_export_symbols=yes
8562 if test "$aix_use_runtimelinking" = yes; then
8563 # Warning - without using the other runtime loading flags (-brtl),
8564 # -berok will link without error, but may produce a broken library.
8565 allow_undefined_flag='-berok'
8566 # Determine the default libpath from the value encoded in an
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8579 if ac_fn_c_try_link "$LINENO"; then :
8581 lt_aix_libpath_sed='
8582 /Import File Strings/,/^$/ {
8588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8589 # Check for a 64-bit object if we didn't find anything.
8590 if test -z "$aix_libpath"; then
8591 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8594 rm -f core conftest.err conftest.$ac_objext \
8595 conftest$ac_exeext conftest.$ac_ext
8596 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8598 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8599 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8601 if test "$host_cpu" = ia64; then
8602 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8603 allow_undefined_flag="-z nodefs"
8604 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"
8606 # Determine the default libpath from the value encoded in an
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8619 if ac_fn_c_try_link "$LINENO"; then :
8621 lt_aix_libpath_sed='
8622 /Import File Strings/,/^$/ {
8628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8629 # Check for a 64-bit object if we didn't find anything.
8630 if test -z "$aix_libpath"; then
8631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8634 rm -f core conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8638 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8639 # Warning - without using the other run time loading flags,
8640 # -berok will link without error, but may produce a broken library.
8641 no_undefined_flag=' ${wl}-bernotok'
8642 allow_undefined_flag=' ${wl}-berok'
8643 # Exported symbols can be pulled into shared objects from archives
8644 whole_archive_flag_spec='$convenience'
8645 archive_cmds_need_lc=yes
8646 # This is similar to how AIX traditionally builds its shared libraries.
8647 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'
8655 # see comment about AmigaOS4 .so support
8656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657 archive_expsym_cmds=''
8660 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)'
8661 hardcode_libdir_flag_spec='-L$libdir'
8662 hardcode_minus_L=yes
8668 export_dynamic_flag_spec=-rdynamic
8671 cygwin* | mingw* | pw32* | cegcc*)
8672 # When not using gcc, we currently assume that we are using
8673 # Microsoft Visual C++.
8674 # hardcode_libdir_flag_spec is actually meaningless, as there is
8675 # no search path for DLLs.
8676 hardcode_libdir_flag_spec=' '
8677 allow_undefined_flag=unsupported
8678 # Tell ltmain to make .lib files, not .a files.
8680 # Tell ltmain to make .dll files, not .so files.
8682 # FIXME: Setting linknames here is a bad hack.
8683 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8684 # The linker will automatically build a .lib file if we build a DLL.
8685 old_archive_from_new_cmds='true'
8686 # FIXME: Should let the user specify the lib program.
8687 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8688 fix_srcfile_path='`cygpath -w "$srcfile"`'
8689 enable_shared_with_static_runtimes=yes
8692 darwin* | rhapsody*)
8695 archive_cmds_need_lc=no
8697 hardcode_automatic=yes
8698 hardcode_shlibpath_var=unsupported
8699 whole_archive_flag_spec=''
8700 link_all_deplibs=yes
8701 allow_undefined_flag="$_lt_dar_allow_undefined"
8702 case $cc_basename in
8703 ifort*) _lt_dar_can_shared=yes ;;
8704 *) _lt_dar_can_shared=$GCC ;;
8706 if test "$_lt_dar_can_shared" = "yes"; then
8707 output_verbose_link_cmd=echo
8708 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8709 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8710 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}"
8711 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}"
8720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8721 hardcode_libdir_flag_spec='-L$libdir'
8722 hardcode_shlibpath_var=no
8729 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8730 # support. Future versions do this automatically, but an explicit c++rt0.o
8731 # does not break anything, and helps significantly (at the cost of a little
8734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8735 hardcode_libdir_flag_spec='-R$libdir'
8737 hardcode_shlibpath_var=no
8740 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8744 hardcode_minus_L=yes
8745 hardcode_shlibpath_var=no
8748 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8749 freebsd* | dragonfly*)
8750 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8751 hardcode_libdir_flag_spec='-R$libdir'
8753 hardcode_shlibpath_var=no
8757 if test "$GCC" = yes; then
8758 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8760 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'
8762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8763 hardcode_libdir_separator=:
8766 # hardcode_minus_L: Not really in the search PATH,
8767 # but as the default location of the library.
8768 hardcode_minus_L=yes
8769 export_dynamic_flag_spec='${wl}-E'
8773 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8774 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8776 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8778 if test "$with_gnu_ld" = no; then
8779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8780 hardcode_libdir_flag_spec_ld='+b $libdir'
8781 hardcode_libdir_separator=:
8783 hardcode_direct_absolute=yes
8784 export_dynamic_flag_spec='${wl}-E'
8785 # hardcode_minus_L: Not really in the search PATH,
8786 # but as the default location of the library.
8787 hardcode_minus_L=yes
8792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8795 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8798 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8801 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8807 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8810 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8813 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8817 if test "$with_gnu_ld" = no; then
8818 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8819 hardcode_libdir_separator=:
8824 hardcode_shlibpath_var=no
8828 hardcode_direct_absolute=yes
8829 export_dynamic_flag_spec='${wl}-E'
8831 # hardcode_minus_L: Not really in the search PATH,
8832 # but as the default location of the library.
8833 hardcode_minus_L=yes
8839 irix5* | irix6* | nonstopux*)
8840 if test "$GCC" = yes; then
8841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8842 # Try to use the -exported_symbol ld option, if it does not
8843 # work, assume that -exports_file does not work either and
8844 # implicitly export all symbols.
8845 save_LDFLAGS="$LDFLAGS"
8846 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8851 if ac_fn_c_try_link "$LINENO"; then :
8852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8855 rm -f core conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8857 LDFLAGS="$save_LDFLAGS"
8859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8860 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8862 archive_cmds_need_lc='no'
8863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8864 hardcode_libdir_separator=:
8866 link_all_deplibs=yes
8869 netbsd* | netbsdelf*-gnu)
8870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8873 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8875 hardcode_libdir_flag_spec='-R$libdir'
8877 hardcode_shlibpath_var=no
8881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8884 hardcode_libdir_separator=:
8885 hardcode_shlibpath_var=no
8892 if test -f /usr/libexec/ld.so; then
8894 hardcode_shlibpath_var=no
8895 hardcode_direct_absolute=yes
8896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8897 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8898 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8900 export_dynamic_flag_spec='${wl}-E'
8903 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8905 hardcode_libdir_flag_spec='-R$libdir'
8908 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8919 hardcode_libdir_flag_spec='-L$libdir'
8920 hardcode_minus_L=yes
8921 allow_undefined_flag=unsupported
8922 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'
8923 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8927 if test "$GCC" = yes; then
8928 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8929 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8931 allow_undefined_flag=' -expect_unresolved \*'
8932 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8934 archive_cmds_need_lc='no'
8935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8936 hardcode_libdir_separator=:
8939 osf4* | osf5*) # as osf3* with the addition of -msym flag
8940 if test "$GCC" = yes; then
8941 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8942 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8945 allow_undefined_flag=' -expect_unresolved \*'
8946 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8947 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~
8948 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8950 # Both c and cxx compiler support -rpath directly
8951 hardcode_libdir_flag_spec='-rpath $libdir'
8953 archive_cmds_need_lc='no'
8954 hardcode_libdir_separator=:
8958 no_undefined_flag=' -z defs'
8959 if test "$GCC" = yes; then
8961 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8962 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8963 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8965 case `$CC -V 2>&1` in
8968 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8974 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8975 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8976 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8980 hardcode_libdir_flag_spec='-R$libdir'
8981 hardcode_shlibpath_var=no
8983 solaris2.[0-5] | solaris2.[0-5].*) ;;
8985 # The compiler driver will combine and reorder linker options,
8986 # but understands `-z linker_flag'. GCC discards it without `$wl',
8987 # but is careful enough not to reorder.
8988 # Supported since Solaris 2.6 (maybe 2.5.1?)
8989 if test "$GCC" = yes; then
8990 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8992 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8996 link_all_deplibs=yes
9000 if test "x$host_vendor" = xsequent; then
9001 # Use $CC to link under sequent, because it throws in some extra .o
9002 # files that make .init and .fini sections work.
9003 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9005 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9007 hardcode_libdir_flag_spec='-L$libdir'
9009 hardcode_minus_L=yes
9010 hardcode_shlibpath_var=no
9014 case $host_vendor in
9016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9017 hardcode_direct=yes # is this really true???
9020 ## LD is ld it makes a PLAMLIB
9021 ## CC just makes a GrossModule.
9022 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9023 reload_cmds='$CC -r -o $output$reload_objs'
9027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9031 runpath_var='LD_RUN_PATH'
9032 hardcode_shlibpath_var=no
9036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9037 hardcode_shlibpath_var=no
9038 export_dynamic_flag_spec='-Bexport'
9042 if test -d /usr/nec; then
9043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044 hardcode_shlibpath_var=no
9045 runpath_var=LD_RUN_PATH
9046 hardcode_runpath_var=yes
9051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9052 no_undefined_flag='${wl}-z,text'
9053 archive_cmds_need_lc=no
9054 hardcode_shlibpath_var=no
9055 runpath_var='LD_RUN_PATH'
9057 if test "$GCC" = yes; then
9058 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9059 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9066 sysv5* | sco3.2v5* | sco5v6*)
9067 # Note: We can NOT use -z defs as we might desire, because we do not
9068 # link with -lc, and that would cause any symbols used from libc to
9069 # always be unresolved, which means just about no library would
9070 # ever link correctly. If we're not using GNU ld we use -z text
9071 # though, which does catch some bad symbols but isn't as heavy-handed
9073 no_undefined_flag='${wl}-z,text'
9074 allow_undefined_flag='${wl}-z,nodefs'
9075 archive_cmds_need_lc=no
9076 hardcode_shlibpath_var=no
9077 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9078 hardcode_libdir_separator=':'
9079 link_all_deplibs=yes
9080 export_dynamic_flag_spec='${wl}-Bexport'
9081 runpath_var='LD_RUN_PATH'
9083 if test "$GCC" = yes; then
9084 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9085 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9087 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9088 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9094 hardcode_libdir_flag_spec='-L$libdir'
9095 hardcode_shlibpath_var=no
9103 if test x$host_vendor = xsni; then
9105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9106 export_dynamic_flag_spec='${wl}-Blargedynsym'
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9113 $as_echo "$ld_shlibs" >&6; }
9114 test "$ld_shlibs" = no && can_build_shared=no
9116 with_gnu_ld=$with_gnu_ld
9133 # Do we need to explicitly link libc?
9135 case "x$archive_cmds_need_lc" in
9137 # Assume -lc should be added
9138 archive_cmds_need_lc=yes
9140 if test "$enable_shared" = yes && test "$GCC" = yes; then
9141 case $archive_cmds in
9143 # FIXME: we may have to deal with multi-command sequences.
9146 # Test whether the compiler implicitly links with -lc since on some
9147 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9148 # to ld, don't add -lc before -lgcc.
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9150 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9155 (eval $ac_compile) 2>&5
9157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9158 test $ac_status = 0; } 2>conftest.err; then
9161 libobjs=conftest.$ac_objext
9163 wl=$lt_prog_compiler_wl
9164 pic_flag=$lt_prog_compiler_pic
9170 lt_save_allow_undefined_flag=$allow_undefined_flag
9171 allow_undefined_flag=
9172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9173 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9176 test $ac_status = 0; }
9178 archive_cmds_need_lc=no
9180 archive_cmds_need_lc=yes
9182 allow_undefined_flag=$lt_save_allow_undefined_flag
9184 cat conftest.err 1>&5
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9188 $as_echo "$archive_cmds_need_lc" >&6; }
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9352 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9354 if test "$GCC" = yes; then
9356 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9357 *) lt_awk_arg="/^libraries:/" ;;
9359 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9360 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9361 # if the path contains ";" then we assume it to be the separator
9362 # otherwise default to the standard path separator (i.e. ":") - it is
9363 # assumed that no part of a normal pathname contains ";" but that should
9364 # okay in the real world where ";" in dirpaths is itself problematic.
9365 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9367 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9369 # Ok, now we have the path, separated by spaces, we can step through it
9370 # and add multilib dir if necessary.
9371 lt_tmp_lt_search_path_spec=
9372 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9373 for lt_sys_path in $lt_search_path_spec; do
9374 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9375 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9377 test -d "$lt_sys_path" && \
9378 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9381 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9382 BEGIN {RS=" "; FS="/|\n";} {
9385 for (lt_i = NF; lt_i > 0; lt_i--) {
9386 if ($lt_i != "" && $lt_i != ".") {
9387 if ($lt_i == "..") {
9390 if (lt_count == 0) {
9391 lt_foo="/" $lt_i lt_foo;
9398 if (lt_foo != "") { lt_freq[lt_foo]++; }
9399 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9401 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9403 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9406 libname_spec='lib$name'
9414 shlibpath_overrides_runpath=unknown
9416 dynamic_linker="$host_os ld.so"
9417 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9418 need_lib_prefix=unknown
9419 hardcode_into_libs=no
9421 # when you set need_version to no, make sure it does not cause -set_version
9422 # flags to be left without arguments
9423 need_version=unknown
9428 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9429 shlibpath_var=LIBPATH
9431 # AIX 3 has no versioning support, so we append a major version to the name.
9432 soname_spec='${libname}${release}${shared_ext}$major'
9439 hardcode_into_libs=yes
9440 if test "$host_cpu" = ia64; then
9441 # AIX 5 supports IA64
9442 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9443 shlibpath_var=LD_LIBRARY_PATH
9445 # With GCC up to 2.95.x, collect2 would create an import file
9446 # for dependence libraries. The import file would start with
9447 # the line `#! .'. This would cause the generated library to
9448 # depend on `.', always an invalid library. This was fixed in
9449 # development snapshots of GCC prior to 3.0.
9451 aix4 | aix4.[01] | aix4.[01].*)
9452 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9454 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9461 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9462 # soname into executable. Probably we can add versioning support to
9463 # collect2, so additional links can be useful in future.
9464 if test "$aix_use_runtimelinking" = yes; then
9465 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9466 # instead of lib<name>.a to let people know that these are not
9467 # typical AIX shared libraries.
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470 # We preserve .a as extension for shared libraries through AIX4.2
9471 # and later when we are not doing run time linking.
9472 library_names_spec='${libname}${release}.a $libname.a'
9473 soname_spec='${libname}${release}${shared_ext}$major'
9475 shlibpath_var=LIBPATH
9482 # Since July 2007 AmigaOS4 officially supports .so libraries.
9483 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487 library_names_spec='$libname.ixlibrary $libname.a'
9488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9489 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9495 library_names_spec='${libname}${shared_ext}'
9496 dynamic_linker="$host_os ld.so"
9497 shlibpath_var=LIBRARY_PATH
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 soname_spec='${libname}${release}${shared_ext}$major'
9505 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9506 shlibpath_var=LD_LIBRARY_PATH
9507 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9508 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9509 # the default ld.so.conf also contains /usr/contrib/lib and
9510 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9511 # libtool to hard-code these into programs
9514 cygwin* | mingw* | pw32* | cegcc*)
9515 version_type=windows
9520 case $GCC,$host_os in
9521 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9522 library_names_spec='$libname.dll.a'
9523 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9524 postinstall_cmds='base_file=`basename \${file}`~
9525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9526 dldir=$destdir/`dirname \$dlpath`~
9527 test -d \$dldir || mkdir -p \$dldir~
9528 $install_prog $dir/$dlname \$dldir/$dlname~
9529 chmod a+x \$dldir/$dlname~
9530 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9531 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9534 dlpath=$dir/\$dldll~
9536 shlibpath_overrides_runpath=yes
9540 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9541 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9542 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9545 # MinGW DLLs use traditional 'lib' prefix
9546 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9547 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9548 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9549 # It is most probably a Windows format PATH printed by
9550 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9551 # path with ; separators, and with drive letters. We can handle the
9552 # drive letters (cygwin fileutils understands them), so leave them,
9553 # especially as we might pass files found there to a mingw objdump,
9554 # which wouldn't understand a cygwinified path. Ahh.
9555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9557 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9561 # pw32 DLLs use 'pw' prefix rather than 'lib'
9562 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9568 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9571 dynamic_linker='Win32 ld.exe'
9572 # FIXME: first we should search . and the directory the executable is in
9576 darwin* | rhapsody*)
9577 dynamic_linker="$host_os dyld"
9581 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9582 soname_spec='${libname}${release}${major}$shared_ext'
9583 shlibpath_overrides_runpath=yes
9584 shlibpath_var=DYLD_LIBRARY_PATH
9585 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9587 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9588 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 shlibpath_var=LD_LIBRARY_PATH
9604 freebsd* | dragonfly*)
9605 # DragonFly does not have aout. When/if they implement a new
9606 # versioning mechanism, adjust this.
9607 if test -x /usr/bin/objformat; then
9608 objformat=`/usr/bin/objformat`
9611 freebsd[123]*) objformat=aout ;;
9615 version_type=freebsd-$objformat
9616 case $version_type in
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9627 shlibpath_var=LD_LIBRARY_PATH
9630 shlibpath_overrides_runpath=yes
9632 freebsd3.[01]* | freebsdelf3.[01]*)
9633 shlibpath_overrides_runpath=yes
9634 hardcode_into_libs=yes
9636 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9637 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9638 shlibpath_overrides_runpath=no
9639 hardcode_into_libs=yes
9641 *) # from 4.6 on, and DragonFly
9642 shlibpath_overrides_runpath=yes
9643 hardcode_into_libs=yes
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9653 soname_spec='${libname}${release}${shared_ext}$major'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 hardcode_into_libs=yes
9658 hpux9* | hpux10* | hpux11*)
9659 # Give a soname corresponding to the major version so that dld.sl refuses to
9660 # link against other versions.
9667 hardcode_into_libs=yes
9668 dynamic_linker="$host_os dld.so"
9669 shlibpath_var=LD_LIBRARY_PATH
9670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9672 soname_spec='${libname}${release}${shared_ext}$major'
9673 if test "X$HPUX_IA64_MODE" = X32; then
9674 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9676 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9682 hardcode_into_libs=yes
9683 dynamic_linker="$host_os dld.sl"
9684 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9693 dynamic_linker="$host_os dld.sl"
9694 shlibpath_var=SHLIB_PATH
9695 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9700 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9701 postinstall_cmds='chmod 555 $lib'
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9709 soname_spec='${libname}${release}${shared_ext}$major'
9710 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9711 shlibpath_var=LD_LIBRARY_PATH
9712 shlibpath_overrides_runpath=no
9713 hardcode_into_libs=yes
9716 irix5* | irix6* | nonstopux*)
9718 nonstopux*) version_type=nonstopux ;;
9720 if test "$lt_cv_prog_gnu_ld" = yes; then
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9731 irix5* | nonstopux*)
9735 case $LD in # libtool.m4 will add one of these switches to LD
9736 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9737 libsuff= shlibsuff= libmagic=32-bit;;
9738 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9739 libsuff=32 shlibsuff=N32 libmagic=N32;;
9740 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9741 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9742 *) libsuff= shlibsuff= libmagic=never-match;;
9746 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9747 shlibpath_overrides_runpath=no
9748 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9749 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9750 hardcode_into_libs=yes
9753 # No shared lib support for Linux oldld, aout, or coff.
9754 linux*oldld* | linux*aout* | linux*coff*)
9758 # This must be Linux ELF.
9759 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764 soname_spec='${libname}${release}${shared_ext}$major'
9765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9766 shlibpath_var=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath=no
9768 # Some binutils ld are patched to set DT_RUNPATH
9769 save_LDFLAGS=$LDFLAGS
9771 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9772 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9784 if ac_fn_c_try_link "$LINENO"; then :
9785 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9786 shlibpath_overrides_runpath=yes
9789 rm -f core conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext conftest.$ac_ext
9791 LDFLAGS=$save_LDFLAGS
9794 # This implies no fast_install, which is unacceptable.
9795 # Some rework will be needed to allow for fast_install
9796 # before this can be enabled.
9797 hardcode_into_libs=yes
9799 # Append ld.so.conf contents to the search path
9800 if test -f /etc/ld.so.conf; then
9801 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9802 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9805 # We used to test for /lib/ld.so.1 and disable shared libraries on
9806 # powerpc, because MkLinux only supported shared libraries with the
9807 # GNU dynamic linker. Since this was broken with cross compilers,
9808 # most powerpc-linux boxes support dynamic linking these days and
9809 # people can always --disable-shared, the test was removed, and we
9810 # assume the GNU/Linux dynamic linker is in use.
9811 dynamic_linker='GNU/Linux ld.so'
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9819 soname_spec='${libname}${release}${shared_ext}$major'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 shlibpath_overrides_runpath=no
9822 hardcode_into_libs=yes
9823 dynamic_linker='NetBSD ld.elf_so'
9830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9833 dynamic_linker='NetBSD (a.out) ld.so'
9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9836 soname_spec='${libname}${release}${shared_ext}$major'
9837 dynamic_linker='NetBSD ld.elf_so'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 shlibpath_overrides_runpath=yes
9841 hardcode_into_libs=yes
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 soname_spec='${libname}${release}${shared_ext}$major'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 shlibpath_overrides_runpath=no
9859 hardcode_into_libs=yes
9860 dynamic_linker='ldqnx.so'
9865 sys_lib_dlsearch_path_spec="/usr/lib"
9867 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9869 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9870 *) need_version=no ;;
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9874 shlibpath_var=LD_LIBRARY_PATH
9875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9877 openbsd2.[89] | openbsd2.[89].*)
9878 shlibpath_overrides_runpath=no
9881 shlibpath_overrides_runpath=yes
9885 shlibpath_overrides_runpath=yes
9890 libname_spec='$name'
9893 library_names_spec='$libname${shared_ext} $libname.a'
9894 dynamic_linker='OS/2 ld.exe'
9895 shlibpath_var=LIBPATH
9898 osf3* | osf4* | osf5*)
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9906 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 shlibpath_overrides_runpath=yes
9921 hardcode_into_libs=yes
9922 # ldd complains unless libraries are executable
9923 postinstall_cmds='chmod +x $lib'
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9929 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 shlibpath_overrides_runpath=yes
9932 if test "$with_gnu_ld" = yes; then
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 shlibpath_var=LD_LIBRARY_PATH
9943 case $host_vendor in
9945 shlibpath_overrides_runpath=no
9947 runpath_var=LD_RUN_PATH
9955 shlibpath_overrides_runpath=no
9956 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9962 if test -d /usr/nec ;then
9964 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9965 soname_spec='$libname${shared_ext}.$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9971 version_type=freebsd-elf
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 shlibpath_overrides_runpath=yes
9978 hardcode_into_libs=yes
9979 if test "$with_gnu_ld" = yes; then
9980 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9982 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9985 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9989 sys_lib_dlsearch_path_spec='/usr/lib'
9993 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998 shlibpath_var=LD_LIBRARY_PATH
9999 shlibpath_overrides_runpath=no
10000 hardcode_into_libs=yes
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 shlibpath_var=LD_LIBRARY_PATH
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10015 $as_echo "$dynamic_linker" >&6; }
10016 test "$dynamic_linker" = no && can_build_shared=no
10018 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10019 if test "$GCC" = yes; then
10020 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10023 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10024 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10026 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10027 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10117 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10119 if test -n "$hardcode_libdir_flag_spec" ||
10120 test -n "$runpath_var" ||
10121 test "X$hardcode_automatic" = "Xyes" ; then
10123 # We can hardcode non-existent directories.
10124 if test "$hardcode_direct" != no &&
10125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10126 # have to relink, otherwise we might link with an installed library
10127 # when we should be linking with a yet-to-be-installed one
10128 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10129 test "$hardcode_minus_L" != no; then
10130 # Linking always hardcodes the temporary library directory.
10131 hardcode_action=relink
10133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10134 hardcode_action=immediate
10137 # We cannot hardcode anything, or else we can only hardcode existing
10139 hardcode_action=unsupported
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10142 $as_echo "$hardcode_action" >&6; }
10144 if test "$hardcode_action" = relink ||
10145 test "$inherit_rpath" = yes; then
10146 # Fast installation is not supported
10147 enable_fast_install=no
10148 elif test "$shlibpath_overrides_runpath" = yes ||
10149 test "$enable_shared" = no; then
10150 # Fast installation is not necessary
10151 enable_fast_install=needless
10159 if test "x$enable_dlopen" != xyes; then
10160 enable_dlopen=unknown
10161 enable_dlopen_self=unknown
10162 enable_dlopen_self_static=unknown
10169 lt_cv_dlopen="load_add_on"
10171 lt_cv_dlopen_self=yes
10174 mingw* | pw32* | cegcc*)
10175 lt_cv_dlopen="LoadLibrary"
10180 lt_cv_dlopen="dlopen"
10185 # if libdl is installed we need to link against it
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10187 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10191 ac_check_lib_save_LIBS=$LIBS
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10211 if ac_fn_c_try_link "$LINENO"; then :
10212 ac_cv_lib_dl_dlopen=yes
10214 ac_cv_lib_dl_dlopen=no
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218 LIBS=$ac_check_lib_save_LIBS
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10221 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10222 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10226 lt_cv_dlopen="dyld"
10228 lt_cv_dlopen_self=yes
10235 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10236 if test "x$ac_cv_func_shl_load" = x""yes; then :
10237 lt_cv_dlopen="shl_load"
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10240 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10241 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10244 ac_check_lib_save_LIBS=$LIBS
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10259 return shl_load ();
10264 if ac_fn_c_try_link "$LINENO"; then :
10265 ac_cv_lib_dld_shl_load=yes
10267 ac_cv_lib_dld_shl_load=no
10269 rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10274 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10275 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10276 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10278 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10279 if test "x$ac_cv_func_dlopen" = x""yes; then :
10280 lt_cv_dlopen="dlopen"
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10284 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
10287 ac_check_lib_save_LIBS=$LIBS
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10292 /* Override any GCC internal prototype to avoid an error.
10293 Use char because int might match the return type of a GCC
10294 builtin and then its argument prototype would still apply. */
10307 if ac_fn_c_try_link "$LINENO"; then :
10308 ac_cv_lib_dl_dlopen=yes
10310 ac_cv_lib_dl_dlopen=no
10312 rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314 LIBS=$ac_check_lib_save_LIBS
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10317 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10318 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10322 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10323 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10324 $as_echo_n "(cached) " >&6
10326 ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-lsvld $LIBS"
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10331 /* Override any GCC internal prototype to avoid an error.
10332 Use char because int might match the return type of a GCC
10333 builtin and then its argument prototype would still apply. */
10346 if ac_fn_c_try_link "$LINENO"; then :
10347 ac_cv_lib_svld_dlopen=yes
10349 ac_cv_lib_svld_dlopen=no
10351 rm -f core conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10356 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10357 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10361 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10362 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10365 ac_check_lib_save_LIBS=$LIBS
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h. */
10370 /* Override any GCC internal prototype to avoid an error.
10371 Use char because int might match the return type of a GCC
10372 builtin and then its argument prototype would still apply. */
10380 return dld_link ();
10385 if ac_fn_c_try_link "$LINENO"; then :
10386 ac_cv_lib_dld_dld_link=yes
10388 ac_cv_lib_dld_dld_link=no
10390 rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10392 LIBS=$ac_check_lib_save_LIBS
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10395 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10396 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10397 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10418 if test "x$lt_cv_dlopen" != xno; then
10424 case $lt_cv_dlopen in
10426 save_CPPFLAGS="$CPPFLAGS"
10427 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10429 save_LDFLAGS="$LDFLAGS"
10430 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10433 LIBS="$lt_cv_dlopen_libs $LIBS"
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10436 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10437 if test "${lt_cv_dlopen_self+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10440 if test "$cross_compiling" = yes; then :
10441 lt_cv_dlopen_self=cross
10443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10444 lt_status=$lt_dlunknown
10445 cat > conftest.$ac_ext <<_LT_EOF
10446 #line 10446 "configure"
10447 #include "confdefs.h"
10456 # define LT_DLGLOBAL RTLD_GLOBAL
10459 # define LT_DLGLOBAL DL_GLOBAL
10461 # define LT_DLGLOBAL 0
10465 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10466 find out it does not work in some platform. */
10467 #ifndef LT_DLLAZY_OR_NOW
10469 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10472 # define LT_DLLAZY_OR_NOW DL_LAZY
10475 # define LT_DLLAZY_OR_NOW RTLD_NOW
10478 # define LT_DLLAZY_OR_NOW DL_NOW
10480 # define LT_DLLAZY_OR_NOW 0
10487 void fnord() { int i=42;}
10490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10491 int status = $lt_dlunknown;
10495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10496 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10497 /* dlclose (self); */
10505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10506 (eval $ac_link) 2>&5
10508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10509 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10510 (./conftest; exit; ) >&5 2>/dev/null
10512 case x$lt_status in
10513 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10514 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10515 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10518 # compilation failed
10519 lt_cv_dlopen_self=no
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10527 $as_echo "$lt_cv_dlopen_self" >&6; }
10529 if test "x$lt_cv_dlopen_self" = xyes; then
10530 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10532 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10533 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10534 $as_echo_n "(cached) " >&6
10536 if test "$cross_compiling" = yes; then :
10537 lt_cv_dlopen_self_static=cross
10539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10540 lt_status=$lt_dlunknown
10541 cat > conftest.$ac_ext <<_LT_EOF
10542 #line 10542 "configure"
10543 #include "confdefs.h"
10552 # define LT_DLGLOBAL RTLD_GLOBAL
10555 # define LT_DLGLOBAL DL_GLOBAL
10557 # define LT_DLGLOBAL 0
10561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10562 find out it does not work in some platform. */
10563 #ifndef LT_DLLAZY_OR_NOW
10565 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10568 # define LT_DLLAZY_OR_NOW DL_LAZY
10571 # define LT_DLLAZY_OR_NOW RTLD_NOW
10574 # define LT_DLLAZY_OR_NOW DL_NOW
10576 # define LT_DLLAZY_OR_NOW 0
10583 void fnord() { int i=42;}
10586 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10587 int status = $lt_dlunknown;
10591 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10592 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10593 /* dlclose (self); */
10601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10602 (eval $ac_link) 2>&5
10604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10605 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10606 (./conftest; exit; ) >&5 2>/dev/null
10608 case x$lt_status in
10609 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10610 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10611 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10614 # compilation failed
10615 lt_cv_dlopen_self_static=no
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10623 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10626 CPPFLAGS="$save_CPPFLAGS"
10627 LDFLAGS="$save_LDFLAGS"
10632 case $lt_cv_dlopen_self in
10633 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10634 *) enable_dlopen_self=unknown ;;
10637 case $lt_cv_dlopen_self_static in
10638 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10639 *) enable_dlopen_self_static=unknown ;;
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10662 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10663 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10664 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10665 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10667 $as_echo "yes" >&6; }
10669 # FIXME - insert some real tests, host_os isn't really good enough
10672 if test -n "$STRIP" ; then
10673 striplib="$STRIP -x"
10674 old_striplib="$STRIP -S"
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10676 $as_echo "yes" >&6; }
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; }
10700 # Report which library types will actually be built
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10702 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10704 $as_echo "$can_build_shared" >&6; }
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10707 $as_echo_n "checking whether to build shared libraries... " >&6; }
10708 test "$can_build_shared" = "no" && enable_shared=no
10710 # On AIX, shared libraries and static libraries use the same namespace, and
10711 # are all built from PIC.
10714 test "$enable_shared" = yes && enable_static=no
10715 if test -n "$RANLIB"; then
10716 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10717 postinstall_cmds='$RANLIB $lib'
10722 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10723 test "$enable_shared" = yes && enable_static=no
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10728 $as_echo "$enable_shared" >&6; }
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10731 $as_echo_n "checking whether to build static libraries... " >&6; }
10732 # Make sure either enable_shared or enable_static is yes.
10733 test "$enable_shared" = yes || enable_static=yes
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10735 $as_echo "$enable_static" >&6; }
10742 ac_cpp='$CPP $CPPFLAGS'
10743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10761 ac_config_commands="$ac_config_commands libtool"
10766 # Only expand once:
10770 if test "x$CC" != xcc; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10772 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10775 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10777 set dummy $CC; ac_cc=`$as_echo "$2" |
10778 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10779 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
10780 $as_echo_n "(cached) " >&6
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10793 # Make sure it works both with $CC and with simple cc.
10794 # We do the test twice because some compilers refuse to overwrite an
10795 # existing .o file with -o, though they will create one.
10796 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10798 if { { case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10803 $as_echo "$ac_try_echo"; } >&5
10804 (eval "$ac_try") 2>&5
10806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10807 test $ac_status = 0; } &&
10808 test -f conftest2.$ac_objext && { { case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10813 $as_echo "$ac_try_echo"; } >&5
10814 (eval "$ac_try") 2>&5
10816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10817 test $ac_status = 0; };
10819 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10820 if test "x$CC" != xcc; then
10821 # Test first that cc exists at all.
10822 if { ac_try='cc -c conftest.$ac_ext >&5'
10823 { { case "(($ac_try" in
10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 *) ac_try_echo=$ac_try;;
10827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10828 $as_echo "$ac_try_echo"; } >&5
10829 (eval "$ac_try") 2>&5
10831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10832 test $ac_status = 0; }; }; then
10833 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10835 if { { case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10840 $as_echo "$ac_try_echo"; } >&5
10841 (eval "$ac_try") 2>&5
10843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10844 test $ac_status = 0; } &&
10845 test -f conftest2.$ac_objext && { { case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10850 $as_echo "$ac_try_echo"; } >&5
10851 (eval "$ac_try") 2>&5
10853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10854 test $ac_status = 0; };
10859 # cc exists but doesn't like -o.
10860 eval ac_cv_prog_cc_${ac_cc}_c_o=no
10865 eval ac_cv_prog_cc_${ac_cc}_c_o=no
10867 rm -f core conftest*
10870 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10872 $as_echo "yes" >&6; }
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10877 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
10881 # FIXME: we rely on the cache variable name because
10882 # there is no other way.
10884 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10885 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
10886 if test "$am_t" != yes; then
10887 # Losing compiler, so override with the script.
10888 # FIXME: It is wrong to rewrite CC.
10889 # But if we don't then we get into trouble of one sort or another.
10890 # A longer-term fix would be to have automake use am__CC in this case,
10891 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10892 CC="$am_aux_dir/compile $CC"
10897 # Extract the first word of "pkg-config", so it can be a program name with args.
10898 set dummy pkg-config; ac_word=$2
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900 $as_echo_n "checking for $ac_word... " >&6; }
10901 if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
10904 if test -n "$HAVE_PKGCONFIG"; then
10905 ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
10907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908 for as_dir in $PATH
10911 test -z "$as_dir" && as_dir=.
10912 for ac_exec_ext in '' $ac_executable_extensions; do
10913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10914 ac_cv_prog_HAVE_PKGCONFIG="yes"
10915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
10925 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
10926 if test -n "$HAVE_PKGCONFIG"; then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKGCONFIG" >&5
10928 $as_echo "$HAVE_PKGCONFIG" >&6; }
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931 $as_echo "no" >&6; }
10935 if test x"$HAVE_PKGCONFIG" = x"no"; then
10936 as_fn_error "pkg-config is required!" "$LINENO" 5
10940 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10941 if test -n "$ac_tool_prefix"; then
10942 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10943 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945 $as_echo_n "checking for $ac_word... " >&6; }
10946 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10949 case $PKG_CONFIG in
10951 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10961 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10972 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10973 if test -n "$PKG_CONFIG"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10975 $as_echo "$PKG_CONFIG" >&6; }
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10983 if test -z "$ac_cv_path_PKG_CONFIG"; then
10984 ac_pt_PKG_CONFIG=$PKG_CONFIG
10985 # Extract the first word of "pkg-config", so it can be a program name with args.
10986 set dummy pkg-config; ac_word=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 $as_echo_n "checking for $ac_word... " >&6; }
10989 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
10992 case $ac_pt_PKG_CONFIG in
10994 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11004 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11015 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11016 if test -n "$ac_pt_PKG_CONFIG"; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11018 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11024 if test "x$ac_pt_PKG_CONFIG" = x; then
11027 case $cross_compiling:$ac_tool_warned in
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11031 ac_tool_warned=yes ;;
11033 PKG_CONFIG=$ac_pt_PKG_CONFIG
11036 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11040 if test -n "$PKG_CONFIG"; then
11041 _pkg_min_version=0.19
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11043 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11044 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11046 $as_echo "yes" >&6; }
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11055 ac_config_files="$ac_config_files Makefile data/Makefile doc/Makefile src/Makefile src/build.h lua/Makefile"
11064 FreeBSD*|GNU/kFreeBSD*)
11078 # Solaris doesn't work at all right now
11084 echo "Your operating system $uname isn't supported"
11085 echo "Feel free to help. :P"
11090 if test x$uname = xLinux; then
11092 BUILD_LINUX_FALSE='#'
11094 BUILD_LINUX_TRUE='#'
11098 #AM_CONDITIONAL(BUILD_SOLARIS, test x$uname = xSunOS)
11099 if test x$uname = xFreeBSD -o x$uname = xGNU/kFreeBSD; then
11100 BUILD_FREEBSD_TRUE=
11101 BUILD_FREEBSD_FALSE='#'
11103 BUILD_FREEBSD_TRUE='#'
11104 BUILD_FREEBSD_FALSE=
11107 #AM_CONDITIONAL(BUILD_NETBSD, test x$uname = xNetBSD)
11108 if test x$uname = xOpenBSD; then
11109 BUILD_OPENBSD_TRUE=
11110 BUILD_OPENBSD_FALSE='#'
11112 BUILD_OPENBSD_TRUE='#'
11113 BUILD_OPENBSD_FALSE=
11117 BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date)
11118 BUILD_ARCH="$(uname -sr) ($(uname -m))"
11124 # Check whether --enable-config_output was given.
11125 if test "${enable_config_output+set}" = set; then :
11126 enableval=$enable_config_output; want_config_output="$enableval"
11128 want_config_output=yes
11132 if test x$want_config_output = xyes; then
11133 BUILD_CONFIG_OUTPUT_TRUE=
11134 BUILD_CONFIG_OUTPUT_FALSE='#'
11136 BUILD_CONFIG_OUTPUT_TRUE='#'
11137 BUILD_CONFIG_OUTPUT_FALSE=
11140 if test x$want_config_output = xyes; then
11142 $as_echo "#define CONFIG_OUTPUT 1" >>confdefs.h
11144 for ac_func in fopencookie
11146 ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
11147 if test "x$ac_cv_func_fopencookie" = x""yes; then :
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE_FOPENCOOKIE 1
11155 for ac_func in funopen
11157 ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
11158 if test "x$ac_cv_func_funopen" = x""yes; then :
11159 cat >>confdefs.h <<_ACEOF
11160 #define HAVE_FUNOPEN 1
11169 # Check whether --enable-own_window was given.
11170 if test "${enable_own_window+set}" = set; then :
11171 enableval=$enable_own_window; dah="$enableval"
11177 if test $dah != "no"; then
11179 $as_echo "#define OWN_WINDOW 1" >>confdefs.h
11184 # Check whether --enable-ncurses was given.
11185 if test "${enable_ncurses+set}" = set; then :
11186 enableval=$enable_ncurses; want_ncurses="$enableval"
11192 if test x$want_ncurses = xyes; then
11193 BUILD_NCURSES_TRUE=
11194 BUILD_NCURSES_FALSE='#'
11196 BUILD_NCURSES_TRUE='#'
11197 BUILD_NCURSES_FALSE=
11200 if test x$want_ncurses = xyes; then
11201 conky_LIBS="$conky_LIBS -lncurses"
11203 $as_echo "#define NCURSES 1" >>confdefs.h
11209 # Check whether --enable-audacious was given.
11210 if test "${enable_audacious+set}" = set; then :
11211 enableval=$enable_audacious; want_audacious="$enableval"
11217 if test x$want_audacious = xyes -o x$want_audacious = xlegacy; then
11218 BUILD_AUDACIOUS_TRUE=
11219 BUILD_AUDACIOUS_FALSE='#'
11221 BUILD_AUDACIOUS_TRUE='#'
11222 BUILD_AUDACIOUS_FALSE=
11225 if test x$want_audacious = xyes; then
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Audacious" >&5
11229 $as_echo_n "checking for Audacious... " >&6; }
11231 if test -n "$PKG_CONFIG"; then
11232 if test -n "$Audacious_CFLAGS"; then
11233 pkg_cv_Audacious_CFLAGS="$Audacious_CFLAGS"
11235 if test -n "$PKG_CONFIG" && \
11236 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0\""; } >&5
11237 ($PKG_CONFIG --exists --print-errors "audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0") 2>&5
11239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11240 test $ac_status = 0; }; then
11241 pkg_cv_Audacious_CFLAGS=`$PKG_CONFIG --cflags "audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0" 2>/dev/null`
11249 if test -n "$PKG_CONFIG"; then
11250 if test -n "$Audacious_LIBS"; then
11251 pkg_cv_Audacious_LIBS="$Audacious_LIBS"
11253 if test -n "$PKG_CONFIG" && \
11254 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0\""; } >&5
11255 ($PKG_CONFIG --exists --print-errors "audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0") 2>&5
11257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11258 test $ac_status = 0; }; then
11259 pkg_cv_Audacious_LIBS=`$PKG_CONFIG --libs "audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0" 2>/dev/null`
11270 if test $pkg_failed = yes; then
11272 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11273 _pkg_short_errors_supported=yes
11275 _pkg_short_errors_supported=no
11277 if test $_pkg_short_errors_supported = yes; then
11278 Audacious_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0"`
11280 Audacious_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0"`
11282 # Put the nasty error message in config.log where it belongs
11283 echo "$Audacious_PKG_ERRORS" >&5
11285 as_fn_error "Package requirements (audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0) were not met:
11287 $Audacious_PKG_ERRORS
11289 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11290 installed software in a non-standard prefix.
11292 Alternatively, you may set the environment variables Audacious_CFLAGS
11293 and Audacious_LIBS to avoid the need to call pkg-config.
11294 See the pkg-config man page for more details.
11296 elif test $pkg_failed = untried; then
11297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11299 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11300 is in your PATH or set the PKG_CONFIG environment variable to the full
11301 path to pkg-config.
11303 Alternatively, you may set the environment variables Audacious_CFLAGS
11304 and Audacious_LIBS to avoid the need to call pkg-config.
11305 See the pkg-config man page for more details.
11307 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11308 See \`config.log' for more details." "$LINENO" 5; }
11310 Audacious_CFLAGS=$pkg_cv_Audacious_CFLAGS
11311 Audacious_LIBS=$pkg_cv_Audacious_LIBS
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11313 $as_echo "yes" >&6; }
11316 conky_CFLAGS="$conky_CFLAGS $Audacious_CFLAGS"
11317 conky_LIBS="$conky_LIBS $Audacious_LIBS"
11318 save_CPPFLAGS="$CPPFLAGS"
11319 CPPFLAGS="$Audacious_CFLAGS -I`pkg-config --variable=audacious_include_dir audacious`/audacious"
11320 for ac_header in audacious/audctrl.h audacious/dbus.h glib.h glib-object.h
11322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11323 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11324 eval as_val=\$$as_ac_Header
11325 if test "x$as_val" = x""yes; then :
11326 cat >>confdefs.h <<_ACEOF
11327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11331 as_fn_error "required header(s) not found" "$LINENO" 5
11336 CPPFLAGS="$save_CPPFLAGS"
11338 $as_echo "#define AUDACIOUS 1" >>confdefs.h
11340 else if test x$want_audacious = xlegacy; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Audacious" >&5
11344 $as_echo_n "checking for Audacious... " >&6; }
11346 if test -n "$PKG_CONFIG"; then
11347 if test -n "$Audacious_CFLAGS"; then
11348 pkg_cv_Audacious_CFLAGS="$Audacious_CFLAGS"
11350 if test -n "$PKG_CONFIG" && \
11351 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audacious < 1.4.0 glib-2.0\""; } >&5
11352 ($PKG_CONFIG --exists --print-errors "audacious < 1.4.0 glib-2.0") 2>&5
11354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11355 test $ac_status = 0; }; then
11356 pkg_cv_Audacious_CFLAGS=`$PKG_CONFIG --cflags "audacious < 1.4.0 glib-2.0" 2>/dev/null`
11364 if test -n "$PKG_CONFIG"; then
11365 if test -n "$Audacious_LIBS"; then
11366 pkg_cv_Audacious_LIBS="$Audacious_LIBS"
11368 if test -n "$PKG_CONFIG" && \
11369 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audacious < 1.4.0 glib-2.0\""; } >&5
11370 ($PKG_CONFIG --exists --print-errors "audacious < 1.4.0 glib-2.0") 2>&5
11372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11373 test $ac_status = 0; }; then
11374 pkg_cv_Audacious_LIBS=`$PKG_CONFIG --libs "audacious < 1.4.0 glib-2.0" 2>/dev/null`
11385 if test $pkg_failed = yes; then
11387 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11388 _pkg_short_errors_supported=yes
11390 _pkg_short_errors_supported=no
11392 if test $_pkg_short_errors_supported = yes; then
11393 Audacious_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "audacious < 1.4.0 glib-2.0"`
11395 Audacious_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audacious < 1.4.0 glib-2.0"`
11397 # Put the nasty error message in config.log where it belongs
11398 echo "$Audacious_PKG_ERRORS" >&5
11400 as_fn_error "Package requirements (audacious < 1.4.0 glib-2.0) were not met:
11402 $Audacious_PKG_ERRORS
11404 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11405 installed software in a non-standard prefix.
11407 Alternatively, you may set the environment variables Audacious_CFLAGS
11408 and Audacious_LIBS to avoid the need to call pkg-config.
11409 See the pkg-config man page for more details.
11411 elif test $pkg_failed = untried; then
11412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11414 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11415 is in your PATH or set the PKG_CONFIG environment variable to the full
11416 path to pkg-config.
11418 Alternatively, you may set the environment variables Audacious_CFLAGS
11419 and Audacious_LIBS to avoid the need to call pkg-config.
11420 See the pkg-config man page for more details.
11422 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11423 See \`config.log' for more details." "$LINENO" 5; }
11425 Audacious_CFLAGS=$pkg_cv_Audacious_CFLAGS
11426 Audacious_LIBS=$pkg_cv_Audacious_LIBS
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428 $as_echo "yes" >&6; }
11431 conky_CFLAGS="$conky_CFLAGS $Audacious_CFLAGS"
11432 conky_LIBS="$conky_LIBS $Audacious_LIBS"
11433 save_CPPFLAGS="$CPPFLAGS"
11434 CPPFLAGS="$Audacious_CFLAGS -I`pkg-config --variable=audacious_include_dir audacious`/audacious"
11435 for ac_header in audacious/beepctrl.h glib.h
11437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11438 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11439 eval as_val=\$$as_ac_Header
11440 if test "x$as_val" = x""yes; then :
11441 cat >>confdefs.h <<_ACEOF
11442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11446 as_fn_error "required header(s) not found" "$LINENO" 5
11451 CPPFLAGS="$save_CPPFLAGS"
11453 $as_echo "#define AUDACIOUS 1" >>confdefs.h
11456 $as_echo "#define AUDACIOUS_LEGACY 1" >>confdefs.h
11463 # Check whether --enable-bmpx was given.
11464 if test "${enable_bmpx+set}" = set; then :
11465 enableval=$enable_bmpx; want_bmpx="$enableval"
11471 if test x$want_bmpx = xyes; then
11473 BUILD_BMPX_FALSE='#'
11475 BUILD_BMPX_TRUE='#'
11479 if test x$want_bmpx = xyes; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BMPx" >&5
11483 $as_echo_n "checking for BMPx... " >&6; }
11485 if test -n "$PKG_CONFIG"; then
11486 if test -n "$BMPx_CFLAGS"; then
11487 pkg_cv_BMPx_CFLAGS="$BMPx_CFLAGS"
11489 if test -n "$PKG_CONFIG" && \
11490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bmp-2.0 >= 0.14.0\""; } >&5
11491 ($PKG_CONFIG --exists --print-errors "bmp-2.0 >= 0.14.0") 2>&5
11493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494 test $ac_status = 0; }; then
11495 pkg_cv_BMPx_CFLAGS=`$PKG_CONFIG --cflags "bmp-2.0 >= 0.14.0" 2>/dev/null`
11503 if test -n "$PKG_CONFIG"; then
11504 if test -n "$BMPx_LIBS"; then
11505 pkg_cv_BMPx_LIBS="$BMPx_LIBS"
11507 if test -n "$PKG_CONFIG" && \
11508 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bmp-2.0 >= 0.14.0\""; } >&5
11509 ($PKG_CONFIG --exists --print-errors "bmp-2.0 >= 0.14.0") 2>&5
11511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11512 test $ac_status = 0; }; then
11513 pkg_cv_BMPx_LIBS=`$PKG_CONFIG --libs "bmp-2.0 >= 0.14.0" 2>/dev/null`
11524 if test $pkg_failed = yes; then
11526 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11527 _pkg_short_errors_supported=yes
11529 _pkg_short_errors_supported=no
11531 if test $_pkg_short_errors_supported = yes; then
11532 BMPx_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "bmp-2.0 >= 0.14.0"`
11534 BMPx_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bmp-2.0 >= 0.14.0"`
11536 # Put the nasty error message in config.log where it belongs
11537 echo "$BMPx_PKG_ERRORS" >&5
11539 as_fn_error "Package requirements (bmp-2.0 >= 0.14.0) were not met:
11543 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11544 installed software in a non-standard prefix.
11546 Alternatively, you may set the environment variables BMPx_CFLAGS
11547 and BMPx_LIBS to avoid the need to call pkg-config.
11548 See the pkg-config man page for more details.
11550 elif test $pkg_failed = untried; then
11551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11553 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11554 is in your PATH or set the PKG_CONFIG environment variable to the full
11555 path to pkg-config.
11557 Alternatively, you may set the environment variables BMPx_CFLAGS
11558 and BMPx_LIBS to avoid the need to call pkg-config.
11559 See the pkg-config man page for more details.
11561 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11562 See \`config.log' for more details." "$LINENO" 5; }
11564 BMPx_CFLAGS=$pkg_cv_BMPx_CFLAGS
11565 BMPx_LIBS=$pkg_cv_BMPx_LIBS
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11567 $as_echo "yes" >&6; }
11570 conky_CFLAGS="$conky_CFLAGS $BMPx_CFLAGS"
11571 conky_LIBS="$conky_LIBS $BMPx_LIBS"
11573 $as_echo "#define BMPX 1" >>confdefs.h
11579 # Check whether --enable-ibm was given.
11580 if test "${enable_ibm+set}" = set; then :
11581 enableval=$enable_ibm; want_ibm="$enableval"
11587 if test x$want_ibm = xyes; then
11589 BUILD_IBM_FALSE='#'
11595 if test x$want_ibm = xyes; then
11596 if test x"$uname" != xLinux; then
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: support for IBM/Lenovo notebooks not supported on $uname... disabling" >&5
11598 $as_echo "$as_me: support for IBM/Lenovo notebooks not supported on $uname... disabling" >&6;}
11599 want_ibm="not supported on $uname"
11602 $as_echo "#define IBM 1" >>confdefs.h
11609 # Check whether --enable-hddtemp was given.
11610 if test "${enable_hddtemp+set}" = set; then :
11611 enableval=$enable_hddtemp; want_hddtemp="$enableval"
11617 if test x$want_hddtemp = xyes; then
11618 BUILD_HDDTEMP_TRUE=
11619 BUILD_HDDTEMP_FALSE='#'
11621 BUILD_HDDTEMP_TRUE='#'
11622 BUILD_HDDTEMP_FALSE=
11625 if test x$want_hddtemp = xyes; then
11626 if test x"$uname" != xLinux; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: hddtemp not supported on $uname... disabling" >&5
11628 $as_echo "$as_me: hddtemp not supported on $uname... disabling" >&6;}
11629 want_hddtemp="not supported on $uname"
11632 $as_echo "#define HDDTEMP 1" >>confdefs.h
11639 # Check whether --enable-apcupsd was given.
11640 if test "${enable_apcupsd+set}" = set; then :
11641 enableval=$enable_apcupsd; want_apcupsd="$enableval"
11647 if test x$want_apcupsd = xyes; then
11648 if test x"$uname" != xLinux; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: apcupsd not supported on $uname... disabling" >&5
11650 $as_echo "$as_me: apcupsd not supported on $uname... disabling" >&6;}
11651 want_apcupsd="not supported on $uname"
11654 $as_echo "#define APCUPSD 1" >>confdefs.h
11658 if test x$want_apcupsd = xyes; then
11659 BUILD_APCUPSD_TRUE=
11660 BUILD_APCUPSD_FALSE='#'
11662 BUILD_APCUPSD_TRUE='#'
11663 BUILD_APCUPSD_FALSE=
11669 # Check whether --enable-iostats was given.
11670 if test "${enable_iostats+set}" = set; then :
11671 enableval=$enable_iostats; want_iostats="$enableval"
11677 if test x$want_iostats = xyes; then
11678 if test x"$uname" != xLinux; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: iostats not supported on $uname... disabling" >&5
11680 $as_echo "$as_me: iostats not supported on $uname... disabling" >&6;}
11681 want_iostats="not supported on $uname"
11684 $as_echo "#define IOSTATS 1" >>confdefs.h
11691 # Check whether --enable-math was given.
11692 if test "${enable_math+set}" = set; then :
11693 enableval=$enable_math; want_math="$enableval"
11699 if test x$want_math = xyes; then
11701 BUILD_MATH_FALSE='#'
11703 BUILD_MATH_TRUE='#'
11707 if test x$want_math = xyes; then
11708 conky_LIBS="$conky_LIBS -lm"
11710 $as_echo "#define MATH 1" >>confdefs.h
11715 # Check whether --enable-mpd was given.
11716 if test "${enable_mpd+set}" = set; then :
11717 enableval=$enable_mpd; want_mpd="$enableval"
11723 if test x$want_mpd = xyes; then
11725 BUILD_MPD_FALSE='#'
11731 if test x$want_mpd = xyes; then
11733 $as_echo "#define MPD 1" >>confdefs.h
11738 # Check whether --enable-moc was given.
11739 if test "${enable_moc+set}" = set; then :
11740 enableval=$enable_moc; want_moc="$enableval"
11746 if test x$want_moc = xyes; then
11748 BUILD_MOC_FALSE='#'
11754 if test x$want_moc = xyes; then
11756 $as_echo "#define MOC 1" >>confdefs.h
11761 # Check whether --enable-xmms2 was given.
11762 if test "${enable_xmms2+set}" = set; then :
11763 enableval=$enable_xmms2; want_xmms2="$enableval"
11769 if test x$want_xmms2 = xyes; then
11771 BUILD_XMMS2_FALSE='#'
11773 BUILD_XMMS2_TRUE='#'
11777 if test x$want_xmms2 = xyes; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMMS2" >&5
11781 $as_echo_n "checking for XMMS2... " >&6; }
11783 if test -n "$PKG_CONFIG"; then
11784 if test -n "$XMMS2_CFLAGS"; then
11785 pkg_cv_XMMS2_CFLAGS="$XMMS2_CFLAGS"
11787 if test -n "$PKG_CONFIG" && \
11788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmms2-client >= 0.6\""; } >&5
11789 ($PKG_CONFIG --exists --print-errors "xmms2-client >= 0.6") 2>&5
11791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792 test $ac_status = 0; }; then
11793 pkg_cv_XMMS2_CFLAGS=`$PKG_CONFIG --cflags "xmms2-client >= 0.6" 2>/dev/null`
11801 if test -n "$PKG_CONFIG"; then
11802 if test -n "$XMMS2_LIBS"; then
11803 pkg_cv_XMMS2_LIBS="$XMMS2_LIBS"
11805 if test -n "$PKG_CONFIG" && \
11806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmms2-client >= 0.6\""; } >&5
11807 ($PKG_CONFIG --exists --print-errors "xmms2-client >= 0.6") 2>&5
11809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11810 test $ac_status = 0; }; then
11811 pkg_cv_XMMS2_LIBS=`$PKG_CONFIG --libs "xmms2-client >= 0.6" 2>/dev/null`
11822 if test $pkg_failed = yes; then
11824 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11825 _pkg_short_errors_supported=yes
11827 _pkg_short_errors_supported=no
11829 if test $_pkg_short_errors_supported = yes; then
11830 XMMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xmms2-client >= 0.6"`
11832 XMMS2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmms2-client >= 0.6"`
11834 # Put the nasty error message in config.log where it belongs
11835 echo "$XMMS2_PKG_ERRORS" >&5
11837 as_fn_error "Package requirements (xmms2-client >= 0.6) were not met:
11841 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11842 installed software in a non-standard prefix.
11844 Alternatively, you may set the environment variables XMMS2_CFLAGS
11845 and XMMS2_LIBS to avoid the need to call pkg-config.
11846 See the pkg-config man page for more details.
11848 elif test $pkg_failed = untried; then
11849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11851 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11852 is in your PATH or set the PKG_CONFIG environment variable to the full
11853 path to pkg-config.
11855 Alternatively, you may set the environment variables XMMS2_CFLAGS
11856 and XMMS2_LIBS to avoid the need to call pkg-config.
11857 See the pkg-config man page for more details.
11859 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11860 See \`config.log' for more details." "$LINENO" 5; }
11862 XMMS2_CFLAGS=$pkg_cv_XMMS2_CFLAGS
11863 XMMS2_LIBS=$pkg_cv_XMMS2_LIBS
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11865 $as_echo "yes" >&6; }
11868 conky_CFLAGS="$conky_CFLAGS $XMMS2_CFLAGS"
11869 conky_LIBS="$conky_LIBS $XMMS2_LIBS"
11871 $as_echo "#define XMMS2 1" >>confdefs.h
11876 # Check whether --enable-curl was given.
11877 if test "${enable_curl+set}" = set; then :
11878 enableval=$enable_curl; want_curl="$enableval"
11885 # Check whether --enable-eve was given.
11886 if test "${enable_eve+set}" = set; then :
11887 enableval=$enable_eve; want_eve="$enableval"
11893 if test x$want_eve = xyes; then
11895 BUILD_EVE_FALSE='#'
11901 if test x$want_eve = xyes; then
11905 $as_echo "#define EVE 1" >>confdefs.h
11908 $as_echo "#define EVEURL_TRAINING \"http://api.eve-online.com/char/SkillInTraining.xml.aspx\"" >>confdefs.h
11911 $as_echo "#define EVEURL_SKILLTREE \"http://api.eve-online.com/eve/Skilltree.xml.aspx\"" >>confdefs.h
11914 $as_echo "#define MY_ENCODING \"ISO-8859-1\"" >>confdefs.h
11917 $as_echo "#define EVE_OUTPUT_FORMAT \"%s %d in %s\"" >>confdefs.h
11922 # Check whether --enable-rss was given.
11923 if test "${enable_rss+set}" = set; then :
11924 enableval=$enable_rss; want_rss="$enableval"
11930 if test x$want_rss = xyes; then
11932 BUILD_RSS_FALSE='#'
11938 if test x$want_rss = xyes; then
11943 $as_echo "#define RSS 1" >>confdefs.h
11948 # Check whether --enable-weather-metar was given.
11949 if test "${enable_weather_metar+set}" = set; then :
11950 enableval=$enable_weather_metar; want_metar="$enableval"
11956 # Check whether --enable-weather-xoap was given.
11957 if test "${enable_weather_xoap+set}" = set; then :
11958 enableval=$enable_weather_xoap; want_xoap="$enableval"
11964 if test x$want_xoap = xyes; then
11967 if test x$want_metar = xyes; then
11968 BUILD_WEATHER_TRUE=
11969 BUILD_WEATHER_FALSE='#'
11971 BUILD_WEATHER_TRUE='#'
11972 BUILD_WEATHER_FALSE=
11975 if test x$want_xoap = xyes; then
11977 BUILD_XOAP_FALSE='#'
11979 BUILD_XOAP_TRUE='#'
11983 if test x$want_metar = xyes; then
11984 if test x$want_xoap = xyes; then
11987 $as_echo "#define XOAP 1" >>confdefs.h
11990 $as_echo "#define XOAP_FILE \"\$HOME/.xoaprc\"" >>confdefs.h
11995 $as_echo "#define WEATHER 1" >>confdefs.h
12000 # Check whether --enable-x11 was given.
12001 if test "${enable_x11+set}" = set; then :
12002 enableval=$enable_x11; want_x11="$enableval"
12008 if test x$want_x11 = xyes; then
12010 BUILD_X11_FALSE='#'
12016 if test "x$want_x11" = "xyes"; then
12017 if $PKG_CONFIG --exists x11; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
12021 $as_echo_n "checking for X11... " >&6; }
12023 if test -n "$PKG_CONFIG"; then
12024 if test -n "$X11_CFLAGS"; then
12025 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
12027 if test -n "$PKG_CONFIG" && \
12028 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12029 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12032 test $ac_status = 0; }; then
12033 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
12041 if test -n "$PKG_CONFIG"; then
12042 if test -n "$X11_LIBS"; then
12043 pkg_cv_X11_LIBS="$X11_LIBS"
12045 if test -n "$PKG_CONFIG" && \
12046 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12047 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12050 test $ac_status = 0; }; then
12051 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
12062 if test $pkg_failed = yes; then
12064 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12065 _pkg_short_errors_supported=yes
12067 _pkg_short_errors_supported=no
12069 if test $_pkg_short_errors_supported = yes; then
12070 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
12072 X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
12074 # Put the nasty error message in config.log where it belongs
12075 echo "$X11_PKG_ERRORS" >&5
12077 as_fn_error "Package requirements (x11) were not met:
12081 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12082 installed software in a non-standard prefix.
12084 Alternatively, you may set the environment variables X11_CFLAGS
12085 and X11_LIBS to avoid the need to call pkg-config.
12086 See the pkg-config man page for more details.
12088 elif test $pkg_failed = untried; then
12089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12091 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
12092 is in your PATH or set the PKG_CONFIG environment variable to the full
12093 path to pkg-config.
12095 Alternatively, you may set the environment variables X11_CFLAGS
12096 and X11_LIBS to avoid the need to call pkg-config.
12097 See the pkg-config man page for more details.
12099 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12100 See \`config.log' for more details." "$LINENO" 5; }
12102 X11_CFLAGS=$pkg_cv_X11_CFLAGS
12103 X11_LIBS=$pkg_cv_X11_LIBS
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105 $as_echo "yes" >&6; }
12108 conky_CFLAGS="$conky_CFLAGS $X11_CFLAGS"
12109 conky_LIBS="$conky_LIBS $X11_LIBS"
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12112 $as_echo_n "checking for X... " >&6; }
12115 # Check whether --with-x was given.
12116 if test "${with_x+set}" = set; then :
12120 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12121 if test "x$with_x" = xno; then
12122 # The user explicitly disabled X.
12125 case $x_includes,$x_libraries in #(
12126 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
12127 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12130 # One or both of the vars are not set, and there is no cached value.
12131 ac_x_includes=no ac_x_libraries=no
12132 rm -f -r conftest.dir
12133 if mkdir conftest.dir; then
12135 cat >Imakefile <<'_ACEOF'
12137 @echo incroot='${INCROOT}'
12139 @echo usrlibdir='${USRLIBDIR}'
12141 @echo libdir='${LIBDIR}'
12143 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
12144 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12145 for ac_var in incroot usrlibdir libdir; do
12146 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12148 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12149 for ac_extension in a so sl dylib la dll; do
12150 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12151 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12152 ac_im_usrlibdir=$ac_im_libdir; break
12155 # Screen out bogus values from the imake configuration. They are
12156 # bogus both because they are the default anyway, and because
12157 # using them would break gcc on systems where it needs fixed includes.
12158 case $ac_im_incroot in
12159 /usr/include) ac_x_includes= ;;
12160 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12162 case $ac_im_usrlibdir in
12163 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
12164 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12168 rm -f -r conftest.dir
12171 # Standard set of common directories for X headers.
12172 # Check X11 before X11Rn because it is often a symlink to the current release.
12186 /usr/local/X11/include
12187 /usr/local/X11R7/include
12188 /usr/local/X11R6/include
12189 /usr/local/X11R5/include
12190 /usr/local/X11R4/include
12192 /usr/local/include/X11
12193 /usr/local/include/X11R7
12194 /usr/local/include/X11R6
12195 /usr/local/include/X11R5
12196 /usr/local/include/X11R4
12200 /usr/XFree86/include/X11
12204 /usr/unsupported/include
12205 /usr/athena/include
12206 /usr/local/x11r5/include
12207 /usr/lpp/Xamples/include
12209 /usr/openwin/include
12210 /usr/openwin/share/include'
12212 if test "$ac_x_includes" = no; then
12213 # Guess where to find include files, by looking for Xlib.h.
12214 # First, try using that file with no special directory specified.
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12217 #include <X11/Xlib.h>
12219 if ac_fn_c_try_cpp "$LINENO"; then :
12220 # We can compile using X headers with no special include directory.
12223 for ac_dir in $ac_x_header_dirs; do
12224 if test -r "$ac_dir/X11/Xlib.h"; then
12225 ac_x_includes=$ac_dir
12230 rm -f conftest.err conftest.$ac_ext
12231 fi # $ac_x_includes = no
12233 if test "$ac_x_libraries" = no; then
12234 # Check for the libraries.
12235 # See if we find them without any special options.
12236 # Don't add to $LIBS permanently.
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241 #include <X11/Xlib.h>
12250 if ac_fn_c_try_link "$LINENO"; then :
12252 # We can link X programs with no special library path.
12256 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12258 # Don't even attempt the hair of trying to link an X program!
12259 for ac_extension in a so sl dylib la dll; do
12260 if test -r "$ac_dir/libX11.$ac_extension"; then
12261 ac_x_libraries=$ac_dir
12267 rm -f core conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext conftest.$ac_ext
12269 fi # $ac_x_libraries = no
12271 case $ac_x_includes,$ac_x_libraries in #(
12272 no,* | *,no | *\'*)
12273 # Didn't find X, or a directory has "'" in its name.
12274 ac_cv_have_x="have_x=no";; #(
12276 # Record where we found X for the cache.
12277 ac_cv_have_x="have_x=yes\
12278 ac_x_includes='$ac_x_includes'\
12279 ac_x_libraries='$ac_x_libraries'"
12285 eval "$ac_cv_have_x"
12288 if test "$have_x" != yes; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12290 $as_echo "$have_x" >&6; }
12293 # If each of the values was on the command line, it overrides each guess.
12294 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12295 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12296 # Update the cache value to reflect the command line values.
12297 ac_cv_have_x="have_x=yes\
12298 ac_x_includes='$x_includes'\
12299 ac_x_libraries='$x_libraries'"
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12301 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12304 if test "$no_x" = yes; then
12305 # Not all programs may use this symbol, but it does not hurt to define it.
12307 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
12309 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12311 if test -n "$x_includes"; then
12312 X_CFLAGS="$X_CFLAGS -I$x_includes"
12315 # It would also be nice to do this for all -L options, not just this one.
12316 if test -n "$x_libraries"; then
12317 X_LIBS="$X_LIBS -L$x_libraries"
12318 # For Solaris; some versions of Sun CC require a space after -R and
12319 # others require no space. Words are not sufficient . . . .
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
12321 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
12322 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12323 ac_xsave_c_werror_flag=$ac_c_werror_flag
12324 ac_c_werror_flag=yes
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h. */
12336 if ac_fn_c_try_link "$LINENO"; then :
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12339 X_LIBS="$X_LIBS -R$x_libraries"
12341 LIBS="$ac_xsave_LIBS -R $x_libraries"
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12353 if ac_fn_c_try_link "$LINENO"; then :
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12355 $as_echo "yes" >&6; }
12356 X_LIBS="$X_LIBS -R $x_libraries"
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
12359 $as_echo "neither works" >&6; }
12361 rm -f core conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 ac_c_werror_flag=$ac_xsave_c_werror_flag
12367 LIBS=$ac_xsave_LIBS
12370 # Check for system-dependent libraries X programs must link with.
12371 # Do this before checking for the system-independent R6 libraries
12372 # (-lICE), since we may need -lsocket or whatever for X linking.
12374 if test "$ISC" = yes; then
12375 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12377 # Martyn Johnson says this is needed for Ultrix, if the X
12378 # libraries were built with DECnet support. And Karl Berry says
12379 # the Alpha needs dnet_stub (dnet does not exist).
12380 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12390 char XOpenDisplay ();
12394 return XOpenDisplay ();
12399 if ac_fn_c_try_link "$LINENO"; then :
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
12403 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
12404 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
12407 ac_check_lib_save_LIBS=$LIBS
12408 LIBS="-ldnet $LIBS"
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12412 /* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12422 return dnet_ntoa ();
12427 if ac_fn_c_try_link "$LINENO"; then :
12428 ac_cv_lib_dnet_dnet_ntoa=yes
12430 ac_cv_lib_dnet_dnet_ntoa=no
12432 rm -f core conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12434 LIBS=$ac_check_lib_save_LIBS
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12437 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
12438 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
12439 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12442 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
12444 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
12445 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
12446 $as_echo_n "(cached) " >&6
12448 ac_check_lib_save_LIBS=$LIBS
12449 LIBS="-ldnet_stub $LIBS"
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12453 /* Override any GCC internal prototype to avoid an error.
12454 Use char because int might match the return type of a GCC
12455 builtin and then its argument prototype would still apply. */
12463 return dnet_ntoa ();
12468 if ac_fn_c_try_link "$LINENO"; then :
12469 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12471 ac_cv_lib_dnet_stub_dnet_ntoa=no
12473 rm -f core conftest.err conftest.$ac_objext \
12474 conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12478 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12479 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
12480 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12485 rm -f core conftest.err conftest.$ac_objext \
12486 conftest$ac_exeext conftest.$ac_ext
12487 LIBS="$ac_xsave_LIBS"
12489 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12490 # to get the SysV transport functions.
12491 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12493 # The nsl library prevents programs from opening the X display
12494 # on Irix 5.2, according to T.E. Dickey.
12495 # The functions gethostbyname, getservbyname, and inet_addr are
12496 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12497 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12498 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
12502 if test $ac_cv_func_gethostbyname = no; then
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12504 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12505 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
12506 $as_echo_n "(cached) " >&6
12508 ac_check_lib_save_LIBS=$LIBS
12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511 /* end confdefs.h. */
12513 /* Override any GCC internal prototype to avoid an error.
12514 Use char because int might match the return type of a GCC
12515 builtin and then its argument prototype would still apply. */
12519 char gethostbyname ();
12523 return gethostbyname ();
12528 if ac_fn_c_try_link "$LINENO"; then :
12529 ac_cv_lib_nsl_gethostbyname=yes
12531 ac_cv_lib_nsl_gethostbyname=no
12533 rm -f core conftest.err conftest.$ac_objext \
12534 conftest$ac_exeext conftest.$ac_ext
12535 LIBS=$ac_check_lib_save_LIBS
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12538 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12539 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
12540 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12543 if test $ac_cv_lib_nsl_gethostbyname = no; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
12545 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12546 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12549 ac_check_lib_save_LIBS=$LIBS
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12554 /* Override any GCC internal prototype to avoid an error.
12555 Use char because int might match the return type of a GCC
12556 builtin and then its argument prototype would still apply. */
12560 char gethostbyname ();
12564 return gethostbyname ();
12569 if ac_fn_c_try_link "$LINENO"; then :
12570 ac_cv_lib_bsd_gethostbyname=yes
12572 ac_cv_lib_bsd_gethostbyname=no
12574 rm -f core conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
12579 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12580 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
12581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12587 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12588 # socket/setsockopt and other routines are undefined under SCO ODT
12589 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12590 # on later versions), says Simon Leinen: it contains gethostby*
12591 # variants that don't use the name server (or something). -lsocket
12592 # must be given before -lnsl if both are needed. We assume that
12593 # if connect needs -lnsl, so does gethostbyname.
12594 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
12595 if test "x$ac_cv_func_connect" = x""yes; then :
12599 if test $ac_cv_func_connect = no; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12601 $as_echo_n "checking for connect in -lsocket... " >&6; }
12602 if test "${ac_cv_lib_socket_connect+set}" = set; then :
12603 $as_echo_n "(cached) " >&6
12605 ac_check_lib_save_LIBS=$LIBS
12606 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12610 /* Override any GCC internal prototype to avoid an error.
12611 Use char because int might match the return type of a GCC
12612 builtin and then its argument prototype would still apply. */
12625 if ac_fn_c_try_link "$LINENO"; then :
12626 ac_cv_lib_socket_connect=yes
12628 ac_cv_lib_socket_connect=no
12630 rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632 LIBS=$ac_check_lib_save_LIBS
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12635 $as_echo "$ac_cv_lib_socket_connect" >&6; }
12636 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
12637 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12642 # Guillermo Gomez says -lposix is necessary on A/UX.
12643 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
12644 if test "x$ac_cv_func_remove" = x""yes; then :
12648 if test $ac_cv_func_remove = no; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
12650 $as_echo_n "checking for remove in -lposix... " >&6; }
12651 if test "${ac_cv_lib_posix_remove+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12654 ac_check_lib_save_LIBS=$LIBS
12655 LIBS="-lposix $LIBS"
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12659 /* Override any GCC internal prototype to avoid an error.
12660 Use char because int might match the return type of a GCC
12661 builtin and then its argument prototype would still apply. */
12674 if ac_fn_c_try_link "$LINENO"; then :
12675 ac_cv_lib_posix_remove=yes
12677 ac_cv_lib_posix_remove=no
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 LIBS=$ac_check_lib_save_LIBS
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
12684 $as_echo "$ac_cv_lib_posix_remove" >&6; }
12685 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
12686 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12691 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12692 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
12693 if test "x$ac_cv_func_shmat" = x""yes; then :
12697 if test $ac_cv_func_shmat = no; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
12699 $as_echo_n "checking for shmat in -lipc... " >&6; }
12700 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
12701 $as_echo_n "(cached) " >&6
12703 ac_check_lib_save_LIBS=$LIBS
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12723 if ac_fn_c_try_link "$LINENO"; then :
12724 ac_cv_lib_ipc_shmat=yes
12726 ac_cv_lib_ipc_shmat=no
12728 rm -f core conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
12733 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
12734 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
12735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12741 # Check for libraries that X11R6 Xt/Xaw programs need.
12742 ac_save_LDFLAGS=$LDFLAGS
12743 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12744 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12745 # check for ICE first), but we must link in the order -lSM -lICE or
12746 # we get undefined symbols. So assume we have SM if we have ICE.
12747 # These have to be linked with before -lX11, unlike the other
12748 # libraries we check for below, so use a different variable.
12749 # John Interrante, Karl Berry
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
12751 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
12752 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12766 char IceConnectionNumber ();
12770 return IceConnectionNumber ();
12775 if ac_fn_c_try_link "$LINENO"; then :
12776 ac_cv_lib_ICE_IceConnectionNumber=yes
12778 ac_cv_lib_ICE_IceConnectionNumber=no
12780 rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12785 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12786 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
12787 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12790 LDFLAGS=$ac_save_LDFLAGS
12794 conky_CFLAGS="$conky_CFLAGS $X_CFLAGS"
12795 conky_LIBS="$conky_LIBS $X_LIBS"
12796 conky_LDFLAGS="$conky_LDFLAGS $conky_LIBS $X_PRE_LIBS"
12797 if test "x$no_x" = "xyes"; then
12798 as_fn_error "Can't locate your X11 installation" "$LINENO" 5
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
12801 $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
12802 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then :
12803 $as_echo_n "(cached) " >&6
12805 ac_check_lib_save_LIBS=$LIBS
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12816 char XOpenDisplay ();
12820 return XOpenDisplay ();
12825 if ac_fn_c_try_link "$LINENO"; then :
12826 ac_cv_lib_X11_XOpenDisplay=yes
12828 ac_cv_lib_X11_XOpenDisplay=no
12830 rm -f core conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext conftest.$ac_ext
12832 LIBS=$ac_check_lib_save_LIBS
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12835 $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
12836 if test "x$ac_cv_lib_X11_XOpenDisplay" = x""yes; then :
12837 cat >>confdefs.h <<_ACEOF
12838 #define HAVE_LIBX11 1
12844 as_fn_error "Could not find XOpenDisplay in -lX11" "$LINENO" 5
12849 $as_echo "#define X11 1" >>confdefs.h
12854 # Check whether --enable-argb was given.
12855 if test "${enable_argb+set}" = set; then :
12856 enableval=$enable_argb; want_argb="$enableval"
12862 if test x$want_argb = xyes; then
12863 if test "x$want_x11" != "xyes"; then
12867 $as_echo "#define USE_ARGB 1" >>confdefs.h
12873 # Check whether --enable-imlib2 was given.
12874 if test "${enable_imlib2+set}" = set; then :
12875 enableval=$enable_imlib2; want_imlib2="$enableval"
12880 # Check whether --enable-lua-imlib2 was given.
12881 if test "${enable_lua_imlib2+set}" = set; then :
12882 enableval=$enable_lua_imlib2; want_lua_imlib2="$enableval"
12888 # if lua-imlib2 is enabled, we must force imlib2
12889 if test x$want_lua_imlib2 = xyes; then
12893 if test x$want_imlib2 = xyes; then
12894 if test "x$want_x11" != "xyes"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Imlib2" >&5
12900 $as_echo_n "checking for Imlib2... " >&6; }
12902 if test -n "$PKG_CONFIG"; then
12903 if test -n "$Imlib2_CFLAGS"; then
12904 pkg_cv_Imlib2_CFLAGS="$Imlib2_CFLAGS"
12906 if test -n "$PKG_CONFIG" && \
12907 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5
12908 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
12910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12911 test $ac_status = 0; }; then
12912 pkg_cv_Imlib2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null`
12920 if test -n "$PKG_CONFIG"; then
12921 if test -n "$Imlib2_LIBS"; then
12922 pkg_cv_Imlib2_LIBS="$Imlib2_LIBS"
12924 if test -n "$PKG_CONFIG" && \
12925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5
12926 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
12928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12929 test $ac_status = 0; }; then
12930 pkg_cv_Imlib2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null`
12941 if test $pkg_failed = yes; then
12943 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12944 _pkg_short_errors_supported=yes
12946 _pkg_short_errors_supported=no
12948 if test $_pkg_short_errors_supported = yes; then
12949 Imlib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlib2"`
12951 Imlib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlib2"`
12953 # Put the nasty error message in config.log where it belongs
12954 echo "$Imlib2_PKG_ERRORS" >&5
12956 as_fn_error "Package requirements (imlib2) were not met:
12960 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12961 installed software in a non-standard prefix.
12963 Alternatively, you may set the environment variables Imlib2_CFLAGS
12964 and Imlib2_LIBS to avoid the need to call pkg-config.
12965 See the pkg-config man page for more details.
12967 elif test $pkg_failed = untried; then
12968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12970 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
12971 is in your PATH or set the PKG_CONFIG environment variable to the full
12972 path to pkg-config.
12974 Alternatively, you may set the environment variables Imlib2_CFLAGS
12975 and Imlib2_LIBS to avoid the need to call pkg-config.
12976 See the pkg-config man page for more details.
12978 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12979 See \`config.log' for more details." "$LINENO" 5; }
12981 Imlib2_CFLAGS=$pkg_cv_Imlib2_CFLAGS
12982 Imlib2_LIBS=$pkg_cv_Imlib2_LIBS
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12984 $as_echo "yes" >&6; }
12987 conky_CFLAGS="$conky_CFLAGS $Imlib2_CFLAGS"
12988 conky_LIBS="$conky_LIBS $Imlib2_LIBS"
12990 $as_echo "#define IMLIB2 1" >>confdefs.h
12994 if test x$want_imlib2 = xyes; then
12996 BUILD_IMLIB2_FALSE='#'
12998 BUILD_IMLIB2_TRUE='#'
12999 BUILD_IMLIB2_FALSE=
13004 # Check whether --enable-lua was given.
13005 if test "${enable_lua+set}" = set; then :
13006 enableval=$enable_lua; want_lua="$enableval"
13011 # Check whether --enable-lua-cairo was given.
13012 if test "${enable_lua_cairo+set}" = set; then :
13013 enableval=$enable_lua_cairo; want_lua_cairo="$enableval"
13019 if test x$want_lua_cairo = xyes -o x$want_lua_imlib2 = xyes; then
13024 if test x$want_lua = xyes; then
13026 BUILD_LUA_FALSE='#'
13032 if test x$want_lua = xyes; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
13036 $as_echo_n "checking for LUA... " >&6; }
13038 if test -n "$PKG_CONFIG"; then
13039 if test -n "$LUA_CFLAGS"; then
13040 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
13042 if test -n "$PKG_CONFIG" && \
13043 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13044 ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13047 test $ac_status = 0; }; then
13048 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
13056 if test -n "$PKG_CONFIG"; then
13057 if test -n "$LUA_LIBS"; then
13058 pkg_cv_LUA_LIBS="$LUA_LIBS"
13060 if test -n "$PKG_CONFIG" && \
13061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13062 ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13065 test $ac_status = 0; }; then
13066 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
13077 if test $pkg_failed = yes; then
13079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13080 _pkg_short_errors_supported=yes
13082 _pkg_short_errors_supported=no
13084 if test $_pkg_short_errors_supported = yes; then
13085 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua >= 5.1"`
13087 LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua >= 5.1"`
13089 # Put the nasty error message in config.log where it belongs
13090 echo "$LUA_PKG_ERRORS" >&5
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13098 $as_echo_n "checking for LUA51... " >&6; }
13100 if test -n "$PKG_CONFIG"; then
13101 if test -n "$LUA51_CFLAGS"; then
13102 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13104 if test -n "$PKG_CONFIG" && \
13105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
13106 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
13108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13109 test $ac_status = 0; }; then
13110 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
13118 if test -n "$PKG_CONFIG"; then
13119 if test -n "$LUA51_LIBS"; then
13120 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13122 if test -n "$PKG_CONFIG" && \
13123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
13124 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
13126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13127 test $ac_status = 0; }; then
13128 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
13139 if test $pkg_failed = yes; then
13141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13142 _pkg_short_errors_supported=yes
13144 _pkg_short_errors_supported=no
13146 if test $_pkg_short_errors_supported = yes; then
13147 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13149 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13151 # Put the nasty error message in config.log where it belongs
13152 echo "$LUA51_PKG_ERRORS" >&5
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13160 $as_echo_n "checking for LUA51... " >&6; }
13162 if test -n "$PKG_CONFIG"; then
13163 if test -n "$LUA51_CFLAGS"; then
13164 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13166 if test -n "$PKG_CONFIG" && \
13167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13168 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13171 test $ac_status = 0; }; then
13172 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
13180 if test -n "$PKG_CONFIG"; then
13181 if test -n "$LUA51_LIBS"; then
13182 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13184 if test -n "$PKG_CONFIG" && \
13185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13186 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189 test $ac_status = 0; }; then
13190 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
13201 if test $pkg_failed = yes; then
13203 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13204 _pkg_short_errors_supported=yes
13206 _pkg_short_errors_supported=no
13208 if test $_pkg_short_errors_supported = yes; then
13209 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13211 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13213 # Put the nasty error message in config.log where it belongs
13214 echo "$LUA51_PKG_ERRORS" >&5
13216 as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13220 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13221 installed software in a non-standard prefix.
13223 Alternatively, you may set the environment variables LUA51_CFLAGS
13224 and LUA51_LIBS to avoid the need to call pkg-config.
13225 See the pkg-config man page for more details.
13227 elif test $pkg_failed = untried; then
13228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13230 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
13231 is in your PATH or set the PKG_CONFIG environment variable to the full
13232 path to pkg-config.
13234 Alternatively, you may set the environment variables LUA51_CFLAGS
13235 and LUA51_LIBS to avoid the need to call pkg-config.
13236 See the pkg-config man page for more details.
13238 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13239 See \`config.log' for more details." "$LINENO" 5; }
13241 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13242 LUA51_LIBS=$pkg_cv_LUA51_LIBS
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13244 $as_echo "yes" >&6; }
13248 elif test $pkg_failed = untried; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13253 $as_echo_n "checking for LUA51... " >&6; }
13255 if test -n "$PKG_CONFIG"; then
13256 if test -n "$LUA51_CFLAGS"; then
13257 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13259 if test -n "$PKG_CONFIG" && \
13260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13261 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13264 test $ac_status = 0; }; then
13265 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
13273 if test -n "$PKG_CONFIG"; then
13274 if test -n "$LUA51_LIBS"; then
13275 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13277 if test -n "$PKG_CONFIG" && \
13278 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13279 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13282 test $ac_status = 0; }; then
13283 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
13294 if test $pkg_failed = yes; then
13296 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13297 _pkg_short_errors_supported=yes
13299 _pkg_short_errors_supported=no
13301 if test $_pkg_short_errors_supported = yes; then
13302 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13304 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13306 # Put the nasty error message in config.log where it belongs
13307 echo "$LUA51_PKG_ERRORS" >&5
13309 as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13313 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13314 installed software in a non-standard prefix.
13316 Alternatively, you may set the environment variables LUA51_CFLAGS
13317 and LUA51_LIBS to avoid the need to call pkg-config.
13318 See the pkg-config man page for more details.
13320 elif test $pkg_failed = untried; then
13321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13323 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
13324 is in your PATH or set the PKG_CONFIG environment variable to the full
13325 path to pkg-config.
13327 Alternatively, you may set the environment variables LUA51_CFLAGS
13328 and LUA51_LIBS to avoid the need to call pkg-config.
13329 See the pkg-config man page for more details.
13331 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13332 See \`config.log' for more details." "$LINENO" 5; }
13334 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13335 LUA51_LIBS=$pkg_cv_LUA51_LIBS
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13337 $as_echo "yes" >&6; }
13342 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13343 LUA51_LIBS=$pkg_cv_LUA51_LIBS
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13345 $as_echo "yes" >&6; }
13349 elif test $pkg_failed = untried; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13354 $as_echo_n "checking for LUA51... " >&6; }
13356 if test -n "$PKG_CONFIG"; then
13357 if test -n "$LUA51_CFLAGS"; then
13358 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13360 if test -n "$PKG_CONFIG" && \
13361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
13362 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
13364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13365 test $ac_status = 0; }; then
13366 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
13374 if test -n "$PKG_CONFIG"; then
13375 if test -n "$LUA51_LIBS"; then
13376 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13378 if test -n "$PKG_CONFIG" && \
13379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
13380 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
13382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13383 test $ac_status = 0; }; then
13384 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
13395 if test $pkg_failed = yes; then
13397 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13398 _pkg_short_errors_supported=yes
13400 _pkg_short_errors_supported=no
13402 if test $_pkg_short_errors_supported = yes; then
13403 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13405 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13407 # Put the nasty error message in config.log where it belongs
13408 echo "$LUA51_PKG_ERRORS" >&5
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13416 $as_echo_n "checking for LUA51... " >&6; }
13418 if test -n "$PKG_CONFIG"; then
13419 if test -n "$LUA51_CFLAGS"; then
13420 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13422 if test -n "$PKG_CONFIG" && \
13423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13424 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13427 test $ac_status = 0; }; then
13428 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
13436 if test -n "$PKG_CONFIG"; then
13437 if test -n "$LUA51_LIBS"; then
13438 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13440 if test -n "$PKG_CONFIG" && \
13441 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13442 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13445 test $ac_status = 0; }; then
13446 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
13457 if test $pkg_failed = yes; then
13459 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13460 _pkg_short_errors_supported=yes
13462 _pkg_short_errors_supported=no
13464 if test $_pkg_short_errors_supported = yes; then
13465 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13467 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13469 # Put the nasty error message in config.log where it belongs
13470 echo "$LUA51_PKG_ERRORS" >&5
13472 as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13476 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13477 installed software in a non-standard prefix.
13479 Alternatively, you may set the environment variables LUA51_CFLAGS
13480 and LUA51_LIBS to avoid the need to call pkg-config.
13481 See the pkg-config man page for more details.
13483 elif test $pkg_failed = untried; then
13484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13486 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
13487 is in your PATH or set the PKG_CONFIG environment variable to the full
13488 path to pkg-config.
13490 Alternatively, you may set the environment variables LUA51_CFLAGS
13491 and LUA51_LIBS to avoid the need to call pkg-config.
13492 See the pkg-config man page for more details.
13494 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13495 See \`config.log' for more details." "$LINENO" 5; }
13497 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13498 LUA51_LIBS=$pkg_cv_LUA51_LIBS
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13500 $as_echo "yes" >&6; }
13504 elif test $pkg_failed = untried; then
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13509 $as_echo_n "checking for LUA51... " >&6; }
13511 if test -n "$PKG_CONFIG"; then
13512 if test -n "$LUA51_CFLAGS"; then
13513 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13515 if test -n "$PKG_CONFIG" && \
13516 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13517 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13520 test $ac_status = 0; }; then
13521 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
13529 if test -n "$PKG_CONFIG"; then
13530 if test -n "$LUA51_LIBS"; then
13531 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13533 if test -n "$PKG_CONFIG" && \
13534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13535 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13538 test $ac_status = 0; }; then
13539 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
13550 if test $pkg_failed = yes; then
13552 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13553 _pkg_short_errors_supported=yes
13555 _pkg_short_errors_supported=no
13557 if test $_pkg_short_errors_supported = yes; then
13558 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13560 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13562 # Put the nasty error message in config.log where it belongs
13563 echo "$LUA51_PKG_ERRORS" >&5
13565 as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13569 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13570 installed software in a non-standard prefix.
13572 Alternatively, you may set the environment variables LUA51_CFLAGS
13573 and LUA51_LIBS to avoid the need to call pkg-config.
13574 See the pkg-config man page for more details.
13576 elif test $pkg_failed = untried; then
13577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13579 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
13580 is in your PATH or set the PKG_CONFIG environment variable to the full
13581 path to pkg-config.
13583 Alternatively, you may set the environment variables LUA51_CFLAGS
13584 and LUA51_LIBS to avoid the need to call pkg-config.
13585 See the pkg-config man page for more details.
13587 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13588 See \`config.log' for more details." "$LINENO" 5; }
13590 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13591 LUA51_LIBS=$pkg_cv_LUA51_LIBS
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13593 $as_echo "yes" >&6; }
13598 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13599 LUA51_LIBS=$pkg_cv_LUA51_LIBS
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13601 $as_echo "yes" >&6; }
13606 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
13607 LUA_LIBS=$pkg_cv_LUA_LIBS
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13609 $as_echo "yes" >&6; }
13612 conky_CFLAGS="$conky_CFLAGS $LUA_CFLAGS $LUA51_CFLAGS"
13613 conky_LIBS="$conky_LIBS $LUA_LIBS $LUA51_LIBS"
13615 if test x$need_tolua = xyes; then
13617 $as_echo "#define LUA_EXTRAS 1" >>confdefs.h
13619 if test "x$want_x11" != "xyes"; then
13622 if test x$want_lua_cairo = xyes; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
13626 $as_echo_n "checking for cairo... " >&6; }
13628 if test -n "$PKG_CONFIG"; then
13629 if test -n "$cairo_CFLAGS"; then
13630 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
13632 if test -n "$PKG_CONFIG" && \
13633 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
13634 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
13636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13637 test $ac_status = 0; }; then
13638 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
13646 if test -n "$PKG_CONFIG"; then
13647 if test -n "$cairo_LIBS"; then
13648 pkg_cv_cairo_LIBS="$cairo_LIBS"
13650 if test -n "$PKG_CONFIG" && \
13651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
13652 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
13654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655 test $ac_status = 0; }; then
13656 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
13667 if test $pkg_failed = yes; then
13669 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13670 _pkg_short_errors_supported=yes
13672 _pkg_short_errors_supported=no
13674 if test $_pkg_short_errors_supported = yes; then
13675 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
13677 cairo_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
13679 # Put the nasty error message in config.log where it belongs
13680 echo "$cairo_PKG_ERRORS" >&5
13682 as_fn_error "Package requirements (cairo) were not met:
13686 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13687 installed software in a non-standard prefix.
13689 Alternatively, you may set the environment variables cairo_CFLAGS
13690 and cairo_LIBS to avoid the need to call pkg-config.
13691 See the pkg-config man page for more details.
13693 elif test $pkg_failed = untried; then
13694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13696 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
13697 is in your PATH or set the PKG_CONFIG environment variable to the full
13698 path to pkg-config.
13700 Alternatively, you may set the environment variables cairo_CFLAGS
13701 and cairo_LIBS to avoid the need to call pkg-config.
13702 See the pkg-config man page for more details.
13704 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13705 See \`config.log' for more details." "$LINENO" 5; }
13707 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
13708 cairo_LIBS=$pkg_cv_cairo_LIBS
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13710 $as_echo "yes" >&6; }
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_xlib" >&5
13716 $as_echo_n "checking for cairo_xlib... " >&6; }
13718 if test -n "$PKG_CONFIG"; then
13719 if test -n "$cairo_xlib_CFLAGS"; then
13720 pkg_cv_cairo_xlib_CFLAGS="$cairo_xlib_CFLAGS"
13722 if test -n "$PKG_CONFIG" && \
13723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-xlib\""; } >&5
13724 ($PKG_CONFIG --exists --print-errors "cairo-xlib") 2>&5
13726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13727 test $ac_status = 0; }; then
13728 pkg_cv_cairo_xlib_CFLAGS=`$PKG_CONFIG --cflags "cairo-xlib" 2>/dev/null`
13736 if test -n "$PKG_CONFIG"; then
13737 if test -n "$cairo_xlib_LIBS"; then
13738 pkg_cv_cairo_xlib_LIBS="$cairo_xlib_LIBS"
13740 if test -n "$PKG_CONFIG" && \
13741 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-xlib\""; } >&5
13742 ($PKG_CONFIG --exists --print-errors "cairo-xlib") 2>&5
13744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13745 test $ac_status = 0; }; then
13746 pkg_cv_cairo_xlib_LIBS=`$PKG_CONFIG --libs "cairo-xlib" 2>/dev/null`
13757 if test $pkg_failed = yes; then
13759 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13760 _pkg_short_errors_supported=yes
13762 _pkg_short_errors_supported=no
13764 if test $_pkg_short_errors_supported = yes; then
13765 cairo_xlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-xlib"`
13767 cairo_xlib_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-xlib"`
13769 # Put the nasty error message in config.log where it belongs
13770 echo "$cairo_xlib_PKG_ERRORS" >&5
13772 as_fn_error "Package requirements (cairo-xlib) were not met:
13774 $cairo_xlib_PKG_ERRORS
13776 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13777 installed software in a non-standard prefix.
13779 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
13780 and cairo_xlib_LIBS to avoid the need to call pkg-config.
13781 See the pkg-config man page for more details.
13783 elif test $pkg_failed = untried; then
13784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13786 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
13787 is in your PATH or set the PKG_CONFIG environment variable to the full
13788 path to pkg-config.
13790 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
13791 and cairo_xlib_LIBS to avoid the need to call pkg-config.
13792 See the pkg-config man page for more details.
13794 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13795 See \`config.log' for more details." "$LINENO" 5; }
13797 cairo_xlib_CFLAGS=$pkg_cv_cairo_xlib_CFLAGS
13798 cairo_xlib_LIBS=$pkg_cv_cairo_xlib_LIBS
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13800 $as_echo "yes" >&6; }
13804 $as_echo "#define HAVE_LUA_CAIRO 1" >>confdefs.h
13806 libcairo_CFLAGS="$libcairo_CFLAGS $cairo_CFLAGS $cairo_xlib_CFLAGS"
13807 libcairo_LIBS="$libcairo_LIBS $cairo_LIBS $cairo_xlib_LIBS"
13809 if test x$want_imlib2 = xyes; then
13811 $as_echo "#define HAVE_LUA_IMLIB2 1" >>confdefs.h
13815 for ac_prog in tolua++ tolua++5.1 tolua++-5.1
13817 # Extract the first word of "$ac_prog", so it can be a program name with args.
13818 set dummy $ac_prog; ac_word=$2
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13820 $as_echo_n "checking for $ac_word... " >&6; }
13821 if test "${ac_cv_prog_toluapp+set}" = set; then :
13822 $as_echo_n "(cached) " >&6
13824 if test -n "$toluapp"; then
13825 ac_cv_prog_toluapp="$toluapp" # Let the user override the test.
13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828 for as_dir in $PATH
13831 test -z "$as_dir" && as_dir=.
13832 for ac_exec_ext in '' $ac_executable_extensions; do
13833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13834 ac_cv_prog_toluapp="$ac_prog"
13835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13844 toluapp=$ac_cv_prog_toluapp
13845 if test -n "$toluapp"; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toluapp" >&5
13847 $as_echo "$toluapp" >&6; }
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850 $as_echo "no" >&6; }
13854 test -n "$toluapp" && break
13856 test -n "$toluapp" || toluapp="no"
13858 if test x$toluapp = xno; then
13859 as_fn_error "tolua++, tolua++5.1, or tolua++-5.1 is required for Lua extras." "$LINENO" 5
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tolua_error" >&5
13862 $as_echo_n "checking for library containing tolua_error... " >&6; }
13863 if test "${ac_cv_search_tolua_error+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13866 ac_func_search_save_LIBS=$LIBS
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13870 /* Override any GCC internal prototype to avoid an error.
13871 Use char because int might match the return type of a GCC
13872 builtin and then its argument prototype would still apply. */
13876 char tolua_error ();
13880 return tolua_error ();
13885 for ac_lib in '' tolua++-5.1 tolua++ tolua++5.1; do
13886 if test -z "$ac_lib"; then
13887 ac_res="none required"
13890 LIBS="-l$ac_lib $LUA_LIBS $LUA51_LIBS $ac_func_search_save_LIBS"
13892 if ac_fn_c_try_link "$LINENO"; then :
13893 ac_cv_search_tolua_error=$ac_res
13895 rm -f core conftest.err conftest.$ac_objext \
13897 if test "${ac_cv_search_tolua_error+set}" = set; then :
13901 if test "${ac_cv_search_tolua_error+set}" = set; then :
13904 ac_cv_search_tolua_error=no
13906 rm conftest.$ac_ext
13907 LIBS=$ac_func_search_save_LIBS
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tolua_error" >&5
13910 $as_echo "$ac_cv_search_tolua_error" >&6; }
13911 ac_res=$ac_cv_search_tolua_error
13912 if test "$ac_res" != no; then :
13913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13915 tolua_LIBS="${LIBS}"
13917 tolua_CFLAGS="${CFLAGS}"
13921 as_fn_error "tolua_error not found" "$LINENO" 5
13925 conky_LIBS="$conky_LIBS $tolua_LIBS"
13926 tolua_CFLAGS="$tolua_CFLAGS $LUA_CFLAGS $LUA51_CFLAGS"
13927 tolua_LIBS="$tolua_LIBS $LUA_LIBS $LUA51_LIBS"
13930 $as_echo "#define HAVE_LUA 1" >>confdefs.h
13933 if test x$want_lua_cairo = xyes; then
13934 BUILD_LUA_CAIRO_TRUE=
13935 BUILD_LUA_CAIRO_FALSE='#'
13937 BUILD_LUA_CAIRO_TRUE='#'
13938 BUILD_LUA_CAIRO_FALSE=
13941 if test x$want_lua_imlib2 = xyes; then
13942 BUILD_LUA_IMLIB2_TRUE=
13943 BUILD_LUA_IMLIB2_FALSE='#'
13945 BUILD_LUA_IMLIB2_TRUE='#'
13946 BUILD_LUA_IMLIB2_FALSE=
13951 # Check whether --enable-wlan was given.
13952 if test "${enable_wlan+set}" = set; then :
13953 enableval=$enable_wlan; want_wlan="$enableval"
13959 if test x$want_wlan = xyes; then
13961 BUILD_WLAN_FALSE='#'
13963 BUILD_WLAN_TRUE='#'
13967 if test x$want_wlan = xyes; then
13968 for ac_header in iwlib.h
13970 ac_fn_c_check_header_mongrel "$LINENO" "iwlib.h" "ac_cv_header_iwlib_h" "$ac_includes_default"
13971 if test "x$ac_cv_header_iwlib_h" = x""yes; then :
13972 cat >>confdefs.h <<_ACEOF
13973 #define HAVE_IWLIB_H 1
13977 as_fn_error "iwlib.h header not found" "$LINENO" 5
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iw_sockets_open in -liw" >&5
13983 $as_echo_n "checking for iw_sockets_open in -liw... " >&6; }
13984 if test "${ac_cv_lib_iw_iw_sockets_open+set}" = set; then :
13985 $as_echo_n "(cached) " >&6
13987 ac_check_lib_save_LIBS=$LIBS
13988 LIBS="-liw $conky_LIBS $LIBS"
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13992 /* Override any GCC internal prototype to avoid an error.
13993 Use char because int might match the return type of a GCC
13994 builtin and then its argument prototype would still apply. */
13998 char iw_sockets_open ();
14002 return iw_sockets_open ();
14007 if ac_fn_c_try_link "$LINENO"; then :
14008 ac_cv_lib_iw_iw_sockets_open=yes
14010 ac_cv_lib_iw_iw_sockets_open=no
14012 rm -f core conftest.err conftest.$ac_objext \
14013 conftest$ac_exeext conftest.$ac_ext
14014 LIBS=$ac_check_lib_save_LIBS
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iw_iw_sockets_open" >&5
14017 $as_echo "$ac_cv_lib_iw_iw_sockets_open" >&6; }
14018 if test "x$ac_cv_lib_iw_iw_sockets_open" = x""yes; then :
14019 conky_LIBS="-liw $conky_LIBS"
14021 as_fn_error "iw_sockets_open not found" "$LINENO" 5
14025 $as_echo "#define HAVE_IWLIB 1" >>confdefs.h
14030 # Check whether --enable-portmon was given.
14031 if test "${enable_portmon+set}" = set; then :
14032 enableval=$enable_portmon; want_portmon="$enableval"
14038 if test x"$want_portmon" = xyes; then
14039 if test x"$uname" != xLinux; then
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: port monitors not supported on $uname... disabling" >&5
14041 $as_echo "$as_me: port monitors not supported on $uname... disabling" >&6;}
14042 want_portmon="not supported on $uname"
14044 for ac_func in getnameinfo
14046 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
14047 if test "x$ac_cv_func_getnameinfo" = x""yes; then :
14048 cat >>confdefs.h <<_ACEOF
14049 #define HAVE_GETNAMEINFO 1
14053 as_fn_error "getnameinfo function not found" "$LINENO" 5
14057 for ac_header in netdb.h netinet/in.h netinet/tcp.h sys/socket.h arpa/inet.h
14059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14060 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14061 eval as_val=\$$as_ac_Header
14062 if test "x$as_val" = x""yes; then :
14063 cat >>confdefs.h <<_ACEOF
14064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14068 PORT_MONITORS_MISSING=yes
14073 if test x"$PORT_MONITORS_MISSING" = xyes; then
14074 as_fn_error "missing a needed network header for port monitoring" "$LINENO" 5
14078 $as_echo "#define TCP_PORT_MONITOR 1" >>confdefs.h
14082 if test x"$want_portmon" = xyes; then
14083 BUILD_PORT_MONITORS_TRUE=
14084 BUILD_PORT_MONITORS_FALSE='#'
14086 BUILD_PORT_MONITORS_TRUE='#'
14087 BUILD_PORT_MONITORS_FALSE=
14095 if test "X$prefix" = "XNONE"; then
14096 acl_final_prefix="$ac_default_prefix"
14098 acl_final_prefix="$prefix"
14100 if test "X$exec_prefix" = "XNONE"; then
14101 acl_final_exec_prefix='${prefix}'
14103 acl_final_exec_prefix="$exec_prefix"
14105 acl_save_prefix="$prefix"
14106 prefix="$acl_final_prefix"
14107 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14108 prefix="$acl_save_prefix"
14111 # Check whether --with-gnu-ld was given.
14112 if test "${with_gnu_ld+set}" = set; then :
14113 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14118 # Prepare PATH_SEPARATOR.
14119 # The user is always right.
14120 if test "${PATH_SEPARATOR+set}" != set; then
14121 echo "#! /bin/sh" >conf$$.sh
14122 echo "exit 0" >>conf$$.sh
14124 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14132 if test "$GCC" = yes; then
14133 # Check if gcc -print-prog-name=ld gives a path.
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14135 $as_echo_n "checking for ld used by GCC... " >&6; }
14138 # gcc leaves a trailing carriage return which upsets mingw
14139 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14141 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14144 # Accept absolute paths.
14145 [\\/]* | [A-Za-z]:[\\/]*)
14146 re_direlt='/[^/][^/]*/\.\./'
14147 # Canonicalize the path of ld
14148 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14149 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14150 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14152 test -z "$LD" && LD="$ac_prog"
14155 # If it fails, then pretend we aren't using GCC.
14159 # If it is relative, then search for the first ld in PATH.
14160 with_gnu_ld=unknown
14163 elif test "$with_gnu_ld" = yes; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14165 $as_echo_n "checking for GNU ld... " >&6; }
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14168 $as_echo_n "checking for non-GNU ld... " >&6; }
14170 if test "${acl_cv_path_LD+set}" = set; then :
14171 $as_echo_n "(cached) " >&6
14173 if test -z "$LD"; then
14174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14175 for ac_dir in $PATH; do
14176 test -z "$ac_dir" && ac_dir=.
14177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14178 acl_cv_path_LD="$ac_dir/$ac_prog"
14179 # Check to see if the program is GNU ld. I'd rather use --version,
14180 # but apparently some GNU ld's only accept -v.
14181 # Break only if it was the GNU/non-GNU ld that we prefer.
14182 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14183 *GNU* | *'with BFD'*)
14184 test "$with_gnu_ld" != no && break ;;
14186 test "$with_gnu_ld" != yes && break ;;
14192 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14196 LD="$acl_cv_path_LD"
14197 if test -n "$LD"; then
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14199 $as_echo "$LD" >&6; }
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14202 $as_echo "no" >&6; }
14204 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14206 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14207 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14208 $as_echo_n "(cached) " >&6
14210 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14211 case `$LD -v 2>&1 </dev/null` in
14212 *GNU* | *'with BFD'*)
14213 acl_cv_prog_gnu_ld=yes ;;
14215 acl_cv_prog_gnu_ld=no ;;
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14219 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14220 with_gnu_ld=$acl_cv_prog_gnu_ld
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14226 $as_echo_n "checking for shared library run path origin... " >&6; }
14227 if test "${acl_cv_rpath+set}" = set; then :
14228 $as_echo_n "(cached) " >&6
14231 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14232 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14234 rm -f ./conftest.sh
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14239 $as_echo "$acl_cv_rpath" >&6; }
14241 acl_libext="$acl_cv_libext"
14242 acl_shlibext="$acl_cv_shlibext"
14243 acl_libname_spec="$acl_cv_libname_spec"
14244 acl_library_names_spec="$acl_cv_library_names_spec"
14245 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14246 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14247 acl_hardcode_direct="$acl_cv_hardcode_direct"
14248 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14249 # Check whether --enable-rpath was given.
14250 if test "${enable_rpath+set}" = set; then :
14251 enableval=$enable_rpath; :
14259 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14260 if test -n "$searchpath"; then
14261 acl_save_IFS="${IFS= }"; IFS=":"
14262 for searchdir in $searchpath; do
14263 if test -d "$searchdir"; then
14264 case "$searchdir" in
14265 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14266 *) searchdir=`cd "$searchdir" && pwd`
14267 case "$searchdir" in
14268 */lib64 ) acl_libdirstem=lib64 ;;
14273 IFS="$acl_save_IFS"
14286 acl_save_prefix="$prefix"
14287 prefix="$acl_final_prefix"
14288 acl_save_exec_prefix="$exec_prefix"
14289 exec_prefix="$acl_final_exec_prefix"
14291 eval additional_includedir=\"$includedir\"
14292 eval additional_libdir=\"$libdir\"
14294 exec_prefix="$acl_save_exec_prefix"
14295 prefix="$acl_save_prefix"
14298 # Check whether --with-libiconv-prefix was given.
14299 if test "${with_libiconv_prefix+set}" = set; then :
14300 withval=$with_libiconv_prefix;
14301 if test "X$withval" = "Xno"; then
14304 if test "X$withval" = "X"; then
14306 acl_save_prefix="$prefix"
14307 prefix="$acl_final_prefix"
14308 acl_save_exec_prefix="$exec_prefix"
14309 exec_prefix="$acl_final_exec_prefix"
14311 eval additional_includedir=\"$includedir\"
14312 eval additional_libdir=\"$libdir\"
14314 exec_prefix="$acl_save_exec_prefix"
14315 prefix="$acl_save_prefix"
14318 additional_includedir="$withval/include"
14319 additional_libdir="$withval/$acl_libdirstem"
14331 names_already_handled=
14332 names_next_round='iconv '
14333 while test -n "$names_next_round"; do
14334 names_this_round="$names_next_round"
14336 for name in $names_this_round; do
14338 for n in $names_already_handled; do
14339 if test "$n" = "$name"; then
14340 already_handled=yes
14344 if test -z "$already_handled"; then
14345 names_already_handled="$names_already_handled $name"
14346 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14347 eval value=\"\$HAVE_LIB$uppername\"
14348 if test -n "$value"; then
14349 if test "$value" = yes; then
14350 eval value=\"\$LIB$uppername\"
14351 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14352 eval value=\"\$LTLIB$uppername\"
14353 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14362 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14363 if test -n "$acl_shlibext"; then
14364 shrext=".$acl_shlibext" # typically: shrext=.so
14368 if test $use_additional = yes; then
14369 dir="$additional_libdir"
14370 if test -n "$acl_shlibext"; then
14371 if test -f "$dir/$libname$shrext"; then
14373 found_so="$dir/$libname$shrext"
14375 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14376 ver=`(cd "$dir" && \
14377 for f in "$libname$shrext".*; do echo "$f"; done \
14378 | sed -e "s,^$libname$shrext\\\\.,," \
14379 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14380 | sed 1q ) 2>/dev/null`
14381 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14383 found_so="$dir/$libname$shrext.$ver"
14386 eval library_names=\"$acl_library_names_spec\"
14387 for f in $library_names; do
14388 if test -f "$dir/$f"; then
14397 if test "X$found_dir" = "X"; then
14398 if test -f "$dir/$libname.$acl_libext"; then
14400 found_a="$dir/$libname.$acl_libext"
14403 if test "X$found_dir" != "X"; then
14404 if test -f "$dir/$libname.la"; then
14405 found_la="$dir/$libname.la"
14409 if test "X$found_dir" = "X"; then
14410 for x in $LDFLAGS $LTLIBICONV; do
14412 acl_save_prefix="$prefix"
14413 prefix="$acl_final_prefix"
14414 acl_save_exec_prefix="$exec_prefix"
14415 exec_prefix="$acl_final_exec_prefix"
14417 exec_prefix="$acl_save_exec_prefix"
14418 prefix="$acl_save_prefix"
14422 dir=`echo "X$x" | sed -e 's/^X-L//'`
14423 if test -n "$acl_shlibext"; then
14424 if test -f "$dir/$libname$shrext"; then
14426 found_so="$dir/$libname$shrext"
14428 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14429 ver=`(cd "$dir" && \
14430 for f in "$libname$shrext".*; do echo "$f"; done \
14431 | sed -e "s,^$libname$shrext\\\\.,," \
14432 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14433 | sed 1q ) 2>/dev/null`
14434 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14436 found_so="$dir/$libname$shrext.$ver"
14439 eval library_names=\"$acl_library_names_spec\"
14440 for f in $library_names; do
14441 if test -f "$dir/$f"; then
14450 if test "X$found_dir" = "X"; then
14451 if test -f "$dir/$libname.$acl_libext"; then
14453 found_a="$dir/$libname.$acl_libext"
14456 if test "X$found_dir" != "X"; then
14457 if test -f "$dir/$libname.la"; then
14458 found_la="$dir/$libname.la"
14463 if test "X$found_dir" != "X"; then
14468 if test "X$found_dir" != "X"; then
14469 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14470 if test "X$found_so" != "X"; then
14471 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14472 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14475 for x in $ltrpathdirs; do
14476 if test "X$x" = "X$found_dir"; then
14481 if test -z "$haveit"; then
14482 ltrpathdirs="$ltrpathdirs $found_dir"
14484 if test "$acl_hardcode_direct" = yes; then
14485 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14487 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14488 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14490 for x in $rpathdirs; do
14491 if test "X$x" = "X$found_dir"; then
14496 if test -z "$haveit"; then
14497 rpathdirs="$rpathdirs $found_dir"
14501 for x in $LDFLAGS $LIBICONV; do
14503 acl_save_prefix="$prefix"
14504 prefix="$acl_final_prefix"
14505 acl_save_exec_prefix="$exec_prefix"
14506 exec_prefix="$acl_final_exec_prefix"
14508 exec_prefix="$acl_save_exec_prefix"
14509 prefix="$acl_save_prefix"
14511 if test "X$x" = "X-L$found_dir"; then
14516 if test -z "$haveit"; then
14517 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14519 if test "$acl_hardcode_minus_L" != no; then
14520 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14522 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14528 if test "X$found_a" != "X"; then
14529 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14531 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14534 additional_includedir=
14535 case "$found_dir" in
14536 */$acl_libdirstem | */$acl_libdirstem/)
14537 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14538 LIBICONV_PREFIX="$basedir"
14539 additional_includedir="$basedir/include"
14542 if test "X$additional_includedir" != "X"; then
14543 if test "X$additional_includedir" != "X/usr/include"; then
14545 if test "X$additional_includedir" = "X/usr/local/include"; then
14546 if test -n "$GCC"; then
14548 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14552 if test -z "$haveit"; then
14553 for x in $CPPFLAGS $INCICONV; do
14555 acl_save_prefix="$prefix"
14556 prefix="$acl_final_prefix"
14557 acl_save_exec_prefix="$exec_prefix"
14558 exec_prefix="$acl_final_exec_prefix"
14560 exec_prefix="$acl_save_exec_prefix"
14561 prefix="$acl_save_prefix"
14563 if test "X$x" = "X-I$additional_includedir"; then
14568 if test -z "$haveit"; then
14569 if test -d "$additional_includedir"; then
14570 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14576 if test -n "$found_la"; then
14577 save_libdir="$libdir"
14578 case "$found_la" in
14579 */* | *\\*) . "$found_la" ;;
14580 *) . "./$found_la" ;;
14582 libdir="$save_libdir"
14583 for dep in $dependency_libs; do
14586 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14587 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14589 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14590 if test -n "$GCC"; then
14592 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14596 if test -z "$haveit"; then
14598 for x in $LDFLAGS $LIBICONV; do
14600 acl_save_prefix="$prefix"
14601 prefix="$acl_final_prefix"
14602 acl_save_exec_prefix="$exec_prefix"
14603 exec_prefix="$acl_final_exec_prefix"
14605 exec_prefix="$acl_save_exec_prefix"
14606 prefix="$acl_save_prefix"
14608 if test "X$x" = "X-L$additional_libdir"; then
14613 if test -z "$haveit"; then
14614 if test -d "$additional_libdir"; then
14615 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14619 for x in $LDFLAGS $LTLIBICONV; do
14621 acl_save_prefix="$prefix"
14622 prefix="$acl_final_prefix"
14623 acl_save_exec_prefix="$exec_prefix"
14624 exec_prefix="$acl_final_exec_prefix"
14626 exec_prefix="$acl_save_exec_prefix"
14627 prefix="$acl_save_prefix"
14629 if test "X$x" = "X-L$additional_libdir"; then
14634 if test -z "$haveit"; then
14635 if test -d "$additional_libdir"; then
14636 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14643 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14644 if test "$enable_rpath" != no; then
14646 for x in $rpathdirs; do
14647 if test "X$x" = "X$dir"; then
14652 if test -z "$haveit"; then
14653 rpathdirs="$rpathdirs $dir"
14656 for x in $ltrpathdirs; do
14657 if test "X$x" = "X$dir"; then
14662 if test -z "$haveit"; then
14663 ltrpathdirs="$ltrpathdirs $dir"
14668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14671 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14674 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14675 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14681 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14688 if test "X$rpathdirs" != "X"; then
14689 if test -n "$acl_hardcode_libdir_separator"; then
14691 for found_dir in $rpathdirs; do
14692 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14694 acl_save_libdir="$libdir"
14696 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14697 libdir="$acl_save_libdir"
14698 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14700 for found_dir in $rpathdirs; do
14701 acl_save_libdir="$libdir"
14702 libdir="$found_dir"
14703 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14704 libdir="$acl_save_libdir"
14705 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14709 if test "X$ltrpathdirs" != "X"; then
14710 for found_dir in $ltrpathdirs; do
14711 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14721 am_save_CPPFLAGS="$CPPFLAGS"
14723 for element in $INCICONV; do
14725 for x in $CPPFLAGS; do
14727 acl_save_prefix="$prefix"
14728 prefix="$acl_final_prefix"
14729 acl_save_exec_prefix="$exec_prefix"
14730 exec_prefix="$acl_final_exec_prefix"
14732 exec_prefix="$acl_save_exec_prefix"
14733 prefix="$acl_save_prefix"
14735 if test "X$x" = "X$element"; then
14740 if test -z "$haveit"; then
14741 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14747 $as_echo_n "checking for iconv... " >&6; }
14748 if test "${am_cv_func_iconv+set}" = set; then :
14749 $as_echo_n "(cached) " >&6
14752 am_cv_func_iconv="no, consider installing GNU libiconv"
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14756 #include <stdlib.h>
14761 iconv_t cd = iconv_open("","");
14762 iconv(cd,NULL,NULL,NULL,NULL);
14768 if ac_fn_c_try_link "$LINENO"; then :
14769 am_cv_func_iconv=yes
14771 rm -f core conftest.err conftest.$ac_objext \
14772 conftest$ac_exeext conftest.$ac_ext
14773 if test "$am_cv_func_iconv" != yes; then
14774 am_save_LIBS="$LIBS"
14775 LIBS="$LIBS $LIBICONV"
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14778 #include <stdlib.h>
14783 iconv_t cd = iconv_open("","");
14784 iconv(cd,NULL,NULL,NULL,NULL);
14790 if ac_fn_c_try_link "$LINENO"; then :
14791 am_cv_lib_iconv=yes
14792 am_cv_func_iconv=yes
14794 rm -f core conftest.err conftest.$ac_objext \
14795 conftest$ac_exeext conftest.$ac_ext
14796 LIBS="$am_save_LIBS"
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14801 $as_echo "$am_cv_func_iconv" >&6; }
14802 if test "$am_cv_func_iconv" = yes; then
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14804 $as_echo_n "checking for working iconv... " >&6; }
14805 if test "${am_cv_func_iconv_works+set}" = set; then :
14806 $as_echo_n "(cached) " >&6
14809 am_save_LIBS="$LIBS"
14810 if test $am_cv_lib_iconv = yes; then
14811 LIBS="$LIBS $LIBICONV"
14813 if test "$cross_compiling" = yes; then :
14815 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14816 *) am_cv_func_iconv_works="guessing yes" ;;
14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h. */
14823 #include <string.h>
14826 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14829 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14830 if (cd_utf8_to_88591 != (iconv_t)(-1))
14832 static const char input[] = "\342\202\254"; /* EURO SIGN */
14834 const char *inptr = input;
14835 size_t inbytesleft = strlen (input);
14836 char *outptr = buf;
14837 size_t outbytesleft = sizeof (buf);
14838 size_t res = iconv (cd_utf8_to_88591,
14839 (char **) &inptr, &inbytesleft,
14840 &outptr, &outbytesleft);
14845 #if 0 /* This bug could be worked around by the caller. */
14846 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14848 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14849 if (cd_88591_to_utf8 != (iconv_t)(-1))
14851 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14853 const char *inptr = input;
14854 size_t inbytesleft = strlen (input);
14855 char *outptr = buf;
14856 size_t outbytesleft = sizeof (buf);
14857 size_t res = iconv (cd_88591_to_utf8,
14858 (char **) &inptr, &inbytesleft,
14859 &outptr, &outbytesleft);
14865 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14867 if (/* Try standardized names. */
14868 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14869 /* Try IRIX, OSF/1 names. */
14870 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14871 /* Try AIX names. */
14872 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14873 /* Try HP-UX names. */
14874 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14879 if ac_fn_c_try_run "$LINENO"; then :
14880 am_cv_func_iconv_works=yes
14882 am_cv_func_iconv_works=no
14884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14885 conftest.$ac_objext conftest.beam conftest.$ac_ext
14888 LIBS="$am_save_LIBS"
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14892 $as_echo "$am_cv_func_iconv_works" >&6; }
14893 case "$am_cv_func_iconv_works" in
14894 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14895 *) am_func_iconv=yes ;;
14898 am_func_iconv=no am_cv_lib_iconv=no
14900 if test "$am_func_iconv" = yes; then
14902 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14905 if test "$am_cv_lib_iconv" = yes; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14907 $as_echo_n "checking how to link with libiconv... " >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14909 $as_echo "$LIBICONV" >&6; }
14911 CPPFLAGS="$am_save_CPPFLAGS"
14918 if test "$am_cv_func_iconv" = yes; then
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14920 $as_echo_n "checking for iconv declaration... " >&6; }
14921 if test "${am_cv_proto_iconv+set}" = set; then :
14922 $as_echo_n "(cached) " >&6
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14928 #include <stdlib.h>
14934 #if defined(__STDC__) || defined(__cplusplus)
14935 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14948 if ac_fn_c_try_compile "$LINENO"; then :
14949 am_cv_proto_iconv_arg1=""
14951 am_cv_proto_iconv_arg1="const"
14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14954 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14957 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14959 }$am_cv_proto_iconv" >&5
14961 }$am_cv_proto_iconv" >&6; }
14963 cat >>confdefs.h <<_ACEOF
14964 #define ICONV_CONST $am_cv_proto_iconv_arg1
14969 if test "$am_cv_func_iconv" != yes; then
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libiconv" >&5
14971 $as_echo "$as_me: WARNING: Could not find libiconv" >&2;}
14973 conky_LIBS="$conky_LIBS $LIBICONV"
14975 if test "$am_cv_func_iconv" = yes; then
14977 BUILD_ICONV_FALSE='#'
14979 BUILD_ICONV_TRUE='#'
14985 # Check whether --enable-double_buffer was given.
14986 if test "${enable_double_buffer+set}" = set; then :
14987 enableval=$enable_double_buffer; want_double_buffer="$enableval"
14989 want_double_buffer=yes
14993 if test "x$want_double_buffer" = "xyes"; then
14994 if test "x$want_x11" != "xyes"; then
14995 want_double_buffer=no
14997 if $PKG_CONFIG --exists xext; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xext" >&5
15001 $as_echo_n "checking for Xext... " >&6; }
15003 if test -n "$PKG_CONFIG"; then
15004 if test -n "$Xext_CFLAGS"; then
15005 pkg_cv_Xext_CFLAGS="$Xext_CFLAGS"
15007 if test -n "$PKG_CONFIG" && \
15008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
15009 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
15011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15012 test $ac_status = 0; }; then
15013 pkg_cv_Xext_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
15021 if test -n "$PKG_CONFIG"; then
15022 if test -n "$Xext_LIBS"; then
15023 pkg_cv_Xext_LIBS="$Xext_LIBS"
15025 if test -n "$PKG_CONFIG" && \
15026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
15027 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
15029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030 test $ac_status = 0; }; then
15031 pkg_cv_Xext_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
15042 if test $pkg_failed = yes; then
15044 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15045 _pkg_short_errors_supported=yes
15047 _pkg_short_errors_supported=no
15049 if test $_pkg_short_errors_supported = yes; then
15050 Xext_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext"`
15052 Xext_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"`
15054 # Put the nasty error message in config.log where it belongs
15055 echo "$Xext_PKG_ERRORS" >&5
15057 as_fn_error "Package requirements (xext) were not met:
15061 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15062 installed software in a non-standard prefix.
15064 Alternatively, you may set the environment variables Xext_CFLAGS
15065 and Xext_LIBS to avoid the need to call pkg-config.
15066 See the pkg-config man page for more details.
15068 elif test $pkg_failed = untried; then
15069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15071 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15072 is in your PATH or set the PKG_CONFIG environment variable to the full
15073 path to pkg-config.
15075 Alternatively, you may set the environment variables Xext_CFLAGS
15076 and Xext_LIBS to avoid the need to call pkg-config.
15077 See the pkg-config man page for more details.
15079 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15080 See \`config.log' for more details." "$LINENO" 5; }
15082 Xext_CFLAGS=$pkg_cv_Xext_CFLAGS
15083 Xext_LIBS=$pkg_cv_Xext_LIBS
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15085 $as_echo "yes" >&6; }
15088 conky_CFLAGS="$conky_CFLAGS $Xext_CFLAGS"
15089 conky_LIBS="$conky_LIBS $Xext_LIBS"
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdbeQueryExtension in -lXext" >&5
15092 $as_echo_n "checking for XdbeQueryExtension in -lXext... " >&6; }
15093 if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then :
15094 $as_echo_n "(cached) " >&6
15096 ac_check_lib_save_LIBS=$LIBS
15097 LIBS="-lXext $LIBS"
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15101 /* Override any GCC internal prototype to avoid an error.
15102 Use char because int might match the return type of a GCC
15103 builtin and then its argument prototype would still apply. */
15107 char XdbeQueryExtension ();
15111 return XdbeQueryExtension ();
15116 if ac_fn_c_try_link "$LINENO"; then :
15117 ac_cv_lib_Xext_XdbeQueryExtension=yes
15119 ac_cv_lib_Xext_XdbeQueryExtension=no
15121 rm -f core conftest.err conftest.$ac_objext \
15122 conftest$ac_exeext conftest.$ac_ext
15123 LIBS=$ac_check_lib_save_LIBS
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
15126 $as_echo "$ac_cv_lib_Xext_XdbeQueryExtension" >&6; }
15127 if test "x$ac_cv_lib_Xext_XdbeQueryExtension" = x""yes; then :
15128 conky_LIBS="$conky_LIBS -lXext"
15130 as_fn_error "Could not find XdbeQueryExtension in -lXext" "$LINENO" 5
15135 $as_echo "#define HAVE_XDBE 1" >>confdefs.h
15142 # Check whether --enable-xdamage was given.
15143 if test "${enable_xdamage+set}" = set; then :
15144 enableval=$enable_xdamage; want_xdamage="$enableval"
15150 if test "x$want_xdamage" = "xyes"; then
15151 if test "x$want_x11" != "xyes"; then
15154 if $PKG_CONFIG --exists xdamage; then
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDamage" >&5
15158 $as_echo_n "checking for XDamage... " >&6; }
15160 if test -n "$PKG_CONFIG"; then
15161 if test -n "$XDamage_CFLAGS"; then
15162 pkg_cv_XDamage_CFLAGS="$XDamage_CFLAGS"
15164 if test -n "$PKG_CONFIG" && \
15165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdamage\""; } >&5
15166 ($PKG_CONFIG --exists --print-errors "xdamage") 2>&5
15168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15169 test $ac_status = 0; }; then
15170 pkg_cv_XDamage_CFLAGS=`$PKG_CONFIG --cflags "xdamage" 2>/dev/null`
15178 if test -n "$PKG_CONFIG"; then
15179 if test -n "$XDamage_LIBS"; then
15180 pkg_cv_XDamage_LIBS="$XDamage_LIBS"
15182 if test -n "$PKG_CONFIG" && \
15183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdamage\""; } >&5
15184 ($PKG_CONFIG --exists --print-errors "xdamage") 2>&5
15186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15187 test $ac_status = 0; }; then
15188 pkg_cv_XDamage_LIBS=`$PKG_CONFIG --libs "xdamage" 2>/dev/null`
15199 if test $pkg_failed = yes; then
15201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15202 _pkg_short_errors_supported=yes
15204 _pkg_short_errors_supported=no
15206 if test $_pkg_short_errors_supported = yes; then
15207 XDamage_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdamage"`
15209 XDamage_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdamage"`
15211 # Put the nasty error message in config.log where it belongs
15212 echo "$XDamage_PKG_ERRORS" >&5
15214 as_fn_error "Package requirements (xdamage) were not met:
15216 $XDamage_PKG_ERRORS
15218 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15219 installed software in a non-standard prefix.
15221 Alternatively, you may set the environment variables XDamage_CFLAGS
15222 and XDamage_LIBS to avoid the need to call pkg-config.
15223 See the pkg-config man page for more details.
15225 elif test $pkg_failed = untried; then
15226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15228 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15229 is in your PATH or set the PKG_CONFIG environment variable to the full
15230 path to pkg-config.
15232 Alternatively, you may set the environment variables XDamage_CFLAGS
15233 and XDamage_LIBS to avoid the need to call pkg-config.
15234 See the pkg-config man page for more details.
15236 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15237 See \`config.log' for more details." "$LINENO" 5; }
15239 XDamage_CFLAGS=$pkg_cv_XDamage_CFLAGS
15240 XDamage_LIBS=$pkg_cv_XDamage_LIBS
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15242 $as_echo "yes" >&6; }
15245 conky_CFLAGS="$conky_CFLAGS $XDamage_CFLAGS"
15246 conky_LIBS="$conky_LIBS $XDamage_LIBS"
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDamageQueryExtension in -lXdamage" >&5
15249 $as_echo_n "checking for XDamageQueryExtension in -lXdamage... " >&6; }
15250 if test "${ac_cv_lib_Xdamage_XDamageQueryExtension+set}" = set; then :
15251 $as_echo_n "(cached) " >&6
15253 ac_check_lib_save_LIBS=$LIBS
15254 LIBS="-lXdamage $LIBS"
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15258 /* Override any GCC internal prototype to avoid an error.
15259 Use char because int might match the return type of a GCC
15260 builtin and then its argument prototype would still apply. */
15264 char XDamageQueryExtension ();
15268 return XDamageQueryExtension ();
15273 if ac_fn_c_try_link "$LINENO"; then :
15274 ac_cv_lib_Xdamage_XDamageQueryExtension=yes
15276 ac_cv_lib_Xdamage_XDamageQueryExtension=no
15278 rm -f core conftest.err conftest.$ac_objext \
15279 conftest$ac_exeext conftest.$ac_ext
15280 LIBS=$ac_check_lib_save_LIBS
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdamage_XDamageQueryExtension" >&5
15283 $as_echo "$ac_cv_lib_Xdamage_XDamageQueryExtension" >&6; }
15284 if test "x$ac_cv_lib_Xdamage_XDamageQueryExtension" = x""yes; then :
15285 conky_LIBS="$conky_LIBS -lXdamage"
15287 as_fn_error "Could not find XDamageQueryExtension in -lXdamage" "$LINENO" 5
15292 $as_echo "#define HAVE_XDAMAGE 1" >>confdefs.h
15299 # Check whether --enable-xft was given.
15300 if test "${enable_xft+set}" = set; then :
15301 enableval=$enable_xft; want_xft="$enableval"
15307 if test x$want_xft = "xyes"; then
15308 if test "x$want_x11" != "xyes"; then
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft" >&5
15314 $as_echo_n "checking for Xft... " >&6; }
15316 if test -n "$PKG_CONFIG"; then
15317 if test -n "$Xft_CFLAGS"; then
15318 pkg_cv_Xft_CFLAGS="$Xft_CFLAGS"
15320 if test -n "$PKG_CONFIG" && \
15321 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
15322 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
15324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15325 test $ac_status = 0; }; then
15326 pkg_cv_Xft_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
15334 if test -n "$PKG_CONFIG"; then
15335 if test -n "$Xft_LIBS"; then
15336 pkg_cv_Xft_LIBS="$Xft_LIBS"
15338 if test -n "$PKG_CONFIG" && \
15339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
15340 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
15342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15343 test $ac_status = 0; }; then
15344 pkg_cv_Xft_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
15355 if test $pkg_failed = yes; then
15357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15358 _pkg_short_errors_supported=yes
15360 _pkg_short_errors_supported=no
15362 if test $_pkg_short_errors_supported = yes; then
15363 Xft_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xft"`
15365 Xft_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft"`
15367 # Put the nasty error message in config.log where it belongs
15368 echo "$Xft_PKG_ERRORS" >&5
15370 as_fn_error "Package requirements (xft) were not met:
15374 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15375 installed software in a non-standard prefix.
15377 Alternatively, you may set the environment variables Xft_CFLAGS
15378 and Xft_LIBS to avoid the need to call pkg-config.
15379 See the pkg-config man page for more details.
15381 elif test $pkg_failed = untried; then
15382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15384 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15385 is in your PATH or set the PKG_CONFIG environment variable to the full
15386 path to pkg-config.
15388 Alternatively, you may set the environment variables Xft_CFLAGS
15389 and Xft_LIBS to avoid the need to call pkg-config.
15390 See the pkg-config man page for more details.
15392 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15393 See \`config.log' for more details." "$LINENO" 5; }
15395 Xft_CFLAGS=$pkg_cv_Xft_CFLAGS
15396 Xft_LIBS=$pkg_cv_Xft_LIBS
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15398 $as_echo "yes" >&6; }
15401 conky_CFLAGS="$conky_CFLAGS $Xft_CFLAGS"
15402 conky_LIBS="$conky_LIBS $Xft_LIBS"
15404 $as_echo "#define XFT 1" >>confdefs.h
15410 # Check whether --enable-nvidia was given.
15411 if test "${enable_nvidia+set}" = set; then :
15412 enableval=$enable_nvidia; want_nvidia="$enableval"
15417 if test x$want_nvidia = xyes; then
15418 if test "x$want_x11" != "xyes"; then
15422 for ac_header in NVCtrl/NVCtrl.h
15424 ac_fn_c_check_header_mongrel "$LINENO" "NVCtrl/NVCtrl.h" "ac_cv_header_NVCtrl_NVCtrl_h" "$ac_includes_default"
15425 if test "x$ac_cv_header_NVCtrl_NVCtrl_h" = x""yes; then :
15426 cat >>confdefs.h <<_ACEOF
15427 #define HAVE_NVCTRL_NVCTRL_H 1
15431 as_fn_error "NVCtrl/NVCtrl.h header not found" "$LINENO" 5
15436 conky_LIBS="$conky_LIBS -lXNVCtrl"
15438 $as_echo "#define NVIDIA 1" >>confdefs.h
15442 if test x$want_nvidia = xyes; then
15444 BUILD_NVIDIA_FALSE='#'
15446 BUILD_NVIDIA_TRUE='#'
15447 BUILD_NVIDIA_FALSE=
15452 if test x$WANT_GLIB = xyes; then
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib2" >&5
15456 $as_echo_n "checking for GLib2... " >&6; }
15458 if test -n "$PKG_CONFIG"; then
15459 if test -n "$GLib2_CFLAGS"; then
15460 pkg_cv_GLib2_CFLAGS="$GLib2_CFLAGS"
15462 if test -n "$PKG_CONFIG" && \
15463 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
15464 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
15466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15467 test $ac_status = 0; }; then
15468 pkg_cv_GLib2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
15476 if test -n "$PKG_CONFIG"; then
15477 if test -n "$GLib2_LIBS"; then
15478 pkg_cv_GLib2_LIBS="$GLib2_LIBS"
15480 if test -n "$PKG_CONFIG" && \
15481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
15482 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
15484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15485 test $ac_status = 0; }; then
15486 pkg_cv_GLib2_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
15497 if test $pkg_failed = yes; then
15499 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15500 _pkg_short_errors_supported=yes
15502 _pkg_short_errors_supported=no
15504 if test $_pkg_short_errors_supported = yes; then
15505 GLib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
15507 GLib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
15509 # Put the nasty error message in config.log where it belongs
15510 echo "$GLib2_PKG_ERRORS" >&5
15512 as_fn_error "Package requirements (glib-2.0) were not met:
15516 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15517 installed software in a non-standard prefix.
15519 Alternatively, you may set the environment variables GLib2_CFLAGS
15520 and GLib2_LIBS to avoid the need to call pkg-config.
15521 See the pkg-config man page for more details.
15523 elif test $pkg_failed = untried; then
15524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15526 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15527 is in your PATH or set the PKG_CONFIG environment variable to the full
15528 path to pkg-config.
15530 Alternatively, you may set the environment variables GLib2_CFLAGS
15531 and GLib2_LIBS to avoid the need to call pkg-config.
15532 See the pkg-config man page for more details.
15534 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15535 See \`config.log' for more details." "$LINENO" 5; }
15537 GLib2_CFLAGS=$pkg_cv_GLib2_CFLAGS
15538 GLib2_LIBS=$pkg_cv_GLib2_LIBS
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15540 $as_echo "yes" >&6; }
15543 conky_CFLAGS="$conky_CFLAGS $GLib2_CFLAGS"
15544 conky_LIBS="$conky_LIBS $GLib2_LIBS"
15548 if test x$want_curl = xyes; then
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
15552 $as_echo_n "checking for libcurl... " >&6; }
15554 if test -n "$PKG_CONFIG"; then
15555 if test -n "$libcurl_CFLAGS"; then
15556 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
15558 if test -n "$PKG_CONFIG" && \
15559 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
15560 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
15562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15563 test $ac_status = 0; }; then
15564 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
15572 if test -n "$PKG_CONFIG"; then
15573 if test -n "$libcurl_LIBS"; then
15574 pkg_cv_libcurl_LIBS="$libcurl_LIBS"
15576 if test -n "$PKG_CONFIG" && \
15577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
15578 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
15580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15581 test $ac_status = 0; }; then
15582 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
15593 if test $pkg_failed = yes; then
15595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15596 _pkg_short_errors_supported=yes
15598 _pkg_short_errors_supported=no
15600 if test $_pkg_short_errors_supported = yes; then
15601 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
15603 libcurl_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
15605 # Put the nasty error message in config.log where it belongs
15606 echo "$libcurl_PKG_ERRORS" >&5
15608 as_fn_error "Package requirements (libcurl) were not met:
15610 $libcurl_PKG_ERRORS
15612 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15613 installed software in a non-standard prefix.
15615 Alternatively, you may set the environment variables libcurl_CFLAGS
15616 and libcurl_LIBS to avoid the need to call pkg-config.
15617 See the pkg-config man page for more details.
15619 elif test $pkg_failed = untried; then
15620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15622 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15623 is in your PATH or set the PKG_CONFIG environment variable to the full
15624 path to pkg-config.
15626 Alternatively, you may set the environment variables libcurl_CFLAGS
15627 and libcurl_LIBS to avoid the need to call pkg-config.
15628 See the pkg-config man page for more details.
15630 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15631 See \`config.log' for more details." "$LINENO" 5; }
15633 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
15634 libcurl_LIBS=$pkg_cv_libcurl_LIBS
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15636 $as_echo "yes" >&6; }
15639 conky_CFLAGS="$conky_CFLAGS $libcurl_CFLAGS"
15640 conky_LIBS="$conky_LIBS $libcurl_LIBS"
15642 $as_echo "#define HAVE_CURL 1" >>confdefs.h
15645 if test x$want_curl = xyes; then
15647 BUILD_CURL_FALSE='#'
15649 BUILD_CURL_TRUE='#'
15655 if test x$want_libxml2 = xyes; then
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
15659 $as_echo_n "checking for libxml2... " >&6; }
15661 if test -n "$PKG_CONFIG"; then
15662 if test -n "$libxml2_CFLAGS"; then
15663 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
15665 if test -n "$PKG_CONFIG" && \
15666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
15667 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
15669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15670 test $ac_status = 0; }; then
15671 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
15679 if test -n "$PKG_CONFIG"; then
15680 if test -n "$libxml2_LIBS"; then
15681 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
15683 if test -n "$PKG_CONFIG" && \
15684 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
15685 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
15687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15688 test $ac_status = 0; }; then
15689 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
15700 if test $pkg_failed = yes; then
15702 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15703 _pkg_short_errors_supported=yes
15705 _pkg_short_errors_supported=no
15707 if test $_pkg_short_errors_supported = yes; then
15708 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0"`
15710 libxml2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
15712 # Put the nasty error message in config.log where it belongs
15713 echo "$libxml2_PKG_ERRORS" >&5
15715 as_fn_error "Package requirements (libxml-2.0) were not met:
15717 $libxml2_PKG_ERRORS
15719 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15720 installed software in a non-standard prefix.
15722 Alternatively, you may set the environment variables libxml2_CFLAGS
15723 and libxml2_LIBS to avoid the need to call pkg-config.
15724 See the pkg-config man page for more details.
15726 elif test $pkg_failed = untried; then
15727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15729 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15730 is in your PATH or set the PKG_CONFIG environment variable to the full
15731 path to pkg-config.
15733 Alternatively, you may set the environment variables libxml2_CFLAGS
15734 and libxml2_LIBS to avoid the need to call pkg-config.
15735 See the pkg-config man page for more details.
15737 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15738 See \`config.log' for more details." "$LINENO" 5; }
15740 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
15741 libxml2_LIBS=$pkg_cv_libxml2_LIBS
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15743 $as_echo "yes" >&6; }
15746 conky_CFLAGS="$conky_CFLAGS $libxml2_CFLAGS"
15747 conky_LIBS="$conky_LIBS $libxml2_LIBS"
15751 if test x$WANT_KVM = xyes; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15753 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15754 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15755 $as_echo_n "(cached) " >&6
15757 ac_check_lib_save_LIBS=$LIBS
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15762 /* Override any GCC internal prototype to avoid an error.
15763 Use char because int might match the return type of a GCC
15764 builtin and then its argument prototype would still apply. */
15772 return kvm_open ();
15777 if ac_fn_c_try_link "$LINENO"; then :
15778 ac_cv_lib_kvm_kvm_open=yes
15780 ac_cv_lib_kvm_kvm_open=no
15782 rm -f core conftest.err conftest.$ac_objext \
15783 conftest$ac_exeext conftest.$ac_ext
15784 LIBS=$ac_check_lib_save_LIBS
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15787 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15788 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
15789 conky_LIBS="$conky_LIBS -lkvm"
15791 as_fn_error "Could not find kvm_open in -lkvm." "$LINENO" 5
15798 if test x$WANT_DEVSTAT = xyes; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devstat_getversion in -ldevstat" >&5
15800 $as_echo_n "checking for devstat_getversion in -ldevstat... " >&6; }
15801 if test "${ac_cv_lib_devstat_devstat_getversion+set}" = set; then :
15802 $as_echo_n "(cached) " >&6
15804 ac_check_lib_save_LIBS=$LIBS
15805 LIBS="-ldevstat $LIBS"
15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h. */
15809 /* Override any GCC internal prototype to avoid an error.
15810 Use char because int might match the return type of a GCC
15811 builtin and then its argument prototype would still apply. */
15815 char devstat_getversion ();
15819 return devstat_getversion ();
15824 if ac_fn_c_try_link "$LINENO"; then :
15825 ac_cv_lib_devstat_devstat_getversion=yes
15827 ac_cv_lib_devstat_devstat_getversion=no
15829 rm -f core conftest.err conftest.$ac_objext \
15830 conftest$ac_exeext conftest.$ac_ext
15831 LIBS=$ac_check_lib_save_LIBS
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devstat_devstat_getversion" >&5
15834 $as_echo "$ac_cv_lib_devstat_devstat_getversion" >&6; }
15835 if test "x$ac_cv_lib_devstat_devstat_getversion" = x""yes; then :
15836 conky_LIBS="$conky_LIBS -ldevstat"
15838 as_fn_error "Cound not find devstat_getversion in -ldevstat." "$LINENO" 5
15845 if test x$WANT_OSSLIB = xyes; then
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
15847 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
15848 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
15849 $as_echo_n "(cached) " >&6
15851 ac_check_lib_save_LIBS=$LIBS
15852 LIBS="-lossaudio $LIBS"
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15856 /* Override any GCC internal prototype to avoid an error.
15857 Use char because int might match the return type of a GCC
15858 builtin and then its argument prototype would still apply. */
15862 char _oss_ioctl ();
15866 return _oss_ioctl ();
15871 if ac_fn_c_try_link "$LINENO"; then :
15872 ac_cv_lib_ossaudio__oss_ioctl=yes
15874 ac_cv_lib_ossaudio__oss_ioctl=no
15876 rm -f core conftest.err conftest.$ac_objext \
15877 conftest$ac_exeext conftest.$ac_ext
15878 LIBS=$ac_check_lib_save_LIBS
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
15881 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
15882 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
15883 conky_LIBS="$conky_LIBS -lossaudio"
15885 as_fn_error "Could not find oss_ioctl in -lossaudio." "$LINENO" 5
15891 # Check whether --enable-alsa was given.
15892 if test "${enable_alsa+set}" = set; then :
15893 enableval=$enable_alsa; want_alsa="$enableval"
15899 if test x$want_alsa = xyes; then
15900 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
15901 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
15909 if test x$want_alsa = xyes; then
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
15911 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
15912 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then :
15913 $as_echo_n "(cached) " >&6
15915 ac_check_lib_save_LIBS=$LIBS
15916 LIBS="-lasound $LIBS"
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15920 /* Override any GCC internal prototype to avoid an error.
15921 Use char because int might match the return type of a GCC
15922 builtin and then its argument prototype would still apply. */
15926 char snd_pcm_open ();
15930 return snd_pcm_open ();
15935 if ac_fn_c_try_link "$LINENO"; then :
15936 ac_cv_lib_asound_snd_pcm_open=yes
15938 ac_cv_lib_asound_snd_pcm_open=no
15940 rm -f core conftest.err conftest.$ac_objext \
15941 conftest$ac_exeext conftest.$ac_ext
15942 LIBS=$ac_check_lib_save_LIBS
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
15945 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
15946 if test "x$ac_cv_lib_asound_snd_pcm_open" = x""yes; then :
15947 conky_LIBS="$conky_LIBS -lasound"
15953 if test x$want_alsa = xyes; then
15955 $as_echo "#define MIXER_IS_ALSA 1" >>confdefs.h
15959 for ac_header in signal.h unistd.h sys/utsname.h sys/stat.h linux/soundcard.h alsa/asoundlib.h dirent.h mcheck.h \
15960 sys/statfs.h sys/param.h pthread.h semaphore.h assert.h errno.h time.h
15962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15963 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15964 eval as_val=\$$as_ac_Header
15965 if test "x$as_val" = x""yes; then :
15966 cat >>confdefs.h <<_ACEOF
15967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15974 for ac_header in sys/mount.h
15976 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#ifdef HAVE_SYS_PARAM_H
15977 #include <sys/param.h>
15981 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
15982 cat >>confdefs.h <<_ACEOF
15983 #define HAVE_SYS_MOUNT_H 1
15990 # check if we have inotify support
15991 for ac_header in sys/inotify.h
15993 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
15994 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
15995 cat >>confdefs.h <<_ACEOF
15996 #define HAVE_SYS_INOTIFY_H 1
16006 $as_echo "#define DEFAULTNETDEV \"eth0\"" >>confdefs.h
16009 $as_echo "#define CONFIG_FILE \"\$HOME/.conkyrc\"" >>confdefs.h
16012 $as_echo "#define MAX_SPECIALS_DEFAULT 512" >>confdefs.h
16015 $as_echo "#define MAX_USER_TEXT_DEFAULT 16384" >>confdefs.h
16018 $as_echo "#define DEFAULT_TEXT_BUFFER_SIZE 256" >>confdefs.h
16021 $as_echo "#define MAX_NET_INTERFACES 16" >>confdefs.h
16025 for ac_func in calloc malloc free popen sysinfo getloadavg memrchr strndup gethostbyname_r
16027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16029 eval as_val=\$$as_ac_var
16030 if test "x$as_val" = x""yes; then :
16031 cat >>confdefs.h <<_ACEOF
16032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16039 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16040 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16041 $as_echo_n "(cached) " >&6
16043 ac_func_search_save_LIBS=$LIBS
16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h. */
16047 /* Override any GCC internal prototype to avoid an error.
16048 Use char because int might match the return type of a GCC
16049 builtin and then its argument prototype would still apply. */
16053 char clock_gettime ();
16057 return clock_gettime ();
16062 for ac_lib in '' rt; do
16063 if test -z "$ac_lib"; then
16064 ac_res="none required"
16067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16069 if ac_fn_c_try_link "$LINENO"; then :
16070 ac_cv_search_clock_gettime=$ac_res
16072 rm -f core conftest.err conftest.$ac_objext \
16074 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16078 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16081 ac_cv_search_clock_gettime=no
16083 rm conftest.$ac_ext
16084 LIBS=$ac_func_search_save_LIBS
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16087 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16088 ac_res=$ac_cv_search_clock_gettime
16089 if test "$ac_res" != no; then :
16090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16091 conky_LIBS="$conky_LIBS $LIBS"
16093 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16096 for ac_func in gettimeofday
16098 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16099 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
16100 cat >>confdefs.h <<_ACEOF
16101 #define HAVE_GETTIMEOFDAY 1
16105 as_fn_error "gettimeofday() not available!" "$LINENO" 5
16113 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/statfs.h>
16115 if test "x$ac_cv_member_struct_statfs_f_fstypename" = x""yes; then :
16117 $as_echo "#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1" >>confdefs.h
16123 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16124 if test "x$ac_cv_header_zlib_h" = x""yes; then :
16127 as_fn_error "zlib is missing; please install the headers first" "$LINENO" 5
16137 for ac_prog in db2x_xsltproc
16139 # Extract the first word of "$ac_prog", so it can be a program name with args.
16140 set dummy $ac_prog; ac_word=$2
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16142 $as_echo_n "checking for $ac_word... " >&6; }
16143 if test "${ac_cv_prog_db2x_xsltproc_cmd+set}" = set; then :
16144 $as_echo_n "(cached) " >&6
16146 if test -n "$db2x_xsltproc_cmd"; then
16147 ac_cv_prog_db2x_xsltproc_cmd="$db2x_xsltproc_cmd" # Let the user override the test.
16149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16150 for as_dir in $PATH
16153 test -z "$as_dir" && as_dir=.
16154 for ac_exec_ext in '' $ac_executable_extensions; do
16155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16156 ac_cv_prog_db2x_xsltproc_cmd="$ac_prog"
16157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16166 db2x_xsltproc_cmd=$ac_cv_prog_db2x_xsltproc_cmd
16167 if test -n "$db2x_xsltproc_cmd"; then
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db2x_xsltproc_cmd" >&5
16169 $as_echo "$db2x_xsltproc_cmd" >&6; }
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16172 $as_echo "no" >&6; }
16176 test -n "$db2x_xsltproc_cmd" && break
16179 for ac_prog in db2x_manxml
16181 # Extract the first word of "$ac_prog", so it can be a program name with args.
16182 set dummy $ac_prog; ac_word=$2
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16184 $as_echo_n "checking for $ac_word... " >&6; }
16185 if test "${ac_cv_prog_db2x_manxml_cmd+set}" = set; then :
16186 $as_echo_n "(cached) " >&6
16188 if test -n "$db2x_manxml_cmd"; then
16189 ac_cv_prog_db2x_manxml_cmd="$db2x_manxml_cmd" # Let the user override the test.
16191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16192 for as_dir in $PATH
16195 test -z "$as_dir" && as_dir=.
16196 for ac_exec_ext in '' $ac_executable_extensions; do
16197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16198 ac_cv_prog_db2x_manxml_cmd="$ac_prog"
16199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16208 db2x_manxml_cmd=$ac_cv_prog_db2x_manxml_cmd
16209 if test -n "$db2x_manxml_cmd"; then
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db2x_manxml_cmd" >&5
16211 $as_echo "$db2x_manxml_cmd" >&6; }
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16214 $as_echo "no" >&6; }
16218 test -n "$db2x_manxml_cmd" && break
16221 for ac_prog in xsltproc
16223 # Extract the first word of "$ac_prog", so it can be a program name with args.
16224 set dummy $ac_prog; ac_word=$2
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16226 $as_echo_n "checking for $ac_word... " >&6; }
16227 if test "${ac_cv_prog_xsltproc_cmd+set}" = set; then :
16228 $as_echo_n "(cached) " >&6
16230 if test -n "$xsltproc_cmd"; then
16231 ac_cv_prog_xsltproc_cmd="$xsltproc_cmd" # Let the user override the test.
16233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16234 for as_dir in $PATH
16237 test -z "$as_dir" && as_dir=.
16238 for ac_exec_ext in '' $ac_executable_extensions; do
16239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16240 ac_cv_prog_xsltproc_cmd="$ac_prog"
16241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16250 xsltproc_cmd=$ac_cv_prog_xsltproc_cmd
16251 if test -n "$xsltproc_cmd"; then
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsltproc_cmd" >&5
16253 $as_echo "$xsltproc_cmd" >&6; }
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256 $as_echo "no" >&6; }
16260 test -n "$xsltproc_cmd" && break
16263 if test x$db2x_xsltproc_cmd = "x" -o x$xsltproc_cmd = "x"; then
16265 HAVE_DOCSTUFF_TRUE=
16266 HAVE_DOCSTUFF_FALSE='#'
16268 HAVE_DOCSTUFF_TRUE='#'
16269 HAVE_DOCSTUFF_FALSE=
16274 HAVE_DOCSTUFF_TRUE=
16275 HAVE_DOCSTUFF_FALSE='#'
16277 HAVE_DOCSTUFF_TRUE='#'
16278 HAVE_DOCSTUFF_FALSE=
16284 if test x$WANT_KSTAT = xyes; then
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
16287 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
16288 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
16289 $as_echo_n "(cached) " >&6
16291 ac_check_lib_save_LIBS=$LIBS
16292 LIBS="-lkstat $LIBS"
16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294 /* end confdefs.h. */
16296 /* Override any GCC internal prototype to avoid an error.
16297 Use char because int might match the return type of a GCC
16298 builtin and then its argument prototype would still apply. */
16302 char kstat_open ();
16306 return kstat_open ();
16311 if ac_fn_c_try_link "$LINENO"; then :
16312 ac_cv_lib_kstat_kstat_open=yes
16314 ac_cv_lib_kstat_kstat_open=no
16316 rm -f core conftest.err conftest.$ac_objext \
16317 conftest$ac_exeext conftest.$ac_ext
16318 LIBS=$ac_check_lib_save_LIBS
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
16321 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
16322 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
16327 if test x$dah = xyes; then
16329 $as_echo "#define HAVE_KSTAT 1" >>confdefs.h
16331 conky_LDFLAGS="$conky_LDFLAGS -lkstat"
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD accepts -O1" >&5
16339 $as_echo_n "checking if $LD accepts -O1... " >&6; }
16340 case `$LD -O1 -v 2>&1 </dev/null` in
16342 conky_LDFLAGS="$conky_LDFLAGS -Wl,-O1"
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16344 $as_echo "yes" >&6; }
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16348 $as_echo "no" >&6; }
16354 conky_CFLAGS="$conky_CFLAGS -Wall -W"
16357 # Check whether --enable-debug was given.
16358 if test "${enable_debug+set}" = set; then :
16359 enableval=$enable_debug; want_debug="$enableval"
16365 if test "x$want_debug" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
16366 conky_CFLAGS="$conky_CFLAGS -g3 -O0"
16368 $as_echo "#define DEBUG 1" >>confdefs.h
16373 # Check whether --enable-testing was given.
16374 if test "${enable_testing+set}" = set; then :
16375 enableval=$enable_testing; want_testing="$enableval"
16381 if test "x$want_testing" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
16382 if test "x$want_debug" = "xyes"; then
16383 conky_CFLAGS="$conky_CFLAGS -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Winline -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic -Werror"
16385 $as_echo "#define TESTING /**/" >>confdefs.h
16388 conky_CFLAGS="$conky_CFLAGS -O0 -g3 -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Winline -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic -Werror"
16390 $as_echo "#define TESTING /**/" >>confdefs.h
16396 # Check whether --enable-profiling was given.
16397 if test "${enable_profiling+set}" = set; then :
16398 enableval=$enable_profiling; want_profiling="$enableval"
16404 if test "x$want_profiling" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
16405 if test "x$want_debug" = "xyes"; then
16406 conky_CFLAGS="$conky_CFLAGS -pg -fprofile-arcs -ftest-coverage"
16408 conky_CFLAGS="$conky_CFLAGS -g3 -pg -fprofile-arcs -ftest-coverage"
16411 $as_echo "#define PROFILING /**/" >>confdefs.h
16419 cat >confcache <<\_ACEOF
16420 # This file is a shell script that caches the results of configure
16421 # tests run on this system so they can be shared between configure
16422 # scripts and configure runs, see configure's option --config-cache.
16423 # It is not useful on other systems. If it contains results you don't
16424 # want to keep, you may remove or edit it.
16426 # config.status only pays attention to the cache file if you give it
16427 # the --recheck option to rerun configure.
16429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16431 # following values.
16435 # The following way of writing the cache mishandles newlines in values,
16436 # but we know of no workaround that is simple, portable, and efficient.
16437 # So, we kill variables containing newlines.
16438 # Ultrix sh set writes to stderr and can't be redirected directly,
16439 # and sets the high bit in the cache file unless we assign to the vars.
16441 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16442 eval ac_val=\$$ac_var
16446 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16447 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16450 _ | IFS | as_nl) ;; #(
16451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16452 *) { eval $ac_var=; unset $ac_var;} ;;
16458 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16459 *${as_nl}ac_space=\ *)
16460 # `set' does not quote correctly, so add quotes: double-quote
16461 # substitution turns \\\\ into \\, and sed turns \\ into \.
16464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16467 # `set' quotes correctly as required by POSIX, so do not add quotes.
16468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16477 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16479 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16481 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16482 if test -w "$cache_file"; then
16483 test "x$cache_file" != "x/dev/null" &&
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16485 $as_echo "$as_me: updating cache $cache_file" >&6;}
16486 cat confcache >$cache_file
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16489 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16495 # Let make expand exec_prefix.
16496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16498 DEFS=-DHAVE_CONFIG_H
16502 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16503 # 1. Remove the extension, and $U if already installed.
16504 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16505 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16506 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16507 # will be set to the directory where LIBOBJS objects are built.
16508 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16509 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16511 LIBOBJS=$ac_libobjs
16513 LTLIBOBJS=$ac_ltlibobjs
16516 if test -n "$EXEEXT"; then
16518 am__EXEEXT_FALSE='#'
16520 am__EXEEXT_TRUE='#'
16524 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16525 as_fn_error "conditional \"AMDEP\" was never defined.
16526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16528 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16529 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16532 if test -z "${BUILD_LINUX_TRUE}" && test -z "${BUILD_LINUX_FALSE}"; then
16533 as_fn_error "conditional \"BUILD_LINUX\" was never defined.
16534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16536 if test -z "${BUILD_FREEBSD_TRUE}" && test -z "${BUILD_FREEBSD_FALSE}"; then
16537 as_fn_error "conditional \"BUILD_FREEBSD\" was never defined.
16538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16540 if test -z "${BUILD_OPENBSD_TRUE}" && test -z "${BUILD_OPENBSD_FALSE}"; then
16541 as_fn_error "conditional \"BUILD_OPENBSD\" was never defined.
16542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16544 if test -z "${BUILD_CONFIG_OUTPUT_TRUE}" && test -z "${BUILD_CONFIG_OUTPUT_FALSE}"; then
16545 as_fn_error "conditional \"BUILD_CONFIG_OUTPUT\" was never defined.
16546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16548 if test -z "${BUILD_NCURSES_TRUE}" && test -z "${BUILD_NCURSES_FALSE}"; then
16549 as_fn_error "conditional \"BUILD_NCURSES\" was never defined.
16550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16552 if test -z "${BUILD_AUDACIOUS_TRUE}" && test -z "${BUILD_AUDACIOUS_FALSE}"; then
16553 as_fn_error "conditional \"BUILD_AUDACIOUS\" was never defined.
16554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16556 if test -z "${BUILD_BMPX_TRUE}" && test -z "${BUILD_BMPX_FALSE}"; then
16557 as_fn_error "conditional \"BUILD_BMPX\" was never defined.
16558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16560 if test -z "${BUILD_IBM_TRUE}" && test -z "${BUILD_IBM_FALSE}"; then
16561 as_fn_error "conditional \"BUILD_IBM\" was never defined.
16562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16564 if test -z "${BUILD_HDDTEMP_TRUE}" && test -z "${BUILD_HDDTEMP_FALSE}"; then
16565 as_fn_error "conditional \"BUILD_HDDTEMP\" was never defined.
16566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16568 if test -z "${BUILD_APCUPSD_TRUE}" && test -z "${BUILD_APCUPSD_FALSE}"; then
16569 as_fn_error "conditional \"BUILD_APCUPSD\" was never defined.
16570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16572 if test -z "${BUILD_MATH_TRUE}" && test -z "${BUILD_MATH_FALSE}"; then
16573 as_fn_error "conditional \"BUILD_MATH\" was never defined.
16574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16576 if test -z "${BUILD_MPD_TRUE}" && test -z "${BUILD_MPD_FALSE}"; then
16577 as_fn_error "conditional \"BUILD_MPD\" was never defined.
16578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16580 if test -z "${BUILD_MOC_TRUE}" && test -z "${BUILD_MOC_FALSE}"; then
16581 as_fn_error "conditional \"BUILD_MOC\" was never defined.
16582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16584 if test -z "${BUILD_XMMS2_TRUE}" && test -z "${BUILD_XMMS2_FALSE}"; then
16585 as_fn_error "conditional \"BUILD_XMMS2\" was never defined.
16586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16588 if test -z "${BUILD_EVE_TRUE}" && test -z "${BUILD_EVE_FALSE}"; then
16589 as_fn_error "conditional \"BUILD_EVE\" was never defined.
16590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16592 if test -z "${BUILD_RSS_TRUE}" && test -z "${BUILD_RSS_FALSE}"; then
16593 as_fn_error "conditional \"BUILD_RSS\" was never defined.
16594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16596 if test -z "${BUILD_WEATHER_TRUE}" && test -z "${BUILD_WEATHER_FALSE}"; then
16597 as_fn_error "conditional \"BUILD_WEATHER\" was never defined.
16598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16600 if test -z "${BUILD_XOAP_TRUE}" && test -z "${BUILD_XOAP_FALSE}"; then
16601 as_fn_error "conditional \"BUILD_XOAP\" was never defined.
16602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16604 if test -z "${BUILD_X11_TRUE}" && test -z "${BUILD_X11_FALSE}"; then
16605 as_fn_error "conditional \"BUILD_X11\" was never defined.
16606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16608 if test -z "${BUILD_IMLIB2_TRUE}" && test -z "${BUILD_IMLIB2_FALSE}"; then
16609 as_fn_error "conditional \"BUILD_IMLIB2\" was never defined.
16610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16612 if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
16613 as_fn_error "conditional \"BUILD_LUA\" was never defined.
16614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16616 if test -z "${BUILD_LUA_CAIRO_TRUE}" && test -z "${BUILD_LUA_CAIRO_FALSE}"; then
16617 as_fn_error "conditional \"BUILD_LUA_CAIRO\" was never defined.
16618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16620 if test -z "${BUILD_LUA_IMLIB2_TRUE}" && test -z "${BUILD_LUA_IMLIB2_FALSE}"; then
16621 as_fn_error "conditional \"BUILD_LUA_IMLIB2\" was never defined.
16622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16624 if test -z "${BUILD_WLAN_TRUE}" && test -z "${BUILD_WLAN_FALSE}"; then
16625 as_fn_error "conditional \"BUILD_WLAN\" was never defined.
16626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16628 if test -z "${BUILD_PORT_MONITORS_TRUE}" && test -z "${BUILD_PORT_MONITORS_FALSE}"; then
16629 as_fn_error "conditional \"BUILD_PORT_MONITORS\" was never defined.
16630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16632 if test -z "${BUILD_ICONV_TRUE}" && test -z "${BUILD_ICONV_FALSE}"; then
16633 as_fn_error "conditional \"BUILD_ICONV\" was never defined.
16634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16636 if test -z "${BUILD_NVIDIA_TRUE}" && test -z "${BUILD_NVIDIA_FALSE}"; then
16637 as_fn_error "conditional \"BUILD_NVIDIA\" was never defined.
16638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16640 if test -z "${BUILD_CURL_TRUE}" && test -z "${BUILD_CURL_FALSE}"; then
16641 as_fn_error "conditional \"BUILD_CURL\" was never defined.
16642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16644 if test -z "${HAVE_DOCSTUFF_TRUE}" && test -z "${HAVE_DOCSTUFF_FALSE}"; then
16645 as_fn_error "conditional \"HAVE_DOCSTUFF\" was never defined.
16646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16648 if test -z "${HAVE_DOCSTUFF_TRUE}" && test -z "${HAVE_DOCSTUFF_FALSE}"; then
16649 as_fn_error "conditional \"HAVE_DOCSTUFF\" was never defined.
16650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16653 : ${CONFIG_STATUS=./config.status}
16655 ac_clean_files_save=$ac_clean_files
16656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16658 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16662 # Generated by $as_me.
16663 # Run this file to recreate the current configuration.
16664 # Compiler output produced by configure, useful for debugging
16665 # configure, is in config.log if it exists.
16668 ac_cs_recheck=false
16671 SHELL=\${CONFIG_SHELL-$SHELL}
16674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16675 ## -------------------- ##
16676 ## M4sh Initialization. ##
16677 ## -------------------- ##
16679 # Be more Bourne compatible
16680 DUALCASE=1; export DUALCASE # for MKS sh
16681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16684 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16685 # is contrary to our usage. Disable this feature.
16686 alias -g '${1+"$@"}'='"$@"'
16687 setopt NO_GLOB_SUBST
16689 case `(set -o) 2>/dev/null` in #(
16701 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16702 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16705 # Prefer a ksh shell builtin over an external printf program on Solaris,
16706 # but without wasting forks for bash or zsh.
16707 if test -z "$BASH_VERSION$ZSH_VERSION" \
16708 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16709 as_echo='print -r --'
16710 as_echo_n='print -rn --'
16711 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16712 as_echo='printf %s\n'
16713 as_echo_n='printf %s'
16715 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16716 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16717 as_echo_n='/usr/ucb/echo -n'
16719 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16720 as_echo_n_body='eval
16724 expr "X$arg" : "X\\(.*\\)$as_nl";
16725 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16727 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16729 export as_echo_n_body
16730 as_echo_n='sh -c $as_echo_n_body as_echo'
16732 export as_echo_body
16733 as_echo='sh -c $as_echo_body as_echo'
16736 # The user is always right.
16737 if test "${PATH_SEPARATOR+set}" != set; then
16739 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16740 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16747 # We need space, tab and new line, in precisely that order. Quoting is
16748 # there to prevent editors from complaining about space-tab.
16749 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16750 # splitting by setting IFS to empty value.)
16753 # Find who we are. Look in the path if we contain no directory separator.
16755 *[\\/]* ) as_myself=$0 ;;
16756 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16757 for as_dir in $PATH
16760 test -z "$as_dir" && as_dir=.
16761 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16767 # We did not find ourselves, most probably we were run as `sh COMMAND'
16768 # in which case we are not to be found in the path.
16769 if test "x$as_myself" = x; then
16772 if test ! -f "$as_myself"; then
16773 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16777 # Unset variables that we do not need and which cause bugs (e.g. in
16778 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16779 # suppresses any "Segmentation fault" message there. '((' could
16780 # trigger a bug in pdksh 5.2.14.
16781 for as_var in BASH_ENV ENV MAIL MAILPATH
16782 do eval test x\${$as_var+set} = xset \
16783 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16796 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16799 # as_fn_error ERROR [LINENO LOG_FD]
16800 # ---------------------------------
16801 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16802 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16803 # script with status $?, using 1 if that was 0.
16806 as_status=$?; test $as_status -eq 0 && as_status=1
16808 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16809 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16811 $as_echo "$as_me: error: $1" >&2
16812 as_fn_exit $as_status
16816 # as_fn_set_status STATUS
16817 # -----------------------
16818 # Set $? to STATUS, without forking.
16819 as_fn_set_status ()
16822 } # as_fn_set_status
16824 # as_fn_exit STATUS
16825 # -----------------
16826 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16830 as_fn_set_status $1
16836 # Portably unset VAR.
16839 { eval $1=; unset $1;}
16841 as_unset=as_fn_unset
16842 # as_fn_append VAR VALUE
16843 # ----------------------
16844 # Append the text in VALUE to the end of the definition contained in VAR. Take
16845 # advantage of any shell optimizations that allow amortized linear growth over
16846 # repeated appends, instead of the typical quadratic growth present in naive
16848 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16849 eval 'as_fn_append ()
16860 # as_fn_arith ARG...
16861 # ------------------
16862 # Perform arithmetic evaluation on the ARGs, and store the result in the
16863 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16864 # must be portable across $(()) and expr.
16865 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16866 eval 'as_fn_arith ()
16873 as_val=`expr "$@" || test $? -eq 1`
16878 if expr a : '\(a\)' >/dev/null 2>&1 &&
16879 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16885 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16886 as_basename=basename
16891 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16897 as_me=`$as_basename -- "$0" ||
16898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16899 X"$0" : 'X\(//\)$' \| \
16900 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16902 sed '/^.*\/\([^/][^/]*\)\/*$/{
16916 # Avoid depending upon Character Ranges.
16917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16920 as_cr_digits='0123456789'
16921 as_cr_alnum=$as_cr_Letters$as_cr_digits
16923 ECHO_C= ECHO_N= ECHO_T=
16924 case `echo -n x` in #(((((
16926 case `echo 'xy\c'` in
16927 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16929 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16936 rm -f conf$$ conf$$.exe conf$$.file
16937 if test -d conf$$.dir; then
16938 rm -f conf$$.dir/conf$$.file
16941 mkdir conf$$.dir 2>/dev/null
16943 if (echo >conf$$.file) 2>/dev/null; then
16944 if ln -s conf$$.file conf$$ 2>/dev/null; then
16946 # ... but there are two gotchas:
16947 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16948 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16949 # In both cases, we have to default to `cp -p'.
16950 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16952 elif ln conf$$.file conf$$ 2>/dev/null; then
16960 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16961 rmdir conf$$.dir 2>/dev/null
16966 # Create "$as_dir" as a directory, including parents if necessary.
16971 -*) as_dir=./$as_dir;;
16973 test -d "$as_dir" || eval $as_mkdir_p || {
16977 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16978 *) as_qdir=$as_dir;;
16980 as_dirs="'$as_qdir' $as_dirs"
16981 as_dir=`$as_dirname -- "$as_dir" ||
16982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16983 X"$as_dir" : 'X\(//\)[^/]' \| \
16984 X"$as_dir" : 'X\(//\)$' \| \
16985 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16986 $as_echo X"$as_dir" |
16987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16991 /^X\(\/\/\)[^/].*/{
17004 test -d "$as_dir" && break
17006 test -z "$as_dirs" || eval "mkdir $as_dirs"
17007 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17011 if mkdir -p . 2>/dev/null; then
17012 as_mkdir_p='mkdir -p "$as_dir"'
17014 test -d ./-p && rmdir ./-p
17018 if test -x / >/dev/null 2>&1; then
17019 as_test_x='test -x'
17021 if ls -dL / >/dev/null 2>&1; then
17028 if test -d "$1"; then
17034 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17035 ???[sx]*):;;*)false;;esac;fi
17039 as_executable_p=$as_test_x
17041 # Sed expression to map a string onto a valid CPP name.
17042 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17044 # Sed expression to map a string onto a valid variable name.
17045 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17049 ## ----------------------------------- ##
17050 ## Main body of $CONFIG_STATUS script. ##
17051 ## ----------------------------------- ##
17053 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17056 # Save the log message, to keep $0 and so on meaningful, and to
17057 # report actual input values of CONFIG_FILES etc. instead of their
17058 # values after options handling.
17060 This file was extended by Conky $as_me 1.8.0, which was
17061 generated by GNU Autoconf 2.65. Invocation command line was
17063 CONFIG_FILES = $CONFIG_FILES
17064 CONFIG_HEADERS = $CONFIG_HEADERS
17065 CONFIG_LINKS = $CONFIG_LINKS
17066 CONFIG_COMMANDS = $CONFIG_COMMANDS
17069 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17074 case $ac_config_files in *"
17075 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17078 case $ac_config_headers in *"
17079 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17084 # Files that config.status was made for.
17085 config_files="$ac_config_files"
17086 config_headers="$ac_config_headers"
17087 config_commands="$ac_config_commands"
17091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17093 \`$as_me' instantiates files and other configuration actions
17094 from templates according to the current configuration. Unless the files
17095 and actions are specified as TAGs, all are instantiated by default.
17097 Usage: $0 [OPTION]... [TAG]...
17099 -h, --help print this help, then exit
17100 -V, --version print version number and configuration settings, then exit
17101 --config print configuration, then exit
17102 -q, --quiet, --silent
17103 do not print progress messages
17104 -d, --debug don't remove temporary files
17105 --recheck update $as_me by reconfiguring in the same conditions
17106 --file=FILE[:TEMPLATE]
17107 instantiate the configuration file FILE
17108 --header=FILE[:TEMPLATE]
17109 instantiate the configuration header FILE
17111 Configuration files:
17114 Configuration headers:
17117 Configuration commands:
17120 Report bugs to <brenden1@users.sourceforge.net>."
17123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17124 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17126 Conky config.status 1.8.0
17127 configured by $0, generated by GNU Autoconf 2.65,
17128 with options \\"\$ac_cs_config\\"
17130 Copyright (C) 2009 Free Software Foundation, Inc.
17131 This config.status script is free software; the Free Software Foundation
17132 gives unlimited permission to copy, distribute and modify it."
17139 test -n "\$AWK" || AWK=awk
17142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17143 # The default lists apply if the user does not specify any file.
17149 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17150 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17161 # Handling of the options.
17162 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17164 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17165 $as_echo "$ac_cs_version"; exit ;;
17166 --config | --confi | --conf | --con | --co | --c )
17167 $as_echo "$ac_cs_config"; exit ;;
17168 --debug | --debu | --deb | --de | --d | -d )
17170 --file | --fil | --fi | --f )
17173 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17175 as_fn_append CONFIG_FILES " '$ac_optarg'"
17176 ac_need_defaults=false;;
17177 --header | --heade | --head | --hea )
17180 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17182 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17183 ac_need_defaults=false;;
17185 # Conflict between --help and --header
17186 as_fn_error "ambiguous option: \`$1'
17187 Try \`$0 --help' for more information.";;
17188 --help | --hel | -h )
17189 $as_echo "$ac_cs_usage"; exit ;;
17190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17191 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17194 # This is an error.
17195 -*) as_fn_error "unrecognized option: \`$1'
17196 Try \`$0 --help' for more information." ;;
17198 *) as_fn_append ac_config_targets " $1"
17199 ac_need_defaults=false ;;
17205 ac_configure_extra_args=
17207 if $ac_cs_silent; then
17209 ac_configure_extra_args="$ac_configure_extra_args --silent"
17213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17214 if \$ac_cs_recheck; then
17215 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17217 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17218 CONFIG_SHELL='$SHELL'
17219 export CONFIG_SHELL
17224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17229 ## Running $as_me. ##
17235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17239 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17242 # The HP-UX ksh and POSIX shell print the target directory to stdout
17243 # if CDPATH is set.
17244 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17246 sed_quote_subst='$sed_quote_subst'
17247 double_quote_subst='$double_quote_subst'
17248 delay_variable_subst='$delay_variable_subst'
17249 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17250 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17251 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17252 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17253 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17254 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17255 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17256 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17257 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17258 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17259 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17260 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17261 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17262 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17263 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17264 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17265 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17266 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17267 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17268 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17269 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17270 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17271 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17272 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17273 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17274 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17275 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17276 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17277 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17278 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17279 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17280 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17281 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17282 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17283 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17284 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17285 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17286 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17287 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17288 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17289 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17290 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17291 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17292 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17293 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17294 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17295 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17296 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17297 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17298 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17299 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17300 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17301 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17302 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17303 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17304 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17305 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17306 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17307 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17308 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17309 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17310 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17311 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17312 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17313 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17314 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17315 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17316 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17317 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17318 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17319 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17320 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17321 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17322 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17323 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17324 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17325 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17326 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17327 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17328 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17329 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17330 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17331 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17332 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17333 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17334 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17335 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17336 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17337 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17338 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17339 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17340 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17341 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17342 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17343 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17344 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17345 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17346 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17347 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17348 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17349 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17350 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17351 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17352 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17353 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17354 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17355 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17356 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17357 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17358 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17359 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17360 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17361 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17362 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17363 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17364 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17365 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17366 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17369 LTCFLAGS='$LTCFLAGS'
17370 compiler='$compiler_DEFAULT'
17372 # Quote evaled strings.
17384 deplibs_check_method \
17393 lt_cv_sys_global_symbol_pipe \
17394 lt_cv_sys_global_symbol_to_cdecl \
17395 lt_cv_sys_global_symbol_to_c_name_address \
17396 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17399 lt_prog_compiler_no_builtin_flag \
17400 lt_prog_compiler_wl \
17401 lt_prog_compiler_pic \
17402 lt_prog_compiler_static \
17403 lt_cv_prog_compiler_c_o \
17411 export_dynamic_flag_spec \
17412 whole_archive_flag_spec \
17413 compiler_needs_object \
17415 allow_undefined_flag \
17416 no_undefined_flag \
17417 hardcode_libdir_flag_spec \
17418 hardcode_libdir_flag_spec_ld \
17419 hardcode_libdir_separator \
17424 variables_saved_for_relink \
17426 library_names_spec \
17431 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17432 *[\\\\\\\`\\"\\\$]*)
17433 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17436 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17441 # Double-quote double-evaled strings.
17442 for var in reload_cmds \
17443 old_postinstall_cmds \
17444 old_postuninstall_cmds \
17446 extract_expsyms_cmds \
17447 old_archive_from_new_cmds \
17448 old_archive_from_expsyms_cmds \
17450 archive_expsym_cmds \
17452 module_expsym_cmds \
17453 export_symbols_cmds \
17456 postuninstall_cmds \
17458 sys_lib_search_path_spec \
17459 sys_lib_dlsearch_path_spec; do
17460 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17461 *[\\\\\\\`\\"\\\$]*)
17462 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17465 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17470 # Fix-up fallback echo if it was mangled by the above quoting rules.
17472 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17476 ac_aux_dir='$ac_aux_dir'
17477 xsi_shell='$xsi_shell'
17478 lt_shell_append='$lt_shell_append'
17480 # See if we are running on zsh, and set the options which allow our
17481 # commands through without removal of \ escapes INIT.
17482 if test -n "\${ZSH_VERSION+set}" ; then
17483 setopt NO_GLOB_SUBST
17489 TIMESTAMP='$TIMESTAMP'
17498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17500 # Handling of arguments.
17501 for ac_config_target in $ac_config_targets
17503 case $ac_config_target in
17504 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17505 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17506 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17507 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17508 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
17509 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17510 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17511 "src/build.h") CONFIG_FILES="$CONFIG_FILES src/build.h" ;;
17512 "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;;
17514 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17519 # If the user did not use the arguments to specify the items to instantiate,
17520 # then the envvar interface is used. Set only those that are not.
17521 # We use the long form for the default assignment because of an extremely
17522 # bizarre bug on SunOS 4.1.3.
17523 if $ac_need_defaults; then
17524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17525 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17526 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17529 # Have a temporary directory for convenience. Make it in the build tree
17530 # simply because there is no reason against having it here, and in addition,
17531 # creating and moving files from /tmp can sometimes cause problems.
17532 # Hook for its removal unless debugging.
17533 # Note that there is a small window in which the directory will not be cleaned:
17534 # after its creation but before its name has been assigned to `$tmp'.
17538 trap 'exit_status=$?
17539 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17541 trap 'as_fn_exit 1' 1 2 13 15
17543 # Create a (secure) tmp directory for tmp files.
17546 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17547 test -n "$tmp" && test -d "$tmp"
17550 tmp=./conf$$-$RANDOM
17551 (umask 077 && mkdir "$tmp")
17552 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17554 # Set up the scripts for CONFIG_FILES section.
17555 # No need to generate them if there are no CONFIG_FILES.
17556 # This happens for instance with `./config.status config.h'.
17557 if test -n "$CONFIG_FILES"; then
17560 ac_cr=`echo X | tr X '\015'`
17561 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17562 # But we know of no other shell where ac_cr would be empty at this
17563 # point, so we can use a bashism as a fallback.
17564 if test "x$ac_cr" = x; then
17565 eval ac_cr=\$\'\\r\'
17567 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17568 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17571 ac_cs_awk_cr=$ac_cr
17574 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17579 echo "cat >conf$$subs.awk <<_ACEOF" &&
17580 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17582 } >conf$$subs.sh ||
17583 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17584 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17586 for ac_last_try in false false false false false :; do
17587 . ./conf$$subs.sh ||
17588 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17590 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17591 if test $ac_delim_n = $ac_delim_num; then
17593 elif $ac_last_try; then
17594 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17599 rm -f conf$$subs.sh
17601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17602 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17606 s/^/S["/; s/!.*/"]=/
17616 s/\(.\{148\}\)..*/\1/
17618 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17623 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17630 s/\(.\{148\}\)..*/\1/
17632 s/["\\]/\\&/g; s/^/"/; s/$/"/
17636 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17641 ' <conf$$subs.awk | sed '
17646 ' >>$CONFIG_STATUS || ac_write_fail=1
17647 rm -f conf$$subs.awk
17648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17650 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17651 for (key in S) S_is_set[key] = 1
17657 nfields = split(line, field, "@")
17659 len = length(field[1])
17660 for (i = 2; i < nfields; i++) {
17662 keylen = length(key)
17663 if (S_is_set[key]) {
17665 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17666 len += length(value) + length(field[++i])
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17679 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17682 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17683 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17686 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17687 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17688 # trailing colons and then remove the whole line if VPATH becomes empty
17689 # (actually we leave an empty line to preserve line numbers).
17690 if test "x$srcdir" = x.; then
17691 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17692 s/:*\$(srcdir):*/:/
17693 s/:*\${srcdir}:*/:/
17695 s/^\([^=]*=[ ]*\):*/\1/
17701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17702 fi # test -n "$CONFIG_FILES"
17704 # Set up the scripts for CONFIG_HEADERS section.
17705 # No need to generate them if there are no CONFIG_HEADERS.
17706 # This happens for instance with `./config.status Makefile'.
17707 if test -n "$CONFIG_HEADERS"; then
17708 cat >"$tmp/defines.awk" <<\_ACAWK ||
17712 # Transform confdefs.h into an awk script `defines.awk', embedded as
17713 # here-document in config.status, that substitutes the proper values into
17714 # config.h.in to produce config.h.
17716 # Create a delimiter string that does not exist in confdefs.h, to ease
17717 # handling of long lines.
17719 for ac_last_try in false false :; do
17720 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17721 if test -z "$ac_t"; then
17723 elif $ac_last_try; then
17724 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17730 # For the awk script, D is an array of macro values keyed by name,
17731 # likewise P contains macro parameters if any. Preserve backslash
17732 # newline sequences.
17734 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17736 s/.\{148\}/&'"$ac_delim"'/g
17739 s/^[ ]*#[ ]*define[ ][ ]*/ /
17746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17748 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17753 D["\1"]=" \3\\\\\\n"\\/p
17755 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17760 s/.\{148\}/&'"$ac_delim"'/g
17765 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17768 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17770 ' <confdefs.h | sed '
17771 s/'"$ac_delim"'/"\\\
17772 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17775 for (key in D) D_is_set[key] = 1
17778 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17780 split(line, arg, " ")
17781 if (arg[1] == "#") {
17785 defundef = substr(arg[1], 2)
17788 split(mac1, mac2, "(") #)
17790 prefix = substr(line, 1, index(line, defundef) - 1)
17791 if (D_is_set[macro]) {
17792 # Preserve the white space surrounding the "#".
17793 print prefix "define", macro P[macro] D[macro]
17796 # Replace #undef with comments. This is necessary, for example,
17797 # in the case of _POSIX_SOURCE, which is predefined and required
17798 # on some systems where configure will not decide to define it.
17799 if (defundef == "undef") {
17800 print "/*", prefix defundef, macro, "*/"
17808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17809 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17810 fi # test -n "$CONFIG_HEADERS"
17813 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17818 :[FHLC]) ac_mode=$ac_tag; continue;;
17820 case $ac_mode$ac_tag in
17822 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17823 :[FH]-) ac_tag=-:-;;
17824 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17841 -) ac_f="$tmp/stdin";;
17842 *) # Look for the file first in the build tree, then in the source tree
17843 # (if the path is not absolute). The absolute path cannot be DOS-style,
17844 # because $ac_f cannot contain `:'.
17848 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17850 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17852 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17853 as_fn_append ac_file_inputs " '$ac_f'"
17856 # Let's still pretend it is `configure' which instantiates (i.e., don't
17857 # use $as_me), people would be surprised to read:
17858 # /* config.h. Generated by config.status. */
17859 configure_input='Generated from '`
17860 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17862 if test x"$ac_file" != x-; then
17863 configure_input="$ac_file. $configure_input"
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17865 $as_echo "$as_me: creating $ac_file" >&6;}
17867 # Neutralize special characters interpreted by sed in replacement strings.
17868 case $configure_input in #(
17869 *\&* | *\|* | *\\* )
17870 ac_sed_conf_input=`$as_echo "$configure_input" |
17871 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17872 *) ac_sed_conf_input=$configure_input;;
17876 *:-:* | *:-) cat >"$tmp/stdin" \
17877 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17882 ac_dir=`$as_dirname -- "$ac_file" ||
17883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17884 X"$ac_file" : 'X\(//\)[^/]' \| \
17885 X"$ac_file" : 'X\(//\)$' \| \
17886 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17887 $as_echo X"$ac_file" |
17888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17892 /^X\(\/\/\)[^/].*/{
17905 as_dir="$ac_dir"; as_fn_mkdir_p
17909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17911 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17912 # A ".." for each directory in $ac_dir_suffix.
17913 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17914 case $ac_top_builddir_sub in
17915 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17916 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17919 ac_abs_top_builddir=$ac_pwd
17920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17921 # for backward compatibility:
17922 ac_top_builddir=$ac_top_build_prefix
17925 .) # We are building in place.
17927 ac_top_srcdir=$ac_top_builddir_sub
17928 ac_abs_top_srcdir=$ac_pwd ;;
17929 [\\/]* | ?:[\\/]* ) # Absolute name.
17930 ac_srcdir=$srcdir$ac_dir_suffix;
17931 ac_top_srcdir=$srcdir
17932 ac_abs_top_srcdir=$srcdir ;;
17933 *) # Relative name.
17934 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17935 ac_top_srcdir=$ac_top_build_prefix$srcdir
17936 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17948 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17949 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17951 ac_MKDIR_P=$MKDIR_P
17953 [\\/$]* | ?:[\\/]* ) ;;
17954 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17959 # If the template does not know about datarootdir, expand it.
17960 # FIXME: This hack should be removed a few years after 2.60.
17961 ac_datarootdir_hack=; ac_datarootdir_seen=
17972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17973 *datarootdir*) ac_datarootdir_seen=yes;;
17974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17976 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17979 ac_datarootdir_hack='
17980 s&@datadir@&$datadir&g
17981 s&@docdir@&$docdir&g
17982 s&@infodir@&$infodir&g
17983 s&@localedir@&$localedir&g
17984 s&@mandir@&$mandir&g
17985 s&\\\${datarootdir}&$datarootdir&g' ;;
17989 # Neutralize VPATH when `$srcdir' = `.'.
17990 # Shell code in configure.ac might set extrasub.
17991 # FIXME: do we really want to maintain this feature?
17992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17993 ac_sed_extra="$ac_vpsub
17996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17999 s|@configure_input@|$ac_sed_conf_input|;t t
18000 s&@top_builddir@&$ac_top_builddir_sub&;t t
18001 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18002 s&@srcdir@&$ac_srcdir&;t t
18003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18004 s&@top_srcdir@&$ac_top_srcdir&;t t
18005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18006 s&@builddir@&$ac_builddir&;t t
18007 s&@abs_builddir@&$ac_abs_builddir&;t t
18008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18009 s&@INSTALL@&$ac_INSTALL&;t t
18010 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18011 $ac_datarootdir_hack
18013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18014 || as_fn_error "could not create $ac_file" "$LINENO" 5
18016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18017 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18020 which seems to be undefined. Please make sure it is defined." >&5
18021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18022 which seems to be undefined. Please make sure it is defined." >&2;}
18026 -) cat "$tmp/out" && rm -f "$tmp/out";;
18027 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18029 || as_fn_error "could not create $ac_file" "$LINENO" 5
18035 if test x"$ac_file" != x-; then
18037 $as_echo "/* $configure_input */" \
18038 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18039 } >"$tmp/config.h" \
18040 || as_fn_error "could not create $ac_file" "$LINENO" 5
18041 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18043 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18046 mv "$tmp/config.h" "$ac_file" \
18047 || as_fn_error "could not create $ac_file" "$LINENO" 5
18050 $as_echo "/* $configure_input */" \
18051 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18052 || as_fn_error "could not create -" "$LINENO" 5
18054 # Compute "$ac_file"'s index in $config_headers.
18057 for _am_header in $config_headers :; do
18058 case $_am_header in
18059 $_am_arg | $_am_arg:* )
18062 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18065 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18066 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18067 X"$_am_arg" : 'X\(//\)[^/]' \| \
18068 X"$_am_arg" : 'X\(//\)$' \| \
18069 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18070 $as_echo X"$_am_arg" |
18071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18075 /^X\(\/\/\)[^/].*/{
18087 s/.*/./; q'`/stamp-h$_am_stamp_count
18090 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18091 $as_echo "$as_me: executing $ac_file commands" >&6;}
18096 case $ac_file$ac_mode in
18097 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18098 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18099 # are listed without --file. Let's play safe and only enable the eval
18100 # if we detect the quoting.
18101 case $CONFIG_FILES in
18102 *\'*) eval set x "$CONFIG_FILES" ;;
18103 *) set x $CONFIG_FILES ;;
18108 # Strip MF so we end up with the name of the file.
18109 mf=`echo "$mf" | sed -e 's/:.*$//'`
18110 # Check whether this is an Automake generated Makefile or not.
18111 # We used to match only the files named `Makefile.in', but
18112 # some people rename them; so instead we look at the file content.
18113 # Grep'ing the first line is not enough: some people post-process
18114 # each Makefile.in and add a new line on top of each file to say so.
18115 # Grep'ing the whole file is not good either: AIX grep has a line
18116 # limit of 2048, but all sed's we know have understand at least 4000.
18117 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18118 dirpart=`$as_dirname -- "$mf" ||
18119 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18120 X"$mf" : 'X\(//\)[^/]' \| \
18121 X"$mf" : 'X\(//\)$' \| \
18122 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18128 /^X\(\/\/\)[^/].*/{
18144 # Extract the definition of DEPDIR, am__include, and am__quote
18145 # from the Makefile without running `make'.
18146 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18147 test -z "$DEPDIR" && continue
18148 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18149 test -z "am__include" && continue
18150 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18151 # When using ansi2knr, U may be empty or an underscore; expand it
18152 U=`sed -n 's/^U = //p' < "$mf"`
18153 # Find all dependency output files, they are included files with
18154 # $(DEPDIR) in their names. We invoke sed twice because it is the
18155 # simplest approach to changing $(DEPDIR) to its actual value in the
18157 for file in `sed -n "
18158 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18159 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18160 # Make sure the directory exists.
18161 test -f "$dirpart/$file" && continue
18162 fdir=`$as_dirname -- "$file" ||
18163 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18164 X"$file" : 'X\(//\)[^/]' \| \
18165 X"$file" : 'X\(//\)$' \| \
18166 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18167 $as_echo X"$file" |
18168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18172 /^X\(\/\/\)[^/].*/{
18185 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18186 # echo "creating $dirpart/$file"
18187 echo '# dummy' > "$dirpart/$file"
18194 # See if we are running on zsh, and set the options which allow our
18195 # commands through without removal of \ escapes.
18196 if test -n "${ZSH_VERSION+set}" ; then
18197 setopt NO_GLOB_SUBST
18200 cfgfile="${ofile}T"
18201 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18204 cat <<_LT_EOF >> "$cfgfile"
18207 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18208 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18209 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18210 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18212 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18213 # 2006, 2007, 2008 Free Software Foundation, Inc.
18214 # Written by Gordon Matzigkeit, 1996
18216 # This file is part of GNU Libtool.
18218 # GNU Libtool is free software; you can redistribute it and/or
18219 # modify it under the terms of the GNU General Public License as
18220 # published by the Free Software Foundation; either version 2 of
18221 # the License, or (at your option) any later version.
18223 # As a special exception to the GNU General Public License,
18224 # if you distribute this file as part of a program or library that
18225 # is built using GNU Libtool, you may include this file under the
18226 # same distribution terms that you use for the rest of that program.
18228 # GNU Libtool is distributed in the hope that it will be useful,
18229 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18230 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18231 # GNU General Public License for more details.
18233 # You should have received a copy of the GNU General Public License
18234 # along with GNU Libtool; see the file COPYING. If not, a copy
18235 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18236 # obtained by writing to the Free Software Foundation, Inc.,
18237 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18240 # The names of the tagged configurations supported by this script.
18243 # ### BEGIN LIBTOOL CONFIG
18245 # A sed program that does not truncate output.
18248 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18249 Xsed="\$SED -e 1s/^X//"
18251 # A grep program that handles long lines.
18257 # A literal string matcher.
18260 # Which release of libtool.m4 was used?
18261 macro_version=$macro_version
18262 macro_revision=$macro_revision
18264 # Whether or not to build shared libraries.
18265 build_libtool_libs=$enable_shared
18267 # Whether or not to build static libraries.
18268 build_old_libs=$enable_static
18270 # What type of objects to build.
18273 # Whether or not to optimize for fast installation.
18274 fast_install=$enable_fast_install
18277 host_alias=$host_alias
18281 # The build system.
18282 build_alias=$build_alias
18286 # A BSD- or MS-compatible name lister.
18289 # Whether we need soft or hard links.
18292 # What is the maximum length of a command?
18293 max_cmd_len=$max_cmd_len
18295 # Object file suffix (normally "o").
18298 # Executable file suffix (normally "").
18301 # whether the shell understands "unset".
18304 # turn spaces into newlines.
18307 # turn newlines into spaces.
18310 # How to create reloadable object files.
18311 reload_flag=$lt_reload_flag
18312 reload_cmds=$lt_reload_cmds
18314 # An object symbol dumper.
18315 OBJDUMP=$lt_OBJDUMP
18317 # Method to check whether dependent libraries are shared objects.
18318 deplibs_check_method=$lt_deplibs_check_method
18320 # Command to use when deplibs_check_method == "file_magic".
18321 file_magic_cmd=$lt_file_magic_cmd
18325 AR_FLAGS=$lt_AR_FLAGS
18327 # A symbol stripping program.
18330 # Commands used to install an old-style archive.
18332 old_postinstall_cmds=$lt_old_postinstall_cmds
18333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18338 # LTCC compiler flags.
18339 LTCFLAGS=$lt_CFLAGS
18341 # Take the output of nm and produce a listing of raw symbols and C names.
18342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18344 # Transform the output of nm in a proper C declaration.
18345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18347 # Transform the output of nm in a C name address pair.
18348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18350 # Transform the output of nm in a C name address pair when lib prefix is needed.
18351 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18353 # The name of the directory that contains temporary libtool files.
18356 # Shell to use when invoking shell scripts.
18359 # An echo program that does not interpret backslashes.
18362 # Used to examine libraries when file_magic_cmd begins with "file".
18363 MAGIC_CMD=$MAGIC_CMD
18365 # Must we lock files when doing compilation?
18366 need_locks=$lt_need_locks
18368 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18369 DSYMUTIL=$lt_DSYMUTIL
18371 # Tool to change global to local symbols on Mac OS X.
18374 # Tool to manipulate fat objects and archives on Mac OS X.
18377 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18380 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18381 OTOOL64=$lt_OTOOL64
18383 # Old archive suffix (normally "a").
18386 # Shared library suffix (normally ".so").
18387 shrext_cmds=$lt_shrext_cmds
18389 # The commands to extract the exported symbol list from a shared archive.
18390 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18392 # Variables whose values should be saved in libtool wrapper scripts and
18393 # restored at link time.
18394 variables_saved_for_relink=$lt_variables_saved_for_relink
18396 # Do we need the "lib" prefix for modules?
18397 need_lib_prefix=$need_lib_prefix
18399 # Do we need a version for libraries?
18400 need_version=$need_version
18402 # Library versioning type.
18403 version_type=$version_type
18405 # Shared library runtime path variable.
18406 runpath_var=$runpath_var
18408 # Shared library path variable.
18409 shlibpath_var=$shlibpath_var
18411 # Is shlibpath searched before the hard-coded library search path?
18412 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18414 # Format of library name prefix.
18415 libname_spec=$lt_libname_spec
18417 # List of archive names. First name is the real one, the rest are links.
18418 # The last name is the one that the linker finds with -lNAME
18419 library_names_spec=$lt_library_names_spec
18421 # The coded name of the library, if different from the real name.
18422 soname_spec=$lt_soname_spec
18424 # Command to use after installation of a shared archive.
18425 postinstall_cmds=$lt_postinstall_cmds
18427 # Command to use after uninstallation of a shared archive.
18428 postuninstall_cmds=$lt_postuninstall_cmds
18430 # Commands used to finish a libtool library installation in a directory.
18431 finish_cmds=$lt_finish_cmds
18433 # As "finish_cmds", except a single script fragment to be evaled but
18435 finish_eval=$lt_finish_eval
18437 # Whether we should hardcode library paths into libraries.
18438 hardcode_into_libs=$hardcode_into_libs
18440 # Compile-time system search path for libraries.
18441 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18443 # Run-time system search path for libraries.
18444 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18446 # Whether dlopen is supported.
18447 dlopen_support=$enable_dlopen
18449 # Whether dlopen of programs is supported.
18450 dlopen_self=$enable_dlopen_self
18452 # Whether dlopen of statically linked programs is supported.
18453 dlopen_self_static=$enable_dlopen_self_static
18455 # Commands to strip libraries.
18456 old_striplib=$lt_old_striplib
18457 striplib=$lt_striplib
18460 # The linker used to build libraries.
18463 # Commands used to build an old-style archive.
18464 old_archive_cmds=$lt_old_archive_cmds
18466 # A language specific compiler.
18469 # Is the compiler the GNU compiler?
18472 # Compiler flag to turn off builtin functions.
18473 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18475 # How to pass a linker flag through the compiler.
18476 wl=$lt_lt_prog_compiler_wl
18478 # Additional compiler flags for building library objects.
18479 pic_flag=$lt_lt_prog_compiler_pic
18481 # Compiler flag to prevent dynamic linking.
18482 link_static_flag=$lt_lt_prog_compiler_static
18484 # Does compiler simultaneously support -c and -o options?
18485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18487 # Whether or not to add -lc for building shared libraries.
18488 build_libtool_need_lc=$archive_cmds_need_lc
18490 # Whether or not to disallow shared libs when runtime libs are static.
18491 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18493 # Compiler flag to allow reflexive dlopens.
18494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18496 # Compiler flag to generate shared objects directly from archives.
18497 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18499 # Whether the compiler copes with passing no objects directly.
18500 compiler_needs_object=$lt_compiler_needs_object
18502 # Create an old-style archive from a shared archive.
18503 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18505 # Create a temporary old-style archive to link instead of a shared archive.
18506 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18508 # Commands used to build a shared archive.
18509 archive_cmds=$lt_archive_cmds
18510 archive_expsym_cmds=$lt_archive_expsym_cmds
18512 # Commands used to build a loadable module if different from building
18513 # a shared archive.
18514 module_cmds=$lt_module_cmds
18515 module_expsym_cmds=$lt_module_expsym_cmds
18517 # Whether we are building with GNU ld or not.
18518 with_gnu_ld=$lt_with_gnu_ld
18520 # Flag that allows shared libraries with undefined symbols to be built.
18521 allow_undefined_flag=$lt_allow_undefined_flag
18523 # Flag that enforces no undefined symbols.
18524 no_undefined_flag=$lt_no_undefined_flag
18526 # Flag to hardcode \$libdir into a binary during linking.
18527 # This must work even if \$libdir does not exist
18528 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18530 # If ld is used when linking, flag to hardcode \$libdir into a binary
18531 # during linking. This must work even if \$libdir does not exist.
18532 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18534 # Whether we need a single "-rpath" flag with a separated argument.
18535 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18537 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18538 # DIR into the resulting binary.
18539 hardcode_direct=$hardcode_direct
18541 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18542 # DIR into the resulting binary and the resulting library dependency is
18543 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18544 # library is relocated.
18545 hardcode_direct_absolute=$hardcode_direct_absolute
18547 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18548 # into the resulting binary.
18549 hardcode_minus_L=$hardcode_minus_L
18551 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18552 # into the resulting binary.
18553 hardcode_shlibpath_var=$hardcode_shlibpath_var
18555 # Set to "yes" if building a shared library automatically hardcodes DIR
18556 # into the library and all subsequent libraries and executables linked
18558 hardcode_automatic=$hardcode_automatic
18560 # Set to yes if linker adds runtime paths of dependent libraries
18561 # to runtime path list.
18562 inherit_rpath=$inherit_rpath
18564 # Whether libtool must link a program against all its dependency libraries.
18565 link_all_deplibs=$link_all_deplibs
18567 # Fix the shell variable \$srcfile for the compiler.
18568 fix_srcfile_path=$lt_fix_srcfile_path
18570 # Set to "yes" if exported symbols are required.
18571 always_export_symbols=$always_export_symbols
18573 # The commands to list exported symbols.
18574 export_symbols_cmds=$lt_export_symbols_cmds
18576 # Symbols that should not be listed in the preloaded symbols.
18577 exclude_expsyms=$lt_exclude_expsyms
18579 # Symbols that must always be exported.
18580 include_expsyms=$lt_include_expsyms
18582 # Commands necessary for linking programs (against libraries) with templates.
18583 prelink_cmds=$lt_prelink_cmds
18585 # Specify filename containing input files.
18586 file_list_spec=$lt_file_list_spec
18588 # How to hardcode a shared library path into an executable.
18589 hardcode_action=$hardcode_action
18591 # ### END LIBTOOL CONFIG
18597 cat <<\_LT_EOF >> "$cfgfile"
18598 # AIX sometimes has problems with the GCC collect2 program. For some
18599 # reason, if we set the COLLECT_NAMES environment variable, the problems
18600 # vanish in a puff of smoke.
18601 if test "X${COLLECT_NAMES+set}" != Xset; then
18603 export COLLECT_NAMES
18610 ltmain="$ac_aux_dir/ltmain.sh"
18613 # We use sed instead of cat because bash on DJGPP gets confused if
18614 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18615 # text mode, it properly converts lines to CR/LF. This bash problem
18616 # is reportedly fixed, but why not run on old versions too?
18617 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18618 || (rm -f "$cfgfile"; exit 1)
18622 cat << \_LT_EOF >> "$cfgfile"
18624 # func_dirname file append nondir_replacement
18625 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18626 # otherwise set result to NONDIR_REPLACEMENT.
18630 */*) func_dirname_result="${1%/*}${2}" ;;
18631 * ) func_dirname_result="${3}" ;;
18635 # func_basename file
18638 func_basename_result="${1##*/}"
18641 # func_dirname_and_basename file append nondir_replacement
18642 # perform func_basename and func_dirname in a single function
18644 # dirname: Compute the dirname of FILE. If nonempty,
18645 # add APPEND to the result, otherwise set result
18646 # to NONDIR_REPLACEMENT.
18647 # value returned in "$func_dirname_result"
18648 # basename: Compute filename of FILE.
18649 # value retuned in "$func_basename_result"
18650 # Implementation must be kept synchronized with func_dirname
18651 # and func_basename. For efficiency, we do not delegate to
18652 # those functions but instead duplicate the functionality here.
18653 func_dirname_and_basename ()
18656 */*) func_dirname_result="${1%/*}${2}" ;;
18657 * ) func_dirname_result="${3}" ;;
18659 func_basename_result="${1##*/}"
18662 # func_stripname prefix suffix name
18663 # strip PREFIX and SUFFIX off of NAME.
18664 # PREFIX and SUFFIX must not contain globbing or regex special
18665 # characters, hashes, percent signs, but SUFFIX may contain a leading
18666 # dot (in which case that matches only a dot).
18669 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18670 # positional parameters, so assign one to ordinary parameter first.
18671 func_stripname_result=${3}
18672 func_stripname_result=${func_stripname_result#"${1}"}
18673 func_stripname_result=${func_stripname_result%"${2}"}
18679 func_opt_split_opt=${1%%=*}
18680 func_opt_split_arg=${1#*=}
18687 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18688 *) func_lo2o_result=${1} ;;
18692 # func_xform libobj-or-source
18695 func_xform_result=${1%.*}.lo
18698 # func_arith arithmetic-term...
18701 func_arith_result=$(( $* ))
18705 # STRING may not start with a hyphen.
18708 func_len_result=${#1}
18713 *) # Bourne compatible functions.
18714 cat << \_LT_EOF >> "$cfgfile"
18716 # func_dirname file append nondir_replacement
18717 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18718 # otherwise set result to NONDIR_REPLACEMENT.
18721 # Extract subdirectory from the argument.
18722 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18723 if test "X$func_dirname_result" = "X${1}"; then
18724 func_dirname_result="${3}"
18726 func_dirname_result="$func_dirname_result${2}"
18730 # func_basename file
18733 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18737 # func_stripname prefix suffix name
18738 # strip PREFIX and SUFFIX off of NAME.
18739 # PREFIX and SUFFIX must not contain globbing or regex special
18740 # characters, hashes, percent signs, but SUFFIX may contain a leading
18741 # dot (in which case that matches only a dot).
18742 # func_strip_suffix prefix name
18746 .*) func_stripname_result=`$ECHO "X${3}" \
18747 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18748 *) func_stripname_result=`$ECHO "X${3}" \
18749 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18754 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18755 my_sed_long_arg='1s/^-[^=]*=//'
18760 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18761 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18767 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18770 # func_xform libobj-or-source
18773 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18776 # func_arith arithmetic-term...
18779 func_arith_result=`expr "$@"`
18783 # STRING may not start with a hyphen.
18786 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18792 case $lt_shell_append in
18794 cat << \_LT_EOF >> "$cfgfile"
18796 # func_append var value
18797 # Append VALUE to the end of shell variable VAR.
18805 cat << \_LT_EOF >> "$cfgfile"
18807 # func_append var value
18808 # Append VALUE to the end of shell variable VAR.
18819 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18820 || (rm -f "$cfgfile"; exit 1)
18822 mv -f "$cfgfile" "$ofile" ||
18823 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18834 ac_clean_files=$ac_clean_files_save
18836 test $ac_write_fail = 0 ||
18837 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18840 # configure is writing to config.log, and then calls config.status.
18841 # config.status does its own redirection, appending to config.log.
18842 # Unfortunately, on DOS this fails, as config.log is still kept open
18843 # by configure, so config.status won't be able to write to it; its
18844 # output is simply discarded. So we exec the FD to /dev/null,
18845 # effectively closing config.log, so it can be properly (re)opened and
18846 # appended to by config.status. When coming back to configure, we
18847 # need to make the FD available again.
18848 if test "$no_create" != yes; then
18850 ac_config_status_args=
18851 test "$silent" = yes &&
18852 ac_config_status_args="$ac_config_status_args --quiet"
18854 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18856 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18857 # would make configure fail if this is the last instruction.
18858 $ac_cs_success || as_fn_exit $?
18860 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18862 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18868 $PACKAGE $VERSION configured successfully:
18870 Installing into: $prefix
18871 System config dir: $sysconfdir
18872 C compiler flags: $conky_CFLAGS
18873 Libraries: $conky_LIBS
18874 Linker flags: $conky_LDFLAGS
18877 X11 support: $want_x11
18878 XDamage support: $want_xdamage
18879 XDBE support: $want_double_buffer
18880 Xft support: $want_xft
18881 ARGB support $want_argb
18884 Audacious: $want_audacious
18892 hddtemp: $want_hddtemp
18893 portmon: $want_portmon
18899 wireless: $want_wlan
18901 nvidia: $want_nvidia
18902 eve-online: $want_eve
18903 config-output: $want_config_output
18904 Imlib2: $want_imlib2
18905 ALSA mixer: $want_alsa
18906 apcupsd: $want_apcupsd
18907 I/O stats: $want_iostats
18909 * Lua ($want_lua) bindings:
18910 Cairo: $want_lua_cairo
18911 Imlib2: $want_lua_imlib2