changes related to temperature and layout
[monky] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Conky 2.0.2_pre1274.
4 #
5 # Report bugs to <brenden1@users.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
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 ## -------------------- ##
18
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 :
22   emulate sh
23   NULLCMD=:
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+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
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
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
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'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
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.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
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
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
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 || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
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 :
140   emulate sh
141   NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
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; }
160
161 exitcode=0
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 :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
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 :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
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 :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
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
211 fi; }
212 IFS=$as_save_IFS
213
214
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.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
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."
232   else
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."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
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
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
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 :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
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.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
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
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
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
422
423
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.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
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; }
446
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).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
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 ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
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'"
527
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'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
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
578       then
579         break
580       fi
581     done
582   fi
583
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
587     :
588   else
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'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
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
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
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.
614         ECHO='print -r'
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
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
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
629           # Cool, printf works
630           :
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
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export 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"
645         else
646           # maybe with a smaller string...
647           prev=:
648
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
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
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+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
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.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
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`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='Conky'
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'
707 PACKAGE_URL=''
708
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 #  include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 #  include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 ac_subst_vars='am__EXEEXT_FALSE
746 am__EXEEXT_TRUE
747 LTLIBOBJS
748 LIBOBJS
749 conky_LIBS
750 conky_CFLAGS
751 HAVE_DOCSTUFF_FALSE
752 HAVE_DOCSTUFF_TRUE
753 xsltproc_cmd
754 db2x_manxml_cmd
755 db2x_xsltproc_cmd
756 libxml2_LIBS
757 libxml2_CFLAGS
758 BUILD_CURL_FALSE
759 BUILD_CURL_TRUE
760 libcurl_LIBS
761 libcurl_CFLAGS
762 GLib2_LIBS
763 GLib2_CFLAGS
764 BUILD_NVIDIA_FALSE
765 BUILD_NVIDIA_TRUE
766 Xft_LIBS
767 Xft_CFLAGS
768 XDamage_LIBS
769 XDamage_CFLAGS
770 Xext_LIBS
771 Xext_CFLAGS
772 BUILD_ICONV_FALSE
773 BUILD_ICONV_TRUE
774 LTLIBICONV
775 LIBICONV
776 BUILD_PORT_MONITORS_FALSE
777 BUILD_PORT_MONITORS_TRUE
778 BUILD_WLAN_FALSE
779 BUILD_WLAN_TRUE
780 BUILD_LUA_IMLIB2_FALSE
781 BUILD_LUA_IMLIB2_TRUE
782 BUILD_LUA_CAIRO_FALSE
783 BUILD_LUA_CAIRO_TRUE
784 tolua_CFLAGS
785 tolua_LIBS
786 toluapp
787 cairo_xlib_LIBS
788 cairo_xlib_CFLAGS
789 cairo_LIBS
790 cairo_CFLAGS
791 LUA51_LIBS
792 LUA51_CFLAGS
793 LUA_LIBS
794 LUA_CFLAGS
795 BUILD_LUA_FALSE
796 BUILD_LUA_TRUE
797 BUILD_IMLIB2_FALSE
798 BUILD_IMLIB2_TRUE
799 Imlib2_LIBS
800 Imlib2_CFLAGS
801 X_EXTRA_LIBS
802 X_LIBS
803 X_PRE_LIBS
804 X_CFLAGS
805 XMKMF
806 X11_LIBS
807 X11_CFLAGS
808 BUILD_X11_FALSE
809 BUILD_X11_TRUE
810 BUILD_XOAP_FALSE
811 BUILD_XOAP_TRUE
812 BUILD_WEATHER_FALSE
813 BUILD_WEATHER_TRUE
814 BUILD_RSS_FALSE
815 BUILD_RSS_TRUE
816 BUILD_EVE_FALSE
817 BUILD_EVE_TRUE
818 XMMS2_LIBS
819 XMMS2_CFLAGS
820 BUILD_XMMS2_FALSE
821 BUILD_XMMS2_TRUE
822 BUILD_MOC_FALSE
823 BUILD_MOC_TRUE
824 BUILD_MPD_FALSE
825 BUILD_MPD_TRUE
826 BUILD_MATH_FALSE
827 BUILD_MATH_TRUE
828 BUILD_APCUPSD_FALSE
829 BUILD_APCUPSD_TRUE
830 BUILD_HDDTEMP_FALSE
831 BUILD_HDDTEMP_TRUE
832 BUILD_IBM_FALSE
833 BUILD_IBM_TRUE
834 BMPx_LIBS
835 BMPx_CFLAGS
836 BUILD_BMPX_FALSE
837 BUILD_BMPX_TRUE
838 Audacious_LIBS
839 Audacious_CFLAGS
840 BUILD_AUDACIOUS_FALSE
841 BUILD_AUDACIOUS_TRUE
842 BUILD_NCURSES_FALSE
843 BUILD_NCURSES_TRUE
844 BUILD_CONFIG_OUTPUT_FALSE
845 BUILD_CONFIG_OUTPUT_TRUE
846 BUILD_ARCH
847 BUILD_DATE
848 BUILD_OPENBSD_FALSE
849 BUILD_OPENBSD_TRUE
850 BUILD_FREEBSD_FALSE
851 BUILD_FREEBSD_TRUE
852 BUILD_LINUX_FALSE
853 BUILD_LINUX_TRUE
854 PKG_CONFIG
855 HAVE_PKGCONFIG
856 CPP
857 OTOOL64
858 OTOOL
859 LIPO
860 NMEDIT
861 DSYMUTIL
862 lt_ECHO
863 RANLIB
864 AR
865 OBJDUMP
866 LN_S
867 NM
868 ac_ct_DUMPBIN
869 DUMPBIN
870 LIBTOOL
871 LD
872 FGREP
873 EGREP
874 GREP
875 SED
876 host_os
877 host_vendor
878 host_cpu
879 host
880 build_os
881 build_vendor
882 build_cpu
883 build
884 am__fastdepCC_FALSE
885 am__fastdepCC_TRUE
886 CCDEPMODE
887 AMDEPBACKSLASH
888 AMDEP_FALSE
889 AMDEP_TRUE
890 am__quote
891 am__include
892 DEPDIR
893 OBJEXT
894 EXEEXT
895 ac_ct_CC
896 CPPFLAGS
897 LDFLAGS
898 CC
899 CFLAGS
900 am__untar
901 am__tar
902 AMTAR
903 am__leading_dot
904 SET_MAKE
905 AWK
906 mkdir_p
907 MKDIR_P
908 INSTALL_STRIP_PROGRAM
909 STRIP
910 install_sh
911 MAKEINFO
912 AUTOHEADER
913 AUTOMAKE
914 AUTOCONF
915 ACLOCAL
916 VERSION
917 PACKAGE
918 CYGPATH_W
919 am__isrc
920 INSTALL_DATA
921 INSTALL_SCRIPT
922 INSTALL_PROGRAM
923 target_alias
924 host_alias
925 build_alias
926 LIBS
927 ECHO_T
928 ECHO_N
929 ECHO_C
930 DEFS
931 mandir
932 localedir
933 libdir
934 psdir
935 pdfdir
936 dvidir
937 htmldir
938 infodir
939 docdir
940 oldincludedir
941 includedir
942 localstatedir
943 sharedstatedir
944 sysconfdir
945 datadir
946 datarootdir
947 libexecdir
948 sbindir
949 bindir
950 program_transform_name
951 prefix
952 exec_prefix
953 PACKAGE_URL
954 PACKAGE_BUGREPORT
955 PACKAGE_STRING
956 PACKAGE_VERSION
957 PACKAGE_TARNAME
958 PACKAGE_NAME
959 PATH_SEPARATOR
960 SHELL'
961 ac_subst_files=''
962 ac_user_opts='
963 enable_option_checking
964 enable_dependency_tracking
965 with_gnu_ld
966 enable_shared
967 enable_static
968 with_pic
969 enable_fast_install
970 enable_libtool_lock
971 enable_config_output
972 enable_own_window
973 enable_ncurses
974 enable_audacious
975 enable_bmpx
976 enable_ibm
977 enable_hddtemp
978 enable_apcupsd
979 enable_iostats
980 enable_math
981 enable_mpd
982 enable_moc
983 enable_xmms2
984 enable_curl
985 enable_eve
986 enable_rss
987 enable_weather_metar
988 enable_weather_xoap
989 enable_x11
990 with_x
991 enable_argb
992 enable_imlib2
993 enable_lua_imlib2
994 enable_lua
995 enable_lua_cairo
996 enable_wlan
997 enable_portmon
998 enable_rpath
999 with_libiconv_prefix
1000 enable_double_buffer
1001 enable_xdamage
1002 enable_xft
1003 enable_nvidia
1004 enable_alsa
1005 enable_debug
1006 enable_testing
1007 enable_profiling
1008 '
1009       ac_precious_vars='build_alias
1010 host_alias
1011 target_alias
1012 CC
1013 CFLAGS
1014 LDFLAGS
1015 LIBS
1016 CPPFLAGS
1017 CPP
1018 PKG_CONFIG
1019 Audacious_CFLAGS
1020 Audacious_LIBS
1021 BMPx_CFLAGS
1022 BMPx_LIBS
1023 XMMS2_CFLAGS
1024 XMMS2_LIBS
1025 X11_CFLAGS
1026 X11_LIBS
1027 XMKMF
1028 Imlib2_CFLAGS
1029 Imlib2_LIBS
1030 LUA_CFLAGS
1031 LUA_LIBS
1032 LUA51_CFLAGS
1033 LUA51_LIBS
1034 cairo_CFLAGS
1035 cairo_LIBS
1036 cairo_xlib_CFLAGS
1037 cairo_xlib_LIBS
1038 Xext_CFLAGS
1039 Xext_LIBS
1040 XDamage_CFLAGS
1041 XDamage_LIBS
1042 Xft_CFLAGS
1043 Xft_LIBS
1044 GLib2_CFLAGS
1045 GLib2_LIBS
1046 libcurl_CFLAGS
1047 libcurl_LIBS
1048 libxml2_CFLAGS
1049 libxml2_LIBS'
1050
1051
1052 # Initialize some variables set by options.
1053 ac_init_help=
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
1060 exec_prefix=NONE
1061 no_create=
1062 no_recursion=
1063 prefix=NONE
1064 program_prefix=NONE
1065 program_suffix=NONE
1066 program_transform_name=s,x,x,
1067 silent=
1068 site=
1069 srcdir=
1070 verbose=
1071 x_includes=NONE
1072 x_libraries=NONE
1073
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'
1092 htmldir='${docdir}'
1093 dvidir='${docdir}'
1094 pdfdir='${docdir}'
1095 psdir='${docdir}'
1096 libdir='${exec_prefix}/lib'
1097 localedir='${datarootdir}/locale'
1098 mandir='${datarootdir}/man'
1099
1100 ac_prev=
1101 ac_dashdash=
1102 for ac_option
1103 do
1104   # If the previous option needs an argument, assign it.
1105   if test -n "$ac_prev"; then
1106     eval $ac_prev=\$ac_option
1107     ac_prev=
1108     continue
1109   fi
1110
1111   case $ac_option in
1112   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1113   *)    ac_optarg=yes ;;
1114   esac
1115
1116   # Accept the important Cygnus configure options, so we can diagnose typos.
1117
1118   case $ac_dashdash$ac_option in
1119   --)
1120     ac_dashdash=yes ;;
1121
1122   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1123     ac_prev=bindir ;;
1124   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1125     bindir=$ac_optarg ;;
1126
1127   -build | --build | --buil | --bui | --bu)
1128     ac_prev=build_alias ;;
1129   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1130     build_alias=$ac_optarg ;;
1131
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 ;;
1138
1139   --config-cache | -C)
1140     cache_file=config.cache ;;
1141
1142   -datadir | --datadir | --datadi | --datad)
1143     ac_prev=datadir ;;
1144   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1145     datadir=$ac_optarg ;;
1146
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 ;;
1153
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
1162       *"
1163 "enable_$ac_useropt"
1164 "*) ;;
1165       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1166          ac_unrecognized_sep=', ';;
1167     esac
1168     eval enable_$ac_useropt=no ;;
1169
1170   -docdir | --docdir | --docdi | --doc | --do)
1171     ac_prev=docdir ;;
1172   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1173     docdir=$ac_optarg ;;
1174
1175   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1176     ac_prev=dvidir ;;
1177   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1178     dvidir=$ac_optarg ;;
1179
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
1188       *"
1189 "enable_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval enable_$ac_useropt=\$ac_optarg ;;
1195
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 ;;
1204
1205   -gas | --gas | --ga | --g)
1206     # Obsolete; use --with-gas.
1207     with_gas=yes ;;
1208
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 ;;
1215
1216   -host | --host | --hos | --ho)
1217     ac_prev=host_alias ;;
1218   -host=* | --host=* | --hos=* | --ho=*)
1219     host_alias=$ac_optarg ;;
1220
1221   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222     ac_prev=htmldir ;;
1223   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224   | --ht=*)
1225     htmldir=$ac_optarg ;;
1226
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 ;;
1233
1234   -infodir | --infodir | --infodi | --infod | --info | --inf)
1235     ac_prev=infodir ;;
1236   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1237     infodir=$ac_optarg ;;
1238
1239   -libdir | --libdir | --libdi | --libd)
1240     ac_prev=libdir ;;
1241   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1242     libdir=$ac_optarg ;;
1243
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 ;;
1250
1251   -localedir | --localedir | --localedi | --localed | --locale)
1252     ac_prev=localedir ;;
1253   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1254     localedir=$ac_optarg ;;
1255
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 ;;
1262
1263   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264     ac_prev=mandir ;;
1265   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1266     mandir=$ac_optarg ;;
1267
1268   -nfp | --nfp | --nf)
1269     # Obsolete; use --without-fp.
1270     with_fp=no ;;
1271
1272   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1273   | --no-cr | --no-c | -n)
1274     no_create=yes ;;
1275
1276   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1277   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1278     no_recursion=yes ;;
1279
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 ;;
1288
1289   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290     ac_prev=prefix ;;
1291   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1292     prefix=$ac_optarg ;;
1293
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 ;;
1300
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 ;;
1307
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 ;;
1324
1325   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326     ac_prev=pdfdir ;;
1327   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1328     pdfdir=$ac_optarg ;;
1329
1330   -psdir | --psdir | --psdi | --psd | --ps)
1331     ac_prev=psdir ;;
1332   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1333     psdir=$ac_optarg ;;
1334
1335   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336   | -silent | --silent | --silen | --sile | --sil)
1337     silent=yes ;;
1338
1339   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340     ac_prev=sbindir ;;
1341   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342   | --sbi=* | --sb=*)
1343     sbindir=$ac_optarg ;;
1344
1345   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347   | --sharedst | --shareds | --shared | --share | --shar \
1348   | --sha | --sh)
1349     ac_prev=sharedstatedir ;;
1350   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353   | --sha=* | --sh=*)
1354     sharedstatedir=$ac_optarg ;;
1355
1356   -site | --site | --sit)
1357     ac_prev=site ;;
1358   -site=* | --site=* | --sit=*)
1359     site=$ac_optarg ;;
1360
1361   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362     ac_prev=srcdir ;;
1363   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364     srcdir=$ac_optarg ;;
1365
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 ;;
1372
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 ;;
1377
1378   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1379     verbose=yes ;;
1380
1381   -version | --version | --versio | --versi | --vers | -V)
1382     ac_init_version=: ;;
1383
1384   -with-* | --with-*)
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
1392       *"
1393 "with_$ac_useropt"
1394 "*) ;;
1395       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1396          ac_unrecognized_sep=', ';;
1397     esac
1398     eval with_$ac_useropt=\$ac_optarg ;;
1399
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
1408       *"
1409 "with_$ac_useropt"
1410 "*) ;;
1411       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1412          ac_unrecognized_sep=', ';;
1413     esac
1414     eval with_$ac_useropt=no ;;
1415
1416   --x)
1417     # Obsolete; use --with-x.
1418     with_x=yes ;;
1419
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 ;;
1426
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 ;;
1433
1434   -*) as_fn_error "unrecognized option: \`$ac_option'
1435 Try \`$0 --help' for more information."
1436     ;;
1437
1438   *=*)
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'" ;;
1444     esac
1445     eval $ac_envvar=\$ac_optarg
1446     export $ac_envvar ;;
1447
1448   *)
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}
1454     ;;
1455
1456   esac
1457 done
1458
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"
1462 fi
1463
1464 if test -n "$ac_unrecognized_opts"; then
1465   case $enable_option_checking in
1466     no) ;;
1467     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1468     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1469   esac
1470 fi
1471
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
1477 do
1478   eval ac_val=\$$ac_var
1479   # Remove trailing slashes.
1480   case $ac_val in
1481     */ )
1482       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1483       eval $ac_var=\$ac_val;;
1484   esac
1485   # Be sure to have absolute directory names.
1486   case $ac_val in
1487     [\\/$]* | ?:[\\/]* )  continue;;
1488     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1489   esac
1490   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1491 done
1492
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.
1496 build=$build_alias
1497 host=$host_alias
1498 target=$target_alias
1499
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
1507     cross_compiling=yes
1508   fi
1509 fi
1510
1511 ac_tool_prefix=
1512 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1513
1514 test "$silent" = yes && exec 6>/dev/null
1515
1516
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"
1523
1524
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1536             s//\1/
1537             q
1538           }
1539           /^X\(\/\/\)[^/].*/{
1540             s//\1/
1541             q
1542           }
1543           /^X\(\/\/\)$/{
1544             s//\1/
1545             q
1546           }
1547           /^X\(\/\).*/{
1548             s//\1/
1549             q
1550           }
1551           s/.*/./; q'`
1552   srcdir=$ac_confdir
1553   if test ! -r "$srcdir/$ac_unique_file"; then
1554     srcdir=..
1555   fi
1556 else
1557   ac_srcdir_defaulted=no
1558 fi
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"
1562 fi
1563 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1564 ac_abs_confdir=`(
1565         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1566         pwd)`
1567 # When building in place, set srcdir=.
1568 if test "$ac_abs_confdir" = "$ac_pwd"; then
1569   srcdir=.
1570 fi
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.
1574 case $srcdir in
1575 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1576 esac
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}
1582 done
1583
1584 #
1585 # Report the --help message.
1586 #
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.
1590   cat <<_ACEOF
1591 \`configure' configures Conky 2.0.2_pre1274 to adapt to many kinds of systems.
1592
1593 Usage: $0 [OPTION]... [VAR=VALUE]...
1594
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.
1597
1598 Defaults for the options are specified in brackets.
1599
1600 Configuration:
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 \`..']
1610
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
1615                           [PREFIX]
1616
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'.
1621
1622 For better control, use the options below.
1623
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]
1644 _ACEOF
1645
1646   cat <<\_ACEOF
1647
1648 Program names:
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
1652
1653 X features:
1654   --x-includes=DIR    X include files are in DIR
1655   --x-libraries=DIR   X library files are in DIR
1656
1657 System types:
1658   --build=BUILD     configure for building on BUILD [guessed]
1659   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1660 _ACEOF
1661 fi
1662
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:";;
1666    esac
1667   cat <<\_ACEOF
1668
1669 Optional Features:
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
1685                           [default=yes]
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
1690                           @<:default=no]
1691   --disable-hddtemp       disable if you do not want hddtemp support
1692                           [default=yes]
1693   --disable-apcupsd       disable if you do not want apcupsd support
1694                           [default=yes]
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
1698                           [default=yes]
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
1706                           [default=no]
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
1711                           [default=yes]
1712   --enable-imlib2         enable if you want Imlib2 support [[default=no]]
1713   --enable-lua-imlib2     enable if you want Lua Imlib2 bindings for Conky
1714                           [default=no]
1715   --enable-lua            enable if you want Lua scripting support
1716                           [default=yes]
1717   --enable-lua-cairo      enable if you want Lua Cairo bindings for Conky
1718                           [default=no]
1719   --enable-wlan           enable if you want wireless support [default=no]
1720   --disable-portmon       disable if you do not want tcp (ip4) port monitoring
1721                           [default=yes]
1722   --disable-rpath         do not hardcode runtime library paths
1723   --disable-double-buffer disable for no Xdbe double-buffering support
1724                           [default=yes]
1725   --disable-xdamage       disable if you do not want Xdamage support
1726                           [default=yes]
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
1730                           [default=yes]
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
1734                           [default=no]
1735
1736 Optional Packages:
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
1741                           both]
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
1746
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>
1755   CPP         C preprocessor
1756   PKG_CONFIG  path to pkg-config utility
1757   Audacious_CFLAGS
1758               C compiler flags for Audacious, overriding pkg-config
1759   Audacious_LIBS
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
1763   XMMS2_CFLAGS
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
1769   Imlib2_CFLAGS
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
1774   LUA51_CFLAGS
1775               C compiler flags for LUA51, overriding pkg-config
1776   LUA51_LIBS  linker flags for LUA51, overriding pkg-config
1777   cairo_CFLAGS
1778               C compiler flags for cairo, overriding pkg-config
1779   cairo_LIBS  linker flags for cairo, overriding pkg-config
1780   cairo_xlib_CFLAGS
1781               C compiler flags for cairo_xlib, overriding pkg-config
1782   cairo_xlib_LIBS
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
1786   XDamage_CFLAGS
1787               C compiler flags for XDamage, overriding pkg-config
1788   XDamage_LIBS
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
1792   GLib2_CFLAGS
1793               C compiler flags for GLib2, overriding pkg-config
1794   GLib2_LIBS  linker flags for GLib2, overriding pkg-config
1795   libcurl_CFLAGS
1796               C compiler flags for libcurl, overriding pkg-config
1797   libcurl_LIBS
1798               linker flags for libcurl, overriding pkg-config
1799   libxml2_CFLAGS
1800               C compiler flags for libxml2, overriding pkg-config
1801   libxml2_LIBS
1802               linker flags for libxml2, overriding pkg-config
1803
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.
1806
1807 Report bugs to <brenden1@users.sourceforge.net>.
1808 _ACEOF
1809 ac_status=$?
1810 fi
1811
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"; } ||
1817       continue
1818     ac_builddir=.
1819
1820 case "$ac_dir" in
1821 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1822 *)
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/ ;;
1829   esac ;;
1830 esac
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
1835
1836 case $srcdir in
1837   .)  # We are building in place.
1838     ac_srcdir=.
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 ;;
1845   *) # Relative name.
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 ;;
1849 esac
1850 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1851
1852     cd "$ac_dir" || { ac_status=$?; continue; }
1853     # Check for guested configure.
1854     if test -f "$ac_srcdir/configure.gnu"; then
1855       echo &&
1856       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1857     elif test -f "$ac_srcdir/configure"; then
1858       echo &&
1859       $SHELL "$ac_srcdir/configure" --help=recursive
1860     else
1861       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1862     fi || ac_status=$?
1863     cd "$ac_pwd" || { ac_status=$?; break; }
1864   done
1865 fi
1866
1867 test -n "$ac_init_help" && exit $ac_status
1868 if $ac_init_version; then
1869   cat <<\_ACEOF
1870 Conky configure 2.0.2_pre1274
1871 generated by GNU Autoconf 2.65
1872
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.
1876 _ACEOF
1877   exit
1878 fi
1879
1880 ## ------------------------ ##
1881 ## Autoconf initialization. ##
1882 ## ------------------------ ##
1883
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 ()
1888 {
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"
1892 case "(($ac_try" in
1893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894   *) ac_try_echo=$ac_try;;
1895 esac
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
1899   ac_status=$?
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
1904   fi
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 :
1910   ac_retval=0
1911 else
1912   $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915         ac_retval=1
1916 fi
1917   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918   as_fn_set_status $ac_retval
1919
1920 } # ac_fn_c_try_compile
1921
1922 # ac_fn_c_try_link LINENO
1923 # -----------------------
1924 # Try to link conftest.$ac_ext, and return whether this succeeded.
1925 ac_fn_c_try_link ()
1926 {
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"
1930 case "(($ac_try" in
1931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932   *) ac_try_echo=$ac_try;;
1933 esac
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
1937   ac_status=$?
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
1942   fi
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
1950        }; then :
1951   ac_retval=0
1952 else
1953   $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956         ac_retval=1
1957 fi
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
1965
1966 } # ac_fn_c_try_link
1967
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 ()
1973 {
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
1979 else
1980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h.  */
1982 $4
1983 #include <$2>
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986   eval "$3=yes"
1987 else
1988   eval "$3=no"
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 fi
1992 eval ac_res=\$$3
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;}
1996
1997 } # ac_fn_c_check_header_compile
1998
1999 # ac_fn_c_try_cpp LINENO
2000 # ----------------------
2001 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2002 ac_fn_c_try_cpp ()
2003 {
2004   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005   if { { ac_try="$ac_cpp conftest.$ac_ext"
2006 case "(($ac_try" in
2007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2008   *) ac_try_echo=$ac_try;;
2009 esac
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
2013   ac_status=$?
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
2018   fi
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
2023        }; then :
2024   ac_retval=0
2025 else
2026   $as_echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2028
2029     ac_retval=1
2030 fi
2031   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032   as_fn_set_status $ac_retval
2033
2034 } # ac_fn_c_try_cpp
2035
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.
2040 ac_fn_c_try_run ()
2041 {
2042   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043   if { { ac_try="$ac_link"
2044 case "(($ac_try" in
2045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046   *) ac_try_echo=$ac_try;;
2047 esac
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
2051   ac_status=$?
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;;
2057 esac
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
2061   ac_status=$?
2062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063   test $ac_status = 0; }; }; then :
2064   ac_retval=0
2065 else
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
2069
2070        ac_retval=$ac_status
2071 fi
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
2075
2076 } # ac_fn_c_try_run
2077
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 ()
2082 {
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
2088 else
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
2094
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.  */
2099
2100 #ifdef __STDC__
2101 # include <limits.h>
2102 #else
2103 # include <assert.h>
2104 #endif
2105
2106 #undef $2
2107
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.  */
2111 #ifdef __cplusplus
2112 extern "C"
2113 #endif
2114 char $2 ();
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
2119 choke me
2120 #endif
2121
2122 int
2123 main ()
2124 {
2125 return $2 ();
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 if ac_fn_c_try_link "$LINENO"; then :
2131   eval "$3=yes"
2132 else
2133   eval "$3=no"
2134 fi
2135 rm -f core conftest.err conftest.$ac_objext \
2136     conftest$ac_exeext conftest.$ac_ext
2137 fi
2138 eval ac_res=\$$3
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;}
2142
2143 } # ac_fn_c_check_func
2144
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
2149 # accordingly.
2150 ac_fn_c_check_header_mongrel ()
2151 {
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
2158 fi
2159 eval ac_res=\$$3
2160                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2162 else
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.  */
2168 $4
2169 #include <$2>
2170 _ACEOF
2171 if ac_fn_c_try_compile "$LINENO"; then :
2172   ac_header_compiler=yes
2173 else
2174   ac_header_compiler=no
2175 fi
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; }
2179
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.  */
2185 #include <$2>
2186 _ACEOF
2187 if ac_fn_c_try_cpp "$LINENO"; then :
2188   ac_header_preproc=yes
2189 else
2190   ac_header_preproc=no
2191 fi
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; }
2195
2196 # So?  What about this header?
2197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2198   yes:no: )
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;}
2203     ;;
2204   no:yes:* )
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;}
2215 ( cat <<\_ASBOX
2216 ## --------------------------------------------- ##
2217 ## Report this to brenden1@users.sourceforge.net ##
2218 ## --------------------------------------------- ##
2219 _ASBOX
2220      ) | sed "s/^/$as_me: WARNING:     /" >&2
2221     ;;
2222 esac
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
2227 else
2228   eval "$3=\$ac_header_compiler"
2229 fi
2230 eval ac_res=\$$3
2231                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233 fi
2234   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235
2236 } # ac_fn_c_check_header_mongrel
2237
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 ()
2243 {
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
2249 else
2250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h.  */
2252 $5
2253 int
2254 main ()
2255 {
2256 static $2 ac_aggr;
2257 if (ac_aggr.$3)
2258 return 0;
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264   eval "$4=yes"
2265 else
2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h.  */
2268 $5
2269 int
2270 main ()
2271 {
2272 static $2 ac_aggr;
2273 if (sizeof ac_aggr.$3)
2274 return 0;
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280   eval "$4=yes"
2281 else
2282   eval "$4=no"
2283 fi
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 fi
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 fi
2288 eval ac_res=\$$4
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;}
2292
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.
2297
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
2300
2301   $ $0 $@
2302
2303 _ACEOF
2304 exec 5>>config.log
2305 {
2306 cat <<_ASUNAME
2307 ## --------- ##
2308 ## Platform. ##
2309 ## --------- ##
2310
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`
2316
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`
2319
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`
2327
2328 _ASUNAME
2329
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2332 do
2333   IFS=$as_save_IFS
2334   test -z "$as_dir" && as_dir=.
2335     $as_echo "PATH: $as_dir"
2336   done
2337 IFS=$as_save_IFS
2338
2339 } >&5
2340
2341 cat >&5 <<_ACEOF
2342
2343
2344 ## ----------- ##
2345 ## Core tests. ##
2346 ## ----------- ##
2347
2348 _ACEOF
2349
2350
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.
2356 ac_configure_args=
2357 ac_configure_args0=
2358 ac_configure_args1=
2359 ac_must_keep_next=false
2360 for ac_pass in 1 2
2361 do
2362   for ac_arg
2363   do
2364     case $ac_arg in
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)
2368       continue ;;
2369     *\'*)
2370       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2371     esac
2372     case $ac_pass in
2373     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2374     2)
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.
2378       else
2379         case $ac_arg in
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 ;;
2386             esac
2387             ;;
2388           -* ) ac_must_keep_next=true ;;
2389         esac
2390       fi
2391       as_fn_append ac_configure_args " '$ac_arg'"
2392       ;;
2393     esac
2394   done
2395 done
2396 { ac_configure_args0=; unset ac_configure_args0;}
2397 { ac_configure_args1=; unset ac_configure_args1;}
2398
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.
2406   {
2407     echo
2408
2409     cat <<\_ASBOX
2410 ## ---------------- ##
2411 ## Cache variables. ##
2412 ## ---------------- ##
2413 _ASBOX
2414     echo
2415     # The following way of writing the cache mishandles newlines in values,
2416 (
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
2419     case $ac_val in #(
2420     *${as_nl}*)
2421       case $ac_var in #(
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;} ;;
2424       esac
2425       case $ac_var in #(
2426       _ | IFS | as_nl) ;; #(
2427       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428       *) { eval $ac_var=; unset $ac_var;} ;;
2429       esac ;;
2430     esac
2431   done
2432   (set) 2>&1 |
2433     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434     *${as_nl}ac_space=\ *)
2435       sed -n \
2436         "s/'\''/'\''\\\\'\'''\''/g;
2437           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2438       ;; #(
2439     *)
2440       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2441       ;;
2442     esac |
2443     sort
2444 )
2445     echo
2446
2447     cat <<\_ASBOX
2448 ## ----------------- ##
2449 ## Output variables. ##
2450 ## ----------------- ##
2451 _ASBOX
2452     echo
2453     for ac_var in $ac_subst_vars
2454     do
2455       eval ac_val=\$$ac_var
2456       case $ac_val in
2457       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458       esac
2459       $as_echo "$ac_var='\''$ac_val'\''"
2460     done | sort
2461     echo
2462
2463     if test -n "$ac_subst_files"; then
2464       cat <<\_ASBOX
2465 ## ------------------- ##
2466 ## File substitutions. ##
2467 ## ------------------- ##
2468 _ASBOX
2469       echo
2470       for ac_var in $ac_subst_files
2471       do
2472         eval ac_val=\$$ac_var
2473         case $ac_val in
2474         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475         esac
2476         $as_echo "$ac_var='\''$ac_val'\''"
2477       done | sort
2478       echo
2479     fi
2480
2481     if test -s confdefs.h; then
2482       cat <<\_ASBOX
2483 ## ----------- ##
2484 ## confdefs.h. ##
2485 ## ----------- ##
2486 _ASBOX
2487       echo
2488       cat confdefs.h
2489       echo
2490     fi
2491     test "$ac_signal" != 0 &&
2492       $as_echo "$as_me: caught signal $ac_signal"
2493     $as_echo "$as_me: exit $exit_status"
2494   } >&5
2495   rm -f core *.core core.conftest.* &&
2496     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2497     exit $exit_status
2498 ' 0
2499 for ac_signal in 1 2 13 15; do
2500   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2501 done
2502 ac_signal=0
2503
2504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2505 rm -f -r conftest* confdefs.h
2506
2507 $as_echo "/* confdefs.h */" > confdefs.h
2508
2509 # Predefined preprocessor variables.
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_NAME "$PACKAGE_NAME"
2513 _ACEOF
2514
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2517 _ACEOF
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2521 _ACEOF
2522
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_STRING "$PACKAGE_STRING"
2525 _ACEOF
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_URL "$PACKAGE_URL"
2533 _ACEOF
2534
2535
2536 # Let the site file select an alternate cache file if it wants to.
2537 # Prefer an explicitly selected file to automatically selected ones.
2538 ac_site_file1=NONE
2539 ac_site_file2=NONE
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
2545 else
2546   ac_site_file1=$ac_default_prefix/share/config.site
2547   ac_site_file2=$ac_default_prefix/etc/config.site
2548 fi
2549 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2550 do
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
2556     . "$ac_site_file"
2557   fi
2558 done
2559
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;}
2566     case $cache_file in
2567       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2568       *)                      . "./$cache_file";;
2569     esac
2570   fi
2571 else
2572   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2573 $as_echo "$as_me: creating cache $cache_file" >&6;}
2574   >$cache_file
2575 fi
2576
2577 # Check that the precious variables saved in the cache have kept the same
2578 # value.
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
2586     set,)
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=: ;;
2590     ,set)
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=: ;;
2594     ,);;
2595     *)
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=:
2604         else
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
2608         fi
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;}
2613       fi;;
2614   esac
2615   # Pass precious variables to config.status.
2616   if test "$ac_new_set" = set; then
2617     case $ac_new_val in
2618     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619     *) ac_arg=$ac_var=$ac_new_val ;;
2620     esac
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'" ;;
2624     esac
2625   fi
2626 done
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
2633 fi
2634 ## -------------------- ##
2635 ## Main body of script. ##
2636 ## -------------------- ##
2637
2638 ac_ext=c
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
2643
2644
2645
2646 am__api_version='1.11'
2647
2648 ac_aux_dir=
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
2652       ac_aux_dir=$ac_dir
2653       ac_install_sh="$ac_aux_dir/$ac_t -c"
2654       break 2
2655     fi
2656   done
2657 done
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
2660 fi
2661
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.
2669
2670
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
2677 # AIX /bin/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
2690 else
2691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
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[\\/]* | \
2701   /usr/ucb/* ) ;;
2702   *)
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
2705     # by default.
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.
2712             :
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.
2716             :
2717           else
2718             rm -rf conftest.one conftest.two conftest.dir
2719             echo one > conftest.one
2720             echo two > conftest.two
2721             mkdir conftest.dir
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
2726             then
2727               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2728               break 3
2729             fi
2730           fi
2731         fi
2732       done
2733     done
2734     ;;
2735 esac
2736
2737   done
2738 IFS=$as_save_IFS
2739
2740 rm -rf conftest.one conftest.two conftest.dir
2741
2742 fi
2743   if test "${ac_cv_path_install+set}" = set; then
2744     INSTALL=$ac_cv_path_install
2745   else
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
2751   fi
2752 fi
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2754 $as_echo "$INSTALL" >&6; }
2755
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}'
2759
2760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2761
2762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2763
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; }
2766 # Just in case
2767 sleep 1
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.
2771 am_lf='
2772 '
2773 case `pwd` in
2774   *[\\\"\#\$\&\'\`$am_lf]*)
2775     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2776 esac
2777 case $srcdir in
2778   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2779     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2780 esac
2781
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
2786 # directory).
2787 if (
2788    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2789    if test "$*" = "X"; then
2790       # -L didn't work.
2791       set X `ls -t "$srcdir/configure" conftest.file`
2792    fi
2793    rm -f conftest.file
2794    if test "$*" != "X $srcdir/configure conftest.file" \
2795       && test "$*" != "X conftest.file $srcdir/configure"; then
2796
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
2803    fi
2804
2805    test "$2" = conftest.file
2806    )
2807 then
2808    # Ok.
2809    :
2810 else
2811    as_fn_error "newly created file is older than distributed files!
2812 Check your system clock" "$LINENO" 5
2813 fi
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"`
2825
2826 # expand $ac_aux_dir to an absolute path
2827 am_aux_dir=`cd $ac_aux_dir && pwd`
2828
2829 if test x"${MISSING+set}" != xset; then
2830   case $am_aux_dir in
2831   *\ * | *\     *)
2832     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2833   *)
2834     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2835   esac
2836 fi
2837 # Use eval to expand $SHELL
2838 if eval "$MISSING --run true"; then
2839   am_missing_run="$MISSING --run "
2840 else
2841   am_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;}
2844 fi
2845
2846 if test x"${install_sh}" != xset; then
2847   case $am_aux_dir in
2848   *\ * | *\     *)
2849     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2850   *)
2851     install_sh="\${SHELL} $am_aux_dir/install-sh"
2852   esac
2853 fi
2854
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
2867 else
2868   if test -n "$STRIP"; then
2869   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874   IFS=$as_save_IFS
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
2880     break 2
2881   fi
2882 done
2883   done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
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; }
2892 else
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895 fi
2896
2897
2898 fi
2899 if test -z "$ac_cv_prog_STRIP"; then
2900   ac_ct_STRIP=$STRIP
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
2907 else
2908   if test -n "$ac_ct_STRIP"; then
2909   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914   IFS=$as_save_IFS
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
2920     break 2
2921   fi
2922 done
2923   done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
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; }
2932 else
2933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937   if test "x$ac_ct_STRIP" = x; then
2938     STRIP=":"
2939   else
2940     case $cross_compiling:$ac_tool_warned in
2941 yes:)
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 ;;
2945 esac
2946     STRIP=$ac_ct_STRIP
2947   fi
2948 else
2949   STRIP="$ac_cv_prog_STRIP"
2950 fi
2951
2952 fi
2953 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2954
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
2960 else
2961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2963 do
2964   IFS=$as_save_IFS
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
2974                break 3;;
2975            esac
2976          done
2977        done
2978   done
2979 IFS=$as_save_IFS
2980
2981 fi
2982
2983   test -d ./--version && rmdir ./--version
2984   if test "${ac_cv_path_mkdir+set}" = set; then
2985     MKDIR_P="$ac_cv_path_mkdir -p"
2986   else
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"
2992   fi
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2995 $as_echo "$MKDIR_P" >&6; }
2996
2997 mkdir_p="$MKDIR_P"
2998 case $mkdir_p in
2999   [\\/$]* | ?:[\\/]*) ;;
3000   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3001 esac
3002
3003 for ac_prog in gawk mawk nawk awk
3004 do
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
3011 else
3012   if test -n "$AWK"; then
3013   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
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
3024     break 2
3025   fi
3026 done
3027   done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 AWK=$ac_cv_prog_AWK
3033 if test -n "$AWK"; then
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3035 $as_echo "$AWK" >&6; }
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042   test -n "$AWK" && break
3043 done
3044
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; }
3047 set x ${MAKE-make}
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
3051 else
3052   cat >conftest.make <<\_ACEOF
3053 SHELL = /bin/sh
3054 all:
3055         @echo '@@@%%%=$(MAKE)=@@@%%%'
3056 _ACEOF
3057 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3058 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3059   *@@@%%%=?*=@@@%%%*)
3060     eval ac_cv_prog_make_${ac_make}_set=yes;;
3061   *)
3062     eval ac_cv_prog_make_${ac_make}_set=no;;
3063 esac
3064 rm -f conftest.make
3065 fi
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; }
3069   SET_MAKE=
3070 else
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073   SET_MAKE="MAKE=${MAKE-make}"
3074 fi
3075
3076 rm -rf .tst 2>/dev/null
3077 mkdir .tst 2>/dev/null
3078 if test -d .tst; then
3079   am__leading_dot=.
3080 else
3081   am__leading_dot=_
3082 fi
3083 rmdir .tst 2>/dev/null
3084
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
3092   fi
3093 fi
3094
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'
3099   else
3100     CYGPATH_W=echo
3101   fi
3102 fi
3103
3104
3105 # Define the identity of the package.
3106  PACKAGE=conky
3107  VERSION=2.0.2_pre1274
3108
3109
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE "$PACKAGE"
3112 _ACEOF
3113
3114
3115 cat >>confdefs.h <<_ACEOF
3116 #define VERSION "$VERSION"
3117 _ACEOF
3118
3119 # Some tools Automake needs.
3120
3121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3122
3123
3124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3125
3126
3127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3128
3129
3130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3131
3132
3133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3134
3135 # We need awk for the "check" target.  The system "awk" is bad on
3136 # some platforms.
3137 # Always define AMTAR for backward compatibility.
3138
3139 AMTAR=${AMTAR-"${am_missing_run}tar"}
3140
3141 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3142
3143
3144
3145
3146
3147 ac_config_headers="$ac_config_headers src/config.h"
3148
3149
3150
3151 if test x"$CFLAGS" = x""; then
3152   CFLAGS=
3153
3154 fi
3155
3156
3157 $as_echo "#define _GNU_SOURCE /**/" >>confdefs.h
3158
3159
3160 ac_ext=c
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
3172 else
3173   if test -n "$CC"; then
3174   ac_cv_prog_CC="$CC" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179   IFS=$as_save_IFS
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
3185     break 2
3186   fi
3187 done
3188   done
3189 IFS=$as_save_IFS
3190
3191 fi
3192 fi
3193 CC=$ac_cv_prog_CC
3194 if test -n "$CC"; then
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 $as_echo "$CC" >&6; }
3197 else
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 fi
3201
3202
3203 fi
3204 if test -z "$ac_cv_prog_CC"; then
3205   ac_ct_CC=$CC
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
3212 else
3213   if test -n "$ac_ct_CC"; then
3214   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219   IFS=$as_save_IFS
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
3225     break 2
3226   fi
3227 done
3228   done
3229 IFS=$as_save_IFS
3230
3231 fi
3232 fi
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; }
3237 else
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 fi
3241
3242   if test "x$ac_ct_CC" = x; then
3243     CC=""
3244   else
3245     case $cross_compiling:$ac_tool_warned in
3246 yes:)
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 ;;
3250 esac
3251     CC=$ac_ct_CC
3252   fi
3253 else
3254   CC="$ac_cv_prog_CC"
3255 fi
3256
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
3265 else
3266   if test -n "$CC"; then
3267   ac_cv_prog_CC="$CC" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272   IFS=$as_save_IFS
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
3278     break 2
3279   fi
3280 done
3281   done
3282 IFS=$as_save_IFS
3283
3284 fi
3285 fi
3286 CC=$ac_cv_prog_CC
3287 if test -n "$CC"; then
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3290 else
3291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295
3296   fi
3297 fi
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
3305 else
3306   if test -n "$CC"; then
3307   ac_cv_prog_CC="$CC" # Let the user override the test.
3308 else
3309   ac_prog_rejected=no
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
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
3319        continue
3320      fi
3321     ac_cv_prog_CC="cc"
3322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323     break 2
3324   fi
3325 done
3326   done
3327 IFS=$as_save_IFS
3328
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
3332   shift
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.
3337     shift
3338     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3339   fi
3340 fi
3341 fi
3342 fi
3343 CC=$ac_cv_prog_CC
3344 if test -n "$CC"; then
3345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3347 else
3348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3350 fi
3351
3352
3353 fi
3354 if test -z "$CC"; then
3355   if test -n "$ac_tool_prefix"; then
3356   for ac_prog in cl.exe
3357   do
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
3364 else
3365   if test -n "$CC"; then
3366   ac_cv_prog_CC="$CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371   IFS=$as_save_IFS
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
3377     break 2
3378   fi
3379 done
3380   done
3381 IFS=$as_save_IFS
3382
3383 fi
3384 fi
3385 CC=$ac_cv_prog_CC
3386 if test -n "$CC"; then
3387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388 $as_echo "$CC" >&6; }
3389 else
3390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3392 fi
3393
3394
3395     test -n "$CC" && break
3396   done
3397 fi
3398 if test -z "$CC"; then
3399   ac_ct_CC=$CC
3400   for ac_prog in cl.exe
3401 do
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
3408 else
3409   if test -n "$ac_ct_CC"; then
3410   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415   IFS=$as_save_IFS
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
3421     break 2
3422   fi
3423 done
3424   done
3425 IFS=$as_save_IFS
3426
3427 fi
3428 fi
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; }
3433 else
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438
3439   test -n "$ac_ct_CC" && break
3440 done
3441
3442   if test "x$ac_ct_CC" = x; then
3443     CC=""
3444   else
3445     case $cross_compiling:$ac_tool_warned in
3446 yes:)
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 ;;
3450 esac
3451     CC=$ac_ct_CC
3452   fi
3453 fi
3454
3455 fi
3456
3457
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; }
3462
3463 # Provide some information about the compiler.
3464 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3465 set X $ac_compile
3466 ac_compiler=$2
3467 for ac_option in --version -v -V -qversion; do
3468   { { ac_try="$ac_compiler $ac_option >&5"
3469 case "(($ac_try" in
3470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471   *) ac_try_echo=$ac_try;;
3472 esac
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
3476   ac_status=$?
3477   if test -s conftest.err; then
3478     sed '10a\
3479 ... rest of stderr output deleted ...
3480          10q' conftest.err >conftest.er1
3481     cat conftest.er1 >&5
3482   fi
3483   rm -f conftest.er1 conftest.err
3484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485   test $ac_status = 0; }
3486 done
3487
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
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
3503 # of exeext.
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[^ ]*//'`
3507
3508 # The possible output files:
3509 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3510
3511 ac_rmfiles=
3512 for ac_file in $ac_files
3513 do
3514   case $ac_file in
3515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3516     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3517   esac
3518 done
3519 rm -f $ac_rmfiles
3520
3521 if { { ac_try="$ac_link_default"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
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
3529   ac_status=$?
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
3536 # Autoconf.
3537 for ac_file in $ac_files ''
3538 do
3539   test -f "$ac_file" || continue
3540   case $ac_file in
3541     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3542         ;;
3543     [ab].out )
3544         # We found the default executable, but exeext='' is most
3545         # certainly right.
3546         break;;
3547     *.* )
3548         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3549         then :; else
3550            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3551         fi
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
3556         # actually working.
3557         break;;
3558     * )
3559         break;;
3560   esac
3561 done
3562 test "$ac_cv_exeext" = no && ac_cv_exeext=
3563
3564 else
3565   ac_file=''
3566 fi
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
3572
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; }; }
3578 else
3579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3580 $as_echo "yes" >&6; }
3581 fi
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
3587
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"
3593 case "(($ac_try" in
3594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595   *) ac_try_echo=$ac_try;;
3596 esac
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
3600   ac_status=$?
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
3606 # `rm'.
3607 for ac_file in conftest.exe conftest conftest.*; do
3608   test -f "$ac_file" || continue
3609   case $ac_file in
3610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612           break;;
3613     * ) break;;
3614   esac
3615 done
3616 else
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; }
3621 fi
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; }
3625
3626 rm -f conftest.$ac_ext
3627 EXEEXT=$ac_cv_exeext
3628 ac_exeext=$EXEEXT
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h.  */
3631 #include <stdio.h>
3632 int
3633 main ()
3634 {
3635 FILE *f = fopen ("conftest.out", "w");
3636  return ferror (f) || fclose (f) != 0;
3637
3638   ;
3639   return 0;
3640 }
3641 _ACEOF
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"
3649 case "(($ac_try" in
3650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651   *) ac_try_echo=$ac_try;;
3652 esac
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
3656   ac_status=$?
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;;
3663 esac
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
3667   ac_status=$?
3668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669   test $ac_status = 0; }; }; then
3670     cross_compiling=no
3671   else
3672     if test "$cross_compiling" = maybe; then
3673         cross_compiling=yes
3674     else
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; }
3680     fi
3681   fi
3682 fi
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3684 $as_echo "$cross_compiling" >&6; }
3685
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
3692 else
3693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h.  */
3695
3696 int
3697 main ()
3698 {
3699
3700   ;
3701   return 0;
3702 }
3703 _ACEOF
3704 rm -f conftest.o conftest.obj
3705 if { { ac_try="$ac_compile"
3706 case "(($ac_try" in
3707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708   *) ac_try_echo=$ac_try;;
3709 esac
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
3713   ac_status=$?
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;
3718   case $ac_file in
3719     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3720     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3721        break;;
3722   esac
3723 done
3724 else
3725   $as_echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
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; }
3732 fi
3733 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3734 fi
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
3738 ac_objext=$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
3743 else
3744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h.  */
3746
3747 int
3748 main ()
3749 {
3750 #ifndef __GNUC__
3751        choke me
3752 #endif
3753
3754   ;
3755   return 0;
3756 }
3757 _ACEOF
3758 if ac_fn_c_try_compile "$LINENO"; then :
3759   ac_compiler_gnu=yes
3760 else
3761   ac_compiler_gnu=no
3762 fi
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3765
3766 fi
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
3770   GCC=yes
3771 else
3772   GCC=
3773 fi
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
3780 else
3781   ac_save_c_werror_flag=$ac_c_werror_flag
3782    ac_c_werror_flag=yes
3783    ac_cv_prog_cc_g=no
3784    CFLAGS="-g"
3785    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h.  */
3787
3788 int
3789 main ()
3790 {
3791
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 if ac_fn_c_try_compile "$LINENO"; then :
3797   ac_cv_prog_cc_g=yes
3798 else
3799   CFLAGS=""
3800       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802
3803 int
3804 main ()
3805 {
3806
3807   ;
3808   return 0;
3809 }
3810 _ACEOF
3811 if ac_fn_c_try_compile "$LINENO"; then :
3812
3813 else
3814   ac_c_werror_flag=$ac_save_c_werror_flag
3815          CFLAGS="-g"
3816          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h.  */
3818
3819 int
3820 main ()
3821 {
3822
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 if ac_fn_c_try_compile "$LINENO"; then :
3828   ac_cv_prog_cc_g=yes
3829 fi
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 fi
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 fi
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835    ac_c_werror_flag=$ac_save_c_werror_flag
3836 fi
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
3843     CFLAGS="-g -O2"
3844   else
3845     CFLAGS="-g"
3846   fi
3847 else
3848   if test "$GCC" = yes; then
3849     CFLAGS="-O2"
3850   else
3851     CFLAGS=
3852   fi
3853 fi
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
3858 else
3859   ac_cv_prog_cc_c89=no
3860 ac_save_CC=$CC
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h.  */
3863 #include <stdarg.h>
3864 #include <stdio.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)
3871      char **p;
3872      int i;
3873 {
3874   return p[i];
3875 }
3876 static char *f (char * (*g) (char **, int), char **p, ...)
3877 {
3878   char *s;
3879   va_list v;
3880   va_start (v,p);
3881   s = g (p, va_arg (v,int));
3882   va_end (v);
3883   return s;
3884 }
3885
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];
3894
3895 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3896    inside strings and character constants.  */
3897 #define FOO(x) 'x'
3898 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3899
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);
3904 int argc;
3905 char **argv;
3906 int
3907 main ()
3908 {
3909 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3915         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3916 do
3917   CC="$ac_save_CC $ac_arg"
3918   if ac_fn_c_try_compile "$LINENO"; then :
3919   ac_cv_prog_cc_c89=$ac_arg
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext
3922   test "x$ac_cv_prog_cc_c89" != "xno" && break
3923 done
3924 rm -f conftest.$ac_ext
3925 CC=$ac_save_CC
3926
3927 fi
3928 # AC_CACHE_VAL
3929 case "x$ac_cv_prog_cc_c89" in
3930   x)
3931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3932 $as_echo "none needed" >&6; } ;;
3933   xno)
3934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3935 $as_echo "unsupported" >&6; } ;;
3936   *)
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; } ;;
3940 esac
3941 if test "x$ac_cv_prog_cc_c89" != xno; then :
3942
3943 fi
3944
3945 ac_ext=c
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"
3951
3952 ac_config_commands="$ac_config_commands depfiles"
3953
3954
3955 am_make=${MAKE-make}
3956 cat > confinc << 'END'
3957 am__doit:
3958         @echo this is the am__doit target
3959 .PHONY: am__doit
3960 END
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; }
3964 am__include="#"
3965 am__quote=
3966 _am_result=none
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*)
3972   am__include=include
3973   am__quote=
3974   _am_result=GNU
3975   ;;
3976 esac
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
3983      am__quote="\""
3984      _am_result=BSD
3985      ;;
3986    esac
3987 fi
3988
3989
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3991 $as_echo "$_am_result" >&6; }
3992 rm -f confinc confmf
3993
3994 # Check whether --enable-dependency-tracking was given.
3995 if test "${enable_dependency_tracking+set}" = set; then :
3996   enableval=$enable_dependency_tracking;
3997 fi
3998
3999 if test "x$enable_dependency_tracking" != xno; then
4000   am_depcomp="$ac_aux_dir/depcomp"
4001   AMDEPBACKSLASH='\'
4002 fi
4003  if test "x$enable_dependency_tracking" != xno; then
4004   AMDEP_TRUE=
4005   AMDEP_FALSE='#'
4006 else
4007   AMDEP_TRUE='#'
4008   AMDEP_FALSE=
4009 fi
4010
4011
4012
4013 depcc="$CC"   am_compiler_list=
4014
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
4019 else
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
4025   # in D'.
4026   mkdir conftest.dir
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
4030   cd 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
4036   # directory.
4037   mkdir sub
4038
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`
4042   fi
4043   am__universal=false
4044   case " $depcc " in #(
4045      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4046      esac
4047
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.
4052     #
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.
4056     : > sub/conftest.c
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
4062     done
4063     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4064
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"
4071     case $depmode in
4072     gcc)
4073       # This depmode causes a compiler race in universal mode.
4074       test "$am__universal" = false || continue
4075       ;;
4076     nosideeffect)
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
4080         continue
4081       else
4082         break
4083       fi
4084       ;;
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}
4090       am__minus_obj=
4091       ;;
4092     none) break ;;
4093     esac
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
4113         break
4114       fi
4115     fi
4116   done
4117
4118   cd ..
4119   rm -rf conftest.dir
4120 else
4121   am_cv_CC_dependencies_compiler_type=none
4122 fi
4123
4124 fi
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
4128
4129  if
4130   test "x$enable_dependency_tracking" != xno \
4131   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4132   am__fastdepCC_TRUE=
4133   am__fastdepCC_FALSE='#'
4134 else
4135   am__fastdepCC_TRUE='#'
4136   am__fastdepCC_FALSE=
4137 fi
4138
4139
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
4143
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
4148 else
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
4156
4157 fi
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
4161 *-*-*) ;;
4162 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4163 esac
4164 build=$ac_cv_build
4165 ac_save_IFS=$IFS; IFS='-'
4166 set x $ac_cv_build
4167 shift
4168 build_cpu=$1
4169 build_vendor=$2
4170 shift; shift
4171 # Remember, the first character of IFS is used to create $*,
4172 # except with old shells:
4173 build_os=$*
4174 IFS=$ac_save_IFS
4175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4176
4177
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
4182 else
4183   if test "x$host_alias" = x; then
4184   ac_cv_host=$ac_cv_build
4185 else
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
4188 fi
4189
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4192 $as_echo "$ac_cv_host" >&6; }
4193 case $ac_cv_host in
4194 *-*-*) ;;
4195 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4196 esac
4197 host=$ac_cv_host
4198 ac_save_IFS=$IFS; IFS='-'
4199 set x $ac_cv_host
4200 shift
4201 host_cpu=$1
4202 host_vendor=$2
4203 shift; shift
4204 # Remember, the first character of IFS is used to create $*,
4205 # except with old shells:
4206 host_os=$*
4207 IFS=$ac_save_IFS
4208 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4209
4210
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
4215 else
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"
4219      done
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
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
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
4237 *GNU*)
4238   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4239 *)
4240   ac_count=0
4241   $as_echo_n 0123456789 >"conftest.in"
4242   while :
4243   do
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
4255     fi
4256     # 10*(2^10) chars as input seems more than enough
4257     test $ac_count -gt 10 && break
4258   done
4259   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260 esac
4261
4262       $ac_path_SED_found && break 3
4263     done
4264   done
4265   done
4266 IFS=$as_save_IFS
4267   if test -z "$ac_cv_path_SED"; then
4268     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4269   fi
4270 else
4271   ac_cv_path_SED=$SED
4272 fi
4273
4274 fi
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"
4278   rm -f conftest.sed
4279
4280 test -z "$SED" && SED=sed
4281 Xsed="$SED -e 1s/^X//"
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
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
4297 else
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
4303 do
4304   IFS=$as_save_IFS
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
4313 *GNU*)
4314   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4315 *)
4316   ac_count=0
4317   $as_echo_n 0123456789 >"conftest.in"
4318   while :
4319   do
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
4331     fi
4332     # 10*(2^10) chars as input seems more than enough
4333     test $ac_count -gt 10 && break
4334   done
4335   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336 esac
4337
4338       $ac_path_GREP_found && break 3
4339     done
4340   done
4341   done
4342 IFS=$as_save_IFS
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
4345   fi
4346 else
4347   ac_cv_path_GREP=$GREP
4348 fi
4349
4350 fi
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"
4354
4355
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
4360 else
4361   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4362    then ac_cv_path_EGREP="$GREP -E"
4363    else
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
4369 do
4370   IFS=$as_save_IFS
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
4379 *GNU*)
4380   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4381 *)
4382   ac_count=0
4383   $as_echo_n 0123456789 >"conftest.in"
4384   while :
4385   do
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
4397     fi
4398     # 10*(2^10) chars as input seems more than enough
4399     test $ac_count -gt 10 && break
4400   done
4401   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4402 esac
4403
4404       $ac_path_EGREP_found && break 3
4405     done
4406   done
4407   done
4408 IFS=$as_save_IFS
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
4411   fi
4412 else
4413   ac_cv_path_EGREP=$EGREP
4414 fi
4415
4416    fi
4417 fi
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"
4421
4422
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
4427 else
4428   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4429    then ac_cv_path_FGREP="$GREP -F"
4430    else
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
4436 do
4437   IFS=$as_save_IFS
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
4446 *GNU*)
4447   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4448 *)
4449   ac_count=0
4450   $as_echo_n 0123456789 >"conftest.in"
4451   while :
4452   do
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
4464     fi
4465     # 10*(2^10) chars as input seems more than enough
4466     test $ac_count -gt 10 && break
4467   done
4468   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4469 esac
4470
4471       $ac_path_FGREP_found && break 3
4472     done
4473   done
4474   done
4475 IFS=$as_save_IFS
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
4478   fi
4479 else
4480   ac_cv_path_FGREP=$FGREP
4481 fi
4482
4483    fi
4484 fi
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"
4488
4489
4490 test -z "$GREP" && GREP=grep
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
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
4513 else
4514   with_gnu_ld=no
4515 fi
4516
4517 ac_prog=ld
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; }
4522   case $host in
4523   *-*-mingw*)
4524     # gcc leaves a trailing carriage return which upsets mingw
4525     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4526   *)
4527     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4528   esac
4529   case $ac_prog in
4530     # Accept absolute paths.
4531     [\\/]* | ?:[\\/]*)
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%/%"`
4537       done
4538       test -z "$LD" && LD="$ac_prog"
4539       ;;
4540   "")
4541     # If it fails, then pretend we aren't using GCC.
4542     ac_prog=ld
4543     ;;
4544   *)
4545     # If it is relative, then search for the first ld in PATH.
4546     with_gnu_ld=unknown
4547     ;;
4548   esac
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; }
4552 else
4553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4554 $as_echo_n "checking for non-GNU ld... " >&6; }
4555 fi
4556 if test "${lt_cv_path_LD+set}" = set; then :
4557   $as_echo_n "(cached) " >&6
4558 else
4559   if test -z "$LD"; then
4560   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4561   for ac_dir in $PATH; do
4562     IFS="$lt_save_ifs"
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
4572         ;;
4573       *)
4574         test "$with_gnu_ld" != yes && break
4575         ;;
4576       esac
4577     fi
4578   done
4579   IFS="$lt_save_ifs"
4580 else
4581   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4582 fi
4583 fi
4584
4585 LD="$lt_cv_path_LD"
4586 if test -n "$LD"; then
4587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4588 $as_echo "$LD" >&6; }
4589 else
4590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 fi
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
4598 else
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
4603   ;;
4604 *)
4605   lt_cv_prog_gnu_ld=no
4606   ;;
4607 esac
4608 fi
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
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622 case `pwd` in
4623   *\ * | *\     *)
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;} ;;
4626 esac
4627
4628
4629
4630 macro_version='2.2.6b'
4631 macro_revision='1.3017'
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645 ltmain="$ac_aux_dir/ltmain.sh"
4646
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
4651 else
4652   if test -n "$NM"; then
4653   # Let the user override the test.
4654   lt_cv_path_NM="$NM"
4655 else
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"
4659   fi
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
4663       IFS="$lt_save_ifs"
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"
4674           break
4675           ;;
4676         *)
4677           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4678           */dev/null*)
4679             lt_cv_path_NM="$tmp_nm -p"
4680             break
4681             ;;
4682           *)
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
4685             ;;
4686           esac
4687           ;;
4688         esac
4689       fi
4690     done
4691     IFS="$lt_save_ifs"
4692   done
4693   : ${lt_cv_path_NM=no}
4694 fi
4695 fi
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
4699   NM="$lt_cv_path_NM"
4700 else
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"
4704   do
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
4711 else
4712   if test -n "$DUMPBIN"; then
4713   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718   IFS=$as_save_IFS
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
4724     break 2
4725   fi
4726 done
4727   done
4728 IFS=$as_save_IFS
4729
4730 fi
4731 fi
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; }
4736 else
4737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4739 fi
4740
4741
4742     test -n "$DUMPBIN" && break
4743   done
4744 fi
4745 if test -z "$DUMPBIN"; then
4746   ac_ct_DUMPBIN=$DUMPBIN
4747   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4748 do
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
4755 else
4756   if test -n "$ac_ct_DUMPBIN"; then
4757   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4758 else
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4761 do
4762   IFS=$as_save_IFS
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
4768     break 2
4769   fi
4770 done
4771   done
4772 IFS=$as_save_IFS
4773
4774 fi
4775 fi
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; }
4780 else
4781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4783 fi
4784
4785
4786   test -n "$ac_ct_DUMPBIN" && break
4787 done
4788
4789   if test "x$ac_ct_DUMPBIN" = x; then
4790     DUMPBIN=":"
4791   else
4792     case $cross_compiling:$ac_tool_warned in
4793 yes:)
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 ;;
4797 esac
4798     DUMPBIN=$ac_ct_DUMPBIN
4799   fi
4800 fi
4801
4802
4803   if test "$DUMPBIN" != ":"; then
4804     NM="$DUMPBIN"
4805   fi
4806 fi
4807 test -z "$NM" && NM=nm
4808
4809
4810
4811
4812
4813
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
4818 else
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"
4831   fi
4832   rm -f conftest*
4833 fi
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4835 $as_echo "$lt_cv_nm_interface" >&6; }
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4838 $as_echo_n "checking whether ln -s works... " >&6; }
4839 LN_S=$as_ln_s
4840 if test "$LN_S" = "ln -s"; then
4841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4842 $as_echo "yes" >&6; }
4843 else
4844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4845 $as_echo "no, using $LN_S" >&6; }
4846 fi
4847
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
4853 else
4854     i=0
4855   teststring="ABCD"
4856
4857   case $build_os in
4858   msdosdjgpp*)
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
4864     ;;
4865
4866   gnu*)
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;
4871     ;;
4872
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;
4882     ;;
4883
4884   amigaos*)
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;
4888     ;;
4889
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`
4896     else
4897       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4898     fi
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`
4902     ;;
4903
4904   interix*)
4905     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4906     lt_cv_sys_max_cmd_len=196608
4907     ;;
4908
4909   osf*)
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
4915     #
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 ;;
4919       esac
4920     fi
4921     ;;
4922   sco3.2v5*)
4923     lt_cv_sys_max_cmd_len=102400
4924     ;;
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/.*[  ]//'`
4929     else
4930       lt_cv_sys_max_cmd_len=32768
4931     fi
4932     ;;
4933   *)
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`
4938     else
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
4943       done
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
4947       # we can't tell.
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
4951       do
4952         i=`expr $i + 1`
4953         teststring=$teststring$teststring
4954       done
4955       # Only check the string length outside the loop.
4956       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4957       teststring=
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`
4962     fi
4963     ;;
4964   esac
4965
4966 fi
4967
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; }
4971 else
4972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4973 $as_echo "none" >&6; }
4974 fi
4975 max_cmd_len=$lt_cv_sys_max_cmd_len
4976
4977
4978
4979
4980
4981
4982 : ${CP="cp -f"}
4983 : ${MV="mv -f"}
4984 : ${RM="rm -f"}
4985
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
4989 xsi_shell=no
4990 ( _lt_dummy="a/b/c"
4991   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4992       = c,a/b,, \
4993     && eval 'test $(( 1 + 1 )) -eq 2 \
4994     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4995   && xsi_shell=yes
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4997 $as_echo "$xsi_shell" >&6; }
4998
4999
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5001 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5002 lt_shell_append=no
5003 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5004     >/dev/null 2>&1 \
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; }
5008
5009
5010 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5011   lt_unset=unset
5012 else
5013   lt_unset=false
5014 fi
5015
5016
5017
5018
5019
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'
5026   ;;
5027  *) # EBCDIC based system
5028   lt_SP2NL='tr \100 \n'
5029   lt_NL2SP='tr \r\n \100\100'
5030   ;;
5031 esac
5032
5033
5034
5035
5036
5037
5038
5039
5040
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
5045 else
5046   lt_cv_ld_reload_flag='-r'
5047 fi
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
5052 "" | " "*) ;;
5053 *) reload_flag=" $reload_flag" ;;
5054 esac
5055 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5056 case $host_os in
5057   darwin*)
5058     if test "$GCC" = yes; then
5059       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5060     else
5061       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5062     fi
5063     ;;
5064 esac
5065
5066
5067
5068
5069
5070
5071
5072
5073
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
5081 else
5082   if test -n "$OBJDUMP"; then
5083   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088   IFS=$as_save_IFS
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
5094     break 2
5095   fi
5096 done
5097   done
5098 IFS=$as_save_IFS
5099
5100 fi
5101 fi
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; }
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110
5111
5112 fi
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
5121 else
5122   if test -n "$ac_ct_OBJDUMP"; then
5123   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
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
5134     break 2
5135   fi
5136 done
5137   done
5138 IFS=$as_save_IFS
5139
5140 fi
5141 fi
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; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151   if test "x$ac_ct_OBJDUMP" = x; then
5152     OBJDUMP="false"
5153   else
5154     case $cross_compiling:$ac_tool_warned in
5155 yes:)
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 ;;
5159 esac
5160     OBJDUMP=$ac_ct_OBJDUMP
5161   fi
5162 else
5163   OBJDUMP="$ac_cv_prog_OBJDUMP"
5164 fi
5165
5166 test -z "$OBJDUMP" && OBJDUMP=objdump
5167
5168
5169
5170
5171
5172
5173
5174
5175
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
5180 else
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.
5194
5195 case $host_os in
5196 aix[4-9]*)
5197   lt_cv_deplibs_check_method=pass_all
5198   ;;
5199
5200 beos*)
5201   lt_cv_deplibs_check_method=pass_all
5202   ;;
5203
5204 bsdi[45]*)
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
5208   ;;
5209
5210 cygwin*)
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'
5214   ;;
5215
5216 mingw* | pw32*)
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'
5223   else
5224     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5225     lt_cv_file_magic_cmd='$OBJDUMP -f'
5226   fi
5227   ;;
5228
5229 cegcc)
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'
5233   ;;
5234
5235 darwin* | rhapsody*)
5236   lt_cv_deplibs_check_method=pass_all
5237   ;;
5238
5239 freebsd* | dragonfly*)
5240   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5241     case $host_cpu in
5242     i*86 )
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.*`
5248       ;;
5249     esac
5250   else
5251     lt_cv_deplibs_check_method=pass_all
5252   fi
5253   ;;
5254
5255 gnu*)
5256   lt_cv_deplibs_check_method=pass_all
5257   ;;
5258
5259 hpux10.20* | hpux11*)
5260   lt_cv_file_magic_cmd=/usr/bin/file
5261   case $host_cpu in
5262   ia64*)
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
5265     ;;
5266   hppa*64*)
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
5269     ;;
5270   *)
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
5273     ;;
5274   esac
5275   ;;
5276
5277 interix[3-9]*)
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)$'
5280   ;;
5281
5282 irix5* | irix6* | nonstopux*)
5283   case $LD in
5284   *-32|*"-32 ") libmagic=32-bit;;
5285   *-n32|*"-n32 ") libmagic=N32;;
5286   *-64|*"-64 ") libmagic=64-bit;;
5287   *) libmagic=never-match;;
5288   esac
5289   lt_cv_deplibs_check_method=pass_all
5290   ;;
5291
5292 # This must be Linux ELF.
5293 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5294   lt_cv_deplibs_check_method=pass_all
5295   ;;
5296
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)$'
5300   else
5301     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5302   fi
5303   ;;
5304
5305 newos6*)
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
5309   ;;
5310
5311 *nto* | *qnx*)
5312   lt_cv_deplibs_check_method=pass_all
5313   ;;
5314
5315 openbsd*)
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)$'
5318   else
5319     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5320   fi
5321   ;;
5322
5323 osf3* | osf4* | osf5*)
5324   lt_cv_deplibs_check_method=pass_all
5325   ;;
5326
5327 rdos*)
5328   lt_cv_deplibs_check_method=pass_all
5329   ;;
5330
5331 solaris*)
5332   lt_cv_deplibs_check_method=pass_all
5333   ;;
5334
5335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5336   lt_cv_deplibs_check_method=pass_all
5337   ;;
5338
5339 sysv4 | sysv4.3*)
5340   case $host_vendor in
5341   motorola)
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*`
5344     ;;
5345   ncr)
5346     lt_cv_deplibs_check_method=pass_all
5347     ;;
5348   sequent)
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 )'
5351     ;;
5352   sni)
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
5356     ;;
5357   siemens)
5358     lt_cv_deplibs_check_method=pass_all
5359     ;;
5360   pc)
5361     lt_cv_deplibs_check_method=pass_all
5362     ;;
5363   esac
5364   ;;
5365
5366 tpf*)
5367   lt_cv_deplibs_check_method=pass_all
5368   ;;
5369 esac
5370
5371 fi
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
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
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
5396 else
5397   if test -n "$AR"; then
5398   ac_cv_prog_AR="$AR" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
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
5409     break 2
5410   fi
5411 done
5412   done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 AR=$ac_cv_prog_AR
5418 if test -n "$AR"; then
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5420 $as_echo "$AR" >&6; }
5421 else
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426
5427 fi
5428 if test -z "$ac_cv_prog_AR"; then
5429   ac_ct_AR=$AR
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
5436 else
5437   if test -n "$ac_ct_AR"; then
5438   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443   IFS=$as_save_IFS
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
5449     break 2
5450   fi
5451 done
5452   done
5453 IFS=$as_save_IFS
5454
5455 fi
5456 fi
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; }
5461 else
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5464 fi
5465
5466   if test "x$ac_ct_AR" = x; then
5467     AR="false"
5468   else
5469     case $cross_compiling:$ac_tool_warned in
5470 yes:)
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 ;;
5474 esac
5475     AR=$ac_ct_AR
5476   fi
5477 else
5478   AR="$ac_cv_prog_AR"
5479 fi
5480
5481 test -z "$AR" && AR=ar
5482 test -z "$AR_FLAGS" && AR_FLAGS=cru
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
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
5501 else
5502   if test -n "$STRIP"; then
5503   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508   IFS=$as_save_IFS
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
5514     break 2
5515   fi
5516 done
5517   done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
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; }
5526 else
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 fi
5533 if test -z "$ac_cv_prog_STRIP"; then
5534   ac_ct_STRIP=$STRIP
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
5541 else
5542   if test -n "$ac_ct_STRIP"; then
5543   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548   IFS=$as_save_IFS
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
5554     break 2
5555   fi
5556 done
5557   done
5558 IFS=$as_save_IFS
5559
5560 fi
5561 fi
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; }
5566 else
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5569 fi
5570
5571   if test "x$ac_ct_STRIP" = x; then
5572     STRIP=":"
5573   else
5574     case $cross_compiling:$ac_tool_warned in
5575 yes:)
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 ;;
5579 esac
5580     STRIP=$ac_ct_STRIP
5581   fi
5582 else
5583   STRIP="$ac_cv_prog_STRIP"
5584 fi
5585
5586 test -z "$STRIP" && STRIP=:
5587
5588
5589
5590
5591
5592
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
5600 else
5601   if test -n "$RANLIB"; then
5602   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607   IFS=$as_save_IFS
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
5613     break 2
5614   fi
5615 done
5616   done
5617 IFS=$as_save_IFS
5618
5619 fi
5620 fi
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; }
5625 else
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5628 fi
5629
5630
5631 fi
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
5640 else
5641   if test -n "$ac_ct_RANLIB"; then
5642   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647   IFS=$as_save_IFS
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
5653     break 2
5654   fi
5655 done
5656   done
5657 IFS=$as_save_IFS
5658
5659 fi
5660 fi
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; }
5665 else
5666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5668 fi
5669
5670   if test "x$ac_ct_RANLIB" = x; then
5671     RANLIB=":"
5672   else
5673     case $cross_compiling:$ac_tool_warned in
5674 yes:)
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 ;;
5678 esac
5679     RANLIB=$ac_ct_RANLIB
5680   fi
5681 else
5682   RANLIB="$ac_cv_prog_RANLIB"
5683 fi
5684
5685 test -z "$RANLIB" && RANLIB=:
5686
5687
5688
5689
5690
5691
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=
5696
5697 if test -n "$RANLIB"; then
5698   case $host_os in
5699   openbsd*)
5700     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5701     ;;
5702   *)
5703     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5704     ;;
5705   esac
5706   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5707 fi
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742 # If no C compiler was specified, use CC.
5743 LTCC=${LTCC-"$CC"}
5744
5745 # If no C compiler flags were specified, use CFLAGS.
5746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5747
5748 # Allow CC to be a program name with arguments.
5749 compiler=$CC
5750
5751
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
5757 else
5758
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?!! ;)]
5761
5762 # Character class describing NM global symbol codes.
5763 symcode='[BCDEGRST]'
5764
5765 # Regexp to match symbols that can be accessed directly from C.
5766 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5767
5768 # Define system-specific variables.
5769 case $host_os in
5770 aix*)
5771   symcode='[BCDT]'
5772   ;;
5773 cygwin* | mingw* | pw32* | cegcc*)
5774   symcode='[ABCDGISTW]'
5775   ;;
5776 hpux*)
5777   if test "$host_cpu" = ia64; then
5778     symcode='[ABCDEGRST]'
5779   fi
5780   ;;
5781 irix* | nonstopux*)
5782   symcode='[BCDEGRST]'
5783   ;;
5784 osf*)
5785   symcode='[BCDEGQRST]'
5786   ;;
5787 solaris*)
5788   symcode='[BDRT]'
5789   ;;
5790 sco3.2v5*)
5791   symcode='[DT]'
5792   ;;
5793 sysv4.2uw2*)
5794   symcode='[DT]'
5795   ;;
5796 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5797   symcode='[ABDT]'
5798   ;;
5799 sysv4)
5800   symcode='[DFNSTU]'
5801   ;;
5802 esac
5803
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]' ;;
5808 esac
5809
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'"
5814
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'"
5818
5819 # Handle CRLF in mingw tool chain
5820 opt_cr=
5821 case $build_os in
5822 mingw*)
5823   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5824   ;;
5825 esac
5826
5827 # Try without a prefix underscore, then with it.
5828 for ac_symprfx in "" "_"; do
5829
5830   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5831   symxfrm="\\1 $ac_symprfx\\2 \\2"
5832
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"
5850   else
5851     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5852   fi
5853
5854   # Check to see that the pipe works correctly.
5855   pipe_works=no
5856
5857   rm -f conftest*
5858   cat > conftest.$ac_ext <<_LT_EOF
5859 #ifdef __cplusplus
5860 extern "C" {
5861 #endif
5862 char nm_test_var;
5863 void nm_test_func(void);
5864 void nm_test_func(void){}
5865 #ifdef __cplusplus
5866 }
5867 #endif
5868 int main(){nm_test_var='a';nm_test_func();return(0);}
5869 _LT_EOF
5870
5871   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5872   (eval $ac_compile) 2>&5
5873   ac_status=$?
5874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5875   test $ac_status = 0; }; then
5876     # Now try to grab the symbols.
5877     nlist=conftest.nm
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
5880   ac_status=$?
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"
5886       else
5887         rm -f "$nlist"T
5888       fi
5889
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
5894 #ifdef __cplusplus
5895 extern "C" {
5896 #endif
5897
5898 _LT_EOF
5899           # Now generate the symbol file.
5900           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5901
5902           cat <<_LT_EOF >> conftest.$ac_ext
5903
5904 /* The mapping between symbol names and symbols.  */
5905 const struct {
5906   const char *name;
5907   void       *address;
5908 }
5909 lt__PROGRAM__LTX_preloaded_symbols[] =
5910 {
5911   { "@PROGRAM@", (void *) 0 },
5912 _LT_EOF
5913           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5914           cat <<\_LT_EOF >> conftest.$ac_ext
5915   {0, (void *) 0}
5916 };
5917
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;
5922 }
5923 #endif
5924
5925 #ifdef __cplusplus
5926 }
5927 #endif
5928 _LT_EOF
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
5937   ac_status=$?
5938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5939   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5940             pipe_works=yes
5941           fi
5942           LIBS="$lt_save_LIBS"
5943           CFLAGS="$lt_save_CFLAGS"
5944         else
5945           echo "cannot find nm_test_func in $nlist" >&5
5946         fi
5947       else
5948         echo "cannot find nm_test_var in $nlist" >&5
5949       fi
5950     else
5951       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5952     fi
5953   else
5954     echo "$progname: failed program was:" >&5
5955     cat conftest.$ac_ext >&5
5956   fi
5957   rm -rf conftest* conftst*
5958
5959   # Do not use the global_symbol_pipe unless it works.
5960   if test "$pipe_works" = yes; then
5961     break
5962   else
5963     lt_cv_sys_global_symbol_pipe=
5964   fi
5965 done
5966
5967 fi
5968
5969 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5970   lt_cv_sys_global_symbol_to_cdecl=
5971 fi
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; }
5975 else
5976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5977 $as_echo "ok" >&6; }
5978 fi
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002 # Check whether --enable-libtool-lock was given.
6003 if test "${enable_libtool_lock+set}" = set; then :
6004   enableval=$enable_libtool_lock;
6005 fi
6006
6007 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6008
6009 # Some flags need to be propagated to the compiler or linker for good
6010 # libtool support.
6011 case $host in
6012 ia64-*-hpux*)
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
6017   ac_status=$?
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
6021       *ELF-32*)
6022         HPUX_IA64_MODE="32"
6023         ;;
6024       *ELF-64*)
6025         HPUX_IA64_MODE="64"
6026         ;;
6027     esac
6028   fi
6029   rm -rf conftest*
6030   ;;
6031 *-*-irix6*)
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
6036   ac_status=$?
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
6041         *32-bit*)
6042           LD="${LD-ld} -melf32bsmip"
6043           ;;
6044         *N32*)
6045           LD="${LD-ld} -melf32bmipn32"
6046           ;;
6047         *64-bit*)
6048           LD="${LD-ld} -melf64bmip"
6049         ;;
6050       esac
6051     else
6052       case `/usr/bin/file conftest.$ac_objext` in
6053         *32-bit*)
6054           LD="${LD-ld} -32"
6055           ;;
6056         *N32*)
6057           LD="${LD-ld} -n32"
6058           ;;
6059         *64-bit*)
6060           LD="${LD-ld} -64"
6061           ;;
6062       esac
6063     fi
6064   fi
6065   rm -rf conftest*
6066   ;;
6067
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
6074   ac_status=$?
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
6078       *32-bit*)
6079         case $host in
6080           x86_64-*kfreebsd*-gnu)
6081             LD="${LD-ld} -m elf_i386_fbsd"
6082             ;;
6083           x86_64-*linux*)
6084             LD="${LD-ld} -m elf_i386"
6085             ;;
6086           ppc64-*linux*|powerpc64-*linux*)
6087             LD="${LD-ld} -m elf32ppclinux"
6088             ;;
6089           s390x-*linux*)
6090             LD="${LD-ld} -m elf_s390"
6091             ;;
6092           sparc64-*linux*)
6093             LD="${LD-ld} -m elf32_sparc"
6094             ;;
6095         esac
6096         ;;
6097       *64-bit*)
6098         case $host in
6099           x86_64-*kfreebsd*-gnu)
6100             LD="${LD-ld} -m elf_x86_64_fbsd"
6101             ;;
6102           x86_64-*linux*)
6103             LD="${LD-ld} -m elf_x86_64"
6104             ;;
6105           ppc*-*linux*|powerpc*-*linux*)
6106             LD="${LD-ld} -m elf64ppc"
6107             ;;
6108           s390*-*linux*|s390*-*tpf*)
6109             LD="${LD-ld} -m elf64_s390"
6110             ;;
6111           sparc*-*linux*)
6112             LD="${LD-ld} -m elf64_sparc"
6113             ;;
6114         esac
6115         ;;
6116     esac
6117   fi
6118   rm -rf conftest*
6119   ;;
6120
6121 *-*-sco3.2v5*)
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
6129 else
6130   ac_ext=c
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
6135
6136      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h.  */
6138
6139 int
6140 main ()
6141 {
6142
6143   ;
6144   return 0;
6145 }
6146 _ACEOF
6147 if ac_fn_c_try_link "$LINENO"; then :
6148   lt_cv_cc_needs_belf=yes
6149 else
6150   lt_cv_cc_needs_belf=no
6151 fi
6152 rm -f core conftest.err conftest.$ac_objext \
6153     conftest$ac_exeext conftest.$ac_ext
6154      ac_ext=c
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
6159
6160 fi
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"
6166   fi
6167   ;;
6168 sparc*-*solaris*)
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
6173   ac_status=$?
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
6177     *64-bit*)
6178       case $lt_cv_prog_gnu_ld in
6179       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6180       *)
6181         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6182           LD="${LD-ld} -64"
6183         fi
6184         ;;
6185       esac
6186       ;;
6187     esac
6188   fi
6189   rm -rf conftest*
6190   ;;
6191 esac
6192
6193 need_locks="$enable_libtool_lock"
6194
6195
6196   case $host_os in
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
6205 else
6206   if test -n "$DSYMUTIL"; then
6207   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212   IFS=$as_save_IFS
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
6218     break 2
6219   fi
6220 done
6221   done
6222 IFS=$as_save_IFS
6223
6224 fi
6225 fi
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; }
6230 else
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6233 fi
6234
6235
6236 fi
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
6245 else
6246   if test -n "$ac_ct_DSYMUTIL"; then
6247   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6248 else
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252   IFS=$as_save_IFS
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
6258     break 2
6259   fi
6260 done
6261   done
6262 IFS=$as_save_IFS
6263
6264 fi
6265 fi
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; }
6270 else
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6273 fi
6274
6275   if test "x$ac_ct_DSYMUTIL" = x; then
6276     DSYMUTIL=":"
6277   else
6278     case $cross_compiling:$ac_tool_warned in
6279 yes:)
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 ;;
6283 esac
6284     DSYMUTIL=$ac_ct_DSYMUTIL
6285   fi
6286 else
6287   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6288 fi
6289
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
6297 else
6298   if test -n "$NMEDIT"; then
6299   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
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
6310     break 2
6311   fi
6312 done
6313   done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
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; }
6322 else
6323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327
6328 fi
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
6337 else
6338   if test -n "$ac_ct_NMEDIT"; then
6339   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344   IFS=$as_save_IFS
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
6350     break 2
6351   fi
6352 done
6353   done
6354 IFS=$as_save_IFS
6355
6356 fi
6357 fi
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; }
6362 else
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6365 fi
6366
6367   if test "x$ac_ct_NMEDIT" = x; then
6368     NMEDIT=":"
6369   else
6370     case $cross_compiling:$ac_tool_warned in
6371 yes:)
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 ;;
6375 esac
6376     NMEDIT=$ac_ct_NMEDIT
6377   fi
6378 else
6379   NMEDIT="$ac_cv_prog_NMEDIT"
6380 fi
6381
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
6389 else
6390   if test -n "$LIPO"; then
6391   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396   IFS=$as_save_IFS
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
6402     break 2
6403   fi
6404 done
6405   done
6406 IFS=$as_save_IFS
6407
6408 fi
6409 fi
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; }
6414 else
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6417 fi
6418
6419
6420 fi
6421 if test -z "$ac_cv_prog_LIPO"; then
6422   ac_ct_LIPO=$LIPO
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
6429 else
6430   if test -n "$ac_ct_LIPO"; then
6431   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436   IFS=$as_save_IFS
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
6442     break 2
6443   fi
6444 done
6445   done
6446 IFS=$as_save_IFS
6447
6448 fi
6449 fi
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; }
6454 else
6455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6457 fi
6458
6459   if test "x$ac_ct_LIPO" = x; then
6460     LIPO=":"
6461   else
6462     case $cross_compiling:$ac_tool_warned in
6463 yes:)
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 ;;
6467 esac
6468     LIPO=$ac_ct_LIPO
6469   fi
6470 else
6471   LIPO="$ac_cv_prog_LIPO"
6472 fi
6473
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
6481 else
6482   if test -n "$OTOOL"; then
6483   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488   IFS=$as_save_IFS
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
6494     break 2
6495   fi
6496 done
6497   done
6498 IFS=$as_save_IFS
6499
6500 fi
6501 fi
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; }
6506 else
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6509 fi
6510
6511
6512 fi
6513 if test -z "$ac_cv_prog_OTOOL"; then
6514   ac_ct_OTOOL=$OTOOL
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
6521 else
6522   if test -n "$ac_ct_OTOOL"; then
6523   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
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
6534     break 2
6535   fi
6536 done
6537   done
6538 IFS=$as_save_IFS
6539
6540 fi
6541 fi
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; }
6546 else
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550
6551   if test "x$ac_ct_OTOOL" = x; then
6552     OTOOL=":"
6553   else
6554     case $cross_compiling:$ac_tool_warned in
6555 yes:)
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 ;;
6559 esac
6560     OTOOL=$ac_ct_OTOOL
6561   fi
6562 else
6563   OTOOL="$ac_cv_prog_OTOOL"
6564 fi
6565
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
6573 else
6574   if test -n "$OTOOL64"; then
6575   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6579 do
6580   IFS=$as_save_IFS
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
6586     break 2
6587   fi
6588 done
6589   done
6590 IFS=$as_save_IFS
6591
6592 fi
6593 fi
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; }
6598 else
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6601 fi
6602
6603
6604 fi
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
6613 else
6614   if test -n "$ac_ct_OTOOL64"; then
6615   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
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
6626     break 2
6627   fi
6628 done
6629   done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
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; }
6638 else
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6641 fi
6642
6643   if test "x$ac_ct_OTOOL64" = x; then
6644     OTOOL64=":"
6645   else
6646     case $cross_compiling:$ac_tool_warned in
6647 yes:)
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 ;;
6651 esac
6652     OTOOL64=$ac_ct_OTOOL64
6653   fi
6654 else
6655   OTOOL64="$ac_cv_prog_OTOOL64"
6656 fi
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
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
6688 else
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
6694         # link flags.
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
6701         _lt_result=$?
6702         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6703           lt_cv_apple_cc_single_mod=yes
6704         else
6705           cat conftest.err >&5
6706         fi
6707         rm -rf libconftest.dylib*
6708         rm -f conftest.*
6709       fi
6710 fi
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
6717 else
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.  */
6724
6725 int
6726 main ()
6727 {
6728
6729   ;
6730   return 0;
6731 }
6732 _ACEOF
6733 if ac_fn_c_try_link "$LINENO"; then :
6734   lt_cv_ld_exported_symbols_list=yes
6735 else
6736   lt_cv_ld_exported_symbols_list=no
6737 fi
6738 rm -f core conftest.err conftest.$ac_objext \
6739     conftest$ac_exeext conftest.$ac_ext
6740         LDFLAGS="$save_LDFLAGS"
6741
6742 fi
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; }
6745     case $host_os in
6746     rhapsody* | darwin1.[012])
6747       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6748     darwin1.*)
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' ;;
6757         10.[012]*)
6758           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6759         10.*)
6760           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6761       esac
6762     ;;
6763   esac
6764     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6765       _lt_dar_single_mod='$single_module'
6766     fi
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'
6769     else
6770       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6771     fi
6772     if test "$DSYMUTIL" != ":"; then
6773       _lt_dsymutil='~$DSYMUTIL $lib || :'
6774     else
6775       _lt_dsymutil=
6776     fi
6777     ;;
6778   esac
6779
6780 ac_ext=c
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
6789   CPP=
6790 fi
6791 if test -z "$CPP"; then
6792   if test "${ac_cv_prog_CPP+set}" = set; then :
6793   $as_echo_n "(cached) " >&6
6794 else
6795       # Double quotes because CPP needs to be expanded
6796     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6797     do
6798       ac_preproc_ok=false
6799 for ac_c_preproc_warn_flag in '' yes
6800 do
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.  */
6809 #ifdef __STDC__
6810 # include <limits.h>
6811 #else
6812 # include <assert.h>
6813 #endif
6814                      Syntax error
6815 _ACEOF
6816 if ac_fn_c_try_cpp "$LINENO"; then :
6817
6818 else
6819   # Broken: fails on valid input.
6820 continue
6821 fi
6822 rm -f conftest.err conftest.$ac_ext
6823
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>
6829 _ACEOF
6830 if ac_fn_c_try_cpp "$LINENO"; then :
6831   # Broken: success on invalid input.
6832 continue
6833 else
6834   # Passes both tests.
6835 ac_preproc_ok=:
6836 break
6837 fi
6838 rm -f conftest.err conftest.$ac_ext
6839
6840 done
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 :
6844   break
6845 fi
6846
6847     done
6848     ac_cv_prog_CPP=$CPP
6849
6850 fi
6851   CPP=$ac_cv_prog_CPP
6852 else
6853   ac_cv_prog_CPP=$CPP
6854 fi
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6856 $as_echo "$CPP" >&6; }
6857 ac_preproc_ok=false
6858 for ac_c_preproc_warn_flag in '' yes
6859 do
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.  */
6868 #ifdef __STDC__
6869 # include <limits.h>
6870 #else
6871 # include <assert.h>
6872 #endif
6873                      Syntax error
6874 _ACEOF
6875 if ac_fn_c_try_cpp "$LINENO"; then :
6876
6877 else
6878   # Broken: fails on valid input.
6879 continue
6880 fi
6881 rm -f conftest.err conftest.$ac_ext
6882
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>
6888 _ACEOF
6889 if ac_fn_c_try_cpp "$LINENO"; then :
6890   # Broken: success on invalid input.
6891 continue
6892 else
6893   # Passes both tests.
6894 ac_preproc_ok=:
6895 break
6896 fi
6897 rm -f conftest.err conftest.$ac_ext
6898
6899 done
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 :
6903
6904 else
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; }
6909 fi
6910
6911 ac_ext=c
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
6916
6917
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
6922 else
6923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h.  */
6925 #include <stdlib.h>
6926 #include <stdarg.h>
6927 #include <string.h>
6928 #include <float.h>
6929
6930 int
6931 main ()
6932 {
6933
6934   ;
6935   return 0;
6936 }
6937 _ACEOF
6938 if ac_fn_c_try_compile "$LINENO"; then :
6939   ac_cv_header_stdc=yes
6940 else
6941   ac_cv_header_stdc=no
6942 fi
6943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944
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.  */
6949 #include <string.h>
6950
6951 _ACEOF
6952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953   $EGREP "memchr" >/dev/null 2>&1; then :
6954
6955 else
6956   ac_cv_header_stdc=no
6957 fi
6958 rm -f conftest*
6959
6960 fi
6961
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.  */
6966 #include <stdlib.h>
6967
6968 _ACEOF
6969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970   $EGREP "free" >/dev/null 2>&1; then :
6971
6972 else
6973   ac_cv_header_stdc=no
6974 fi
6975 rm -f conftest*
6976
6977 fi
6978
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 :
6982   :
6983 else
6984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h.  */
6986 #include <ctype.h>
6987 #include <stdlib.h>
6988 #if ((' ' & 0x0FF) == 0x020)
6989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6991 #else
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))
6997 #endif
6998
6999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7000 int
7001 main ()
7002 {
7003   int i;
7004   for (i = 0; i < 256; i++)
7005     if (XOR (islower (i), ISLOWER (i))
7006         || toupper (i) != TOUPPER (i))
7007       return 2;
7008   return 0;
7009 }
7010 _ACEOF
7011 if ac_fn_c_try_run "$LINENO"; then :
7012
7013 else
7014   ac_cv_header_stdc=no
7015 fi
7016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7017   conftest.$ac_objext conftest.beam conftest.$ac_ext
7018 fi
7019
7020 fi
7021 fi
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
7025
7026 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7027
7028 fi
7029
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
7033 do :
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
7036 "
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
7041 _ACEOF
7042
7043 fi
7044
7045 done
7046
7047
7048 for ac_header in dlfcn.h
7049 do :
7050   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7051 "
7052 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7053   cat >>confdefs.h <<_ACEOF
7054 #define HAVE_DLFCN_H 1
7055 _ACEOF
7056
7057 fi
7058
7059 done
7060
7061
7062
7063 # Set options
7064
7065
7066
7067         enable_dlopen=no
7068
7069
7070   enable_win32_dll=no
7071
7072
7073             # Check whether --enable-shared was given.
7074 if test "${enable_shared+set}" = set; then :
7075   enableval=$enable_shared; p=${PACKAGE-default}
7076     case $enableval in
7077     yes) enable_shared=yes ;;
7078     no) enable_shared=no ;;
7079     *)
7080       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
7084         IFS="$lt_save_ifs"
7085         if test "X$pkg" = "X$p"; then
7086           enable_shared=yes
7087         fi
7088       done
7089       IFS="$lt_save_ifs"
7090       ;;
7091     esac
7092 else
7093   enable_shared=yes
7094 fi
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104   # Check whether --enable-static was given.
7105 if test "${enable_static+set}" = set; then :
7106   enableval=$enable_static; p=${PACKAGE-default}
7107     case $enableval in
7108     yes) enable_static=yes ;;
7109     no) enable_static=no ;;
7110     *)
7111      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
7115         IFS="$lt_save_ifs"
7116         if test "X$pkg" = "X$p"; then
7117           enable_static=yes
7118         fi
7119       done
7120       IFS="$lt_save_ifs"
7121       ;;
7122     esac
7123 else
7124   enable_static=yes
7125 fi
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136 # Check whether --with-pic was given.
7137 if test "${with_pic+set}" = set; then :
7138   withval=$with_pic; pic_mode="$withval"
7139 else
7140   pic_mode=default
7141 fi
7142
7143
7144 test -z "$pic_mode" && pic_mode=default
7145
7146
7147
7148
7149
7150
7151
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}
7155     case $enableval in
7156     yes) enable_fast_install=yes ;;
7157     no) enable_fast_install=no ;;
7158     *)
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
7163         IFS="$lt_save_ifs"
7164         if test "X$pkg" = "X$p"; then
7165           enable_fast_install=yes
7166         fi
7167       done
7168       IFS="$lt_save_ifs"
7169       ;;
7170     esac
7171 else
7172   enable_fast_install=yes
7173 fi
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185 # This can be used to rebuild libtool when needed
7186 LIBTOOL_DEPS="$ltmain"
7187
7188 # Always use our own libtool.
7189 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215 test -z "$LN_S" && LN_S="ln -s"
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230 if test -n "${ZSH_VERSION+set}" ; then
7231    setopt NO_GLOB_SUBST
7232 fi
7233
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
7238 else
7239   rm -f .libs 2>/dev/null
7240 mkdir .libs 2>/dev/null
7241 if test -d .libs; then
7242   lt_cv_objdir=.libs
7243 else
7244   # MS-DOS does not allow filenames that begin with a dot.
7245   lt_cv_objdir=_libs
7246 fi
7247 rmdir .libs 2>/dev/null
7248 fi
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
7252
7253
7254
7255
7256
7257 cat >>confdefs.h <<_ACEOF
7258 #define LT_OBJDIR "$lt_cv_objdir/"
7259 _ACEOF
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277 case $host_os in
7278 aix3*)
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
7283     COLLECT_NAMES=
7284     export COLLECT_NAMES
7285   fi
7286   ;;
7287 esac
7288
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'
7292
7293 # Same as above, but do not quote variable references.
7294 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7295
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'
7299
7300 # Sed substitution to delay expansion of an escaped single quote.
7301 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7302
7303 # Sed substitution to avoid accidental globbing in evaled expressions
7304 no_glob_subst='s/\*/\\\*/g'
7305
7306 # Global variables:
7307 ofile=libtool
7308 can_build_shared=yes
7309
7310 # All known linkers require a `.a' archive for static linking (except MSVC,
7311 # which needs '.lib').
7312 libext=a
7313
7314 with_gnu_ld="$lt_cv_prog_gnu_ld"
7315
7316 old_CC="$CC"
7317 old_CFLAGS="$CFLAGS"
7318
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
7325
7326 for cc_temp in $compiler""; do
7327   case $cc_temp in
7328     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7329     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7330     \-*) ;;
7331     *) break;;
7332   esac
7333 done
7334 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7335
7336
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
7340 file_magic*)
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
7346 else
7347   case $MAGIC_CMD in
7348 [\\/*] |  ?:[\\/]*)
7349   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7350   ;;
7351 *)
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
7356     IFS="$lt_save_ifs"
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
7362         "file_magic "*)
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
7367             :
7368           else
7369             cat <<_LT_EOF 1>&2
7370
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
7379
7380 _LT_EOF
7381           fi ;;
7382         esac
7383       fi
7384       break
7385     fi
7386   done
7387   IFS="$lt_save_ifs"
7388   MAGIC_CMD="$lt_save_MAGIC_CMD"
7389   ;;
7390 esac
7391 fi
7392
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; }
7397 else
7398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7400 fi
7401
7402
7403
7404
7405
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
7412 else
7413   case $MAGIC_CMD in
7414 [\\/*] |  ?:[\\/]*)
7415   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7416   ;;
7417 *)
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
7422     IFS="$lt_save_ifs"
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
7428         "file_magic "*)
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
7433             :
7434           else
7435             cat <<_LT_EOF 1>&2
7436
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
7445
7446 _LT_EOF
7447           fi ;;
7448         esac
7449       fi
7450       break
7451     fi
7452   done
7453   IFS="$lt_save_ifs"
7454   MAGIC_CMD="$lt_save_MAGIC_CMD"
7455   ;;
7456 esac
7457 fi
7458
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; }
7463 else
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7466 fi
7467
7468
7469   else
7470     MAGIC_CMD=:
7471   fi
7472 fi
7473
7474   fi
7475   ;;
7476 esac
7477
7478 # Use C for the default configuration in the libtool script
7479
7480 lt_save_CC="$CC"
7481 ac_ext=c
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
7486
7487
7488 # Source file extension for C test sources.
7489 ac_ext=c
7490
7491 # Object file extension for compiled C test sources.
7492 objext=o
7493 objext=$objext
7494
7495 # Code to be used in simple compile tests
7496 lt_simple_compile_test_code="int some_variable = 0;"
7497
7498 # Code to be used in simple link tests
7499 lt_simple_link_test_code='int main(){return(0);}'
7500
7501
7502
7503
7504
7505
7506
7507 # If no C compiler was specified, use CC.
7508 LTCC=${LTCC-"$CC"}
7509
7510 # If no C compiler flags were specified, use CFLAGS.
7511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7512
7513 # Allow CC to be a program name with arguments.
7514 compiler=$CC
7515
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
7519
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`
7525 $RM conftest*
7526
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`
7531 $RM -r conftest*
7532
7533
7534 if test -n "$compiler"; then
7535
7536 lt_prog_compiler_no_builtin_flag=
7537
7538 if test "$GCC" = yes; then
7539   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7540
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
7545 else
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)
7561    ac_status=$?
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
7571      fi
7572    fi
7573    $RM conftest*
7574
7575 fi
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; }
7578
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"
7581 else
7582     :
7583 fi
7584
7585 fi
7586
7587
7588
7589
7590
7591
7592   lt_prog_compiler_wl=
7593 lt_prog_compiler_pic=
7594 lt_prog_compiler_static=
7595
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; }
7598
7599   if test "$GCC" = yes; then
7600     lt_prog_compiler_wl='-Wl,'
7601     lt_prog_compiler_static='-static'
7602
7603     case $host_os in
7604       aix*)
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'
7609       fi
7610       ;;
7611
7612     amigaos*)
7613       case $host_cpu in
7614       powerpc)
7615             # see comment about AmigaOS4 .so support
7616             lt_prog_compiler_pic='-fPIC'
7617         ;;
7618       m68k)
7619             # FIXME: we need at least 68020 code to build shared libraries, but
7620             # adding the `-m68020' flag to GCC prevents building anything better,
7621             # like `-m68040'.
7622             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7623         ;;
7624       esac
7625       ;;
7626
7627     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7628       # PIC is the default for these OSes.
7629       ;;
7630
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'
7637       ;;
7638
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'
7643       ;;
7644
7645     hpux*)
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.
7649       case $host_cpu in
7650       hppa*64*)
7651         # +Z the default
7652         ;;
7653       *)
7654         lt_prog_compiler_pic='-fPIC'
7655         ;;
7656       esac
7657       ;;
7658
7659     interix[3-9]*)
7660       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7661       # Instead, we relocate shared libraries at runtime.
7662       ;;
7663
7664     msdosdjgpp*)
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
7668       enable_shared=no
7669       ;;
7670
7671     *nto* | *qnx*)
7672       # QNX uses GNU C++, but need to define -shared option too, otherwise
7673       # it will coredump.
7674       lt_prog_compiler_pic='-fPIC -shared'
7675       ;;
7676
7677     sysv4*MP*)
7678       if test -d /usr/nec; then
7679         lt_prog_compiler_pic=-Kconform_pic
7680       fi
7681       ;;
7682
7683     *)
7684       lt_prog_compiler_pic='-fPIC'
7685       ;;
7686     esac
7687   else
7688     # PORTME Check for flag to pass linker flags through the system compiler.
7689     case $host_os in
7690     aix*)
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'
7695       else
7696         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7697       fi
7698       ;;
7699
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'
7704       ;;
7705
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
7709       # not for PA HP-UX.
7710       case $host_cpu in
7711       hppa*64*|ia64*)
7712         # +Z the default
7713         ;;
7714       *)
7715         lt_prog_compiler_pic='+Z'
7716         ;;
7717       esac
7718       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7719       lt_prog_compiler_static='${wl}-a ${wl}archive'
7720       ;;
7721
7722     irix5* | irix6* | nonstopux*)
7723       lt_prog_compiler_wl='-Wl,'
7724       # PIC (with -KPIC) is the default.
7725       lt_prog_compiler_static='-non_shared'
7726       ;;
7727
7728     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7729       case $cc_basename in
7730       # old Intel for x86_64 which still supported -KPIC.
7731       ecc*)
7732         lt_prog_compiler_wl='-Wl,'
7733         lt_prog_compiler_pic='-KPIC'
7734         lt_prog_compiler_static='-static'
7735         ;;
7736       # icc used to be incompatible with GCC.
7737       # ICC 10 doesn't accept -KPIC any more.
7738       icc* | ifort*)
7739         lt_prog_compiler_wl='-Wl,'
7740         lt_prog_compiler_pic='-fPIC'
7741         lt_prog_compiler_static='-static'
7742         ;;
7743       # Lahey Fortran 8.1.
7744       lf95*)
7745         lt_prog_compiler_wl='-Wl,'
7746         lt_prog_compiler_pic='--shared'
7747         lt_prog_compiler_static='--static'
7748         ;;
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'
7755         ;;
7756       ccc*)
7757         lt_prog_compiler_wl='-Wl,'
7758         # All Alpha code is PIC.
7759         lt_prog_compiler_static='-non_shared'
7760         ;;
7761       xl*)
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'
7766         ;;
7767       *)
7768         case `$CC -V 2>&1 | sed 5q` in
7769         *Sun\ C*)
7770           # Sun C 5.9
7771           lt_prog_compiler_pic='-KPIC'
7772           lt_prog_compiler_static='-Bstatic'
7773           lt_prog_compiler_wl='-Wl,'
7774           ;;
7775         *Sun\ F*)
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=''
7780           ;;
7781         esac
7782         ;;
7783       esac
7784       ;;
7785
7786     newsos6)
7787       lt_prog_compiler_pic='-KPIC'
7788       lt_prog_compiler_static='-Bstatic'
7789       ;;
7790
7791     *nto* | *qnx*)
7792       # QNX uses GNU C++, but need to define -shared option too, otherwise
7793       # it will coredump.
7794       lt_prog_compiler_pic='-fPIC -shared'
7795       ;;
7796
7797     osf3* | osf4* | osf5*)
7798       lt_prog_compiler_wl='-Wl,'
7799       # All OSF/1 code is PIC.
7800       lt_prog_compiler_static='-non_shared'
7801       ;;
7802
7803     rdos*)
7804       lt_prog_compiler_static='-non_shared'
7805       ;;
7806
7807     solaris*)
7808       lt_prog_compiler_pic='-KPIC'
7809       lt_prog_compiler_static='-Bstatic'
7810       case $cc_basename in
7811       f77* | f90* | f95*)
7812         lt_prog_compiler_wl='-Qoption ld ';;
7813       *)
7814         lt_prog_compiler_wl='-Wl,';;
7815       esac
7816       ;;
7817
7818     sunos4*)
7819       lt_prog_compiler_wl='-Qoption ld '
7820       lt_prog_compiler_pic='-PIC'
7821       lt_prog_compiler_static='-Bstatic'
7822       ;;
7823
7824     sysv4 | sysv4.2uw2* | sysv4.3*)
7825       lt_prog_compiler_wl='-Wl,'
7826       lt_prog_compiler_pic='-KPIC'
7827       lt_prog_compiler_static='-Bstatic'
7828       ;;
7829
7830     sysv4*MP*)
7831       if test -d /usr/nec ;then
7832         lt_prog_compiler_pic='-Kconform_pic'
7833         lt_prog_compiler_static='-Bstatic'
7834       fi
7835       ;;
7836
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'
7841       ;;
7842
7843     unicos*)
7844       lt_prog_compiler_wl='-Wl,'
7845       lt_prog_compiler_can_build_shared=no
7846       ;;
7847
7848     uts4*)
7849       lt_prog_compiler_pic='-pic'
7850       lt_prog_compiler_static='-Bstatic'
7851       ;;
7852
7853     *)
7854       lt_prog_compiler_can_build_shared=no
7855       ;;
7856     esac
7857   fi
7858
7859 case $host_os in
7860   # For platforms which do not support PIC, -DPIC is meaningless:
7861   *djgpp*)
7862     lt_prog_compiler_pic=
7863     ;;
7864   *)
7865     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7866     ;;
7867 esac
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7869 $as_echo "$lt_prog_compiler_pic" >&6; }
7870
7871
7872
7873
7874
7875
7876 #
7877 # Check to make sure the PIC flag actually works.
7878 #
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
7884 else
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)
7900    ac_status=$?
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
7910      fi
7911    fi
7912    $RM conftest*
7913
7914 fi
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; }
7917
7918 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7919     case $lt_prog_compiler_pic in
7920      "" | " "*) ;;
7921      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7922      esac
7923 else
7924     lt_prog_compiler_pic=
7925      lt_prog_compiler_can_build_shared=no
7926 fi
7927
7928 fi
7929
7930
7931
7932
7933
7934
7935 #
7936 # Check to make sure the static flag actually works.
7937 #
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
7943 else
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
7958        fi
7959      else
7960        lt_cv_prog_compiler_static_works=yes
7961      fi
7962    fi
7963    $RM -r conftest*
7964    LDFLAGS="$save_LDFLAGS"
7965
7966 fi
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; }
7969
7970 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7971     :
7972 else
7973     lt_prog_compiler_static=
7974 fi
7975
7976
7977
7978
7979
7980
7981
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
7986 else
7987   lt_cv_prog_compiler_c_o=no
7988    $RM -r conftest 2>/dev/null
7989    mkdir conftest
7990    cd conftest
7991    mkdir out
7992    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7993
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)
8005    ac_status=$?
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
8009    then
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
8016      fi
8017    fi
8018    chmod u+w . 2>&5
8019    $RM conftest*
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
8024    cd ..
8025    $RM -r conftest
8026    $RM conftest*
8027
8028 fi
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; }
8031
8032
8033
8034
8035
8036
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
8041 else
8042   lt_cv_prog_compiler_c_o=no
8043    $RM -r conftest 2>/dev/null
8044    mkdir conftest
8045    cd conftest
8046    mkdir out
8047    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8048
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)
8060    ac_status=$?
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
8064    then
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
8071      fi
8072    fi
8073    chmod u+w . 2>&5
8074    $RM conftest*
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
8079    cd ..
8080    $RM -r conftest
8081    $RM conftest*
8082
8083 fi
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; }
8086
8087
8088
8089
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; }
8095   hard_links=yes
8096   $RM conftest*
8097   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8098   touch conftest.a
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;}
8106     need_locks=warn
8107   fi
8108 else
8109   need_locks=no
8110 fi
8111
8112
8113
8114
8115
8116
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; }
8119
8120   runpath_var=
8121   allow_undefined_flag=
8122   always_export_symbols=no
8123   archive_cmds=
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
8130   hardcode_direct=no
8131   hardcode_direct_absolute=no
8132   hardcode_libdir_flag_spec=
8133   hardcode_libdir_flag_spec_ld=
8134   hardcode_libdir_separator=
8135   hardcode_minus_L=no
8136   hardcode_shlibpath_var=unsupported
8137   inherit_rpath=no
8138   link_all_deplibs=unknown
8139   module_cmds=
8140   module_expsym_cmds=
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
8147   include_expsyms=
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=
8160
8161   case $host_os in
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
8167       with_gnu_ld=no
8168     fi
8169     ;;
8170   interix*)
8171     # we just hope/assume this is gcc and not c89 (= MSVC++)
8172     with_gnu_ld=yes
8173     ;;
8174   openbsd*)
8175     with_gnu_ld=no
8176     ;;
8177   linux* | k*bsd*-gnu)
8178     link_all_deplibs=no
8179     ;;
8180   esac
8181
8182   ld_shlibs=yes
8183   if test "$with_gnu_ld" = yes; then
8184     # If archive_cmds runs LD, not CC, wlarc should be empty
8185     wlarc='${wl}'
8186
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'
8196     else
8197       whole_archive_flag_spec=
8198     fi
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 ;;
8207     esac
8208
8209     # See if GNU ld supports shared libraries.
8210     case $host_os in
8211     aix[3-9]*)
8212       # On AIX/PPC, the GNU linker is very broken
8213       if test "$host_cpu" != ia64; then
8214         ld_shlibs=no
8215         cat <<_LT_EOF 1>&2
8216
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.
8222
8223 _LT_EOF
8224       fi
8225       ;;
8226
8227     amigaos*)
8228       case $host_cpu in
8229       powerpc)
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=''
8233         ;;
8234       m68k)
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
8238         ;;
8239       esac
8240       ;;
8241
8242     beos*)
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'
8248       else
8249         ld_shlibs=no
8250       fi
8251       ;;
8252
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'
8261
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;
8268         else
8269           echo EXPORTS > $output_objdir/$soname.def;
8270           cat $export_symbols >> $output_objdir/$soname.def;
8271         fi~
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'
8273       else
8274         ld_shlibs=no
8275       fi
8276       ;;
8277
8278     interix[3-9]*)
8279       hardcode_direct=no
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'
8291       ;;
8292
8293     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8294       tmp_diet=no
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)
8298         esac
8299       fi
8300       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8301          && test "$tmp_diet" = no
8302       then
8303         tmp_addflag=
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'
8309           ;;
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'
8324           tmp_addflag= ;;
8325         esac
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' ;;
8333         esac
8334         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8335
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'
8341         fi
8342
8343         case $cc_basename in
8344         xlf*)
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'
8355           fi
8356           ;;
8357         esac
8358       else
8359         ld_shlibs=no
8360       fi
8361       ;;
8362
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'
8366         wlarc=
8367       else
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'
8370       fi
8371       ;;
8372
8373     solaris*)
8374       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8375         ld_shlibs=no
8376         cat <<_LT_EOF 1>&2
8377
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.
8384
8385 _LT_EOF
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'
8389       else
8390         ld_shlibs=no
8391       fi
8392       ;;
8393
8394     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8395       case `$LD -v 2>&1` in
8396         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8397         ld_shlibs=no
8398         cat <<_LT_EOF 1>&2
8399
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.
8406
8407 _LT_EOF
8408         ;;
8409         *)
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'
8418           else
8419             ld_shlibs=no
8420           fi
8421         ;;
8422       esac
8423       ;;
8424
8425     sunos4*)
8426       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8427       wlarc=
8428       hardcode_direct=yes
8429       hardcode_shlibpath_var=no
8430       ;;
8431
8432     *)
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'
8436       else
8437         ld_shlibs=no
8438       fi
8439       ;;
8440     esac
8441
8442     if test "$ld_shlibs" = no; then
8443       runpath_var=
8444       hardcode_libdir_flag_spec=
8445       export_dynamic_flag_spec=
8446       whole_archive_flag_spec=
8447     fi
8448   else
8449     # PORTME fill in a description of your system's linker (not GNU ld)
8450     case $host_os in
8451     aix3*)
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
8460         # broken collect2.
8461         hardcode_direct=unsupported
8462       fi
8463       ;;
8464
8465     aix[4-9]*)
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'
8471         no_entry_flag=""
8472       else
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'
8477         else
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'
8479         fi
8480         aix_use_runtimelinking=no
8481
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
8489             break
8490           fi
8491           done
8492           ;;
8493         esac
8494
8495         exp_sym_flag='-bexport'
8496         no_entry_flag='-bnoentry'
8497       fi
8498
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.
8504
8505       archive_cmds=''
8506       hardcode_direct=yes
8507       hardcode_direct_absolute=yes
8508       hardcode_libdir_separator=':'
8509       link_all_deplibs=yes
8510       file_list_spec='${wl}-f,'
8511
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
8519           then
8520           # We have reworked collect2
8521           :
8522           else
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=
8531           fi
8532           ;;
8533         esac
8534         shared_flag='-shared'
8535         if test "$aix_use_runtimelinking" = yes; then
8536           shared_flag="$shared_flag "'${wl}-G'
8537         fi
8538         link_all_deplibs=no
8539       else
8540         # not using gcc
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:
8544           shared_flag='-G'
8545         else
8546           if test "$aix_use_runtimelinking" = yes; then
8547             shared_flag='${wl}-G'
8548           else
8549             shared_flag='${wl}-bM:SRE'
8550           fi
8551         fi
8552       fi
8553
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
8563         # empty executable.
8564         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h.  */
8566
8567 int
8568 main ()
8569 {
8570
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 if ac_fn_c_try_link "$LINENO"; then :
8576
8577 lt_aix_libpath_sed='
8578     /Import File Strings/,/^$/ {
8579         /^0/ {
8580             s/^0  *\(.*\)$/\1/
8581             p
8582         }
8583     }'
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"`
8588 fi
8589 fi
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
8593
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"
8596       else
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"
8601         else
8602          # Determine the default libpath from the value encoded in an
8603          # empty executable.
8604          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h.  */
8606
8607 int
8608 main ()
8609 {
8610
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"; then :
8616
8617 lt_aix_libpath_sed='
8618     /Import File Strings/,/^$/ {
8619         /^0/ {
8620             s/^0  *\(.*\)$/\1/
8621             p
8622         }
8623     }'
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"`
8628 fi
8629 fi
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
8633
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'
8644         fi
8645       fi
8646       ;;
8647
8648     amigaos*)
8649       case $host_cpu in
8650       powerpc)
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=''
8654         ;;
8655       m68k)
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
8659         ;;
8660       esac
8661       ;;
8662
8663     bsdi[45]*)
8664       export_dynamic_flag_spec=-rdynamic
8665       ;;
8666
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.
8675       libext=lib
8676       # Tell ltmain to make .dll files, not .so files.
8677       shrext_cmds=".dll"
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
8686       ;;
8687
8688     darwin* | rhapsody*)
8689
8690
8691   archive_cmds_need_lc=no
8692   hardcode_direct=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 ;;
8701   esac
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}"
8708
8709   else
8710   ld_shlibs=no
8711   fi
8712
8713       ;;
8714
8715     dgux*)
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
8719       ;;
8720
8721     freebsd1*)
8722       ld_shlibs=no
8723       ;;
8724
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
8728     # extra space).
8729     freebsd2.2*)
8730       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8731       hardcode_libdir_flag_spec='-R$libdir'
8732       hardcode_direct=yes
8733       hardcode_shlibpath_var=no
8734       ;;
8735
8736     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8737     freebsd2*)
8738       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8739       hardcode_direct=yes
8740       hardcode_minus_L=yes
8741       hardcode_shlibpath_var=no
8742       ;;
8743
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'
8748       hardcode_direct=yes
8749       hardcode_shlibpath_var=no
8750       ;;
8751
8752     hpux9*)
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'
8755       else
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'
8757       fi
8758       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8759       hardcode_libdir_separator=:
8760       hardcode_direct=yes
8761
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'
8766       ;;
8767
8768     hpux10*)
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'
8771       else
8772         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8773       fi
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=:
8778         hardcode_direct=yes
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
8784       fi
8785       ;;
8786
8787     hpux11*)
8788       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8789         case $host_cpu in
8790         hppa*64*)
8791           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8792           ;;
8793         ia64*)
8794           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8795           ;;
8796         *)
8797           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8798           ;;
8799         esac
8800       else
8801         case $host_cpu in
8802         hppa*64*)
8803           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8804           ;;
8805         ia64*)
8806           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8807           ;;
8808         *)
8809           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8810           ;;
8811         esac
8812       fi
8813       if test "$with_gnu_ld" = no; then
8814         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8815         hardcode_libdir_separator=:
8816
8817         case $host_cpu in
8818         hppa*64*|ia64*)
8819           hardcode_direct=no
8820           hardcode_shlibpath_var=no
8821           ;;
8822         *)
8823           hardcode_direct=yes
8824           hardcode_direct_absolute=yes
8825           export_dynamic_flag_spec='${wl}-E'
8826
8827           # hardcode_minus_L: Not really in the search PATH,
8828           # but as the default location of the library.
8829           hardcode_minus_L=yes
8830           ;;
8831         esac
8832       fi
8833       ;;
8834
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.  */
8845 int foo(void) {}
8846 _ACEOF
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'
8849
8850 fi
8851 rm -f core conftest.err conftest.$ac_objext \
8852     conftest$ac_exeext conftest.$ac_ext
8853         LDFLAGS="$save_LDFLAGS"
8854       else
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'
8857       fi
8858       archive_cmds_need_lc='no'
8859       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860       hardcode_libdir_separator=:
8861       inherit_rpath=yes
8862       link_all_deplibs=yes
8863       ;;
8864
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
8868       else
8869         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8870       fi
8871       hardcode_libdir_flag_spec='-R$libdir'
8872       hardcode_direct=yes
8873       hardcode_shlibpath_var=no
8874       ;;
8875
8876     newsos6)
8877       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8878       hardcode_direct=yes
8879       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880       hardcode_libdir_separator=:
8881       hardcode_shlibpath_var=no
8882       ;;
8883
8884     *nto* | *qnx*)
8885       ;;
8886
8887     openbsd*)
8888       if test -f /usr/libexec/ld.so; then
8889         hardcode_direct=yes
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'
8897         else
8898           case $host_os in
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'
8902              ;;
8903            *)
8904              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8905              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8906              ;;
8907           esac
8908         fi
8909       else
8910         ld_shlibs=no
8911       fi
8912       ;;
8913
8914     os2*)
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'
8920       ;;
8921
8922     osf3*)
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'
8926       else
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'
8929       fi
8930       archive_cmds_need_lc='no'
8931       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8932       hardcode_libdir_separator=:
8933       ;;
8934
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'
8940       else
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'
8945
8946         # Both c and cxx compiler support -rpath directly
8947         hardcode_libdir_flag_spec='-rpath $libdir'
8948       fi
8949       archive_cmds_need_lc='no'
8950       hardcode_libdir_separator=:
8951       ;;
8952
8953     solaris*)
8954       no_undefined_flag=' -z defs'
8955       if test "$GCC" = yes; then
8956         wlarc='${wl}'
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'
8960       else
8961         case `$CC -V 2>&1` in
8962         *"Compilers 5.0"*)
8963           wlarc=''
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'
8967           ;;
8968         *)
8969           wlarc='${wl}'
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'
8973           ;;
8974         esac
8975       fi
8976       hardcode_libdir_flag_spec='-R$libdir'
8977       hardcode_shlibpath_var=no
8978       case $host_os in
8979       solaris2.[0-5] | solaris2.[0-5].*) ;;
8980       *)
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'
8987         else
8988           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8989         fi
8990         ;;
8991       esac
8992       link_all_deplibs=yes
8993       ;;
8994
8995     sunos4*)
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'
9000       else
9001         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9002       fi
9003       hardcode_libdir_flag_spec='-L$libdir'
9004       hardcode_direct=yes
9005       hardcode_minus_L=yes
9006       hardcode_shlibpath_var=no
9007       ;;
9008
9009     sysv4)
9010       case $host_vendor in
9011         sni)
9012           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013           hardcode_direct=yes # is this really true???
9014         ;;
9015         siemens)
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'
9020           hardcode_direct=no
9021         ;;
9022         motorola)
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
9025         ;;
9026       esac
9027       runpath_var='LD_RUN_PATH'
9028       hardcode_shlibpath_var=no
9029       ;;
9030
9031     sysv4.3*)
9032       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033       hardcode_shlibpath_var=no
9034       export_dynamic_flag_spec='-Bexport'
9035       ;;
9036
9037     sysv4*MP*)
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
9043         ld_shlibs=yes
9044       fi
9045       ;;
9046
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'
9052
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'
9056       else
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'
9059       fi
9060       ;;
9061
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
9068       # as -z defs.
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'
9078
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'
9082       else
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'
9085       fi
9086       ;;
9087
9088     uts4*)
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
9092       ;;
9093
9094     *)
9095       ld_shlibs=no
9096       ;;
9097     esac
9098
9099     if test x$host_vendor = xsni; then
9100       case $host in
9101       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9102         export_dynamic_flag_spec='${wl}-Blargedynsym'
9103         ;;
9104       esac
9105     fi
9106   fi
9107
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
9111
9112 with_gnu_ld=$with_gnu_ld
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128 #
9129 # Do we need to explicitly link libc?
9130 #
9131 case "x$archive_cmds_need_lc" in
9132 x|xyes)
9133   # Assume -lc should be added
9134   archive_cmds_need_lc=yes
9135
9136   if test "$enable_shared" = yes && test "$GCC" = yes; then
9137     case $archive_cmds in
9138     *'~'*)
9139       # FIXME: we may have to deal with multi-command sequences.
9140       ;;
9141     '$CC '*)
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; }
9147       $RM conftest*
9148       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9149
9150       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9151   (eval $ac_compile) 2>&5
9152   ac_status=$?
9153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9154   test $ac_status = 0; } 2>conftest.err; then
9155         soname=conftest
9156         lib=conftest
9157         libobjs=conftest.$ac_objext
9158         deplibs=
9159         wl=$lt_prog_compiler_wl
9160         pic_flag=$lt_prog_compiler_pic
9161         compiler_flags=-v
9162         linker_flags=-v
9163         verstring=
9164         output_objdir=.
9165         libname=conftest
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
9170   ac_status=$?
9171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9172   test $ac_status = 0; }
9173         then
9174           archive_cmds_need_lc=no
9175         else
9176           archive_cmds_need_lc=yes
9177         fi
9178         allow_undefined_flag=$lt_save_allow_undefined_flag
9179       else
9180         cat conftest.err 1>&5
9181       fi
9182       $RM conftest*
9183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9184 $as_echo "$archive_cmds_need_lc" >&6; }
9185       ;;
9186     esac
9187   fi
9188   ;;
9189 esac
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9348 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9349
9350 if test "$GCC" = yes; then
9351   case $host_os in
9352     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9353     *) lt_awk_arg="/^libraries:/" ;;
9354   esac
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'`
9362   else
9363     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9364   fi
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"
9372     else
9373       test -d "$lt_sys_path" && \
9374         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9375     fi
9376   done
9377   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9378 BEGIN {RS=" "; FS="/|\n";} {
9379   lt_foo="";
9380   lt_count=0;
9381   for (lt_i = NF; lt_i > 0; lt_i--) {
9382     if ($lt_i != "" && $lt_i != ".") {
9383       if ($lt_i == "..") {
9384         lt_count++;
9385       } else {
9386         if (lt_count == 0) {
9387           lt_foo="/" $lt_i lt_foo;
9388         } else {
9389           lt_count--;
9390         }
9391       }
9392     }
9393   }
9394   if (lt_foo != "") { lt_freq[lt_foo]++; }
9395   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9396 }'`
9397   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9398 else
9399   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9400 fi
9401 library_names_spec=
9402 libname_spec='lib$name'
9403 soname_spec=
9404 shrext_cmds=".so"
9405 postinstall_cmds=
9406 postuninstall_cmds=
9407 finish_cmds=
9408 finish_eval=
9409 shlibpath_var=
9410 shlibpath_overrides_runpath=unknown
9411 version_type=none
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
9416
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
9420
9421 case $host_os in
9422 aix3*)
9423   version_type=linux
9424   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9425   shlibpath_var=LIBPATH
9426
9427   # AIX 3 has no versioning support, so we append a major version to the name.
9428   soname_spec='${libname}${release}${shared_ext}$major'
9429   ;;
9430
9431 aix[4-9]*)
9432   version_type=linux
9433   need_lib_prefix=no
9434   need_version=no
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
9440   else
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.
9446     case $host_os in
9447       aix4 | aix4.[01] | aix4.[01].*)
9448       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9449            echo ' yes '
9450            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9451         :
9452       else
9453         can_build_shared=no
9454       fi
9455       ;;
9456     esac
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}'
9465     else
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'
9470     fi
9471     shlibpath_var=LIBPATH
9472   fi
9473   ;;
9474
9475 amigaos*)
9476   case $host_cpu in
9477   powerpc)
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}'
9481     ;;
9482   m68k)
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'
9486     ;;
9487   esac
9488   ;;
9489
9490 beos*)
9491   library_names_spec='${libname}${shared_ext}'
9492   dynamic_linker="$host_os ld.so"
9493   shlibpath_var=LIBRARY_PATH
9494   ;;
9495
9496 bsdi[45]*)
9497   version_type=linux
9498   need_version=no
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
9508   ;;
9509
9510 cygwin* | mingw* | pw32* | cegcc*)
9511   version_type=windows
9512   shrext_cmds=".dll"
9513   need_version=no
9514   need_lib_prefix=no
9515
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 \$?;
9528       fi'
9529     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9530       dlpath=$dir/\$dldll~
9531        $RM \$dlpath'
9532     shlibpath_overrides_runpath=yes
9533
9534     case $host_os in
9535     cygwin*)
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"
9539       ;;
9540     mingw* | cegcc*)
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'`
9552       else
9553         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9554       fi
9555       ;;
9556     pw32*)
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}'
9559       ;;
9560     esac
9561     ;;
9562
9563   *)
9564     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9565     ;;
9566   esac
9567   dynamic_linker='Win32 ld.exe'
9568   # FIXME: first we should search . and the directory the executable is in
9569   shlibpath_var=PATH
9570   ;;
9571
9572 darwin* | rhapsody*)
9573   dynamic_linker="$host_os dyld"
9574   version_type=darwin
9575   need_lib_prefix=no
9576   need_version=no
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`'
9582
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'
9585   ;;
9586
9587 dgux*)
9588   version_type=linux
9589   need_lib_prefix=no
9590   need_version=no
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
9594   ;;
9595
9596 freebsd1*)
9597   dynamic_linker=no
9598   ;;
9599
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`
9605   else
9606     case $host_os in
9607     freebsd[123]*) objformat=aout ;;
9608     *) objformat=elf ;;
9609     esac
9610   fi
9611   version_type=freebsd-$objformat
9612   case $version_type in
9613     freebsd-elf*)
9614       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9615       need_version=no
9616       need_lib_prefix=no
9617       ;;
9618     freebsd-*)
9619       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9620       need_version=yes
9621       ;;
9622   esac
9623   shlibpath_var=LD_LIBRARY_PATH
9624   case $host_os in
9625   freebsd2*)
9626     shlibpath_overrides_runpath=yes
9627     ;;
9628   freebsd3.[01]* | freebsdelf3.[01]*)
9629     shlibpath_overrides_runpath=yes
9630     hardcode_into_libs=yes
9631     ;;
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
9636     ;;
9637   *) # from 4.6 on, and DragonFly
9638     shlibpath_overrides_runpath=yes
9639     hardcode_into_libs=yes
9640     ;;
9641   esac
9642   ;;
9643
9644 gnu*)
9645   version_type=linux
9646   need_lib_prefix=no
9647   need_version=no
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
9652   ;;
9653
9654 hpux9* | hpux10* | hpux11*)
9655   # Give a soname corresponding to the major version so that dld.sl refuses to
9656   # link against other versions.
9657   version_type=sunos
9658   need_lib_prefix=no
9659   need_version=no
9660   case $host_cpu in
9661   ia64*)
9662     shrext_cmds='.so'
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"
9671     else
9672       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9673     fi
9674     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9675     ;;
9676   hppa*64*)
9677     shrext_cmds='.sl'
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
9686     ;;
9687   *)
9688     shrext_cmds='.sl'
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'
9694     ;;
9695   esac
9696   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9697   postinstall_cmds='chmod 555 $lib'
9698   ;;
9699
9700 interix[3-9]*)
9701   version_type=linux
9702   need_lib_prefix=no
9703   need_version=no
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
9710   ;;
9711
9712 irix5* | irix6* | nonstopux*)
9713   case $host_os in
9714     nonstopux*) version_type=nonstopux ;;
9715     *)
9716         if test "$lt_cv_prog_gnu_ld" = yes; then
9717                 version_type=linux
9718         else
9719                 version_type=irix
9720         fi ;;
9721   esac
9722   need_lib_prefix=no
9723   need_version=no
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}'
9726   case $host_os in
9727   irix5* | nonstopux*)
9728     libsuff= shlibsuff=
9729     ;;
9730   *)
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;;
9739     esac
9740     ;;
9741   esac
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
9747   ;;
9748
9749 # No shared lib support for Linux oldld, aout, or coff.
9750 linux*oldld* | linux*aout* | linux*coff*)
9751   dynamic_linker=no
9752   ;;
9753
9754 # This must be Linux ELF.
9755 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9756   version_type=linux
9757   need_lib_prefix=no
9758   need_version=no
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
9766   save_libdir=$libdir
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.  */
9771
9772 int
9773 main ()
9774 {
9775
9776   ;
9777   return 0;
9778 }
9779 _ACEOF
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
9783 fi
9784 fi
9785 rm -f core conftest.err conftest.$ac_objext \
9786     conftest$ac_exeext conftest.$ac_ext
9787   LDFLAGS=$save_LDFLAGS
9788   libdir=$save_libdir
9789
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
9794
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"
9799   fi
9800
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'
9808   ;;
9809
9810 netbsdelf*-gnu)
9811   version_type=linux
9812   need_lib_prefix=no
9813   need_version=no
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'
9820   ;;
9821
9822 netbsd*)
9823   version_type=sunos
9824   need_lib_prefix=no
9825   need_version=no
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'
9830   else
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'
9834   fi
9835   shlibpath_var=LD_LIBRARY_PATH
9836   shlibpath_overrides_runpath=yes
9837   hardcode_into_libs=yes
9838   ;;
9839
9840 newsos6)
9841   version_type=linux
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
9845   ;;
9846
9847 *nto* | *qnx*)
9848   version_type=qnx
9849   need_lib_prefix=no
9850   need_version=no
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'
9857   ;;
9858
9859 openbsd*)
9860   version_type=sunos
9861   sys_lib_dlsearch_path_spec="/usr/lib"
9862   need_lib_prefix=no
9863   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9864   case $host_os in
9865     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9866     *)                          need_version=no  ;;
9867   esac
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
9872     case $host_os in
9873       openbsd2.[89] | openbsd2.[89].*)
9874         shlibpath_overrides_runpath=no
9875         ;;
9876       *)
9877         shlibpath_overrides_runpath=yes
9878         ;;
9879       esac
9880   else
9881     shlibpath_overrides_runpath=yes
9882   fi
9883   ;;
9884
9885 os2*)
9886   libname_spec='$name'
9887   shrext_cmds=".dll"
9888   need_lib_prefix=no
9889   library_names_spec='$libname${shared_ext} $libname.a'
9890   dynamic_linker='OS/2 ld.exe'
9891   shlibpath_var=LIBPATH
9892   ;;
9893
9894 osf3* | osf4* | osf5*)
9895   version_type=osf
9896   need_lib_prefix=no
9897   need_version=no
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"
9903   ;;
9904
9905 rdos*)
9906   dynamic_linker=no
9907   ;;
9908
9909 solaris*)
9910   version_type=linux
9911   need_lib_prefix=no
9912   need_version=no
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'
9920   ;;
9921
9922 sunos4*)
9923   version_type=sunos
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
9929     need_lib_prefix=no
9930   fi
9931   need_version=yes
9932   ;;
9933
9934 sysv4 | sysv4.3*)
9935   version_type=linux
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
9940     sni)
9941       shlibpath_overrides_runpath=no
9942       need_lib_prefix=no
9943       runpath_var=LD_RUN_PATH
9944       ;;
9945     siemens)
9946       need_lib_prefix=no
9947       ;;
9948     motorola)
9949       need_lib_prefix=no
9950       need_version=no
9951       shlibpath_overrides_runpath=no
9952       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9953       ;;
9954   esac
9955   ;;
9956
9957 sysv4*MP*)
9958   if test -d /usr/nec ;then
9959     version_type=linux
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
9963   fi
9964   ;;
9965
9966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9967   version_type=freebsd-elf
9968   need_lib_prefix=no
9969   need_version=no
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'
9977   else
9978     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9979     case $host_os in
9980       sco3.2v5*)
9981         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9982         ;;
9983     esac
9984   fi
9985   sys_lib_dlsearch_path_spec='/usr/lib'
9986   ;;
9987
9988 tpf*)
9989   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9990   version_type=linux
9991   need_lib_prefix=no
9992   need_version=no
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
9997   ;;
9998
9999 uts4*)
10000   version_type=linux
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
10004   ;;
10005
10006 *)
10007   dynamic_linker=no
10008   ;;
10009 esac
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
10013
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"
10017 fi
10018
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"
10021 fi
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"
10024 fi
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
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; }
10114 hardcode_action=
10115 if test -n "$hardcode_libdir_flag_spec" ||
10116    test -n "$runpath_var" ||
10117    test "X$hardcode_automatic" = "Xyes" ; then
10118
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
10128   else
10129     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10130     hardcode_action=immediate
10131   fi
10132 else
10133   # We cannot hardcode anything, or else we can only hardcode existing
10134   # directories.
10135   hardcode_action=unsupported
10136 fi
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10138 $as_echo "$hardcode_action" >&6; }
10139
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
10148 fi
10149
10150
10151
10152
10153
10154
10155   if test "x$enable_dlopen" != xyes; then
10156   enable_dlopen=unknown
10157   enable_dlopen_self=unknown
10158   enable_dlopen_self_static=unknown
10159 else
10160   lt_cv_dlopen=no
10161   lt_cv_dlopen_libs=
10162
10163   case $host_os in
10164   beos*)
10165     lt_cv_dlopen="load_add_on"
10166     lt_cv_dlopen_libs=
10167     lt_cv_dlopen_self=yes
10168     ;;
10169
10170   mingw* | pw32* | cegcc*)
10171     lt_cv_dlopen="LoadLibrary"
10172     lt_cv_dlopen_libs=
10173     ;;
10174
10175   cygwin*)
10176     lt_cv_dlopen="dlopen"
10177     lt_cv_dlopen_libs=
10178     ;;
10179
10180   darwin*)
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
10186 else
10187   ac_check_lib_save_LIBS=$LIBS
10188 LIBS="-ldl  $LIBS"
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h.  */
10191
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.  */
10195 #ifdef __cplusplus
10196 extern "C"
10197 #endif
10198 char dlopen ();
10199 int
10200 main ()
10201 {
10202 return dlopen ();
10203   ;
10204   return 0;
10205 }
10206 _ACEOF
10207 if ac_fn_c_try_link "$LINENO"; then :
10208   ac_cv_lib_dl_dlopen=yes
10209 else
10210   ac_cv_lib_dl_dlopen=no
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext \
10213     conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10215 fi
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"
10220 else
10221
10222     lt_cv_dlopen="dyld"
10223     lt_cv_dlopen_libs=
10224     lt_cv_dlopen_self=yes
10225
10226 fi
10227
10228     ;;
10229
10230   *)
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"
10234 else
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
10239 else
10240   ac_check_lib_save_LIBS=$LIBS
10241 LIBS="-ldld  $LIBS"
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h.  */
10244
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.  */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 char shl_load ();
10252 int
10253 main ()
10254 {
10255 return shl_load ();
10256   ;
10257   return 0;
10258 }
10259 _ACEOF
10260 if ac_fn_c_try_link "$LINENO"; then :
10261   ac_cv_lib_dld_shl_load=yes
10262 else
10263   ac_cv_lib_dld_shl_load=no
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext \
10266     conftest$ac_exeext conftest.$ac_ext
10267 LIBS=$ac_check_lib_save_LIBS
10268 fi
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"
10273 else
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"
10277 else
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
10282 else
10283   ac_check_lib_save_LIBS=$LIBS
10284 LIBS="-ldl  $LIBS"
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h.  */
10287
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.  */
10291 #ifdef __cplusplus
10292 extern "C"
10293 #endif
10294 char dlopen ();
10295 int
10296 main ()
10297 {
10298 return dlopen ();
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 if ac_fn_c_try_link "$LINENO"; then :
10304   ac_cv_lib_dl_dlopen=yes
10305 else
10306   ac_cv_lib_dl_dlopen=no
10307 fi
10308 rm -f core conftest.err conftest.$ac_objext \
10309     conftest$ac_exeext conftest.$ac_ext
10310 LIBS=$ac_check_lib_save_LIBS
10311 fi
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"
10316 else
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
10321 else
10322   ac_check_lib_save_LIBS=$LIBS
10323 LIBS="-lsvld  $LIBS"
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h.  */
10326
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.  */
10330 #ifdef __cplusplus
10331 extern "C"
10332 #endif
10333 char dlopen ();
10334 int
10335 main ()
10336 {
10337 return dlopen ();
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10343   ac_cv_lib_svld_dlopen=yes
10344 else
10345   ac_cv_lib_svld_dlopen=no
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext \
10348     conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_lib_save_LIBS
10350 fi
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"
10355 else
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
10360 else
10361   ac_check_lib_save_LIBS=$LIBS
10362 LIBS="-ldld  $LIBS"
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h.  */
10365
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.  */
10369 #ifdef __cplusplus
10370 extern "C"
10371 #endif
10372 char dld_link ();
10373 int
10374 main ()
10375 {
10376 return dld_link ();
10377   ;
10378   return 0;
10379 }
10380 _ACEOF
10381 if ac_fn_c_try_link "$LINENO"; then :
10382   ac_cv_lib_dld_dld_link=yes
10383 else
10384   ac_cv_lib_dld_dld_link=no
10385 fi
10386 rm -f core conftest.err conftest.$ac_objext \
10387     conftest$ac_exeext conftest.$ac_ext
10388 LIBS=$ac_check_lib_save_LIBS
10389 fi
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"
10394 fi
10395
10396
10397 fi
10398
10399
10400 fi
10401
10402
10403 fi
10404
10405
10406 fi
10407
10408
10409 fi
10410
10411     ;;
10412   esac
10413
10414   if test "x$lt_cv_dlopen" != xno; then
10415     enable_dlopen=yes
10416   else
10417     enable_dlopen=no
10418   fi
10419
10420   case $lt_cv_dlopen in
10421   dlopen)
10422     save_CPPFLAGS="$CPPFLAGS"
10423     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10424
10425     save_LDFLAGS="$LDFLAGS"
10426     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10427
10428     save_LIBS="$LIBS"
10429     LIBS="$lt_cv_dlopen_libs $LIBS"
10430
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
10435 else
10436           if test "$cross_compiling" = yes; then :
10437   lt_cv_dlopen_self=cross
10438 else
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"
10444
10445 #if HAVE_DLFCN_H
10446 #include <dlfcn.h>
10447 #endif
10448
10449 #include <stdio.h>
10450
10451 #ifdef RTLD_GLOBAL
10452 #  define LT_DLGLOBAL           RTLD_GLOBAL
10453 #else
10454 #  ifdef DL_GLOBAL
10455 #    define LT_DLGLOBAL         DL_GLOBAL
10456 #  else
10457 #    define LT_DLGLOBAL         0
10458 #  endif
10459 #endif
10460
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
10464 #  ifdef RTLD_LAZY
10465 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10466 #  else
10467 #    ifdef DL_LAZY
10468 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10469 #    else
10470 #      ifdef RTLD_NOW
10471 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10472 #      else
10473 #        ifdef DL_NOW
10474 #          define LT_DLLAZY_OR_NOW      DL_NOW
10475 #        else
10476 #          define LT_DLLAZY_OR_NOW      0
10477 #        endif
10478 #      endif
10479 #    endif
10480 #  endif
10481 #endif
10482
10483 void fnord() { int i=42;}
10484 int main ()
10485 {
10486   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10487   int status = $lt_dlunknown;
10488
10489   if (self)
10490     {
10491       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10492       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10493       /* dlclose (self); */
10494     }
10495   else
10496     puts (dlerror ());
10497
10498   return status;
10499 }
10500 _LT_EOF
10501   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10502   (eval $ac_link) 2>&5
10503   ac_status=$?
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
10507     lt_status=$?
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 ;;
10512     esac
10513   else :
10514     # compilation failed
10515     lt_cv_dlopen_self=no
10516   fi
10517 fi
10518 rm -fr conftest*
10519
10520
10521 fi
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10523 $as_echo "$lt_cv_dlopen_self" >&6; }
10524
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
10531 else
10532           if test "$cross_compiling" = yes; then :
10533   lt_cv_dlopen_self_static=cross
10534 else
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"
10540
10541 #if HAVE_DLFCN_H
10542 #include <dlfcn.h>
10543 #endif
10544
10545 #include <stdio.h>
10546
10547 #ifdef RTLD_GLOBAL
10548 #  define LT_DLGLOBAL           RTLD_GLOBAL
10549 #else
10550 #  ifdef DL_GLOBAL
10551 #    define LT_DLGLOBAL         DL_GLOBAL
10552 #  else
10553 #    define LT_DLGLOBAL         0
10554 #  endif
10555 #endif
10556
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
10560 #  ifdef RTLD_LAZY
10561 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10562 #  else
10563 #    ifdef DL_LAZY
10564 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10565 #    else
10566 #      ifdef RTLD_NOW
10567 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10568 #      else
10569 #        ifdef DL_NOW
10570 #          define LT_DLLAZY_OR_NOW      DL_NOW
10571 #        else
10572 #          define LT_DLLAZY_OR_NOW      0
10573 #        endif
10574 #      endif
10575 #    endif
10576 #  endif
10577 #endif
10578
10579 void fnord() { int i=42;}
10580 int main ()
10581 {
10582   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10583   int status = $lt_dlunknown;
10584
10585   if (self)
10586     {
10587       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10588       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10589       /* dlclose (self); */
10590     }
10591   else
10592     puts (dlerror ());
10593
10594   return status;
10595 }
10596 _LT_EOF
10597   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10598   (eval $ac_link) 2>&5
10599   ac_status=$?
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
10603     lt_status=$?
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 ;;
10608     esac
10609   else :
10610     # compilation failed
10611     lt_cv_dlopen_self_static=no
10612   fi
10613 fi
10614 rm -fr conftest*
10615
10616
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10619 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10620     fi
10621
10622     CPPFLAGS="$save_CPPFLAGS"
10623     LDFLAGS="$save_LDFLAGS"
10624     LIBS="$save_LIBS"
10625     ;;
10626   esac
10627
10628   case $lt_cv_dlopen_self in
10629   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10630   *) enable_dlopen_self=unknown ;;
10631   esac
10632
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 ;;
10636   esac
10637 fi
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655 striplib=
10656 old_striplib=
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; }
10664 else
10665 # FIXME - insert some real tests, host_os isn't really good enough
10666   case $host_os in
10667   darwin*)
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; }
10673     else
10674       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675 $as_echo "no" >&6; }
10676     fi
10677     ;;
10678   *)
10679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 $as_echo "no" >&6; }
10681     ;;
10682   esac
10683 fi
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
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; }
10701
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
10705
10706   # On AIX, shared libraries and static libraries use the same namespace, and
10707   # are all built from PIC.
10708   case $host_os in
10709   aix3*)
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'
10714     fi
10715     ;;
10716
10717   aix[4-9]*)
10718     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10719       test "$enable_shared" = yes && enable_static=no
10720     fi
10721     ;;
10722   esac
10723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10724 $as_echo "$enable_shared" >&6; }
10725
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; }
10732
10733
10734
10735
10736 fi
10737 ac_ext=c
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
10742
10743 CC="$lt_save_CC"
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757         ac_config_commands="$ac_config_commands libtool"
10758
10759
10760
10761
10762 # Only expand once:
10763
10764
10765
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; }
10769 else
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; }
10772 fi
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
10777 else
10778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h.  */
10780
10781 int
10782 main ()
10783 {
10784
10785   ;
10786   return 0;
10787 }
10788 _ACEOF
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'
10793 rm -f conftest2.*
10794 if { { case "(($ac_try" in
10795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796   *) ac_try_echo=$ac_try;;
10797 esac
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
10801   ac_status=$?
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;;
10807 esac
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
10811   ac_status=$?
10812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10813   test $ac_status = 0; };
10814 then
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;;
10822 esac
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
10826   ac_status=$?
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'
10830       rm -f conftest2.*
10831       if { { case "(($ac_try" in
10832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833   *) ac_try_echo=$ac_try;;
10834 esac
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
10838   ac_status=$?
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;;
10844 esac
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
10848   ac_status=$?
10849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850   test $ac_status = 0; };
10851       then
10852         # cc works too.
10853         :
10854       else
10855         # cc exists but doesn't like -o.
10856         eval ac_cv_prog_cc_${ac_cc}_c_o=no
10857       fi
10858     fi
10859   fi
10860 else
10861   eval ac_cv_prog_cc_${ac_cc}_c_o=no
10862 fi
10863 rm -f core conftest*
10864
10865 fi
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; }
10869 else
10870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10872
10873 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
10874
10875 fi
10876
10877 # FIXME: we rely on the cache variable name because
10878 # there is no other way.
10879 set dummy $CC
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"
10889 fi
10890
10891
10892
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
10899 else
10900   if test -n "$HAVE_PKGCONFIG"; then
10901   ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
10902 else
10903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904 for as_dir in $PATH
10905 do
10906   IFS=$as_save_IFS
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
10912     break 2
10913   fi
10914 done
10915   done
10916 IFS=$as_save_IFS
10917
10918   test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
10919 fi
10920 fi
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; }
10925 else
10926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10928 fi
10929
10930
10931 if test x"$HAVE_PKGCONFIG" = x"no"; then
10932   as_fn_error "pkg-config is required!" "$LINENO" 5
10933 fi
10934
10935
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
10944 else
10945   case $PKG_CONFIG in
10946   [\\/]* | ?:[\\/]*)
10947   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10948   ;;
10949   *)
10950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10952 do
10953   IFS=$as_save_IFS
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
10959     break 2
10960   fi
10961 done
10962   done
10963 IFS=$as_save_IFS
10964
10965   ;;
10966 esac
10967 fi
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; }
10972 else
10973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 $as_echo "no" >&6; }
10975 fi
10976
10977
10978 fi
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
10987 else
10988   case $ac_pt_PKG_CONFIG in
10989   [\\/]* | ?:[\\/]*)
10990   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10991   ;;
10992   *)
10993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10995 do
10996   IFS=$as_save_IFS
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
11002     break 2
11003   fi
11004 done
11005   done
11006 IFS=$as_save_IFS
11007
11008   ;;
11009 esac
11010 fi
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; }
11015 else
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017 $as_echo "no" >&6; }
11018 fi
11019
11020   if test "x$ac_pt_PKG_CONFIG" = x; then
11021     PKG_CONFIG=""
11022   else
11023     case $cross_compiling:$ac_tool_warned in
11024 yes:)
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 ;;
11028 esac
11029     PKG_CONFIG=$ac_pt_PKG_CONFIG
11030   fi
11031 else
11032   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11033 fi
11034
11035 fi
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; }
11043         else
11044                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045 $as_echo "no" >&6; }
11046                 PKG_CONFIG=""
11047         fi
11048
11049 fi
11050
11051 ac_config_files="$ac_config_files Makefile data/Makefile doc/Makefile src/Makefile src/build.h lua/Makefile"
11052
11053
11054 uname=`uname`
11055
11056 case $uname in
11057   Linux*)
11058     WANT_SYSINFO=yes
11059     ;;
11060   FreeBSD*|GNU/kFreeBSD*)
11061     WANT_KVM=yes
11062     WANT_DEVSTAT=yes
11063     ;;
11064 #  NetBSD*)
11065 #    WANT_KVM=yes
11066 #    WANT_OSSLIB=yes
11067 #    ;;
11068
11069   OpenBSD*)
11070     WANT_KVM=yes
11071     WANT_OSSLIB=yes
11072     ;;
11073
11074 # Solaris doesn't work at all right now
11075 #  SunOS*)
11076 #    WANT_KSTAT=yes
11077 #    ;;
11078
11079   *)
11080     echo "Your operating system $uname isn't supported"
11081     echo "Feel free to help. :P"
11082     exit 1
11083     ;;
11084 esac
11085
11086  if test x$uname = xLinux; then
11087   BUILD_LINUX_TRUE=
11088   BUILD_LINUX_FALSE='#'
11089 else
11090   BUILD_LINUX_TRUE='#'
11091   BUILD_LINUX_FALSE=
11092 fi
11093
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='#'
11098 else
11099   BUILD_FREEBSD_TRUE='#'
11100   BUILD_FREEBSD_FALSE=
11101 fi
11102
11103 #AM_CONDITIONAL(BUILD_NETBSD, test x$uname = xNetBSD)
11104  if test x$uname = xOpenBSD; then
11105   BUILD_OPENBSD_TRUE=
11106   BUILD_OPENBSD_FALSE='#'
11107 else
11108   BUILD_OPENBSD_TRUE='#'
11109   BUILD_OPENBSD_FALSE=
11110 fi
11111
11112
11113 BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date)
11114 BUILD_ARCH="$(uname -sr) ($(uname -m))"
11115
11116
11117
11118
11119
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"
11123 else
11124   want_config_output=yes
11125 fi
11126
11127
11128  if test x$want_config_output = xyes; then
11129   BUILD_CONFIG_OUTPUT_TRUE=
11130   BUILD_CONFIG_OUTPUT_FALSE='#'
11131 else
11132   BUILD_CONFIG_OUTPUT_TRUE='#'
11133   BUILD_CONFIG_OUTPUT_FALSE=
11134 fi
11135
11136 if test x$want_config_output = xyes; then
11137
11138 $as_echo "#define CONFIG_OUTPUT 1" >>confdefs.h
11139
11140   for ac_func in fopencookie
11141 do :
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
11146 _ACEOF
11147
11148 fi
11149 done
11150
11151   for ac_func in funopen
11152 do :
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
11157 _ACEOF
11158
11159 fi
11160 done
11161
11162 fi
11163
11164
11165 # Check whether --enable-own_window was given.
11166 if test "${enable_own_window+set}" = set; then :
11167   enableval=$enable_own_window; dah="$enableval"
11168 else
11169   dah=yes
11170 fi
11171
11172
11173 if test $dah != "no"; then
11174
11175 $as_echo "#define OWN_WINDOW 1" >>confdefs.h
11176
11177 fi
11178
11179
11180 # Check whether --enable-ncurses was given.
11181 if test "${enable_ncurses+set}" = set; then :
11182   enableval=$enable_ncurses; want_ncurses="$enableval"
11183 else
11184   want_ncurses=yes
11185 fi
11186
11187
11188  if test x$want_ncurses = xyes; then
11189   BUILD_NCURSES_TRUE=
11190   BUILD_NCURSES_FALSE='#'
11191 else
11192   BUILD_NCURSES_TRUE='#'
11193   BUILD_NCURSES_FALSE=
11194 fi
11195
11196 if test x$want_ncurses = xyes; then
11197       conky_LIBS="$conky_LIBS -lncurses"
11198
11199 $as_echo "#define NCURSES 1" >>confdefs.h
11200
11201 fi
11202
11203
11204
11205 # Check whether --enable-audacious was given.
11206 if test "${enable_audacious+set}" = set; then :
11207   enableval=$enable_audacious; want_audacious="$enableval"
11208 else
11209   want_audacious=no
11210 fi
11211
11212
11213  if test x$want_audacious = xyes -o x$want_audacious = xlegacy; then
11214   BUILD_AUDACIOUS_TRUE=
11215   BUILD_AUDACIOUS_FALSE='#'
11216 else
11217   BUILD_AUDACIOUS_TRUE='#'
11218   BUILD_AUDACIOUS_FALSE=
11219 fi
11220
11221 if test x$want_audacious = xyes; then
11222
11223 pkg_failed=no
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Audacious" >&5
11225 $as_echo_n "checking for Audacious... " >&6; }
11226
11227 if test -n "$PKG_CONFIG"; then
11228     if test -n "$Audacious_CFLAGS"; then
11229         pkg_cv_Audacious_CFLAGS="$Audacious_CFLAGS"
11230     else
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
11234   ac_status=$?
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`
11238 else
11239   pkg_failed=yes
11240 fi
11241     fi
11242 else
11243         pkg_failed=untried
11244 fi
11245 if test -n "$PKG_CONFIG"; then
11246     if test -n "$Audacious_LIBS"; then
11247         pkg_cv_Audacious_LIBS="$Audacious_LIBS"
11248     else
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
11252   ac_status=$?
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`
11256 else
11257   pkg_failed=yes
11258 fi
11259     fi
11260 else
11261         pkg_failed=untried
11262 fi
11263
11264
11265
11266 if test $pkg_failed = yes; then
11267
11268 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11269         _pkg_short_errors_supported=yes
11270 else
11271         _pkg_short_errors_supported=no
11272 fi
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"`
11275         else
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"`
11277         fi
11278         # Put the nasty error message in config.log where it belongs
11279         echo "$Audacious_PKG_ERRORS" >&5
11280
11281         as_fn_error "Package requirements (audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0) were not met:
11282
11283 $Audacious_PKG_ERRORS
11284
11285 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11286 installed software in a non-standard prefix.
11287
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.
11291 " "$LINENO" 5
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.
11298
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.
11302
11303 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11304 See \`config.log' for more details." "$LINENO" 5; }
11305 else
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; }
11310         :
11311 fi
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
11317 do :
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
11324 _ACEOF
11325
11326 else
11327   as_fn_error "required header(s) not found" "$LINENO" 5
11328 fi
11329
11330 done
11331
11332       CPPFLAGS="$save_CPPFLAGS"
11333
11334 $as_echo "#define AUDACIOUS 1" >>confdefs.h
11335
11336 else if test x$want_audacious = xlegacy; then
11337
11338 pkg_failed=no
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Audacious" >&5
11340 $as_echo_n "checking for Audacious... " >&6; }
11341
11342 if test -n "$PKG_CONFIG"; then
11343     if test -n "$Audacious_CFLAGS"; then
11344         pkg_cv_Audacious_CFLAGS="$Audacious_CFLAGS"
11345     else
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
11349   ac_status=$?
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`
11353 else
11354   pkg_failed=yes
11355 fi
11356     fi
11357 else
11358         pkg_failed=untried
11359 fi
11360 if test -n "$PKG_CONFIG"; then
11361     if test -n "$Audacious_LIBS"; then
11362         pkg_cv_Audacious_LIBS="$Audacious_LIBS"
11363     else
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
11367   ac_status=$?
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`
11371 else
11372   pkg_failed=yes
11373 fi
11374     fi
11375 else
11376         pkg_failed=untried
11377 fi
11378
11379
11380
11381 if test $pkg_failed = yes; then
11382
11383 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11384         _pkg_short_errors_supported=yes
11385 else
11386         _pkg_short_errors_supported=no
11387 fi
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"`
11390         else
11391                 Audacious_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audacious < 1.4.0 glib-2.0"`
11392         fi
11393         # Put the nasty error message in config.log where it belongs
11394         echo "$Audacious_PKG_ERRORS" >&5
11395
11396         as_fn_error "Package requirements (audacious < 1.4.0 glib-2.0) were not met:
11397
11398 $Audacious_PKG_ERRORS
11399
11400 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11401 installed software in a non-standard prefix.
11402
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.
11406 " "$LINENO" 5
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.
11413
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.
11417
11418 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11419 See \`config.log' for more details." "$LINENO" 5; }
11420 else
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; }
11425         :
11426 fi
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
11432 do :
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
11439 _ACEOF
11440
11441 else
11442   as_fn_error "required  header(s) not found" "$LINENO" 5
11443 fi
11444
11445 done
11446
11447       CPPFLAGS="$save_CPPFLAGS"
11448
11449 $as_echo "#define AUDACIOUS 1" >>confdefs.h
11450
11451
11452 $as_echo "#define AUDACIOUS_LEGACY 1" >>confdefs.h
11453
11454       fi
11455 fi
11456
11457
11458
11459 # Check whether --enable-bmpx was given.
11460 if test "${enable_bmpx+set}" = set; then :
11461   enableval=$enable_bmpx; want_bmpx="$enableval"
11462 else
11463   want_bmpx=no
11464 fi
11465
11466
11467  if test x$want_bmpx = xyes; then
11468   BUILD_BMPX_TRUE=
11469   BUILD_BMPX_FALSE='#'
11470 else
11471   BUILD_BMPX_TRUE='#'
11472   BUILD_BMPX_FALSE=
11473 fi
11474
11475 if test x$want_bmpx = xyes; then
11476
11477 pkg_failed=no
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BMPx" >&5
11479 $as_echo_n "checking for BMPx... " >&6; }
11480
11481 if test -n "$PKG_CONFIG"; then
11482     if test -n "$BMPx_CFLAGS"; then
11483         pkg_cv_BMPx_CFLAGS="$BMPx_CFLAGS"
11484     else
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
11488   ac_status=$?
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`
11492 else
11493   pkg_failed=yes
11494 fi
11495     fi
11496 else
11497         pkg_failed=untried
11498 fi
11499 if test -n "$PKG_CONFIG"; then
11500     if test -n "$BMPx_LIBS"; then
11501         pkg_cv_BMPx_LIBS="$BMPx_LIBS"
11502     else
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
11506   ac_status=$?
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`
11510 else
11511   pkg_failed=yes
11512 fi
11513     fi
11514 else
11515         pkg_failed=untried
11516 fi
11517
11518
11519
11520 if test $pkg_failed = yes; then
11521
11522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11523         _pkg_short_errors_supported=yes
11524 else
11525         _pkg_short_errors_supported=no
11526 fi
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"`
11529         else
11530                 BMPx_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bmp-2.0 >= 0.14.0"`
11531         fi
11532         # Put the nasty error message in config.log where it belongs
11533         echo "$BMPx_PKG_ERRORS" >&5
11534
11535         as_fn_error "Package requirements (bmp-2.0 >= 0.14.0) were not met:
11536
11537 $BMPx_PKG_ERRORS
11538
11539 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11540 installed software in a non-standard prefix.
11541
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.
11545 " "$LINENO" 5
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.
11552
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.
11556
11557 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11558 See \`config.log' for more details." "$LINENO" 5; }
11559 else
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; }
11564         :
11565 fi
11566   conky_CFLAGS="$conky_CFLAGS $BMPx_CFLAGS"
11567   conky_LIBS="$conky_LIBS $BMPx_LIBS"
11568
11569 $as_echo "#define BMPX 1" >>confdefs.h
11570
11571 fi
11572
11573
11574
11575 # Check whether --enable-ibm was given.
11576 if test "${enable_ibm+set}" = set; then :
11577   enableval=$enable_ibm; want_ibm="$enableval"
11578 else
11579   want_ibm=no
11580 fi
11581
11582
11583  if test x$want_ibm = xyes; then
11584   BUILD_IBM_TRUE=
11585   BUILD_IBM_FALSE='#'
11586 else
11587   BUILD_IBM_TRUE='#'
11588   BUILD_IBM_FALSE=
11589 fi
11590
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"
11596         else
11597
11598 $as_echo "#define IBM 1" >>confdefs.h
11599
11600         fi
11601 fi
11602
11603
11604
11605 # Check whether --enable-hddtemp was given.
11606 if test "${enable_hddtemp+set}" = set; then :
11607   enableval=$enable_hddtemp; want_hddtemp="$enableval"
11608 else
11609   want_hddtemp=yes
11610 fi
11611
11612
11613  if test x$want_hddtemp = xyes; then
11614   BUILD_HDDTEMP_TRUE=
11615   BUILD_HDDTEMP_FALSE='#'
11616 else
11617   BUILD_HDDTEMP_TRUE='#'
11618   BUILD_HDDTEMP_FALSE=
11619 fi
11620
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"
11626   else
11627
11628 $as_echo "#define HDDTEMP 1" >>confdefs.h
11629
11630   fi
11631 fi
11632
11633
11634
11635 # Check whether --enable-apcupsd was given.
11636 if test "${enable_apcupsd+set}" = set; then :
11637   enableval=$enable_apcupsd; want_apcupsd="$enableval"
11638 else
11639   want_apcupsd=yes
11640 fi
11641
11642
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"
11648   else
11649
11650 $as_echo "#define APCUPSD 1" >>confdefs.h
11651
11652   fi
11653 fi
11654  if test x$want_apcupsd = xyes; then
11655   BUILD_APCUPSD_TRUE=
11656   BUILD_APCUPSD_FALSE='#'
11657 else
11658   BUILD_APCUPSD_TRUE='#'
11659   BUILD_APCUPSD_FALSE=
11660 fi
11661
11662
11663
11664
11665 # Check whether --enable-iostats was given.
11666 if test "${enable_iostats+set}" = set; then :
11667   enableval=$enable_iostats; want_iostats="$enableval"
11668 else
11669   want_iostats=yes
11670 fi
11671
11672
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"
11678   else
11679
11680 $as_echo "#define IOSTATS 1" >>confdefs.h
11681
11682   fi
11683 fi
11684
11685
11686
11687 # Check whether --enable-math was given.
11688 if test "${enable_math+set}" = set; then :
11689   enableval=$enable_math; want_math="$enableval"
11690 else
11691   want_math=yes
11692 fi
11693
11694
11695  if test x$want_math = xyes; then
11696   BUILD_MATH_TRUE=
11697   BUILD_MATH_FALSE='#'
11698 else
11699   BUILD_MATH_TRUE='#'
11700   BUILD_MATH_FALSE=
11701 fi
11702
11703 if test x$want_math = xyes; then
11704   conky_LIBS="$conky_LIBS -lm"
11705
11706 $as_echo "#define MATH 1" >>confdefs.h
11707
11708 fi
11709
11710
11711 # Check whether --enable-mpd was given.
11712 if test "${enable_mpd+set}" = set; then :
11713   enableval=$enable_mpd; want_mpd="$enableval"
11714 else
11715   want_mpd=yes
11716 fi
11717
11718
11719  if test x$want_mpd = xyes; then
11720   BUILD_MPD_TRUE=
11721   BUILD_MPD_FALSE='#'
11722 else
11723   BUILD_MPD_TRUE='#'
11724   BUILD_MPD_FALSE=
11725 fi
11726
11727 if test x$want_mpd = xyes; then
11728
11729 $as_echo "#define MPD 1" >>confdefs.h
11730
11731 fi
11732
11733
11734 # Check whether --enable-moc was given.
11735 if test "${enable_moc+set}" = set; then :
11736   enableval=$enable_moc; want_moc="$enableval"
11737 else
11738   want_moc=yes
11739 fi
11740
11741
11742  if test x$want_moc = xyes; then
11743   BUILD_MOC_TRUE=
11744   BUILD_MOC_FALSE='#'
11745 else
11746   BUILD_MOC_TRUE='#'
11747   BUILD_MOC_FALSE=
11748 fi
11749
11750 if test x$want_moc = xyes; then
11751
11752 $as_echo "#define MOC 1" >>confdefs.h
11753
11754 fi
11755
11756
11757 # Check whether --enable-xmms2 was given.
11758 if test "${enable_xmms2+set}" = set; then :
11759   enableval=$enable_xmms2; want_xmms2="$enableval"
11760 else
11761   want_xmms2=no
11762 fi
11763
11764
11765  if test x$want_xmms2 = xyes; then
11766   BUILD_XMMS2_TRUE=
11767   BUILD_XMMS2_FALSE='#'
11768 else
11769   BUILD_XMMS2_TRUE='#'
11770   BUILD_XMMS2_FALSE=
11771 fi
11772
11773 if test x$want_xmms2 = xyes; then
11774
11775 pkg_failed=no
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMMS2" >&5
11777 $as_echo_n "checking for XMMS2... " >&6; }
11778
11779 if test -n "$PKG_CONFIG"; then
11780     if test -n "$XMMS2_CFLAGS"; then
11781         pkg_cv_XMMS2_CFLAGS="$XMMS2_CFLAGS"
11782     else
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
11786   ac_status=$?
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`
11790 else
11791   pkg_failed=yes
11792 fi
11793     fi
11794 else
11795         pkg_failed=untried
11796 fi
11797 if test -n "$PKG_CONFIG"; then
11798     if test -n "$XMMS2_LIBS"; then
11799         pkg_cv_XMMS2_LIBS="$XMMS2_LIBS"
11800     else
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
11804   ac_status=$?
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`
11808 else
11809   pkg_failed=yes
11810 fi
11811     fi
11812 else
11813         pkg_failed=untried
11814 fi
11815
11816
11817
11818 if test $pkg_failed = yes; then
11819
11820 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11821         _pkg_short_errors_supported=yes
11822 else
11823         _pkg_short_errors_supported=no
11824 fi
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"`
11827         else
11828                 XMMS2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmms2-client >= 0.6"`
11829         fi
11830         # Put the nasty error message in config.log where it belongs
11831         echo "$XMMS2_PKG_ERRORS" >&5
11832
11833         as_fn_error "Package requirements (xmms2-client >= 0.6) were not met:
11834
11835 $XMMS2_PKG_ERRORS
11836
11837 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11838 installed software in a non-standard prefix.
11839
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.
11843 " "$LINENO" 5
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.
11850
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.
11854
11855 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11856 See \`config.log' for more details." "$LINENO" 5; }
11857 else
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; }
11862         :
11863 fi
11864     conky_CFLAGS="$conky_CFLAGS $XMMS2_CFLAGS"
11865     conky_LIBS="$conky_LIBS $XMMS2_LIBS"
11866
11867 $as_echo "#define XMMS2 1" >>confdefs.h
11868
11869 fi
11870
11871
11872 # Check whether --enable-curl was given.
11873 if test "${enable_curl+set}" = set; then :
11874   enableval=$enable_curl; want_curl="$enableval"
11875 else
11876   want_curl=no
11877 fi
11878
11879
11880
11881 # Check whether --enable-eve was given.
11882 if test "${enable_eve+set}" = set; then :
11883   enableval=$enable_eve; want_eve="$enableval"
11884 else
11885   want_eve=no
11886 fi
11887
11888
11889  if test x$want_eve = xyes; then
11890   BUILD_EVE_TRUE=
11891   BUILD_EVE_FALSE='#'
11892 else
11893   BUILD_EVE_TRUE='#'
11894   BUILD_EVE_FALSE=
11895 fi
11896
11897 if test x$want_eve = xyes; then
11898         want_curl=yes
11899         want_libxml2=yes
11900
11901 $as_echo "#define EVE 1" >>confdefs.h
11902
11903
11904 $as_echo "#define EVEURL_TRAINING \"http://api.eve-online.com/char/SkillInTraining.xml.aspx\"" >>confdefs.h
11905
11906
11907 $as_echo "#define EVEURL_SKILLTREE \"http://api.eve-online.com/eve/Skilltree.xml.aspx\"" >>confdefs.h
11908
11909
11910 $as_echo "#define MY_ENCODING \"ISO-8859-1\"" >>confdefs.h
11911
11912
11913 $as_echo "#define EVE_OUTPUT_FORMAT \"%s %d in %s\"" >>confdefs.h
11914
11915 fi
11916
11917
11918 # Check whether --enable-rss was given.
11919 if test "${enable_rss+set}" = set; then :
11920   enableval=$enable_rss; want_rss="$enableval"
11921 else
11922   want_rss=no
11923 fi
11924
11925 #
11926  if test x$want_rss = xyes; then
11927   BUILD_RSS_TRUE=
11928   BUILD_RSS_FALSE='#'
11929 else
11930   BUILD_RSS_TRUE='#'
11931   BUILD_RSS_FALSE=
11932 fi
11933
11934 if test x$want_rss = xyes; then
11935         WANT_GLIB=yes
11936         want_curl=yes
11937         want_libxml2=yes
11938
11939 $as_echo "#define RSS 1" >>confdefs.h
11940
11941 fi
11942
11943
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"
11947 else
11948   want_metar=no
11949 fi
11950
11951
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"
11955 else
11956   want_xoap=no
11957 fi
11958
11959 #
11960 if test x$want_xoap = xyes; then
11961         want_metar=yes
11962 fi
11963  if test x$want_metar = xyes; then
11964   BUILD_WEATHER_TRUE=
11965   BUILD_WEATHER_FALSE='#'
11966 else
11967   BUILD_WEATHER_TRUE='#'
11968   BUILD_WEATHER_FALSE=
11969 fi
11970
11971  if test x$want_xoap = xyes; then
11972   BUILD_XOAP_TRUE=
11973   BUILD_XOAP_FALSE='#'
11974 else
11975   BUILD_XOAP_TRUE='#'
11976   BUILD_XOAP_FALSE=
11977 fi
11978
11979 if test x$want_metar = xyes; then
11980         if test x$want_xoap = xyes; then
11981                 want_libxml2=yes
11982
11983 $as_echo "#define XOAP 1" >>confdefs.h
11984
11985
11986 $as_echo "#define XOAP_FILE \"\$HOME/.xoaprc\"" >>confdefs.h
11987
11988         fi
11989         want_curl=yes
11990
11991 $as_echo "#define WEATHER 1" >>confdefs.h
11992
11993 fi
11994
11995
11996 # Check whether --enable-x11 was given.
11997 if test "${enable_x11+set}" = set; then :
11998   enableval=$enable_x11; want_x11="$enableval"
11999 else
12000   want_x11=yes
12001 fi
12002
12003
12004  if test x$want_x11 = xyes; then
12005   BUILD_X11_TRUE=
12006   BUILD_X11_FALSE='#'
12007 else
12008   BUILD_X11_TRUE='#'
12009   BUILD_X11_FALSE=
12010 fi
12011
12012 if test "x$want_x11" = "xyes"; then
12013     if $PKG_CONFIG --exists x11; then
12014
12015 pkg_failed=no
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
12017 $as_echo_n "checking for X11... " >&6; }
12018
12019 if test -n "$PKG_CONFIG"; then
12020     if test -n "$X11_CFLAGS"; then
12021         pkg_cv_X11_CFLAGS="$X11_CFLAGS"
12022     else
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
12026   ac_status=$?
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`
12030 else
12031   pkg_failed=yes
12032 fi
12033     fi
12034 else
12035         pkg_failed=untried
12036 fi
12037 if test -n "$PKG_CONFIG"; then
12038     if test -n "$X11_LIBS"; then
12039         pkg_cv_X11_LIBS="$X11_LIBS"
12040     else
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
12044   ac_status=$?
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`
12048 else
12049   pkg_failed=yes
12050 fi
12051     fi
12052 else
12053         pkg_failed=untried
12054 fi
12055
12056
12057
12058 if test $pkg_failed = yes; then
12059
12060 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12061         _pkg_short_errors_supported=yes
12062 else
12063         _pkg_short_errors_supported=no
12064 fi
12065         if test $_pkg_short_errors_supported = yes; then
12066                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
12067         else
12068                 X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
12069         fi
12070         # Put the nasty error message in config.log where it belongs
12071         echo "$X11_PKG_ERRORS" >&5
12072
12073         as_fn_error "Package requirements (x11) were not met:
12074
12075 $X11_PKG_ERRORS
12076
12077 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12078 installed software in a non-standard prefix.
12079
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.
12083 " "$LINENO" 5
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.
12090
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.
12094
12095 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12096 See \`config.log' for more details." "$LINENO" 5; }
12097 else
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; }
12102         :
12103 fi
12104       conky_CFLAGS="$conky_CFLAGS $X11_CFLAGS"
12105       conky_LIBS="$conky_LIBS $X11_LIBS"
12106     else
12107             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12108 $as_echo_n "checking for X... " >&6; }
12109
12110
12111 # Check whether --with-x was given.
12112 if test "${with_x+set}" = set; then :
12113   withval=$with_x;
12114 fi
12115
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.
12119   have_x=disabled
12120 else
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
12125 else
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
12130   cd conftest.dir
12131   cat >Imakefile <<'_ACEOF'
12132 incroot:
12133         @echo incroot='${INCROOT}'
12134 usrlibdir:
12135         @echo usrlibdir='${USRLIBDIR}'
12136 libdir:
12137         @echo libdir='${LIBDIR}'
12138 _ACEOF
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'\`"
12143     done
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
12149       fi
12150     done
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;;
12157     esac
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 ;;
12161     esac
12162   fi
12163   cd ..
12164   rm -f -r conftest.dir
12165 fi
12166
12167 # Standard set of common directories for X headers.
12168 # Check X11 before X11Rn because it is often a symlink to the current release.
12169 ac_x_header_dirs='
12170 /usr/X11/include
12171 /usr/X11R7/include
12172 /usr/X11R6/include
12173 /usr/X11R5/include
12174 /usr/X11R4/include
12175
12176 /usr/include/X11
12177 /usr/include/X11R7
12178 /usr/include/X11R6
12179 /usr/include/X11R5
12180 /usr/include/X11R4
12181
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
12187
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
12193
12194 /usr/X386/include
12195 /usr/x386/include
12196 /usr/XFree86/include/X11
12197
12198 /usr/include
12199 /usr/local/include
12200 /usr/unsupported/include
12201 /usr/athena/include
12202 /usr/local/x11r5/include
12203 /usr/lpp/Xamples/include
12204
12205 /usr/openwin/include
12206 /usr/openwin/share/include'
12207
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>
12214 _ACEOF
12215 if ac_fn_c_try_cpp "$LINENO"; then :
12216   # We can compile using X headers with no special include directory.
12217 ac_x_includes=
12218 else
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
12222     break
12223   fi
12224 done
12225 fi
12226 rm -f conftest.err conftest.$ac_ext
12227 fi # $ac_x_includes = no
12228
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.
12233   ac_save_LIBS=$LIBS
12234   LIBS="-lX11 $LIBS"
12235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h.  */
12237 #include <X11/Xlib.h>
12238 int
12239 main ()
12240 {
12241 XrmInitialize ()
12242   ;
12243   return 0;
12244 }
12245 _ACEOF
12246 if ac_fn_c_try_link "$LINENO"; then :
12247   LIBS=$ac_save_LIBS
12248 # We can link X programs with no special library path.
12249 ac_x_libraries=
12250 else
12251   LIBS=$ac_save_LIBS
12252 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12253 do
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
12258       break 2
12259     fi
12260   done
12261 done
12262 fi
12263 rm -f core conftest.err conftest.$ac_objext \
12264     conftest$ac_exeext conftest.$ac_ext
12265 fi # $ac_x_libraries = no
12266
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";; #(
12271   *)
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'"
12276 esac
12277 fi
12278 ;; #(
12279     *) have_x=yes;;
12280   esac
12281   eval "$ac_cv_have_x"
12282 fi # $with_x != no
12283
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; }
12287   no_x=yes
12288 else
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; }
12298 fi
12299
12300       if test "$no_x" = yes; then
12301   # Not all programs may use this symbol, but it does not hurt to define it.
12302
12303 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
12304
12305   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12306 else
12307   if test -n "$x_includes"; then
12308     X_CFLAGS="$X_CFLAGS -I$x_includes"
12309   fi
12310
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.  */
12323
12324 int
12325 main ()
12326 {
12327
12328   ;
12329   return 0;
12330 }
12331 _ACEOF
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"
12336 else
12337   LIBS="$ac_xsave_LIBS -R $x_libraries"
12338        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h.  */
12340
12341 int
12342 main ()
12343 {
12344
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
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"
12353 else
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
12355 $as_echo "neither works" >&6; }
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext \
12358     conftest$ac_exeext conftest.$ac_ext
12359 fi
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
12364   fi
12365
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.
12369
12370   if test "$ISC" = yes; then
12371     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12372   else
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.  */
12379
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.  */
12383 #ifdef __cplusplus
12384 extern "C"
12385 #endif
12386 char XOpenDisplay ();
12387 int
12388 main ()
12389 {
12390 return XOpenDisplay ();
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 if ac_fn_c_try_link "$LINENO"; then :
12396
12397 else
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
12402 else
12403   ac_check_lib_save_LIBS=$LIBS
12404 LIBS="-ldnet  $LIBS"
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h.  */
12407
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.  */
12411 #ifdef __cplusplus
12412 extern "C"
12413 #endif
12414 char dnet_ntoa ();
12415 int
12416 main ()
12417 {
12418 return dnet_ntoa ();
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 if ac_fn_c_try_link "$LINENO"; then :
12424   ac_cv_lib_dnet_dnet_ntoa=yes
12425 else
12426   ac_cv_lib_dnet_dnet_ntoa=no
12427 fi
12428 rm -f core conftest.err conftest.$ac_objext \
12429     conftest$ac_exeext conftest.$ac_ext
12430 LIBS=$ac_check_lib_save_LIBS
12431 fi
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"
12436 fi
12437
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
12443 else
12444   ac_check_lib_save_LIBS=$LIBS
12445 LIBS="-ldnet_stub  $LIBS"
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h.  */
12448
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.  */
12452 #ifdef __cplusplus
12453 extern "C"
12454 #endif
12455 char dnet_ntoa ();
12456 int
12457 main ()
12458 {
12459 return dnet_ntoa ();
12460   ;
12461   return 0;
12462 }
12463 _ACEOF
12464 if ac_fn_c_try_link "$LINENO"; then :
12465   ac_cv_lib_dnet_stub_dnet_ntoa=yes
12466 else
12467   ac_cv_lib_dnet_stub_dnet_ntoa=no
12468 fi
12469 rm -f core conftest.err conftest.$ac_objext \
12470     conftest$ac_exeext conftest.$ac_ext
12471 LIBS=$ac_check_lib_save_LIBS
12472 fi
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"
12477 fi
12478
12479     fi
12480 fi
12481 rm -f core conftest.err conftest.$ac_objext \
12482     conftest$ac_exeext conftest.$ac_ext
12483     LIBS="$ac_xsave_LIBS"
12484
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)
12488     # needs -lnsl.
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 :
12495
12496 fi
12497
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
12503 else
12504   ac_check_lib_save_LIBS=$LIBS
12505 LIBS="-lnsl  $LIBS"
12506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h.  */
12508
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.  */
12512 #ifdef __cplusplus
12513 extern "C"
12514 #endif
12515 char gethostbyname ();
12516 int
12517 main ()
12518 {
12519 return gethostbyname ();
12520   ;
12521   return 0;
12522 }
12523 _ACEOF
12524 if ac_fn_c_try_link "$LINENO"; then :
12525   ac_cv_lib_nsl_gethostbyname=yes
12526 else
12527   ac_cv_lib_nsl_gethostbyname=no
12528 fi
12529 rm -f core conftest.err conftest.$ac_objext \
12530     conftest$ac_exeext conftest.$ac_ext
12531 LIBS=$ac_check_lib_save_LIBS
12532 fi
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"
12537 fi
12538
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
12544 else
12545   ac_check_lib_save_LIBS=$LIBS
12546 LIBS="-lbsd  $LIBS"
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h.  */
12549
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.  */
12553 #ifdef __cplusplus
12554 extern "C"
12555 #endif
12556 char gethostbyname ();
12557 int
12558 main ()
12559 {
12560 return gethostbyname ();
12561   ;
12562   return 0;
12563 }
12564 _ACEOF
12565 if ac_fn_c_try_link "$LINENO"; then :
12566   ac_cv_lib_bsd_gethostbyname=yes
12567 else
12568   ac_cv_lib_bsd_gethostbyname=no
12569 fi
12570 rm -f core conftest.err conftest.$ac_objext \
12571     conftest$ac_exeext conftest.$ac_ext
12572 LIBS=$ac_check_lib_save_LIBS
12573 fi
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"
12578 fi
12579
12580       fi
12581     fi
12582
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 :
12592
12593 fi
12594
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
12600 else
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.  */
12605
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.  */
12609 #ifdef __cplusplus
12610 extern "C"
12611 #endif
12612 char connect ();
12613 int
12614 main ()
12615 {
12616 return connect ();
12617   ;
12618   return 0;
12619 }
12620 _ACEOF
12621 if ac_fn_c_try_link "$LINENO"; then :
12622   ac_cv_lib_socket_connect=yes
12623 else
12624   ac_cv_lib_socket_connect=no
12625 fi
12626 rm -f core conftest.err conftest.$ac_objext \
12627     conftest$ac_exeext conftest.$ac_ext
12628 LIBS=$ac_check_lib_save_LIBS
12629 fi
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"
12634 fi
12635
12636     fi
12637
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 :
12641
12642 fi
12643
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
12649 else
12650   ac_check_lib_save_LIBS=$LIBS
12651 LIBS="-lposix  $LIBS"
12652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12653 /* end confdefs.h.  */
12654
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.  */
12658 #ifdef __cplusplus
12659 extern "C"
12660 #endif
12661 char remove ();
12662 int
12663 main ()
12664 {
12665 return remove ();
12666   ;
12667   return 0;
12668 }
12669 _ACEOF
12670 if ac_fn_c_try_link "$LINENO"; then :
12671   ac_cv_lib_posix_remove=yes
12672 else
12673   ac_cv_lib_posix_remove=no
12674 fi
12675 rm -f core conftest.err conftest.$ac_objext \
12676     conftest$ac_exeext conftest.$ac_ext
12677 LIBS=$ac_check_lib_save_LIBS
12678 fi
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"
12683 fi
12684
12685     fi
12686
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 :
12690
12691 fi
12692
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
12698 else
12699   ac_check_lib_save_LIBS=$LIBS
12700 LIBS="-lipc  $LIBS"
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h.  */
12703
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.  */
12707 #ifdef __cplusplus
12708 extern "C"
12709 #endif
12710 char shmat ();
12711 int
12712 main ()
12713 {
12714 return shmat ();
12715   ;
12716   return 0;
12717 }
12718 _ACEOF
12719 if ac_fn_c_try_link "$LINENO"; then :
12720   ac_cv_lib_ipc_shmat=yes
12721 else
12722   ac_cv_lib_ipc_shmat=no
12723 fi
12724 rm -f core conftest.err conftest.$ac_objext \
12725     conftest$ac_exeext conftest.$ac_ext
12726 LIBS=$ac_check_lib_save_LIBS
12727 fi
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"
12732 fi
12733
12734     fi
12735   fi
12736
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
12750 else
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.  */
12755
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.  */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 char IceConnectionNumber ();
12763 int
12764 main ()
12765 {
12766 return IceConnectionNumber ();
12767   ;
12768   return 0;
12769 }
12770 _ACEOF
12771 if ac_fn_c_try_link "$LINENO"; then :
12772   ac_cv_lib_ICE_IceConnectionNumber=yes
12773 else
12774   ac_cv_lib_ICE_IceConnectionNumber=no
12775 fi
12776 rm -f core conftest.err conftest.$ac_objext \
12777     conftest$ac_exeext conftest.$ac_ext
12778 LIBS=$ac_check_lib_save_LIBS
12779 fi
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"
12784 fi
12785
12786   LDFLAGS=$ac_save_LDFLAGS
12787
12788 fi
12789
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
12795       fi
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
12800 else
12801   ac_check_lib_save_LIBS=$LIBS
12802 LIBS="-lX11  $LIBS"
12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h.  */
12805
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.  */
12809 #ifdef __cplusplus
12810 extern "C"
12811 #endif
12812 char XOpenDisplay ();
12813 int
12814 main ()
12815 {
12816 return XOpenDisplay ();
12817   ;
12818   return 0;
12819 }
12820 _ACEOF
12821 if ac_fn_c_try_link "$LINENO"; then :
12822   ac_cv_lib_X11_XOpenDisplay=yes
12823 else
12824   ac_cv_lib_X11_XOpenDisplay=no
12825 fi
12826 rm -f core conftest.err conftest.$ac_objext \
12827     conftest$ac_exeext conftest.$ac_ext
12828 LIBS=$ac_check_lib_save_LIBS
12829 fi
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
12835 _ACEOF
12836
12837   LIBS="-lX11 $LIBS"
12838
12839 else
12840   as_fn_error "Could not find XOpenDisplay in -lX11" "$LINENO" 5
12841 fi
12842
12843     fi
12844
12845 $as_echo "#define X11 1" >>confdefs.h
12846
12847 fi
12848
12849
12850 # Check whether --enable-argb was given.
12851 if test "${enable_argb+set}" = set; then :
12852   enableval=$enable_argb; want_argb="$enableval"
12853 else
12854   want_argb=yes
12855 fi
12856
12857
12858 if test x$want_argb = xyes; then
12859     if test "x$want_x11" != "xyes"; then
12860                 want_argb=no
12861     else
12862
12863 $as_echo "#define USE_ARGB 1" >>confdefs.h
12864
12865     fi
12866 fi
12867
12868
12869 # Check whether --enable-imlib2 was given.
12870 if test "${enable_imlib2+set}" = set; then :
12871   enableval=$enable_imlib2; want_imlib2="$enableval"
12872 else
12873   want_imlib2=no
12874 fi
12875
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"
12879 else
12880   want_lua_imlib2=no
12881 fi
12882
12883
12884 # if lua-imlib2 is enabled, we must force imlib2
12885 if test x$want_lua_imlib2 = xyes; then
12886         want_imlib2=yes
12887 fi
12888
12889 if test x$want_imlib2 = xyes; then
12890         if test "x$want_x11" != "xyes"; then
12891                                 want_imlib2=no
12892         else
12893
12894 pkg_failed=no
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Imlib2" >&5
12896 $as_echo_n "checking for Imlib2... " >&6; }
12897
12898 if test -n "$PKG_CONFIG"; then
12899     if test -n "$Imlib2_CFLAGS"; then
12900         pkg_cv_Imlib2_CFLAGS="$Imlib2_CFLAGS"
12901     else
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
12905   ac_status=$?
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`
12909 else
12910   pkg_failed=yes
12911 fi
12912     fi
12913 else
12914         pkg_failed=untried
12915 fi
12916 if test -n "$PKG_CONFIG"; then
12917     if test -n "$Imlib2_LIBS"; then
12918         pkg_cv_Imlib2_LIBS="$Imlib2_LIBS"
12919     else
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
12923   ac_status=$?
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`
12927 else
12928   pkg_failed=yes
12929 fi
12930     fi
12931 else
12932         pkg_failed=untried
12933 fi
12934
12935
12936
12937 if test $pkg_failed = yes; then
12938
12939 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12940         _pkg_short_errors_supported=yes
12941 else
12942         _pkg_short_errors_supported=no
12943 fi
12944         if test $_pkg_short_errors_supported = yes; then
12945                 Imlib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlib2"`
12946         else
12947                 Imlib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlib2"`
12948         fi
12949         # Put the nasty error message in config.log where it belongs
12950         echo "$Imlib2_PKG_ERRORS" >&5
12951
12952         as_fn_error "Package requirements (imlib2) were not met:
12953
12954 $Imlib2_PKG_ERRORS
12955
12956 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12957 installed software in a non-standard prefix.
12958
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.
12962 " "$LINENO" 5
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.
12969
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.
12973
12974 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12975 See \`config.log' for more details." "$LINENO" 5; }
12976 else
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; }
12981         :
12982 fi
12983                 conky_CFLAGS="$conky_CFLAGS $Imlib2_CFLAGS"
12984                 conky_LIBS="$conky_LIBS $Imlib2_LIBS"
12985
12986 $as_echo "#define IMLIB2 1" >>confdefs.h
12987
12988         fi
12989 fi
12990  if test x$want_imlib2 = xyes; then
12991   BUILD_IMLIB2_TRUE=
12992   BUILD_IMLIB2_FALSE='#'
12993 else
12994   BUILD_IMLIB2_TRUE='#'
12995   BUILD_IMLIB2_FALSE=
12996 fi
12997
12998
12999
13000 # Check whether --enable-lua was given.
13001 if test "${enable_lua+set}" = set; then :
13002   enableval=$enable_lua; want_lua="$enableval"
13003 else
13004   want_lua=yes
13005 fi
13006
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"
13010 else
13011   want_lua_cairo=no
13012 fi
13013
13014 need_tolua=no
13015 if test x$want_lua_cairo = xyes -o x$want_lua_imlib2 = xyes; then
13016         need_tolua=yes
13017         want_lua=yes
13018 fi
13019
13020  if test x$want_lua = xyes; then
13021   BUILD_LUA_TRUE=
13022   BUILD_LUA_FALSE='#'
13023 else
13024   BUILD_LUA_TRUE='#'
13025   BUILD_LUA_FALSE=
13026 fi
13027
13028 if test x$want_lua = xyes; then
13029
13030 pkg_failed=no
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
13032 $as_echo_n "checking for LUA... " >&6; }
13033
13034 if test -n "$PKG_CONFIG"; then
13035     if test -n "$LUA_CFLAGS"; then
13036         pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
13037     else
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
13041   ac_status=$?
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`
13045 else
13046   pkg_failed=yes
13047 fi
13048     fi
13049 else
13050         pkg_failed=untried
13051 fi
13052 if test -n "$PKG_CONFIG"; then
13053     if test -n "$LUA_LIBS"; then
13054         pkg_cv_LUA_LIBS="$LUA_LIBS"
13055     else
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
13059   ac_status=$?
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`
13063 else
13064   pkg_failed=yes
13065 fi
13066     fi
13067 else
13068         pkg_failed=untried
13069 fi
13070
13071
13072
13073 if test $pkg_failed = yes; then
13074
13075 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13076         _pkg_short_errors_supported=yes
13077 else
13078         _pkg_short_errors_supported=no
13079 fi
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"`
13082         else
13083                 LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua >= 5.1"`
13084         fi
13085         # Put the nasty error message in config.log where it belongs
13086         echo "$LUA_PKG_ERRORS" >&5
13087
13088         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090
13091
13092 pkg_failed=no
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13094 $as_echo_n "checking for LUA51... " >&6; }
13095
13096 if test -n "$PKG_CONFIG"; then
13097     if test -n "$LUA51_CFLAGS"; then
13098         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13099     else
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
13103   ac_status=$?
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`
13107 else
13108   pkg_failed=yes
13109 fi
13110     fi
13111 else
13112         pkg_failed=untried
13113 fi
13114 if test -n "$PKG_CONFIG"; then
13115     if test -n "$LUA51_LIBS"; then
13116         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13117     else
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
13121   ac_status=$?
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`
13125 else
13126   pkg_failed=yes
13127 fi
13128     fi
13129 else
13130         pkg_failed=untried
13131 fi
13132
13133
13134
13135 if test $pkg_failed = yes; then
13136
13137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13138         _pkg_short_errors_supported=yes
13139 else
13140         _pkg_short_errors_supported=no
13141 fi
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"`
13144         else
13145                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13146         fi
13147         # Put the nasty error message in config.log where it belongs
13148         echo "$LUA51_PKG_ERRORS" >&5
13149
13150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $as_echo "no" >&6; }
13152
13153
13154 pkg_failed=no
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13156 $as_echo_n "checking for LUA51... " >&6; }
13157
13158 if test -n "$PKG_CONFIG"; then
13159     if test -n "$LUA51_CFLAGS"; then
13160         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13161     else
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
13165   ac_status=$?
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`
13169 else
13170   pkg_failed=yes
13171 fi
13172     fi
13173 else
13174         pkg_failed=untried
13175 fi
13176 if test -n "$PKG_CONFIG"; then
13177     if test -n "$LUA51_LIBS"; then
13178         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13179     else
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
13183   ac_status=$?
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`
13187 else
13188   pkg_failed=yes
13189 fi
13190     fi
13191 else
13192         pkg_failed=untried
13193 fi
13194
13195
13196
13197 if test $pkg_failed = yes; then
13198
13199 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13200         _pkg_short_errors_supported=yes
13201 else
13202         _pkg_short_errors_supported=no
13203 fi
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"`
13206         else
13207                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13208         fi
13209         # Put the nasty error message in config.log where it belongs
13210         echo "$LUA51_PKG_ERRORS" >&5
13211
13212         as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13213
13214 $LUA51_PKG_ERRORS
13215
13216 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13217 installed software in a non-standard prefix.
13218
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.
13222 " "$LINENO" 5
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.
13229
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.
13233
13234 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13235 See \`config.log' for more details." "$LINENO" 5; }
13236 else
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; }
13241         :
13242 fi
13243
13244 elif test $pkg_failed = untried; then
13245
13246
13247 pkg_failed=no
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13249 $as_echo_n "checking for LUA51... " >&6; }
13250
13251 if test -n "$PKG_CONFIG"; then
13252     if test -n "$LUA51_CFLAGS"; then
13253         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13254     else
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
13258   ac_status=$?
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`
13262 else
13263   pkg_failed=yes
13264 fi
13265     fi
13266 else
13267         pkg_failed=untried
13268 fi
13269 if test -n "$PKG_CONFIG"; then
13270     if test -n "$LUA51_LIBS"; then
13271         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13272     else
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
13276   ac_status=$?
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`
13280 else
13281   pkg_failed=yes
13282 fi
13283     fi
13284 else
13285         pkg_failed=untried
13286 fi
13287
13288
13289
13290 if test $pkg_failed = yes; then
13291
13292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13293         _pkg_short_errors_supported=yes
13294 else
13295         _pkg_short_errors_supported=no
13296 fi
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"`
13299         else
13300                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13301         fi
13302         # Put the nasty error message in config.log where it belongs
13303         echo "$LUA51_PKG_ERRORS" >&5
13304
13305         as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13306
13307 $LUA51_PKG_ERRORS
13308
13309 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13310 installed software in a non-standard prefix.
13311
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.
13315 " "$LINENO" 5
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.
13322
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.
13326
13327 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13328 See \`config.log' for more details." "$LINENO" 5; }
13329 else
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; }
13334         :
13335 fi
13336
13337 else
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; }
13342
13343 fi
13344
13345 elif test $pkg_failed = untried; then
13346
13347
13348 pkg_failed=no
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13350 $as_echo_n "checking for LUA51... " >&6; }
13351
13352 if test -n "$PKG_CONFIG"; then
13353     if test -n "$LUA51_CFLAGS"; then
13354         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13355     else
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
13359   ac_status=$?
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`
13363 else
13364   pkg_failed=yes
13365 fi
13366     fi
13367 else
13368         pkg_failed=untried
13369 fi
13370 if test -n "$PKG_CONFIG"; then
13371     if test -n "$LUA51_LIBS"; then
13372         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13373     else
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
13377   ac_status=$?
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`
13381 else
13382   pkg_failed=yes
13383 fi
13384     fi
13385 else
13386         pkg_failed=untried
13387 fi
13388
13389
13390
13391 if test $pkg_failed = yes; then
13392
13393 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13394         _pkg_short_errors_supported=yes
13395 else
13396         _pkg_short_errors_supported=no
13397 fi
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"`
13400         else
13401                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13402         fi
13403         # Put the nasty error message in config.log where it belongs
13404         echo "$LUA51_PKG_ERRORS" >&5
13405
13406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13408
13409
13410 pkg_failed=no
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13412 $as_echo_n "checking for LUA51... " >&6; }
13413
13414 if test -n "$PKG_CONFIG"; then
13415     if test -n "$LUA51_CFLAGS"; then
13416         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13417     else
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
13421   ac_status=$?
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`
13425 else
13426   pkg_failed=yes
13427 fi
13428     fi
13429 else
13430         pkg_failed=untried
13431 fi
13432 if test -n "$PKG_CONFIG"; then
13433     if test -n "$LUA51_LIBS"; then
13434         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13435     else
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
13439   ac_status=$?
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`
13443 else
13444   pkg_failed=yes
13445 fi
13446     fi
13447 else
13448         pkg_failed=untried
13449 fi
13450
13451
13452
13453 if test $pkg_failed = yes; then
13454
13455 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13456         _pkg_short_errors_supported=yes
13457 else
13458         _pkg_short_errors_supported=no
13459 fi
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"`
13462         else
13463                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13464         fi
13465         # Put the nasty error message in config.log where it belongs
13466         echo "$LUA51_PKG_ERRORS" >&5
13467
13468         as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13469
13470 $LUA51_PKG_ERRORS
13471
13472 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13473 installed software in a non-standard prefix.
13474
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.
13478 " "$LINENO" 5
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.
13485
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.
13489
13490 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13491 See \`config.log' for more details." "$LINENO" 5; }
13492 else
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; }
13497         :
13498 fi
13499
13500 elif test $pkg_failed = untried; then
13501
13502
13503 pkg_failed=no
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13505 $as_echo_n "checking for LUA51... " >&6; }
13506
13507 if test -n "$PKG_CONFIG"; then
13508     if test -n "$LUA51_CFLAGS"; then
13509         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13510     else
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
13514   ac_status=$?
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`
13518 else
13519   pkg_failed=yes
13520 fi
13521     fi
13522 else
13523         pkg_failed=untried
13524 fi
13525 if test -n "$PKG_CONFIG"; then
13526     if test -n "$LUA51_LIBS"; then
13527         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13528     else
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
13532   ac_status=$?
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`
13536 else
13537   pkg_failed=yes
13538 fi
13539     fi
13540 else
13541         pkg_failed=untried
13542 fi
13543
13544
13545
13546 if test $pkg_failed = yes; then
13547
13548 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13549         _pkg_short_errors_supported=yes
13550 else
13551         _pkg_short_errors_supported=no
13552 fi
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"`
13555         else
13556                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13557         fi
13558         # Put the nasty error message in config.log where it belongs
13559         echo "$LUA51_PKG_ERRORS" >&5
13560
13561         as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13562
13563 $LUA51_PKG_ERRORS
13564
13565 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13566 installed software in a non-standard prefix.
13567
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.
13571 " "$LINENO" 5
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.
13578
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.
13582
13583 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13584 See \`config.log' for more details." "$LINENO" 5; }
13585 else
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; }
13590         :
13591 fi
13592
13593 else
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; }
13598
13599 fi
13600
13601 else
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; }
13606
13607 fi
13608         conky_CFLAGS="$conky_CFLAGS $LUA_CFLAGS $LUA51_CFLAGS"
13609         conky_LIBS="$conky_LIBS $LUA_LIBS $LUA51_LIBS"
13610
13611         if test x$need_tolua = xyes; then
13612
13613 $as_echo "#define LUA_EXTRAS 1" >>confdefs.h
13614
13615                 if test "x$want_x11" != "xyes"; then
13616                                                 want_lua_cairo=no
13617                 else
13618                         if test x$want_lua_cairo = xyes; then
13619
13620 pkg_failed=no
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
13622 $as_echo_n "checking for cairo... " >&6; }
13623
13624 if test -n "$PKG_CONFIG"; then
13625     if test -n "$cairo_CFLAGS"; then
13626         pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
13627     else
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
13631   ac_status=$?
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`
13635 else
13636   pkg_failed=yes
13637 fi
13638     fi
13639 else
13640         pkg_failed=untried
13641 fi
13642 if test -n "$PKG_CONFIG"; then
13643     if test -n "$cairo_LIBS"; then
13644         pkg_cv_cairo_LIBS="$cairo_LIBS"
13645     else
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
13649   ac_status=$?
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`
13653 else
13654   pkg_failed=yes
13655 fi
13656     fi
13657 else
13658         pkg_failed=untried
13659 fi
13660
13661
13662
13663 if test $pkg_failed = yes; then
13664
13665 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13666         _pkg_short_errors_supported=yes
13667 else
13668         _pkg_short_errors_supported=no
13669 fi
13670         if test $_pkg_short_errors_supported = yes; then
13671                 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
13672         else
13673                 cairo_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
13674         fi
13675         # Put the nasty error message in config.log where it belongs
13676         echo "$cairo_PKG_ERRORS" >&5
13677
13678         as_fn_error "Package requirements (cairo) were not met:
13679
13680 $cairo_PKG_ERRORS
13681
13682 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13683 installed software in a non-standard prefix.
13684
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.
13688 " "$LINENO" 5
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.
13695
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.
13699
13700 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13701 See \`config.log' for more details." "$LINENO" 5; }
13702 else
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; }
13707         :
13708 fi
13709
13710 pkg_failed=no
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_xlib" >&5
13712 $as_echo_n "checking for cairo_xlib... " >&6; }
13713
13714 if test -n "$PKG_CONFIG"; then
13715     if test -n "$cairo_xlib_CFLAGS"; then
13716         pkg_cv_cairo_xlib_CFLAGS="$cairo_xlib_CFLAGS"
13717     else
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
13721   ac_status=$?
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`
13725 else
13726   pkg_failed=yes
13727 fi
13728     fi
13729 else
13730         pkg_failed=untried
13731 fi
13732 if test -n "$PKG_CONFIG"; then
13733     if test -n "$cairo_xlib_LIBS"; then
13734         pkg_cv_cairo_xlib_LIBS="$cairo_xlib_LIBS"
13735     else
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
13739   ac_status=$?
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`
13743 else
13744   pkg_failed=yes
13745 fi
13746     fi
13747 else
13748         pkg_failed=untried
13749 fi
13750
13751
13752
13753 if test $pkg_failed = yes; then
13754
13755 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13756         _pkg_short_errors_supported=yes
13757 else
13758         _pkg_short_errors_supported=no
13759 fi
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"`
13762         else
13763                 cairo_xlib_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-xlib"`
13764         fi
13765         # Put the nasty error message in config.log where it belongs
13766         echo "$cairo_xlib_PKG_ERRORS" >&5
13767
13768         as_fn_error "Package requirements (cairo-xlib) were not met:
13769
13770 $cairo_xlib_PKG_ERRORS
13771
13772 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13773 installed software in a non-standard prefix.
13774
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.
13778 " "$LINENO" 5
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.
13785
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.
13789
13790 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13791 See \`config.log' for more details." "$LINENO" 5; }
13792 else
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; }
13797         :
13798 fi
13799
13800 $as_echo "#define HAVE_LUA_CAIRO 1" >>confdefs.h
13801
13802                                 libcairo_CFLAGS="$libcairo_CFLAGS $cairo_CFLAGS $cairo_xlib_CFLAGS"
13803                                 libcairo_LIBS="$libcairo_LIBS $cairo_LIBS $cairo_xlib_LIBS"
13804                         fi
13805                         if test x$want_imlib2 = xyes; then
13806
13807 $as_echo "#define HAVE_LUA_IMLIB2 1" >>confdefs.h
13808
13809                         fi
13810                 fi
13811                 for ac_prog in tolua++ tolua++5.1 tolua++-5.1
13812 do
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
13819 else
13820   if test -n "$toluapp"; then
13821   ac_cv_prog_toluapp="$toluapp" # Let the user override the test.
13822 else
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13825 do
13826   IFS=$as_save_IFS
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
13832     break 2
13833   fi
13834 done
13835   done
13836 IFS=$as_save_IFS
13837
13838 fi
13839 fi
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; }
13844 else
13845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13847 fi
13848
13849
13850   test -n "$toluapp" && break
13851 done
13852 test -n "$toluapp" || toluapp="no"
13853
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
13856                 else
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
13861 else
13862   ac_func_search_save_LIBS=$LIBS
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h.  */
13865
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.  */
13869 #ifdef __cplusplus
13870 extern "C"
13871 #endif
13872 char tolua_error ();
13873 int
13874 main ()
13875 {
13876 return tolua_error ();
13877   ;
13878   return 0;
13879 }
13880 _ACEOF
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"
13884   else
13885     ac_res=-l$ac_lib
13886     LIBS="-l$ac_lib $LUA_LIBS $LUA51_LIBS $ac_func_search_save_LIBS"
13887   fi
13888   if ac_fn_c_try_link "$LINENO"; then :
13889   ac_cv_search_tolua_error=$ac_res
13890 fi
13891 rm -f core conftest.err conftest.$ac_objext \
13892     conftest$ac_exeext
13893   if test "${ac_cv_search_tolua_error+set}" = set; then :
13894   break
13895 fi
13896 done
13897 if test "${ac_cv_search_tolua_error+set}" = set; then :
13898
13899 else
13900   ac_cv_search_tolua_error=no
13901 fi
13902 rm conftest.$ac_ext
13903 LIBS=$ac_func_search_save_LIBS
13904 fi
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"
13910
13911                                                         tolua_LIBS="${LIBS}"
13912
13913                                                         tolua_CFLAGS="${CFLAGS}"
13914
13915
13916 else
13917   as_fn_error "tolua_error not found" "$LINENO" 5
13918 fi
13919
13920                 fi
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"
13924         fi
13925
13926 $as_echo "#define HAVE_LUA 1" >>confdefs.h
13927
13928 fi
13929  if test x$want_lua_cairo = xyes; then
13930   BUILD_LUA_CAIRO_TRUE=
13931   BUILD_LUA_CAIRO_FALSE='#'
13932 else
13933   BUILD_LUA_CAIRO_TRUE='#'
13934   BUILD_LUA_CAIRO_FALSE=
13935 fi
13936
13937  if test x$want_lua_imlib2 = xyes; then
13938   BUILD_LUA_IMLIB2_TRUE=
13939   BUILD_LUA_IMLIB2_FALSE='#'
13940 else
13941   BUILD_LUA_IMLIB2_TRUE='#'
13942   BUILD_LUA_IMLIB2_FALSE=
13943 fi
13944
13945
13946
13947 # Check whether --enable-wlan was given.
13948 if test "${enable_wlan+set}" = set; then :
13949   enableval=$enable_wlan; want_wlan="$enableval"
13950 else
13951   want_wlan=no
13952 fi
13953
13954
13955  if test x$want_wlan = xyes; then
13956   BUILD_WLAN_TRUE=
13957   BUILD_WLAN_FALSE='#'
13958 else
13959   BUILD_WLAN_TRUE='#'
13960   BUILD_WLAN_FALSE=
13961 fi
13962
13963 if test x$want_wlan = xyes; then
13964   for ac_header in iwlib.h
13965 do :
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
13970 _ACEOF
13971
13972 else
13973   as_fn_error "iwlib.h header not found" "$LINENO" 5
13974 fi
13975
13976 done
13977
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
13982 else
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.  */
13987
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.  */
13991 #ifdef __cplusplus
13992 extern "C"
13993 #endif
13994 char iw_sockets_open ();
13995 int
13996 main ()
13997 {
13998 return iw_sockets_open ();
13999   ;
14000   return 0;
14001 }
14002 _ACEOF
14003 if ac_fn_c_try_link "$LINENO"; then :
14004   ac_cv_lib_iw_iw_sockets_open=yes
14005 else
14006   ac_cv_lib_iw_iw_sockets_open=no
14007 fi
14008 rm -f core conftest.err conftest.$ac_objext \
14009     conftest$ac_exeext conftest.$ac_ext
14010 LIBS=$ac_check_lib_save_LIBS
14011 fi
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"
14016 else
14017   as_fn_error "iw_sockets_open not found" "$LINENO" 5
14018 fi
14019
14020
14021 $as_echo "#define HAVE_IWLIB 1" >>confdefs.h
14022
14023 fi
14024
14025
14026 # Check whether --enable-portmon was given.
14027 if test "${enable_portmon+set}" = set; then :
14028   enableval=$enable_portmon; want_portmon="$enableval"
14029 else
14030   want_portmon=yes
14031 fi
14032
14033
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"
14039   else
14040         for ac_func in getnameinfo
14041 do :
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
14046 _ACEOF
14047
14048 else
14049   as_fn_error "getnameinfo function not found" "$LINENO" 5
14050 fi
14051 done
14052
14053         for ac_header in netdb.h netinet/in.h netinet/tcp.h sys/socket.h arpa/inet.h
14054 do :
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
14061 _ACEOF
14062
14063 else
14064   PORT_MONITORS_MISSING=yes
14065 fi
14066
14067 done
14068
14069         if test x"$PORT_MONITORS_MISSING" = xyes; then
14070               as_fn_error "missing a needed network header for port monitoring" "$LINENO" 5
14071         fi
14072         WANT_GLIB=yes
14073
14074 $as_echo "#define TCP_PORT_MONITOR 1" >>confdefs.h
14075
14076   fi
14077 fi
14078  if test x"$want_portmon" = xyes; then
14079   BUILD_PORT_MONITORS_TRUE=
14080   BUILD_PORT_MONITORS_FALSE='#'
14081 else
14082   BUILD_PORT_MONITORS_TRUE='#'
14083   BUILD_PORT_MONITORS_FALSE=
14084 fi
14085
14086
14087
14088
14089
14090
14091       if test "X$prefix" = "XNONE"; then
14092     acl_final_prefix="$ac_default_prefix"
14093   else
14094     acl_final_prefix="$prefix"
14095   fi
14096   if test "X$exec_prefix" = "XNONE"; then
14097     acl_final_exec_prefix='${prefix}'
14098   else
14099     acl_final_exec_prefix="$exec_prefix"
14100   fi
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"
14105
14106
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
14110 else
14111   with_gnu_ld=no
14112 fi
14113
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
14119   chmod +x conf$$.sh
14120   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14121     PATH_SEPARATOR=';'
14122   else
14123     PATH_SEPARATOR=:
14124   fi
14125   rm -f conf$$.sh
14126 fi
14127 ac_prog=ld
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; }
14132   case $host in
14133   *-*-mingw*)
14134     # gcc leaves a trailing carriage return which upsets mingw
14135     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14136   *)
14137     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14138   esac
14139   case $ac_prog in
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%/%"`
14147       done
14148       test -z "$LD" && LD="$ac_prog"
14149       ;;
14150   "")
14151     # If it fails, then pretend we aren't using GCC.
14152     ac_prog=ld
14153     ;;
14154   *)
14155     # If it is relative, then search for the first ld in PATH.
14156     with_gnu_ld=unknown
14157     ;;
14158   esac
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; }
14162 else
14163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14164 $as_echo_n "checking for non-GNU ld... " >&6; }
14165 fi
14166 if test "${acl_cv_path_LD+set}" = set; then :
14167   $as_echo_n "(cached) " >&6
14168 else
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 ;;
14181       *)
14182         test "$with_gnu_ld" != yes && break ;;
14183       esac
14184     fi
14185   done
14186   IFS="$ac_save_ifs"
14187 else
14188   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14189 fi
14190 fi
14191
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; }
14196 else
14197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 $as_echo "no" >&6; }
14199 fi
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
14205 else
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 ;;
14210 *)
14211   acl_cv_prog_gnu_ld=no ;;
14212 esac
14213 fi
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
14217
14218
14219
14220
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
14225 else
14226
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
14229     . ./conftest.sh
14230     rm -f ./conftest.sh
14231     acl_cv_rpath=done
14232
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14235 $as_echo "$acl_cv_rpath" >&6; }
14236   wl="$acl_cv_wl"
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; :
14248 else
14249   enable_rpath=yes
14250 fi
14251
14252
14253
14254
14255   acl_libdirstem=lib
14256   acl_libdirstem2=
14257   case "$host_os" in
14258     solaris*)
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
14263 else
14264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h.  */
14266
14267 #ifdef _LP64
14268 sixtyfour bits
14269 #endif
14270
14271 _ACEOF
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
14275 else
14276   gl_cv_solaris_64bit=no
14277 fi
14278 rm -f conftest*
14279
14280
14281 fi
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 ;;
14289         esac
14290       fi
14291       ;;
14292     *)
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 ;;
14300               */../ | */.. )
14301                 # Better ignore directories of this form. They are misleading.
14302                 ;;
14303               *) searchdir=`cd "$searchdir" && pwd`
14304                  case "$searchdir" in
14305                    */lib64 ) acl_libdirstem=lib64 ;;
14306                  esac ;;
14307             esac
14308           fi
14309         done
14310         IFS="$acl_save_IFS"
14311       fi
14312       ;;
14313   esac
14314   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327     use_additional=yes
14328
14329   acl_save_prefix="$prefix"
14330   prefix="$acl_final_prefix"
14331   acl_save_exec_prefix="$exec_prefix"
14332   exec_prefix="$acl_final_exec_prefix"
14333
14334     eval additional_includedir=\"$includedir\"
14335     eval additional_libdir=\"$libdir\"
14336
14337   exec_prefix="$acl_save_exec_prefix"
14338   prefix="$acl_save_prefix"
14339
14340
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
14345       use_additional=no
14346     else
14347       if test "X$withval" = "X"; then
14348
14349   acl_save_prefix="$prefix"
14350   prefix="$acl_final_prefix"
14351   acl_save_exec_prefix="$exec_prefix"
14352   exec_prefix="$acl_final_exec_prefix"
14353
14354           eval additional_includedir=\"$includedir\"
14355           eval additional_libdir=\"$libdir\"
14356
14357   exec_prefix="$acl_save_exec_prefix"
14358   prefix="$acl_save_prefix"
14359
14360       else
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"
14366         fi
14367       fi
14368     fi
14369
14370 fi
14371
14372       LIBICONV=
14373   LTLIBICONV=
14374   INCICONV=
14375   LIBICONV_PREFIX=
14376       HAVE_LIBICONV=
14377   rpathdirs=
14378   ltrpathdirs=
14379   names_already_handled=
14380   names_next_round='iconv '
14381   while test -n "$names_next_round"; do
14382     names_this_round="$names_next_round"
14383     names_next_round=
14384     for name in $names_this_round; do
14385       already_handled=
14386       for n in $names_already_handled; do
14387         if test "$n" = "$name"; then
14388           already_handled=yes
14389           break
14390         fi
14391       done
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"
14402           else
14403                                     :
14404           fi
14405         else
14406                               found_dir=
14407           found_la=
14408           found_so=
14409           found_a=
14410           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14411           if test -n "$acl_shlibext"; then
14412             shrext=".$acl_shlibext"             # typically: shrext=.so
14413           else
14414             shrext=
14415           fi
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
14420                 found_dir="$dir"
14421                 found_so="$dir/$libname$shrext"
14422               else
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
14430                     found_dir="$dir"
14431                     found_so="$dir/$libname$shrext.$ver"
14432                   fi
14433                 else
14434                   eval library_names=\"$acl_library_names_spec\"
14435                   for f in $library_names; do
14436                     if test -f "$dir/$f"; then
14437                       found_dir="$dir"
14438                       found_so="$dir/$f"
14439                       break
14440                     fi
14441                   done
14442                 fi
14443               fi
14444             fi
14445                         if test "X$found_dir" = "X"; then
14446               if test -f "$dir/$libname.$acl_libext"; then
14447                 found_dir="$dir"
14448                 found_a="$dir/$libname.$acl_libext"
14449               fi
14450             fi
14451             if test "X$found_dir" != "X"; then
14452               if test -f "$dir/$libname.la"; then
14453                 found_la="$dir/$libname.la"
14454               fi
14455             fi
14456           fi
14457           if test "X$found_dir" = "X"; then
14458             for x in $LDFLAGS $LTLIBICONV; do
14459
14460   acl_save_prefix="$prefix"
14461   prefix="$acl_final_prefix"
14462   acl_save_exec_prefix="$exec_prefix"
14463   exec_prefix="$acl_final_exec_prefix"
14464   eval x=\"$x\"
14465   exec_prefix="$acl_save_exec_prefix"
14466   prefix="$acl_save_prefix"
14467
14468               case "$x" in
14469                 -L*)
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
14473                       found_dir="$dir"
14474                       found_so="$dir/$libname$shrext"
14475                     else
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
14483                           found_dir="$dir"
14484                           found_so="$dir/$libname$shrext.$ver"
14485                         fi
14486                       else
14487                         eval library_names=\"$acl_library_names_spec\"
14488                         for f in $library_names; do
14489                           if test -f "$dir/$f"; then
14490                             found_dir="$dir"
14491                             found_so="$dir/$f"
14492                             break
14493                           fi
14494                         done
14495                       fi
14496                     fi
14497                   fi
14498                                     if test "X$found_dir" = "X"; then
14499                     if test -f "$dir/$libname.$acl_libext"; then
14500                       found_dir="$dir"
14501                       found_a="$dir/$libname.$acl_libext"
14502                     fi
14503                   fi
14504                   if test "X$found_dir" != "X"; then
14505                     if test -f "$dir/$libname.la"; then
14506                       found_la="$dir/$libname.la"
14507                     fi
14508                   fi
14509                   ;;
14510               esac
14511               if test "X$found_dir" != "X"; then
14512                 break
14513               fi
14514             done
14515           fi
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"
14523               else
14524                                                                                 haveit=
14525                 for x in $ltrpathdirs; do
14526                   if test "X$x" = "X$found_dir"; then
14527                     haveit=yes
14528                     break
14529                   fi
14530                 done
14531                 if test -z "$haveit"; then
14532                   ltrpathdirs="$ltrpathdirs $found_dir"
14533                 fi
14534                                 if test "$acl_hardcode_direct" = yes; then
14535                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14536                 else
14537                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14538                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14539                                                             haveit=
14540                     for x in $rpathdirs; do
14541                       if test "X$x" = "X$found_dir"; then
14542                         haveit=yes
14543                         break
14544                       fi
14545                     done
14546                     if test -z "$haveit"; then
14547                       rpathdirs="$rpathdirs $found_dir"
14548                     fi
14549                   else
14550                                                                                 haveit=
14551                     for x in $LDFLAGS $LIBICONV; do
14552
14553   acl_save_prefix="$prefix"
14554   prefix="$acl_final_prefix"
14555   acl_save_exec_prefix="$exec_prefix"
14556   exec_prefix="$acl_final_exec_prefix"
14557   eval x=\"$x\"
14558   exec_prefix="$acl_save_exec_prefix"
14559   prefix="$acl_save_prefix"
14560
14561                       if test "X$x" = "X-L$found_dir"; then
14562                         haveit=yes
14563                         break
14564                       fi
14565                     done
14566                     if test -z "$haveit"; then
14567                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14568                     fi
14569                     if test "$acl_hardcode_minus_L" != no; then
14570                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14571                     else
14572                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14573                     fi
14574                   fi
14575                 fi
14576               fi
14577             else
14578               if test "X$found_a" != "X"; then
14579                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14580               else
14581                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14582               fi
14583             fi
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"
14590                 fi
14591                 additional_includedir="$basedir/include"
14592                 ;;
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"
14597                 fi
14598                 additional_includedir="$basedir/include"
14599                 ;;
14600             esac
14601             if test "X$additional_includedir" != "X"; then
14602                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14603                 haveit=
14604                 if test "X$additional_includedir" = "X/usr/local/include"; then
14605                   if test -n "$GCC"; then
14606                     case $host_os in
14607                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14608                     esac
14609                   fi
14610                 fi
14611                 if test -z "$haveit"; then
14612                   for x in $CPPFLAGS $INCICONV; do
14613
14614   acl_save_prefix="$prefix"
14615   prefix="$acl_final_prefix"
14616   acl_save_exec_prefix="$exec_prefix"
14617   exec_prefix="$acl_final_exec_prefix"
14618   eval x=\"$x\"
14619   exec_prefix="$acl_save_exec_prefix"
14620   prefix="$acl_save_prefix"
14621
14622                     if test "X$x" = "X-I$additional_includedir"; then
14623                       haveit=yes
14624                       break
14625                     fi
14626                   done
14627                   if test -z "$haveit"; then
14628                     if test -d "$additional_includedir"; then
14629                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14630                     fi
14631                   fi
14632                 fi
14633               fi
14634             fi
14635                         if test -n "$found_la"; then
14636                                                         save_libdir="$libdir"
14637               case "$found_la" in
14638                 */* | *\\*) . "$found_la" ;;
14639                 *) . "./$found_la" ;;
14640               esac
14641               libdir="$save_libdir"
14642                             for dep in $dependency_libs; do
14643                 case "$dep" in
14644                   -L*)
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
14648                       haveit=
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
14652                           case $host_os in
14653                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14654                           esac
14655                         fi
14656                       fi
14657                       if test -z "$haveit"; then
14658                         haveit=
14659                         for x in $LDFLAGS $LIBICONV; do
14660
14661   acl_save_prefix="$prefix"
14662   prefix="$acl_final_prefix"
14663   acl_save_exec_prefix="$exec_prefix"
14664   exec_prefix="$acl_final_exec_prefix"
14665   eval x=\"$x\"
14666   exec_prefix="$acl_save_exec_prefix"
14667   prefix="$acl_save_prefix"
14668
14669                           if test "X$x" = "X-L$additional_libdir"; then
14670                             haveit=yes
14671                             break
14672                           fi
14673                         done
14674                         if test -z "$haveit"; then
14675                           if test -d "$additional_libdir"; then
14676                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14677                           fi
14678                         fi
14679                         haveit=
14680                         for x in $LDFLAGS $LTLIBICONV; do
14681
14682   acl_save_prefix="$prefix"
14683   prefix="$acl_final_prefix"
14684   acl_save_exec_prefix="$exec_prefix"
14685   exec_prefix="$acl_final_exec_prefix"
14686   eval x=\"$x\"
14687   exec_prefix="$acl_save_exec_prefix"
14688   prefix="$acl_save_prefix"
14689
14690                           if test "X$x" = "X-L$additional_libdir"; then
14691                             haveit=yes
14692                             break
14693                           fi
14694                         done
14695                         if test -z "$haveit"; then
14696                           if test -d "$additional_libdir"; then
14697                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14698                           fi
14699                         fi
14700                       fi
14701                     fi
14702                     ;;
14703                   -R*)
14704                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14705                     if test "$enable_rpath" != no; then
14706                                                                   haveit=
14707                       for x in $rpathdirs; do
14708                         if test "X$x" = "X$dir"; then
14709                           haveit=yes
14710                           break
14711                         fi
14712                       done
14713                       if test -z "$haveit"; then
14714                         rpathdirs="$rpathdirs $dir"
14715                       fi
14716                                                                   haveit=
14717                       for x in $ltrpathdirs; do
14718                         if test "X$x" = "X$dir"; then
14719                           haveit=yes
14720                           break
14721                         fi
14722                       done
14723                       if test -z "$haveit"; then
14724                         ltrpathdirs="$ltrpathdirs $dir"
14725                       fi
14726                     fi
14727                     ;;
14728                   -l*)
14729                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14730                     ;;
14731                   *.la)
14732                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14733                     ;;
14734                   *)
14735                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14736                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14737                     ;;
14738                 esac
14739               done
14740             fi
14741           else
14742                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14743             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14744           fi
14745         fi
14746       fi
14747     done
14748   done
14749   if test "X$rpathdirs" != "X"; then
14750     if test -n "$acl_hardcode_libdir_separator"; then
14751                         alldirs=
14752       for found_dir in $rpathdirs; do
14753         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14754       done
14755             acl_save_libdir="$libdir"
14756       libdir="$alldirs"
14757       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14758       libdir="$acl_save_libdir"
14759       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14760     else
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"
14767       done
14768     fi
14769   fi
14770   if test "X$ltrpathdirs" != "X"; then
14771             for found_dir in $ltrpathdirs; do
14772       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14773     done
14774   fi
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787           am_save_CPPFLAGS="$CPPFLAGS"
14788
14789   for element in $INCICONV; do
14790     haveit=
14791     for x in $CPPFLAGS; do
14792
14793   acl_save_prefix="$prefix"
14794   prefix="$acl_final_prefix"
14795   acl_save_exec_prefix="$exec_prefix"
14796   exec_prefix="$acl_final_exec_prefix"
14797   eval x=\"$x\"
14798   exec_prefix="$acl_save_exec_prefix"
14799   prefix="$acl_save_prefix"
14800
14801       if test "X$x" = "X$element"; then
14802         haveit=yes
14803         break
14804       fi
14805     done
14806     if test -z "$haveit"; then
14807       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14808     fi
14809   done
14810
14811
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
14816 else
14817
14818     am_cv_func_iconv="no, consider installing GNU libiconv"
14819     am_cv_lib_iconv=no
14820     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h.  */
14822 #include <stdlib.h>
14823 #include <iconv.h>
14824 int
14825 main ()
14826 {
14827 iconv_t cd = iconv_open("","");
14828        iconv(cd,NULL,NULL,NULL,NULL);
14829        iconv_close(cd);
14830   ;
14831   return 0;
14832 }
14833 _ACEOF
14834 if ac_fn_c_try_link "$LINENO"; then :
14835   am_cv_func_iconv=yes
14836 fi
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>
14845 #include <iconv.h>
14846 int
14847 main ()
14848 {
14849 iconv_t cd = iconv_open("","");
14850          iconv(cd,NULL,NULL,NULL,NULL);
14851          iconv_close(cd);
14852   ;
14853   return 0;
14854 }
14855 _ACEOF
14856 if ac_fn_c_try_link "$LINENO"; then :
14857   am_cv_lib_iconv=yes
14858         am_cv_func_iconv=yes
14859 fi
14860 rm -f core conftest.err conftest.$ac_objext \
14861     conftest$ac_exeext conftest.$ac_ext
14862       LIBS="$am_save_LIBS"
14863     fi
14864
14865 fi
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
14873 else
14874
14875             am_save_LIBS="$LIBS"
14876       if test $am_cv_lib_iconv = yes; then
14877         LIBS="$LIBS $LIBICONV"
14878       fi
14879       if test "$cross_compiling" = yes; then :
14880   case "$host_os" in
14881            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14882            *)            am_cv_func_iconv_works="guessing yes" ;;
14883          esac
14884 else
14885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h.  */
14887
14888 #include <iconv.h>
14889 #include <string.h>
14890 int main ()
14891 {
14892   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14893      returns.  */
14894   {
14895     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14896     if (cd_utf8_to_88591 != (iconv_t)(-1))
14897       {
14898         static const char input[] = "\342\202\254"; /* EURO SIGN */
14899         char buf[10];
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);
14907         if (res == 0)
14908           return 1;
14909       }
14910   }
14911   /* Test against Solaris 10 bug: Failures are not distinguishable from
14912      successful returns.  */
14913   {
14914     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14915     if (cd_ascii_to_88591 != (iconv_t)(-1))
14916       {
14917         static const char input[] = "\263";
14918         char buf[10];
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);
14926         if (res == 0)
14927           return 1;
14928       }
14929   }
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.  */
14932   {
14933     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14934     if (cd_88591_to_utf8 != (iconv_t)(-1))
14935       {
14936         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14937         char buf[50];
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);
14945         if ((int)res > 0)
14946           return 1;
14947       }
14948   }
14949 #endif
14950   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14951      provided.  */
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))
14960     return 1;
14961   return 0;
14962 }
14963 _ACEOF
14964 if ac_fn_c_try_run "$LINENO"; then :
14965   am_cv_func_iconv_works=yes
14966 else
14967   am_cv_func_iconv_works=no
14968 fi
14969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14970   conftest.$ac_objext conftest.beam conftest.$ac_ext
14971 fi
14972
14973       LIBS="$am_save_LIBS"
14974
14975 fi
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 ;;
14981     esac
14982   else
14983     am_func_iconv=no am_cv_lib_iconv=no
14984   fi
14985   if test "$am_func_iconv" = yes; then
14986
14987 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14988
14989   fi
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; }
14995   else
14996             CPPFLAGS="$am_save_CPPFLAGS"
14997     LIBICONV=
14998     LTLIBICONV=
14999   fi
15000
15001
15002
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
15008 else
15009
15010       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h.  */
15012
15013 #include <stdlib.h>
15014 #include <iconv.h>
15015 extern
15016 #ifdef __cplusplus
15017 "C"
15018 #endif
15019 #if defined(__STDC__) || defined(__cplusplus)
15020 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15021 #else
15022 size_t iconv();
15023 #endif
15024
15025 int
15026 main ()
15027 {
15028
15029   ;
15030   return 0;
15031 }
15032 _ACEOF
15033 if ac_fn_c_try_compile "$LINENO"; then :
15034   am_cv_proto_iconv_arg1=""
15035 else
15036   am_cv_proto_iconv_arg1="const"
15037 fi
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);"
15040 fi
15041
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
15045 $as_echo "
15046          $am_cv_proto_iconv" >&6; }
15047
15048 cat >>confdefs.h <<_ACEOF
15049 #define ICONV_CONST $am_cv_proto_iconv_arg1
15050 _ACEOF
15051
15052   fi
15053
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;}
15057 else
15058   conky_LIBS="$conky_LIBS $LIBICONV"
15059 fi
15060  if test "$am_cv_func_iconv" = yes; then
15061   BUILD_ICONV_TRUE=
15062   BUILD_ICONV_FALSE='#'
15063 else
15064   BUILD_ICONV_TRUE='#'
15065   BUILD_ICONV_FALSE=
15066 fi
15067
15068
15069
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"
15073 else
15074   want_double_buffer=yes
15075 fi
15076
15077
15078 if test "x$want_double_buffer" = "xyes"; then
15079     if test "x$want_x11" != "xyes"; then
15080             want_double_buffer=no
15081     else
15082       if $PKG_CONFIG --exists xext; then
15083
15084 pkg_failed=no
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xext" >&5
15086 $as_echo_n "checking for Xext... " >&6; }
15087
15088 if test -n "$PKG_CONFIG"; then
15089     if test -n "$Xext_CFLAGS"; then
15090         pkg_cv_Xext_CFLAGS="$Xext_CFLAGS"
15091     else
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
15095   ac_status=$?
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`
15099 else
15100   pkg_failed=yes
15101 fi
15102     fi
15103 else
15104         pkg_failed=untried
15105 fi
15106 if test -n "$PKG_CONFIG"; then
15107     if test -n "$Xext_LIBS"; then
15108         pkg_cv_Xext_LIBS="$Xext_LIBS"
15109     else
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
15113   ac_status=$?
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`
15117 else
15118   pkg_failed=yes
15119 fi
15120     fi
15121 else
15122         pkg_failed=untried
15123 fi
15124
15125
15126
15127 if test $pkg_failed = yes; then
15128
15129 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15130         _pkg_short_errors_supported=yes
15131 else
15132         _pkg_short_errors_supported=no
15133 fi
15134         if test $_pkg_short_errors_supported = yes; then
15135                 Xext_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext"`
15136         else
15137                 Xext_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"`
15138         fi
15139         # Put the nasty error message in config.log where it belongs
15140         echo "$Xext_PKG_ERRORS" >&5
15141
15142         as_fn_error "Package requirements (xext) were not met:
15143
15144 $Xext_PKG_ERRORS
15145
15146 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15147 installed software in a non-standard prefix.
15148
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.
15152 " "$LINENO" 5
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.
15159
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.
15163
15164 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15165 See \`config.log' for more details." "$LINENO" 5; }
15166 else
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; }
15171         :
15172 fi
15173         conky_CFLAGS="$conky_CFLAGS $Xext_CFLAGS"
15174         conky_LIBS="$conky_LIBS $Xext_LIBS"
15175       else
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
15180 else
15181   ac_check_lib_save_LIBS=$LIBS
15182 LIBS="-lXext  $LIBS"
15183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h.  */
15185
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.  */
15189 #ifdef __cplusplus
15190 extern "C"
15191 #endif
15192 char XdbeQueryExtension ();
15193 int
15194 main ()
15195 {
15196 return XdbeQueryExtension ();
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 if ac_fn_c_try_link "$LINENO"; then :
15202   ac_cv_lib_Xext_XdbeQueryExtension=yes
15203 else
15204   ac_cv_lib_Xext_XdbeQueryExtension=no
15205 fi
15206 rm -f core conftest.err conftest.$ac_objext \
15207     conftest$ac_exeext conftest.$ac_ext
15208 LIBS=$ac_check_lib_save_LIBS
15209 fi
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"
15214 else
15215   as_fn_error "Could not find XdbeQueryExtension in -lXext" "$LINENO" 5
15216 fi
15217
15218       fi
15219
15220 $as_echo "#define HAVE_XDBE 1" >>confdefs.h
15221
15222     fi
15223 fi
15224
15225
15226
15227 # Check whether --enable-xdamage was given.
15228 if test "${enable_xdamage+set}" = set; then :
15229   enableval=$enable_xdamage; want_xdamage="$enableval"
15230 else
15231   want_xdamage=yes
15232 fi
15233
15234
15235 if test "x$want_xdamage" = "xyes"; then
15236     if test "x$want_x11" != "xyes"; then
15237             want_xdamage=no
15238     else
15239       if $PKG_CONFIG --exists xdamage; then
15240
15241 pkg_failed=no
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDamage" >&5
15243 $as_echo_n "checking for XDamage... " >&6; }
15244
15245 if test -n "$PKG_CONFIG"; then
15246     if test -n "$XDamage_CFLAGS"; then
15247         pkg_cv_XDamage_CFLAGS="$XDamage_CFLAGS"
15248     else
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
15252   ac_status=$?
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`
15256 else
15257   pkg_failed=yes
15258 fi
15259     fi
15260 else
15261         pkg_failed=untried
15262 fi
15263 if test -n "$PKG_CONFIG"; then
15264     if test -n "$XDamage_LIBS"; then
15265         pkg_cv_XDamage_LIBS="$XDamage_LIBS"
15266     else
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
15270   ac_status=$?
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`
15274 else
15275   pkg_failed=yes
15276 fi
15277     fi
15278 else
15279         pkg_failed=untried
15280 fi
15281
15282
15283
15284 if test $pkg_failed = yes; then
15285
15286 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15287         _pkg_short_errors_supported=yes
15288 else
15289         _pkg_short_errors_supported=no
15290 fi
15291         if test $_pkg_short_errors_supported = yes; then
15292                 XDamage_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdamage"`
15293         else
15294                 XDamage_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdamage"`
15295         fi
15296         # Put the nasty error message in config.log where it belongs
15297         echo "$XDamage_PKG_ERRORS" >&5
15298
15299         as_fn_error "Package requirements (xdamage) were not met:
15300
15301 $XDamage_PKG_ERRORS
15302
15303 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15304 installed software in a non-standard prefix.
15305
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.
15309 " "$LINENO" 5
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.
15316
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.
15320
15321 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15322 See \`config.log' for more details." "$LINENO" 5; }
15323 else
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; }
15328         :
15329 fi
15330         conky_CFLAGS="$conky_CFLAGS $XDamage_CFLAGS"
15331         conky_LIBS="$conky_LIBS $XDamage_LIBS"
15332       else
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
15337 else
15338   ac_check_lib_save_LIBS=$LIBS
15339 LIBS="-lXdamage  $LIBS"
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h.  */
15342
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.  */
15346 #ifdef __cplusplus
15347 extern "C"
15348 #endif
15349 char XDamageQueryExtension ();
15350 int
15351 main ()
15352 {
15353 return XDamageQueryExtension ();
15354   ;
15355   return 0;
15356 }
15357 _ACEOF
15358 if ac_fn_c_try_link "$LINENO"; then :
15359   ac_cv_lib_Xdamage_XDamageQueryExtension=yes
15360 else
15361   ac_cv_lib_Xdamage_XDamageQueryExtension=no
15362 fi
15363 rm -f core conftest.err conftest.$ac_objext \
15364     conftest$ac_exeext conftest.$ac_ext
15365 LIBS=$ac_check_lib_save_LIBS
15366 fi
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"
15371 else
15372   as_fn_error "Could not find XDamageQueryExtension in -lXdamage" "$LINENO" 5
15373 fi
15374
15375       fi
15376
15377 $as_echo "#define HAVE_XDAMAGE 1" >>confdefs.h
15378
15379     fi
15380 fi
15381
15382
15383
15384 # Check whether --enable-xft was given.
15385 if test "${enable_xft+set}" = set; then :
15386   enableval=$enable_xft; want_xft="$enableval"
15387 else
15388   want_xft=yes
15389 fi
15390
15391
15392 if test x$want_xft = "xyes"; then
15393     if test "x$want_x11" != "xyes"; then
15394             want_xft=no
15395     else
15396
15397 pkg_failed=no
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft" >&5
15399 $as_echo_n "checking for Xft... " >&6; }
15400
15401 if test -n "$PKG_CONFIG"; then
15402     if test -n "$Xft_CFLAGS"; then
15403         pkg_cv_Xft_CFLAGS="$Xft_CFLAGS"
15404     else
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
15408   ac_status=$?
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`
15412 else
15413   pkg_failed=yes
15414 fi
15415     fi
15416 else
15417         pkg_failed=untried
15418 fi
15419 if test -n "$PKG_CONFIG"; then
15420     if test -n "$Xft_LIBS"; then
15421         pkg_cv_Xft_LIBS="$Xft_LIBS"
15422     else
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
15426   ac_status=$?
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`
15430 else
15431   pkg_failed=yes
15432 fi
15433     fi
15434 else
15435         pkg_failed=untried
15436 fi
15437
15438
15439
15440 if test $pkg_failed = yes; then
15441
15442 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15443         _pkg_short_errors_supported=yes
15444 else
15445         _pkg_short_errors_supported=no
15446 fi
15447         if test $_pkg_short_errors_supported = yes; then
15448                 Xft_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xft"`
15449         else
15450                 Xft_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft"`
15451         fi
15452         # Put the nasty error message in config.log where it belongs
15453         echo "$Xft_PKG_ERRORS" >&5
15454
15455         as_fn_error "Package requirements (xft) were not met:
15456
15457 $Xft_PKG_ERRORS
15458
15459 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15460 installed software in a non-standard prefix.
15461
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.
15465 " "$LINENO" 5
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.
15472
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.
15476
15477 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15478 See \`config.log' for more details." "$LINENO" 5; }
15479 else
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; }
15484         :
15485 fi
15486       conky_CFLAGS="$conky_CFLAGS $Xft_CFLAGS"
15487       conky_LIBS="$conky_LIBS $Xft_LIBS"
15488
15489 $as_echo "#define XFT 1" >>confdefs.h
15490
15491     fi
15492 fi
15493
15494
15495 # Check whether --enable-nvidia was given.
15496 if test "${enable_nvidia+set}" = set; then :
15497   enableval=$enable_nvidia; want_nvidia="$enableval"
15498 else
15499   want_nvidia=no
15500 fi
15501
15502 if test x$want_nvidia = xyes; then
15503     if test "x$want_x11" != "xyes"; then
15504                 # do nada
15505                 want_nvidia=no
15506         else
15507                 for ac_header in NVCtrl/NVCtrl.h
15508 do :
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
15513 _ACEOF
15514
15515 else
15516   as_fn_error "NVCtrl/NVCtrl.h header not found" "$LINENO" 5
15517 fi
15518
15519 done
15520
15521                 conky_LIBS="$conky_LIBS -lXNVCtrl"
15522
15523 $as_echo "#define NVIDIA 1" >>confdefs.h
15524
15525         fi
15526 fi
15527  if test x$want_nvidia = xyes; then
15528   BUILD_NVIDIA_TRUE=
15529   BUILD_NVIDIA_FALSE='#'
15530 else
15531   BUILD_NVIDIA_TRUE='#'
15532   BUILD_NVIDIA_FALSE=
15533 fi
15534
15535
15536
15537 if test x$WANT_GLIB = xyes; then
15538
15539 pkg_failed=no
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib2" >&5
15541 $as_echo_n "checking for GLib2... " >&6; }
15542
15543 if test -n "$PKG_CONFIG"; then
15544     if test -n "$GLib2_CFLAGS"; then
15545         pkg_cv_GLib2_CFLAGS="$GLib2_CFLAGS"
15546     else
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
15550   ac_status=$?
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`
15554 else
15555   pkg_failed=yes
15556 fi
15557     fi
15558 else
15559         pkg_failed=untried
15560 fi
15561 if test -n "$PKG_CONFIG"; then
15562     if test -n "$GLib2_LIBS"; then
15563         pkg_cv_GLib2_LIBS="$GLib2_LIBS"
15564     else
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
15568   ac_status=$?
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`
15572 else
15573   pkg_failed=yes
15574 fi
15575     fi
15576 else
15577         pkg_failed=untried
15578 fi
15579
15580
15581
15582 if test $pkg_failed = yes; then
15583
15584 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15585         _pkg_short_errors_supported=yes
15586 else
15587         _pkg_short_errors_supported=no
15588 fi
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"`
15591         else
15592                 GLib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
15593         fi
15594         # Put the nasty error message in config.log where it belongs
15595         echo "$GLib2_PKG_ERRORS" >&5
15596
15597         as_fn_error "Package requirements (glib-2.0) were not met:
15598
15599 $GLib2_PKG_ERRORS
15600
15601 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15602 installed software in a non-standard prefix.
15603
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.
15607 " "$LINENO" 5
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.
15614
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.
15618
15619 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15620 See \`config.log' for more details." "$LINENO" 5; }
15621 else
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; }
15626         :
15627 fi
15628         conky_CFLAGS="$conky_CFLAGS $GLib2_CFLAGS"
15629         conky_LIBS="$conky_LIBS $GLib2_LIBS"
15630 fi
15631
15632
15633 if test x$want_curl = xyes; then
15634
15635 pkg_failed=no
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
15637 $as_echo_n "checking for libcurl... " >&6; }
15638
15639 if test -n "$PKG_CONFIG"; then
15640     if test -n "$libcurl_CFLAGS"; then
15641         pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
15642     else
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
15646   ac_status=$?
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`
15650 else
15651   pkg_failed=yes
15652 fi
15653     fi
15654 else
15655         pkg_failed=untried
15656 fi
15657 if test -n "$PKG_CONFIG"; then
15658     if test -n "$libcurl_LIBS"; then
15659         pkg_cv_libcurl_LIBS="$libcurl_LIBS"
15660     else
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
15664   ac_status=$?
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`
15668 else
15669   pkg_failed=yes
15670 fi
15671     fi
15672 else
15673         pkg_failed=untried
15674 fi
15675
15676
15677
15678 if test $pkg_failed = yes; then
15679
15680 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15681         _pkg_short_errors_supported=yes
15682 else
15683         _pkg_short_errors_supported=no
15684 fi
15685         if test $_pkg_short_errors_supported = yes; then
15686                 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
15687         else
15688                 libcurl_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
15689         fi
15690         # Put the nasty error message in config.log where it belongs
15691         echo "$libcurl_PKG_ERRORS" >&5
15692
15693         as_fn_error "Package requirements (libcurl) were not met:
15694
15695 $libcurl_PKG_ERRORS
15696
15697 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15698 installed software in a non-standard prefix.
15699
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.
15703 " "$LINENO" 5
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.
15710
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.
15714
15715 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15716 See \`config.log' for more details." "$LINENO" 5; }
15717 else
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; }
15722         :
15723 fi
15724         conky_CFLAGS="$conky_CFLAGS $libcurl_CFLAGS"
15725         conky_LIBS="$conky_LIBS $libcurl_LIBS"
15726
15727 $as_echo "#define HAVE_CURL 1" >>confdefs.h
15728
15729 fi
15730  if test x$want_curl = xyes; then
15731   BUILD_CURL_TRUE=
15732   BUILD_CURL_FALSE='#'
15733 else
15734   BUILD_CURL_TRUE='#'
15735   BUILD_CURL_FALSE=
15736 fi
15737
15738
15739
15740 if test x$want_libxml2 = xyes; then
15741
15742 pkg_failed=no
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
15744 $as_echo_n "checking for libxml2... " >&6; }
15745
15746 if test -n "$PKG_CONFIG"; then
15747     if test -n "$libxml2_CFLAGS"; then
15748         pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
15749     else
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
15753   ac_status=$?
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`
15757 else
15758   pkg_failed=yes
15759 fi
15760     fi
15761 else
15762         pkg_failed=untried
15763 fi
15764 if test -n "$PKG_CONFIG"; then
15765     if test -n "$libxml2_LIBS"; then
15766         pkg_cv_libxml2_LIBS="$libxml2_LIBS"
15767     else
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
15771   ac_status=$?
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`
15775 else
15776   pkg_failed=yes
15777 fi
15778     fi
15779 else
15780         pkg_failed=untried
15781 fi
15782
15783
15784
15785 if test $pkg_failed = yes; then
15786
15787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15788         _pkg_short_errors_supported=yes
15789 else
15790         _pkg_short_errors_supported=no
15791 fi
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"`
15794         else
15795                 libxml2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
15796         fi
15797         # Put the nasty error message in config.log where it belongs
15798         echo "$libxml2_PKG_ERRORS" >&5
15799
15800         as_fn_error "Package requirements (libxml-2.0) were not met:
15801
15802 $libxml2_PKG_ERRORS
15803
15804 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15805 installed software in a non-standard prefix.
15806
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.
15810 " "$LINENO" 5
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.
15817
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.
15821
15822 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15823 See \`config.log' for more details." "$LINENO" 5; }
15824 else
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; }
15829         :
15830 fi
15831         conky_CFLAGS="$conky_CFLAGS $libxml2_CFLAGS"
15832         conky_LIBS="$conky_LIBS $libxml2_LIBS"
15833 fi
15834
15835
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
15841 else
15842   ac_check_lib_save_LIBS=$LIBS
15843 LIBS="-lkvm  $LIBS"
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h.  */
15846
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.  */
15850 #ifdef __cplusplus
15851 extern "C"
15852 #endif
15853 char kvm_open ();
15854 int
15855 main ()
15856 {
15857 return kvm_open ();
15858   ;
15859   return 0;
15860 }
15861 _ACEOF
15862 if ac_fn_c_try_link "$LINENO"; then :
15863   ac_cv_lib_kvm_kvm_open=yes
15864 else
15865   ac_cv_lib_kvm_kvm_open=no
15866 fi
15867 rm -f core conftest.err conftest.$ac_objext \
15868     conftest$ac_exeext conftest.$ac_ext
15869 LIBS=$ac_check_lib_save_LIBS
15870 fi
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"
15875 else
15876   as_fn_error "Could not find kvm_open in -lkvm." "$LINENO" 5
15877
15878 fi
15879
15880 fi
15881
15882
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
15888 else
15889   ac_check_lib_save_LIBS=$LIBS
15890 LIBS="-ldevstat  $LIBS"
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h.  */
15893
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.  */
15897 #ifdef __cplusplus
15898 extern "C"
15899 #endif
15900 char devstat_getversion ();
15901 int
15902 main ()
15903 {
15904 return devstat_getversion ();
15905   ;
15906   return 0;
15907 }
15908 _ACEOF
15909 if ac_fn_c_try_link "$LINENO"; then :
15910   ac_cv_lib_devstat_devstat_getversion=yes
15911 else
15912   ac_cv_lib_devstat_devstat_getversion=no
15913 fi
15914 rm -f core conftest.err conftest.$ac_objext \
15915     conftest$ac_exeext conftest.$ac_ext
15916 LIBS=$ac_check_lib_save_LIBS
15917 fi
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"
15922 else
15923   as_fn_error "Cound not find devstat_getversion in -ldevstat." "$LINENO" 5
15924
15925 fi
15926
15927 fi
15928
15929
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
15935 else
15936   ac_check_lib_save_LIBS=$LIBS
15937 LIBS="-lossaudio  $LIBS"
15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h.  */
15940
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.  */
15944 #ifdef __cplusplus
15945 extern "C"
15946 #endif
15947 char _oss_ioctl ();
15948 int
15949 main ()
15950 {
15951 return _oss_ioctl ();
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 if ac_fn_c_try_link "$LINENO"; then :
15957   ac_cv_lib_ossaudio__oss_ioctl=yes
15958 else
15959   ac_cv_lib_ossaudio__oss_ioctl=no
15960 fi
15961 rm -f core conftest.err conftest.$ac_objext \
15962     conftest$ac_exeext conftest.$ac_ext
15963 LIBS=$ac_check_lib_save_LIBS
15964 fi
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"
15969 else
15970   as_fn_error "Could not find oss_ioctl in -lossaudio." "$LINENO" 5
15971
15972 fi
15973
15974 fi
15975
15976 # Check whether --enable-alsa was given.
15977 if test "${enable_alsa+set}" = set; then :
15978   enableval=$enable_alsa; want_alsa="$enableval"
15979 else
15980   want_alsa=yes
15981 fi
15982
15983
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 :
15987
15988 else
15989   want_alsa=no
15990 fi
15991
15992
15993 fi
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
15999 else
16000   ac_check_lib_save_LIBS=$LIBS
16001 LIBS="-lasound  $LIBS"
16002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003 /* end confdefs.h.  */
16004
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.  */
16008 #ifdef __cplusplus
16009 extern "C"
16010 #endif
16011 char snd_pcm_open ();
16012 int
16013 main ()
16014 {
16015 return snd_pcm_open ();
16016   ;
16017   return 0;
16018 }
16019 _ACEOF
16020 if ac_fn_c_try_link "$LINENO"; then :
16021   ac_cv_lib_asound_snd_pcm_open=yes
16022 else
16023   ac_cv_lib_asound_snd_pcm_open=no
16024 fi
16025 rm -f core conftest.err conftest.$ac_objext \
16026     conftest$ac_exeext conftest.$ac_ext
16027 LIBS=$ac_check_lib_save_LIBS
16028 fi
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"
16033 else
16034   want_alsa=no
16035 fi
16036
16037 fi
16038
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
16041 do :
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
16048 _ACEOF
16049
16050 fi
16051
16052 done
16053
16054 for ac_header in sys/mount.h
16055 do :
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>
16058       #endif
16059
16060 "
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
16064 _ACEOF
16065
16066 fi
16067
16068 done
16069
16070 # check if we have inotify support
16071 # DML #AC_CHECK_HEADERS([sys/inotify.h])
16072
16073
16074
16075 $as_echo "#define DEFAULTNETDEV \"eth0\"" >>confdefs.h
16076
16077
16078 $as_echo "#define CONFIG_FILE \"\$HOME/.conkyrc\"" >>confdefs.h
16079
16080
16081 $as_echo "#define MAX_SPECIALS_DEFAULT 512" >>confdefs.h
16082
16083
16084 $as_echo "#define MAX_USER_TEXT_DEFAULT 16384" >>confdefs.h
16085
16086
16087 $as_echo "#define DEFAULT_TEXT_BUFFER_SIZE 256" >>confdefs.h
16088
16089
16090 $as_echo "#define MAX_NET_INTERFACES 16" >>confdefs.h
16091
16092
16093
16094 for ac_func in calloc malloc free popen sysinfo getloadavg memrchr strndup gethostbyname_r
16095 do :
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
16102 _ACEOF
16103
16104 fi
16105 done
16106
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
16111 else
16112   ac_func_search_save_LIBS=$LIBS
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h.  */
16115
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.  */
16119 #ifdef __cplusplus
16120 extern "C"
16121 #endif
16122 char clock_gettime ();
16123 int
16124 main ()
16125 {
16126 return clock_gettime ();
16127   ;
16128   return 0;
16129 }
16130 _ACEOF
16131 for ac_lib in '' rt; do
16132   if test -z "$ac_lib"; then
16133     ac_res="none required"
16134   else
16135     ac_res=-l$ac_lib
16136     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16137   fi
16138   if ac_fn_c_try_link "$LINENO"; then :
16139   ac_cv_search_clock_gettime=$ac_res
16140 fi
16141 rm -f core conftest.err conftest.$ac_objext \
16142     conftest$ac_exeext
16143   if test "${ac_cv_search_clock_gettime+set}" = set; then :
16144   break
16145 fi
16146 done
16147 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16148
16149 else
16150   ac_cv_search_clock_gettime=no
16151 fi
16152 rm conftest.$ac_ext
16153 LIBS=$ac_func_search_save_LIBS
16154 fi
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"
16161
16162 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16163
16164 else
16165   for ac_func in gettimeofday
16166 do :
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
16171 _ACEOF
16172
16173 else
16174   as_fn_error "gettimeofday() not available!" "$LINENO" 5
16175 fi
16176 done
16177
16178 fi
16179
16180
16181
16182 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/statfs.h>
16183 "
16184 if test "x$ac_cv_member_struct_statfs_f_fstypename" = x""yes; then :
16185
16186 $as_echo "#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1" >>confdefs.h
16187
16188 fi
16189
16190
16191
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 :
16194
16195 else
16196   as_fn_error "zlib is missing; please install the headers first" "$LINENO" 5
16197 fi
16198
16199
16200
16201
16202
16203
16204
16205
16206 for ac_prog in db2x_xsltproc
16207 do
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
16214 else
16215   if test -n "$db2x_xsltproc_cmd"; then
16216   ac_cv_prog_db2x_xsltproc_cmd="$db2x_xsltproc_cmd" # Let the user override the test.
16217 else
16218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16219 for as_dir in $PATH
16220 do
16221   IFS=$as_save_IFS
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
16227     break 2
16228   fi
16229 done
16230   done
16231 IFS=$as_save_IFS
16232
16233 fi
16234 fi
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; }
16239 else
16240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16241 $as_echo "no" >&6; }
16242 fi
16243
16244
16245   test -n "$db2x_xsltproc_cmd" && break
16246 done
16247
16248 for ac_prog in db2x_manxml
16249 do
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
16256 else
16257   if test -n "$db2x_manxml_cmd"; then
16258   ac_cv_prog_db2x_manxml_cmd="$db2x_manxml_cmd" # Let the user override the test.
16259 else
16260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16261 for as_dir in $PATH
16262 do
16263   IFS=$as_save_IFS
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
16269     break 2
16270   fi
16271 done
16272   done
16273 IFS=$as_save_IFS
16274
16275 fi
16276 fi
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; }
16281 else
16282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16283 $as_echo "no" >&6; }
16284 fi
16285
16286
16287   test -n "$db2x_manxml_cmd" && break
16288 done
16289
16290 for ac_prog in xsltproc
16291 do
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
16298 else
16299   if test -n "$xsltproc_cmd"; then
16300   ac_cv_prog_xsltproc_cmd="$xsltproc_cmd" # Let the user override the test.
16301 else
16302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16303 for as_dir in $PATH
16304 do
16305   IFS=$as_save_IFS
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
16311     break 2
16312   fi
16313 done
16314   done
16315 IFS=$as_save_IFS
16316
16317 fi
16318 fi
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; }
16323 else
16324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16325 $as_echo "no" >&6; }
16326 fi
16327
16328
16329   test -n "$xsltproc_cmd" && break
16330 done
16331
16332 if test x$db2x_xsltproc_cmd = "x" -o x$xsltproc_cmd = "x"; then
16333    if false; then
16334   HAVE_DOCSTUFF_TRUE=
16335   HAVE_DOCSTUFF_FALSE='#'
16336 else
16337   HAVE_DOCSTUFF_TRUE='#'
16338   HAVE_DOCSTUFF_FALSE=
16339 fi
16340
16341 else
16342    if true; then
16343   HAVE_DOCSTUFF_TRUE=
16344   HAVE_DOCSTUFF_FALSE='#'
16345 else
16346   HAVE_DOCSTUFF_TRUE='#'
16347   HAVE_DOCSTUFF_FALSE=
16348 fi
16349
16350 fi
16351
16352
16353 if test x$WANT_KSTAT = xyes; then
16354   dah=no
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
16359 else
16360   ac_check_lib_save_LIBS=$LIBS
16361 LIBS="-lkstat  $LIBS"
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h.  */
16364
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.  */
16368 #ifdef __cplusplus
16369 extern "C"
16370 #endif
16371 char kstat_open ();
16372 int
16373 main ()
16374 {
16375 return kstat_open ();
16376   ;
16377   return 0;
16378 }
16379 _ACEOF
16380 if ac_fn_c_try_link "$LINENO"; then :
16381   ac_cv_lib_kstat_kstat_open=yes
16382 else
16383   ac_cv_lib_kstat_kstat_open=no
16384 fi
16385 rm -f core conftest.err conftest.$ac_objext \
16386     conftest$ac_exeext conftest.$ac_ext
16387 LIBS=$ac_check_lib_save_LIBS
16388 fi
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 :
16392   dah=yes
16393 fi
16394
16395
16396   if test x$dah = xyes; then
16397
16398 $as_echo "#define HAVE_KSTAT 1" >>confdefs.h
16399
16400     conky_LDFLAGS="$conky_LDFLAGS -lkstat"
16401   fi
16402 fi
16403
16404
16405
16406
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
16410 *GNU* | *BSD*)
16411   conky_LDFLAGS="$conky_LDFLAGS -Wl,-O1"
16412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16413 $as_echo "yes" >&6; }
16414   ;;
16415 *)
16416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16417 $as_echo "no" >&6; }
16418   ;;
16419 esac
16420
16421
16422
16423 conky_CFLAGS="$conky_CFLAGS -Wall -W"
16424
16425
16426 # Check whether --enable-debug was given.
16427 if test "${enable_debug+set}" = set; then :
16428   enableval=$enable_debug; want_debug="$enableval"
16429 else
16430   want_debug=no
16431 fi
16432
16433
16434 if test "x$want_debug" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
16435   conky_CFLAGS="$conky_CFLAGS -g3 -O0"
16436
16437 $as_echo "#define DEBUG 1" >>confdefs.h
16438
16439 fi
16440
16441
16442 # Check whether --enable-testing was given.
16443 if test "${enable_testing+set}" = set; then :
16444   enableval=$enable_testing; want_testing="$enableval"
16445 else
16446   want_testing=no
16447 fi
16448
16449
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"
16453
16454 $as_echo "#define TESTING /**/" >>confdefs.h
16455
16456   else
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"
16458
16459 $as_echo "#define TESTING /**/" >>confdefs.h
16460
16461   fi
16462 fi
16463
16464
16465 # Check whether --enable-profiling was given.
16466 if test "${enable_profiling+set}" = set; then :
16467   enableval=$enable_profiling; want_profiling="$enableval"
16468 else
16469   want_profiling=no
16470 fi
16471
16472
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"
16476   else
16477     conky_CFLAGS="$conky_CFLAGS -g3 -pg -fprofile-arcs -ftest-coverage"
16478   fi
16479
16480 $as_echo "#define PROFILING /**/" >>confdefs.h
16481
16482 fi
16483
16484
16485
16486
16487
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.
16494 #
16495 # config.status only pays attention to the cache file if you give it
16496 # the --recheck option to rerun configure.
16497 #
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.
16501
16502 _ACEOF
16503
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.
16509 (
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
16512     case $ac_val in #(
16513     *${as_nl}*)
16514       case $ac_var in #(
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;} ;;
16517       esac
16518       case $ac_var in #(
16519       _ | IFS | as_nl) ;; #(
16520       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16521       *) { eval $ac_var=; unset $ac_var;} ;;
16522       esac ;;
16523     esac
16524   done
16525
16526   (set) 2>&1 |
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 \.
16531       sed -n \
16532         "s/'/'\\\\''/g;
16533           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16534       ;; #(
16535     *)
16536       # `set' quotes correctly as required by POSIX, so do not add quotes.
16537       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16538       ;;
16539     esac |
16540     sort
16541 ) |
16542   sed '
16543      /^ac_cv_env_/b end
16544      t clear
16545      :clear
16546      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16547      t end
16548      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16549      :end' >>confcache
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
16556   else
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;}
16559   fi
16560 fi
16561 rm -f confcache
16562
16563 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16564 # Let make expand exec_prefix.
16565 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16566
16567 DEFS=-DHAVE_CONFIG_H
16568
16569 ac_libobjs=
16570 ac_ltlibobjs=
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'
16579 done
16580 LIBOBJS=$ac_libobjs
16581
16582 LTLIBOBJS=$ac_ltlibobjs
16583
16584
16585  if test -n "$EXEEXT"; then
16586   am__EXEEXT_TRUE=
16587   am__EXEEXT_FALSE='#'
16588 else
16589   am__EXEEXT_TRUE='#'
16590   am__EXEEXT_FALSE=
16591 fi
16592
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
16596 fi
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
16600 fi
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
16604 fi
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
16608 fi
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
16612 fi
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
16616 fi
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
16620 fi
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
16624 fi
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
16628 fi
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
16632 fi
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
16636 fi
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
16640 fi
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
16644 fi
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
16648 fi
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
16652 fi
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
16656 fi
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
16660 fi
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
16664 fi
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
16668 fi
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
16672 fi
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
16676 fi
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
16680 fi
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
16684 fi
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
16688 fi
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
16692 fi
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
16696 fi
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
16700 fi
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
16704 fi
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
16708 fi
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
16712 fi
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
16716 fi
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
16720 fi
16721
16722 : ${CONFIG_STATUS=./config.status}
16723 ac_write_fail=0
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;}
16728 as_write_fail=0
16729 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16730 #! $SHELL
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.
16735
16736 debug=false
16737 ac_cs_recheck=false
16738 ac_cs_silent=false
16739
16740 SHELL=\${CONFIG_SHELL-$SHELL}
16741 export SHELL
16742 _ASEOF
16743 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16744 ## -------------------- ##
16745 ## M4sh Initialization. ##
16746 ## -------------------- ##
16747
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 :
16751   emulate sh
16752   NULLCMD=:
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
16757 else
16758   case `(set -o) 2>/dev/null` in #(
16759   *posix*) :
16760     set -o posix ;; #(
16761   *) :
16762      ;;
16763 esac
16764 fi
16765
16766
16767 as_nl='
16768 '
16769 export as_nl
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'
16783 else
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'
16787   else
16788     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16789     as_echo_n_body='eval
16790       arg=$1;
16791       case $arg in #(
16792       *"$as_nl"*)
16793         expr "X$arg" : "X\\(.*\\)$as_nl";
16794         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16795       esac;
16796       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16797     '
16798     export as_echo_n_body
16799     as_echo_n='sh -c $as_echo_n_body as_echo'
16800   fi
16801   export as_echo_body
16802   as_echo='sh -c $as_echo_body as_echo'
16803 fi
16804
16805 # The user is always right.
16806 if test "${PATH_SEPARATOR+set}" != set; then
16807   PATH_SEPARATOR=:
16808   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16809     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16810       PATH_SEPARATOR=';'
16811   }
16812 fi
16813
16814
16815 # IFS
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.)
16820 IFS=" ""        $as_nl"
16821
16822 # Find who we are.  Look in the path if we contain no directory separator.
16823 case $0 in #((
16824   *[\\/]* ) as_myself=$0 ;;
16825   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16826 for as_dir in $PATH
16827 do
16828   IFS=$as_save_IFS
16829   test -z "$as_dir" && as_dir=.
16830     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16831   done
16832 IFS=$as_save_IFS
16833
16834      ;;
16835 esac
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
16839   as_myself=$0
16840 fi
16841 if test ! -f "$as_myself"; then
16842   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16843   exit 1
16844 fi
16845
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 || :
16853 done
16854 PS1='$ '
16855 PS2='> '
16856 PS4='+ '
16857
16858 # NLS nuisances.
16859 LC_ALL=C
16860 export LC_ALL
16861 LANGUAGE=C
16862 export LANGUAGE
16863
16864 # CDPATH.
16865 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16866
16867
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.
16873 as_fn_error ()
16874 {
16875   as_status=$?; test $as_status -eq 0 && as_status=1
16876   if test "$3"; then
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
16879   fi
16880   $as_echo "$as_me: error: $1" >&2
16881   as_fn_exit $as_status
16882 } # as_fn_error
16883
16884
16885 # as_fn_set_status STATUS
16886 # -----------------------
16887 # Set $? to STATUS, without forking.
16888 as_fn_set_status ()
16889 {
16890   return $1
16891 } # as_fn_set_status
16892
16893 # as_fn_exit STATUS
16894 # -----------------
16895 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16896 as_fn_exit ()
16897 {
16898   set +e
16899   as_fn_set_status $1
16900   exit $1
16901 } # as_fn_exit
16902
16903 # as_fn_unset VAR
16904 # ---------------
16905 # Portably unset VAR.
16906 as_fn_unset ()
16907 {
16908   { eval $1=; unset $1;}
16909 }
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
16916 # implementations.
16917 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16918   eval 'as_fn_append ()
16919   {
16920     eval $1+=\$2
16921   }'
16922 else
16923   as_fn_append ()
16924   {
16925     eval $1=\$$1\$2
16926   }
16927 fi # as_fn_append
16928
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 ()
16936   {
16937     as_val=$(( $* ))
16938   }'
16939 else
16940   as_fn_arith ()
16941   {
16942     as_val=`expr "$@" || test $? -eq 1`
16943   }
16944 fi # as_fn_arith
16945
16946
16947 if expr a : '\(a\)' >/dev/null 2>&1 &&
16948    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16949   as_expr=expr
16950 else
16951   as_expr=false
16952 fi
16953
16954 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16955   as_basename=basename
16956 else
16957   as_basename=false
16958 fi
16959
16960 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16961   as_dirname=dirname
16962 else
16963   as_dirname=false
16964 fi
16965
16966 as_me=`$as_basename -- "$0" ||
16967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16968          X"$0" : 'X\(//\)$' \| \
16969          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16970 $as_echo X/"$0" |
16971     sed '/^.*\/\([^/][^/]*\)\/*$/{
16972             s//\1/
16973             q
16974           }
16975           /^X\/\(\/\/\)$/{
16976             s//\1/
16977             q
16978           }
16979           /^X\/\(\/\).*/{
16980             s//\1/
16981             q
16982           }
16983           s/.*/./; q'`
16984
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
16991
16992 ECHO_C= ECHO_N= ECHO_T=
16993 case `echo -n x` in #(((((
16994 -n*)
16995   case `echo 'xy\c'` in
16996   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16997   xy)  ECHO_C='\c';;
16998   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16999        ECHO_T=' ';;
17000   esac;;
17001 *)
17002   ECHO_N='-n';;
17003 esac
17004
17005 rm -f conf$$ conf$$.exe conf$$.file
17006 if test -d conf$$.dir; then
17007   rm -f conf$$.dir/conf$$.file
17008 else
17009   rm -f conf$$.dir
17010   mkdir conf$$.dir 2>/dev/null
17011 fi
17012 if (echo >conf$$.file) 2>/dev/null; then
17013   if ln -s conf$$.file conf$$ 2>/dev/null; then
17014     as_ln_s='ln -s'
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 ||
17020       as_ln_s='cp -p'
17021   elif ln conf$$.file conf$$ 2>/dev/null; then
17022     as_ln_s=ln
17023   else
17024     as_ln_s='cp -p'
17025   fi
17026 else
17027   as_ln_s='cp -p'
17028 fi
17029 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17030 rmdir conf$$.dir 2>/dev/null
17031
17032
17033 # as_fn_mkdir_p
17034 # -------------
17035 # Create "$as_dir" as a directory, including parents if necessary.
17036 as_fn_mkdir_p ()
17037 {
17038
17039   case $as_dir in #(
17040   -*) as_dir=./$as_dir;;
17041   esac
17042   test -d "$as_dir" || eval $as_mkdir_p || {
17043     as_dirs=
17044     while :; do
17045       case $as_dir in #(
17046       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17047       *) as_qdir=$as_dir;;
17048       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17057             s//\1/
17058             q
17059           }
17060           /^X\(\/\/\)[^/].*/{
17061             s//\1/
17062             q
17063           }
17064           /^X\(\/\/\)$/{
17065             s//\1/
17066             q
17067           }
17068           /^X\(\/\).*/{
17069             s//\1/
17070             q
17071           }
17072           s/.*/./; q'`
17073       test -d "$as_dir" && break
17074     done
17075     test -z "$as_dirs" || eval "mkdir $as_dirs"
17076   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17077
17078
17079 } # as_fn_mkdir_p
17080 if mkdir -p . 2>/dev/null; then
17081   as_mkdir_p='mkdir -p "$as_dir"'
17082 else
17083   test -d ./-p && rmdir ./-p
17084   as_mkdir_p=false
17085 fi
17086
17087 if test -x / >/dev/null 2>&1; then
17088   as_test_x='test -x'
17089 else
17090   if ls -dL / >/dev/null 2>&1; then
17091     as_ls_L_option=L
17092   else
17093     as_ls_L_option=
17094   fi
17095   as_test_x='
17096     eval sh -c '\''
17097       if test -d "$1"; then
17098         test -d "$1/.";
17099       else
17100         case $1 in #(
17101         -*)set "./$1";;
17102         esac;
17103         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17104         ???[sx]*):;;*)false;;esac;fi
17105     '\'' sh
17106   '
17107 fi
17108 as_executable_p=$as_test_x
17109
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'"
17112
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'"
17115
17116
17117 exec 6>&1
17118 ## ----------------------------------- ##
17119 ## Main body of $CONFIG_STATUS script. ##
17120 ## ----------------------------------- ##
17121 _ASEOF
17122 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17123
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.
17128 ac_log="
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
17131
17132   CONFIG_FILES    = $CONFIG_FILES
17133   CONFIG_HEADERS  = $CONFIG_HEADERS
17134   CONFIG_LINKS    = $CONFIG_LINKS
17135   CONFIG_COMMANDS = $CONFIG_COMMANDS
17136   $ $0 $@
17137
17138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17139 "
17140
17141 _ACEOF
17142
17143 case $ac_config_files in *"
17144 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17145 esac
17146
17147 case $ac_config_headers in *"
17148 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17149 esac
17150
17151
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"
17157
17158 _ACEOF
17159
17160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17161 ac_cs_usage="\
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.
17165
17166 Usage: $0 [OPTION]... [TAG]...
17167
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
17179
17180 Configuration files:
17181 $config_files
17182
17183 Configuration headers:
17184 $config_headers
17185
17186 Configuration commands:
17187 $config_commands
17188
17189 Report bugs to <brenden1@users.sourceforge.net>."
17190
17191 _ACEOF
17192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17193 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17194 ac_cs_version="\\
17195 Conky config.status 2.0.2_pre1274
17196 configured by $0, generated by GNU Autoconf 2.65,
17197   with options \\"\$ac_cs_config\\"
17198
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."
17202
17203 ac_pwd='$ac_pwd'
17204 srcdir='$srcdir'
17205 INSTALL='$INSTALL'
17206 MKDIR_P='$MKDIR_P'
17207 AWK='$AWK'
17208 test -n "\$AWK" || AWK=awk
17209 _ACEOF
17210
17211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17212 # The default lists apply if the user does not specify any file.
17213 ac_need_defaults=:
17214 while test $# != 0
17215 do
17216   case $1 in
17217   --*=*)
17218     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17219     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17220     ac_shift=:
17221     ;;
17222   *)
17223     ac_option=$1
17224     ac_optarg=$2
17225     ac_shift=shift
17226     ;;
17227   esac
17228
17229   case $ac_option in
17230   # Handling of the options.
17231   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17232     ac_cs_recheck=: ;;
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 )
17238     debug=: ;;
17239   --file | --fil | --fi | --f )
17240     $ac_shift
17241     case $ac_optarg in
17242     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17243     esac
17244     as_fn_append CONFIG_FILES " '$ac_optarg'"
17245     ac_need_defaults=false;;
17246   --header | --heade | --head | --hea )
17247     $ac_shift
17248     case $ac_optarg in
17249     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17250     esac
17251     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17252     ac_need_defaults=false;;
17253   --he | --h)
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)
17261     ac_cs_silent=: ;;
17262
17263   # This is an error.
17264   -*) as_fn_error "unrecognized option: \`$1'
17265 Try \`$0 --help' for more information." ;;
17266
17267   *) as_fn_append ac_config_targets " $1"
17268      ac_need_defaults=false ;;
17269
17270   esac
17271   shift
17272 done
17273
17274 ac_configure_extra_args=
17275
17276 if $ac_cs_silent; then
17277   exec 6>/dev/null
17278   ac_configure_extra_args="$ac_configure_extra_args --silent"
17279 fi
17280
17281 _ACEOF
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
17285   shift
17286   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17287   CONFIG_SHELL='$SHELL'
17288   export CONFIG_SHELL
17289   exec "\$@"
17290 fi
17291
17292 _ACEOF
17293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17294 exec 5>>config.log
17295 {
17296   echo
17297   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17298 ## Running $as_me. ##
17299 _ASBOX
17300   $as_echo "$ac_log"
17301 } >&5
17302
17303 _ACEOF
17304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17305 #
17306 # INIT-COMMANDS
17307 #
17308 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17309
17310
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
17314
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"`'
17436
17437 LTCC='$LTCC'
17438 LTCFLAGS='$LTCFLAGS'
17439 compiler='$compiler_DEFAULT'
17440
17441 # Quote evaled strings.
17442 for var in SED \
17443 GREP \
17444 EGREP \
17445 FGREP \
17446 LD \
17447 NM \
17448 LN_S \
17449 lt_SP2NL \
17450 lt_NL2SP \
17451 reload_flag \
17452 OBJDUMP \
17453 deplibs_check_method \
17454 file_magic_cmd \
17455 AR \
17456 AR_FLAGS \
17457 STRIP \
17458 RANLIB \
17459 CC \
17460 CFLAGS \
17461 compiler \
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 \
17466 SHELL \
17467 ECHO \
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 \
17473 need_locks \
17474 DSYMUTIL \
17475 NMEDIT \
17476 LIPO \
17477 OTOOL \
17478 OTOOL64 \
17479 shrext_cmds \
17480 export_dynamic_flag_spec \
17481 whole_archive_flag_spec \
17482 compiler_needs_object \
17483 with_gnu_ld \
17484 allow_undefined_flag \
17485 no_undefined_flag \
17486 hardcode_libdir_flag_spec \
17487 hardcode_libdir_flag_spec_ld \
17488 hardcode_libdir_separator \
17489 fix_srcfile_path \
17490 exclude_expsyms \
17491 include_expsyms \
17492 file_list_spec \
17493 variables_saved_for_relink \
17494 libname_spec \
17495 library_names_spec \
17496 soname_spec \
17497 finish_eval \
17498 old_striplib \
17499 striplib; do
17500     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17501     *[\\\\\\\`\\"\\\$]*)
17502       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17503       ;;
17504     *)
17505       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17506       ;;
17507     esac
17508 done
17509
17510 # Double-quote double-evaled strings.
17511 for var in reload_cmds \
17512 old_postinstall_cmds \
17513 old_postuninstall_cmds \
17514 old_archive_cmds \
17515 extract_expsyms_cmds \
17516 old_archive_from_new_cmds \
17517 old_archive_from_expsyms_cmds \
17518 archive_cmds \
17519 archive_expsym_cmds \
17520 module_cmds \
17521 module_expsym_cmds \
17522 export_symbols_cmds \
17523 prelink_cmds \
17524 postinstall_cmds \
17525 postuninstall_cmds \
17526 finish_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\\"\\\`\\\\\\""
17532       ;;
17533     *)
17534       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17535       ;;
17536     esac
17537 done
17538
17539 # Fix-up fallback echo if it was mangled by the above quoting rules.
17540 case \$lt_ECHO in
17541 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17542   ;;
17543 esac
17544
17545 ac_aux_dir='$ac_aux_dir'
17546 xsi_shell='$xsi_shell'
17547 lt_shell_append='$lt_shell_append'
17548
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
17553 fi
17554
17555
17556     PACKAGE='$PACKAGE'
17557     VERSION='$VERSION'
17558     TIMESTAMP='$TIMESTAMP'
17559     RM='$RM'
17560     ofile='$ofile'
17561
17562
17563
17564
17565 _ACEOF
17566
17567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17568
17569 # Handling of arguments.
17570 for ac_config_target in $ac_config_targets
17571 do
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" ;;
17582
17583   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17584   esac
17585 done
17586
17587
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
17596 fi
17597
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'.
17604 $debug ||
17605 {
17606   tmp=
17607   trap 'exit_status=$?
17608   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17609 ' 0
17610   trap 'as_fn_exit 1' 1 2 13 15
17611 }
17612 # Create a (secure) tmp directory for tmp files.
17613
17614 {
17615   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17616   test -n "$tmp" && test -d "$tmp"
17617 }  ||
17618 {
17619   tmp=./conf$$-$RANDOM
17620   (umask 077 && mkdir "$tmp")
17621 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17622
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
17627
17628
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\'
17635 fi
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
17638   ac_cs_awk_cr='\r'
17639 else
17640   ac_cs_awk_cr=$ac_cr
17641 fi
17642
17643 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17644 _ACEOF
17645
17646
17647 {
17648   echo "cat >conf$$subs.awk <<_ACEOF" &&
17649   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17650   echo "_ACEOF"
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 '$'`
17654 ac_delim='%!_!# '
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
17658
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
17661     break
17662   elif $ac_last_try; then
17663     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17664   else
17665     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17666   fi
17667 done
17668 rm -f conf$$subs.sh
17669
17670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17671 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17672 _ACEOF
17673 sed -n '
17674 h
17675 s/^/S["/; s/!.*/"]=/
17676 p
17677 g
17678 s/^[^!]*!//
17679 :repl
17680 t repl
17681 s/'"$ac_delim"'$//
17682 t delim
17683 :nl
17684 h
17685 s/\(.\{148\}\)..*/\1/
17686 t more1
17687 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17688 p
17689 n
17690 b repl
17691 :more1
17692 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17693 p
17694 g
17695 s/.\{148\}//
17696 t nl
17697 :delim
17698 h
17699 s/\(.\{148\}\)..*/\1/
17700 t more2
17701 s/["\\]/\\&/g; s/^/"/; s/$/"/
17702 p
17703 b
17704 :more2
17705 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17706 p
17707 g
17708 s/.\{148\}//
17709 t delim
17710 ' <conf$$subs.awk | sed '
17711 /^[^""]/{
17712   N
17713   s/\n//
17714 }
17715 ' >>$CONFIG_STATUS || ac_write_fail=1
17716 rm -f conf$$subs.awk
17717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17718 _ACAWK
17719 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17720   for (key in S) S_is_set[key] = 1
17721   FS = "\a"
17722
17723 }
17724 {
17725   line = $ 0
17726   nfields = split(line, field, "@")
17727   substed = 0
17728   len = length(field[1])
17729   for (i = 2; i < nfields; i++) {
17730     key = field[i]
17731     keylen = length(key)
17732     if (S_is_set[key]) {
17733       value = S[key]
17734       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17735       len += length(value) + length(field[++i])
17736       substed = 1
17737     } else
17738       len += 1 + keylen
17739   }
17740
17741   print line
17742 }
17743
17744 _ACAWK
17745 _ACEOF
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"
17749 else
17750   cat
17751 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17752   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17753 _ACEOF
17754
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}:*/:/
17763 s/:*@srcdir@:*/:/
17764 s/^\([^=]*=[     ]*\):*/\1/
17765 s/:*$//
17766 s/^[^=]*=[       ]*$//
17767 }'
17768 fi
17769
17770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17771 fi # test -n "$CONFIG_FILES"
17772
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 ||
17778 BEGIN {
17779 _ACEOF
17780
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.
17784
17785 # Create a delimiter string that does not exist in confdefs.h, to ease
17786 # handling of long lines.
17787 ac_delim='%!_!# '
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
17791     break
17792   elif $ac_last_try; then
17793     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17794   else
17795     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17796   fi
17797 done
17798
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.
17802
17803 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17804 sed -n '
17805 s/.\{148\}/&'"$ac_delim"'/g
17806 t rset
17807 :rset
17808 s/^[     ]*#[    ]*define[       ][      ]*/ /
17809 t def
17810 d
17811 :def
17812 s/\\$//
17813 t bsnl
17814 s/["\\]/\\&/g
17815 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17816 D["\1"]=" \3"/p
17817 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17818 d
17819 :bsnl
17820 s/["\\]/\\&/g
17821 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17822 D["\1"]=" \3\\\\\\n"\\/p
17823 t cont
17824 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17825 t cont
17826 d
17827 :cont
17828 n
17829 s/.\{148\}/&'"$ac_delim"'/g
17830 t clear
17831 :clear
17832 s/\\$//
17833 t bsnlc
17834 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17835 d
17836 :bsnlc
17837 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17838 b cont
17839 ' <confdefs.h | sed '
17840 s/'"$ac_delim"'/"\\\
17841 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17842
17843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17844   for (key in D) D_is_set[key] = 1
17845   FS = "\a"
17846 }
17847 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17848   line = \$ 0
17849   split(line, arg, " ")
17850   if (arg[1] == "#") {
17851     defundef = arg[2]
17852     mac1 = arg[3]
17853   } else {
17854     defundef = substr(arg[1], 2)
17855     mac1 = arg[2]
17856   }
17857   split(mac1, mac2, "(") #)
17858   macro = mac2[1]
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]
17863     next
17864   } else {
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, "*/"
17870       next
17871     }
17872   }
17873 }
17874 { print }
17875 _ACAWK
17876 _ACEOF
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"
17880
17881
17882 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17883 shift
17884 for ac_tag
17885 do
17886   case $ac_tag in
17887   :[FHLC]) ac_mode=$ac_tag; continue;;
17888   esac
17889   case $ac_mode$ac_tag in
17890   :[FHL]*:*);;
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;;
17894   esac
17895   ac_save_IFS=$IFS
17896   IFS=:
17897   set x $ac_tag
17898   IFS=$ac_save_IFS
17899   shift
17900   ac_file=$1
17901   shift
17902
17903   case $ac_mode in
17904   :L) ac_source=$1;;
17905   :[FH])
17906     ac_file_inputs=
17907     for ac_f
17908     do
17909       case $ac_f 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 `:'.
17914          test -f "$ac_f" ||
17915            case $ac_f in
17916            [\\/$]*) false;;
17917            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17918            esac ||
17919            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17920       esac
17921       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17922       as_fn_append ac_file_inputs " '$ac_f'"
17923     done
17924
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'
17930         `' by configure.'
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;}
17935     fi
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;;
17942     esac
17943
17944     case $ac_tag in
17945     *:-:* | *:-) cat >"$tmp/stdin" \
17946       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17947     esac
17948     ;;
17949   esac
17950
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17958             s//\1/
17959             q
17960           }
17961           /^X\(\/\/\)[^/].*/{
17962             s//\1/
17963             q
17964           }
17965           /^X\(\/\/\)$/{
17966             s//\1/
17967             q
17968           }
17969           /^X\(\/\).*/{
17970             s//\1/
17971             q
17972           }
17973           s/.*/./; q'`
17974   as_dir="$ac_dir"; as_fn_mkdir_p
17975   ac_builddir=.
17976
17977 case "$ac_dir" in
17978 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17979 *)
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/ ;;
17986   esac ;;
17987 esac
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
17992
17993 case $srcdir in
17994   .)  # We are building in place.
17995     ac_srcdir=.
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 ;;
18006 esac
18007 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18008
18009
18010   case $ac_mode in
18011   :F)
18012   #
18013   # CONFIG_FILE
18014   #
18015
18016   case $INSTALL in
18017   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18018   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18019   esac
18020   ac_MKDIR_P=$MKDIR_P
18021   case $MKDIR_P in
18022   [\\/$]* | ?:[\\/]* ) ;;
18023   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18024   esac
18025 _ACEOF
18026
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=
18031 ac_sed_dataroot='
18032 /datarootdir/ {
18033   p
18034   q
18035 }
18036 /@datadir@/p
18037 /@docdir@/p
18038 /@infodir@/p
18039 /@localedir@/p
18040 /@mandir@/p'
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;}
18046 _ACEOF
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' ;;
18055 esac
18056 _ACEOF
18057
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
18063 $extrasub
18064 _ACEOF
18065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18066 :t
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
18081 "
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
18084
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;}
18092
18093   rm -f "$tmp/stdin"
18094   case $ac_file in
18095   -) cat "$tmp/out" && rm -f "$tmp/out";;
18096   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18097   esac \
18098   || as_fn_error "could not create $ac_file" "$LINENO" 5
18099  ;;
18100   :H)
18101   #
18102   # CONFIG_HEADER
18103   #
18104   if test x"$ac_file" != x-; then
18105     {
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;}
18113     else
18114       rm -f "$ac_file"
18115       mv "$tmp/config.h" "$ac_file" \
18116         || as_fn_error "could not create $ac_file" "$LINENO" 5
18117     fi
18118   else
18119     $as_echo "/* $configure_input  */" \
18120       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18121       || as_fn_error "could not create -" "$LINENO" 5
18122   fi
18123 # Compute "$ac_file"'s index in $config_headers.
18124 _am_arg="$ac_file"
18125 _am_stamp_count=1
18126 for _am_header in $config_headers :; do
18127   case $_am_header in
18128     $_am_arg | $_am_arg:* )
18129       break ;;
18130     * )
18131       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18132   esac
18133 done
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18141             s//\1/
18142             q
18143           }
18144           /^X\(\/\/\)[^/].*/{
18145             s//\1/
18146             q
18147           }
18148           /^X\(\/\/\)$/{
18149             s//\1/
18150             q
18151           }
18152           /^X\(\/\).*/{
18153             s//\1/
18154             q
18155           }
18156           s/.*/./; q'`/stamp-h$_am_stamp_count
18157  ;;
18158
18159   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18160 $as_echo "$as_me: executing $ac_file commands" >&6;}
18161  ;;
18162   esac
18163
18164
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 ;;
18173   esac
18174   shift
18175   for mf
18176   do
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 ||
18192 $as_echo X"$mf" |
18193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18194             s//\1/
18195             q
18196           }
18197           /^X\(\/\/\)[^/].*/{
18198             s//\1/
18199             q
18200           }
18201           /^X\(\/\/\)$/{
18202             s//\1/
18203             q
18204           }
18205           /^X\(\/\).*/{
18206             s//\1/
18207             q
18208           }
18209           s/.*/./; q'`
18210     else
18211       continue
18212     fi
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
18225     # expansion.
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18238             s//\1/
18239             q
18240           }
18241           /^X\(\/\/\)[^/].*/{
18242             s//\1/
18243             q
18244           }
18245           /^X\(\/\/\)$/{
18246             s//\1/
18247             q
18248           }
18249           /^X\(\/\).*/{
18250             s//\1/
18251             q
18252           }
18253           s/.*/./; q'`
18254       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18255       # echo "creating $dirpart/$file"
18256       echo '# dummy' > "$dirpart/$file"
18257     done
18258   done
18259 }
18260  ;;
18261     "libtool":C)
18262
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
18267     fi
18268
18269     cfgfile="${ofile}T"
18270     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18271     $RM "$cfgfile"
18272
18273     cat <<_LT_EOF >> "$cfgfile"
18274 #! $SHELL
18275
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.
18280 #
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
18284 #
18285 #   This file is part of GNU Libtool.
18286 #
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.
18291 #
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.
18296 #
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.
18301 #
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.
18307
18308
18309 # The names of the tagged configurations supported by this script.
18310 available_tags=""
18311
18312 # ### BEGIN LIBTOOL CONFIG
18313
18314 # A sed program that does not truncate output.
18315 SED=$lt_SED
18316
18317 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18318 Xsed="\$SED -e 1s/^X//"
18319
18320 # A grep program that handles long lines.
18321 GREP=$lt_GREP
18322
18323 # An ERE matcher.
18324 EGREP=$lt_EGREP
18325
18326 # A literal string matcher.
18327 FGREP=$lt_FGREP
18328
18329 # Which release of libtool.m4 was used?
18330 macro_version=$macro_version
18331 macro_revision=$macro_revision
18332
18333 # Whether or not to build shared libraries.
18334 build_libtool_libs=$enable_shared
18335
18336 # Whether or not to build static libraries.
18337 build_old_libs=$enable_static
18338
18339 # What type of objects to build.
18340 pic_mode=$pic_mode
18341
18342 # Whether or not to optimize for fast installation.
18343 fast_install=$enable_fast_install
18344
18345 # The host system.
18346 host_alias=$host_alias
18347 host=$host
18348 host_os=$host_os
18349
18350 # The build system.
18351 build_alias=$build_alias
18352 build=$build
18353 build_os=$build_os
18354
18355 # A BSD- or MS-compatible name lister.
18356 NM=$lt_NM
18357
18358 # Whether we need soft or hard links.
18359 LN_S=$lt_LN_S
18360
18361 # What is the maximum length of a command?
18362 max_cmd_len=$max_cmd_len
18363
18364 # Object file suffix (normally "o").
18365 objext=$ac_objext
18366
18367 # Executable file suffix (normally "").
18368 exeext=$exeext
18369
18370 # whether the shell understands "unset".
18371 lt_unset=$lt_unset
18372
18373 # turn spaces into newlines.
18374 SP2NL=$lt_lt_SP2NL
18375
18376 # turn newlines into spaces.
18377 NL2SP=$lt_lt_NL2SP
18378
18379 # How to create reloadable object files.
18380 reload_flag=$lt_reload_flag
18381 reload_cmds=$lt_reload_cmds
18382
18383 # An object symbol dumper.
18384 OBJDUMP=$lt_OBJDUMP
18385
18386 # Method to check whether dependent libraries are shared objects.
18387 deplibs_check_method=$lt_deplibs_check_method
18388
18389 # Command to use when deplibs_check_method == "file_magic".
18390 file_magic_cmd=$lt_file_magic_cmd
18391
18392 # The archiver.
18393 AR=$lt_AR
18394 AR_FLAGS=$lt_AR_FLAGS
18395
18396 # A symbol stripping program.
18397 STRIP=$lt_STRIP
18398
18399 # Commands used to install an old-style archive.
18400 RANLIB=$lt_RANLIB
18401 old_postinstall_cmds=$lt_old_postinstall_cmds
18402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18403
18404 # A C compiler.
18405 LTCC=$lt_CC
18406
18407 # LTCC compiler flags.
18408 LTCFLAGS=$lt_CFLAGS
18409
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
18412
18413 # Transform the output of nm in a proper C declaration.
18414 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18415
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
18418
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
18421
18422 # The name of the directory that contains temporary libtool files.
18423 objdir=$objdir
18424
18425 # Shell to use when invoking shell scripts.
18426 SHELL=$lt_SHELL
18427
18428 # An echo program that does not interpret backslashes.
18429 ECHO=$lt_ECHO
18430
18431 # Used to examine libraries when file_magic_cmd begins with "file".
18432 MAGIC_CMD=$MAGIC_CMD
18433
18434 # Must we lock files when doing compilation?
18435 need_locks=$lt_need_locks
18436
18437 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18438 DSYMUTIL=$lt_DSYMUTIL
18439
18440 # Tool to change global to local symbols on Mac OS X.
18441 NMEDIT=$lt_NMEDIT
18442
18443 # Tool to manipulate fat objects and archives on Mac OS X.
18444 LIPO=$lt_LIPO
18445
18446 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18447 OTOOL=$lt_OTOOL
18448
18449 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18450 OTOOL64=$lt_OTOOL64
18451
18452 # Old archive suffix (normally "a").
18453 libext=$libext
18454
18455 # Shared library suffix (normally ".so").
18456 shrext_cmds=$lt_shrext_cmds
18457
18458 # The commands to extract the exported symbol list from a shared archive.
18459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18460
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
18464
18465 # Do we need the "lib" prefix for modules?
18466 need_lib_prefix=$need_lib_prefix
18467
18468 # Do we need a version for libraries?
18469 need_version=$need_version
18470
18471 # Library versioning type.
18472 version_type=$version_type
18473
18474 # Shared library runtime path variable.
18475 runpath_var=$runpath_var
18476
18477 # Shared library path variable.
18478 shlibpath_var=$shlibpath_var
18479
18480 # Is shlibpath searched before the hard-coded library search path?
18481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18482
18483 # Format of library name prefix.
18484 libname_spec=$lt_libname_spec
18485
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
18489
18490 # The coded name of the library, if different from the real name.
18491 soname_spec=$lt_soname_spec
18492
18493 # Command to use after installation of a shared archive.
18494 postinstall_cmds=$lt_postinstall_cmds
18495
18496 # Command to use after uninstallation of a shared archive.
18497 postuninstall_cmds=$lt_postuninstall_cmds
18498
18499 # Commands used to finish a libtool library installation in a directory.
18500 finish_cmds=$lt_finish_cmds
18501
18502 # As "finish_cmds", except a single script fragment to be evaled but
18503 # not shown.
18504 finish_eval=$lt_finish_eval
18505
18506 # Whether we should hardcode library paths into libraries.
18507 hardcode_into_libs=$hardcode_into_libs
18508
18509 # Compile-time system search path for libraries.
18510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18511
18512 # Run-time system search path for libraries.
18513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18514
18515 # Whether dlopen is supported.
18516 dlopen_support=$enable_dlopen
18517
18518 # Whether dlopen of programs is supported.
18519 dlopen_self=$enable_dlopen_self
18520
18521 # Whether dlopen of statically linked programs is supported.
18522 dlopen_self_static=$enable_dlopen_self_static
18523
18524 # Commands to strip libraries.
18525 old_striplib=$lt_old_striplib
18526 striplib=$lt_striplib
18527
18528
18529 # The linker used to build libraries.
18530 LD=$lt_LD
18531
18532 # Commands used to build an old-style archive.
18533 old_archive_cmds=$lt_old_archive_cmds
18534
18535 # A language specific compiler.
18536 CC=$lt_compiler
18537
18538 # Is the compiler the GNU compiler?
18539 with_gcc=$GCC
18540
18541 # Compiler flag to turn off builtin functions.
18542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18543
18544 # How to pass a linker flag through the compiler.
18545 wl=$lt_lt_prog_compiler_wl
18546
18547 # Additional compiler flags for building library objects.
18548 pic_flag=$lt_lt_prog_compiler_pic
18549
18550 # Compiler flag to prevent dynamic linking.
18551 link_static_flag=$lt_lt_prog_compiler_static
18552
18553 # Does compiler simultaneously support -c and -o options?
18554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18555
18556 # Whether or not to add -lc for building shared libraries.
18557 build_libtool_need_lc=$archive_cmds_need_lc
18558
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
18561
18562 # Compiler flag to allow reflexive dlopens.
18563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18564
18565 # Compiler flag to generate shared objects directly from archives.
18566 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18567
18568 # Whether the compiler copes with passing no objects directly.
18569 compiler_needs_object=$lt_compiler_needs_object
18570
18571 # Create an old-style archive from a shared archive.
18572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18573
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
18576
18577 # Commands used to build a shared archive.
18578 archive_cmds=$lt_archive_cmds
18579 archive_expsym_cmds=$lt_archive_expsym_cmds
18580
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
18585
18586 # Whether we are building with GNU ld or not.
18587 with_gnu_ld=$lt_with_gnu_ld
18588
18589 # Flag that allows shared libraries with undefined symbols to be built.
18590 allow_undefined_flag=$lt_allow_undefined_flag
18591
18592 # Flag that enforces no undefined symbols.
18593 no_undefined_flag=$lt_no_undefined_flag
18594
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
18598
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
18602
18603 # Whether we need a single "-rpath" flag with a separated argument.
18604 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18605
18606 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18607 # DIR into the resulting binary.
18608 hardcode_direct=$hardcode_direct
18609
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
18615
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
18619
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
18623
18624 # Set to "yes" if building a shared library automatically hardcodes DIR
18625 # into the library and all subsequent libraries and executables linked
18626 # against it.
18627 hardcode_automatic=$hardcode_automatic
18628
18629 # Set to yes if linker adds runtime paths of dependent libraries
18630 # to runtime path list.
18631 inherit_rpath=$inherit_rpath
18632
18633 # Whether libtool must link a program against all its dependency libraries.
18634 link_all_deplibs=$link_all_deplibs
18635
18636 # Fix the shell variable \$srcfile for the compiler.
18637 fix_srcfile_path=$lt_fix_srcfile_path
18638
18639 # Set to "yes" if exported symbols are required.
18640 always_export_symbols=$always_export_symbols
18641
18642 # The commands to list exported symbols.
18643 export_symbols_cmds=$lt_export_symbols_cmds
18644
18645 # Symbols that should not be listed in the preloaded symbols.
18646 exclude_expsyms=$lt_exclude_expsyms
18647
18648 # Symbols that must always be exported.
18649 include_expsyms=$lt_include_expsyms
18650
18651 # Commands necessary for linking programs (against libraries) with templates.
18652 prelink_cmds=$lt_prelink_cmds
18653
18654 # Specify filename containing input files.
18655 file_list_spec=$lt_file_list_spec
18656
18657 # How to hardcode a shared library path into an executable.
18658 hardcode_action=$hardcode_action
18659
18660 # ### END LIBTOOL CONFIG
18661
18662 _LT_EOF
18663
18664   case $host_os in
18665   aix3*)
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
18671   COLLECT_NAMES=
18672   export COLLECT_NAMES
18673 fi
18674 _LT_EOF
18675     ;;
18676   esac
18677
18678
18679 ltmain="$ac_aux_dir/ltmain.sh"
18680
18681
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)
18688
18689   case $xsi_shell in
18690   yes)
18691     cat << \_LT_EOF >> "$cfgfile"
18692
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.
18696 func_dirname ()
18697 {
18698   case ${1} in
18699     */*) func_dirname_result="${1%/*}${2}" ;;
18700     *  ) func_dirname_result="${3}" ;;
18701   esac
18702 }
18703
18704 # func_basename file
18705 func_basename ()
18706 {
18707   func_basename_result="${1##*/}"
18708 }
18709
18710 # func_dirname_and_basename file append nondir_replacement
18711 # perform func_basename and func_dirname in a single function
18712 # call:
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 ()
18723 {
18724   case ${1} in
18725     */*) func_dirname_result="${1%/*}${2}" ;;
18726     *  ) func_dirname_result="${3}" ;;
18727   esac
18728   func_basename_result="${1##*/}"
18729 }
18730
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).
18736 func_stripname ()
18737 {
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}"}
18743 }
18744
18745 # func_opt_split
18746 func_opt_split ()
18747 {
18748   func_opt_split_opt=${1%%=*}
18749   func_opt_split_arg=${1#*=}
18750 }
18751
18752 # func_lo2o object
18753 func_lo2o ()
18754 {
18755   case ${1} in
18756     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18757     *)    func_lo2o_result=${1} ;;
18758   esac
18759 }
18760
18761 # func_xform libobj-or-source
18762 func_xform ()
18763 {
18764   func_xform_result=${1%.*}.lo
18765 }
18766
18767 # func_arith arithmetic-term...
18768 func_arith ()
18769 {
18770   func_arith_result=$(( $* ))
18771 }
18772
18773 # func_len string
18774 # STRING may not start with a hyphen.
18775 func_len ()
18776 {
18777   func_len_result=${#1}
18778 }
18779
18780 _LT_EOF
18781     ;;
18782   *) # Bourne compatible functions.
18783     cat << \_LT_EOF >> "$cfgfile"
18784
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.
18788 func_dirname ()
18789 {
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}"
18794   else
18795     func_dirname_result="$func_dirname_result${2}"
18796   fi
18797 }
18798
18799 # func_basename file
18800 func_basename ()
18801 {
18802   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18803 }
18804
18805
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
18812 func_stripname ()
18813 {
18814   case ${2} in
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}\$%%"`;;
18819   esac
18820 }
18821
18822 # sed scripts:
18823 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18824 my_sed_long_arg='1s/^-[^=]*=//'
18825
18826 # func_opt_split
18827 func_opt_split ()
18828 {
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"`
18831 }
18832
18833 # func_lo2o object
18834 func_lo2o ()
18835 {
18836   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18837 }
18838
18839 # func_xform libobj-or-source
18840 func_xform ()
18841 {
18842   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18843 }
18844
18845 # func_arith arithmetic-term...
18846 func_arith ()
18847 {
18848   func_arith_result=`expr "$@"`
18849 }
18850
18851 # func_len string
18852 # STRING may not start with a hyphen.
18853 func_len ()
18854 {
18855   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18856 }
18857
18858 _LT_EOF
18859 esac
18860
18861 case $lt_shell_append in
18862   yes)
18863     cat << \_LT_EOF >> "$cfgfile"
18864
18865 # func_append var value
18866 # Append VALUE to the end of shell variable VAR.
18867 func_append ()
18868 {
18869   eval "$1+=\$2"
18870 }
18871 _LT_EOF
18872     ;;
18873   *)
18874     cat << \_LT_EOF >> "$cfgfile"
18875
18876 # func_append var value
18877 # Append VALUE to the end of shell variable VAR.
18878 func_append ()
18879 {
18880   eval "$1=\$$1\$2"
18881 }
18882
18883 _LT_EOF
18884     ;;
18885   esac
18886
18887
18888   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18889     || (rm -f "$cfgfile"; exit 1)
18890
18891   mv -f "$cfgfile" "$ofile" ||
18892     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18893   chmod +x "$ofile"
18894
18895  ;;
18896
18897   esac
18898 done # for ac_tag
18899
18900
18901 as_fn_exit 0
18902 _ACEOF
18903 ac_clean_files=$ac_clean_files_save
18904
18905 test $ac_write_fail = 0 ||
18906   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18907
18908
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
18918   ac_cs_success=:
18919   ac_config_status_args=
18920   test "$silent" = yes &&
18921     ac_config_status_args="$ac_config_status_args --quiet"
18922   exec 5>/dev/null
18923   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18924   exec 5>>config.log
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 $?
18928 fi
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;}
18932 fi
18933
18934
18935 cat << EOF
18936
18937 $PACKAGE $VERSION configured successfully:
18938
18939  Installing into:   $prefix
18940  System config dir: $sysconfdir
18941  C compiler flags:  $conky_CFLAGS
18942  Libraries:         $conky_LIBS
18943  Linker flags:      $conky_LDFLAGS
18944
18945  * X11:
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
18951
18952  * Music detection:
18953   Audacious:        $want_audacious
18954   BMPx:             $want_bmpx
18955   MPD:              $want_mpd
18956   MOC:              $want_moc
18957   XMMS2:            $want_xmms2
18958
18959  * General:
18960   math:             $want_math
18961   hddtemp:          $want_hddtemp
18962   portmon:          $want_portmon
18963   RSS:              $want_rss
18964   Curl:             $want_curl
18965   Weather
18966     METAR:          $want_metar
18967     XOAP:           $want_xoap
18968   wireless:         $want_wlan
18969   IBM:              $want_ibm
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
18978
18979  * Lua ($want_lua) bindings:
18980   Cairo:            $want_lua_cairo
18981   Imlib2:           $want_lua_imlib2
18982
18983 EOF