2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Conky 2.0.2_pre1274.
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='2.0.2_pre1274'
705 PACKAGE_STRING='Conky 2.0.2_pre1274'
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 2.0.2_pre1274 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 2.0.2_pre1274:";;
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 2.0.2_pre1274
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 2.0.2_pre1274, 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.
3107 VERSION=2.0.2_pre1274
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`
7534 if test -n "$compiler"; then
7536 lt_prog_compiler_no_builtin_flag=
7538 if test "$GCC" = yes; then
7539 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7542 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7543 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7546 lt_cv_prog_compiler_rtti_exceptions=no
7547 ac_outfile=conftest.$ac_objext
7548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7549 lt_compiler_flag="-fno-rtti -fno-exceptions"
7550 # Insert the option either (1) after the last *FLAGS variable, or
7551 # (2) before a word containing "conftest.", or (3) at the end.
7552 # Note that $ac_compile itself does not contain backslashes and begins
7553 # with a dollar sign (not a hyphen), so the echo should work correctly.
7554 # The option is referenced via a variable to avoid confusing sed.
7555 lt_compile=`echo "$ac_compile" | $SED \
7556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7558 -e 's:$: $lt_compiler_flag:'`
7559 (eval echo "\"\$as_me:7559: $lt_compile\"" >&5)
7560 (eval "$lt_compile" 2>conftest.err)
7562 cat conftest.err >&5
7563 echo "$as_me:7563: \$? = $ac_status" >&5
7564 if (exit $ac_status) && test -s "$ac_outfile"; then
7565 # The compiler can only warn and ignore the option if not recognized
7566 # So say no if there are warnings other than the usual output.
7567 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7569 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7570 lt_cv_prog_compiler_rtti_exceptions=yes
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7577 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7579 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7580 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7592 lt_prog_compiler_wl=
7593 lt_prog_compiler_pic=
7594 lt_prog_compiler_static=
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7597 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7599 if test "$GCC" = yes; then
7600 lt_prog_compiler_wl='-Wl,'
7601 lt_prog_compiler_static='-static'
7605 # All AIX code is PIC.
7606 if test "$host_cpu" = ia64; then
7607 # AIX 5 now supports IA64 processor
7608 lt_prog_compiler_static='-Bstatic'
7615 # see comment about AmigaOS4 .so support
7616 lt_prog_compiler_pic='-fPIC'
7619 # FIXME: we need at least 68020 code to build shared libraries, but
7620 # adding the `-m68020' flag to GCC prevents building anything better,
7622 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7627 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7628 # PIC is the default for these OSes.
7631 mingw* | cygwin* | pw32* | os2* | cegcc*)
7632 # This hack is so that the source file can tell whether it is being
7633 # built for inclusion in a dll (and should export symbols for example).
7634 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7635 # (--disable-auto-import) libraries
7636 lt_prog_compiler_pic='-DDLL_EXPORT'
7639 darwin* | rhapsody*)
7640 # PIC is the default on this platform
7641 # Common symbols not allowed in MH_DYLIB files
7642 lt_prog_compiler_pic='-fno-common'
7646 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7647 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7648 # sets the default TLS model and affects inlining.
7654 lt_prog_compiler_pic='-fPIC'
7660 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7661 # Instead, we relocate shared libraries at runtime.
7665 # Just because we use GCC doesn't mean we suddenly get shared libraries
7666 # on systems that don't support them.
7667 lt_prog_compiler_can_build_shared=no
7672 # QNX uses GNU C++, but need to define -shared option too, otherwise
7674 lt_prog_compiler_pic='-fPIC -shared'
7678 if test -d /usr/nec; then
7679 lt_prog_compiler_pic=-Kconform_pic
7684 lt_prog_compiler_pic='-fPIC'
7688 # PORTME Check for flag to pass linker flags through the system compiler.
7691 lt_prog_compiler_wl='-Wl,'
7692 if test "$host_cpu" = ia64; then
7693 # AIX 5 now supports IA64 processor
7694 lt_prog_compiler_static='-Bstatic'
7696 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7700 mingw* | cygwin* | pw32* | os2* | cegcc*)
7701 # This hack is so that the source file can tell whether it is being
7702 # built for inclusion in a dll (and should export symbols for example).
7703 lt_prog_compiler_pic='-DDLL_EXPORT'
7706 hpux9* | hpux10* | hpux11*)
7707 lt_prog_compiler_wl='-Wl,'
7708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7715 lt_prog_compiler_pic='+Z'
7718 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7719 lt_prog_compiler_static='${wl}-a ${wl}archive'
7722 irix5* | irix6* | nonstopux*)
7723 lt_prog_compiler_wl='-Wl,'
7724 # PIC (with -KPIC) is the default.
7725 lt_prog_compiler_static='-non_shared'
7728 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7729 case $cc_basename in
7730 # old Intel for x86_64 which still supported -KPIC.
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_pic='-KPIC'
7734 lt_prog_compiler_static='-static'
7736 # icc used to be incompatible with GCC.
7737 # ICC 10 doesn't accept -KPIC any more.
7739 lt_prog_compiler_wl='-Wl,'
7740 lt_prog_compiler_pic='-fPIC'
7741 lt_prog_compiler_static='-static'
7743 # Lahey Fortran 8.1.
7745 lt_prog_compiler_wl='-Wl,'
7746 lt_prog_compiler_pic='--shared'
7747 lt_prog_compiler_static='--static'
7749 pgcc* | pgf77* | pgf90* | pgf95*)
7750 # Portland Group compilers (*not* the Pentium gcc compiler,
7751 # which looks to be a dead project)
7752 lt_prog_compiler_wl='-Wl,'
7753 lt_prog_compiler_pic='-fpic'
7754 lt_prog_compiler_static='-Bstatic'
7757 lt_prog_compiler_wl='-Wl,'
7758 # All Alpha code is PIC.
7759 lt_prog_compiler_static='-non_shared'
7762 # IBM XL C 8.0/Fortran 10.1 on PPC
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_pic='-qpic'
7765 lt_prog_compiler_static='-qstaticlink'
7768 case `$CC -V 2>&1 | sed 5q` in
7771 lt_prog_compiler_pic='-KPIC'
7772 lt_prog_compiler_static='-Bstatic'
7773 lt_prog_compiler_wl='-Wl,'
7776 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7777 lt_prog_compiler_pic='-KPIC'
7778 lt_prog_compiler_static='-Bstatic'
7779 lt_prog_compiler_wl=''
7787 lt_prog_compiler_pic='-KPIC'
7788 lt_prog_compiler_static='-Bstatic'
7792 # QNX uses GNU C++, but need to define -shared option too, otherwise
7794 lt_prog_compiler_pic='-fPIC -shared'
7797 osf3* | osf4* | osf5*)
7798 lt_prog_compiler_wl='-Wl,'
7799 # All OSF/1 code is PIC.
7800 lt_prog_compiler_static='-non_shared'
7804 lt_prog_compiler_static='-non_shared'
7808 lt_prog_compiler_pic='-KPIC'
7809 lt_prog_compiler_static='-Bstatic'
7810 case $cc_basename in
7812 lt_prog_compiler_wl='-Qoption ld ';;
7814 lt_prog_compiler_wl='-Wl,';;
7819 lt_prog_compiler_wl='-Qoption ld '
7820 lt_prog_compiler_pic='-PIC'
7821 lt_prog_compiler_static='-Bstatic'
7824 sysv4 | sysv4.2uw2* | sysv4.3*)
7825 lt_prog_compiler_wl='-Wl,'
7826 lt_prog_compiler_pic='-KPIC'
7827 lt_prog_compiler_static='-Bstatic'
7831 if test -d /usr/nec ;then
7832 lt_prog_compiler_pic='-Kconform_pic'
7833 lt_prog_compiler_static='-Bstatic'
7837 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7838 lt_prog_compiler_wl='-Wl,'
7839 lt_prog_compiler_pic='-KPIC'
7840 lt_prog_compiler_static='-Bstatic'
7844 lt_prog_compiler_wl='-Wl,'
7845 lt_prog_compiler_can_build_shared=no
7849 lt_prog_compiler_pic='-pic'
7850 lt_prog_compiler_static='-Bstatic'
7854 lt_prog_compiler_can_build_shared=no
7860 # For platforms which do not support PIC, -DPIC is meaningless:
7862 lt_prog_compiler_pic=
7865 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7869 $as_echo "$lt_prog_compiler_pic" >&6; }
7877 # Check to make sure the PIC flag actually works.
7879 if test -n "$lt_prog_compiler_pic"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7881 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7882 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7885 lt_cv_prog_compiler_pic_works=no
7886 ac_outfile=conftest.$ac_objext
7887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7888 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7889 # Insert the option either (1) after the last *FLAGS variable, or
7890 # (2) before a word containing "conftest.", or (3) at the end.
7891 # Note that $ac_compile itself does not contain backslashes and begins
7892 # with a dollar sign (not a hyphen), so the echo should work correctly.
7893 # The option is referenced via a variable to avoid confusing sed.
7894 lt_compile=`echo "$ac_compile" | $SED \
7895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7897 -e 's:$: $lt_compiler_flag:'`
7898 (eval echo "\"\$as_me:7898: $lt_compile\"" >&5)
7899 (eval "$lt_compile" 2>conftest.err)
7901 cat conftest.err >&5
7902 echo "$as_me:7902: \$? = $ac_status" >&5
7903 if (exit $ac_status) && test -s "$ac_outfile"; then
7904 # The compiler can only warn and ignore the option if not recognized
7905 # So say no if there are warnings other than the usual output.
7906 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7908 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7909 lt_cv_prog_compiler_pic_works=yes
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7916 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7918 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7919 case $lt_prog_compiler_pic in
7921 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7924 lt_prog_compiler_pic=
7925 lt_prog_compiler_can_build_shared=no
7936 # Check to make sure the static flag actually works.
7938 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7940 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7941 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7944 lt_cv_prog_compiler_static_works=no
7945 save_LDFLAGS="$LDFLAGS"
7946 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7947 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7948 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7949 # The linker can only warn and ignore the option if not recognized
7950 # So say no if there are warnings
7951 if test -s conftest.err; then
7952 # Append any errors to the config.log.
7953 cat conftest.err 1>&5
7954 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7956 if diff conftest.exp conftest.er2 >/dev/null; then
7957 lt_cv_prog_compiler_static_works=yes
7960 lt_cv_prog_compiler_static_works=yes
7964 LDFLAGS="$save_LDFLAGS"
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7968 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7970 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7973 lt_prog_compiler_static=
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7983 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7984 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7987 lt_cv_prog_compiler_c_o=no
7988 $RM -r conftest 2>/dev/null
7992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7994 lt_compiler_flag="-o out/conftest2.$ac_objext"
7995 # Insert the option either (1) after the last *FLAGS variable, or
7996 # (2) before a word containing "conftest.", or (3) at the end.
7997 # Note that $ac_compile itself does not contain backslashes and begins
7998 # with a dollar sign (not a hyphen), so the echo should work correctly.
7999 lt_compile=`echo "$ac_compile" | $SED \
8000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8002 -e 's:$: $lt_compiler_flag:'`
8003 (eval echo "\"\$as_me:8003: $lt_compile\"" >&5)
8004 (eval "$lt_compile" 2>out/conftest.err)
8006 cat out/conftest.err >&5
8007 echo "$as_me:8007: \$? = $ac_status" >&5
8008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8010 # The compiler can only warn and ignore the option if not recognized
8011 # So say no if there are warnings
8012 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8015 lt_cv_prog_compiler_c_o=yes
8020 # SGI C++ compiler will create directory out/ii_files/ for
8021 # template instantiation
8022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8023 $RM out/* && rmdir out
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8030 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8038 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8039 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
8042 lt_cv_prog_compiler_c_o=no
8043 $RM -r conftest 2>/dev/null
8047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8049 lt_compiler_flag="-o out/conftest2.$ac_objext"
8050 # Insert the option either (1) after the last *FLAGS variable, or
8051 # (2) before a word containing "conftest.", or (3) at the end.
8052 # Note that $ac_compile itself does not contain backslashes and begins
8053 # with a dollar sign (not a hyphen), so the echo should work correctly.
8054 lt_compile=`echo "$ac_compile" | $SED \
8055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8057 -e 's:$: $lt_compiler_flag:'`
8058 (eval echo "\"\$as_me:8058: $lt_compile\"" >&5)
8059 (eval "$lt_compile" 2>out/conftest.err)
8061 cat out/conftest.err >&5
8062 echo "$as_me:8062: \$? = $ac_status" >&5
8063 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8065 # The compiler can only warn and ignore the option if not recognized
8066 # So say no if there are warnings
8067 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8068 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8069 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8070 lt_cv_prog_compiler_c_o=yes
8075 # SGI C++ compiler will create directory out/ii_files/ for
8076 # template instantiation
8077 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8078 $RM out/* && rmdir out
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8085 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8090 hard_links="nottested"
8091 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8092 # do not overwrite the value of need_locks provided by the user
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8094 $as_echo_n "checking if we can lock with hard links... " >&6; }
8097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8099 ln conftest.a conftest.b 2>&5 || hard_links=no
8100 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8102 $as_echo "$hard_links" >&6; }
8103 if test "$hard_links" = no; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8105 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8118 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8121 allow_undefined_flag=
8122 always_export_symbols=no
8124 archive_expsym_cmds=
8125 compiler_needs_object=no
8126 enable_shared_with_static_runtimes=no
8127 export_dynamic_flag_spec=
8128 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8129 hardcode_automatic=no
8131 hardcode_direct_absolute=no
8132 hardcode_libdir_flag_spec=
8133 hardcode_libdir_flag_spec_ld=
8134 hardcode_libdir_separator=
8136 hardcode_shlibpath_var=unsupported
8138 link_all_deplibs=unknown
8141 old_archive_from_new_cmds=
8142 old_archive_from_expsyms_cmds=
8143 thread_safe_flag_spec=
8144 whole_archive_flag_spec=
8145 # include_expsyms should be a list of space-separated symbols to be *always*
8146 # included in the symbol list
8148 # exclude_expsyms can be an extended regexp of symbols to exclude
8149 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8150 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8151 # as well as any symbol that contains `d'.
8152 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8153 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8154 # platforms (ab)use it in PIC code, but their linkers get confused if
8155 # the symbol is explicitly referenced. Since portable code cannot
8156 # rely on this symbol name, it's probably fine to never include it in
8157 # preloaded symbol tables.
8158 # Exclude shared library initialization/finalization symbols.
8159 extract_expsyms_cmds=
8162 cygwin* | mingw* | pw32* | cegcc*)
8163 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8164 # When not using gcc, we currently assume that we are using
8165 # Microsoft Visual C++.
8166 if test "$GCC" != yes; then
8171 # we just hope/assume this is gcc and not c89 (= MSVC++)
8177 linux* | k*bsd*-gnu)
8183 if test "$with_gnu_ld" = yes; then
8184 # If archive_cmds runs LD, not CC, wlarc should be empty
8187 # Set some defaults for GNU ld with shared library support. These
8188 # are reset later if shared libraries are not supported. Putting them
8189 # here allows them to be overridden if necessary.
8190 runpath_var=LD_RUN_PATH
8191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8192 export_dynamic_flag_spec='${wl}--export-dynamic'
8193 # ancient GNU ld didn't support --whole-archive et. al.
8194 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8195 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8197 whole_archive_flag_spec=
8199 supports_anon_versioning=no
8200 case `$LD -v 2>&1` in
8201 *GNU\ gold*) supports_anon_versioning=yes ;;
8202 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8203 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8204 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8205 *\ 2.11.*) ;; # other 2.11 versions
8206 *) supports_anon_versioning=yes ;;
8209 # See if GNU ld supports shared libraries.
8212 # On AIX/PPC, the GNU linker is very broken
8213 if test "$host_cpu" != ia64; then
8217 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8218 *** to be unable to reliably create shared libraries on AIX.
8219 *** Therefore, libtool is disabling shared libraries support. If you
8220 *** really care for shared libraries, you may want to modify your PATH
8221 *** so that a non-GNU linker is found, and then restart.
8230 # see comment about AmigaOS4 .so support
8231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232 archive_expsym_cmds=''
8235 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)'
8236 hardcode_libdir_flag_spec='-L$libdir'
8237 hardcode_minus_L=yes
8243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8244 allow_undefined_flag=unsupported
8245 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8246 # support --undefined. This deserves some investigation. FIXME
8247 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8253 cygwin* | mingw* | pw32* | cegcc*)
8254 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8255 # as there is no search path for DLLs.
8256 hardcode_libdir_flag_spec='-L$libdir'
8257 allow_undefined_flag=unsupported
8258 always_export_symbols=no
8259 enable_shared_with_static_runtimes=yes
8260 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8262 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8264 # If the export-symbols file already is a .def file (1st line
8265 # is EXPORTS), use it as is; otherwise, prepend...
8266 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8267 cp $export_symbols $output_objdir/$soname.def;
8269 echo EXPORTS > $output_objdir/$soname.def;
8270 cat $export_symbols >> $output_objdir/$soname.def;
8272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8280 hardcode_shlibpath_var=no
8281 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8282 export_dynamic_flag_spec='${wl}-E'
8283 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8284 # Instead, shared libraries are loaded at an image base (0x10000000 by
8285 # default) and relocated if they conflict, which is a slow very memory
8286 # consuming and fragmenting process. To avoid this, we pick a random,
8287 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8288 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8289 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8290 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'
8293 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8295 if test "$host_os" = linux-dietlibc; then
8296 case $cc_basename in
8297 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8300 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8301 && test "$tmp_diet" = no
8304 tmp_sharedflag='-shared'
8305 case $cc_basename,$host_cpu in
8306 pgcc*) # Portland Group C compiler
8307 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'
8308 tmp_addflag=' $pic_flag'
8310 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
8313 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8314 tmp_addflag=' -i_dynamic' ;;
8315 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8316 tmp_addflag=' -i_dynamic -nofor_main' ;;
8317 ifc* | ifort*) # Intel Fortran compiler
8318 tmp_addflag=' -nofor_main' ;;
8319 lf95*) # Lahey Fortran 8.1
8320 whole_archive_flag_spec=
8321 tmp_sharedflag='--shared' ;;
8322 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8323 tmp_sharedflag='-qmkshrobj'
8326 case `$CC -V 2>&1 | sed 5q` in
8327 *Sun\ C*) # Sun C 5.9
8328 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'
8329 compiler_needs_object=yes
8330 tmp_sharedflag='-G' ;;
8331 *Sun\ F*) # Sun Fortran 8.3
8332 tmp_sharedflag='-G' ;;
8334 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8336 if test "x$supports_anon_versioning" = xyes; then
8337 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8339 echo "local: *; };" >> $output_objdir/$libname.ver~
8340 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8343 case $cc_basename in
8345 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8346 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8347 hardcode_libdir_flag_spec=
8348 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8349 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8350 if test "x$supports_anon_versioning" = xyes; then
8351 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8352 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8353 echo "local: *; };" >> $output_objdir/$libname.ver~
8354 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8363 netbsd* | netbsdelf*-gnu)
8364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8365 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8374 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8378 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8379 *** create shared libraries on Solaris systems. Therefore, libtool
8380 *** is disabling shared libraries support. We urge you to upgrade GNU
8381 *** binutils to release 2.9.1 or newer. Another option is to modify
8382 *** your PATH or compiler configuration so that the native linker is
8383 *** used, and then restart.
8386 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8395 case `$LD -v 2>&1` in
8396 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8400 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8401 *** reliably create shared libraries on SCO systems. Therefore, libtool
8402 *** is disabling shared libraries support. We urge you to upgrade GNU
8403 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8404 *** your PATH or compiler configuration so that the native linker is
8405 *** used, and then restart.
8410 # For security reasons, it is highly recommended that you always
8411 # use absolute paths for naming shared libraries, and exclude the
8412 # DT_RUNPATH tag from executables and libraries. But doing so
8413 # requires that you compile everything twice, which is a pain.
8414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8426 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8429 hardcode_shlibpath_var=no
8433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8442 if test "$ld_shlibs" = no; then
8444 hardcode_libdir_flag_spec=
8445 export_dynamic_flag_spec=
8446 whole_archive_flag_spec=
8449 # PORTME fill in a description of your system's linker (not GNU ld)
8452 allow_undefined_flag=unsupported
8453 always_export_symbols=yes
8454 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'
8455 # Note: this linker hardcodes the directories in LIBPATH if there
8456 # are no directories specified by -L.
8457 hardcode_minus_L=yes
8458 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8459 # Neither direct hardcoding nor static linking is supported with a
8461 hardcode_direct=unsupported
8466 if test "$host_cpu" = ia64; then
8467 # On IA64, the linker does run time linking by default, so we don't
8468 # have to do anything special.
8469 aix_use_runtimelinking=no
8470 exp_sym_flag='-Bexport'
8473 # If we're using GNU nm, then we don't want the "-C" option.
8474 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8475 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8476 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'
8478 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'
8480 aix_use_runtimelinking=no
8482 # Test if we are trying to use run time linking or normal
8483 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8484 # need to do runtime linking.
8485 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8486 for ld_flag in $LDFLAGS; do
8487 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8488 aix_use_runtimelinking=yes
8495 exp_sym_flag='-bexport'
8496 no_entry_flag='-bnoentry'
8499 # When large executables or shared objects are built, AIX ld can
8500 # have problems creating the table of contents. If linking a library
8501 # or program results in "error TOC overflow" add -mminimal-toc to
8502 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8503 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8507 hardcode_direct_absolute=yes
8508 hardcode_libdir_separator=':'
8509 link_all_deplibs=yes
8510 file_list_spec='${wl}-f,'
8512 if test "$GCC" = yes; then
8513 case $host_os in aix4.[012]|aix4.[012].*)
8514 # We only want to do this on AIX 4.2 and lower, the check
8515 # below for broken collect2 doesn't work under 4.3+
8516 collect2name=`${CC} -print-prog-name=collect2`
8517 if test -f "$collect2name" &&
8518 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8520 # We have reworked collect2
8523 # We have old collect2
8524 hardcode_direct=unsupported
8525 # It fails to find uninstalled libraries when the uninstalled
8526 # path is not listed in the libpath. Setting hardcode_minus_L
8527 # to unsupported forces relinking
8528 hardcode_minus_L=yes
8529 hardcode_libdir_flag_spec='-L$libdir'
8530 hardcode_libdir_separator=
8534 shared_flag='-shared'
8535 if test "$aix_use_runtimelinking" = yes; then
8536 shared_flag="$shared_flag "'${wl}-G'
8541 if test "$host_cpu" = ia64; then
8542 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8543 # chokes on -Wl,-G. The following line is correct:
8546 if test "$aix_use_runtimelinking" = yes; then
8547 shared_flag='${wl}-G'
8549 shared_flag='${wl}-bM:SRE'
8554 export_dynamic_flag_spec='${wl}-bexpall'
8555 # It seems that -bexpall does not export symbols beginning with
8556 # underscore (_), so it is better to generate a list of symbols to export.
8557 always_export_symbols=yes
8558 if test "$aix_use_runtimelinking" = yes; then
8559 # Warning - without using the other runtime loading flags (-brtl),
8560 # -berok will link without error, but may produce a broken library.
8561 allow_undefined_flag='-berok'
8562 # Determine the default libpath from the value encoded in an
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8575 if ac_fn_c_try_link "$LINENO"; then :
8577 lt_aix_libpath_sed='
8578 /Import File Strings/,/^$/ {
8584 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8585 # Check for a 64-bit object if we didn't find anything.
8586 if test -z "$aix_libpath"; then
8587 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8590 rm -f core conftest.err conftest.$ac_objext \
8591 conftest$ac_exeext conftest.$ac_ext
8592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8594 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8595 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"
8597 if test "$host_cpu" = ia64; then
8598 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8599 allow_undefined_flag="-z nodefs"
8600 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"
8602 # Determine the default libpath from the value encoded in an
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8615 if ac_fn_c_try_link "$LINENO"; then :
8617 lt_aix_libpath_sed='
8618 /Import File Strings/,/^$/ {
8624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8625 # Check for a 64-bit object if we didn't find anything.
8626 if test -z "$aix_libpath"; then
8627 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8630 rm -f core conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8634 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8635 # Warning - without using the other run time loading flags,
8636 # -berok will link without error, but may produce a broken library.
8637 no_undefined_flag=' ${wl}-bernotok'
8638 allow_undefined_flag=' ${wl}-berok'
8639 # Exported symbols can be pulled into shared objects from archives
8640 whole_archive_flag_spec='$convenience'
8641 archive_cmds_need_lc=yes
8642 # This is similar to how AIX traditionally builds its shared libraries.
8643 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'
8651 # see comment about AmigaOS4 .so support
8652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653 archive_expsym_cmds=''
8656 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)'
8657 hardcode_libdir_flag_spec='-L$libdir'
8658 hardcode_minus_L=yes
8664 export_dynamic_flag_spec=-rdynamic
8667 cygwin* | mingw* | pw32* | cegcc*)
8668 # When not using gcc, we currently assume that we are using
8669 # Microsoft Visual C++.
8670 # hardcode_libdir_flag_spec is actually meaningless, as there is
8671 # no search path for DLLs.
8672 hardcode_libdir_flag_spec=' '
8673 allow_undefined_flag=unsupported
8674 # Tell ltmain to make .lib files, not .a files.
8676 # Tell ltmain to make .dll files, not .so files.
8678 # FIXME: Setting linknames here is a bad hack.
8679 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8680 # The linker will automatically build a .lib file if we build a DLL.
8681 old_archive_from_new_cmds='true'
8682 # FIXME: Should let the user specify the lib program.
8683 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8684 fix_srcfile_path='`cygpath -w "$srcfile"`'
8685 enable_shared_with_static_runtimes=yes
8688 darwin* | rhapsody*)
8691 archive_cmds_need_lc=no
8693 hardcode_automatic=yes
8694 hardcode_shlibpath_var=unsupported
8695 whole_archive_flag_spec=''
8696 link_all_deplibs=yes
8697 allow_undefined_flag="$_lt_dar_allow_undefined"
8698 case $cc_basename in
8699 ifort*) _lt_dar_can_shared=yes ;;
8700 *) _lt_dar_can_shared=$GCC ;;
8702 if test "$_lt_dar_can_shared" = "yes"; then
8703 output_verbose_link_cmd=echo
8704 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8705 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8706 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}"
8707 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}"
8716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8717 hardcode_libdir_flag_spec='-L$libdir'
8718 hardcode_shlibpath_var=no
8725 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8726 # support. Future versions do this automatically, but an explicit c++rt0.o
8727 # does not break anything, and helps significantly (at the cost of a little
8730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8731 hardcode_libdir_flag_spec='-R$libdir'
8733 hardcode_shlibpath_var=no
8736 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_minus_L=yes
8741 hardcode_shlibpath_var=no
8744 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8745 freebsd* | dragonfly*)
8746 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8747 hardcode_libdir_flag_spec='-R$libdir'
8749 hardcode_shlibpath_var=no
8753 if test "$GCC" = yes; then
8754 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'
8756 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'
8758 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8759 hardcode_libdir_separator=:
8762 # hardcode_minus_L: Not really in the search PATH,
8763 # but as the default location of the library.
8764 hardcode_minus_L=yes
8765 export_dynamic_flag_spec='${wl}-E'
8769 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8770 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8772 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8774 if test "$with_gnu_ld" = no; then
8775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8776 hardcode_libdir_flag_spec_ld='+b $libdir'
8777 hardcode_libdir_separator=:
8779 hardcode_direct_absolute=yes
8780 export_dynamic_flag_spec='${wl}-E'
8781 # hardcode_minus_L: Not really in the search PATH,
8782 # but as the default location of the library.
8783 hardcode_minus_L=yes
8788 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8791 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8794 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8797 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8803 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8806 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8809 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8813 if test "$with_gnu_ld" = no; then
8814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8815 hardcode_libdir_separator=:
8820 hardcode_shlibpath_var=no
8824 hardcode_direct_absolute=yes
8825 export_dynamic_flag_spec='${wl}-E'
8827 # hardcode_minus_L: Not really in the search PATH,
8828 # but as the default location of the library.
8829 hardcode_minus_L=yes
8835 irix5* | irix6* | nonstopux*)
8836 if test "$GCC" = yes; then
8837 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'
8838 # Try to use the -exported_symbol ld option, if it does not
8839 # work, assume that -exports_file does not work either and
8840 # implicitly export all symbols.
8841 save_LDFLAGS="$LDFLAGS"
8842 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8847 if ac_fn_c_try_link "$LINENO"; then :
8848 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'
8851 rm -f core conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8853 LDFLAGS="$save_LDFLAGS"
8855 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'
8856 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'
8858 archive_cmds_need_lc='no'
8859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860 hardcode_libdir_separator=:
8862 link_all_deplibs=yes
8865 netbsd* | netbsdelf*-gnu)
8866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8869 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8871 hardcode_libdir_flag_spec='-R$libdir'
8873 hardcode_shlibpath_var=no
8877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880 hardcode_libdir_separator=:
8881 hardcode_shlibpath_var=no
8888 if test -f /usr/libexec/ld.so; then
8890 hardcode_shlibpath_var=no
8891 hardcode_direct_absolute=yes
8892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8894 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8896 export_dynamic_flag_spec='${wl}-E'
8899 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_libdir_flag_spec='-R$libdir'
8904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8915 hardcode_libdir_flag_spec='-L$libdir'
8916 hardcode_minus_L=yes
8917 allow_undefined_flag=unsupported
8918 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'
8919 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8923 if test "$GCC" = yes; then
8924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8925 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'
8927 allow_undefined_flag=' -expect_unresolved \*'
8928 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'
8930 archive_cmds_need_lc='no'
8931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8932 hardcode_libdir_separator=:
8935 osf4* | osf5*) # as osf3* with the addition of -msym flag
8936 if test "$GCC" = yes; then
8937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8938 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'
8939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8941 allow_undefined_flag=' -expect_unresolved \*'
8942 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'
8943 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~
8944 $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'
8946 # Both c and cxx compiler support -rpath directly
8947 hardcode_libdir_flag_spec='-rpath $libdir'
8949 archive_cmds_need_lc='no'
8950 hardcode_libdir_separator=:
8954 no_undefined_flag=' -z defs'
8955 if test "$GCC" = yes; then
8957 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8959 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8961 case `$CC -V 2>&1` in
8964 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8970 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8972 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8976 hardcode_libdir_flag_spec='-R$libdir'
8977 hardcode_shlibpath_var=no
8979 solaris2.[0-5] | solaris2.[0-5].*) ;;
8981 # The compiler driver will combine and reorder linker options,
8982 # but understands `-z linker_flag'. GCC discards it without `$wl',
8983 # but is careful enough not to reorder.
8984 # Supported since Solaris 2.6 (maybe 2.5.1?)
8985 if test "$GCC" = yes; then
8986 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8988 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8992 link_all_deplibs=yes
8996 if test "x$host_vendor" = xsequent; then
8997 # Use $CC to link under sequent, because it throws in some extra .o
8998 # files that make .init and .fini sections work.
8999 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9001 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9003 hardcode_libdir_flag_spec='-L$libdir'
9005 hardcode_minus_L=yes
9006 hardcode_shlibpath_var=no
9010 case $host_vendor in
9012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 hardcode_direct=yes # is this really true???
9016 ## LD is ld it makes a PLAMLIB
9017 ## CC just makes a GrossModule.
9018 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9019 reload_cmds='$CC -r -o $output$reload_objs'
9023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9027 runpath_var='LD_RUN_PATH'
9028 hardcode_shlibpath_var=no
9032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033 hardcode_shlibpath_var=no
9034 export_dynamic_flag_spec='-Bexport'
9038 if test -d /usr/nec; then
9039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9040 hardcode_shlibpath_var=no
9041 runpath_var=LD_RUN_PATH
9042 hardcode_runpath_var=yes
9047 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9048 no_undefined_flag='${wl}-z,text'
9049 archive_cmds_need_lc=no
9050 hardcode_shlibpath_var=no
9051 runpath_var='LD_RUN_PATH'
9053 if test "$GCC" = yes; then
9054 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9055 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9057 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9058 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062 sysv5* | sco3.2v5* | sco5v6*)
9063 # Note: We can NOT use -z defs as we might desire, because we do not
9064 # link with -lc, and that would cause any symbols used from libc to
9065 # always be unresolved, which means just about no library would
9066 # ever link correctly. If we're not using GNU ld we use -z text
9067 # though, which does catch some bad symbols but isn't as heavy-handed
9069 no_undefined_flag='${wl}-z,text'
9070 allow_undefined_flag='${wl}-z,nodefs'
9071 archive_cmds_need_lc=no
9072 hardcode_shlibpath_var=no
9073 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9074 hardcode_libdir_separator=':'
9075 link_all_deplibs=yes
9076 export_dynamic_flag_spec='${wl}-Bexport'
9077 runpath_var='LD_RUN_PATH'
9079 if test "$GCC" = yes; then
9080 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9081 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9084 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9090 hardcode_libdir_flag_spec='-L$libdir'
9091 hardcode_shlibpath_var=no
9099 if test x$host_vendor = xsni; then
9101 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9102 export_dynamic_flag_spec='${wl}-Blargedynsym'
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9109 $as_echo "$ld_shlibs" >&6; }
9110 test "$ld_shlibs" = no && can_build_shared=no
9112 with_gnu_ld=$with_gnu_ld
9129 # Do we need to explicitly link libc?
9131 case "x$archive_cmds_need_lc" in
9133 # Assume -lc should be added
9134 archive_cmds_need_lc=yes
9136 if test "$enable_shared" = yes && test "$GCC" = yes; then
9137 case $archive_cmds in
9139 # FIXME: we may have to deal with multi-command sequences.
9142 # Test whether the compiler implicitly links with -lc since on some
9143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9144 # to ld, don't add -lc before -lgcc.
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9146 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9151 (eval $ac_compile) 2>&5
9153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9154 test $ac_status = 0; } 2>conftest.err; then
9157 libobjs=conftest.$ac_objext
9159 wl=$lt_prog_compiler_wl
9160 pic_flag=$lt_prog_compiler_pic
9166 lt_save_allow_undefined_flag=$allow_undefined_flag
9167 allow_undefined_flag=
9168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9169 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9172 test $ac_status = 0; }
9174 archive_cmds_need_lc=no
9176 archive_cmds_need_lc=yes
9178 allow_undefined_flag=$lt_save_allow_undefined_flag
9180 cat conftest.err 1>&5
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9184 $as_echo "$archive_cmds_need_lc" >&6; }
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9348 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9350 if test "$GCC" = yes; then
9352 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9353 *) lt_awk_arg="/^libraries:/" ;;
9355 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9356 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9357 # if the path contains ";" then we assume it to be the separator
9358 # otherwise default to the standard path separator (i.e. ":") - it is
9359 # assumed that no part of a normal pathname contains ";" but that should
9360 # okay in the real world where ";" in dirpaths is itself problematic.
9361 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9363 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9365 # Ok, now we have the path, separated by spaces, we can step through it
9366 # and add multilib dir if necessary.
9367 lt_tmp_lt_search_path_spec=
9368 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9369 for lt_sys_path in $lt_search_path_spec; do
9370 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9371 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9373 test -d "$lt_sys_path" && \
9374 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9377 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9378 BEGIN {RS=" "; FS="/|\n";} {
9381 for (lt_i = NF; lt_i > 0; lt_i--) {
9382 if ($lt_i != "" && $lt_i != ".") {
9383 if ($lt_i == "..") {
9386 if (lt_count == 0) {
9387 lt_foo="/" $lt_i lt_foo;
9394 if (lt_foo != "") { lt_freq[lt_foo]++; }
9395 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9397 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9402 libname_spec='lib$name'
9410 shlibpath_overrides_runpath=unknown
9412 dynamic_linker="$host_os ld.so"
9413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9414 need_lib_prefix=unknown
9415 hardcode_into_libs=no
9417 # when you set need_version to no, make sure it does not cause -set_version
9418 # flags to be left without arguments
9419 need_version=unknown
9424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9425 shlibpath_var=LIBPATH
9427 # AIX 3 has no versioning support, so we append a major version to the name.
9428 soname_spec='${libname}${release}${shared_ext}$major'
9435 hardcode_into_libs=yes
9436 if test "$host_cpu" = ia64; then
9437 # AIX 5 supports IA64
9438 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9439 shlibpath_var=LD_LIBRARY_PATH
9441 # With GCC up to 2.95.x, collect2 would create an import file
9442 # for dependence libraries. The import file would start with
9443 # the line `#! .'. This would cause the generated library to
9444 # depend on `.', always an invalid library. This was fixed in
9445 # development snapshots of GCC prior to 3.0.
9447 aix4 | aix4.[01] | aix4.[01].*)
9448 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9450 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9457 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9458 # soname into executable. Probably we can add versioning support to
9459 # collect2, so additional links can be useful in future.
9460 if test "$aix_use_runtimelinking" = yes; then
9461 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9462 # instead of lib<name>.a to let people know that these are not
9463 # typical AIX shared libraries.
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466 # We preserve .a as extension for shared libraries through AIX4.2
9467 # and later when we are not doing run time linking.
9468 library_names_spec='${libname}${release}.a $libname.a'
9469 soname_spec='${libname}${release}${shared_ext}$major'
9471 shlibpath_var=LIBPATH
9478 # Since July 2007 AmigaOS4 officially supports .so libraries.
9479 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 library_names_spec='$libname.ixlibrary $libname.a'
9484 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9485 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'
9491 library_names_spec='${libname}${shared_ext}'
9492 dynamic_linker="$host_os ld.so"
9493 shlibpath_var=LIBRARY_PATH
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9504 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9505 # the default ld.so.conf also contains /usr/contrib/lib and
9506 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9507 # libtool to hard-code these into programs
9510 cygwin* | mingw* | pw32* | cegcc*)
9511 version_type=windows
9516 case $GCC,$host_os in
9517 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9518 library_names_spec='$libname.dll.a'
9519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9520 postinstall_cmds='base_file=`basename \${file}`~
9521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9522 dldir=$destdir/`dirname \$dlpath`~
9523 test -d \$dldir || mkdir -p \$dldir~
9524 $install_prog $dir/$dlname \$dldir/$dlname~
9525 chmod a+x \$dldir/$dlname~
9526 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9527 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9529 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9530 dlpath=$dir/\$dldll~
9532 shlibpath_overrides_runpath=yes
9536 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9537 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9538 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9541 # MinGW DLLs use traditional 'lib' prefix
9542 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9543 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9544 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9545 # It is most probably a Windows format PATH printed by
9546 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9547 # path with ; separators, and with drive letters. We can handle the
9548 # drive letters (cygwin fileutils understands them), so leave them,
9549 # especially as we might pass files found there to a mingw objdump,
9550 # which wouldn't understand a cygwinified path. Ahh.
9551 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9553 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9557 # pw32 DLLs use 'pw' prefix rather than 'lib'
9558 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9564 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9567 dynamic_linker='Win32 ld.exe'
9568 # FIXME: first we should search . and the directory the executable is in
9572 darwin* | rhapsody*)
9573 dynamic_linker="$host_os dyld"
9577 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9578 soname_spec='${libname}${release}${major}$shared_ext'
9579 shlibpath_overrides_runpath=yes
9580 shlibpath_var=DYLD_LIBRARY_PATH
9581 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9583 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9584 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LD_LIBRARY_PATH
9600 freebsd* | dragonfly*)
9601 # DragonFly does not have aout. When/if they implement a new
9602 # versioning mechanism, adjust this.
9603 if test -x /usr/bin/objformat; then
9604 objformat=`/usr/bin/objformat`
9607 freebsd[123]*) objformat=aout ;;
9611 version_type=freebsd-$objformat
9612 case $version_type in
9614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9623 shlibpath_var=LD_LIBRARY_PATH
9626 shlibpath_overrides_runpath=yes
9628 freebsd3.[01]* | freebsdelf3.[01]*)
9629 shlibpath_overrides_runpath=yes
9630 hardcode_into_libs=yes
9632 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9633 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9634 shlibpath_overrides_runpath=no
9635 hardcode_into_libs=yes
9637 *) # from 4.6 on, and DragonFly
9638 shlibpath_overrides_runpath=yes
9639 hardcode_into_libs=yes
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9649 soname_spec='${libname}${release}${shared_ext}$major'
9650 shlibpath_var=LD_LIBRARY_PATH
9651 hardcode_into_libs=yes
9654 hpux9* | hpux10* | hpux11*)
9655 # Give a soname corresponding to the major version so that dld.sl refuses to
9656 # link against other versions.
9663 hardcode_into_libs=yes
9664 dynamic_linker="$host_os dld.so"
9665 shlibpath_var=LD_LIBRARY_PATH
9666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 if test "X$HPUX_IA64_MODE" = X32; then
9670 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9672 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9678 hardcode_into_libs=yes
9679 dynamic_linker="$host_os dld.sl"
9680 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9689 dynamic_linker="$host_os dld.sl"
9690 shlibpath_var=SHLIB_PATH
9691 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693 soname_spec='${libname}${release}${shared_ext}$major'
9696 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9697 postinstall_cmds='chmod 555 $lib'
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 shlibpath_overrides_runpath=no
9709 hardcode_into_libs=yes
9712 irix5* | irix6* | nonstopux*)
9714 nonstopux*) version_type=nonstopux ;;
9716 if test "$lt_cv_prog_gnu_ld" = yes; then
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9727 irix5* | nonstopux*)
9731 case $LD in # libtool.m4 will add one of these switches to LD
9732 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9733 libsuff= shlibsuff= libmagic=32-bit;;
9734 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9735 libsuff=32 shlibsuff=N32 libmagic=N32;;
9736 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9737 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9738 *) libsuff= shlibsuff= libmagic=never-match;;
9742 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9743 shlibpath_overrides_runpath=no
9744 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9745 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9746 hardcode_into_libs=yes
9749 # No shared lib support for Linux oldld, aout, or coff.
9750 linux*oldld* | linux*aout* | linux*coff*)
9754 # This must be Linux ELF.
9755 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760 soname_spec='${libname}${release}${shared_ext}$major'
9761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9762 shlibpath_var=LD_LIBRARY_PATH
9763 shlibpath_overrides_runpath=no
9764 # Some binutils ld are patched to set DT_RUNPATH
9765 save_LDFLAGS=$LDFLAGS
9767 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9768 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9780 if ac_fn_c_try_link "$LINENO"; then :
9781 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9782 shlibpath_overrides_runpath=yes
9785 rm -f core conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9787 LDFLAGS=$save_LDFLAGS
9790 # This implies no fast_install, which is unacceptable.
9791 # Some rework will be needed to allow for fast_install
9792 # before this can be enabled.
9793 hardcode_into_libs=yes
9795 # Append ld.so.conf contents to the search path
9796 if test -f /etc/ld.so.conf; then
9797 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' ' '`
9798 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9801 # We used to test for /lib/ld.so.1 and disable shared libraries on
9802 # powerpc, because MkLinux only supported shared libraries with the
9803 # GNU dynamic linker. Since this was broken with cross compilers,
9804 # most powerpc-linux boxes support dynamic linking these days and
9805 # people can always --disable-shared, the test was removed, and we
9806 # assume the GNU/Linux dynamic linker is in use.
9807 dynamic_linker='GNU/Linux ld.so'
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9815 soname_spec='${libname}${release}${shared_ext}$major'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 shlibpath_overrides_runpath=no
9818 hardcode_into_libs=yes
9819 dynamic_linker='NetBSD ld.elf_so'
9826 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9829 dynamic_linker='NetBSD (a.out) ld.so'
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9832 soname_spec='${libname}${release}${shared_ext}$major'
9833 dynamic_linker='NetBSD ld.elf_so'
9835 shlibpath_var=LD_LIBRARY_PATH
9836 shlibpath_overrides_runpath=yes
9837 hardcode_into_libs=yes
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9843 shlibpath_var=LD_LIBRARY_PATH
9844 shlibpath_overrides_runpath=yes
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 shlibpath_var=LD_LIBRARY_PATH
9854 shlibpath_overrides_runpath=no
9855 hardcode_into_libs=yes
9856 dynamic_linker='ldqnx.so'
9861 sys_lib_dlsearch_path_spec="/usr/lib"
9863 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9865 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9866 *) need_version=no ;;
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9873 openbsd2.[89] | openbsd2.[89].*)
9874 shlibpath_overrides_runpath=no
9877 shlibpath_overrides_runpath=yes
9881 shlibpath_overrides_runpath=yes
9886 libname_spec='$name'
9889 library_names_spec='$libname${shared_ext} $libname.a'
9890 dynamic_linker='OS/2 ld.exe'
9891 shlibpath_var=LIBPATH
9894 osf3* | osf4* | osf5*)
9898 soname_spec='${libname}${release}${shared_ext}$major'
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900 shlibpath_var=LD_LIBRARY_PATH
9901 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9902 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9915 shlibpath_var=LD_LIBRARY_PATH
9916 shlibpath_overrides_runpath=yes
9917 hardcode_into_libs=yes
9918 # ldd complains unless libraries are executable
9919 postinstall_cmds='chmod +x $lib'
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9925 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 shlibpath_overrides_runpath=yes
9928 if test "$with_gnu_ld" = yes; then
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937 soname_spec='${libname}${release}${shared_ext}$major'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 case $host_vendor in
9941 shlibpath_overrides_runpath=no
9943 runpath_var=LD_RUN_PATH
9951 shlibpath_overrides_runpath=no
9952 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9958 if test -d /usr/nec ;then
9960 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9961 soname_spec='$libname${shared_ext}.$major'
9962 shlibpath_var=LD_LIBRARY_PATH
9966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9967 version_type=freebsd-elf
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 shlibpath_var=LD_LIBRARY_PATH
9973 shlibpath_overrides_runpath=yes
9974 hardcode_into_libs=yes
9975 if test "$with_gnu_ld" = yes; then
9976 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9978 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9981 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9985 sys_lib_dlsearch_path_spec='/usr/lib'
9989 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994 shlibpath_var=LD_LIBRARY_PATH
9995 shlibpath_overrides_runpath=no
9996 hardcode_into_libs=yes
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 shlibpath_var=LD_LIBRARY_PATH
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10011 $as_echo "$dynamic_linker" >&6; }
10012 test "$dynamic_linker" = no && can_build_shared=no
10014 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10015 if test "$GCC" = yes; then
10016 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10019 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10020 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10022 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10023 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10113 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10115 if test -n "$hardcode_libdir_flag_spec" ||
10116 test -n "$runpath_var" ||
10117 test "X$hardcode_automatic" = "Xyes" ; then
10119 # We can hardcode non-existent directories.
10120 if test "$hardcode_direct" != no &&
10121 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10122 # have to relink, otherwise we might link with an installed library
10123 # when we should be linking with a yet-to-be-installed one
10124 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10125 test "$hardcode_minus_L" != no; then
10126 # Linking always hardcodes the temporary library directory.
10127 hardcode_action=relink
10129 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10130 hardcode_action=immediate
10133 # We cannot hardcode anything, or else we can only hardcode existing
10135 hardcode_action=unsupported
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10138 $as_echo "$hardcode_action" >&6; }
10140 if test "$hardcode_action" = relink ||
10141 test "$inherit_rpath" = yes; then
10142 # Fast installation is not supported
10143 enable_fast_install=no
10144 elif test "$shlibpath_overrides_runpath" = yes ||
10145 test "$enable_shared" = no; then
10146 # Fast installation is not necessary
10147 enable_fast_install=needless
10155 if test "x$enable_dlopen" != xyes; then
10156 enable_dlopen=unknown
10157 enable_dlopen_self=unknown
10158 enable_dlopen_self_static=unknown
10165 lt_cv_dlopen="load_add_on"
10167 lt_cv_dlopen_self=yes
10170 mingw* | pw32* | cegcc*)
10171 lt_cv_dlopen="LoadLibrary"
10176 lt_cv_dlopen="dlopen"
10181 # if libdl is installed we need to link against it
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10183 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10184 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10185 $as_echo_n "(cached) " >&6
10187 ac_check_lib_save_LIBS=$LIBS
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10192 /* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
10207 if ac_fn_c_try_link "$LINENO"; then :
10208 ac_cv_lib_dl_dlopen=yes
10210 ac_cv_lib_dl_dlopen=no
10212 rm -f core conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10217 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10218 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10219 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10222 lt_cv_dlopen="dyld"
10224 lt_cv_dlopen_self=yes
10231 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10232 if test "x$ac_cv_func_shl_load" = x""yes; then :
10233 lt_cv_dlopen="shl_load"
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10236 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10237 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10238 $as_echo_n "(cached) " >&6
10240 ac_check_lib_save_LIBS=$LIBS
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10255 return shl_load ();
10260 if ac_fn_c_try_link "$LINENO"; then :
10261 ac_cv_lib_dld_shl_load=yes
10263 ac_cv_lib_dld_shl_load=no
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267 LIBS=$ac_check_lib_save_LIBS
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10270 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10271 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10272 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10274 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10275 if test "x$ac_cv_func_dlopen" = x""yes; then :
10276 lt_cv_dlopen="dlopen"
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10279 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10280 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
10283 ac_check_lib_save_LIBS=$LIBS
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h. */
10288 /* Override any GCC internal prototype to avoid an error.
10289 Use char because int might match the return type of a GCC
10290 builtin and then its argument prototype would still apply. */
10303 if ac_fn_c_try_link "$LINENO"; then :
10304 ac_cv_lib_dl_dlopen=yes
10306 ac_cv_lib_dl_dlopen=no
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10310 LIBS=$ac_check_lib_save_LIBS
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10313 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10314 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10318 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10319 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10320 $as_echo_n "(cached) " >&6
10322 ac_check_lib_save_LIBS=$LIBS
10323 LIBS="-lsvld $LIBS"
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10327 /* Override any GCC internal prototype to avoid an error.
10328 Use char because int might match the return type of a GCC
10329 builtin and then its argument prototype would still apply. */
10342 if ac_fn_c_try_link "$LINENO"; then :
10343 ac_cv_lib_svld_dlopen=yes
10345 ac_cv_lib_svld_dlopen=no
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_lib_save_LIBS
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10352 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10353 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10354 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10357 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10358 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10359 $as_echo_n "(cached) " >&6
10361 ac_check_lib_save_LIBS=$LIBS
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10366 /* Override any GCC internal prototype to avoid an error.
10367 Use char because int might match the return type of a GCC
10368 builtin and then its argument prototype would still apply. */
10376 return dld_link ();
10381 if ac_fn_c_try_link "$LINENO"; then :
10382 ac_cv_lib_dld_dld_link=yes
10384 ac_cv_lib_dld_dld_link=no
10386 rm -f core conftest.err conftest.$ac_objext \
10387 conftest$ac_exeext conftest.$ac_ext
10388 LIBS=$ac_check_lib_save_LIBS
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10391 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10392 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10393 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10414 if test "x$lt_cv_dlopen" != xno; then
10420 case $lt_cv_dlopen in
10422 save_CPPFLAGS="$CPPFLAGS"
10423 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10425 save_LDFLAGS="$LDFLAGS"
10426 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10429 LIBS="$lt_cv_dlopen_libs $LIBS"
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10432 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10433 if test "${lt_cv_dlopen_self+set}" = set; then :
10434 $as_echo_n "(cached) " >&6
10436 if test "$cross_compiling" = yes; then :
10437 lt_cv_dlopen_self=cross
10439 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10440 lt_status=$lt_dlunknown
10441 cat > conftest.$ac_ext <<_LT_EOF
10442 #line 10442 "configure"
10443 #include "confdefs.h"
10452 # define LT_DLGLOBAL RTLD_GLOBAL
10455 # define LT_DLGLOBAL DL_GLOBAL
10457 # define LT_DLGLOBAL 0
10461 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10462 find out it does not work in some platform. */
10463 #ifndef LT_DLLAZY_OR_NOW
10465 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10468 # define LT_DLLAZY_OR_NOW DL_LAZY
10471 # define LT_DLLAZY_OR_NOW RTLD_NOW
10474 # define LT_DLLAZY_OR_NOW DL_NOW
10476 # define LT_DLLAZY_OR_NOW 0
10483 void fnord() { int i=42;}
10486 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10487 int status = $lt_dlunknown;
10491 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10492 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10493 /* dlclose (self); */
10501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10502 (eval $ac_link) 2>&5
10504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10505 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10506 (./conftest; exit; ) >&5 2>/dev/null
10508 case x$lt_status in
10509 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10510 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10511 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10514 # compilation failed
10515 lt_cv_dlopen_self=no
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10523 $as_echo "$lt_cv_dlopen_self" >&6; }
10525 if test "x$lt_cv_dlopen_self" = xyes; then
10526 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10528 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10529 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10530 $as_echo_n "(cached) " >&6
10532 if test "$cross_compiling" = yes; then :
10533 lt_cv_dlopen_self_static=cross
10535 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10536 lt_status=$lt_dlunknown
10537 cat > conftest.$ac_ext <<_LT_EOF
10538 #line 10538 "configure"
10539 #include "confdefs.h"
10548 # define LT_DLGLOBAL RTLD_GLOBAL
10551 # define LT_DLGLOBAL DL_GLOBAL
10553 # define LT_DLGLOBAL 0
10557 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10558 find out it does not work in some platform. */
10559 #ifndef LT_DLLAZY_OR_NOW
10561 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10564 # define LT_DLLAZY_OR_NOW DL_LAZY
10567 # define LT_DLLAZY_OR_NOW RTLD_NOW
10570 # define LT_DLLAZY_OR_NOW DL_NOW
10572 # define LT_DLLAZY_OR_NOW 0
10579 void fnord() { int i=42;}
10582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10583 int status = $lt_dlunknown;
10587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10588 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10589 /* dlclose (self); */
10597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10598 (eval $ac_link) 2>&5
10600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10601 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10602 (./conftest; exit; ) >&5 2>/dev/null
10604 case x$lt_status in
10605 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10606 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10607 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10610 # compilation failed
10611 lt_cv_dlopen_self_static=no
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10619 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10622 CPPFLAGS="$save_CPPFLAGS"
10623 LDFLAGS="$save_LDFLAGS"
10628 case $lt_cv_dlopen_self in
10629 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10630 *) enable_dlopen_self=unknown ;;
10633 case $lt_cv_dlopen_self_static in
10634 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10635 *) enable_dlopen_self_static=unknown ;;
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10658 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10659 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10660 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10661 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10663 $as_echo "yes" >&6; }
10665 # FIXME - insert some real tests, host_os isn't really good enough
10668 if test -n "$STRIP" ; then
10669 striplib="$STRIP -x"
10670 old_striplib="$STRIP -S"
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10672 $as_echo "yes" >&6; }
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675 $as_echo "no" >&6; }
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 $as_echo "no" >&6; }
10696 # Report which library types will actually be built
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10698 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10700 $as_echo "$can_build_shared" >&6; }
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10703 $as_echo_n "checking whether to build shared libraries... " >&6; }
10704 test "$can_build_shared" = "no" && enable_shared=no
10706 # On AIX, shared libraries and static libraries use the same namespace, and
10707 # are all built from PIC.
10710 test "$enable_shared" = yes && enable_static=no
10711 if test -n "$RANLIB"; then
10712 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10713 postinstall_cmds='$RANLIB $lib'
10718 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10719 test "$enable_shared" = yes && enable_static=no
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10724 $as_echo "$enable_shared" >&6; }
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10727 $as_echo_n "checking whether to build static libraries... " >&6; }
10728 # Make sure either enable_shared or enable_static is yes.
10729 test "$enable_shared" = yes || enable_static=yes
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10731 $as_echo "$enable_static" >&6; }
10738 ac_cpp='$CPP $CPPFLAGS'
10739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10757 ac_config_commands="$ac_config_commands libtool"
10762 # Only expand once:
10766 if test "x$CC" != xcc; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10768 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10771 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10773 set dummy $CC; ac_cc=`$as_echo "$2" |
10774 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10775 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
10776 $as_echo_n "(cached) " >&6
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10789 # Make sure it works both with $CC and with simple cc.
10790 # We do the test twice because some compilers refuse to overwrite an
10791 # existing .o file with -o, though they will create one.
10792 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10794 if { { case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10799 $as_echo "$ac_try_echo"; } >&5
10800 (eval "$ac_try") 2>&5
10802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10803 test $ac_status = 0; } &&
10804 test -f conftest2.$ac_objext && { { case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10809 $as_echo "$ac_try_echo"; } >&5
10810 (eval "$ac_try") 2>&5
10812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10813 test $ac_status = 0; };
10815 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10816 if test "x$CC" != xcc; then
10817 # Test first that cc exists at all.
10818 if { ac_try='cc -c conftest.$ac_ext >&5'
10819 { { case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10824 $as_echo "$ac_try_echo"; } >&5
10825 (eval "$ac_try") 2>&5
10827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10828 test $ac_status = 0; }; }; then
10829 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10831 if { { case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10836 $as_echo "$ac_try_echo"; } >&5
10837 (eval "$ac_try") 2>&5
10839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10840 test $ac_status = 0; } &&
10841 test -f conftest2.$ac_objext && { { case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10846 $as_echo "$ac_try_echo"; } >&5
10847 (eval "$ac_try") 2>&5
10849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850 test $ac_status = 0; };
10855 # cc exists but doesn't like -o.
10856 eval ac_cv_prog_cc_${ac_cc}_c_o=no
10861 eval ac_cv_prog_cc_${ac_cc}_c_o=no
10863 rm -f core conftest*
10866 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10868 $as_echo "yes" >&6; }
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10873 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
10877 # FIXME: we rely on the cache variable name because
10878 # there is no other way.
10880 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10881 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
10882 if test "$am_t" != yes; then
10883 # Losing compiler, so override with the script.
10884 # FIXME: It is wrong to rewrite CC.
10885 # But if we don't then we get into trouble of one sort or another.
10886 # A longer-term fix would be to have automake use am__CC in this case,
10887 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10888 CC="$am_aux_dir/compile $CC"
10893 # Extract the first word of "pkg-config", so it can be a program name with args.
10894 set dummy pkg-config; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
10900 if test -n "$HAVE_PKGCONFIG"; then
10901 ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
10903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904 for as_dir in $PATH
10907 test -z "$as_dir" && as_dir=.
10908 for ac_exec_ext in '' $ac_executable_extensions; do
10909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10910 ac_cv_prog_HAVE_PKGCONFIG="yes"
10911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10918 test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
10921 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
10922 if test -n "$HAVE_PKGCONFIG"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKGCONFIG" >&5
10924 $as_echo "$HAVE_PKGCONFIG" >&6; }
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10931 if test x"$HAVE_PKGCONFIG" = x"no"; then
10932 as_fn_error "pkg-config is required!" "$LINENO" 5
10936 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10937 if test -n "$ac_tool_prefix"; then
10938 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10939 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10941 $as_echo_n "checking for $ac_word... " >&6; }
10942 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10945 case $PKG_CONFIG in
10947 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10957 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10968 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10969 if test -n "$PKG_CONFIG"; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10971 $as_echo "$PKG_CONFIG" >&6; }
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 $as_echo "no" >&6; }
10979 if test -z "$ac_cv_path_PKG_CONFIG"; then
10980 ac_pt_PKG_CONFIG=$PKG_CONFIG
10981 # Extract the first word of "pkg-config", so it can be a program name with args.
10982 set dummy pkg-config; ac_word=$2
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10984 $as_echo_n "checking for $ac_word... " >&6; }
10985 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10988 case $ac_pt_PKG_CONFIG in
10990 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11000 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11012 if test -n "$ac_pt_PKG_CONFIG"; then
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11014 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017 $as_echo "no" >&6; }
11020 if test "x$ac_pt_PKG_CONFIG" = x; then
11023 case $cross_compiling:$ac_tool_warned in
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11027 ac_tool_warned=yes ;;
11029 PKG_CONFIG=$ac_pt_PKG_CONFIG
11032 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11036 if test -n "$PKG_CONFIG"; then
11037 _pkg_min_version=0.19
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11039 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11040 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11042 $as_echo "yes" >&6; }
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045 $as_echo "no" >&6; }
11051 ac_config_files="$ac_config_files Makefile data/Makefile doc/Makefile src/Makefile src/build.h lua/Makefile"
11060 FreeBSD*|GNU/kFreeBSD*)
11074 # Solaris doesn't work at all right now
11080 echo "Your operating system $uname isn't supported"
11081 echo "Feel free to help. :P"
11086 if test x$uname = xLinux; then
11088 BUILD_LINUX_FALSE='#'
11090 BUILD_LINUX_TRUE='#'
11094 #AM_CONDITIONAL(BUILD_SOLARIS, test x$uname = xSunOS)
11095 if test x$uname = xFreeBSD -o x$uname = xGNU/kFreeBSD; then
11096 BUILD_FREEBSD_TRUE=
11097 BUILD_FREEBSD_FALSE='#'
11099 BUILD_FREEBSD_TRUE='#'
11100 BUILD_FREEBSD_FALSE=
11103 #AM_CONDITIONAL(BUILD_NETBSD, test x$uname = xNetBSD)
11104 if test x$uname = xOpenBSD; then
11105 BUILD_OPENBSD_TRUE=
11106 BUILD_OPENBSD_FALSE='#'
11108 BUILD_OPENBSD_TRUE='#'
11109 BUILD_OPENBSD_FALSE=
11113 BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date)
11114 BUILD_ARCH="$(uname -sr) ($(uname -m))"
11120 # Check whether --enable-config_output was given.
11121 if test "${enable_config_output+set}" = set; then :
11122 enableval=$enable_config_output; want_config_output="$enableval"
11124 want_config_output=yes
11128 if test x$want_config_output = xyes; then
11129 BUILD_CONFIG_OUTPUT_TRUE=
11130 BUILD_CONFIG_OUTPUT_FALSE='#'
11132 BUILD_CONFIG_OUTPUT_TRUE='#'
11133 BUILD_CONFIG_OUTPUT_FALSE=
11136 if test x$want_config_output = xyes; then
11138 $as_echo "#define CONFIG_OUTPUT 1" >>confdefs.h
11140 for ac_func in fopencookie
11142 ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
11143 if test "x$ac_cv_func_fopencookie" = x""yes; then :
11144 cat >>confdefs.h <<_ACEOF
11145 #define HAVE_FOPENCOOKIE 1
11151 for ac_func in funopen
11153 ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
11154 if test "x$ac_cv_func_funopen" = x""yes; then :
11155 cat >>confdefs.h <<_ACEOF
11156 #define HAVE_FUNOPEN 1
11165 # Check whether --enable-own_window was given.
11166 if test "${enable_own_window+set}" = set; then :
11167 enableval=$enable_own_window; dah="$enableval"
11173 if test $dah != "no"; then
11175 $as_echo "#define OWN_WINDOW 1" >>confdefs.h
11180 # Check whether --enable-ncurses was given.
11181 if test "${enable_ncurses+set}" = set; then :
11182 enableval=$enable_ncurses; want_ncurses="$enableval"
11188 if test x$want_ncurses = xyes; then
11189 BUILD_NCURSES_TRUE=
11190 BUILD_NCURSES_FALSE='#'
11192 BUILD_NCURSES_TRUE='#'
11193 BUILD_NCURSES_FALSE=
11196 if test x$want_ncurses = xyes; then
11197 conky_LIBS="$conky_LIBS -lncurses"
11199 $as_echo "#define NCURSES 1" >>confdefs.h
11205 # Check whether --enable-audacious was given.
11206 if test "${enable_audacious+set}" = set; then :
11207 enableval=$enable_audacious; want_audacious="$enableval"
11213 if test x$want_audacious = xyes -o x$want_audacious = xlegacy; then
11214 BUILD_AUDACIOUS_TRUE=
11215 BUILD_AUDACIOUS_FALSE='#'
11217 BUILD_AUDACIOUS_TRUE='#'
11218 BUILD_AUDACIOUS_FALSE=
11221 if test x$want_audacious = xyes; then
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Audacious" >&5
11225 $as_echo_n "checking for Audacious... " >&6; }
11227 if test -n "$PKG_CONFIG"; then
11228 if test -n "$Audacious_CFLAGS"; then
11229 pkg_cv_Audacious_CFLAGS="$Audacious_CFLAGS"
11231 if test -n "$PKG_CONFIG" && \
11232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0\""; } >&5
11233 ($PKG_CONFIG --exists --print-errors "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0") 2>&5
11235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11236 test $ac_status = 0; }; then
11237 pkg_cv_Audacious_CFLAGS=`$PKG_CONFIG --cflags "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0" 2>/dev/null`
11245 if test -n "$PKG_CONFIG"; then
11246 if test -n "$Audacious_LIBS"; then
11247 pkg_cv_Audacious_LIBS="$Audacious_LIBS"
11249 if test -n "$PKG_CONFIG" && \
11250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0\""; } >&5
11251 ($PKG_CONFIG --exists --print-errors "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0") 2>&5
11253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11254 test $ac_status = 0; }; then
11255 pkg_cv_Audacious_LIBS=`$PKG_CONFIG --libs "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0" 2>/dev/null`
11266 if test $pkg_failed = yes; then
11268 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11269 _pkg_short_errors_supported=yes
11271 _pkg_short_errors_supported=no
11273 if test $_pkg_short_errors_supported = yes; then
11274 Audacious_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0"`
11276 Audacious_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0"`
11278 # Put the nasty error message in config.log where it belongs
11279 echo "$Audacious_PKG_ERRORS" >&5
11281 as_fn_error "Package requirements (audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0) were not met:
11283 $Audacious_PKG_ERRORS
11285 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11286 installed software in a non-standard prefix.
11288 Alternatively, you may set the environment variables Audacious_CFLAGS
11289 and Audacious_LIBS to avoid the need to call pkg-config.
11290 See the pkg-config man page for more details.
11292 elif test $pkg_failed = untried; then
11293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11295 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11296 is in your PATH or set the PKG_CONFIG environment variable to the full
11297 path to pkg-config.
11299 Alternatively, you may set the environment variables Audacious_CFLAGS
11300 and Audacious_LIBS to avoid the need to call pkg-config.
11301 See the pkg-config man page for more details.
11303 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11304 See \`config.log' for more details." "$LINENO" 5; }
11306 Audacious_CFLAGS=$pkg_cv_Audacious_CFLAGS
11307 Audacious_LIBS=$pkg_cv_Audacious_LIBS
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11309 $as_echo "yes" >&6; }
11312 conky_CFLAGS="$conky_CFLAGS $Audacious_CFLAGS"
11313 conky_LIBS="$conky_LIBS $Audacious_LIBS"
11314 save_CPPFLAGS="$CPPFLAGS"
11315 CPPFLAGS="$Audacious_CFLAGS -I`pkg-config --variable=audacious_include_dir audacious`/audacious"
11316 for ac_header in audacious/audctrl.h audacious/dbus.h glib.h glib-object.h
11318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11319 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11320 eval as_val=\$$as_ac_Header
11321 if test "x$as_val" = x""yes; then :
11322 cat >>confdefs.h <<_ACEOF
11323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11327 as_fn_error "required header(s) not found" "$LINENO" 5
11332 CPPFLAGS="$save_CPPFLAGS"
11334 $as_echo "#define AUDACIOUS 1" >>confdefs.h
11336 else if test x$want_audacious = xlegacy; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Audacious" >&5
11340 $as_echo_n "checking for Audacious... " >&6; }
11342 if test -n "$PKG_CONFIG"; then
11343 if test -n "$Audacious_CFLAGS"; then
11344 pkg_cv_Audacious_CFLAGS="$Audacious_CFLAGS"
11346 if test -n "$PKG_CONFIG" && \
11347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audacious < 1.4.0 glib-2.0\""; } >&5
11348 ($PKG_CONFIG --exists --print-errors "audacious < 1.4.0 glib-2.0") 2>&5
11350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11351 test $ac_status = 0; }; then
11352 pkg_cv_Audacious_CFLAGS=`$PKG_CONFIG --cflags "audacious < 1.4.0 glib-2.0" 2>/dev/null`
11360 if test -n "$PKG_CONFIG"; then
11361 if test -n "$Audacious_LIBS"; then
11362 pkg_cv_Audacious_LIBS="$Audacious_LIBS"
11364 if test -n "$PKG_CONFIG" && \
11365 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audacious < 1.4.0 glib-2.0\""; } >&5
11366 ($PKG_CONFIG --exists --print-errors "audacious < 1.4.0 glib-2.0") 2>&5
11368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11369 test $ac_status = 0; }; then
11370 pkg_cv_Audacious_LIBS=`$PKG_CONFIG --libs "audacious < 1.4.0 glib-2.0" 2>/dev/null`
11381 if test $pkg_failed = yes; then
11383 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11384 _pkg_short_errors_supported=yes
11386 _pkg_short_errors_supported=no
11388 if test $_pkg_short_errors_supported = yes; then
11389 Audacious_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "audacious < 1.4.0 glib-2.0"`
11391 Audacious_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audacious < 1.4.0 glib-2.0"`
11393 # Put the nasty error message in config.log where it belongs
11394 echo "$Audacious_PKG_ERRORS" >&5
11396 as_fn_error "Package requirements (audacious < 1.4.0 glib-2.0) were not met:
11398 $Audacious_PKG_ERRORS
11400 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11401 installed software in a non-standard prefix.
11403 Alternatively, you may set the environment variables Audacious_CFLAGS
11404 and Audacious_LIBS to avoid the need to call pkg-config.
11405 See the pkg-config man page for more details.
11407 elif test $pkg_failed = untried; then
11408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11410 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11411 is in your PATH or set the PKG_CONFIG environment variable to the full
11412 path to pkg-config.
11414 Alternatively, you may set the environment variables Audacious_CFLAGS
11415 and Audacious_LIBS to avoid the need to call pkg-config.
11416 See the pkg-config man page for more details.
11418 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11419 See \`config.log' for more details." "$LINENO" 5; }
11421 Audacious_CFLAGS=$pkg_cv_Audacious_CFLAGS
11422 Audacious_LIBS=$pkg_cv_Audacious_LIBS
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11424 $as_echo "yes" >&6; }
11427 conky_CFLAGS="$conky_CFLAGS $Audacious_CFLAGS"
11428 conky_LIBS="$conky_LIBS $Audacious_LIBS"
11429 save_CPPFLAGS="$CPPFLAGS"
11430 CPPFLAGS="$Audacious_CFLAGS -I`pkg-config --variable=audacious_include_dir audacious`/audacious"
11431 for ac_header in audacious/beepctrl.h glib.h
11433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11434 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11435 eval as_val=\$$as_ac_Header
11436 if test "x$as_val" = x""yes; then :
11437 cat >>confdefs.h <<_ACEOF
11438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11442 as_fn_error "required header(s) not found" "$LINENO" 5
11447 CPPFLAGS="$save_CPPFLAGS"
11449 $as_echo "#define AUDACIOUS 1" >>confdefs.h
11452 $as_echo "#define AUDACIOUS_LEGACY 1" >>confdefs.h
11459 # Check whether --enable-bmpx was given.
11460 if test "${enable_bmpx+set}" = set; then :
11461 enableval=$enable_bmpx; want_bmpx="$enableval"
11467 if test x$want_bmpx = xyes; then
11469 BUILD_BMPX_FALSE='#'
11471 BUILD_BMPX_TRUE='#'
11475 if test x$want_bmpx = xyes; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BMPx" >&5
11479 $as_echo_n "checking for BMPx... " >&6; }
11481 if test -n "$PKG_CONFIG"; then
11482 if test -n "$BMPx_CFLAGS"; then
11483 pkg_cv_BMPx_CFLAGS="$BMPx_CFLAGS"
11485 if test -n "$PKG_CONFIG" && \
11486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bmp-2.0 >= 0.14.0\""; } >&5
11487 ($PKG_CONFIG --exists --print-errors "bmp-2.0 >= 0.14.0") 2>&5
11489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11490 test $ac_status = 0; }; then
11491 pkg_cv_BMPx_CFLAGS=`$PKG_CONFIG --cflags "bmp-2.0 >= 0.14.0" 2>/dev/null`
11499 if test -n "$PKG_CONFIG"; then
11500 if test -n "$BMPx_LIBS"; then
11501 pkg_cv_BMPx_LIBS="$BMPx_LIBS"
11503 if test -n "$PKG_CONFIG" && \
11504 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bmp-2.0 >= 0.14.0\""; } >&5
11505 ($PKG_CONFIG --exists --print-errors "bmp-2.0 >= 0.14.0") 2>&5
11507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11508 test $ac_status = 0; }; then
11509 pkg_cv_BMPx_LIBS=`$PKG_CONFIG --libs "bmp-2.0 >= 0.14.0" 2>/dev/null`
11520 if test $pkg_failed = yes; then
11522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11523 _pkg_short_errors_supported=yes
11525 _pkg_short_errors_supported=no
11527 if test $_pkg_short_errors_supported = yes; then
11528 BMPx_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "bmp-2.0 >= 0.14.0"`
11530 BMPx_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bmp-2.0 >= 0.14.0"`
11532 # Put the nasty error message in config.log where it belongs
11533 echo "$BMPx_PKG_ERRORS" >&5
11535 as_fn_error "Package requirements (bmp-2.0 >= 0.14.0) were not met:
11539 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11540 installed software in a non-standard prefix.
11542 Alternatively, you may set the environment variables BMPx_CFLAGS
11543 and BMPx_LIBS to avoid the need to call pkg-config.
11544 See the pkg-config man page for more details.
11546 elif test $pkg_failed = untried; then
11547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11549 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11550 is in your PATH or set the PKG_CONFIG environment variable to the full
11551 path to pkg-config.
11553 Alternatively, you may set the environment variables BMPx_CFLAGS
11554 and BMPx_LIBS to avoid the need to call pkg-config.
11555 See the pkg-config man page for more details.
11557 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11558 See \`config.log' for more details." "$LINENO" 5; }
11560 BMPx_CFLAGS=$pkg_cv_BMPx_CFLAGS
11561 BMPx_LIBS=$pkg_cv_BMPx_LIBS
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11563 $as_echo "yes" >&6; }
11566 conky_CFLAGS="$conky_CFLAGS $BMPx_CFLAGS"
11567 conky_LIBS="$conky_LIBS $BMPx_LIBS"
11569 $as_echo "#define BMPX 1" >>confdefs.h
11575 # Check whether --enable-ibm was given.
11576 if test "${enable_ibm+set}" = set; then :
11577 enableval=$enable_ibm; want_ibm="$enableval"
11583 if test x$want_ibm = xyes; then
11585 BUILD_IBM_FALSE='#'
11591 if test x$want_ibm = xyes; then
11592 if test x"$uname" != xLinux; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: support for IBM/Lenovo notebooks not supported on $uname... disabling" >&5
11594 $as_echo "$as_me: support for IBM/Lenovo notebooks not supported on $uname... disabling" >&6;}
11595 want_ibm="not supported on $uname"
11598 $as_echo "#define IBM 1" >>confdefs.h
11605 # Check whether --enable-hddtemp was given.
11606 if test "${enable_hddtemp+set}" = set; then :
11607 enableval=$enable_hddtemp; want_hddtemp="$enableval"
11613 if test x$want_hddtemp = xyes; then
11614 BUILD_HDDTEMP_TRUE=
11615 BUILD_HDDTEMP_FALSE='#'
11617 BUILD_HDDTEMP_TRUE='#'
11618 BUILD_HDDTEMP_FALSE=
11621 if test x$want_hddtemp = xyes; then
11622 if test x"$uname" != xLinux; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: hddtemp not supported on $uname... disabling" >&5
11624 $as_echo "$as_me: hddtemp not supported on $uname... disabling" >&6;}
11625 want_hddtemp="not supported on $uname"
11628 $as_echo "#define HDDTEMP 1" >>confdefs.h
11635 # Check whether --enable-apcupsd was given.
11636 if test "${enable_apcupsd+set}" = set; then :
11637 enableval=$enable_apcupsd; want_apcupsd="$enableval"
11643 if test x$want_apcupsd = xyes; then
11644 if test x"$uname" != xLinux -a x"$uname" != xFreeBSD; then
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: apcupsd not supported on $uname... disabling" >&5
11646 $as_echo "$as_me: apcupsd not supported on $uname... disabling" >&6;}
11647 want_apcupsd="not supported on $uname"
11650 $as_echo "#define APCUPSD 1" >>confdefs.h
11654 if test x$want_apcupsd = xyes; then
11655 BUILD_APCUPSD_TRUE=
11656 BUILD_APCUPSD_FALSE='#'
11658 BUILD_APCUPSD_TRUE='#'
11659 BUILD_APCUPSD_FALSE=
11665 # Check whether --enable-iostats was given.
11666 if test "${enable_iostats+set}" = set; then :
11667 enableval=$enable_iostats; want_iostats="$enableval"
11673 if test x$want_iostats = xyes; then
11674 if test x"$uname" != xLinux -a x"$uname" != xFreeBSD; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: iostats not supported on $uname... disabling" >&5
11676 $as_echo "$as_me: iostats not supported on $uname... disabling" >&6;}
11677 want_iostats="not supported on $uname"
11680 $as_echo "#define IOSTATS 1" >>confdefs.h
11687 # Check whether --enable-math was given.
11688 if test "${enable_math+set}" = set; then :
11689 enableval=$enable_math; want_math="$enableval"
11695 if test x$want_math = xyes; then
11697 BUILD_MATH_FALSE='#'
11699 BUILD_MATH_TRUE='#'
11703 if test x$want_math = xyes; then
11704 conky_LIBS="$conky_LIBS -lm"
11706 $as_echo "#define MATH 1" >>confdefs.h
11711 # Check whether --enable-mpd was given.
11712 if test "${enable_mpd+set}" = set; then :
11713 enableval=$enable_mpd; want_mpd="$enableval"
11719 if test x$want_mpd = xyes; then
11721 BUILD_MPD_FALSE='#'
11727 if test x$want_mpd = xyes; then
11729 $as_echo "#define MPD 1" >>confdefs.h
11734 # Check whether --enable-moc was given.
11735 if test "${enable_moc+set}" = set; then :
11736 enableval=$enable_moc; want_moc="$enableval"
11742 if test x$want_moc = xyes; then
11744 BUILD_MOC_FALSE='#'
11750 if test x$want_moc = xyes; then
11752 $as_echo "#define MOC 1" >>confdefs.h
11757 # Check whether --enable-xmms2 was given.
11758 if test "${enable_xmms2+set}" = set; then :
11759 enableval=$enable_xmms2; want_xmms2="$enableval"
11765 if test x$want_xmms2 = xyes; then
11767 BUILD_XMMS2_FALSE='#'
11769 BUILD_XMMS2_TRUE='#'
11773 if test x$want_xmms2 = xyes; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMMS2" >&5
11777 $as_echo_n "checking for XMMS2... " >&6; }
11779 if test -n "$PKG_CONFIG"; then
11780 if test -n "$XMMS2_CFLAGS"; then
11781 pkg_cv_XMMS2_CFLAGS="$XMMS2_CFLAGS"
11783 if test -n "$PKG_CONFIG" && \
11784 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmms2-client >= 0.6\""; } >&5
11785 ($PKG_CONFIG --exists --print-errors "xmms2-client >= 0.6") 2>&5
11787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11788 test $ac_status = 0; }; then
11789 pkg_cv_XMMS2_CFLAGS=`$PKG_CONFIG --cflags "xmms2-client >= 0.6" 2>/dev/null`
11797 if test -n "$PKG_CONFIG"; then
11798 if test -n "$XMMS2_LIBS"; then
11799 pkg_cv_XMMS2_LIBS="$XMMS2_LIBS"
11801 if test -n "$PKG_CONFIG" && \
11802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmms2-client >= 0.6\""; } >&5
11803 ($PKG_CONFIG --exists --print-errors "xmms2-client >= 0.6") 2>&5
11805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806 test $ac_status = 0; }; then
11807 pkg_cv_XMMS2_LIBS=`$PKG_CONFIG --libs "xmms2-client >= 0.6" 2>/dev/null`
11818 if test $pkg_failed = yes; then
11820 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11821 _pkg_short_errors_supported=yes
11823 _pkg_short_errors_supported=no
11825 if test $_pkg_short_errors_supported = yes; then
11826 XMMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xmms2-client >= 0.6"`
11828 XMMS2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmms2-client >= 0.6"`
11830 # Put the nasty error message in config.log where it belongs
11831 echo "$XMMS2_PKG_ERRORS" >&5
11833 as_fn_error "Package requirements (xmms2-client >= 0.6) were not met:
11837 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11838 installed software in a non-standard prefix.
11840 Alternatively, you may set the environment variables XMMS2_CFLAGS
11841 and XMMS2_LIBS to avoid the need to call pkg-config.
11842 See the pkg-config man page for more details.
11844 elif test $pkg_failed = untried; then
11845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11847 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11848 is in your PATH or set the PKG_CONFIG environment variable to the full
11849 path to pkg-config.
11851 Alternatively, you may set the environment variables XMMS2_CFLAGS
11852 and XMMS2_LIBS to avoid the need to call pkg-config.
11853 See the pkg-config man page for more details.
11855 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11856 See \`config.log' for more details." "$LINENO" 5; }
11858 XMMS2_CFLAGS=$pkg_cv_XMMS2_CFLAGS
11859 XMMS2_LIBS=$pkg_cv_XMMS2_LIBS
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11861 $as_echo "yes" >&6; }
11864 conky_CFLAGS="$conky_CFLAGS $XMMS2_CFLAGS"
11865 conky_LIBS="$conky_LIBS $XMMS2_LIBS"
11867 $as_echo "#define XMMS2 1" >>confdefs.h
11872 # Check whether --enable-curl was given.
11873 if test "${enable_curl+set}" = set; then :
11874 enableval=$enable_curl; want_curl="$enableval"
11881 # Check whether --enable-eve was given.
11882 if test "${enable_eve+set}" = set; then :
11883 enableval=$enable_eve; want_eve="$enableval"
11889 if test x$want_eve = xyes; then
11891 BUILD_EVE_FALSE='#'
11897 if test x$want_eve = xyes; then
11901 $as_echo "#define EVE 1" >>confdefs.h
11904 $as_echo "#define EVEURL_TRAINING \"http://api.eve-online.com/char/SkillInTraining.xml.aspx\"" >>confdefs.h
11907 $as_echo "#define EVEURL_SKILLTREE \"http://api.eve-online.com/eve/Skilltree.xml.aspx\"" >>confdefs.h
11910 $as_echo "#define MY_ENCODING \"ISO-8859-1\"" >>confdefs.h
11913 $as_echo "#define EVE_OUTPUT_FORMAT \"%s %d in %s\"" >>confdefs.h
11918 # Check whether --enable-rss was given.
11919 if test "${enable_rss+set}" = set; then :
11920 enableval=$enable_rss; want_rss="$enableval"
11926 if test x$want_rss = xyes; then
11928 BUILD_RSS_FALSE='#'
11934 if test x$want_rss = xyes; then
11939 $as_echo "#define RSS 1" >>confdefs.h
11944 # Check whether --enable-weather-metar was given.
11945 if test "${enable_weather_metar+set}" = set; then :
11946 enableval=$enable_weather_metar; want_metar="$enableval"
11952 # Check whether --enable-weather-xoap was given.
11953 if test "${enable_weather_xoap+set}" = set; then :
11954 enableval=$enable_weather_xoap; want_xoap="$enableval"
11960 if test x$want_xoap = xyes; then
11963 if test x$want_metar = xyes; then
11964 BUILD_WEATHER_TRUE=
11965 BUILD_WEATHER_FALSE='#'
11967 BUILD_WEATHER_TRUE='#'
11968 BUILD_WEATHER_FALSE=
11971 if test x$want_xoap = xyes; then
11973 BUILD_XOAP_FALSE='#'
11975 BUILD_XOAP_TRUE='#'
11979 if test x$want_metar = xyes; then
11980 if test x$want_xoap = xyes; then
11983 $as_echo "#define XOAP 1" >>confdefs.h
11986 $as_echo "#define XOAP_FILE \"\$HOME/.xoaprc\"" >>confdefs.h
11991 $as_echo "#define WEATHER 1" >>confdefs.h
11996 # Check whether --enable-x11 was given.
11997 if test "${enable_x11+set}" = set; then :
11998 enableval=$enable_x11; want_x11="$enableval"
12004 if test x$want_x11 = xyes; then
12006 BUILD_X11_FALSE='#'
12012 if test "x$want_x11" = "xyes"; then
12013 if $PKG_CONFIG --exists x11; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
12017 $as_echo_n "checking for X11... " >&6; }
12019 if test -n "$PKG_CONFIG"; then
12020 if test -n "$X11_CFLAGS"; then
12021 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
12023 if test -n "$PKG_CONFIG" && \
12024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12025 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12028 test $ac_status = 0; }; then
12029 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
12037 if test -n "$PKG_CONFIG"; then
12038 if test -n "$X11_LIBS"; then
12039 pkg_cv_X11_LIBS="$X11_LIBS"
12041 if test -n "$PKG_CONFIG" && \
12042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12043 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12046 test $ac_status = 0; }; then
12047 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
12058 if test $pkg_failed = yes; then
12060 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12061 _pkg_short_errors_supported=yes
12063 _pkg_short_errors_supported=no
12065 if test $_pkg_short_errors_supported = yes; then
12066 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
12068 X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
12070 # Put the nasty error message in config.log where it belongs
12071 echo "$X11_PKG_ERRORS" >&5
12073 as_fn_error "Package requirements (x11) were not met:
12077 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12078 installed software in a non-standard prefix.
12080 Alternatively, you may set the environment variables X11_CFLAGS
12081 and X11_LIBS to avoid the need to call pkg-config.
12082 See the pkg-config man page for more details.
12084 elif test $pkg_failed = untried; then
12085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12087 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
12088 is in your PATH or set the PKG_CONFIG environment variable to the full
12089 path to pkg-config.
12091 Alternatively, you may set the environment variables X11_CFLAGS
12092 and X11_LIBS to avoid the need to call pkg-config.
12093 See the pkg-config man page for more details.
12095 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12096 See \`config.log' for more details." "$LINENO" 5; }
12098 X11_CFLAGS=$pkg_cv_X11_CFLAGS
12099 X11_LIBS=$pkg_cv_X11_LIBS
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12101 $as_echo "yes" >&6; }
12104 conky_CFLAGS="$conky_CFLAGS $X11_CFLAGS"
12105 conky_LIBS="$conky_LIBS $X11_LIBS"
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12108 $as_echo_n "checking for X... " >&6; }
12111 # Check whether --with-x was given.
12112 if test "${with_x+set}" = set; then :
12116 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12117 if test "x$with_x" = xno; then
12118 # The user explicitly disabled X.
12121 case $x_includes,$x_libraries in #(
12122 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
12123 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12126 # One or both of the vars are not set, and there is no cached value.
12127 ac_x_includes=no ac_x_libraries=no
12128 rm -f -r conftest.dir
12129 if mkdir conftest.dir; then
12131 cat >Imakefile <<'_ACEOF'
12133 @echo incroot='${INCROOT}'
12135 @echo usrlibdir='${USRLIBDIR}'
12137 @echo libdir='${LIBDIR}'
12139 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
12140 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12141 for ac_var in incroot usrlibdir libdir; do
12142 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12144 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12145 for ac_extension in a so sl dylib la dll; do
12146 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12147 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12148 ac_im_usrlibdir=$ac_im_libdir; break
12151 # Screen out bogus values from the imake configuration. They are
12152 # bogus both because they are the default anyway, and because
12153 # using them would break gcc on systems where it needs fixed includes.
12154 case $ac_im_incroot in
12155 /usr/include) ac_x_includes= ;;
12156 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12158 case $ac_im_usrlibdir in
12159 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
12160 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12164 rm -f -r conftest.dir
12167 # Standard set of common directories for X headers.
12168 # Check X11 before X11Rn because it is often a symlink to the current release.
12182 /usr/local/X11/include
12183 /usr/local/X11R7/include
12184 /usr/local/X11R6/include
12185 /usr/local/X11R5/include
12186 /usr/local/X11R4/include
12188 /usr/local/include/X11
12189 /usr/local/include/X11R7
12190 /usr/local/include/X11R6
12191 /usr/local/include/X11R5
12192 /usr/local/include/X11R4
12196 /usr/XFree86/include/X11
12200 /usr/unsupported/include
12201 /usr/athena/include
12202 /usr/local/x11r5/include
12203 /usr/lpp/Xamples/include
12205 /usr/openwin/include
12206 /usr/openwin/share/include'
12208 if test "$ac_x_includes" = no; then
12209 # Guess where to find include files, by looking for Xlib.h.
12210 # First, try using that file with no special directory specified.
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12213 #include <X11/Xlib.h>
12215 if ac_fn_c_try_cpp "$LINENO"; then :
12216 # We can compile using X headers with no special include directory.
12219 for ac_dir in $ac_x_header_dirs; do
12220 if test -r "$ac_dir/X11/Xlib.h"; then
12221 ac_x_includes=$ac_dir
12226 rm -f conftest.err conftest.$ac_ext
12227 fi # $ac_x_includes = no
12229 if test "$ac_x_libraries" = no; then
12230 # Check for the libraries.
12231 # See if we find them without any special options.
12232 # Don't add to $LIBS permanently.
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12237 #include <X11/Xlib.h>
12246 if ac_fn_c_try_link "$LINENO"; then :
12248 # We can link X programs with no special library path.
12252 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12254 # Don't even attempt the hair of trying to link an X program!
12255 for ac_extension in a so sl dylib la dll; do
12256 if test -r "$ac_dir/libX11.$ac_extension"; then
12257 ac_x_libraries=$ac_dir
12263 rm -f core conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12265 fi # $ac_x_libraries = no
12267 case $ac_x_includes,$ac_x_libraries in #(
12268 no,* | *,no | *\'*)
12269 # Didn't find X, or a directory has "'" in its name.
12270 ac_cv_have_x="have_x=no";; #(
12272 # Record where we found X for the cache.
12273 ac_cv_have_x="have_x=yes\
12274 ac_x_includes='$ac_x_includes'\
12275 ac_x_libraries='$ac_x_libraries'"
12281 eval "$ac_cv_have_x"
12284 if test "$have_x" != yes; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12286 $as_echo "$have_x" >&6; }
12289 # If each of the values was on the command line, it overrides each guess.
12290 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12291 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12292 # Update the cache value to reflect the command line values.
12293 ac_cv_have_x="have_x=yes\
12294 ac_x_includes='$x_includes'\
12295 ac_x_libraries='$x_libraries'"
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12297 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12300 if test "$no_x" = yes; then
12301 # Not all programs may use this symbol, but it does not hurt to define it.
12303 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
12305 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12307 if test -n "$x_includes"; then
12308 X_CFLAGS="$X_CFLAGS -I$x_includes"
12311 # It would also be nice to do this for all -L options, not just this one.
12312 if test -n "$x_libraries"; then
12313 X_LIBS="$X_LIBS -L$x_libraries"
12314 # For Solaris; some versions of Sun CC require a space after -R and
12315 # others require no space. Words are not sufficient . . . .
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
12317 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
12318 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12319 ac_xsave_c_werror_flag=$ac_c_werror_flag
12320 ac_c_werror_flag=yes
12321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322 /* end confdefs.h. */
12332 if ac_fn_c_try_link "$LINENO"; then :
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12335 X_LIBS="$X_LIBS -R$x_libraries"
12337 LIBS="$ac_xsave_LIBS -R $x_libraries"
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12349 if ac_fn_c_try_link "$LINENO"; then :
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12351 $as_echo "yes" >&6; }
12352 X_LIBS="$X_LIBS -R $x_libraries"
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
12355 $as_echo "neither works" >&6; }
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12360 rm -f core conftest.err conftest.$ac_objext \
12361 conftest$ac_exeext conftest.$ac_ext
12362 ac_c_werror_flag=$ac_xsave_c_werror_flag
12363 LIBS=$ac_xsave_LIBS
12366 # Check for system-dependent libraries X programs must link with.
12367 # Do this before checking for the system-independent R6 libraries
12368 # (-lICE), since we may need -lsocket or whatever for X linking.
12370 if test "$ISC" = yes; then
12371 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12373 # Martyn Johnson says this is needed for Ultrix, if the X
12374 # libraries were built with DECnet support. And Karl Berry says
12375 # the Alpha needs dnet_stub (dnet does not exist).
12376 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12380 /* Override any GCC internal prototype to avoid an error.
12381 Use char because int might match the return type of a GCC
12382 builtin and then its argument prototype would still apply. */
12386 char XOpenDisplay ();
12390 return XOpenDisplay ();
12395 if ac_fn_c_try_link "$LINENO"; then :
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
12399 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
12400 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
12401 $as_echo_n "(cached) " >&6
12403 ac_check_lib_save_LIBS=$LIBS
12404 LIBS="-ldnet $LIBS"
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12418 return dnet_ntoa ();
12423 if ac_fn_c_try_link "$LINENO"; then :
12424 ac_cv_lib_dnet_dnet_ntoa=yes
12426 ac_cv_lib_dnet_dnet_ntoa=no
12428 rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12430 LIBS=$ac_check_lib_save_LIBS
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12433 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
12434 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
12435 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12438 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
12440 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
12441 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
12442 $as_echo_n "(cached) " >&6
12444 ac_check_lib_save_LIBS=$LIBS
12445 LIBS="-ldnet_stub $LIBS"
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h. */
12449 /* Override any GCC internal prototype to avoid an error.
12450 Use char because int might match the return type of a GCC
12451 builtin and then its argument prototype would still apply. */
12459 return dnet_ntoa ();
12464 if ac_fn_c_try_link "$LINENO"; then :
12465 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12467 ac_cv_lib_dnet_stub_dnet_ntoa=no
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471 LIBS=$ac_check_lib_save_LIBS
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12474 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12475 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
12476 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12481 rm -f core conftest.err conftest.$ac_objext \
12482 conftest$ac_exeext conftest.$ac_ext
12483 LIBS="$ac_xsave_LIBS"
12485 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12486 # to get the SysV transport functions.
12487 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12489 # The nsl library prevents programs from opening the X display
12490 # on Irix 5.2, according to T.E. Dickey.
12491 # The functions gethostbyname, getservbyname, and inet_addr are
12492 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12493 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12494 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
12498 if test $ac_cv_func_gethostbyname = no; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12500 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12501 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
12502 $as_echo_n "(cached) " >&6
12504 ac_check_lib_save_LIBS=$LIBS
12506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h. */
12509 /* Override any GCC internal prototype to avoid an error.
12510 Use char because int might match the return type of a GCC
12511 builtin and then its argument prototype would still apply. */
12515 char gethostbyname ();
12519 return gethostbyname ();
12524 if ac_fn_c_try_link "$LINENO"; then :
12525 ac_cv_lib_nsl_gethostbyname=yes
12527 ac_cv_lib_nsl_gethostbyname=no
12529 rm -f core conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12531 LIBS=$ac_check_lib_save_LIBS
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12534 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12535 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
12536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12539 if test $ac_cv_lib_nsl_gethostbyname = no; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
12541 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12542 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
12543 $as_echo_n "(cached) " >&6
12545 ac_check_lib_save_LIBS=$LIBS
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12550 /* Override any GCC internal prototype to avoid an error.
12551 Use char because int might match the return type of a GCC
12552 builtin and then its argument prototype would still apply. */
12556 char gethostbyname ();
12560 return gethostbyname ();
12565 if ac_fn_c_try_link "$LINENO"; then :
12566 ac_cv_lib_bsd_gethostbyname=yes
12568 ac_cv_lib_bsd_gethostbyname=no
12570 rm -f core conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12572 LIBS=$ac_check_lib_save_LIBS
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
12575 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12576 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
12577 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12583 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12584 # socket/setsockopt and other routines are undefined under SCO ODT
12585 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12586 # on later versions), says Simon Leinen: it contains gethostby*
12587 # variants that don't use the name server (or something). -lsocket
12588 # must be given before -lnsl if both are needed. We assume that
12589 # if connect needs -lnsl, so does gethostbyname.
12590 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
12591 if test "x$ac_cv_func_connect" = x""yes; then :
12595 if test $ac_cv_func_connect = no; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12597 $as_echo_n "checking for connect in -lsocket... " >&6; }
12598 if test "${ac_cv_lib_socket_connect+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
12601 ac_check_lib_save_LIBS=$LIBS
12602 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12621 if ac_fn_c_try_link "$LINENO"; then :
12622 ac_cv_lib_socket_connect=yes
12624 ac_cv_lib_socket_connect=no
12626 rm -f core conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12628 LIBS=$ac_check_lib_save_LIBS
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12631 $as_echo "$ac_cv_lib_socket_connect" >&6; }
12632 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
12633 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12638 # Guillermo Gomez says -lposix is necessary on A/UX.
12639 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
12640 if test "x$ac_cv_func_remove" = x""yes; then :
12644 if test $ac_cv_func_remove = no; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
12646 $as_echo_n "checking for remove in -lposix... " >&6; }
12647 if test "${ac_cv_lib_posix_remove+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12650 ac_check_lib_save_LIBS=$LIBS
12651 LIBS="-lposix $LIBS"
12652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12653 /* end confdefs.h. */
12655 /* Override any GCC internal prototype to avoid an error.
12656 Use char because int might match the return type of a GCC
12657 builtin and then its argument prototype would still apply. */
12670 if ac_fn_c_try_link "$LINENO"; then :
12671 ac_cv_lib_posix_remove=yes
12673 ac_cv_lib_posix_remove=no
12675 rm -f core conftest.err conftest.$ac_objext \
12676 conftest$ac_exeext conftest.$ac_ext
12677 LIBS=$ac_check_lib_save_LIBS
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
12680 $as_echo "$ac_cv_lib_posix_remove" >&6; }
12681 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
12682 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12687 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12688 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
12689 if test "x$ac_cv_func_shmat" = x""yes; then :
12693 if test $ac_cv_func_shmat = no; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
12695 $as_echo_n "checking for shmat in -lipc... " >&6; }
12696 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
12697 $as_echo_n "(cached) " >&6
12699 ac_check_lib_save_LIBS=$LIBS
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12704 /* Override any GCC internal prototype to avoid an error.
12705 Use char because int might match the return type of a GCC
12706 builtin and then its argument prototype would still apply. */
12719 if ac_fn_c_try_link "$LINENO"; then :
12720 ac_cv_lib_ipc_shmat=yes
12722 ac_cv_lib_ipc_shmat=no
12724 rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726 LIBS=$ac_check_lib_save_LIBS
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
12729 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
12730 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
12731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12737 # Check for libraries that X11R6 Xt/Xaw programs need.
12738 ac_save_LDFLAGS=$LDFLAGS
12739 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12740 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12741 # check for ICE first), but we must link in the order -lSM -lICE or
12742 # we get undefined symbols. So assume we have SM if we have ICE.
12743 # These have to be linked with before -lX11, unlike the other
12744 # libraries we check for below, so use a different variable.
12745 # John Interrante, Karl Berry
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
12747 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
12748 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12751 ac_check_lib_save_LIBS=$LIBS
12752 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12762 char IceConnectionNumber ();
12766 return IceConnectionNumber ();
12771 if ac_fn_c_try_link "$LINENO"; then :
12772 ac_cv_lib_ICE_IceConnectionNumber=yes
12774 ac_cv_lib_ICE_IceConnectionNumber=no
12776 rm -f core conftest.err conftest.$ac_objext \
12777 conftest$ac_exeext conftest.$ac_ext
12778 LIBS=$ac_check_lib_save_LIBS
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12781 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12782 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
12783 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12786 LDFLAGS=$ac_save_LDFLAGS
12790 conky_CFLAGS="$conky_CFLAGS $X_CFLAGS"
12791 conky_LIBS="$conky_LIBS $X_LIBS"
12792 conky_LDFLAGS="$conky_LDFLAGS $conky_LIBS $X_PRE_LIBS"
12793 if test "x$no_x" = "xyes"; then
12794 as_fn_error "Can't locate your X11 installation" "$LINENO" 5
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
12797 $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
12798 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12801 ac_check_lib_save_LIBS=$LIBS
12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12806 /* Override any GCC internal prototype to avoid an error.
12807 Use char because int might match the return type of a GCC
12808 builtin and then its argument prototype would still apply. */
12812 char XOpenDisplay ();
12816 return XOpenDisplay ();
12821 if ac_fn_c_try_link "$LINENO"; then :
12822 ac_cv_lib_X11_XOpenDisplay=yes
12824 ac_cv_lib_X11_XOpenDisplay=no
12826 rm -f core conftest.err conftest.$ac_objext \
12827 conftest$ac_exeext conftest.$ac_ext
12828 LIBS=$ac_check_lib_save_LIBS
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12831 $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
12832 if test "x$ac_cv_lib_X11_XOpenDisplay" = x""yes; then :
12833 cat >>confdefs.h <<_ACEOF
12834 #define HAVE_LIBX11 1
12840 as_fn_error "Could not find XOpenDisplay in -lX11" "$LINENO" 5
12845 $as_echo "#define X11 1" >>confdefs.h
12850 # Check whether --enable-argb was given.
12851 if test "${enable_argb+set}" = set; then :
12852 enableval=$enable_argb; want_argb="$enableval"
12858 if test x$want_argb = xyes; then
12859 if test "x$want_x11" != "xyes"; then
12863 $as_echo "#define USE_ARGB 1" >>confdefs.h
12869 # Check whether --enable-imlib2 was given.
12870 if test "${enable_imlib2+set}" = set; then :
12871 enableval=$enable_imlib2; want_imlib2="$enableval"
12876 # Check whether --enable-lua-imlib2 was given.
12877 if test "${enable_lua_imlib2+set}" = set; then :
12878 enableval=$enable_lua_imlib2; want_lua_imlib2="$enableval"
12884 # if lua-imlib2 is enabled, we must force imlib2
12885 if test x$want_lua_imlib2 = xyes; then
12889 if test x$want_imlib2 = xyes; then
12890 if test "x$want_x11" != "xyes"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Imlib2" >&5
12896 $as_echo_n "checking for Imlib2... " >&6; }
12898 if test -n "$PKG_CONFIG"; then
12899 if test -n "$Imlib2_CFLAGS"; then
12900 pkg_cv_Imlib2_CFLAGS="$Imlib2_CFLAGS"
12902 if test -n "$PKG_CONFIG" && \
12903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5
12904 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
12906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12907 test $ac_status = 0; }; then
12908 pkg_cv_Imlib2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null`
12916 if test -n "$PKG_CONFIG"; then
12917 if test -n "$Imlib2_LIBS"; then
12918 pkg_cv_Imlib2_LIBS="$Imlib2_LIBS"
12920 if test -n "$PKG_CONFIG" && \
12921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5
12922 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
12924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12925 test $ac_status = 0; }; then
12926 pkg_cv_Imlib2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null`
12937 if test $pkg_failed = yes; then
12939 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12940 _pkg_short_errors_supported=yes
12942 _pkg_short_errors_supported=no
12944 if test $_pkg_short_errors_supported = yes; then
12945 Imlib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlib2"`
12947 Imlib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlib2"`
12949 # Put the nasty error message in config.log where it belongs
12950 echo "$Imlib2_PKG_ERRORS" >&5
12952 as_fn_error "Package requirements (imlib2) were not met:
12956 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12957 installed software in a non-standard prefix.
12959 Alternatively, you may set the environment variables Imlib2_CFLAGS
12960 and Imlib2_LIBS to avoid the need to call pkg-config.
12961 See the pkg-config man page for more details.
12963 elif test $pkg_failed = untried; then
12964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12966 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
12967 is in your PATH or set the PKG_CONFIG environment variable to the full
12968 path to pkg-config.
12970 Alternatively, you may set the environment variables Imlib2_CFLAGS
12971 and Imlib2_LIBS to avoid the need to call pkg-config.
12972 See the pkg-config man page for more details.
12974 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12975 See \`config.log' for more details." "$LINENO" 5; }
12977 Imlib2_CFLAGS=$pkg_cv_Imlib2_CFLAGS
12978 Imlib2_LIBS=$pkg_cv_Imlib2_LIBS
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12980 $as_echo "yes" >&6; }
12983 conky_CFLAGS="$conky_CFLAGS $Imlib2_CFLAGS"
12984 conky_LIBS="$conky_LIBS $Imlib2_LIBS"
12986 $as_echo "#define IMLIB2 1" >>confdefs.h
12990 if test x$want_imlib2 = xyes; then
12992 BUILD_IMLIB2_FALSE='#'
12994 BUILD_IMLIB2_TRUE='#'
12995 BUILD_IMLIB2_FALSE=
13000 # Check whether --enable-lua was given.
13001 if test "${enable_lua+set}" = set; then :
13002 enableval=$enable_lua; want_lua="$enableval"
13007 # Check whether --enable-lua-cairo was given.
13008 if test "${enable_lua_cairo+set}" = set; then :
13009 enableval=$enable_lua_cairo; want_lua_cairo="$enableval"
13015 if test x$want_lua_cairo = xyes -o x$want_lua_imlib2 = xyes; then
13020 if test x$want_lua = xyes; then
13022 BUILD_LUA_FALSE='#'
13028 if test x$want_lua = xyes; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
13032 $as_echo_n "checking for LUA... " >&6; }
13034 if test -n "$PKG_CONFIG"; then
13035 if test -n "$LUA_CFLAGS"; then
13036 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
13038 if test -n "$PKG_CONFIG" && \
13039 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13040 ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13043 test $ac_status = 0; }; then
13044 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
13052 if test -n "$PKG_CONFIG"; then
13053 if test -n "$LUA_LIBS"; then
13054 pkg_cv_LUA_LIBS="$LUA_LIBS"
13056 if test -n "$PKG_CONFIG" && \
13057 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13058 ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13061 test $ac_status = 0; }; then
13062 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
13073 if test $pkg_failed = yes; then
13075 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13076 _pkg_short_errors_supported=yes
13078 _pkg_short_errors_supported=no
13080 if test $_pkg_short_errors_supported = yes; then
13081 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua >= 5.1"`
13083 LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua >= 5.1"`
13085 # Put the nasty error message in config.log where it belongs
13086 echo "$LUA_PKG_ERRORS" >&5
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13094 $as_echo_n "checking for LUA51... " >&6; }
13096 if test -n "$PKG_CONFIG"; then
13097 if test -n "$LUA51_CFLAGS"; then
13098 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13100 if test -n "$PKG_CONFIG" && \
13101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
13102 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
13104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13105 test $ac_status = 0; }; then
13106 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
13114 if test -n "$PKG_CONFIG"; then
13115 if test -n "$LUA51_LIBS"; then
13116 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13118 if test -n "$PKG_CONFIG" && \
13119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
13120 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
13122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13123 test $ac_status = 0; }; then
13124 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
13135 if test $pkg_failed = yes; then
13137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13138 _pkg_short_errors_supported=yes
13140 _pkg_short_errors_supported=no
13142 if test $_pkg_short_errors_supported = yes; then
13143 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13145 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13147 # Put the nasty error message in config.log where it belongs
13148 echo "$LUA51_PKG_ERRORS" >&5
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $as_echo "no" >&6; }
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13156 $as_echo_n "checking for LUA51... " >&6; }
13158 if test -n "$PKG_CONFIG"; then
13159 if test -n "$LUA51_CFLAGS"; then
13160 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13162 if test -n "$PKG_CONFIG" && \
13163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13164 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13167 test $ac_status = 0; }; then
13168 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
13176 if test -n "$PKG_CONFIG"; then
13177 if test -n "$LUA51_LIBS"; then
13178 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13180 if test -n "$PKG_CONFIG" && \
13181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13182 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13185 test $ac_status = 0; }; then
13186 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
13197 if test $pkg_failed = yes; then
13199 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13200 _pkg_short_errors_supported=yes
13202 _pkg_short_errors_supported=no
13204 if test $_pkg_short_errors_supported = yes; then
13205 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13207 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13209 # Put the nasty error message in config.log where it belongs
13210 echo "$LUA51_PKG_ERRORS" >&5
13212 as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13216 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13217 installed software in a non-standard prefix.
13219 Alternatively, you may set the environment variables LUA51_CFLAGS
13220 and LUA51_LIBS to avoid the need to call pkg-config.
13221 See the pkg-config man page for more details.
13223 elif test $pkg_failed = untried; then
13224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13226 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
13227 is in your PATH or set the PKG_CONFIG environment variable to the full
13228 path to pkg-config.
13230 Alternatively, you may set the environment variables LUA51_CFLAGS
13231 and LUA51_LIBS to avoid the need to call pkg-config.
13232 See the pkg-config man page for more details.
13234 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13235 See \`config.log' for more details." "$LINENO" 5; }
13237 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13238 LUA51_LIBS=$pkg_cv_LUA51_LIBS
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240 $as_echo "yes" >&6; }
13244 elif test $pkg_failed = untried; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13249 $as_echo_n "checking for LUA51... " >&6; }
13251 if test -n "$PKG_CONFIG"; then
13252 if test -n "$LUA51_CFLAGS"; then
13253 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13255 if test -n "$PKG_CONFIG" && \
13256 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13257 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13260 test $ac_status = 0; }; then
13261 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
13269 if test -n "$PKG_CONFIG"; then
13270 if test -n "$LUA51_LIBS"; then
13271 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13273 if test -n "$PKG_CONFIG" && \
13274 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13275 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13278 test $ac_status = 0; }; then
13279 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
13290 if test $pkg_failed = yes; then
13292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13293 _pkg_short_errors_supported=yes
13295 _pkg_short_errors_supported=no
13297 if test $_pkg_short_errors_supported = yes; then
13298 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13300 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13302 # Put the nasty error message in config.log where it belongs
13303 echo "$LUA51_PKG_ERRORS" >&5
13305 as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13309 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13310 installed software in a non-standard prefix.
13312 Alternatively, you may set the environment variables LUA51_CFLAGS
13313 and LUA51_LIBS to avoid the need to call pkg-config.
13314 See the pkg-config man page for more details.
13316 elif test $pkg_failed = untried; then
13317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13319 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
13320 is in your PATH or set the PKG_CONFIG environment variable to the full
13321 path to pkg-config.
13323 Alternatively, you may set the environment variables LUA51_CFLAGS
13324 and LUA51_LIBS to avoid the need to call pkg-config.
13325 See the pkg-config man page for more details.
13327 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13328 See \`config.log' for more details." "$LINENO" 5; }
13330 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13331 LUA51_LIBS=$pkg_cv_LUA51_LIBS
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13333 $as_echo "yes" >&6; }
13338 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13339 LUA51_LIBS=$pkg_cv_LUA51_LIBS
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13341 $as_echo "yes" >&6; }
13345 elif test $pkg_failed = untried; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13350 $as_echo_n "checking for LUA51... " >&6; }
13352 if test -n "$PKG_CONFIG"; then
13353 if test -n "$LUA51_CFLAGS"; then
13354 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13356 if test -n "$PKG_CONFIG" && \
13357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
13358 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
13360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13361 test $ac_status = 0; }; then
13362 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
13370 if test -n "$PKG_CONFIG"; then
13371 if test -n "$LUA51_LIBS"; then
13372 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13374 if test -n "$PKG_CONFIG" && \
13375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
13376 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
13378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13379 test $ac_status = 0; }; then
13380 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
13391 if test $pkg_failed = yes; then
13393 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13394 _pkg_short_errors_supported=yes
13396 _pkg_short_errors_supported=no
13398 if test $_pkg_short_errors_supported = yes; then
13399 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13401 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13403 # Put the nasty error message in config.log where it belongs
13404 echo "$LUA51_PKG_ERRORS" >&5
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13412 $as_echo_n "checking for LUA51... " >&6; }
13414 if test -n "$PKG_CONFIG"; then
13415 if test -n "$LUA51_CFLAGS"; then
13416 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13418 if test -n "$PKG_CONFIG" && \
13419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13420 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13423 test $ac_status = 0; }; then
13424 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
13432 if test -n "$PKG_CONFIG"; then
13433 if test -n "$LUA51_LIBS"; then
13434 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13436 if test -n "$PKG_CONFIG" && \
13437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13438 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13441 test $ac_status = 0; }; then
13442 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
13453 if test $pkg_failed = yes; then
13455 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13456 _pkg_short_errors_supported=yes
13458 _pkg_short_errors_supported=no
13460 if test $_pkg_short_errors_supported = yes; then
13461 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13463 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13465 # Put the nasty error message in config.log where it belongs
13466 echo "$LUA51_PKG_ERRORS" >&5
13468 as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13472 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13473 installed software in a non-standard prefix.
13475 Alternatively, you may set the environment variables LUA51_CFLAGS
13476 and LUA51_LIBS to avoid the need to call pkg-config.
13477 See the pkg-config man page for more details.
13479 elif test $pkg_failed = untried; then
13480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13482 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
13483 is in your PATH or set the PKG_CONFIG environment variable to the full
13484 path to pkg-config.
13486 Alternatively, you may set the environment variables LUA51_CFLAGS
13487 and LUA51_LIBS to avoid the need to call pkg-config.
13488 See the pkg-config man page for more details.
13490 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13491 See \`config.log' for more details." "$LINENO" 5; }
13493 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13494 LUA51_LIBS=$pkg_cv_LUA51_LIBS
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13496 $as_echo "yes" >&6; }
13500 elif test $pkg_failed = untried; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13505 $as_echo_n "checking for LUA51... " >&6; }
13507 if test -n "$PKG_CONFIG"; then
13508 if test -n "$LUA51_CFLAGS"; then
13509 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13511 if test -n "$PKG_CONFIG" && \
13512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13513 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13516 test $ac_status = 0; }; then
13517 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
13525 if test -n "$PKG_CONFIG"; then
13526 if test -n "$LUA51_LIBS"; then
13527 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13529 if test -n "$PKG_CONFIG" && \
13530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13531 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13534 test $ac_status = 0; }; then
13535 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
13546 if test $pkg_failed = yes; then
13548 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13549 _pkg_short_errors_supported=yes
13551 _pkg_short_errors_supported=no
13553 if test $_pkg_short_errors_supported = yes; then
13554 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13556 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13558 # Put the nasty error message in config.log where it belongs
13559 echo "$LUA51_PKG_ERRORS" >&5
13561 as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13565 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13566 installed software in a non-standard prefix.
13568 Alternatively, you may set the environment variables LUA51_CFLAGS
13569 and LUA51_LIBS to avoid the need to call pkg-config.
13570 See the pkg-config man page for more details.
13572 elif test $pkg_failed = untried; then
13573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13575 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
13576 is in your PATH or set the PKG_CONFIG environment variable to the full
13577 path to pkg-config.
13579 Alternatively, you may set the environment variables LUA51_CFLAGS
13580 and LUA51_LIBS to avoid the need to call pkg-config.
13581 See the pkg-config man page for more details.
13583 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13584 See \`config.log' for more details." "$LINENO" 5; }
13586 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13587 LUA51_LIBS=$pkg_cv_LUA51_LIBS
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13589 $as_echo "yes" >&6; }
13594 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13595 LUA51_LIBS=$pkg_cv_LUA51_LIBS
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13597 $as_echo "yes" >&6; }
13602 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
13603 LUA_LIBS=$pkg_cv_LUA_LIBS
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13605 $as_echo "yes" >&6; }
13608 conky_CFLAGS="$conky_CFLAGS $LUA_CFLAGS $LUA51_CFLAGS"
13609 conky_LIBS="$conky_LIBS $LUA_LIBS $LUA51_LIBS"
13611 if test x$need_tolua = xyes; then
13613 $as_echo "#define LUA_EXTRAS 1" >>confdefs.h
13615 if test "x$want_x11" != "xyes"; then
13618 if test x$want_lua_cairo = xyes; then
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
13622 $as_echo_n "checking for cairo... " >&6; }
13624 if test -n "$PKG_CONFIG"; then
13625 if test -n "$cairo_CFLAGS"; then
13626 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
13628 if test -n "$PKG_CONFIG" && \
13629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
13630 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
13632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13633 test $ac_status = 0; }; then
13634 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
13642 if test -n "$PKG_CONFIG"; then
13643 if test -n "$cairo_LIBS"; then
13644 pkg_cv_cairo_LIBS="$cairo_LIBS"
13646 if test -n "$PKG_CONFIG" && \
13647 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
13648 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
13650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13651 test $ac_status = 0; }; then
13652 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
13663 if test $pkg_failed = yes; then
13665 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13666 _pkg_short_errors_supported=yes
13668 _pkg_short_errors_supported=no
13670 if test $_pkg_short_errors_supported = yes; then
13671 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
13673 cairo_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
13675 # Put the nasty error message in config.log where it belongs
13676 echo "$cairo_PKG_ERRORS" >&5
13678 as_fn_error "Package requirements (cairo) were not met:
13682 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13683 installed software in a non-standard prefix.
13685 Alternatively, you may set the environment variables cairo_CFLAGS
13686 and cairo_LIBS to avoid the need to call pkg-config.
13687 See the pkg-config man page for more details.
13689 elif test $pkg_failed = untried; then
13690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13692 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
13693 is in your PATH or set the PKG_CONFIG environment variable to the full
13694 path to pkg-config.
13696 Alternatively, you may set the environment variables cairo_CFLAGS
13697 and cairo_LIBS to avoid the need to call pkg-config.
13698 See the pkg-config man page for more details.
13700 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13701 See \`config.log' for more details." "$LINENO" 5; }
13703 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
13704 cairo_LIBS=$pkg_cv_cairo_LIBS
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13706 $as_echo "yes" >&6; }
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_xlib" >&5
13712 $as_echo_n "checking for cairo_xlib... " >&6; }
13714 if test -n "$PKG_CONFIG"; then
13715 if test -n "$cairo_xlib_CFLAGS"; then
13716 pkg_cv_cairo_xlib_CFLAGS="$cairo_xlib_CFLAGS"
13718 if test -n "$PKG_CONFIG" && \
13719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-xlib\""; } >&5
13720 ($PKG_CONFIG --exists --print-errors "cairo-xlib") 2>&5
13722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13723 test $ac_status = 0; }; then
13724 pkg_cv_cairo_xlib_CFLAGS=`$PKG_CONFIG --cflags "cairo-xlib" 2>/dev/null`
13732 if test -n "$PKG_CONFIG"; then
13733 if test -n "$cairo_xlib_LIBS"; then
13734 pkg_cv_cairo_xlib_LIBS="$cairo_xlib_LIBS"
13736 if test -n "$PKG_CONFIG" && \
13737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-xlib\""; } >&5
13738 ($PKG_CONFIG --exists --print-errors "cairo-xlib") 2>&5
13740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13741 test $ac_status = 0; }; then
13742 pkg_cv_cairo_xlib_LIBS=`$PKG_CONFIG --libs "cairo-xlib" 2>/dev/null`
13753 if test $pkg_failed = yes; then
13755 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13756 _pkg_short_errors_supported=yes
13758 _pkg_short_errors_supported=no
13760 if test $_pkg_short_errors_supported = yes; then
13761 cairo_xlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-xlib"`
13763 cairo_xlib_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-xlib"`
13765 # Put the nasty error message in config.log where it belongs
13766 echo "$cairo_xlib_PKG_ERRORS" >&5
13768 as_fn_error "Package requirements (cairo-xlib) were not met:
13770 $cairo_xlib_PKG_ERRORS
13772 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13773 installed software in a non-standard prefix.
13775 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
13776 and cairo_xlib_LIBS to avoid the need to call pkg-config.
13777 See the pkg-config man page for more details.
13779 elif test $pkg_failed = untried; then
13780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13782 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
13783 is in your PATH or set the PKG_CONFIG environment variable to the full
13784 path to pkg-config.
13786 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
13787 and cairo_xlib_LIBS to avoid the need to call pkg-config.
13788 See the pkg-config man page for more details.
13790 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13791 See \`config.log' for more details." "$LINENO" 5; }
13793 cairo_xlib_CFLAGS=$pkg_cv_cairo_xlib_CFLAGS
13794 cairo_xlib_LIBS=$pkg_cv_cairo_xlib_LIBS
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13796 $as_echo "yes" >&6; }
13800 $as_echo "#define HAVE_LUA_CAIRO 1" >>confdefs.h
13802 libcairo_CFLAGS="$libcairo_CFLAGS $cairo_CFLAGS $cairo_xlib_CFLAGS"
13803 libcairo_LIBS="$libcairo_LIBS $cairo_LIBS $cairo_xlib_LIBS"
13805 if test x$want_imlib2 = xyes; then
13807 $as_echo "#define HAVE_LUA_IMLIB2 1" >>confdefs.h
13811 for ac_prog in tolua++ tolua++5.1 tolua++-5.1
13813 # Extract the first word of "$ac_prog", so it can be a program name with args.
13814 set dummy $ac_prog; ac_word=$2
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816 $as_echo_n "checking for $ac_word... " >&6; }
13817 if test "${ac_cv_prog_toluapp+set}" = set; then :
13818 $as_echo_n "(cached) " >&6
13820 if test -n "$toluapp"; then
13821 ac_cv_prog_toluapp="$toluapp" # Let the user override the test.
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
13829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13830 ac_cv_prog_toluapp="$ac_prog"
13831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13840 toluapp=$ac_cv_prog_toluapp
13841 if test -n "$toluapp"; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toluapp" >&5
13843 $as_echo "$toluapp" >&6; }
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13850 test -n "$toluapp" && break
13852 test -n "$toluapp" || toluapp="no"
13854 if test x$toluapp = xno; then
13855 as_fn_error "tolua++, tolua++5.1, or tolua++-5.1 is required for Lua extras." "$LINENO" 5
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tolua_error" >&5
13858 $as_echo_n "checking for library containing tolua_error... " >&6; }
13859 if test "${ac_cv_search_tolua_error+set}" = set; then :
13860 $as_echo_n "(cached) " >&6
13862 ac_func_search_save_LIBS=$LIBS
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13866 /* Override any GCC internal prototype to avoid an error.
13867 Use char because int might match the return type of a GCC
13868 builtin and then its argument prototype would still apply. */
13872 char tolua_error ();
13876 return tolua_error ();
13881 for ac_lib in '' tolua++-5.1 tolua++ tolua++5.1; do
13882 if test -z "$ac_lib"; then
13883 ac_res="none required"
13886 LIBS="-l$ac_lib $LUA_LIBS $LUA51_LIBS $ac_func_search_save_LIBS"
13888 if ac_fn_c_try_link "$LINENO"; then :
13889 ac_cv_search_tolua_error=$ac_res
13891 rm -f core conftest.err conftest.$ac_objext \
13893 if test "${ac_cv_search_tolua_error+set}" = set; then :
13897 if test "${ac_cv_search_tolua_error+set}" = set; then :
13900 ac_cv_search_tolua_error=no
13902 rm conftest.$ac_ext
13903 LIBS=$ac_func_search_save_LIBS
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tolua_error" >&5
13906 $as_echo "$ac_cv_search_tolua_error" >&6; }
13907 ac_res=$ac_cv_search_tolua_error
13908 if test "$ac_res" != no; then :
13909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13911 tolua_LIBS="${LIBS}"
13913 tolua_CFLAGS="${CFLAGS}"
13917 as_fn_error "tolua_error not found" "$LINENO" 5
13921 conky_LIBS="$conky_LIBS $tolua_LIBS"
13922 tolua_CFLAGS="$tolua_CFLAGS $LUA_CFLAGS $LUA51_CFLAGS"
13923 tolua_LIBS="$tolua_LIBS $LUA_LIBS $LUA51_LIBS"
13926 $as_echo "#define HAVE_LUA 1" >>confdefs.h
13929 if test x$want_lua_cairo = xyes; then
13930 BUILD_LUA_CAIRO_TRUE=
13931 BUILD_LUA_CAIRO_FALSE='#'
13933 BUILD_LUA_CAIRO_TRUE='#'
13934 BUILD_LUA_CAIRO_FALSE=
13937 if test x$want_lua_imlib2 = xyes; then
13938 BUILD_LUA_IMLIB2_TRUE=
13939 BUILD_LUA_IMLIB2_FALSE='#'
13941 BUILD_LUA_IMLIB2_TRUE='#'
13942 BUILD_LUA_IMLIB2_FALSE=
13947 # Check whether --enable-wlan was given.
13948 if test "${enable_wlan+set}" = set; then :
13949 enableval=$enable_wlan; want_wlan="$enableval"
13955 if test x$want_wlan = xyes; then
13957 BUILD_WLAN_FALSE='#'
13959 BUILD_WLAN_TRUE='#'
13963 if test x$want_wlan = xyes; then
13964 for ac_header in iwlib.h
13966 ac_fn_c_check_header_mongrel "$LINENO" "iwlib.h" "ac_cv_header_iwlib_h" "$ac_includes_default"
13967 if test "x$ac_cv_header_iwlib_h" = x""yes; then :
13968 cat >>confdefs.h <<_ACEOF
13969 #define HAVE_IWLIB_H 1
13973 as_fn_error "iwlib.h header not found" "$LINENO" 5
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iw_sockets_open in -liw" >&5
13979 $as_echo_n "checking for iw_sockets_open in -liw... " >&6; }
13980 if test "${ac_cv_lib_iw_iw_sockets_open+set}" = set; then :
13981 $as_echo_n "(cached) " >&6
13983 ac_check_lib_save_LIBS=$LIBS
13984 LIBS="-liw $conky_LIBS $LIBS"
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13988 /* Override any GCC internal prototype to avoid an error.
13989 Use char because int might match the return type of a GCC
13990 builtin and then its argument prototype would still apply. */
13994 char iw_sockets_open ();
13998 return iw_sockets_open ();
14003 if ac_fn_c_try_link "$LINENO"; then :
14004 ac_cv_lib_iw_iw_sockets_open=yes
14006 ac_cv_lib_iw_iw_sockets_open=no
14008 rm -f core conftest.err conftest.$ac_objext \
14009 conftest$ac_exeext conftest.$ac_ext
14010 LIBS=$ac_check_lib_save_LIBS
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iw_iw_sockets_open" >&5
14013 $as_echo "$ac_cv_lib_iw_iw_sockets_open" >&6; }
14014 if test "x$ac_cv_lib_iw_iw_sockets_open" = x""yes; then :
14015 conky_LIBS="-liw $conky_LIBS"
14017 as_fn_error "iw_sockets_open not found" "$LINENO" 5
14021 $as_echo "#define HAVE_IWLIB 1" >>confdefs.h
14026 # Check whether --enable-portmon was given.
14027 if test "${enable_portmon+set}" = set; then :
14028 enableval=$enable_portmon; want_portmon="$enableval"
14034 if test x"$want_portmon" = xyes; then
14035 if test x"$uname" != xLinux; then
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: port monitors not supported on $uname... disabling" >&5
14037 $as_echo "$as_me: port monitors not supported on $uname... disabling" >&6;}
14038 want_portmon="not supported on $uname"
14040 for ac_func in getnameinfo
14042 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
14043 if test "x$ac_cv_func_getnameinfo" = x""yes; then :
14044 cat >>confdefs.h <<_ACEOF
14045 #define HAVE_GETNAMEINFO 1
14049 as_fn_error "getnameinfo function not found" "$LINENO" 5
14053 for ac_header in netdb.h netinet/in.h netinet/tcp.h sys/socket.h arpa/inet.h
14055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14056 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14057 eval as_val=\$$as_ac_Header
14058 if test "x$as_val" = x""yes; then :
14059 cat >>confdefs.h <<_ACEOF
14060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14064 PORT_MONITORS_MISSING=yes
14069 if test x"$PORT_MONITORS_MISSING" = xyes; then
14070 as_fn_error "missing a needed network header for port monitoring" "$LINENO" 5
14074 $as_echo "#define TCP_PORT_MONITOR 1" >>confdefs.h
14078 if test x"$want_portmon" = xyes; then
14079 BUILD_PORT_MONITORS_TRUE=
14080 BUILD_PORT_MONITORS_FALSE='#'
14082 BUILD_PORT_MONITORS_TRUE='#'
14083 BUILD_PORT_MONITORS_FALSE=
14091 if test "X$prefix" = "XNONE"; then
14092 acl_final_prefix="$ac_default_prefix"
14094 acl_final_prefix="$prefix"
14096 if test "X$exec_prefix" = "XNONE"; then
14097 acl_final_exec_prefix='${prefix}'
14099 acl_final_exec_prefix="$exec_prefix"
14101 acl_save_prefix="$prefix"
14102 prefix="$acl_final_prefix"
14103 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14104 prefix="$acl_save_prefix"
14107 # Check whether --with-gnu-ld was given.
14108 if test "${with_gnu_ld+set}" = set; then :
14109 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14114 # Prepare PATH_SEPARATOR.
14115 # The user is always right.
14116 if test "${PATH_SEPARATOR+set}" != set; then
14117 echo "#! /bin/sh" >conf$$.sh
14118 echo "exit 0" >>conf$$.sh
14120 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14128 if test "$GCC" = yes; then
14129 # Check if gcc -print-prog-name=ld gives a path.
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14131 $as_echo_n "checking for ld used by GCC... " >&6; }
14134 # gcc leaves a trailing carriage return which upsets mingw
14135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14140 # Accept absolute paths.
14141 [\\/]* | [A-Za-z]:[\\/]*)
14142 re_direlt='/[^/][^/]*/\.\./'
14143 # Canonicalize the path of ld
14144 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14145 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14146 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14148 test -z "$LD" && LD="$ac_prog"
14151 # If it fails, then pretend we aren't using GCC.
14155 # If it is relative, then search for the first ld in PATH.
14156 with_gnu_ld=unknown
14159 elif test "$with_gnu_ld" = yes; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14161 $as_echo_n "checking for GNU ld... " >&6; }
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14164 $as_echo_n "checking for non-GNU ld... " >&6; }
14166 if test "${acl_cv_path_LD+set}" = set; then :
14167 $as_echo_n "(cached) " >&6
14169 if test -z "$LD"; then
14170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14171 for ac_dir in $PATH; do
14172 test -z "$ac_dir" && ac_dir=.
14173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14174 acl_cv_path_LD="$ac_dir/$ac_prog"
14175 # Check to see if the program is GNU ld. I'd rather use --version,
14176 # but apparently some GNU ld's only accept -v.
14177 # Break only if it was the GNU/non-GNU ld that we prefer.
14178 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14179 *GNU* | *'with BFD'*)
14180 test "$with_gnu_ld" != no && break ;;
14182 test "$with_gnu_ld" != yes && break ;;
14188 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14192 LD="$acl_cv_path_LD"
14193 if test -n "$LD"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14195 $as_echo "$LD" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 $as_echo "no" >&6; }
14200 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14202 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14203 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14204 $as_echo_n "(cached) " >&6
14206 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14207 case `$LD -v 2>&1 </dev/null` in
14208 *GNU* | *'with BFD'*)
14209 acl_cv_prog_gnu_ld=yes ;;
14211 acl_cv_prog_gnu_ld=no ;;
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14215 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14216 with_gnu_ld=$acl_cv_prog_gnu_ld
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14222 $as_echo_n "checking for shared library run path origin... " >&6; }
14223 if test "${acl_cv_rpath+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
14227 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14228 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14230 rm -f ./conftest.sh
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14235 $as_echo "$acl_cv_rpath" >&6; }
14237 acl_libext="$acl_cv_libext"
14238 acl_shlibext="$acl_cv_shlibext"
14239 acl_libname_spec="$acl_cv_libname_spec"
14240 acl_library_names_spec="$acl_cv_library_names_spec"
14241 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14242 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14243 acl_hardcode_direct="$acl_cv_hardcode_direct"
14244 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14245 # Check whether --enable-rpath was given.
14246 if test "${enable_rpath+set}" = set; then :
14247 enableval=$enable_rpath; :
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14260 $as_echo_n "checking for 64-bit host... " >&6; }
14261 if test "${gl_cv_solaris_64bit+set}" = set; then :
14262 $as_echo_n "(cached) " >&6
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14273 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14274 gl_cv_solaris_64bit=yes
14276 gl_cv_solaris_64bit=no
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14283 $as_echo "$gl_cv_solaris_64bit" >&6; }
14284 if test $gl_cv_solaris_64bit = yes; then
14285 acl_libdirstem=lib/64
14286 case "$host_cpu" in
14287 sparc*) acl_libdirstem2=lib/sparcv9 ;;
14288 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14293 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14294 if test -n "$searchpath"; then
14295 acl_save_IFS="${IFS= }"; IFS=":"
14296 for searchdir in $searchpath; do
14297 if test -d "$searchdir"; then
14298 case "$searchdir" in
14299 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14301 # Better ignore directories of this form. They are misleading.
14303 *) searchdir=`cd "$searchdir" && pwd`
14304 case "$searchdir" in
14305 */lib64 ) acl_libdirstem=lib64 ;;
14310 IFS="$acl_save_IFS"
14314 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14329 acl_save_prefix="$prefix"
14330 prefix="$acl_final_prefix"
14331 acl_save_exec_prefix="$exec_prefix"
14332 exec_prefix="$acl_final_exec_prefix"
14334 eval additional_includedir=\"$includedir\"
14335 eval additional_libdir=\"$libdir\"
14337 exec_prefix="$acl_save_exec_prefix"
14338 prefix="$acl_save_prefix"
14341 # Check whether --with-libiconv-prefix was given.
14342 if test "${with_libiconv_prefix+set}" = set; then :
14343 withval=$with_libiconv_prefix;
14344 if test "X$withval" = "Xno"; then
14347 if test "X$withval" = "X"; then
14349 acl_save_prefix="$prefix"
14350 prefix="$acl_final_prefix"
14351 acl_save_exec_prefix="$exec_prefix"
14352 exec_prefix="$acl_final_exec_prefix"
14354 eval additional_includedir=\"$includedir\"
14355 eval additional_libdir=\"$libdir\"
14357 exec_prefix="$acl_save_exec_prefix"
14358 prefix="$acl_save_prefix"
14361 additional_includedir="$withval/include"
14362 additional_libdir="$withval/$acl_libdirstem"
14363 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14364 && ! test -d "$withval/$acl_libdirstem"; then
14365 additional_libdir="$withval/$acl_libdirstem2"
14379 names_already_handled=
14380 names_next_round='iconv '
14381 while test -n "$names_next_round"; do
14382 names_this_round="$names_next_round"
14384 for name in $names_this_round; do
14386 for n in $names_already_handled; do
14387 if test "$n" = "$name"; then
14388 already_handled=yes
14392 if test -z "$already_handled"; then
14393 names_already_handled="$names_already_handled $name"
14394 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14395 eval value=\"\$HAVE_LIB$uppername\"
14396 if test -n "$value"; then
14397 if test "$value" = yes; then
14398 eval value=\"\$LIB$uppername\"
14399 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14400 eval value=\"\$LTLIB$uppername\"
14401 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14410 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14411 if test -n "$acl_shlibext"; then
14412 shrext=".$acl_shlibext" # typically: shrext=.so
14416 if test $use_additional = yes; then
14417 dir="$additional_libdir"
14418 if test -n "$acl_shlibext"; then
14419 if test -f "$dir/$libname$shrext"; then
14421 found_so="$dir/$libname$shrext"
14423 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14424 ver=`(cd "$dir" && \
14425 for f in "$libname$shrext".*; do echo "$f"; done \
14426 | sed -e "s,^$libname$shrext\\\\.,," \
14427 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14428 | sed 1q ) 2>/dev/null`
14429 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14431 found_so="$dir/$libname$shrext.$ver"
14434 eval library_names=\"$acl_library_names_spec\"
14435 for f in $library_names; do
14436 if test -f "$dir/$f"; then
14445 if test "X$found_dir" = "X"; then
14446 if test -f "$dir/$libname.$acl_libext"; then
14448 found_a="$dir/$libname.$acl_libext"
14451 if test "X$found_dir" != "X"; then
14452 if test -f "$dir/$libname.la"; then
14453 found_la="$dir/$libname.la"
14457 if test "X$found_dir" = "X"; then
14458 for x in $LDFLAGS $LTLIBICONV; do
14460 acl_save_prefix="$prefix"
14461 prefix="$acl_final_prefix"
14462 acl_save_exec_prefix="$exec_prefix"
14463 exec_prefix="$acl_final_exec_prefix"
14465 exec_prefix="$acl_save_exec_prefix"
14466 prefix="$acl_save_prefix"
14470 dir=`echo "X$x" | sed -e 's/^X-L//'`
14471 if test -n "$acl_shlibext"; then
14472 if test -f "$dir/$libname$shrext"; then
14474 found_so="$dir/$libname$shrext"
14476 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14477 ver=`(cd "$dir" && \
14478 for f in "$libname$shrext".*; do echo "$f"; done \
14479 | sed -e "s,^$libname$shrext\\\\.,," \
14480 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14481 | sed 1q ) 2>/dev/null`
14482 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14484 found_so="$dir/$libname$shrext.$ver"
14487 eval library_names=\"$acl_library_names_spec\"
14488 for f in $library_names; do
14489 if test -f "$dir/$f"; then
14498 if test "X$found_dir" = "X"; then
14499 if test -f "$dir/$libname.$acl_libext"; then
14501 found_a="$dir/$libname.$acl_libext"
14504 if test "X$found_dir" != "X"; then
14505 if test -f "$dir/$libname.la"; then
14506 found_la="$dir/$libname.la"
14511 if test "X$found_dir" != "X"; then
14516 if test "X$found_dir" != "X"; then
14517 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14518 if test "X$found_so" != "X"; then
14519 if test "$enable_rpath" = no \
14520 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14521 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14522 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14525 for x in $ltrpathdirs; do
14526 if test "X$x" = "X$found_dir"; then
14531 if test -z "$haveit"; then
14532 ltrpathdirs="$ltrpathdirs $found_dir"
14534 if test "$acl_hardcode_direct" = yes; then
14535 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14537 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14538 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14540 for x in $rpathdirs; do
14541 if test "X$x" = "X$found_dir"; then
14546 if test -z "$haveit"; then
14547 rpathdirs="$rpathdirs $found_dir"
14551 for x in $LDFLAGS $LIBICONV; do
14553 acl_save_prefix="$prefix"
14554 prefix="$acl_final_prefix"
14555 acl_save_exec_prefix="$exec_prefix"
14556 exec_prefix="$acl_final_exec_prefix"
14558 exec_prefix="$acl_save_exec_prefix"
14559 prefix="$acl_save_prefix"
14561 if test "X$x" = "X-L$found_dir"; then
14566 if test -z "$haveit"; then
14567 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14569 if test "$acl_hardcode_minus_L" != no; then
14570 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14572 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14578 if test "X$found_a" != "X"; then
14579 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14581 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14584 additional_includedir=
14585 case "$found_dir" in
14586 */$acl_libdirstem | */$acl_libdirstem/)
14587 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14588 if test "$name" = 'iconv'; then
14589 LIBICONV_PREFIX="$basedir"
14591 additional_includedir="$basedir/include"
14593 */$acl_libdirstem2 | */$acl_libdirstem2/)
14594 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14595 if test "$name" = 'iconv'; then
14596 LIBICONV_PREFIX="$basedir"
14598 additional_includedir="$basedir/include"
14601 if test "X$additional_includedir" != "X"; then
14602 if test "X$additional_includedir" != "X/usr/include"; then
14604 if test "X$additional_includedir" = "X/usr/local/include"; then
14605 if test -n "$GCC"; then
14607 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14611 if test -z "$haveit"; then
14612 for x in $CPPFLAGS $INCICONV; do
14614 acl_save_prefix="$prefix"
14615 prefix="$acl_final_prefix"
14616 acl_save_exec_prefix="$exec_prefix"
14617 exec_prefix="$acl_final_exec_prefix"
14619 exec_prefix="$acl_save_exec_prefix"
14620 prefix="$acl_save_prefix"
14622 if test "X$x" = "X-I$additional_includedir"; then
14627 if test -z "$haveit"; then
14628 if test -d "$additional_includedir"; then
14629 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14635 if test -n "$found_la"; then
14636 save_libdir="$libdir"
14637 case "$found_la" in
14638 */* | *\\*) . "$found_la" ;;
14639 *) . "./$found_la" ;;
14641 libdir="$save_libdir"
14642 for dep in $dependency_libs; do
14645 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14646 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14647 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14649 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14650 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14651 if test -n "$GCC"; then
14653 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14657 if test -z "$haveit"; then
14659 for x in $LDFLAGS $LIBICONV; do
14661 acl_save_prefix="$prefix"
14662 prefix="$acl_final_prefix"
14663 acl_save_exec_prefix="$exec_prefix"
14664 exec_prefix="$acl_final_exec_prefix"
14666 exec_prefix="$acl_save_exec_prefix"
14667 prefix="$acl_save_prefix"
14669 if test "X$x" = "X-L$additional_libdir"; then
14674 if test -z "$haveit"; then
14675 if test -d "$additional_libdir"; then
14676 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14680 for x in $LDFLAGS $LTLIBICONV; do
14682 acl_save_prefix="$prefix"
14683 prefix="$acl_final_prefix"
14684 acl_save_exec_prefix="$exec_prefix"
14685 exec_prefix="$acl_final_exec_prefix"
14687 exec_prefix="$acl_save_exec_prefix"
14688 prefix="$acl_save_prefix"
14690 if test "X$x" = "X-L$additional_libdir"; then
14695 if test -z "$haveit"; then
14696 if test -d "$additional_libdir"; then
14697 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14704 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14705 if test "$enable_rpath" != no; then
14707 for x in $rpathdirs; do
14708 if test "X$x" = "X$dir"; then
14713 if test -z "$haveit"; then
14714 rpathdirs="$rpathdirs $dir"
14717 for x in $ltrpathdirs; do
14718 if test "X$x" = "X$dir"; then
14723 if test -z "$haveit"; then
14724 ltrpathdirs="$ltrpathdirs $dir"
14729 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14732 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14735 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14736 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14742 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14743 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14749 if test "X$rpathdirs" != "X"; then
14750 if test -n "$acl_hardcode_libdir_separator"; then
14752 for found_dir in $rpathdirs; do
14753 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14755 acl_save_libdir="$libdir"
14757 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14758 libdir="$acl_save_libdir"
14759 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14761 for found_dir in $rpathdirs; do
14762 acl_save_libdir="$libdir"
14763 libdir="$found_dir"
14764 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14765 libdir="$acl_save_libdir"
14766 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14770 if test "X$ltrpathdirs" != "X"; then
14771 for found_dir in $ltrpathdirs; do
14772 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14787 am_save_CPPFLAGS="$CPPFLAGS"
14789 for element in $INCICONV; do
14791 for x in $CPPFLAGS; do
14793 acl_save_prefix="$prefix"
14794 prefix="$acl_final_prefix"
14795 acl_save_exec_prefix="$exec_prefix"
14796 exec_prefix="$acl_final_exec_prefix"
14798 exec_prefix="$acl_save_exec_prefix"
14799 prefix="$acl_save_prefix"
14801 if test "X$x" = "X$element"; then
14806 if test -z "$haveit"; then
14807 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14813 $as_echo_n "checking for iconv... " >&6; }
14814 if test "${am_cv_func_iconv+set}" = set; then :
14815 $as_echo_n "(cached) " >&6
14818 am_cv_func_iconv="no, consider installing GNU libiconv"
14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h. */
14822 #include <stdlib.h>
14827 iconv_t cd = iconv_open("","");
14828 iconv(cd,NULL,NULL,NULL,NULL);
14834 if ac_fn_c_try_link "$LINENO"; then :
14835 am_cv_func_iconv=yes
14837 rm -f core conftest.err conftest.$ac_objext \
14838 conftest$ac_exeext conftest.$ac_ext
14839 if test "$am_cv_func_iconv" != yes; then
14840 am_save_LIBS="$LIBS"
14841 LIBS="$LIBS $LIBICONV"
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844 #include <stdlib.h>
14849 iconv_t cd = iconv_open("","");
14850 iconv(cd,NULL,NULL,NULL,NULL);
14856 if ac_fn_c_try_link "$LINENO"; then :
14857 am_cv_lib_iconv=yes
14858 am_cv_func_iconv=yes
14860 rm -f core conftest.err conftest.$ac_objext \
14861 conftest$ac_exeext conftest.$ac_ext
14862 LIBS="$am_save_LIBS"
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14867 $as_echo "$am_cv_func_iconv" >&6; }
14868 if test "$am_cv_func_iconv" = yes; then
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14870 $as_echo_n "checking for working iconv... " >&6; }
14871 if test "${am_cv_func_iconv_works+set}" = set; then :
14872 $as_echo_n "(cached) " >&6
14875 am_save_LIBS="$LIBS"
14876 if test $am_cv_lib_iconv = yes; then
14877 LIBS="$LIBS $LIBICONV"
14879 if test "$cross_compiling" = yes; then :
14881 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14882 *) am_cv_func_iconv_works="guessing yes" ;;
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14889 #include <string.h>
14892 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14895 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14896 if (cd_utf8_to_88591 != (iconv_t)(-1))
14898 static const char input[] = "\342\202\254"; /* EURO SIGN */
14900 const char *inptr = input;
14901 size_t inbytesleft = strlen (input);
14902 char *outptr = buf;
14903 size_t outbytesleft = sizeof (buf);
14904 size_t res = iconv (cd_utf8_to_88591,
14905 (char **) &inptr, &inbytesleft,
14906 &outptr, &outbytesleft);
14911 /* Test against Solaris 10 bug: Failures are not distinguishable from
14912 successful returns. */
14914 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14915 if (cd_ascii_to_88591 != (iconv_t)(-1))
14917 static const char input[] = "\263";
14919 const char *inptr = input;
14920 size_t inbytesleft = strlen (input);
14921 char *outptr = buf;
14922 size_t outbytesleft = sizeof (buf);
14923 size_t res = iconv (cd_ascii_to_88591,
14924 (char **) &inptr, &inbytesleft,
14925 &outptr, &outbytesleft);
14930 #if 0 /* This bug could be worked around by the caller. */
14931 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14933 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14934 if (cd_88591_to_utf8 != (iconv_t)(-1))
14936 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14938 const char *inptr = input;
14939 size_t inbytesleft = strlen (input);
14940 char *outptr = buf;
14941 size_t outbytesleft = sizeof (buf);
14942 size_t res = iconv (cd_88591_to_utf8,
14943 (char **) &inptr, &inbytesleft,
14944 &outptr, &outbytesleft);
14950 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14952 if (/* Try standardized names. */
14953 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14954 /* Try IRIX, OSF/1 names. */
14955 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14956 /* Try AIX names. */
14957 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14958 /* Try HP-UX names. */
14959 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14964 if ac_fn_c_try_run "$LINENO"; then :
14965 am_cv_func_iconv_works=yes
14967 am_cv_func_iconv_works=no
14969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14970 conftest.$ac_objext conftest.beam conftest.$ac_ext
14973 LIBS="$am_save_LIBS"
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14977 $as_echo "$am_cv_func_iconv_works" >&6; }
14978 case "$am_cv_func_iconv_works" in
14979 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14980 *) am_func_iconv=yes ;;
14983 am_func_iconv=no am_cv_lib_iconv=no
14985 if test "$am_func_iconv" = yes; then
14987 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14990 if test "$am_cv_lib_iconv" = yes; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14992 $as_echo_n "checking how to link with libiconv... " >&6; }
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14994 $as_echo "$LIBICONV" >&6; }
14996 CPPFLAGS="$am_save_CPPFLAGS"
15003 if test "$am_cv_func_iconv" = yes; then
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15005 $as_echo_n "checking for iconv declaration... " >&6; }
15006 if test "${am_cv_proto_iconv+set}" = set; then :
15007 $as_echo_n "(cached) " >&6
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15013 #include <stdlib.h>
15019 #if defined(__STDC__) || defined(__cplusplus)
15020 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15033 if ac_fn_c_try_compile "$LINENO"; then :
15034 am_cv_proto_iconv_arg1=""
15036 am_cv_proto_iconv_arg1="const"
15038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 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);"
15042 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
15044 $am_cv_proto_iconv" >&5
15046 $am_cv_proto_iconv" >&6; }
15048 cat >>confdefs.h <<_ACEOF
15049 #define ICONV_CONST $am_cv_proto_iconv_arg1
15054 if test "$am_cv_func_iconv" != yes; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libiconv" >&5
15056 $as_echo "$as_me: WARNING: Could not find libiconv" >&2;}
15058 conky_LIBS="$conky_LIBS $LIBICONV"
15060 if test "$am_cv_func_iconv" = yes; then
15062 BUILD_ICONV_FALSE='#'
15064 BUILD_ICONV_TRUE='#'
15070 # Check whether --enable-double_buffer was given.
15071 if test "${enable_double_buffer+set}" = set; then :
15072 enableval=$enable_double_buffer; want_double_buffer="$enableval"
15074 want_double_buffer=yes
15078 if test "x$want_double_buffer" = "xyes"; then
15079 if test "x$want_x11" != "xyes"; then
15080 want_double_buffer=no
15082 if $PKG_CONFIG --exists xext; then
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xext" >&5
15086 $as_echo_n "checking for Xext... " >&6; }
15088 if test -n "$PKG_CONFIG"; then
15089 if test -n "$Xext_CFLAGS"; then
15090 pkg_cv_Xext_CFLAGS="$Xext_CFLAGS"
15092 if test -n "$PKG_CONFIG" && \
15093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
15094 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
15096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15097 test $ac_status = 0; }; then
15098 pkg_cv_Xext_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
15106 if test -n "$PKG_CONFIG"; then
15107 if test -n "$Xext_LIBS"; then
15108 pkg_cv_Xext_LIBS="$Xext_LIBS"
15110 if test -n "$PKG_CONFIG" && \
15111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
15112 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
15114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15115 test $ac_status = 0; }; then
15116 pkg_cv_Xext_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
15127 if test $pkg_failed = yes; then
15129 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15130 _pkg_short_errors_supported=yes
15132 _pkg_short_errors_supported=no
15134 if test $_pkg_short_errors_supported = yes; then
15135 Xext_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext"`
15137 Xext_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"`
15139 # Put the nasty error message in config.log where it belongs
15140 echo "$Xext_PKG_ERRORS" >&5
15142 as_fn_error "Package requirements (xext) were not met:
15146 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15147 installed software in a non-standard prefix.
15149 Alternatively, you may set the environment variables Xext_CFLAGS
15150 and Xext_LIBS to avoid the need to call pkg-config.
15151 See the pkg-config man page for more details.
15153 elif test $pkg_failed = untried; then
15154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15156 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15157 is in your PATH or set the PKG_CONFIG environment variable to the full
15158 path to pkg-config.
15160 Alternatively, you may set the environment variables Xext_CFLAGS
15161 and Xext_LIBS to avoid the need to call pkg-config.
15162 See the pkg-config man page for more details.
15164 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15165 See \`config.log' for more details." "$LINENO" 5; }
15167 Xext_CFLAGS=$pkg_cv_Xext_CFLAGS
15168 Xext_LIBS=$pkg_cv_Xext_LIBS
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15170 $as_echo "yes" >&6; }
15173 conky_CFLAGS="$conky_CFLAGS $Xext_CFLAGS"
15174 conky_LIBS="$conky_LIBS $Xext_LIBS"
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdbeQueryExtension in -lXext" >&5
15177 $as_echo_n "checking for XdbeQueryExtension in -lXext... " >&6; }
15178 if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then :
15179 $as_echo_n "(cached) " >&6
15181 ac_check_lib_save_LIBS=$LIBS
15182 LIBS="-lXext $LIBS"
15183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h. */
15186 /* Override any GCC internal prototype to avoid an error.
15187 Use char because int might match the return type of a GCC
15188 builtin and then its argument prototype would still apply. */
15192 char XdbeQueryExtension ();
15196 return XdbeQueryExtension ();
15201 if ac_fn_c_try_link "$LINENO"; then :
15202 ac_cv_lib_Xext_XdbeQueryExtension=yes
15204 ac_cv_lib_Xext_XdbeQueryExtension=no
15206 rm -f core conftest.err conftest.$ac_objext \
15207 conftest$ac_exeext conftest.$ac_ext
15208 LIBS=$ac_check_lib_save_LIBS
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
15211 $as_echo "$ac_cv_lib_Xext_XdbeQueryExtension" >&6; }
15212 if test "x$ac_cv_lib_Xext_XdbeQueryExtension" = x""yes; then :
15213 conky_LIBS="$conky_LIBS -lXext"
15215 as_fn_error "Could not find XdbeQueryExtension in -lXext" "$LINENO" 5
15220 $as_echo "#define HAVE_XDBE 1" >>confdefs.h
15227 # Check whether --enable-xdamage was given.
15228 if test "${enable_xdamage+set}" = set; then :
15229 enableval=$enable_xdamage; want_xdamage="$enableval"
15235 if test "x$want_xdamage" = "xyes"; then
15236 if test "x$want_x11" != "xyes"; then
15239 if $PKG_CONFIG --exists xdamage; then
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDamage" >&5
15243 $as_echo_n "checking for XDamage... " >&6; }
15245 if test -n "$PKG_CONFIG"; then
15246 if test -n "$XDamage_CFLAGS"; then
15247 pkg_cv_XDamage_CFLAGS="$XDamage_CFLAGS"
15249 if test -n "$PKG_CONFIG" && \
15250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdamage\""; } >&5
15251 ($PKG_CONFIG --exists --print-errors "xdamage") 2>&5
15253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15254 test $ac_status = 0; }; then
15255 pkg_cv_XDamage_CFLAGS=`$PKG_CONFIG --cflags "xdamage" 2>/dev/null`
15263 if test -n "$PKG_CONFIG"; then
15264 if test -n "$XDamage_LIBS"; then
15265 pkg_cv_XDamage_LIBS="$XDamage_LIBS"
15267 if test -n "$PKG_CONFIG" && \
15268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdamage\""; } >&5
15269 ($PKG_CONFIG --exists --print-errors "xdamage") 2>&5
15271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15272 test $ac_status = 0; }; then
15273 pkg_cv_XDamage_LIBS=`$PKG_CONFIG --libs "xdamage" 2>/dev/null`
15284 if test $pkg_failed = yes; then
15286 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15287 _pkg_short_errors_supported=yes
15289 _pkg_short_errors_supported=no
15291 if test $_pkg_short_errors_supported = yes; then
15292 XDamage_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdamage"`
15294 XDamage_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdamage"`
15296 # Put the nasty error message in config.log where it belongs
15297 echo "$XDamage_PKG_ERRORS" >&5
15299 as_fn_error "Package requirements (xdamage) were not met:
15301 $XDamage_PKG_ERRORS
15303 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15304 installed software in a non-standard prefix.
15306 Alternatively, you may set the environment variables XDamage_CFLAGS
15307 and XDamage_LIBS to avoid the need to call pkg-config.
15308 See the pkg-config man page for more details.
15310 elif test $pkg_failed = untried; then
15311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15313 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15314 is in your PATH or set the PKG_CONFIG environment variable to the full
15315 path to pkg-config.
15317 Alternatively, you may set the environment variables XDamage_CFLAGS
15318 and XDamage_LIBS to avoid the need to call pkg-config.
15319 See the pkg-config man page for more details.
15321 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15322 See \`config.log' for more details." "$LINENO" 5; }
15324 XDamage_CFLAGS=$pkg_cv_XDamage_CFLAGS
15325 XDamage_LIBS=$pkg_cv_XDamage_LIBS
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15327 $as_echo "yes" >&6; }
15330 conky_CFLAGS="$conky_CFLAGS $XDamage_CFLAGS"
15331 conky_LIBS="$conky_LIBS $XDamage_LIBS"
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDamageQueryExtension in -lXdamage" >&5
15334 $as_echo_n "checking for XDamageQueryExtension in -lXdamage... " >&6; }
15335 if test "${ac_cv_lib_Xdamage_XDamageQueryExtension+set}" = set; then :
15336 $as_echo_n "(cached) " >&6
15338 ac_check_lib_save_LIBS=$LIBS
15339 LIBS="-lXdamage $LIBS"
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15343 /* Override any GCC internal prototype to avoid an error.
15344 Use char because int might match the return type of a GCC
15345 builtin and then its argument prototype would still apply. */
15349 char XDamageQueryExtension ();
15353 return XDamageQueryExtension ();
15358 if ac_fn_c_try_link "$LINENO"; then :
15359 ac_cv_lib_Xdamage_XDamageQueryExtension=yes
15361 ac_cv_lib_Xdamage_XDamageQueryExtension=no
15363 rm -f core conftest.err conftest.$ac_objext \
15364 conftest$ac_exeext conftest.$ac_ext
15365 LIBS=$ac_check_lib_save_LIBS
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdamage_XDamageQueryExtension" >&5
15368 $as_echo "$ac_cv_lib_Xdamage_XDamageQueryExtension" >&6; }
15369 if test "x$ac_cv_lib_Xdamage_XDamageQueryExtension" = x""yes; then :
15370 conky_LIBS="$conky_LIBS -lXdamage"
15372 as_fn_error "Could not find XDamageQueryExtension in -lXdamage" "$LINENO" 5
15377 $as_echo "#define HAVE_XDAMAGE 1" >>confdefs.h
15384 # Check whether --enable-xft was given.
15385 if test "${enable_xft+set}" = set; then :
15386 enableval=$enable_xft; want_xft="$enableval"
15392 if test x$want_xft = "xyes"; then
15393 if test "x$want_x11" != "xyes"; then
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft" >&5
15399 $as_echo_n "checking for Xft... " >&6; }
15401 if test -n "$PKG_CONFIG"; then
15402 if test -n "$Xft_CFLAGS"; then
15403 pkg_cv_Xft_CFLAGS="$Xft_CFLAGS"
15405 if test -n "$PKG_CONFIG" && \
15406 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
15407 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
15409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15410 test $ac_status = 0; }; then
15411 pkg_cv_Xft_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
15419 if test -n "$PKG_CONFIG"; then
15420 if test -n "$Xft_LIBS"; then
15421 pkg_cv_Xft_LIBS="$Xft_LIBS"
15423 if test -n "$PKG_CONFIG" && \
15424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
15425 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
15427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15428 test $ac_status = 0; }; then
15429 pkg_cv_Xft_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
15440 if test $pkg_failed = yes; then
15442 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15443 _pkg_short_errors_supported=yes
15445 _pkg_short_errors_supported=no
15447 if test $_pkg_short_errors_supported = yes; then
15448 Xft_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xft"`
15450 Xft_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft"`
15452 # Put the nasty error message in config.log where it belongs
15453 echo "$Xft_PKG_ERRORS" >&5
15455 as_fn_error "Package requirements (xft) were not met:
15459 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15460 installed software in a non-standard prefix.
15462 Alternatively, you may set the environment variables Xft_CFLAGS
15463 and Xft_LIBS to avoid the need to call pkg-config.
15464 See the pkg-config man page for more details.
15466 elif test $pkg_failed = untried; then
15467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15469 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15470 is in your PATH or set the PKG_CONFIG environment variable to the full
15471 path to pkg-config.
15473 Alternatively, you may set the environment variables Xft_CFLAGS
15474 and Xft_LIBS to avoid the need to call pkg-config.
15475 See the pkg-config man page for more details.
15477 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15478 See \`config.log' for more details." "$LINENO" 5; }
15480 Xft_CFLAGS=$pkg_cv_Xft_CFLAGS
15481 Xft_LIBS=$pkg_cv_Xft_LIBS
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15483 $as_echo "yes" >&6; }
15486 conky_CFLAGS="$conky_CFLAGS $Xft_CFLAGS"
15487 conky_LIBS="$conky_LIBS $Xft_LIBS"
15489 $as_echo "#define XFT 1" >>confdefs.h
15495 # Check whether --enable-nvidia was given.
15496 if test "${enable_nvidia+set}" = set; then :
15497 enableval=$enable_nvidia; want_nvidia="$enableval"
15502 if test x$want_nvidia = xyes; then
15503 if test "x$want_x11" != "xyes"; then
15507 for ac_header in NVCtrl/NVCtrl.h
15509 ac_fn_c_check_header_mongrel "$LINENO" "NVCtrl/NVCtrl.h" "ac_cv_header_NVCtrl_NVCtrl_h" "$ac_includes_default"
15510 if test "x$ac_cv_header_NVCtrl_NVCtrl_h" = x""yes; then :
15511 cat >>confdefs.h <<_ACEOF
15512 #define HAVE_NVCTRL_NVCTRL_H 1
15516 as_fn_error "NVCtrl/NVCtrl.h header not found" "$LINENO" 5
15521 conky_LIBS="$conky_LIBS -lXNVCtrl"
15523 $as_echo "#define NVIDIA 1" >>confdefs.h
15527 if test x$want_nvidia = xyes; then
15529 BUILD_NVIDIA_FALSE='#'
15531 BUILD_NVIDIA_TRUE='#'
15532 BUILD_NVIDIA_FALSE=
15537 if test x$WANT_GLIB = xyes; then
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib2" >&5
15541 $as_echo_n "checking for GLib2... " >&6; }
15543 if test -n "$PKG_CONFIG"; then
15544 if test -n "$GLib2_CFLAGS"; then
15545 pkg_cv_GLib2_CFLAGS="$GLib2_CFLAGS"
15547 if test -n "$PKG_CONFIG" && \
15548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
15549 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
15551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15552 test $ac_status = 0; }; then
15553 pkg_cv_GLib2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
15561 if test -n "$PKG_CONFIG"; then
15562 if test -n "$GLib2_LIBS"; then
15563 pkg_cv_GLib2_LIBS="$GLib2_LIBS"
15565 if test -n "$PKG_CONFIG" && \
15566 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
15567 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
15569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15570 test $ac_status = 0; }; then
15571 pkg_cv_GLib2_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
15582 if test $pkg_failed = yes; then
15584 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15585 _pkg_short_errors_supported=yes
15587 _pkg_short_errors_supported=no
15589 if test $_pkg_short_errors_supported = yes; then
15590 GLib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
15592 GLib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
15594 # Put the nasty error message in config.log where it belongs
15595 echo "$GLib2_PKG_ERRORS" >&5
15597 as_fn_error "Package requirements (glib-2.0) were not met:
15601 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15602 installed software in a non-standard prefix.
15604 Alternatively, you may set the environment variables GLib2_CFLAGS
15605 and GLib2_LIBS to avoid the need to call pkg-config.
15606 See the pkg-config man page for more details.
15608 elif test $pkg_failed = untried; then
15609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15611 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15612 is in your PATH or set the PKG_CONFIG environment variable to the full
15613 path to pkg-config.
15615 Alternatively, you may set the environment variables GLib2_CFLAGS
15616 and GLib2_LIBS to avoid the need to call pkg-config.
15617 See the pkg-config man page for more details.
15619 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15620 See \`config.log' for more details." "$LINENO" 5; }
15622 GLib2_CFLAGS=$pkg_cv_GLib2_CFLAGS
15623 GLib2_LIBS=$pkg_cv_GLib2_LIBS
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15625 $as_echo "yes" >&6; }
15628 conky_CFLAGS="$conky_CFLAGS $GLib2_CFLAGS"
15629 conky_LIBS="$conky_LIBS $GLib2_LIBS"
15633 if test x$want_curl = xyes; then
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
15637 $as_echo_n "checking for libcurl... " >&6; }
15639 if test -n "$PKG_CONFIG"; then
15640 if test -n "$libcurl_CFLAGS"; then
15641 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
15643 if test -n "$PKG_CONFIG" && \
15644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
15645 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
15647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15648 test $ac_status = 0; }; then
15649 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
15657 if test -n "$PKG_CONFIG"; then
15658 if test -n "$libcurl_LIBS"; then
15659 pkg_cv_libcurl_LIBS="$libcurl_LIBS"
15661 if test -n "$PKG_CONFIG" && \
15662 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
15663 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
15665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15666 test $ac_status = 0; }; then
15667 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
15678 if test $pkg_failed = yes; then
15680 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15681 _pkg_short_errors_supported=yes
15683 _pkg_short_errors_supported=no
15685 if test $_pkg_short_errors_supported = yes; then
15686 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
15688 libcurl_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
15690 # Put the nasty error message in config.log where it belongs
15691 echo "$libcurl_PKG_ERRORS" >&5
15693 as_fn_error "Package requirements (libcurl) were not met:
15695 $libcurl_PKG_ERRORS
15697 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15698 installed software in a non-standard prefix.
15700 Alternatively, you may set the environment variables libcurl_CFLAGS
15701 and libcurl_LIBS to avoid the need to call pkg-config.
15702 See the pkg-config man page for more details.
15704 elif test $pkg_failed = untried; then
15705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15707 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15708 is in your PATH or set the PKG_CONFIG environment variable to the full
15709 path to pkg-config.
15711 Alternatively, you may set the environment variables libcurl_CFLAGS
15712 and libcurl_LIBS to avoid the need to call pkg-config.
15713 See the pkg-config man page for more details.
15715 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15716 See \`config.log' for more details." "$LINENO" 5; }
15718 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
15719 libcurl_LIBS=$pkg_cv_libcurl_LIBS
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15721 $as_echo "yes" >&6; }
15724 conky_CFLAGS="$conky_CFLAGS $libcurl_CFLAGS"
15725 conky_LIBS="$conky_LIBS $libcurl_LIBS"
15727 $as_echo "#define HAVE_CURL 1" >>confdefs.h
15730 if test x$want_curl = xyes; then
15732 BUILD_CURL_FALSE='#'
15734 BUILD_CURL_TRUE='#'
15740 if test x$want_libxml2 = xyes; then
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
15744 $as_echo_n "checking for libxml2... " >&6; }
15746 if test -n "$PKG_CONFIG"; then
15747 if test -n "$libxml2_CFLAGS"; then
15748 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
15750 if test -n "$PKG_CONFIG" && \
15751 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
15752 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
15754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15755 test $ac_status = 0; }; then
15756 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
15764 if test -n "$PKG_CONFIG"; then
15765 if test -n "$libxml2_LIBS"; then
15766 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
15768 if test -n "$PKG_CONFIG" && \
15769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
15770 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
15772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15773 test $ac_status = 0; }; then
15774 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
15785 if test $pkg_failed = yes; then
15787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15788 _pkg_short_errors_supported=yes
15790 _pkg_short_errors_supported=no
15792 if test $_pkg_short_errors_supported = yes; then
15793 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0"`
15795 libxml2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
15797 # Put the nasty error message in config.log where it belongs
15798 echo "$libxml2_PKG_ERRORS" >&5
15800 as_fn_error "Package requirements (libxml-2.0) were not met:
15802 $libxml2_PKG_ERRORS
15804 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15805 installed software in a non-standard prefix.
15807 Alternatively, you may set the environment variables libxml2_CFLAGS
15808 and libxml2_LIBS to avoid the need to call pkg-config.
15809 See the pkg-config man page for more details.
15811 elif test $pkg_failed = untried; then
15812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15814 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15815 is in your PATH or set the PKG_CONFIG environment variable to the full
15816 path to pkg-config.
15818 Alternatively, you may set the environment variables libxml2_CFLAGS
15819 and libxml2_LIBS to avoid the need to call pkg-config.
15820 See the pkg-config man page for more details.
15822 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15823 See \`config.log' for more details." "$LINENO" 5; }
15825 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
15826 libxml2_LIBS=$pkg_cv_libxml2_LIBS
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15828 $as_echo "yes" >&6; }
15831 conky_CFLAGS="$conky_CFLAGS $libxml2_CFLAGS"
15832 conky_LIBS="$conky_LIBS $libxml2_LIBS"
15836 if test x$WANT_KVM = xyes; then
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15838 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15839 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15840 $as_echo_n "(cached) " >&6
15842 ac_check_lib_save_LIBS=$LIBS
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15847 /* Override any GCC internal prototype to avoid an error.
15848 Use char because int might match the return type of a GCC
15849 builtin and then its argument prototype would still apply. */
15857 return kvm_open ();
15862 if ac_fn_c_try_link "$LINENO"; then :
15863 ac_cv_lib_kvm_kvm_open=yes
15865 ac_cv_lib_kvm_kvm_open=no
15867 rm -f core conftest.err conftest.$ac_objext \
15868 conftest$ac_exeext conftest.$ac_ext
15869 LIBS=$ac_check_lib_save_LIBS
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15872 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15873 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
15874 conky_LIBS="$conky_LIBS -lkvm"
15876 as_fn_error "Could not find kvm_open in -lkvm." "$LINENO" 5
15883 if test x$WANT_DEVSTAT = xyes; then
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devstat_getversion in -ldevstat" >&5
15885 $as_echo_n "checking for devstat_getversion in -ldevstat... " >&6; }
15886 if test "${ac_cv_lib_devstat_devstat_getversion+set}" = set; then :
15887 $as_echo_n "(cached) " >&6
15889 ac_check_lib_save_LIBS=$LIBS
15890 LIBS="-ldevstat $LIBS"
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15894 /* Override any GCC internal prototype to avoid an error.
15895 Use char because int might match the return type of a GCC
15896 builtin and then its argument prototype would still apply. */
15900 char devstat_getversion ();
15904 return devstat_getversion ();
15909 if ac_fn_c_try_link "$LINENO"; then :
15910 ac_cv_lib_devstat_devstat_getversion=yes
15912 ac_cv_lib_devstat_devstat_getversion=no
15914 rm -f core conftest.err conftest.$ac_objext \
15915 conftest$ac_exeext conftest.$ac_ext
15916 LIBS=$ac_check_lib_save_LIBS
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devstat_devstat_getversion" >&5
15919 $as_echo "$ac_cv_lib_devstat_devstat_getversion" >&6; }
15920 if test "x$ac_cv_lib_devstat_devstat_getversion" = x""yes; then :
15921 conky_LIBS="$conky_LIBS -ldevstat"
15923 as_fn_error "Cound not find devstat_getversion in -ldevstat." "$LINENO" 5
15930 if test x$WANT_OSSLIB = xyes; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
15932 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
15933 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
15934 $as_echo_n "(cached) " >&6
15936 ac_check_lib_save_LIBS=$LIBS
15937 LIBS="-lossaudio $LIBS"
15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15941 /* Override any GCC internal prototype to avoid an error.
15942 Use char because int might match the return type of a GCC
15943 builtin and then its argument prototype would still apply. */
15947 char _oss_ioctl ();
15951 return _oss_ioctl ();
15956 if ac_fn_c_try_link "$LINENO"; then :
15957 ac_cv_lib_ossaudio__oss_ioctl=yes
15959 ac_cv_lib_ossaudio__oss_ioctl=no
15961 rm -f core conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963 LIBS=$ac_check_lib_save_LIBS
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
15966 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
15967 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
15968 conky_LIBS="$conky_LIBS -lossaudio"
15970 as_fn_error "Could not find oss_ioctl in -lossaudio." "$LINENO" 5
15976 # Check whether --enable-alsa was given.
15977 if test "${enable_alsa+set}" = set; then :
15978 enableval=$enable_alsa; want_alsa="$enableval"
15984 if test x$want_alsa = xyes; then
15985 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
15986 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
15994 if test x$want_alsa = xyes; then
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
15996 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
15997 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then :
15998 $as_echo_n "(cached) " >&6
16000 ac_check_lib_save_LIBS=$LIBS
16001 LIBS="-lasound $LIBS"
16002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003 /* end confdefs.h. */
16005 /* Override any GCC internal prototype to avoid an error.
16006 Use char because int might match the return type of a GCC
16007 builtin and then its argument prototype would still apply. */
16011 char snd_pcm_open ();
16015 return snd_pcm_open ();
16020 if ac_fn_c_try_link "$LINENO"; then :
16021 ac_cv_lib_asound_snd_pcm_open=yes
16023 ac_cv_lib_asound_snd_pcm_open=no
16025 rm -f core conftest.err conftest.$ac_objext \
16026 conftest$ac_exeext conftest.$ac_ext
16027 LIBS=$ac_check_lib_save_LIBS
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16030 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16031 if test "x$ac_cv_lib_asound_snd_pcm_open" = x""yes; then :
16032 conky_LIBS="$conky_LIBS -lasound"
16039 for ac_header in signal.h unistd.h sys/utsname.h sys/stat.h linux/soundcard.h alsa/asoundlib.h dirent.h mcheck.h \
16040 sys/statfs.h sys/param.h pthread.h semaphore.h assert.h errno.h time.h
16042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16043 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16044 eval as_val=\$$as_ac_Header
16045 if test "x$as_val" = x""yes; then :
16046 cat >>confdefs.h <<_ACEOF
16047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16054 for ac_header in sys/mount.h
16056 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#ifdef HAVE_SYS_PARAM_H
16057 #include <sys/param.h>
16061 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
16062 cat >>confdefs.h <<_ACEOF
16063 #define HAVE_SYS_MOUNT_H 1
16070 # check if we have inotify support
16071 # DML #AC_CHECK_HEADERS([sys/inotify.h])
16075 $as_echo "#define DEFAULTNETDEV \"eth0\"" >>confdefs.h
16078 $as_echo "#define CONFIG_FILE \"\$HOME/.conkyrc\"" >>confdefs.h
16081 $as_echo "#define MAX_SPECIALS_DEFAULT 512" >>confdefs.h
16084 $as_echo "#define MAX_USER_TEXT_DEFAULT 16384" >>confdefs.h
16087 $as_echo "#define DEFAULT_TEXT_BUFFER_SIZE 256" >>confdefs.h
16090 $as_echo "#define MAX_NET_INTERFACES 16" >>confdefs.h
16094 for ac_func in calloc malloc free popen sysinfo getloadavg memrchr strndup gethostbyname_r
16096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16098 eval as_val=\$$as_ac_var
16099 if test "x$as_val" = x""yes; then :
16100 cat >>confdefs.h <<_ACEOF
16101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16108 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16109 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16110 $as_echo_n "(cached) " >&6
16112 ac_func_search_save_LIBS=$LIBS
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16116 /* Override any GCC internal prototype to avoid an error.
16117 Use char because int might match the return type of a GCC
16118 builtin and then its argument prototype would still apply. */
16122 char clock_gettime ();
16126 return clock_gettime ();
16131 for ac_lib in '' rt; do
16132 if test -z "$ac_lib"; then
16133 ac_res="none required"
16136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16138 if ac_fn_c_try_link "$LINENO"; then :
16139 ac_cv_search_clock_gettime=$ac_res
16141 rm -f core conftest.err conftest.$ac_objext \
16143 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16147 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16150 ac_cv_search_clock_gettime=no
16152 rm conftest.$ac_ext
16153 LIBS=$ac_func_search_save_LIBS
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16156 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16157 ac_res=$ac_cv_search_clock_gettime
16158 if test "$ac_res" != no; then :
16159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16160 conky_LIBS="$conky_LIBS $LIBS"
16162 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16165 for ac_func in gettimeofday
16167 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16168 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_GETTIMEOFDAY 1
16174 as_fn_error "gettimeofday() not available!" "$LINENO" 5
16182 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/statfs.h>
16184 if test "x$ac_cv_member_struct_statfs_f_fstypename" = x""yes; then :
16186 $as_echo "#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1" >>confdefs.h
16192 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16193 if test "x$ac_cv_header_zlib_h" = x""yes; then :
16196 as_fn_error "zlib is missing; please install the headers first" "$LINENO" 5
16206 for ac_prog in db2x_xsltproc
16208 # Extract the first word of "$ac_prog", so it can be a program name with args.
16209 set dummy $ac_prog; ac_word=$2
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16211 $as_echo_n "checking for $ac_word... " >&6; }
16212 if test "${ac_cv_prog_db2x_xsltproc_cmd+set}" = set; then :
16213 $as_echo_n "(cached) " >&6
16215 if test -n "$db2x_xsltproc_cmd"; then
16216 ac_cv_prog_db2x_xsltproc_cmd="$db2x_xsltproc_cmd" # Let the user override the test.
16218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16219 for as_dir in $PATH
16222 test -z "$as_dir" && as_dir=.
16223 for ac_exec_ext in '' $ac_executable_extensions; do
16224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16225 ac_cv_prog_db2x_xsltproc_cmd="$ac_prog"
16226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16235 db2x_xsltproc_cmd=$ac_cv_prog_db2x_xsltproc_cmd
16236 if test -n "$db2x_xsltproc_cmd"; then
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db2x_xsltproc_cmd" >&5
16238 $as_echo "$db2x_xsltproc_cmd" >&6; }
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16241 $as_echo "no" >&6; }
16245 test -n "$db2x_xsltproc_cmd" && break
16248 for ac_prog in db2x_manxml
16250 # Extract the first word of "$ac_prog", so it can be a program name with args.
16251 set dummy $ac_prog; ac_word=$2
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16253 $as_echo_n "checking for $ac_word... " >&6; }
16254 if test "${ac_cv_prog_db2x_manxml_cmd+set}" = set; then :
16255 $as_echo_n "(cached) " >&6
16257 if test -n "$db2x_manxml_cmd"; then
16258 ac_cv_prog_db2x_manxml_cmd="$db2x_manxml_cmd" # Let the user override the test.
16260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16261 for as_dir in $PATH
16264 test -z "$as_dir" && as_dir=.
16265 for ac_exec_ext in '' $ac_executable_extensions; do
16266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16267 ac_cv_prog_db2x_manxml_cmd="$ac_prog"
16268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16277 db2x_manxml_cmd=$ac_cv_prog_db2x_manxml_cmd
16278 if test -n "$db2x_manxml_cmd"; then
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db2x_manxml_cmd" >&5
16280 $as_echo "$db2x_manxml_cmd" >&6; }
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16283 $as_echo "no" >&6; }
16287 test -n "$db2x_manxml_cmd" && break
16290 for ac_prog in xsltproc
16292 # Extract the first word of "$ac_prog", so it can be a program name with args.
16293 set dummy $ac_prog; ac_word=$2
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16295 $as_echo_n "checking for $ac_word... " >&6; }
16296 if test "${ac_cv_prog_xsltproc_cmd+set}" = set; then :
16297 $as_echo_n "(cached) " >&6
16299 if test -n "$xsltproc_cmd"; then
16300 ac_cv_prog_xsltproc_cmd="$xsltproc_cmd" # Let the user override the test.
16302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16303 for as_dir in $PATH
16306 test -z "$as_dir" && as_dir=.
16307 for ac_exec_ext in '' $ac_executable_extensions; do
16308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16309 ac_cv_prog_xsltproc_cmd="$ac_prog"
16310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16319 xsltproc_cmd=$ac_cv_prog_xsltproc_cmd
16320 if test -n "$xsltproc_cmd"; then
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsltproc_cmd" >&5
16322 $as_echo "$xsltproc_cmd" >&6; }
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16325 $as_echo "no" >&6; }
16329 test -n "$xsltproc_cmd" && break
16332 if test x$db2x_xsltproc_cmd = "x" -o x$xsltproc_cmd = "x"; then
16334 HAVE_DOCSTUFF_TRUE=
16335 HAVE_DOCSTUFF_FALSE='#'
16337 HAVE_DOCSTUFF_TRUE='#'
16338 HAVE_DOCSTUFF_FALSE=
16343 HAVE_DOCSTUFF_TRUE=
16344 HAVE_DOCSTUFF_FALSE='#'
16346 HAVE_DOCSTUFF_TRUE='#'
16347 HAVE_DOCSTUFF_FALSE=
16353 if test x$WANT_KSTAT = xyes; then
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
16356 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
16357 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
16358 $as_echo_n "(cached) " >&6
16360 ac_check_lib_save_LIBS=$LIBS
16361 LIBS="-lkstat $LIBS"
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16365 /* Override any GCC internal prototype to avoid an error.
16366 Use char because int might match the return type of a GCC
16367 builtin and then its argument prototype would still apply. */
16371 char kstat_open ();
16375 return kstat_open ();
16380 if ac_fn_c_try_link "$LINENO"; then :
16381 ac_cv_lib_kstat_kstat_open=yes
16383 ac_cv_lib_kstat_kstat_open=no
16385 rm -f core conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
16387 LIBS=$ac_check_lib_save_LIBS
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
16390 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
16391 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
16396 if test x$dah = xyes; then
16398 $as_echo "#define HAVE_KSTAT 1" >>confdefs.h
16400 conky_LDFLAGS="$conky_LDFLAGS -lkstat"
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD accepts -O1" >&5
16408 $as_echo_n "checking if $LD accepts -O1... " >&6; }
16409 case `$LD -O1 -v 2>&1 </dev/null` in
16411 conky_LDFLAGS="$conky_LDFLAGS -Wl,-O1"
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16413 $as_echo "yes" >&6; }
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16417 $as_echo "no" >&6; }
16423 conky_CFLAGS="$conky_CFLAGS -Wall -W"
16426 # Check whether --enable-debug was given.
16427 if test "${enable_debug+set}" = set; then :
16428 enableval=$enable_debug; want_debug="$enableval"
16434 if test "x$want_debug" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
16435 conky_CFLAGS="$conky_CFLAGS -g3 -O0"
16437 $as_echo "#define DEBUG 1" >>confdefs.h
16442 # Check whether --enable-testing was given.
16443 if test "${enable_testing+set}" = set; then :
16444 enableval=$enable_testing; want_testing="$enableval"
16450 if test "x$want_testing" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
16451 if test "x$want_debug" = "xyes"; then
16452 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"
16454 $as_echo "#define TESTING /**/" >>confdefs.h
16457 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"
16459 $as_echo "#define TESTING /**/" >>confdefs.h
16465 # Check whether --enable-profiling was given.
16466 if test "${enable_profiling+set}" = set; then :
16467 enableval=$enable_profiling; want_profiling="$enableval"
16473 if test "x$want_profiling" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
16474 if test "x$want_debug" = "xyes"; then
16475 conky_CFLAGS="$conky_CFLAGS -pg -fprofile-arcs -ftest-coverage"
16477 conky_CFLAGS="$conky_CFLAGS -g3 -pg -fprofile-arcs -ftest-coverage"
16480 $as_echo "#define PROFILING /**/" >>confdefs.h
16488 cat >confcache <<\_ACEOF
16489 # This file is a shell script that caches the results of configure
16490 # tests run on this system so they can be shared between configure
16491 # scripts and configure runs, see configure's option --config-cache.
16492 # It is not useful on other systems. If it contains results you don't
16493 # want to keep, you may remove or edit it.
16495 # config.status only pays attention to the cache file if you give it
16496 # the --recheck option to rerun configure.
16498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16500 # following values.
16504 # The following way of writing the cache mishandles newlines in values,
16505 # but we know of no workaround that is simple, portable, and efficient.
16506 # So, we kill variables containing newlines.
16507 # Ultrix sh set writes to stderr and can't be redirected directly,
16508 # and sets the high bit in the cache file unless we assign to the vars.
16510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16511 eval ac_val=\$$ac_var
16515 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16519 _ | IFS | as_nl) ;; #(
16520 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16521 *) { eval $ac_var=; unset $ac_var;} ;;
16527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16528 *${as_nl}ac_space=\ *)
16529 # `set' does not quote correctly, so add quotes: double-quote
16530 # substitution turns \\\\ into \\, and sed turns \\ into \.
16533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16536 # `set' quotes correctly as required by POSIX, so do not add quotes.
16537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16550 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16551 if test -w "$cache_file"; then
16552 test "x$cache_file" != "x/dev/null" &&
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16554 $as_echo "$as_me: updating cache $cache_file" >&6;}
16555 cat confcache >$cache_file
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16558 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16563 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16564 # Let make expand exec_prefix.
16565 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16567 DEFS=-DHAVE_CONFIG_H
16571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16572 # 1. Remove the extension, and $U if already installed.
16573 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16574 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16575 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16576 # will be set to the directory where LIBOBJS objects are built.
16577 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16578 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16580 LIBOBJS=$ac_libobjs
16582 LTLIBOBJS=$ac_ltlibobjs
16585 if test -n "$EXEEXT"; then
16587 am__EXEEXT_FALSE='#'
16589 am__EXEEXT_TRUE='#'
16593 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16594 as_fn_error "conditional \"AMDEP\" was never defined.
16595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16598 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16601 if test -z "${BUILD_LINUX_TRUE}" && test -z "${BUILD_LINUX_FALSE}"; then
16602 as_fn_error "conditional \"BUILD_LINUX\" was never defined.
16603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16605 if test -z "${BUILD_FREEBSD_TRUE}" && test -z "${BUILD_FREEBSD_FALSE}"; then
16606 as_fn_error "conditional \"BUILD_FREEBSD\" was never defined.
16607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16609 if test -z "${BUILD_OPENBSD_TRUE}" && test -z "${BUILD_OPENBSD_FALSE}"; then
16610 as_fn_error "conditional \"BUILD_OPENBSD\" was never defined.
16611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16613 if test -z "${BUILD_CONFIG_OUTPUT_TRUE}" && test -z "${BUILD_CONFIG_OUTPUT_FALSE}"; then
16614 as_fn_error "conditional \"BUILD_CONFIG_OUTPUT\" was never defined.
16615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16617 if test -z "${BUILD_NCURSES_TRUE}" && test -z "${BUILD_NCURSES_FALSE}"; then
16618 as_fn_error "conditional \"BUILD_NCURSES\" was never defined.
16619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16621 if test -z "${BUILD_AUDACIOUS_TRUE}" && test -z "${BUILD_AUDACIOUS_FALSE}"; then
16622 as_fn_error "conditional \"BUILD_AUDACIOUS\" was never defined.
16623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16625 if test -z "${BUILD_BMPX_TRUE}" && test -z "${BUILD_BMPX_FALSE}"; then
16626 as_fn_error "conditional \"BUILD_BMPX\" was never defined.
16627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16629 if test -z "${BUILD_IBM_TRUE}" && test -z "${BUILD_IBM_FALSE}"; then
16630 as_fn_error "conditional \"BUILD_IBM\" was never defined.
16631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16633 if test -z "${BUILD_HDDTEMP_TRUE}" && test -z "${BUILD_HDDTEMP_FALSE}"; then
16634 as_fn_error "conditional \"BUILD_HDDTEMP\" was never defined.
16635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16637 if test -z "${BUILD_APCUPSD_TRUE}" && test -z "${BUILD_APCUPSD_FALSE}"; then
16638 as_fn_error "conditional \"BUILD_APCUPSD\" was never defined.
16639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16641 if test -z "${BUILD_MATH_TRUE}" && test -z "${BUILD_MATH_FALSE}"; then
16642 as_fn_error "conditional \"BUILD_MATH\" was never defined.
16643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16645 if test -z "${BUILD_MPD_TRUE}" && test -z "${BUILD_MPD_FALSE}"; then
16646 as_fn_error "conditional \"BUILD_MPD\" was never defined.
16647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16649 if test -z "${BUILD_MOC_TRUE}" && test -z "${BUILD_MOC_FALSE}"; then
16650 as_fn_error "conditional \"BUILD_MOC\" was never defined.
16651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16653 if test -z "${BUILD_XMMS2_TRUE}" && test -z "${BUILD_XMMS2_FALSE}"; then
16654 as_fn_error "conditional \"BUILD_XMMS2\" was never defined.
16655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16657 if test -z "${BUILD_EVE_TRUE}" && test -z "${BUILD_EVE_FALSE}"; then
16658 as_fn_error "conditional \"BUILD_EVE\" was never defined.
16659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16661 if test -z "${BUILD_RSS_TRUE}" && test -z "${BUILD_RSS_FALSE}"; then
16662 as_fn_error "conditional \"BUILD_RSS\" was never defined.
16663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16665 if test -z "${BUILD_WEATHER_TRUE}" && test -z "${BUILD_WEATHER_FALSE}"; then
16666 as_fn_error "conditional \"BUILD_WEATHER\" was never defined.
16667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16669 if test -z "${BUILD_XOAP_TRUE}" && test -z "${BUILD_XOAP_FALSE}"; then
16670 as_fn_error "conditional \"BUILD_XOAP\" was never defined.
16671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16673 if test -z "${BUILD_X11_TRUE}" && test -z "${BUILD_X11_FALSE}"; then
16674 as_fn_error "conditional \"BUILD_X11\" was never defined.
16675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16677 if test -z "${BUILD_IMLIB2_TRUE}" && test -z "${BUILD_IMLIB2_FALSE}"; then
16678 as_fn_error "conditional \"BUILD_IMLIB2\" was never defined.
16679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16681 if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
16682 as_fn_error "conditional \"BUILD_LUA\" was never defined.
16683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16685 if test -z "${BUILD_LUA_CAIRO_TRUE}" && test -z "${BUILD_LUA_CAIRO_FALSE}"; then
16686 as_fn_error "conditional \"BUILD_LUA_CAIRO\" was never defined.
16687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16689 if test -z "${BUILD_LUA_IMLIB2_TRUE}" && test -z "${BUILD_LUA_IMLIB2_FALSE}"; then
16690 as_fn_error "conditional \"BUILD_LUA_IMLIB2\" was never defined.
16691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16693 if test -z "${BUILD_WLAN_TRUE}" && test -z "${BUILD_WLAN_FALSE}"; then
16694 as_fn_error "conditional \"BUILD_WLAN\" was never defined.
16695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16697 if test -z "${BUILD_PORT_MONITORS_TRUE}" && test -z "${BUILD_PORT_MONITORS_FALSE}"; then
16698 as_fn_error "conditional \"BUILD_PORT_MONITORS\" was never defined.
16699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16701 if test -z "${BUILD_ICONV_TRUE}" && test -z "${BUILD_ICONV_FALSE}"; then
16702 as_fn_error "conditional \"BUILD_ICONV\" was never defined.
16703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16705 if test -z "${BUILD_NVIDIA_TRUE}" && test -z "${BUILD_NVIDIA_FALSE}"; then
16706 as_fn_error "conditional \"BUILD_NVIDIA\" was never defined.
16707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16709 if test -z "${BUILD_CURL_TRUE}" && test -z "${BUILD_CURL_FALSE}"; then
16710 as_fn_error "conditional \"BUILD_CURL\" was never defined.
16711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16713 if test -z "${HAVE_DOCSTUFF_TRUE}" && test -z "${HAVE_DOCSTUFF_FALSE}"; then
16714 as_fn_error "conditional \"HAVE_DOCSTUFF\" was never defined.
16715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16717 if test -z "${HAVE_DOCSTUFF_TRUE}" && test -z "${HAVE_DOCSTUFF_FALSE}"; then
16718 as_fn_error "conditional \"HAVE_DOCSTUFF\" was never defined.
16719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16722 : ${CONFIG_STATUS=./config.status}
16724 ac_clean_files_save=$ac_clean_files
16725 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16727 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16729 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16731 # Generated by $as_me.
16732 # Run this file to recreate the current configuration.
16733 # Compiler output produced by configure, useful for debugging
16734 # configure, is in config.log if it exists.
16737 ac_cs_recheck=false
16740 SHELL=\${CONFIG_SHELL-$SHELL}
16743 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16744 ## -------------------- ##
16745 ## M4sh Initialization. ##
16746 ## -------------------- ##
16748 # Be more Bourne compatible
16749 DUALCASE=1; export DUALCASE # for MKS sh
16750 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16753 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16754 # is contrary to our usage. Disable this feature.
16755 alias -g '${1+"$@"}'='"$@"'
16756 setopt NO_GLOB_SUBST
16758 case `(set -o) 2>/dev/null` in #(
16770 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16771 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16773 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16774 # Prefer a ksh shell builtin over an external printf program on Solaris,
16775 # but without wasting forks for bash or zsh.
16776 if test -z "$BASH_VERSION$ZSH_VERSION" \
16777 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16778 as_echo='print -r --'
16779 as_echo_n='print -rn --'
16780 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16781 as_echo='printf %s\n'
16782 as_echo_n='printf %s'
16784 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16785 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16786 as_echo_n='/usr/ucb/echo -n'
16788 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16789 as_echo_n_body='eval
16793 expr "X$arg" : "X\\(.*\\)$as_nl";
16794 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16796 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16798 export as_echo_n_body
16799 as_echo_n='sh -c $as_echo_n_body as_echo'
16801 export as_echo_body
16802 as_echo='sh -c $as_echo_body as_echo'
16805 # The user is always right.
16806 if test "${PATH_SEPARATOR+set}" != set; then
16808 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16809 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16816 # We need space, tab and new line, in precisely that order. Quoting is
16817 # there to prevent editors from complaining about space-tab.
16818 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16819 # splitting by setting IFS to empty value.)
16822 # Find who we are. Look in the path if we contain no directory separator.
16824 *[\\/]* ) as_myself=$0 ;;
16825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16826 for as_dir in $PATH
16829 test -z "$as_dir" && as_dir=.
16830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16836 # We did not find ourselves, most probably we were run as `sh COMMAND'
16837 # in which case we are not to be found in the path.
16838 if test "x$as_myself" = x; then
16841 if test ! -f "$as_myself"; then
16842 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16846 # Unset variables that we do not need and which cause bugs (e.g. in
16847 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16848 # suppresses any "Segmentation fault" message there. '((' could
16849 # trigger a bug in pdksh 5.2.14.
16850 for as_var in BASH_ENV ENV MAIL MAILPATH
16851 do eval test x\${$as_var+set} = xset \
16852 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16865 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16868 # as_fn_error ERROR [LINENO LOG_FD]
16869 # ---------------------------------
16870 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16871 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16872 # script with status $?, using 1 if that was 0.
16875 as_status=$?; test $as_status -eq 0 && as_status=1
16877 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16878 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16880 $as_echo "$as_me: error: $1" >&2
16881 as_fn_exit $as_status
16885 # as_fn_set_status STATUS
16886 # -----------------------
16887 # Set $? to STATUS, without forking.
16888 as_fn_set_status ()
16891 } # as_fn_set_status
16893 # as_fn_exit STATUS
16894 # -----------------
16895 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16899 as_fn_set_status $1
16905 # Portably unset VAR.
16908 { eval $1=; unset $1;}
16910 as_unset=as_fn_unset
16911 # as_fn_append VAR VALUE
16912 # ----------------------
16913 # Append the text in VALUE to the end of the definition contained in VAR. Take
16914 # advantage of any shell optimizations that allow amortized linear growth over
16915 # repeated appends, instead of the typical quadratic growth present in naive
16917 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16918 eval 'as_fn_append ()
16929 # as_fn_arith ARG...
16930 # ------------------
16931 # Perform arithmetic evaluation on the ARGs, and store the result in the
16932 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16933 # must be portable across $(()) and expr.
16934 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16935 eval 'as_fn_arith ()
16942 as_val=`expr "$@" || test $? -eq 1`
16947 if expr a : '\(a\)' >/dev/null 2>&1 &&
16948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16954 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16955 as_basename=basename
16960 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16966 as_me=`$as_basename -- "$0" ||
16967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16968 X"$0" : 'X\(//\)$' \| \
16969 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16971 sed '/^.*\/\([^/][^/]*\)\/*$/{
16985 # Avoid depending upon Character Ranges.
16986 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16989 as_cr_digits='0123456789'
16990 as_cr_alnum=$as_cr_Letters$as_cr_digits
16992 ECHO_C= ECHO_N= ECHO_T=
16993 case `echo -n x` in #(((((
16995 case `echo 'xy\c'` in
16996 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16998 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17005 rm -f conf$$ conf$$.exe conf$$.file
17006 if test -d conf$$.dir; then
17007 rm -f conf$$.dir/conf$$.file
17010 mkdir conf$$.dir 2>/dev/null
17012 if (echo >conf$$.file) 2>/dev/null; then
17013 if ln -s conf$$.file conf$$ 2>/dev/null; then
17015 # ... but there are two gotchas:
17016 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17017 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17018 # In both cases, we have to default to `cp -p'.
17019 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17021 elif ln conf$$.file conf$$ 2>/dev/null; then
17029 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17030 rmdir conf$$.dir 2>/dev/null
17035 # Create "$as_dir" as a directory, including parents if necessary.
17040 -*) as_dir=./$as_dir;;
17042 test -d "$as_dir" || eval $as_mkdir_p || {
17046 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17047 *) as_qdir=$as_dir;;
17049 as_dirs="'$as_qdir' $as_dirs"
17050 as_dir=`$as_dirname -- "$as_dir" ||
17051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17052 X"$as_dir" : 'X\(//\)[^/]' \| \
17053 X"$as_dir" : 'X\(//\)$' \| \
17054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17055 $as_echo X"$as_dir" |
17056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17060 /^X\(\/\/\)[^/].*/{
17073 test -d "$as_dir" && break
17075 test -z "$as_dirs" || eval "mkdir $as_dirs"
17076 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17080 if mkdir -p . 2>/dev/null; then
17081 as_mkdir_p='mkdir -p "$as_dir"'
17083 test -d ./-p && rmdir ./-p
17087 if test -x / >/dev/null 2>&1; then
17088 as_test_x='test -x'
17090 if ls -dL / >/dev/null 2>&1; then
17097 if test -d "$1"; then
17103 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17104 ???[sx]*):;;*)false;;esac;fi
17108 as_executable_p=$as_test_x
17110 # Sed expression to map a string onto a valid CPP name.
17111 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17113 # Sed expression to map a string onto a valid variable name.
17114 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17118 ## ----------------------------------- ##
17119 ## Main body of $CONFIG_STATUS script. ##
17120 ## ----------------------------------- ##
17122 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17125 # Save the log message, to keep $0 and so on meaningful, and to
17126 # report actual input values of CONFIG_FILES etc. instead of their
17127 # values after options handling.
17129 This file was extended by Conky $as_me 2.0.2_pre1274, which was
17130 generated by GNU Autoconf 2.65. Invocation command line was
17132 CONFIG_FILES = $CONFIG_FILES
17133 CONFIG_HEADERS = $CONFIG_HEADERS
17134 CONFIG_LINKS = $CONFIG_LINKS
17135 CONFIG_COMMANDS = $CONFIG_COMMANDS
17138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17143 case $ac_config_files in *"
17144 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17147 case $ac_config_headers in *"
17148 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17153 # Files that config.status was made for.
17154 config_files="$ac_config_files"
17155 config_headers="$ac_config_headers"
17156 config_commands="$ac_config_commands"
17160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17162 \`$as_me' instantiates files and other configuration actions
17163 from templates according to the current configuration. Unless the files
17164 and actions are specified as TAGs, all are instantiated by default.
17166 Usage: $0 [OPTION]... [TAG]...
17168 -h, --help print this help, then exit
17169 -V, --version print version number and configuration settings, then exit
17170 --config print configuration, then exit
17171 -q, --quiet, --silent
17172 do not print progress messages
17173 -d, --debug don't remove temporary files
17174 --recheck update $as_me by reconfiguring in the same conditions
17175 --file=FILE[:TEMPLATE]
17176 instantiate the configuration file FILE
17177 --header=FILE[:TEMPLATE]
17178 instantiate the configuration header FILE
17180 Configuration files:
17183 Configuration headers:
17186 Configuration commands:
17189 Report bugs to <brenden1@users.sourceforge.net>."
17192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17193 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17195 Conky config.status 2.0.2_pre1274
17196 configured by $0, generated by GNU Autoconf 2.65,
17197 with options \\"\$ac_cs_config\\"
17199 Copyright (C) 2009 Free Software Foundation, Inc.
17200 This config.status script is free software; the Free Software Foundation
17201 gives unlimited permission to copy, distribute and modify it."
17208 test -n "\$AWK" || AWK=awk
17211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17212 # The default lists apply if the user does not specify any file.
17218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17230 # Handling of the options.
17231 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17233 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17234 $as_echo "$ac_cs_version"; exit ;;
17235 --config | --confi | --conf | --con | --co | --c )
17236 $as_echo "$ac_cs_config"; exit ;;
17237 --debug | --debu | --deb | --de | --d | -d )
17239 --file | --fil | --fi | --f )
17242 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17244 as_fn_append CONFIG_FILES " '$ac_optarg'"
17245 ac_need_defaults=false;;
17246 --header | --heade | --head | --hea )
17249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17251 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17252 ac_need_defaults=false;;
17254 # Conflict between --help and --header
17255 as_fn_error "ambiguous option: \`$1'
17256 Try \`$0 --help' for more information.";;
17257 --help | --hel | -h )
17258 $as_echo "$ac_cs_usage"; exit ;;
17259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17263 # This is an error.
17264 -*) as_fn_error "unrecognized option: \`$1'
17265 Try \`$0 --help' for more information." ;;
17267 *) as_fn_append ac_config_targets " $1"
17268 ac_need_defaults=false ;;
17274 ac_configure_extra_args=
17276 if $ac_cs_silent; then
17278 ac_configure_extra_args="$ac_configure_extra_args --silent"
17282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17283 if \$ac_cs_recheck; then
17284 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17286 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17287 CONFIG_SHELL='$SHELL'
17288 export CONFIG_SHELL
17293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17298 ## Running $as_me. ##
17304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17308 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17311 # The HP-UX ksh and POSIX shell print the target directory to stdout
17312 # if CDPATH is set.
17313 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17315 sed_quote_subst='$sed_quote_subst'
17316 double_quote_subst='$double_quote_subst'
17317 delay_variable_subst='$delay_variable_subst'
17318 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17319 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17320 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17321 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17322 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17323 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17324 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17325 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17326 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17327 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17328 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17329 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17330 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17331 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17332 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17333 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17334 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17335 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17336 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17337 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17338 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17339 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17340 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17341 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17342 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17343 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17344 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17345 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17346 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17347 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17348 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17349 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17350 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17351 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17352 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17353 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17354 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17355 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17356 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17357 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17358 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17359 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17360 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17361 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17362 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"`'
17363 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"`'
17364 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17365 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17366 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17367 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17368 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17369 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17370 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17371 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17372 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17373 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17374 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17375 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17376 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17377 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17378 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17379 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17380 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17381 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17382 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17383 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17384 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17385 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17386 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17387 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17388 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17389 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17390 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17391 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17392 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17393 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17394 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17395 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17396 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17397 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17398 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17399 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17400 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17401 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17402 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17403 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17404 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17405 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17406 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17407 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17408 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17409 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17410 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17411 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17412 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17413 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17414 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17415 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17416 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17417 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17418 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17419 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17420 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17421 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17422 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17423 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17424 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17425 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17426 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17427 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17428 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17429 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17430 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17431 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17432 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17433 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17434 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17435 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17438 LTCFLAGS='$LTCFLAGS'
17439 compiler='$compiler_DEFAULT'
17441 # Quote evaled strings.
17453 deplibs_check_method \
17462 lt_cv_sys_global_symbol_pipe \
17463 lt_cv_sys_global_symbol_to_cdecl \
17464 lt_cv_sys_global_symbol_to_c_name_address \
17465 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17468 lt_prog_compiler_no_builtin_flag \
17469 lt_prog_compiler_wl \
17470 lt_prog_compiler_pic \
17471 lt_prog_compiler_static \
17472 lt_cv_prog_compiler_c_o \
17480 export_dynamic_flag_spec \
17481 whole_archive_flag_spec \
17482 compiler_needs_object \
17484 allow_undefined_flag \
17485 no_undefined_flag \
17486 hardcode_libdir_flag_spec \
17487 hardcode_libdir_flag_spec_ld \
17488 hardcode_libdir_separator \
17493 variables_saved_for_relink \
17495 library_names_spec \
17500 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17501 *[\\\\\\\`\\"\\\$]*)
17502 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17505 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17510 # Double-quote double-evaled strings.
17511 for var in reload_cmds \
17512 old_postinstall_cmds \
17513 old_postuninstall_cmds \
17515 extract_expsyms_cmds \
17516 old_archive_from_new_cmds \
17517 old_archive_from_expsyms_cmds \
17519 archive_expsym_cmds \
17521 module_expsym_cmds \
17522 export_symbols_cmds \
17525 postuninstall_cmds \
17527 sys_lib_search_path_spec \
17528 sys_lib_dlsearch_path_spec; do
17529 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17530 *[\\\\\\\`\\"\\\$]*)
17531 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17534 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17539 # Fix-up fallback echo if it was mangled by the above quoting rules.
17541 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17545 ac_aux_dir='$ac_aux_dir'
17546 xsi_shell='$xsi_shell'
17547 lt_shell_append='$lt_shell_append'
17549 # See if we are running on zsh, and set the options which allow our
17550 # commands through without removal of \ escapes INIT.
17551 if test -n "\${ZSH_VERSION+set}" ; then
17552 setopt NO_GLOB_SUBST
17558 TIMESTAMP='$TIMESTAMP'
17567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17569 # Handling of arguments.
17570 for ac_config_target in $ac_config_targets
17572 case $ac_config_target in
17573 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17574 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17575 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17576 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17577 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
17578 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17579 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17580 "src/build.h") CONFIG_FILES="$CONFIG_FILES src/build.h" ;;
17581 "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;;
17583 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17588 # If the user did not use the arguments to specify the items to instantiate,
17589 # then the envvar interface is used. Set only those that are not.
17590 # We use the long form for the default assignment because of an extremely
17591 # bizarre bug on SunOS 4.1.3.
17592 if $ac_need_defaults; then
17593 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17594 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17595 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17598 # Have a temporary directory for convenience. Make it in the build tree
17599 # simply because there is no reason against having it here, and in addition,
17600 # creating and moving files from /tmp can sometimes cause problems.
17601 # Hook for its removal unless debugging.
17602 # Note that there is a small window in which the directory will not be cleaned:
17603 # after its creation but before its name has been assigned to `$tmp'.
17607 trap 'exit_status=$?
17608 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17610 trap 'as_fn_exit 1' 1 2 13 15
17612 # Create a (secure) tmp directory for tmp files.
17615 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17616 test -n "$tmp" && test -d "$tmp"
17619 tmp=./conf$$-$RANDOM
17620 (umask 077 && mkdir "$tmp")
17621 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17623 # Set up the scripts for CONFIG_FILES section.
17624 # No need to generate them if there are no CONFIG_FILES.
17625 # This happens for instance with `./config.status config.h'.
17626 if test -n "$CONFIG_FILES"; then
17629 ac_cr=`echo X | tr X '\015'`
17630 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17631 # But we know of no other shell where ac_cr would be empty at this
17632 # point, so we can use a bashism as a fallback.
17633 if test "x$ac_cr" = x; then
17634 eval ac_cr=\$\'\\r\'
17636 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17637 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17640 ac_cs_awk_cr=$ac_cr
17643 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17648 echo "cat >conf$$subs.awk <<_ACEOF" &&
17649 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17651 } >conf$$subs.sh ||
17652 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17653 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17655 for ac_last_try in false false false false false :; do
17656 . ./conf$$subs.sh ||
17657 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17659 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17660 if test $ac_delim_n = $ac_delim_num; then
17662 elif $ac_last_try; then
17663 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17668 rm -f conf$$subs.sh
17670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17671 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17675 s/^/S["/; s/!.*/"]=/
17685 s/\(.\{148\}\)..*/\1/
17687 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17692 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17699 s/\(.\{148\}\)..*/\1/
17701 s/["\\]/\\&/g; s/^/"/; s/$/"/
17705 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17710 ' <conf$$subs.awk | sed '
17715 ' >>$CONFIG_STATUS || ac_write_fail=1
17716 rm -f conf$$subs.awk
17717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17719 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17720 for (key in S) S_is_set[key] = 1
17726 nfields = split(line, field, "@")
17728 len = length(field[1])
17729 for (i = 2; i < nfields; i++) {
17731 keylen = length(key)
17732 if (S_is_set[key]) {
17734 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17735 len += length(value) + length(field[++i])
17746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17747 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17748 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17751 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17752 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17755 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17756 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17757 # trailing colons and then remove the whole line if VPATH becomes empty
17758 # (actually we leave an empty line to preserve line numbers).
17759 if test "x$srcdir" = x.; then
17760 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17761 s/:*\$(srcdir):*/:/
17762 s/:*\${srcdir}:*/:/
17764 s/^\([^=]*=[ ]*\):*/\1/
17770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17771 fi # test -n "$CONFIG_FILES"
17773 # Set up the scripts for CONFIG_HEADERS section.
17774 # No need to generate them if there are no CONFIG_HEADERS.
17775 # This happens for instance with `./config.status Makefile'.
17776 if test -n "$CONFIG_HEADERS"; then
17777 cat >"$tmp/defines.awk" <<\_ACAWK ||
17781 # Transform confdefs.h into an awk script `defines.awk', embedded as
17782 # here-document in config.status, that substitutes the proper values into
17783 # config.h.in to produce config.h.
17785 # Create a delimiter string that does not exist in confdefs.h, to ease
17786 # handling of long lines.
17788 for ac_last_try in false false :; do
17789 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17790 if test -z "$ac_t"; then
17792 elif $ac_last_try; then
17793 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17799 # For the awk script, D is an array of macro values keyed by name,
17800 # likewise P contains macro parameters if any. Preserve backslash
17801 # newline sequences.
17803 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17805 s/.\{148\}/&'"$ac_delim"'/g
17808 s/^[ ]*#[ ]*define[ ][ ]*/ /
17815 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17817 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17821 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17822 D["\1"]=" \3\\\\\\n"\\/p
17824 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17829 s/.\{148\}/&'"$ac_delim"'/g
17834 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17837 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17839 ' <confdefs.h | sed '
17840 s/'"$ac_delim"'/"\\\
17841 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17844 for (key in D) D_is_set[key] = 1
17847 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17849 split(line, arg, " ")
17850 if (arg[1] == "#") {
17854 defundef = substr(arg[1], 2)
17857 split(mac1, mac2, "(") #)
17859 prefix = substr(line, 1, index(line, defundef) - 1)
17860 if (D_is_set[macro]) {
17861 # Preserve the white space surrounding the "#".
17862 print prefix "define", macro P[macro] D[macro]
17865 # Replace #undef with comments. This is necessary, for example,
17866 # in the case of _POSIX_SOURCE, which is predefined and required
17867 # on some systems where configure will not decide to define it.
17868 if (defundef == "undef") {
17869 print "/*", prefix defundef, macro, "*/"
17877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17878 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17879 fi # test -n "$CONFIG_HEADERS"
17882 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17887 :[FHLC]) ac_mode=$ac_tag; continue;;
17889 case $ac_mode$ac_tag in
17891 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17892 :[FH]-) ac_tag=-:-;;
17893 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17910 -) ac_f="$tmp/stdin";;
17911 *) # Look for the file first in the build tree, then in the source tree
17912 # (if the path is not absolute). The absolute path cannot be DOS-style,
17913 # because $ac_f cannot contain `:'.
17917 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17919 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17921 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17922 as_fn_append ac_file_inputs " '$ac_f'"
17925 # Let's still pretend it is `configure' which instantiates (i.e., don't
17926 # use $as_me), people would be surprised to read:
17927 # /* config.h. Generated by config.status. */
17928 configure_input='Generated from '`
17929 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17931 if test x"$ac_file" != x-; then
17932 configure_input="$ac_file. $configure_input"
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17934 $as_echo "$as_me: creating $ac_file" >&6;}
17936 # Neutralize special characters interpreted by sed in replacement strings.
17937 case $configure_input in #(
17938 *\&* | *\|* | *\\* )
17939 ac_sed_conf_input=`$as_echo "$configure_input" |
17940 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17941 *) ac_sed_conf_input=$configure_input;;
17945 *:-:* | *:-) cat >"$tmp/stdin" \
17946 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17951 ac_dir=`$as_dirname -- "$ac_file" ||
17952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17953 X"$ac_file" : 'X\(//\)[^/]' \| \
17954 X"$ac_file" : 'X\(//\)$' \| \
17955 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17956 $as_echo X"$ac_file" |
17957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17961 /^X\(\/\/\)[^/].*/{
17974 as_dir="$ac_dir"; as_fn_mkdir_p
17978 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17980 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17981 # A ".." for each directory in $ac_dir_suffix.
17982 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17983 case $ac_top_builddir_sub in
17984 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17985 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17988 ac_abs_top_builddir=$ac_pwd
17989 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17990 # for backward compatibility:
17991 ac_top_builddir=$ac_top_build_prefix
17994 .) # We are building in place.
17996 ac_top_srcdir=$ac_top_builddir_sub
17997 ac_abs_top_srcdir=$ac_pwd ;;
17998 [\\/]* | ?:[\\/]* ) # Absolute name.
17999 ac_srcdir=$srcdir$ac_dir_suffix;
18000 ac_top_srcdir=$srcdir
18001 ac_abs_top_srcdir=$srcdir ;;
18002 *) # Relative name.
18003 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18004 ac_top_srcdir=$ac_top_build_prefix$srcdir
18005 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18007 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18017 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18018 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18020 ac_MKDIR_P=$MKDIR_P
18022 [\\/$]* | ?:[\\/]* ) ;;
18023 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18028 # If the template does not know about datarootdir, expand it.
18029 # FIXME: This hack should be removed a few years after 2.60.
18030 ac_datarootdir_hack=; ac_datarootdir_seen=
18041 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18042 *datarootdir*) ac_datarootdir_seen=yes;;
18043 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18045 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18048 ac_datarootdir_hack='
18049 s&@datadir@&$datadir&g
18050 s&@docdir@&$docdir&g
18051 s&@infodir@&$infodir&g
18052 s&@localedir@&$localedir&g
18053 s&@mandir@&$mandir&g
18054 s&\\\${datarootdir}&$datarootdir&g' ;;
18058 # Neutralize VPATH when `$srcdir' = `.'.
18059 # Shell code in configure.ac might set extrasub.
18060 # FIXME: do we really want to maintain this feature?
18061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18062 ac_sed_extra="$ac_vpsub
18065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18068 s|@configure_input@|$ac_sed_conf_input|;t t
18069 s&@top_builddir@&$ac_top_builddir_sub&;t t
18070 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18071 s&@srcdir@&$ac_srcdir&;t t
18072 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18073 s&@top_srcdir@&$ac_top_srcdir&;t t
18074 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18075 s&@builddir@&$ac_builddir&;t t
18076 s&@abs_builddir@&$ac_abs_builddir&;t t
18077 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18078 s&@INSTALL@&$ac_INSTALL&;t t
18079 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18080 $ac_datarootdir_hack
18082 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18083 || as_fn_error "could not create $ac_file" "$LINENO" 5
18085 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18086 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18087 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18089 which seems to be undefined. Please make sure it is defined." >&5
18090 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18091 which seems to be undefined. Please make sure it is defined." >&2;}
18095 -) cat "$tmp/out" && rm -f "$tmp/out";;
18096 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18098 || as_fn_error "could not create $ac_file" "$LINENO" 5
18104 if test x"$ac_file" != x-; then
18106 $as_echo "/* $configure_input */" \
18107 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18108 } >"$tmp/config.h" \
18109 || as_fn_error "could not create $ac_file" "$LINENO" 5
18110 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18112 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18115 mv "$tmp/config.h" "$ac_file" \
18116 || as_fn_error "could not create $ac_file" "$LINENO" 5
18119 $as_echo "/* $configure_input */" \
18120 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18121 || as_fn_error "could not create -" "$LINENO" 5
18123 # Compute "$ac_file"'s index in $config_headers.
18126 for _am_header in $config_headers :; do
18127 case $_am_header in
18128 $_am_arg | $_am_arg:* )
18131 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18134 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18135 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18136 X"$_am_arg" : 'X\(//\)[^/]' \| \
18137 X"$_am_arg" : 'X\(//\)$' \| \
18138 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18139 $as_echo X"$_am_arg" |
18140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18144 /^X\(\/\/\)[^/].*/{
18156 s/.*/./; q'`/stamp-h$_am_stamp_count
18159 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18160 $as_echo "$as_me: executing $ac_file commands" >&6;}
18165 case $ac_file$ac_mode in
18166 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18167 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18168 # are listed without --file. Let's play safe and only enable the eval
18169 # if we detect the quoting.
18170 case $CONFIG_FILES in
18171 *\'*) eval set x "$CONFIG_FILES" ;;
18172 *) set x $CONFIG_FILES ;;
18177 # Strip MF so we end up with the name of the file.
18178 mf=`echo "$mf" | sed -e 's/:.*$//'`
18179 # Check whether this is an Automake generated Makefile or not.
18180 # We used to match only the files named `Makefile.in', but
18181 # some people rename them; so instead we look at the file content.
18182 # Grep'ing the first line is not enough: some people post-process
18183 # each Makefile.in and add a new line on top of each file to say so.
18184 # Grep'ing the whole file is not good either: AIX grep has a line
18185 # limit of 2048, but all sed's we know have understand at least 4000.
18186 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18187 dirpart=`$as_dirname -- "$mf" ||
18188 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18189 X"$mf" : 'X\(//\)[^/]' \| \
18190 X"$mf" : 'X\(//\)$' \| \
18191 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18197 /^X\(\/\/\)[^/].*/{
18213 # Extract the definition of DEPDIR, am__include, and am__quote
18214 # from the Makefile without running `make'.
18215 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18216 test -z "$DEPDIR" && continue
18217 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18218 test -z "am__include" && continue
18219 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18220 # When using ansi2knr, U may be empty or an underscore; expand it
18221 U=`sed -n 's/^U = //p' < "$mf"`
18222 # Find all dependency output files, they are included files with
18223 # $(DEPDIR) in their names. We invoke sed twice because it is the
18224 # simplest approach to changing $(DEPDIR) to its actual value in the
18226 for file in `sed -n "
18227 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18228 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18229 # Make sure the directory exists.
18230 test -f "$dirpart/$file" && continue
18231 fdir=`$as_dirname -- "$file" ||
18232 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18233 X"$file" : 'X\(//\)[^/]' \| \
18234 X"$file" : 'X\(//\)$' \| \
18235 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18236 $as_echo X"$file" |
18237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18241 /^X\(\/\/\)[^/].*/{
18254 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18255 # echo "creating $dirpart/$file"
18256 echo '# dummy' > "$dirpart/$file"
18263 # See if we are running on zsh, and set the options which allow our
18264 # commands through without removal of \ escapes.
18265 if test -n "${ZSH_VERSION+set}" ; then
18266 setopt NO_GLOB_SUBST
18269 cfgfile="${ofile}T"
18270 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18273 cat <<_LT_EOF >> "$cfgfile"
18276 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18277 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18279 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18281 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18282 # 2006, 2007, 2008 Free Software Foundation, Inc.
18283 # Written by Gordon Matzigkeit, 1996
18285 # This file is part of GNU Libtool.
18287 # GNU Libtool is free software; you can redistribute it and/or
18288 # modify it under the terms of the GNU General Public License as
18289 # published by the Free Software Foundation; either version 2 of
18290 # the License, or (at your option) any later version.
18292 # As a special exception to the GNU General Public License,
18293 # if you distribute this file as part of a program or library that
18294 # is built using GNU Libtool, you may include this file under the
18295 # same distribution terms that you use for the rest of that program.
18297 # GNU Libtool is distributed in the hope that it will be useful,
18298 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18299 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18300 # GNU General Public License for more details.
18302 # You should have received a copy of the GNU General Public License
18303 # along with GNU Libtool; see the file COPYING. If not, a copy
18304 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18305 # obtained by writing to the Free Software Foundation, Inc.,
18306 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18309 # The names of the tagged configurations supported by this script.
18312 # ### BEGIN LIBTOOL CONFIG
18314 # A sed program that does not truncate output.
18317 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18318 Xsed="\$SED -e 1s/^X//"
18320 # A grep program that handles long lines.
18326 # A literal string matcher.
18329 # Which release of libtool.m4 was used?
18330 macro_version=$macro_version
18331 macro_revision=$macro_revision
18333 # Whether or not to build shared libraries.
18334 build_libtool_libs=$enable_shared
18336 # Whether or not to build static libraries.
18337 build_old_libs=$enable_static
18339 # What type of objects to build.
18342 # Whether or not to optimize for fast installation.
18343 fast_install=$enable_fast_install
18346 host_alias=$host_alias
18350 # The build system.
18351 build_alias=$build_alias
18355 # A BSD- or MS-compatible name lister.
18358 # Whether we need soft or hard links.
18361 # What is the maximum length of a command?
18362 max_cmd_len=$max_cmd_len
18364 # Object file suffix (normally "o").
18367 # Executable file suffix (normally "").
18370 # whether the shell understands "unset".
18373 # turn spaces into newlines.
18376 # turn newlines into spaces.
18379 # How to create reloadable object files.
18380 reload_flag=$lt_reload_flag
18381 reload_cmds=$lt_reload_cmds
18383 # An object symbol dumper.
18384 OBJDUMP=$lt_OBJDUMP
18386 # Method to check whether dependent libraries are shared objects.
18387 deplibs_check_method=$lt_deplibs_check_method
18389 # Command to use when deplibs_check_method == "file_magic".
18390 file_magic_cmd=$lt_file_magic_cmd
18394 AR_FLAGS=$lt_AR_FLAGS
18396 # A symbol stripping program.
18399 # Commands used to install an old-style archive.
18401 old_postinstall_cmds=$lt_old_postinstall_cmds
18402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18407 # LTCC compiler flags.
18408 LTCFLAGS=$lt_CFLAGS
18410 # Take the output of nm and produce a listing of raw symbols and C names.
18411 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18413 # Transform the output of nm in a proper C declaration.
18414 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18416 # Transform the output of nm in a C name address pair.
18417 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18419 # Transform the output of nm in a C name address pair when lib prefix is needed.
18420 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18422 # The name of the directory that contains temporary libtool files.
18425 # Shell to use when invoking shell scripts.
18428 # An echo program that does not interpret backslashes.
18431 # Used to examine libraries when file_magic_cmd begins with "file".
18432 MAGIC_CMD=$MAGIC_CMD
18434 # Must we lock files when doing compilation?
18435 need_locks=$lt_need_locks
18437 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18438 DSYMUTIL=$lt_DSYMUTIL
18440 # Tool to change global to local symbols on Mac OS X.
18443 # Tool to manipulate fat objects and archives on Mac OS X.
18446 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18449 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18450 OTOOL64=$lt_OTOOL64
18452 # Old archive suffix (normally "a").
18455 # Shared library suffix (normally ".so").
18456 shrext_cmds=$lt_shrext_cmds
18458 # The commands to extract the exported symbol list from a shared archive.
18459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18461 # Variables whose values should be saved in libtool wrapper scripts and
18462 # restored at link time.
18463 variables_saved_for_relink=$lt_variables_saved_for_relink
18465 # Do we need the "lib" prefix for modules?
18466 need_lib_prefix=$need_lib_prefix
18468 # Do we need a version for libraries?
18469 need_version=$need_version
18471 # Library versioning type.
18472 version_type=$version_type
18474 # Shared library runtime path variable.
18475 runpath_var=$runpath_var
18477 # Shared library path variable.
18478 shlibpath_var=$shlibpath_var
18480 # Is shlibpath searched before the hard-coded library search path?
18481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18483 # Format of library name prefix.
18484 libname_spec=$lt_libname_spec
18486 # List of archive names. First name is the real one, the rest are links.
18487 # The last name is the one that the linker finds with -lNAME
18488 library_names_spec=$lt_library_names_spec
18490 # The coded name of the library, if different from the real name.
18491 soname_spec=$lt_soname_spec
18493 # Command to use after installation of a shared archive.
18494 postinstall_cmds=$lt_postinstall_cmds
18496 # Command to use after uninstallation of a shared archive.
18497 postuninstall_cmds=$lt_postuninstall_cmds
18499 # Commands used to finish a libtool library installation in a directory.
18500 finish_cmds=$lt_finish_cmds
18502 # As "finish_cmds", except a single script fragment to be evaled but
18504 finish_eval=$lt_finish_eval
18506 # Whether we should hardcode library paths into libraries.
18507 hardcode_into_libs=$hardcode_into_libs
18509 # Compile-time system search path for libraries.
18510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18512 # Run-time system search path for libraries.
18513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18515 # Whether dlopen is supported.
18516 dlopen_support=$enable_dlopen
18518 # Whether dlopen of programs is supported.
18519 dlopen_self=$enable_dlopen_self
18521 # Whether dlopen of statically linked programs is supported.
18522 dlopen_self_static=$enable_dlopen_self_static
18524 # Commands to strip libraries.
18525 old_striplib=$lt_old_striplib
18526 striplib=$lt_striplib
18529 # The linker used to build libraries.
18532 # Commands used to build an old-style archive.
18533 old_archive_cmds=$lt_old_archive_cmds
18535 # A language specific compiler.
18538 # Is the compiler the GNU compiler?
18541 # Compiler flag to turn off builtin functions.
18542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18544 # How to pass a linker flag through the compiler.
18545 wl=$lt_lt_prog_compiler_wl
18547 # Additional compiler flags for building library objects.
18548 pic_flag=$lt_lt_prog_compiler_pic
18550 # Compiler flag to prevent dynamic linking.
18551 link_static_flag=$lt_lt_prog_compiler_static
18553 # Does compiler simultaneously support -c and -o options?
18554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18556 # Whether or not to add -lc for building shared libraries.
18557 build_libtool_need_lc=$archive_cmds_need_lc
18559 # Whether or not to disallow shared libs when runtime libs are static.
18560 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18562 # Compiler flag to allow reflexive dlopens.
18563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18565 # Compiler flag to generate shared objects directly from archives.
18566 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18568 # Whether the compiler copes with passing no objects directly.
18569 compiler_needs_object=$lt_compiler_needs_object
18571 # Create an old-style archive from a shared archive.
18572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18574 # Create a temporary old-style archive to link instead of a shared archive.
18575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18577 # Commands used to build a shared archive.
18578 archive_cmds=$lt_archive_cmds
18579 archive_expsym_cmds=$lt_archive_expsym_cmds
18581 # Commands used to build a loadable module if different from building
18582 # a shared archive.
18583 module_cmds=$lt_module_cmds
18584 module_expsym_cmds=$lt_module_expsym_cmds
18586 # Whether we are building with GNU ld or not.
18587 with_gnu_ld=$lt_with_gnu_ld
18589 # Flag that allows shared libraries with undefined symbols to be built.
18590 allow_undefined_flag=$lt_allow_undefined_flag
18592 # Flag that enforces no undefined symbols.
18593 no_undefined_flag=$lt_no_undefined_flag
18595 # Flag to hardcode \$libdir into a binary during linking.
18596 # This must work even if \$libdir does not exist
18597 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18599 # If ld is used when linking, flag to hardcode \$libdir into a binary
18600 # during linking. This must work even if \$libdir does not exist.
18601 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18603 # Whether we need a single "-rpath" flag with a separated argument.
18604 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18606 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18607 # DIR into the resulting binary.
18608 hardcode_direct=$hardcode_direct
18610 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18611 # DIR into the resulting binary and the resulting library dependency is
18612 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18613 # library is relocated.
18614 hardcode_direct_absolute=$hardcode_direct_absolute
18616 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18617 # into the resulting binary.
18618 hardcode_minus_L=$hardcode_minus_L
18620 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18621 # into the resulting binary.
18622 hardcode_shlibpath_var=$hardcode_shlibpath_var
18624 # Set to "yes" if building a shared library automatically hardcodes DIR
18625 # into the library and all subsequent libraries and executables linked
18627 hardcode_automatic=$hardcode_automatic
18629 # Set to yes if linker adds runtime paths of dependent libraries
18630 # to runtime path list.
18631 inherit_rpath=$inherit_rpath
18633 # Whether libtool must link a program against all its dependency libraries.
18634 link_all_deplibs=$link_all_deplibs
18636 # Fix the shell variable \$srcfile for the compiler.
18637 fix_srcfile_path=$lt_fix_srcfile_path
18639 # Set to "yes" if exported symbols are required.
18640 always_export_symbols=$always_export_symbols
18642 # The commands to list exported symbols.
18643 export_symbols_cmds=$lt_export_symbols_cmds
18645 # Symbols that should not be listed in the preloaded symbols.
18646 exclude_expsyms=$lt_exclude_expsyms
18648 # Symbols that must always be exported.
18649 include_expsyms=$lt_include_expsyms
18651 # Commands necessary for linking programs (against libraries) with templates.
18652 prelink_cmds=$lt_prelink_cmds
18654 # Specify filename containing input files.
18655 file_list_spec=$lt_file_list_spec
18657 # How to hardcode a shared library path into an executable.
18658 hardcode_action=$hardcode_action
18660 # ### END LIBTOOL CONFIG
18666 cat <<\_LT_EOF >> "$cfgfile"
18667 # AIX sometimes has problems with the GCC collect2 program. For some
18668 # reason, if we set the COLLECT_NAMES environment variable, the problems
18669 # vanish in a puff of smoke.
18670 if test "X${COLLECT_NAMES+set}" != Xset; then
18672 export COLLECT_NAMES
18679 ltmain="$ac_aux_dir/ltmain.sh"
18682 # We use sed instead of cat because bash on DJGPP gets confused if
18683 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18684 # text mode, it properly converts lines to CR/LF. This bash problem
18685 # is reportedly fixed, but why not run on old versions too?
18686 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18687 || (rm -f "$cfgfile"; exit 1)
18691 cat << \_LT_EOF >> "$cfgfile"
18693 # func_dirname file append nondir_replacement
18694 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18695 # otherwise set result to NONDIR_REPLACEMENT.
18699 */*) func_dirname_result="${1%/*}${2}" ;;
18700 * ) func_dirname_result="${3}" ;;
18704 # func_basename file
18707 func_basename_result="${1##*/}"
18710 # func_dirname_and_basename file append nondir_replacement
18711 # perform func_basename and func_dirname in a single function
18713 # dirname: Compute the dirname of FILE. If nonempty,
18714 # add APPEND to the result, otherwise set result
18715 # to NONDIR_REPLACEMENT.
18716 # value returned in "$func_dirname_result"
18717 # basename: Compute filename of FILE.
18718 # value retuned in "$func_basename_result"
18719 # Implementation must be kept synchronized with func_dirname
18720 # and func_basename. For efficiency, we do not delegate to
18721 # those functions but instead duplicate the functionality here.
18722 func_dirname_and_basename ()
18725 */*) func_dirname_result="${1%/*}${2}" ;;
18726 * ) func_dirname_result="${3}" ;;
18728 func_basename_result="${1##*/}"
18731 # func_stripname prefix suffix name
18732 # strip PREFIX and SUFFIX off of NAME.
18733 # PREFIX and SUFFIX must not contain globbing or regex special
18734 # characters, hashes, percent signs, but SUFFIX may contain a leading
18735 # dot (in which case that matches only a dot).
18738 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18739 # positional parameters, so assign one to ordinary parameter first.
18740 func_stripname_result=${3}
18741 func_stripname_result=${func_stripname_result#"${1}"}
18742 func_stripname_result=${func_stripname_result%"${2}"}
18748 func_opt_split_opt=${1%%=*}
18749 func_opt_split_arg=${1#*=}
18756 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18757 *) func_lo2o_result=${1} ;;
18761 # func_xform libobj-or-source
18764 func_xform_result=${1%.*}.lo
18767 # func_arith arithmetic-term...
18770 func_arith_result=$(( $* ))
18774 # STRING may not start with a hyphen.
18777 func_len_result=${#1}
18782 *) # Bourne compatible functions.
18783 cat << \_LT_EOF >> "$cfgfile"
18785 # func_dirname file append nondir_replacement
18786 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18787 # otherwise set result to NONDIR_REPLACEMENT.
18790 # Extract subdirectory from the argument.
18791 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18792 if test "X$func_dirname_result" = "X${1}"; then
18793 func_dirname_result="${3}"
18795 func_dirname_result="$func_dirname_result${2}"
18799 # func_basename file
18802 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18806 # func_stripname prefix suffix name
18807 # strip PREFIX and SUFFIX off of NAME.
18808 # PREFIX and SUFFIX must not contain globbing or regex special
18809 # characters, hashes, percent signs, but SUFFIX may contain a leading
18810 # dot (in which case that matches only a dot).
18811 # func_strip_suffix prefix name
18815 .*) func_stripname_result=`$ECHO "X${3}" \
18816 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18817 *) func_stripname_result=`$ECHO "X${3}" \
18818 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18823 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18824 my_sed_long_arg='1s/^-[^=]*=//'
18829 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18830 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18836 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18839 # func_xform libobj-or-source
18842 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18845 # func_arith arithmetic-term...
18848 func_arith_result=`expr "$@"`
18852 # STRING may not start with a hyphen.
18855 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18861 case $lt_shell_append in
18863 cat << \_LT_EOF >> "$cfgfile"
18865 # func_append var value
18866 # Append VALUE to the end of shell variable VAR.
18874 cat << \_LT_EOF >> "$cfgfile"
18876 # func_append var value
18877 # Append VALUE to the end of shell variable VAR.
18888 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18889 || (rm -f "$cfgfile"; exit 1)
18891 mv -f "$cfgfile" "$ofile" ||
18892 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18903 ac_clean_files=$ac_clean_files_save
18905 test $ac_write_fail = 0 ||
18906 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18909 # configure is writing to config.log, and then calls config.status.
18910 # config.status does its own redirection, appending to config.log.
18911 # Unfortunately, on DOS this fails, as config.log is still kept open
18912 # by configure, so config.status won't be able to write to it; its
18913 # output is simply discarded. So we exec the FD to /dev/null,
18914 # effectively closing config.log, so it can be properly (re)opened and
18915 # appended to by config.status. When coming back to configure, we
18916 # need to make the FD available again.
18917 if test "$no_create" != yes; then
18919 ac_config_status_args=
18920 test "$silent" = yes &&
18921 ac_config_status_args="$ac_config_status_args --quiet"
18923 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18925 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18926 # would make configure fail if this is the last instruction.
18927 $ac_cs_success || as_fn_exit $?
18929 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18931 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18937 $PACKAGE $VERSION configured successfully:
18939 Installing into: $prefix
18940 System config dir: $sysconfdir
18941 C compiler flags: $conky_CFLAGS
18942 Libraries: $conky_LIBS
18943 Linker flags: $conky_LDFLAGS
18946 X11 support: $want_x11
18947 XDamage support: $want_xdamage
18948 XDBE support: $want_double_buffer
18949 Xft support: $want_xft
18950 ARGB support $want_argb
18953 Audacious: $want_audacious
18961 hddtemp: $want_hddtemp
18962 portmon: $want_portmon
18968 wireless: $want_wlan
18970 nvidia: $want_nvidia
18971 eve-online: $want_eve
18972 config-output: $want_config_output
18973 Imlib2: $want_imlib2
18974 ALSA mixer: $want_alsa
18975 apcupsd: $want_apcupsd
18976 I/O stats: $want_iostats
18977 ncurses: $want_ncurses
18979 * Lua ($want_lua) bindings:
18980 Cairo: $want_lua_cairo
18981 Imlib2: $want_lua_imlib2