e74a25d7197ead2409ccb1cd4cf5d9250aaea125
[monky] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Conky 1.8.0.
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='1.8.0'
705 PACKAGE_STRING='Conky 1.8.0'
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 1.8.0 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 1.8.0:";;
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 1.8.0
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 1.8.0, 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=1.8.0
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 ## CAVEAT EMPTOR:
7535 ## There is no encapsulation within the following macros, do not change
7536 ## the running order or otherwise move them around unless you know exactly
7537 ## what you are doing...
7538 if test -n "$compiler"; then
7539
7540 lt_prog_compiler_no_builtin_flag=
7541
7542 if test "$GCC" = yes; then
7543   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7544
7545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7546 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7547 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7548   $as_echo_n "(cached) " >&6
7549 else
7550   lt_cv_prog_compiler_rtti_exceptions=no
7551    ac_outfile=conftest.$ac_objext
7552    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7553    lt_compiler_flag="-fno-rtti -fno-exceptions"
7554    # Insert the option either (1) after the last *FLAGS variable, or
7555    # (2) before a word containing "conftest.", or (3) at the end.
7556    # Note that $ac_compile itself does not contain backslashes and begins
7557    # with a dollar sign (not a hyphen), so the echo should work correctly.
7558    # The option is referenced via a variable to avoid confusing sed.
7559    lt_compile=`echo "$ac_compile" | $SED \
7560    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7561    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7562    -e 's:$: $lt_compiler_flag:'`
7563    (eval echo "\"\$as_me:7563: $lt_compile\"" >&5)
7564    (eval "$lt_compile" 2>conftest.err)
7565    ac_status=$?
7566    cat conftest.err >&5
7567    echo "$as_me:7567: \$? = $ac_status" >&5
7568    if (exit $ac_status) && test -s "$ac_outfile"; then
7569      # The compiler can only warn and ignore the option if not recognized
7570      # So say no if there are warnings other than the usual output.
7571      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7572      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7573      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7574        lt_cv_prog_compiler_rtti_exceptions=yes
7575      fi
7576    fi
7577    $RM conftest*
7578
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7581 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7582
7583 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7584     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7585 else
7586     :
7587 fi
7588
7589 fi
7590
7591
7592
7593
7594
7595
7596   lt_prog_compiler_wl=
7597 lt_prog_compiler_pic=
7598 lt_prog_compiler_static=
7599
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7602
7603   if test "$GCC" = yes; then
7604     lt_prog_compiler_wl='-Wl,'
7605     lt_prog_compiler_static='-static'
7606
7607     case $host_os in
7608       aix*)
7609       # All AIX code is PIC.
7610       if test "$host_cpu" = ia64; then
7611         # AIX 5 now supports IA64 processor
7612         lt_prog_compiler_static='-Bstatic'
7613       fi
7614       ;;
7615
7616     amigaos*)
7617       case $host_cpu in
7618       powerpc)
7619             # see comment about AmigaOS4 .so support
7620             lt_prog_compiler_pic='-fPIC'
7621         ;;
7622       m68k)
7623             # FIXME: we need at least 68020 code to build shared libraries, but
7624             # adding the `-m68020' flag to GCC prevents building anything better,
7625             # like `-m68040'.
7626             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7627         ;;
7628       esac
7629       ;;
7630
7631     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7632       # PIC is the default for these OSes.
7633       ;;
7634
7635     mingw* | cygwin* | pw32* | os2* | cegcc*)
7636       # This hack is so that the source file can tell whether it is being
7637       # built for inclusion in a dll (and should export symbols for example).
7638       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7639       # (--disable-auto-import) libraries
7640       lt_prog_compiler_pic='-DDLL_EXPORT'
7641       ;;
7642
7643     darwin* | rhapsody*)
7644       # PIC is the default on this platform
7645       # Common symbols not allowed in MH_DYLIB files
7646       lt_prog_compiler_pic='-fno-common'
7647       ;;
7648
7649     hpux*)
7650       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7651       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7652       # sets the default TLS model and affects inlining.
7653       case $host_cpu in
7654       hppa*64*)
7655         # +Z the default
7656         ;;
7657       *)
7658         lt_prog_compiler_pic='-fPIC'
7659         ;;
7660       esac
7661       ;;
7662
7663     interix[3-9]*)
7664       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7665       # Instead, we relocate shared libraries at runtime.
7666       ;;
7667
7668     msdosdjgpp*)
7669       # Just because we use GCC doesn't mean we suddenly get shared libraries
7670       # on systems that don't support them.
7671       lt_prog_compiler_can_build_shared=no
7672       enable_shared=no
7673       ;;
7674
7675     *nto* | *qnx*)
7676       # QNX uses GNU C++, but need to define -shared option too, otherwise
7677       # it will coredump.
7678       lt_prog_compiler_pic='-fPIC -shared'
7679       ;;
7680
7681     sysv4*MP*)
7682       if test -d /usr/nec; then
7683         lt_prog_compiler_pic=-Kconform_pic
7684       fi
7685       ;;
7686
7687     *)
7688       lt_prog_compiler_pic='-fPIC'
7689       ;;
7690     esac
7691   else
7692     # PORTME Check for flag to pass linker flags through the system compiler.
7693     case $host_os in
7694     aix*)
7695       lt_prog_compiler_wl='-Wl,'
7696       if test "$host_cpu" = ia64; then
7697         # AIX 5 now supports IA64 processor
7698         lt_prog_compiler_static='-Bstatic'
7699       else
7700         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7701       fi
7702       ;;
7703
7704     mingw* | cygwin* | pw32* | os2* | cegcc*)
7705       # This hack is so that the source file can tell whether it is being
7706       # built for inclusion in a dll (and should export symbols for example).
7707       lt_prog_compiler_pic='-DDLL_EXPORT'
7708       ;;
7709
7710     hpux9* | hpux10* | hpux11*)
7711       lt_prog_compiler_wl='-Wl,'
7712       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7713       # not for PA HP-UX.
7714       case $host_cpu in
7715       hppa*64*|ia64*)
7716         # +Z the default
7717         ;;
7718       *)
7719         lt_prog_compiler_pic='+Z'
7720         ;;
7721       esac
7722       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7723       lt_prog_compiler_static='${wl}-a ${wl}archive'
7724       ;;
7725
7726     irix5* | irix6* | nonstopux*)
7727       lt_prog_compiler_wl='-Wl,'
7728       # PIC (with -KPIC) is the default.
7729       lt_prog_compiler_static='-non_shared'
7730       ;;
7731
7732     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7733       case $cc_basename in
7734       # old Intel for x86_64 which still supported -KPIC.
7735       ecc*)
7736         lt_prog_compiler_wl='-Wl,'
7737         lt_prog_compiler_pic='-KPIC'
7738         lt_prog_compiler_static='-static'
7739         ;;
7740       # icc used to be incompatible with GCC.
7741       # ICC 10 doesn't accept -KPIC any more.
7742       icc* | ifort*)
7743         lt_prog_compiler_wl='-Wl,'
7744         lt_prog_compiler_pic='-fPIC'
7745         lt_prog_compiler_static='-static'
7746         ;;
7747       # Lahey Fortran 8.1.
7748       lf95*)
7749         lt_prog_compiler_wl='-Wl,'
7750         lt_prog_compiler_pic='--shared'
7751         lt_prog_compiler_static='--static'
7752         ;;
7753       pgcc* | pgf77* | pgf90* | pgf95*)
7754         # Portland Group compilers (*not* the Pentium gcc compiler,
7755         # which looks to be a dead project)
7756         lt_prog_compiler_wl='-Wl,'
7757         lt_prog_compiler_pic='-fpic'
7758         lt_prog_compiler_static='-Bstatic'
7759         ;;
7760       ccc*)
7761         lt_prog_compiler_wl='-Wl,'
7762         # All Alpha code is PIC.
7763         lt_prog_compiler_static='-non_shared'
7764         ;;
7765       xl*)
7766         # IBM XL C 8.0/Fortran 10.1 on PPC
7767         lt_prog_compiler_wl='-Wl,'
7768         lt_prog_compiler_pic='-qpic'
7769         lt_prog_compiler_static='-qstaticlink'
7770         ;;
7771       *)
7772         case `$CC -V 2>&1 | sed 5q` in
7773         *Sun\ C*)
7774           # Sun C 5.9
7775           lt_prog_compiler_pic='-KPIC'
7776           lt_prog_compiler_static='-Bstatic'
7777           lt_prog_compiler_wl='-Wl,'
7778           ;;
7779         *Sun\ F*)
7780           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7781           lt_prog_compiler_pic='-KPIC'
7782           lt_prog_compiler_static='-Bstatic'
7783           lt_prog_compiler_wl=''
7784           ;;
7785         esac
7786         ;;
7787       esac
7788       ;;
7789
7790     newsos6)
7791       lt_prog_compiler_pic='-KPIC'
7792       lt_prog_compiler_static='-Bstatic'
7793       ;;
7794
7795     *nto* | *qnx*)
7796       # QNX uses GNU C++, but need to define -shared option too, otherwise
7797       # it will coredump.
7798       lt_prog_compiler_pic='-fPIC -shared'
7799       ;;
7800
7801     osf3* | osf4* | osf5*)
7802       lt_prog_compiler_wl='-Wl,'
7803       # All OSF/1 code is PIC.
7804       lt_prog_compiler_static='-non_shared'
7805       ;;
7806
7807     rdos*)
7808       lt_prog_compiler_static='-non_shared'
7809       ;;
7810
7811     solaris*)
7812       lt_prog_compiler_pic='-KPIC'
7813       lt_prog_compiler_static='-Bstatic'
7814       case $cc_basename in
7815       f77* | f90* | f95*)
7816         lt_prog_compiler_wl='-Qoption ld ';;
7817       *)
7818         lt_prog_compiler_wl='-Wl,';;
7819       esac
7820       ;;
7821
7822     sunos4*)
7823       lt_prog_compiler_wl='-Qoption ld '
7824       lt_prog_compiler_pic='-PIC'
7825       lt_prog_compiler_static='-Bstatic'
7826       ;;
7827
7828     sysv4 | sysv4.2uw2* | sysv4.3*)
7829       lt_prog_compiler_wl='-Wl,'
7830       lt_prog_compiler_pic='-KPIC'
7831       lt_prog_compiler_static='-Bstatic'
7832       ;;
7833
7834     sysv4*MP*)
7835       if test -d /usr/nec ;then
7836         lt_prog_compiler_pic='-Kconform_pic'
7837         lt_prog_compiler_static='-Bstatic'
7838       fi
7839       ;;
7840
7841     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7842       lt_prog_compiler_wl='-Wl,'
7843       lt_prog_compiler_pic='-KPIC'
7844       lt_prog_compiler_static='-Bstatic'
7845       ;;
7846
7847     unicos*)
7848       lt_prog_compiler_wl='-Wl,'
7849       lt_prog_compiler_can_build_shared=no
7850       ;;
7851
7852     uts4*)
7853       lt_prog_compiler_pic='-pic'
7854       lt_prog_compiler_static='-Bstatic'
7855       ;;
7856
7857     *)
7858       lt_prog_compiler_can_build_shared=no
7859       ;;
7860     esac
7861   fi
7862
7863 case $host_os in
7864   # For platforms which do not support PIC, -DPIC is meaningless:
7865   *djgpp*)
7866     lt_prog_compiler_pic=
7867     ;;
7868   *)
7869     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7870     ;;
7871 esac
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7873 $as_echo "$lt_prog_compiler_pic" >&6; }
7874
7875
7876
7877
7878
7879
7880 #
7881 # Check to make sure the PIC flag actually works.
7882 #
7883 if test -n "$lt_prog_compiler_pic"; then
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7885 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7886 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889   lt_cv_prog_compiler_pic_works=no
7890    ac_outfile=conftest.$ac_objext
7891    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7892    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7893    # Insert the option either (1) after the last *FLAGS variable, or
7894    # (2) before a word containing "conftest.", or (3) at the end.
7895    # Note that $ac_compile itself does not contain backslashes and begins
7896    # with a dollar sign (not a hyphen), so the echo should work correctly.
7897    # The option is referenced via a variable to avoid confusing sed.
7898    lt_compile=`echo "$ac_compile" | $SED \
7899    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7900    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7901    -e 's:$: $lt_compiler_flag:'`
7902    (eval echo "\"\$as_me:7902: $lt_compile\"" >&5)
7903    (eval "$lt_compile" 2>conftest.err)
7904    ac_status=$?
7905    cat conftest.err >&5
7906    echo "$as_me:7906: \$? = $ac_status" >&5
7907    if (exit $ac_status) && test -s "$ac_outfile"; then
7908      # The compiler can only warn and ignore the option if not recognized
7909      # So say no if there are warnings other than the usual output.
7910      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7911      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7912      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7913        lt_cv_prog_compiler_pic_works=yes
7914      fi
7915    fi
7916    $RM conftest*
7917
7918 fi
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7920 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7921
7922 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7923     case $lt_prog_compiler_pic in
7924      "" | " "*) ;;
7925      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7926      esac
7927 else
7928     lt_prog_compiler_pic=
7929      lt_prog_compiler_can_build_shared=no
7930 fi
7931
7932 fi
7933
7934
7935
7936
7937
7938
7939 #
7940 # Check to make sure the static flag actually works.
7941 #
7942 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7944 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7945 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7946   $as_echo_n "(cached) " >&6
7947 else
7948   lt_cv_prog_compiler_static_works=no
7949    save_LDFLAGS="$LDFLAGS"
7950    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7951    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7952    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7953      # The linker can only warn and ignore the option if not recognized
7954      # So say no if there are warnings
7955      if test -s conftest.err; then
7956        # Append any errors to the config.log.
7957        cat conftest.err 1>&5
7958        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7959        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7960        if diff conftest.exp conftest.er2 >/dev/null; then
7961          lt_cv_prog_compiler_static_works=yes
7962        fi
7963      else
7964        lt_cv_prog_compiler_static_works=yes
7965      fi
7966    fi
7967    $RM -r conftest*
7968    LDFLAGS="$save_LDFLAGS"
7969
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7972 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7973
7974 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7975     :
7976 else
7977     lt_prog_compiler_static=
7978 fi
7979
7980
7981
7982
7983
7984
7985
7986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7987 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7988 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7989   $as_echo_n "(cached) " >&6
7990 else
7991   lt_cv_prog_compiler_c_o=no
7992    $RM -r conftest 2>/dev/null
7993    mkdir conftest
7994    cd conftest
7995    mkdir out
7996    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7997
7998    lt_compiler_flag="-o out/conftest2.$ac_objext"
7999    # Insert the option either (1) after the last *FLAGS variable, or
8000    # (2) before a word containing "conftest.", or (3) at the end.
8001    # Note that $ac_compile itself does not contain backslashes and begins
8002    # with a dollar sign (not a hyphen), so the echo should work correctly.
8003    lt_compile=`echo "$ac_compile" | $SED \
8004    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8005    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8006    -e 's:$: $lt_compiler_flag:'`
8007    (eval echo "\"\$as_me:8007: $lt_compile\"" >&5)
8008    (eval "$lt_compile" 2>out/conftest.err)
8009    ac_status=$?
8010    cat out/conftest.err >&5
8011    echo "$as_me:8011: \$? = $ac_status" >&5
8012    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8013    then
8014      # The compiler can only warn and ignore the option if not recognized
8015      # So say no if there are warnings
8016      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8017      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8018      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8019        lt_cv_prog_compiler_c_o=yes
8020      fi
8021    fi
8022    chmod u+w . 2>&5
8023    $RM conftest*
8024    # SGI C++ compiler will create directory out/ii_files/ for
8025    # template instantiation
8026    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8027    $RM out/* && rmdir out
8028    cd ..
8029    $RM -r conftest
8030    $RM conftest*
8031
8032 fi
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8034 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8035
8036
8037
8038
8039
8040
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   lt_cv_prog_compiler_c_o=no
8047    $RM -r conftest 2>/dev/null
8048    mkdir conftest
8049    cd conftest
8050    mkdir out
8051    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8052
8053    lt_compiler_flag="-o out/conftest2.$ac_objext"
8054    # Insert the option either (1) after the last *FLAGS variable, or
8055    # (2) before a word containing "conftest.", or (3) at the end.
8056    # Note that $ac_compile itself does not contain backslashes and begins
8057    # with a dollar sign (not a hyphen), so the echo should work correctly.
8058    lt_compile=`echo "$ac_compile" | $SED \
8059    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8060    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8061    -e 's:$: $lt_compiler_flag:'`
8062    (eval echo "\"\$as_me:8062: $lt_compile\"" >&5)
8063    (eval "$lt_compile" 2>out/conftest.err)
8064    ac_status=$?
8065    cat out/conftest.err >&5
8066    echo "$as_me:8066: \$? = $ac_status" >&5
8067    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8068    then
8069      # The compiler can only warn and ignore the option if not recognized
8070      # So say no if there are warnings
8071      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8072      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8073      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8074        lt_cv_prog_compiler_c_o=yes
8075      fi
8076    fi
8077    chmod u+w . 2>&5
8078    $RM conftest*
8079    # SGI C++ compiler will create directory out/ii_files/ for
8080    # template instantiation
8081    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8082    $RM out/* && rmdir out
8083    cd ..
8084    $RM -r conftest
8085    $RM conftest*
8086
8087 fi
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8090
8091
8092
8093
8094 hard_links="nottested"
8095 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8096   # do not overwrite the value of need_locks provided by the user
8097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8098 $as_echo_n "checking if we can lock with hard links... " >&6; }
8099   hard_links=yes
8100   $RM conftest*
8101   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8102   touch conftest.a
8103   ln conftest.a conftest.b 2>&5 || hard_links=no
8104   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8106 $as_echo "$hard_links" >&6; }
8107   if test "$hard_links" = no; then
8108     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8109 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8110     need_locks=warn
8111   fi
8112 else
8113   need_locks=no
8114 fi
8115
8116
8117
8118
8119
8120
8121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8122 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8123
8124   runpath_var=
8125   allow_undefined_flag=
8126   always_export_symbols=no
8127   archive_cmds=
8128   archive_expsym_cmds=
8129   compiler_needs_object=no
8130   enable_shared_with_static_runtimes=no
8131   export_dynamic_flag_spec=
8132   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8133   hardcode_automatic=no
8134   hardcode_direct=no
8135   hardcode_direct_absolute=no
8136   hardcode_libdir_flag_spec=
8137   hardcode_libdir_flag_spec_ld=
8138   hardcode_libdir_separator=
8139   hardcode_minus_L=no
8140   hardcode_shlibpath_var=unsupported
8141   inherit_rpath=no
8142   link_all_deplibs=unknown
8143   module_cmds=
8144   module_expsym_cmds=
8145   old_archive_from_new_cmds=
8146   old_archive_from_expsyms_cmds=
8147   thread_safe_flag_spec=
8148   whole_archive_flag_spec=
8149   # include_expsyms should be a list of space-separated symbols to be *always*
8150   # included in the symbol list
8151   include_expsyms=
8152   # exclude_expsyms can be an extended regexp of symbols to exclude
8153   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8154   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8155   # as well as any symbol that contains `d'.
8156   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8157   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8158   # platforms (ab)use it in PIC code, but their linkers get confused if
8159   # the symbol is explicitly referenced.  Since portable code cannot
8160   # rely on this symbol name, it's probably fine to never include it in
8161   # preloaded symbol tables.
8162   # Exclude shared library initialization/finalization symbols.
8163   extract_expsyms_cmds=
8164
8165   case $host_os in
8166   cygwin* | mingw* | pw32* | cegcc*)
8167     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8168     # When not using gcc, we currently assume that we are using
8169     # Microsoft Visual C++.
8170     if test "$GCC" != yes; then
8171       with_gnu_ld=no
8172     fi
8173     ;;
8174   interix*)
8175     # we just hope/assume this is gcc and not c89 (= MSVC++)
8176     with_gnu_ld=yes
8177     ;;
8178   openbsd*)
8179     with_gnu_ld=no
8180     ;;
8181   linux* | k*bsd*-gnu)
8182     link_all_deplibs=no
8183     ;;
8184   esac
8185
8186   ld_shlibs=yes
8187   if test "$with_gnu_ld" = yes; then
8188     # If archive_cmds runs LD, not CC, wlarc should be empty
8189     wlarc='${wl}'
8190
8191     # Set some defaults for GNU ld with shared library support. These
8192     # are reset later if shared libraries are not supported. Putting them
8193     # here allows them to be overridden if necessary.
8194     runpath_var=LD_RUN_PATH
8195     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8196     export_dynamic_flag_spec='${wl}--export-dynamic'
8197     # ancient GNU ld didn't support --whole-archive et. al.
8198     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8199       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8200     else
8201       whole_archive_flag_spec=
8202     fi
8203     supports_anon_versioning=no
8204     case `$LD -v 2>&1` in
8205       *GNU\ gold*) supports_anon_versioning=yes ;;
8206       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8207       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8208       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8209       *\ 2.11.*) ;; # other 2.11 versions
8210       *) supports_anon_versioning=yes ;;
8211     esac
8212
8213     # See if GNU ld supports shared libraries.
8214     case $host_os in
8215     aix[3-9]*)
8216       # On AIX/PPC, the GNU linker is very broken
8217       if test "$host_cpu" != ia64; then
8218         ld_shlibs=no
8219         cat <<_LT_EOF 1>&2
8220
8221 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8222 *** to be unable to reliably create shared libraries on AIX.
8223 *** Therefore, libtool is disabling shared libraries support.  If you
8224 *** really care for shared libraries, you may want to modify your PATH
8225 *** so that a non-GNU linker is found, and then restart.
8226
8227 _LT_EOF
8228       fi
8229       ;;
8230
8231     amigaos*)
8232       case $host_cpu in
8233       powerpc)
8234             # see comment about AmigaOS4 .so support
8235             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8236             archive_expsym_cmds=''
8237         ;;
8238       m68k)
8239             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8240             hardcode_libdir_flag_spec='-L$libdir'
8241             hardcode_minus_L=yes
8242         ;;
8243       esac
8244       ;;
8245
8246     beos*)
8247       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8248         allow_undefined_flag=unsupported
8249         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8250         # support --undefined.  This deserves some investigation.  FIXME
8251         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252       else
8253         ld_shlibs=no
8254       fi
8255       ;;
8256
8257     cygwin* | mingw* | pw32* | cegcc*)
8258       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8259       # as there is no search path for DLLs.
8260       hardcode_libdir_flag_spec='-L$libdir'
8261       allow_undefined_flag=unsupported
8262       always_export_symbols=no
8263       enable_shared_with_static_runtimes=yes
8264       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8265
8266       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8267         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8268         # If the export-symbols file already is a .def file (1st line
8269         # is EXPORTS), use it as is; otherwise, prepend...
8270         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8271           cp $export_symbols $output_objdir/$soname.def;
8272         else
8273           echo EXPORTS > $output_objdir/$soname.def;
8274           cat $export_symbols >> $output_objdir/$soname.def;
8275         fi~
8276         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8277       else
8278         ld_shlibs=no
8279       fi
8280       ;;
8281
8282     interix[3-9]*)
8283       hardcode_direct=no
8284       hardcode_shlibpath_var=no
8285       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8286       export_dynamic_flag_spec='${wl}-E'
8287       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8288       # Instead, shared libraries are loaded at an image base (0x10000000 by
8289       # default) and relocated if they conflict, which is a slow very memory
8290       # consuming and fragmenting process.  To avoid this, we pick a random,
8291       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8292       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8293       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8294       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8295       ;;
8296
8297     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8298       tmp_diet=no
8299       if test "$host_os" = linux-dietlibc; then
8300         case $cc_basename in
8301           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8302         esac
8303       fi
8304       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8305          && test "$tmp_diet" = no
8306       then
8307         tmp_addflag=
8308         tmp_sharedflag='-shared'
8309         case $cc_basename,$host_cpu in
8310         pgcc*)                          # Portland Group C compiler
8311           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8312           tmp_addflag=' $pic_flag'
8313           ;;
8314         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8315           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8316           tmp_addflag=' $pic_flag -Mnomain' ;;
8317         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8318           tmp_addflag=' -i_dynamic' ;;
8319         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8320           tmp_addflag=' -i_dynamic -nofor_main' ;;
8321         ifc* | ifort*)                  # Intel Fortran compiler
8322           tmp_addflag=' -nofor_main' ;;
8323         lf95*)                          # Lahey Fortran 8.1
8324           whole_archive_flag_spec=
8325           tmp_sharedflag='--shared' ;;
8326         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8327           tmp_sharedflag='-qmkshrobj'
8328           tmp_addflag= ;;
8329         esac
8330         case `$CC -V 2>&1 | sed 5q` in
8331         *Sun\ C*)                       # Sun C 5.9
8332           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8333           compiler_needs_object=yes
8334           tmp_sharedflag='-G' ;;
8335         *Sun\ F*)                       # Sun Fortran 8.3
8336           tmp_sharedflag='-G' ;;
8337         esac
8338         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8339
8340         if test "x$supports_anon_versioning" = xyes; then
8341           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8342             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8343             echo "local: *; };" >> $output_objdir/$libname.ver~
8344             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8345         fi
8346
8347         case $cc_basename in
8348         xlf*)
8349           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8350           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8351           hardcode_libdir_flag_spec=
8352           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8353           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8354           if test "x$supports_anon_versioning" = xyes; then
8355             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8356               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8357               echo "local: *; };" >> $output_objdir/$libname.ver~
8358               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8359           fi
8360           ;;
8361         esac
8362       else
8363         ld_shlibs=no
8364       fi
8365       ;;
8366
8367     netbsd* | netbsdelf*-gnu)
8368       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8369         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8370         wlarc=
8371       else
8372         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8373         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8374       fi
8375       ;;
8376
8377     solaris*)
8378       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8379         ld_shlibs=no
8380         cat <<_LT_EOF 1>&2
8381
8382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8383 *** create shared libraries on Solaris systems.  Therefore, libtool
8384 *** is disabling shared libraries support.  We urge you to upgrade GNU
8385 *** binutils to release 2.9.1 or newer.  Another option is to modify
8386 *** your PATH or compiler configuration so that the native linker is
8387 *** used, and then restart.
8388
8389 _LT_EOF
8390       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8391         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8392         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8393       else
8394         ld_shlibs=no
8395       fi
8396       ;;
8397
8398     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8399       case `$LD -v 2>&1` in
8400         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8401         ld_shlibs=no
8402         cat <<_LT_EOF 1>&2
8403
8404 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8405 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8406 *** is disabling shared libraries support.  We urge you to upgrade GNU
8407 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8408 *** your PATH or compiler configuration so that the native linker is
8409 *** used, and then restart.
8410
8411 _LT_EOF
8412         ;;
8413         *)
8414           # For security reasons, it is highly recommended that you always
8415           # use absolute paths for naming shared libraries, and exclude the
8416           # DT_RUNPATH tag from executables and libraries.  But doing so
8417           # requires that you compile everything twice, which is a pain.
8418           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8419             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8420             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8422           else
8423             ld_shlibs=no
8424           fi
8425         ;;
8426       esac
8427       ;;
8428
8429     sunos4*)
8430       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8431       wlarc=
8432       hardcode_direct=yes
8433       hardcode_shlibpath_var=no
8434       ;;
8435
8436     *)
8437       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8438         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8439         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8440       else
8441         ld_shlibs=no
8442       fi
8443       ;;
8444     esac
8445
8446     if test "$ld_shlibs" = no; then
8447       runpath_var=
8448       hardcode_libdir_flag_spec=
8449       export_dynamic_flag_spec=
8450       whole_archive_flag_spec=
8451     fi
8452   else
8453     # PORTME fill in a description of your system's linker (not GNU ld)
8454     case $host_os in
8455     aix3*)
8456       allow_undefined_flag=unsupported
8457       always_export_symbols=yes
8458       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8459       # Note: this linker hardcodes the directories in LIBPATH if there
8460       # are no directories specified by -L.
8461       hardcode_minus_L=yes
8462       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8463         # Neither direct hardcoding nor static linking is supported with a
8464         # broken collect2.
8465         hardcode_direct=unsupported
8466       fi
8467       ;;
8468
8469     aix[4-9]*)
8470       if test "$host_cpu" = ia64; then
8471         # On IA64, the linker does run time linking by default, so we don't
8472         # have to do anything special.
8473         aix_use_runtimelinking=no
8474         exp_sym_flag='-Bexport'
8475         no_entry_flag=""
8476       else
8477         # If we're using GNU nm, then we don't want the "-C" option.
8478         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8479         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8480           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8481         else
8482           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8483         fi
8484         aix_use_runtimelinking=no
8485
8486         # Test if we are trying to use run time linking or normal
8487         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8488         # need to do runtime linking.
8489         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8490           for ld_flag in $LDFLAGS; do
8491           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8492             aix_use_runtimelinking=yes
8493             break
8494           fi
8495           done
8496           ;;
8497         esac
8498
8499         exp_sym_flag='-bexport'
8500         no_entry_flag='-bnoentry'
8501       fi
8502
8503       # When large executables or shared objects are built, AIX ld can
8504       # have problems creating the table of contents.  If linking a library
8505       # or program results in "error TOC overflow" add -mminimal-toc to
8506       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8507       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8508
8509       archive_cmds=''
8510       hardcode_direct=yes
8511       hardcode_direct_absolute=yes
8512       hardcode_libdir_separator=':'
8513       link_all_deplibs=yes
8514       file_list_spec='${wl}-f,'
8515
8516       if test "$GCC" = yes; then
8517         case $host_os in aix4.[012]|aix4.[012].*)
8518         # We only want to do this on AIX 4.2 and lower, the check
8519         # below for broken collect2 doesn't work under 4.3+
8520           collect2name=`${CC} -print-prog-name=collect2`
8521           if test -f "$collect2name" &&
8522            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8523           then
8524           # We have reworked collect2
8525           :
8526           else
8527           # We have old collect2
8528           hardcode_direct=unsupported
8529           # It fails to find uninstalled libraries when the uninstalled
8530           # path is not listed in the libpath.  Setting hardcode_minus_L
8531           # to unsupported forces relinking
8532           hardcode_minus_L=yes
8533           hardcode_libdir_flag_spec='-L$libdir'
8534           hardcode_libdir_separator=
8535           fi
8536           ;;
8537         esac
8538         shared_flag='-shared'
8539         if test "$aix_use_runtimelinking" = yes; then
8540           shared_flag="$shared_flag "'${wl}-G'
8541         fi
8542         link_all_deplibs=no
8543       else
8544         # not using gcc
8545         if test "$host_cpu" = ia64; then
8546         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8547         # chokes on -Wl,-G. The following line is correct:
8548           shared_flag='-G'
8549         else
8550           if test "$aix_use_runtimelinking" = yes; then
8551             shared_flag='${wl}-G'
8552           else
8553             shared_flag='${wl}-bM:SRE'
8554           fi
8555         fi
8556       fi
8557
8558       export_dynamic_flag_spec='${wl}-bexpall'
8559       # It seems that -bexpall does not export symbols beginning with
8560       # underscore (_), so it is better to generate a list of symbols to export.
8561       always_export_symbols=yes
8562       if test "$aix_use_runtimelinking" = yes; then
8563         # Warning - without using the other runtime loading flags (-brtl),
8564         # -berok will link without error, but may produce a broken library.
8565         allow_undefined_flag='-berok'
8566         # Determine the default libpath from the value encoded in an
8567         # empty executable.
8568         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h.  */
8570
8571 int
8572 main ()
8573 {
8574
8575   ;
8576   return 0;
8577 }
8578 _ACEOF
8579 if ac_fn_c_try_link "$LINENO"; then :
8580
8581 lt_aix_libpath_sed='
8582     /Import File Strings/,/^$/ {
8583         /^0/ {
8584             s/^0  *\(.*\)$/\1/
8585             p
8586         }
8587     }'
8588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8589 # Check for a 64-bit object if we didn't find anything.
8590 if test -z "$aix_libpath"; then
8591   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8592 fi
8593 fi
8594 rm -f core conftest.err conftest.$ac_objext \
8595     conftest$ac_exeext conftest.$ac_ext
8596 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8597
8598         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8599         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8600       else
8601         if test "$host_cpu" = ia64; then
8602           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8603           allow_undefined_flag="-z nodefs"
8604           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8605         else
8606          # Determine the default libpath from the value encoded in an
8607          # empty executable.
8608          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h.  */
8610
8611 int
8612 main ()
8613 {
8614
8615   ;
8616   return 0;
8617 }
8618 _ACEOF
8619 if ac_fn_c_try_link "$LINENO"; then :
8620
8621 lt_aix_libpath_sed='
8622     /Import File Strings/,/^$/ {
8623         /^0/ {
8624             s/^0  *\(.*\)$/\1/
8625             p
8626         }
8627     }'
8628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8629 # Check for a 64-bit object if we didn't find anything.
8630 if test -z "$aix_libpath"; then
8631   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8632 fi
8633 fi
8634 rm -f core conftest.err conftest.$ac_objext \
8635     conftest$ac_exeext conftest.$ac_ext
8636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8637
8638          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8639           # Warning - without using the other run time loading flags,
8640           # -berok will link without error, but may produce a broken library.
8641           no_undefined_flag=' ${wl}-bernotok'
8642           allow_undefined_flag=' ${wl}-berok'
8643           # Exported symbols can be pulled into shared objects from archives
8644           whole_archive_flag_spec='$convenience'
8645           archive_cmds_need_lc=yes
8646           # This is similar to how AIX traditionally builds its shared libraries.
8647           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8648         fi
8649       fi
8650       ;;
8651
8652     amigaos*)
8653       case $host_cpu in
8654       powerpc)
8655             # see comment about AmigaOS4 .so support
8656             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657             archive_expsym_cmds=''
8658         ;;
8659       m68k)
8660             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8661             hardcode_libdir_flag_spec='-L$libdir'
8662             hardcode_minus_L=yes
8663         ;;
8664       esac
8665       ;;
8666
8667     bsdi[45]*)
8668       export_dynamic_flag_spec=-rdynamic
8669       ;;
8670
8671     cygwin* | mingw* | pw32* | cegcc*)
8672       # When not using gcc, we currently assume that we are using
8673       # Microsoft Visual C++.
8674       # hardcode_libdir_flag_spec is actually meaningless, as there is
8675       # no search path for DLLs.
8676       hardcode_libdir_flag_spec=' '
8677       allow_undefined_flag=unsupported
8678       # Tell ltmain to make .lib files, not .a files.
8679       libext=lib
8680       # Tell ltmain to make .dll files, not .so files.
8681       shrext_cmds=".dll"
8682       # FIXME: Setting linknames here is a bad hack.
8683       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8684       # The linker will automatically build a .lib file if we build a DLL.
8685       old_archive_from_new_cmds='true'
8686       # FIXME: Should let the user specify the lib program.
8687       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8688       fix_srcfile_path='`cygpath -w "$srcfile"`'
8689       enable_shared_with_static_runtimes=yes
8690       ;;
8691
8692     darwin* | rhapsody*)
8693
8694
8695   archive_cmds_need_lc=no
8696   hardcode_direct=no
8697   hardcode_automatic=yes
8698   hardcode_shlibpath_var=unsupported
8699   whole_archive_flag_spec=''
8700   link_all_deplibs=yes
8701   allow_undefined_flag="$_lt_dar_allow_undefined"
8702   case $cc_basename in
8703      ifort*) _lt_dar_can_shared=yes ;;
8704      *) _lt_dar_can_shared=$GCC ;;
8705   esac
8706   if test "$_lt_dar_can_shared" = "yes"; then
8707     output_verbose_link_cmd=echo
8708     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8709     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8710     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8711     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8712
8713   else
8714   ld_shlibs=no
8715   fi
8716
8717       ;;
8718
8719     dgux*)
8720       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8721       hardcode_libdir_flag_spec='-L$libdir'
8722       hardcode_shlibpath_var=no
8723       ;;
8724
8725     freebsd1*)
8726       ld_shlibs=no
8727       ;;
8728
8729     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8730     # support.  Future versions do this automatically, but an explicit c++rt0.o
8731     # does not break anything, and helps significantly (at the cost of a little
8732     # extra space).
8733     freebsd2.2*)
8734       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8735       hardcode_libdir_flag_spec='-R$libdir'
8736       hardcode_direct=yes
8737       hardcode_shlibpath_var=no
8738       ;;
8739
8740     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8741     freebsd2*)
8742       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8743       hardcode_direct=yes
8744       hardcode_minus_L=yes
8745       hardcode_shlibpath_var=no
8746       ;;
8747
8748     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8749     freebsd* | dragonfly*)
8750       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8751       hardcode_libdir_flag_spec='-R$libdir'
8752       hardcode_direct=yes
8753       hardcode_shlibpath_var=no
8754       ;;
8755
8756     hpux9*)
8757       if test "$GCC" = yes; then
8758         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8759       else
8760         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8761       fi
8762       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8763       hardcode_libdir_separator=:
8764       hardcode_direct=yes
8765
8766       # hardcode_minus_L: Not really in the search PATH,
8767       # but as the default location of the library.
8768       hardcode_minus_L=yes
8769       export_dynamic_flag_spec='${wl}-E'
8770       ;;
8771
8772     hpux10*)
8773       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8774         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8775       else
8776         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8777       fi
8778       if test "$with_gnu_ld" = no; then
8779         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8780         hardcode_libdir_flag_spec_ld='+b $libdir'
8781         hardcode_libdir_separator=:
8782         hardcode_direct=yes
8783         hardcode_direct_absolute=yes
8784         export_dynamic_flag_spec='${wl}-E'
8785         # hardcode_minus_L: Not really in the search PATH,
8786         # but as the default location of the library.
8787         hardcode_minus_L=yes
8788       fi
8789       ;;
8790
8791     hpux11*)
8792       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8793         case $host_cpu in
8794         hppa*64*)
8795           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8796           ;;
8797         ia64*)
8798           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8799           ;;
8800         *)
8801           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8802           ;;
8803         esac
8804       else
8805         case $host_cpu in
8806         hppa*64*)
8807           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8808           ;;
8809         ia64*)
8810           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8811           ;;
8812         *)
8813           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8814           ;;
8815         esac
8816       fi
8817       if test "$with_gnu_ld" = no; then
8818         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8819         hardcode_libdir_separator=:
8820
8821         case $host_cpu in
8822         hppa*64*|ia64*)
8823           hardcode_direct=no
8824           hardcode_shlibpath_var=no
8825           ;;
8826         *)
8827           hardcode_direct=yes
8828           hardcode_direct_absolute=yes
8829           export_dynamic_flag_spec='${wl}-E'
8830
8831           # hardcode_minus_L: Not really in the search PATH,
8832           # but as the default location of the library.
8833           hardcode_minus_L=yes
8834           ;;
8835         esac
8836       fi
8837       ;;
8838
8839     irix5* | irix6* | nonstopux*)
8840       if test "$GCC" = yes; then
8841         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8842         # Try to use the -exported_symbol ld option, if it does not
8843         # work, assume that -exports_file does not work either and
8844         # implicitly export all symbols.
8845         save_LDFLAGS="$LDFLAGS"
8846         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8847         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h.  */
8849 int foo(void) {}
8850 _ACEOF
8851 if ac_fn_c_try_link "$LINENO"; then :
8852   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8853
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext \
8856     conftest$ac_exeext conftest.$ac_ext
8857         LDFLAGS="$save_LDFLAGS"
8858       else
8859         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8860         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8861       fi
8862       archive_cmds_need_lc='no'
8863       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8864       hardcode_libdir_separator=:
8865       inherit_rpath=yes
8866       link_all_deplibs=yes
8867       ;;
8868
8869     netbsd* | netbsdelf*-gnu)
8870       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8871         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8872       else
8873         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8874       fi
8875       hardcode_libdir_flag_spec='-R$libdir'
8876       hardcode_direct=yes
8877       hardcode_shlibpath_var=no
8878       ;;
8879
8880     newsos6)
8881       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882       hardcode_direct=yes
8883       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8884       hardcode_libdir_separator=:
8885       hardcode_shlibpath_var=no
8886       ;;
8887
8888     *nto* | *qnx*)
8889       ;;
8890
8891     openbsd*)
8892       if test -f /usr/libexec/ld.so; then
8893         hardcode_direct=yes
8894         hardcode_shlibpath_var=no
8895         hardcode_direct_absolute=yes
8896         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8897           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8898           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8899           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8900           export_dynamic_flag_spec='${wl}-E'
8901         else
8902           case $host_os in
8903            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8904              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8905              hardcode_libdir_flag_spec='-R$libdir'
8906              ;;
8907            *)
8908              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8909              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8910              ;;
8911           esac
8912         fi
8913       else
8914         ld_shlibs=no
8915       fi
8916       ;;
8917
8918     os2*)
8919       hardcode_libdir_flag_spec='-L$libdir'
8920       hardcode_minus_L=yes
8921       allow_undefined_flag=unsupported
8922       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8923       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8924       ;;
8925
8926     osf3*)
8927       if test "$GCC" = yes; then
8928         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8929         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8930       else
8931         allow_undefined_flag=' -expect_unresolved \*'
8932         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8933       fi
8934       archive_cmds_need_lc='no'
8935       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8936       hardcode_libdir_separator=:
8937       ;;
8938
8939     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8940       if test "$GCC" = yes; then
8941         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8942         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8943         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8944       else
8945         allow_undefined_flag=' -expect_unresolved \*'
8946         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8947         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8948         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8949
8950         # Both c and cxx compiler support -rpath directly
8951         hardcode_libdir_flag_spec='-rpath $libdir'
8952       fi
8953       archive_cmds_need_lc='no'
8954       hardcode_libdir_separator=:
8955       ;;
8956
8957     solaris*)
8958       no_undefined_flag=' -z defs'
8959       if test "$GCC" = yes; then
8960         wlarc='${wl}'
8961         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8962         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8963           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8964       else
8965         case `$CC -V 2>&1` in
8966         *"Compilers 5.0"*)
8967           wlarc=''
8968           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8969           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8970           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8971           ;;
8972         *)
8973           wlarc='${wl}'
8974           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8975           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8976           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8977           ;;
8978         esac
8979       fi
8980       hardcode_libdir_flag_spec='-R$libdir'
8981       hardcode_shlibpath_var=no
8982       case $host_os in
8983       solaris2.[0-5] | solaris2.[0-5].*) ;;
8984       *)
8985         # The compiler driver will combine and reorder linker options,
8986         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8987         # but is careful enough not to reorder.
8988         # Supported since Solaris 2.6 (maybe 2.5.1?)
8989         if test "$GCC" = yes; then
8990           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8991         else
8992           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8993         fi
8994         ;;
8995       esac
8996       link_all_deplibs=yes
8997       ;;
8998
8999     sunos4*)
9000       if test "x$host_vendor" = xsequent; then
9001         # Use $CC to link under sequent, because it throws in some extra .o
9002         # files that make .init and .fini sections work.
9003         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9004       else
9005         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9006       fi
9007       hardcode_libdir_flag_spec='-L$libdir'
9008       hardcode_direct=yes
9009       hardcode_minus_L=yes
9010       hardcode_shlibpath_var=no
9011       ;;
9012
9013     sysv4)
9014       case $host_vendor in
9015         sni)
9016           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9017           hardcode_direct=yes # is this really true???
9018         ;;
9019         siemens)
9020           ## LD is ld it makes a PLAMLIB
9021           ## CC just makes a GrossModule.
9022           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9023           reload_cmds='$CC -r -o $output$reload_objs'
9024           hardcode_direct=no
9025         ;;
9026         motorola)
9027           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9029         ;;
9030       esac
9031       runpath_var='LD_RUN_PATH'
9032       hardcode_shlibpath_var=no
9033       ;;
9034
9035     sysv4.3*)
9036       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9037       hardcode_shlibpath_var=no
9038       export_dynamic_flag_spec='-Bexport'
9039       ;;
9040
9041     sysv4*MP*)
9042       if test -d /usr/nec; then
9043         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044         hardcode_shlibpath_var=no
9045         runpath_var=LD_RUN_PATH
9046         hardcode_runpath_var=yes
9047         ld_shlibs=yes
9048       fi
9049       ;;
9050
9051     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9052       no_undefined_flag='${wl}-z,text'
9053       archive_cmds_need_lc=no
9054       hardcode_shlibpath_var=no
9055       runpath_var='LD_RUN_PATH'
9056
9057       if test "$GCC" = yes; then
9058         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9059         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9060       else
9061         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9063       fi
9064       ;;
9065
9066     sysv5* | sco3.2v5* | sco5v6*)
9067       # Note: We can NOT use -z defs as we might desire, because we do not
9068       # link with -lc, and that would cause any symbols used from libc to
9069       # always be unresolved, which means just about no library would
9070       # ever link correctly.  If we're not using GNU ld we use -z text
9071       # though, which does catch some bad symbols but isn't as heavy-handed
9072       # as -z defs.
9073       no_undefined_flag='${wl}-z,text'
9074       allow_undefined_flag='${wl}-z,nodefs'
9075       archive_cmds_need_lc=no
9076       hardcode_shlibpath_var=no
9077       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9078       hardcode_libdir_separator=':'
9079       link_all_deplibs=yes
9080       export_dynamic_flag_spec='${wl}-Bexport'
9081       runpath_var='LD_RUN_PATH'
9082
9083       if test "$GCC" = yes; then
9084         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9085         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9086       else
9087         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9088         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9089       fi
9090       ;;
9091
9092     uts4*)
9093       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9094       hardcode_libdir_flag_spec='-L$libdir'
9095       hardcode_shlibpath_var=no
9096       ;;
9097
9098     *)
9099       ld_shlibs=no
9100       ;;
9101     esac
9102
9103     if test x$host_vendor = xsni; then
9104       case $host in
9105       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9106         export_dynamic_flag_spec='${wl}-Blargedynsym'
9107         ;;
9108       esac
9109     fi
9110   fi
9111
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9113 $as_echo "$ld_shlibs" >&6; }
9114 test "$ld_shlibs" = no && can_build_shared=no
9115
9116 with_gnu_ld=$with_gnu_ld
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132 #
9133 # Do we need to explicitly link libc?
9134 #
9135 case "x$archive_cmds_need_lc" in
9136 x|xyes)
9137   # Assume -lc should be added
9138   archive_cmds_need_lc=yes
9139
9140   if test "$enable_shared" = yes && test "$GCC" = yes; then
9141     case $archive_cmds in
9142     *'~'*)
9143       # FIXME: we may have to deal with multi-command sequences.
9144       ;;
9145     '$CC '*)
9146       # Test whether the compiler implicitly links with -lc since on some
9147       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9148       # to ld, don't add -lc before -lgcc.
9149       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9150 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9151       $RM conftest*
9152       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9153
9154       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9155   (eval $ac_compile) 2>&5
9156   ac_status=$?
9157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9158   test $ac_status = 0; } 2>conftest.err; then
9159         soname=conftest
9160         lib=conftest
9161         libobjs=conftest.$ac_objext
9162         deplibs=
9163         wl=$lt_prog_compiler_wl
9164         pic_flag=$lt_prog_compiler_pic
9165         compiler_flags=-v
9166         linker_flags=-v
9167         verstring=
9168         output_objdir=.
9169         libname=conftest
9170         lt_save_allow_undefined_flag=$allow_undefined_flag
9171         allow_undefined_flag=
9172         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9173   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9174   ac_status=$?
9175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9176   test $ac_status = 0; }
9177         then
9178           archive_cmds_need_lc=no
9179         else
9180           archive_cmds_need_lc=yes
9181         fi
9182         allow_undefined_flag=$lt_save_allow_undefined_flag
9183       else
9184         cat conftest.err 1>&5
9185       fi
9186       $RM conftest*
9187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9188 $as_echo "$archive_cmds_need_lc" >&6; }
9189       ;;
9190     esac
9191   fi
9192   ;;
9193 esac
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
9348
9349
9350
9351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9352 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9353
9354 if test "$GCC" = yes; then
9355   case $host_os in
9356     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9357     *) lt_awk_arg="/^libraries:/" ;;
9358   esac
9359   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9360   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9361     # if the path contains ";" then we assume it to be the separator
9362     # otherwise default to the standard path separator (i.e. ":") - it is
9363     # assumed that no part of a normal pathname contains ";" but that should
9364     # okay in the real world where ";" in dirpaths is itself problematic.
9365     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9366   else
9367     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9368   fi
9369   # Ok, now we have the path, separated by spaces, we can step through it
9370   # and add multilib dir if necessary.
9371   lt_tmp_lt_search_path_spec=
9372   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9373   for lt_sys_path in $lt_search_path_spec; do
9374     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9375       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9376     else
9377       test -d "$lt_sys_path" && \
9378         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9379     fi
9380   done
9381   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9382 BEGIN {RS=" "; FS="/|\n";} {
9383   lt_foo="";
9384   lt_count=0;
9385   for (lt_i = NF; lt_i > 0; lt_i--) {
9386     if ($lt_i != "" && $lt_i != ".") {
9387       if ($lt_i == "..") {
9388         lt_count++;
9389       } else {
9390         if (lt_count == 0) {
9391           lt_foo="/" $lt_i lt_foo;
9392         } else {
9393           lt_count--;
9394         }
9395       }
9396     }
9397   }
9398   if (lt_foo != "") { lt_freq[lt_foo]++; }
9399   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9400 }'`
9401   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9402 else
9403   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9404 fi
9405 library_names_spec=
9406 libname_spec='lib$name'
9407 soname_spec=
9408 shrext_cmds=".so"
9409 postinstall_cmds=
9410 postuninstall_cmds=
9411 finish_cmds=
9412 finish_eval=
9413 shlibpath_var=
9414 shlibpath_overrides_runpath=unknown
9415 version_type=none
9416 dynamic_linker="$host_os ld.so"
9417 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9418 need_lib_prefix=unknown
9419 hardcode_into_libs=no
9420
9421 # when you set need_version to no, make sure it does not cause -set_version
9422 # flags to be left without arguments
9423 need_version=unknown
9424
9425 case $host_os in
9426 aix3*)
9427   version_type=linux
9428   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9429   shlibpath_var=LIBPATH
9430
9431   # AIX 3 has no versioning support, so we append a major version to the name.
9432   soname_spec='${libname}${release}${shared_ext}$major'
9433   ;;
9434
9435 aix[4-9]*)
9436   version_type=linux
9437   need_lib_prefix=no
9438   need_version=no
9439   hardcode_into_libs=yes
9440   if test "$host_cpu" = ia64; then
9441     # AIX 5 supports IA64
9442     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9443     shlibpath_var=LD_LIBRARY_PATH
9444   else
9445     # With GCC up to 2.95.x, collect2 would create an import file
9446     # for dependence libraries.  The import file would start with
9447     # the line `#! .'.  This would cause the generated library to
9448     # depend on `.', always an invalid library.  This was fixed in
9449     # development snapshots of GCC prior to 3.0.
9450     case $host_os in
9451       aix4 | aix4.[01] | aix4.[01].*)
9452       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9453            echo ' yes '
9454            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9455         :
9456       else
9457         can_build_shared=no
9458       fi
9459       ;;
9460     esac
9461     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9462     # soname into executable. Probably we can add versioning support to
9463     # collect2, so additional links can be useful in future.
9464     if test "$aix_use_runtimelinking" = yes; then
9465       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9466       # instead of lib<name>.a to let people know that these are not
9467       # typical AIX shared libraries.
9468       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9469     else
9470       # We preserve .a as extension for shared libraries through AIX4.2
9471       # and later when we are not doing run time linking.
9472       library_names_spec='${libname}${release}.a $libname.a'
9473       soname_spec='${libname}${release}${shared_ext}$major'
9474     fi
9475     shlibpath_var=LIBPATH
9476   fi
9477   ;;
9478
9479 amigaos*)
9480   case $host_cpu in
9481   powerpc)
9482     # Since July 2007 AmigaOS4 officially supports .so libraries.
9483     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485     ;;
9486   m68k)
9487     library_names_spec='$libname.ixlibrary $libname.a'
9488     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9489     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9490     ;;
9491   esac
9492   ;;
9493
9494 beos*)
9495   library_names_spec='${libname}${shared_ext}'
9496   dynamic_linker="$host_os ld.so"
9497   shlibpath_var=LIBRARY_PATH
9498   ;;
9499
9500 bsdi[45]*)
9501   version_type=linux
9502   need_version=no
9503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504   soname_spec='${libname}${release}${shared_ext}$major'
9505   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9506   shlibpath_var=LD_LIBRARY_PATH
9507   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9508   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9509   # the default ld.so.conf also contains /usr/contrib/lib and
9510   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9511   # libtool to hard-code these into programs
9512   ;;
9513
9514 cygwin* | mingw* | pw32* | cegcc*)
9515   version_type=windows
9516   shrext_cmds=".dll"
9517   need_version=no
9518   need_lib_prefix=no
9519
9520   case $GCC,$host_os in
9521   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9522     library_names_spec='$libname.dll.a'
9523     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9524     postinstall_cmds='base_file=`basename \${file}`~
9525       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9526       dldir=$destdir/`dirname \$dlpath`~
9527       test -d \$dldir || mkdir -p \$dldir~
9528       $install_prog $dir/$dlname \$dldir/$dlname~
9529       chmod a+x \$dldir/$dlname~
9530       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9531         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9532       fi'
9533     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9534       dlpath=$dir/\$dldll~
9535        $RM \$dlpath'
9536     shlibpath_overrides_runpath=yes
9537
9538     case $host_os in
9539     cygwin*)
9540       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9541       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9542       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9543       ;;
9544     mingw* | cegcc*)
9545       # MinGW DLLs use traditional 'lib' prefix
9546       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9547       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9548       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9549         # It is most probably a Windows format PATH printed by
9550         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9551         # path with ; separators, and with drive letters. We can handle the
9552         # drive letters (cygwin fileutils understands them), so leave them,
9553         # especially as we might pass files found there to a mingw objdump,
9554         # which wouldn't understand a cygwinified path. Ahh.
9555         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9556       else
9557         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9558       fi
9559       ;;
9560     pw32*)
9561       # pw32 DLLs use 'pw' prefix rather than 'lib'
9562       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9563       ;;
9564     esac
9565     ;;
9566
9567   *)
9568     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9569     ;;
9570   esac
9571   dynamic_linker='Win32 ld.exe'
9572   # FIXME: first we should search . and the directory the executable is in
9573   shlibpath_var=PATH
9574   ;;
9575
9576 darwin* | rhapsody*)
9577   dynamic_linker="$host_os dyld"
9578   version_type=darwin
9579   need_lib_prefix=no
9580   need_version=no
9581   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9582   soname_spec='${libname}${release}${major}$shared_ext'
9583   shlibpath_overrides_runpath=yes
9584   shlibpath_var=DYLD_LIBRARY_PATH
9585   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9586
9587   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9588   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9589   ;;
9590
9591 dgux*)
9592   version_type=linux
9593   need_lib_prefix=no
9594   need_version=no
9595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9596   soname_spec='${libname}${release}${shared_ext}$major'
9597   shlibpath_var=LD_LIBRARY_PATH
9598   ;;
9599
9600 freebsd1*)
9601   dynamic_linker=no
9602   ;;
9603
9604 freebsd* | dragonfly*)
9605   # DragonFly does not have aout.  When/if they implement a new
9606   # versioning mechanism, adjust this.
9607   if test -x /usr/bin/objformat; then
9608     objformat=`/usr/bin/objformat`
9609   else
9610     case $host_os in
9611     freebsd[123]*) objformat=aout ;;
9612     *) objformat=elf ;;
9613     esac
9614   fi
9615   version_type=freebsd-$objformat
9616   case $version_type in
9617     freebsd-elf*)
9618       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9619       need_version=no
9620       need_lib_prefix=no
9621       ;;
9622     freebsd-*)
9623       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9624       need_version=yes
9625       ;;
9626   esac
9627   shlibpath_var=LD_LIBRARY_PATH
9628   case $host_os in
9629   freebsd2*)
9630     shlibpath_overrides_runpath=yes
9631     ;;
9632   freebsd3.[01]* | freebsdelf3.[01]*)
9633     shlibpath_overrides_runpath=yes
9634     hardcode_into_libs=yes
9635     ;;
9636   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9637   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9638     shlibpath_overrides_runpath=no
9639     hardcode_into_libs=yes
9640     ;;
9641   *) # from 4.6 on, and DragonFly
9642     shlibpath_overrides_runpath=yes
9643     hardcode_into_libs=yes
9644     ;;
9645   esac
9646   ;;
9647
9648 gnu*)
9649   version_type=linux
9650   need_lib_prefix=no
9651   need_version=no
9652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9653   soname_spec='${libname}${release}${shared_ext}$major'
9654   shlibpath_var=LD_LIBRARY_PATH
9655   hardcode_into_libs=yes
9656   ;;
9657
9658 hpux9* | hpux10* | hpux11*)
9659   # Give a soname corresponding to the major version so that dld.sl refuses to
9660   # link against other versions.
9661   version_type=sunos
9662   need_lib_prefix=no
9663   need_version=no
9664   case $host_cpu in
9665   ia64*)
9666     shrext_cmds='.so'
9667     hardcode_into_libs=yes
9668     dynamic_linker="$host_os dld.so"
9669     shlibpath_var=LD_LIBRARY_PATH
9670     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9672     soname_spec='${libname}${release}${shared_ext}$major'
9673     if test "X$HPUX_IA64_MODE" = X32; then
9674       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9675     else
9676       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9677     fi
9678     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9679     ;;
9680   hppa*64*)
9681     shrext_cmds='.sl'
9682     hardcode_into_libs=yes
9683     dynamic_linker="$host_os dld.sl"
9684     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9685     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9686     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687     soname_spec='${libname}${release}${shared_ext}$major'
9688     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9689     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9690     ;;
9691   *)
9692     shrext_cmds='.sl'
9693     dynamic_linker="$host_os dld.sl"
9694     shlibpath_var=SHLIB_PATH
9695     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697     soname_spec='${libname}${release}${shared_ext}$major'
9698     ;;
9699   esac
9700   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9701   postinstall_cmds='chmod 555 $lib'
9702   ;;
9703
9704 interix[3-9]*)
9705   version_type=linux
9706   need_lib_prefix=no
9707   need_version=no
9708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9709   soname_spec='${libname}${release}${shared_ext}$major'
9710   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9711   shlibpath_var=LD_LIBRARY_PATH
9712   shlibpath_overrides_runpath=no
9713   hardcode_into_libs=yes
9714   ;;
9715
9716 irix5* | irix6* | nonstopux*)
9717   case $host_os in
9718     nonstopux*) version_type=nonstopux ;;
9719     *)
9720         if test "$lt_cv_prog_gnu_ld" = yes; then
9721                 version_type=linux
9722         else
9723                 version_type=irix
9724         fi ;;
9725   esac
9726   need_lib_prefix=no
9727   need_version=no
9728   soname_spec='${libname}${release}${shared_ext}$major'
9729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9730   case $host_os in
9731   irix5* | nonstopux*)
9732     libsuff= shlibsuff=
9733     ;;
9734   *)
9735     case $LD in # libtool.m4 will add one of these switches to LD
9736     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9737       libsuff= shlibsuff= libmagic=32-bit;;
9738     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9739       libsuff=32 shlibsuff=N32 libmagic=N32;;
9740     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9741       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9742     *) libsuff= shlibsuff= libmagic=never-match;;
9743     esac
9744     ;;
9745   esac
9746   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9747   shlibpath_overrides_runpath=no
9748   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9749   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9750   hardcode_into_libs=yes
9751   ;;
9752
9753 # No shared lib support for Linux oldld, aout, or coff.
9754 linux*oldld* | linux*aout* | linux*coff*)
9755   dynamic_linker=no
9756   ;;
9757
9758 # This must be Linux ELF.
9759 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9760   version_type=linux
9761   need_lib_prefix=no
9762   need_version=no
9763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764   soname_spec='${libname}${release}${shared_ext}$major'
9765   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9766   shlibpath_var=LD_LIBRARY_PATH
9767   shlibpath_overrides_runpath=no
9768   # Some binutils ld are patched to set DT_RUNPATH
9769   save_LDFLAGS=$LDFLAGS
9770   save_libdir=$libdir
9771   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9772        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h.  */
9775
9776 int
9777 main ()
9778 {
9779
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 if ac_fn_c_try_link "$LINENO"; then :
9785   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9786   shlibpath_overrides_runpath=yes
9787 fi
9788 fi
9789 rm -f core conftest.err conftest.$ac_objext \
9790     conftest$ac_exeext conftest.$ac_ext
9791   LDFLAGS=$save_LDFLAGS
9792   libdir=$save_libdir
9793
9794   # This implies no fast_install, which is unacceptable.
9795   # Some rework will be needed to allow for fast_install
9796   # before this can be enabled.
9797   hardcode_into_libs=yes
9798
9799   # Append ld.so.conf contents to the search path
9800   if test -f /etc/ld.so.conf; then
9801     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9802     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9803   fi
9804
9805   # We used to test for /lib/ld.so.1 and disable shared libraries on
9806   # powerpc, because MkLinux only supported shared libraries with the
9807   # GNU dynamic linker.  Since this was broken with cross compilers,
9808   # most powerpc-linux boxes support dynamic linking these days and
9809   # people can always --disable-shared, the test was removed, and we
9810   # assume the GNU/Linux dynamic linker is in use.
9811   dynamic_linker='GNU/Linux ld.so'
9812   ;;
9813
9814 netbsdelf*-gnu)
9815   version_type=linux
9816   need_lib_prefix=no
9817   need_version=no
9818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9819   soname_spec='${libname}${release}${shared_ext}$major'
9820   shlibpath_var=LD_LIBRARY_PATH
9821   shlibpath_overrides_runpath=no
9822   hardcode_into_libs=yes
9823   dynamic_linker='NetBSD ld.elf_so'
9824   ;;
9825
9826 netbsd*)
9827   version_type=sunos
9828   need_lib_prefix=no
9829   need_version=no
9830   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9832     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9833     dynamic_linker='NetBSD (a.out) ld.so'
9834   else
9835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9836     soname_spec='${libname}${release}${shared_ext}$major'
9837     dynamic_linker='NetBSD ld.elf_so'
9838   fi
9839   shlibpath_var=LD_LIBRARY_PATH
9840   shlibpath_overrides_runpath=yes
9841   hardcode_into_libs=yes
9842   ;;
9843
9844 newsos6)
9845   version_type=linux
9846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847   shlibpath_var=LD_LIBRARY_PATH
9848   shlibpath_overrides_runpath=yes
9849   ;;
9850
9851 *nto* | *qnx*)
9852   version_type=qnx
9853   need_lib_prefix=no
9854   need_version=no
9855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856   soname_spec='${libname}${release}${shared_ext}$major'
9857   shlibpath_var=LD_LIBRARY_PATH
9858   shlibpath_overrides_runpath=no
9859   hardcode_into_libs=yes
9860   dynamic_linker='ldqnx.so'
9861   ;;
9862
9863 openbsd*)
9864   version_type=sunos
9865   sys_lib_dlsearch_path_spec="/usr/lib"
9866   need_lib_prefix=no
9867   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9868   case $host_os in
9869     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9870     *)                          need_version=no  ;;
9871   esac
9872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9873   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9874   shlibpath_var=LD_LIBRARY_PATH
9875   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9876     case $host_os in
9877       openbsd2.[89] | openbsd2.[89].*)
9878         shlibpath_overrides_runpath=no
9879         ;;
9880       *)
9881         shlibpath_overrides_runpath=yes
9882         ;;
9883       esac
9884   else
9885     shlibpath_overrides_runpath=yes
9886   fi
9887   ;;
9888
9889 os2*)
9890   libname_spec='$name'
9891   shrext_cmds=".dll"
9892   need_lib_prefix=no
9893   library_names_spec='$libname${shared_ext} $libname.a'
9894   dynamic_linker='OS/2 ld.exe'
9895   shlibpath_var=LIBPATH
9896   ;;
9897
9898 osf3* | osf4* | osf5*)
9899   version_type=osf
9900   need_lib_prefix=no
9901   need_version=no
9902   soname_spec='${libname}${release}${shared_ext}$major'
9903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904   shlibpath_var=LD_LIBRARY_PATH
9905   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9906   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9907   ;;
9908
9909 rdos*)
9910   dynamic_linker=no
9911   ;;
9912
9913 solaris*)
9914   version_type=linux
9915   need_lib_prefix=no
9916   need_version=no
9917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918   soname_spec='${libname}${release}${shared_ext}$major'
9919   shlibpath_var=LD_LIBRARY_PATH
9920   shlibpath_overrides_runpath=yes
9921   hardcode_into_libs=yes
9922   # ldd complains unless libraries are executable
9923   postinstall_cmds='chmod +x $lib'
9924   ;;
9925
9926 sunos4*)
9927   version_type=sunos
9928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9929   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9930   shlibpath_var=LD_LIBRARY_PATH
9931   shlibpath_overrides_runpath=yes
9932   if test "$with_gnu_ld" = yes; then
9933     need_lib_prefix=no
9934   fi
9935   need_version=yes
9936   ;;
9937
9938 sysv4 | sysv4.3*)
9939   version_type=linux
9940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941   soname_spec='${libname}${release}${shared_ext}$major'
9942   shlibpath_var=LD_LIBRARY_PATH
9943   case $host_vendor in
9944     sni)
9945       shlibpath_overrides_runpath=no
9946       need_lib_prefix=no
9947       runpath_var=LD_RUN_PATH
9948       ;;
9949     siemens)
9950       need_lib_prefix=no
9951       ;;
9952     motorola)
9953       need_lib_prefix=no
9954       need_version=no
9955       shlibpath_overrides_runpath=no
9956       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9957       ;;
9958   esac
9959   ;;
9960
9961 sysv4*MP*)
9962   if test -d /usr/nec ;then
9963     version_type=linux
9964     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9965     soname_spec='$libname${shared_ext}.$major'
9966     shlibpath_var=LD_LIBRARY_PATH
9967   fi
9968   ;;
9969
9970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9971   version_type=freebsd-elf
9972   need_lib_prefix=no
9973   need_version=no
9974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9975   soname_spec='${libname}${release}${shared_ext}$major'
9976   shlibpath_var=LD_LIBRARY_PATH
9977   shlibpath_overrides_runpath=yes
9978   hardcode_into_libs=yes
9979   if test "$with_gnu_ld" = yes; then
9980     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9981   else
9982     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9983     case $host_os in
9984       sco3.2v5*)
9985         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9986         ;;
9987     esac
9988   fi
9989   sys_lib_dlsearch_path_spec='/usr/lib'
9990   ;;
9991
9992 tpf*)
9993   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9994   version_type=linux
9995   need_lib_prefix=no
9996   need_version=no
9997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998   shlibpath_var=LD_LIBRARY_PATH
9999   shlibpath_overrides_runpath=no
10000   hardcode_into_libs=yes
10001   ;;
10002
10003 uts4*)
10004   version_type=linux
10005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006   soname_spec='${libname}${release}${shared_ext}$major'
10007   shlibpath_var=LD_LIBRARY_PATH
10008   ;;
10009
10010 *)
10011   dynamic_linker=no
10012   ;;
10013 esac
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10015 $as_echo "$dynamic_linker" >&6; }
10016 test "$dynamic_linker" = no && can_build_shared=no
10017
10018 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10019 if test "$GCC" = yes; then
10020   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10021 fi
10022
10023 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10024   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10025 fi
10026 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10027   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10028 fi
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
10113
10114
10115
10116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10117 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10118 hardcode_action=
10119 if test -n "$hardcode_libdir_flag_spec" ||
10120    test -n "$runpath_var" ||
10121    test "X$hardcode_automatic" = "Xyes" ; then
10122
10123   # We can hardcode non-existent directories.
10124   if test "$hardcode_direct" != no &&
10125      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10126      # have to relink, otherwise we might link with an installed library
10127      # when we should be linking with a yet-to-be-installed one
10128      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10129      test "$hardcode_minus_L" != no; then
10130     # Linking always hardcodes the temporary library directory.
10131     hardcode_action=relink
10132   else
10133     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10134     hardcode_action=immediate
10135   fi
10136 else
10137   # We cannot hardcode anything, or else we can only hardcode existing
10138   # directories.
10139   hardcode_action=unsupported
10140 fi
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10142 $as_echo "$hardcode_action" >&6; }
10143
10144 if test "$hardcode_action" = relink ||
10145    test "$inherit_rpath" = yes; then
10146   # Fast installation is not supported
10147   enable_fast_install=no
10148 elif test "$shlibpath_overrides_runpath" = yes ||
10149      test "$enable_shared" = no; then
10150   # Fast installation is not necessary
10151   enable_fast_install=needless
10152 fi
10153
10154
10155
10156
10157
10158
10159   if test "x$enable_dlopen" != xyes; then
10160   enable_dlopen=unknown
10161   enable_dlopen_self=unknown
10162   enable_dlopen_self_static=unknown
10163 else
10164   lt_cv_dlopen=no
10165   lt_cv_dlopen_libs=
10166
10167   case $host_os in
10168   beos*)
10169     lt_cv_dlopen="load_add_on"
10170     lt_cv_dlopen_libs=
10171     lt_cv_dlopen_self=yes
10172     ;;
10173
10174   mingw* | pw32* | cegcc*)
10175     lt_cv_dlopen="LoadLibrary"
10176     lt_cv_dlopen_libs=
10177     ;;
10178
10179   cygwin*)
10180     lt_cv_dlopen="dlopen"
10181     lt_cv_dlopen_libs=
10182     ;;
10183
10184   darwin*)
10185   # if libdl is installed we need to link against it
10186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10187 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10189   $as_echo_n "(cached) " >&6
10190 else
10191   ac_check_lib_save_LIBS=$LIBS
10192 LIBS="-ldl  $LIBS"
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h.  */
10195
10196 /* Override any GCC internal prototype to avoid an error.
10197    Use char because int might match the return type of a GCC
10198    builtin and then its argument prototype would still apply.  */
10199 #ifdef __cplusplus
10200 extern "C"
10201 #endif
10202 char dlopen ();
10203 int
10204 main ()
10205 {
10206 return dlopen ();
10207   ;
10208   return 0;
10209 }
10210 _ACEOF
10211 if ac_fn_c_try_link "$LINENO"; then :
10212   ac_cv_lib_dl_dlopen=yes
10213 else
10214   ac_cv_lib_dl_dlopen=no
10215 fi
10216 rm -f core conftest.err conftest.$ac_objext \
10217     conftest$ac_exeext conftest.$ac_ext
10218 LIBS=$ac_check_lib_save_LIBS
10219 fi
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10221 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10222 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10223   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10224 else
10225
10226     lt_cv_dlopen="dyld"
10227     lt_cv_dlopen_libs=
10228     lt_cv_dlopen_self=yes
10229
10230 fi
10231
10232     ;;
10233
10234   *)
10235     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10236 if test "x$ac_cv_func_shl_load" = x""yes; then :
10237   lt_cv_dlopen="shl_load"
10238 else
10239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10240 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10241 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10242   $as_echo_n "(cached) " >&6
10243 else
10244   ac_check_lib_save_LIBS=$LIBS
10245 LIBS="-ldld  $LIBS"
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h.  */
10248
10249 /* Override any GCC internal prototype to avoid an error.
10250    Use char because int might match the return type of a GCC
10251    builtin and then its argument prototype would still apply.  */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char shl_load ();
10256 int
10257 main ()
10258 {
10259 return shl_load ();
10260   ;
10261   return 0;
10262 }
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"; then :
10265   ac_cv_lib_dld_shl_load=yes
10266 else
10267   ac_cv_lib_dld_shl_load=no
10268 fi
10269 rm -f core conftest.err conftest.$ac_objext \
10270     conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10272 fi
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10274 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10275 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10276   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10277 else
10278   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10279 if test "x$ac_cv_func_dlopen" = x""yes; then :
10280   lt_cv_dlopen="dlopen"
10281 else
10282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10284 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10285   $as_echo_n "(cached) " >&6
10286 else
10287   ac_check_lib_save_LIBS=$LIBS
10288 LIBS="-ldl  $LIBS"
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h.  */
10291
10292 /* Override any GCC internal prototype to avoid an error.
10293    Use char because int might match the return type of a GCC
10294    builtin and then its argument prototype would still apply.  */
10295 #ifdef __cplusplus
10296 extern "C"
10297 #endif
10298 char dlopen ();
10299 int
10300 main ()
10301 {
10302 return dlopen ();
10303   ;
10304   return 0;
10305 }
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"; then :
10308   ac_cv_lib_dl_dlopen=yes
10309 else
10310   ac_cv_lib_dl_dlopen=no
10311 fi
10312 rm -f core conftest.err conftest.$ac_objext \
10313     conftest$ac_exeext conftest.$ac_ext
10314 LIBS=$ac_check_lib_save_LIBS
10315 fi
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10317 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10318 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10319   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10320 else
10321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10322 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10323 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10324   $as_echo_n "(cached) " >&6
10325 else
10326   ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-lsvld  $LIBS"
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h.  */
10330
10331 /* Override any GCC internal prototype to avoid an error.
10332    Use char because int might match the return type of a GCC
10333    builtin and then its argument prototype would still apply.  */
10334 #ifdef __cplusplus
10335 extern "C"
10336 #endif
10337 char dlopen ();
10338 int
10339 main ()
10340 {
10341 return dlopen ();
10342   ;
10343   return 0;
10344 }
10345 _ACEOF
10346 if ac_fn_c_try_link "$LINENO"; then :
10347   ac_cv_lib_svld_dlopen=yes
10348 else
10349   ac_cv_lib_svld_dlopen=no
10350 fi
10351 rm -f core conftest.err conftest.$ac_objext \
10352     conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10354 fi
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10356 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10357 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10358   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10359 else
10360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10361 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10362 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10363   $as_echo_n "(cached) " >&6
10364 else
10365   ac_check_lib_save_LIBS=$LIBS
10366 LIBS="-ldld  $LIBS"
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h.  */
10369
10370 /* Override any GCC internal prototype to avoid an error.
10371    Use char because int might match the return type of a GCC
10372    builtin and then its argument prototype would still apply.  */
10373 #ifdef __cplusplus
10374 extern "C"
10375 #endif
10376 char dld_link ();
10377 int
10378 main ()
10379 {
10380 return dld_link ();
10381   ;
10382   return 0;
10383 }
10384 _ACEOF
10385 if ac_fn_c_try_link "$LINENO"; then :
10386   ac_cv_lib_dld_dld_link=yes
10387 else
10388   ac_cv_lib_dld_dld_link=no
10389 fi
10390 rm -f core conftest.err conftest.$ac_objext \
10391     conftest$ac_exeext conftest.$ac_ext
10392 LIBS=$ac_check_lib_save_LIBS
10393 fi
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10395 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10396 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10397   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10398 fi
10399
10400
10401 fi
10402
10403
10404 fi
10405
10406
10407 fi
10408
10409
10410 fi
10411
10412
10413 fi
10414
10415     ;;
10416   esac
10417
10418   if test "x$lt_cv_dlopen" != xno; then
10419     enable_dlopen=yes
10420   else
10421     enable_dlopen=no
10422   fi
10423
10424   case $lt_cv_dlopen in
10425   dlopen)
10426     save_CPPFLAGS="$CPPFLAGS"
10427     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10428
10429     save_LDFLAGS="$LDFLAGS"
10430     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10431
10432     save_LIBS="$LIBS"
10433     LIBS="$lt_cv_dlopen_libs $LIBS"
10434
10435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10436 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10437 if test "${lt_cv_dlopen_self+set}" = set; then :
10438   $as_echo_n "(cached) " >&6
10439 else
10440           if test "$cross_compiling" = yes; then :
10441   lt_cv_dlopen_self=cross
10442 else
10443   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10444   lt_status=$lt_dlunknown
10445   cat > conftest.$ac_ext <<_LT_EOF
10446 #line 10446 "configure"
10447 #include "confdefs.h"
10448
10449 #if HAVE_DLFCN_H
10450 #include <dlfcn.h>
10451 #endif
10452
10453 #include <stdio.h>
10454
10455 #ifdef RTLD_GLOBAL
10456 #  define LT_DLGLOBAL           RTLD_GLOBAL
10457 #else
10458 #  ifdef DL_GLOBAL
10459 #    define LT_DLGLOBAL         DL_GLOBAL
10460 #  else
10461 #    define LT_DLGLOBAL         0
10462 #  endif
10463 #endif
10464
10465 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10466    find out it does not work in some platform. */
10467 #ifndef LT_DLLAZY_OR_NOW
10468 #  ifdef RTLD_LAZY
10469 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10470 #  else
10471 #    ifdef DL_LAZY
10472 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10473 #    else
10474 #      ifdef RTLD_NOW
10475 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10476 #      else
10477 #        ifdef DL_NOW
10478 #          define LT_DLLAZY_OR_NOW      DL_NOW
10479 #        else
10480 #          define LT_DLLAZY_OR_NOW      0
10481 #        endif
10482 #      endif
10483 #    endif
10484 #  endif
10485 #endif
10486
10487 void fnord() { int i=42;}
10488 int main ()
10489 {
10490   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10491   int status = $lt_dlunknown;
10492
10493   if (self)
10494     {
10495       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10496       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10497       /* dlclose (self); */
10498     }
10499   else
10500     puts (dlerror ());
10501
10502   return status;
10503 }
10504 _LT_EOF
10505   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10506   (eval $ac_link) 2>&5
10507   ac_status=$?
10508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10509   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10510     (./conftest; exit; ) >&5 2>/dev/null
10511     lt_status=$?
10512     case x$lt_status in
10513       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10514       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10515       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10516     esac
10517   else :
10518     # compilation failed
10519     lt_cv_dlopen_self=no
10520   fi
10521 fi
10522 rm -fr conftest*
10523
10524
10525 fi
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10527 $as_echo "$lt_cv_dlopen_self" >&6; }
10528
10529     if test "x$lt_cv_dlopen_self" = xyes; then
10530       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10531       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10532 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10533 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10534   $as_echo_n "(cached) " >&6
10535 else
10536           if test "$cross_compiling" = yes; then :
10537   lt_cv_dlopen_self_static=cross
10538 else
10539   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10540   lt_status=$lt_dlunknown
10541   cat > conftest.$ac_ext <<_LT_EOF
10542 #line 10542 "configure"
10543 #include "confdefs.h"
10544
10545 #if HAVE_DLFCN_H
10546 #include <dlfcn.h>
10547 #endif
10548
10549 #include <stdio.h>
10550
10551 #ifdef RTLD_GLOBAL
10552 #  define LT_DLGLOBAL           RTLD_GLOBAL
10553 #else
10554 #  ifdef DL_GLOBAL
10555 #    define LT_DLGLOBAL         DL_GLOBAL
10556 #  else
10557 #    define LT_DLGLOBAL         0
10558 #  endif
10559 #endif
10560
10561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10562    find out it does not work in some platform. */
10563 #ifndef LT_DLLAZY_OR_NOW
10564 #  ifdef RTLD_LAZY
10565 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10566 #  else
10567 #    ifdef DL_LAZY
10568 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10569 #    else
10570 #      ifdef RTLD_NOW
10571 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10572 #      else
10573 #        ifdef DL_NOW
10574 #          define LT_DLLAZY_OR_NOW      DL_NOW
10575 #        else
10576 #          define LT_DLLAZY_OR_NOW      0
10577 #        endif
10578 #      endif
10579 #    endif
10580 #  endif
10581 #endif
10582
10583 void fnord() { int i=42;}
10584 int main ()
10585 {
10586   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10587   int status = $lt_dlunknown;
10588
10589   if (self)
10590     {
10591       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10592       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10593       /* dlclose (self); */
10594     }
10595   else
10596     puts (dlerror ());
10597
10598   return status;
10599 }
10600 _LT_EOF
10601   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10602   (eval $ac_link) 2>&5
10603   ac_status=$?
10604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10605   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10606     (./conftest; exit; ) >&5 2>/dev/null
10607     lt_status=$?
10608     case x$lt_status in
10609       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10610       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10611       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10612     esac
10613   else :
10614     # compilation failed
10615     lt_cv_dlopen_self_static=no
10616   fi
10617 fi
10618 rm -fr conftest*
10619
10620
10621 fi
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10623 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10624     fi
10625
10626     CPPFLAGS="$save_CPPFLAGS"
10627     LDFLAGS="$save_LDFLAGS"
10628     LIBS="$save_LIBS"
10629     ;;
10630   esac
10631
10632   case $lt_cv_dlopen_self in
10633   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10634   *) enable_dlopen_self=unknown ;;
10635   esac
10636
10637   case $lt_cv_dlopen_self_static in
10638   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10639   *) enable_dlopen_self_static=unknown ;;
10640   esac
10641 fi
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659 striplib=
10660 old_striplib=
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10662 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10663 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10664   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10665   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10667 $as_echo "yes" >&6; }
10668 else
10669 # FIXME - insert some real tests, host_os isn't really good enough
10670   case $host_os in
10671   darwin*)
10672     if test -n "$STRIP" ; then
10673       striplib="$STRIP -x"
10674       old_striplib="$STRIP -S"
10675       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10676 $as_echo "yes" >&6; }
10677     else
10678       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10680     fi
10681     ;;
10682   *)
10683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; }
10685     ;;
10686   esac
10687 fi
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700   # Report which library types will actually be built
10701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10702 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10704 $as_echo "$can_build_shared" >&6; }
10705
10706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10707 $as_echo_n "checking whether to build shared libraries... " >&6; }
10708   test "$can_build_shared" = "no" && enable_shared=no
10709
10710   # On AIX, shared libraries and static libraries use the same namespace, and
10711   # are all built from PIC.
10712   case $host_os in
10713   aix3*)
10714     test "$enable_shared" = yes && enable_static=no
10715     if test -n "$RANLIB"; then
10716       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10717       postinstall_cmds='$RANLIB $lib'
10718     fi
10719     ;;
10720
10721   aix[4-9]*)
10722     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10723       test "$enable_shared" = yes && enable_static=no
10724     fi
10725     ;;
10726   esac
10727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10728 $as_echo "$enable_shared" >&6; }
10729
10730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10731 $as_echo_n "checking whether to build static libraries... " >&6; }
10732   # Make sure either enable_shared or enable_static is yes.
10733   test "$enable_shared" = yes || enable_static=yes
10734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10735 $as_echo "$enable_static" >&6; }
10736
10737
10738
10739
10740 fi
10741 ac_ext=c
10742 ac_cpp='$CPP $CPPFLAGS'
10743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10746
10747 CC="$lt_save_CC"
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761         ac_config_commands="$ac_config_commands libtool"
10762
10763
10764
10765
10766 # Only expand once:
10767
10768
10769
10770 if test "x$CC" != xcc; then
10771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10772 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10773 else
10774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10775 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10776 fi
10777 set dummy $CC; ac_cc=`$as_echo "$2" |
10778                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10779 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
10780   $as_echo_n "(cached) " >&6
10781 else
10782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h.  */
10784
10785 int
10786 main ()
10787 {
10788
10789   ;
10790   return 0;
10791 }
10792 _ACEOF
10793 # Make sure it works both with $CC and with simple cc.
10794 # We do the test twice because some compilers refuse to overwrite an
10795 # existing .o file with -o, though they will create one.
10796 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10797 rm -f conftest2.*
10798 if { { case "(($ac_try" in
10799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800   *) ac_try_echo=$ac_try;;
10801 esac
10802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10803 $as_echo "$ac_try_echo"; } >&5
10804   (eval "$ac_try") 2>&5
10805   ac_status=$?
10806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10807   test $ac_status = 0; } &&
10808    test -f conftest2.$ac_objext && { { case "(($ac_try" in
10809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810   *) ac_try_echo=$ac_try;;
10811 esac
10812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10813 $as_echo "$ac_try_echo"; } >&5
10814   (eval "$ac_try") 2>&5
10815   ac_status=$?
10816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10817   test $ac_status = 0; };
10818 then
10819   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10820   if test "x$CC" != xcc; then
10821     # Test first that cc exists at all.
10822     if { ac_try='cc -c conftest.$ac_ext >&5'
10823   { { case "(($ac_try" in
10824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825   *) ac_try_echo=$ac_try;;
10826 esac
10827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10828 $as_echo "$ac_try_echo"; } >&5
10829   (eval "$ac_try") 2>&5
10830   ac_status=$?
10831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10832   test $ac_status = 0; }; }; then
10833       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10834       rm -f conftest2.*
10835       if { { case "(($ac_try" in
10836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837   *) ac_try_echo=$ac_try;;
10838 esac
10839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10840 $as_echo "$ac_try_echo"; } >&5
10841   (eval "$ac_try") 2>&5
10842   ac_status=$?
10843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10844   test $ac_status = 0; } &&
10845          test -f conftest2.$ac_objext && { { case "(($ac_try" in
10846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847   *) ac_try_echo=$ac_try;;
10848 esac
10849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10850 $as_echo "$ac_try_echo"; } >&5
10851   (eval "$ac_try") 2>&5
10852   ac_status=$?
10853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10854   test $ac_status = 0; };
10855       then
10856         # cc works too.
10857         :
10858       else
10859         # cc exists but doesn't like -o.
10860         eval ac_cv_prog_cc_${ac_cc}_c_o=no
10861       fi
10862     fi
10863   fi
10864 else
10865   eval ac_cv_prog_cc_${ac_cc}_c_o=no
10866 fi
10867 rm -f core conftest*
10868
10869 fi
10870 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
10871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10872 $as_echo "yes" >&6; }
10873 else
10874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10876
10877 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
10878
10879 fi
10880
10881 # FIXME: we rely on the cache variable name because
10882 # there is no other way.
10883 set dummy $CC
10884 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10885 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
10886 if test "$am_t" != yes; then
10887    # Losing compiler, so override with the script.
10888    # FIXME: It is wrong to rewrite CC.
10889    # But if we don't then we get into trouble of one sort or another.
10890    # A longer-term fix would be to have automake use am__CC in this case,
10891    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10892    CC="$am_aux_dir/compile $CC"
10893 fi
10894
10895
10896
10897 # Extract the first word of "pkg-config", so it can be a program name with args.
10898 set dummy pkg-config; ac_word=$2
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900 $as_echo_n "checking for $ac_word... " >&6; }
10901 if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then :
10902   $as_echo_n "(cached) " >&6
10903 else
10904   if test -n "$HAVE_PKGCONFIG"; then
10905   ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
10906 else
10907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908 for as_dir in $PATH
10909 do
10910   IFS=$as_save_IFS
10911   test -z "$as_dir" && as_dir=.
10912     for ac_exec_ext in '' $ac_executable_extensions; do
10913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10914     ac_cv_prog_HAVE_PKGCONFIG="yes"
10915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10916     break 2
10917   fi
10918 done
10919   done
10920 IFS=$as_save_IFS
10921
10922   test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
10923 fi
10924 fi
10925 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
10926 if test -n "$HAVE_PKGCONFIG"; then
10927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKGCONFIG" >&5
10928 $as_echo "$HAVE_PKGCONFIG" >&6; }
10929 else
10930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931 $as_echo "no" >&6; }
10932 fi
10933
10934
10935 if test x"$HAVE_PKGCONFIG" = x"no"; then
10936   as_fn_error "pkg-config is required!" "$LINENO" 5
10937 fi
10938
10939
10940 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10941         if test -n "$ac_tool_prefix"; then
10942   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10943 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945 $as_echo_n "checking for $ac_word... " >&6; }
10946 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10947   $as_echo_n "(cached) " >&6
10948 else
10949   case $PKG_CONFIG in
10950   [\\/]* | ?:[\\/]*)
10951   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10952   ;;
10953   *)
10954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10956 do
10957   IFS=$as_save_IFS
10958   test -z "$as_dir" && as_dir=.
10959     for ac_exec_ext in '' $ac_executable_extensions; do
10960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10961     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10963     break 2
10964   fi
10965 done
10966   done
10967 IFS=$as_save_IFS
10968
10969   ;;
10970 esac
10971 fi
10972 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10973 if test -n "$PKG_CONFIG"; then
10974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10975 $as_echo "$PKG_CONFIG" >&6; }
10976 else
10977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10979 fi
10980
10981
10982 fi
10983 if test -z "$ac_cv_path_PKG_CONFIG"; then
10984   ac_pt_PKG_CONFIG=$PKG_CONFIG
10985   # Extract the first word of "pkg-config", so it can be a program name with args.
10986 set dummy pkg-config; ac_word=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 $as_echo_n "checking for $ac_word... " >&6; }
10989 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10990   $as_echo_n "(cached) " >&6
10991 else
10992   case $ac_pt_PKG_CONFIG in
10993   [\\/]* | ?:[\\/]*)
10994   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10995   ;;
10996   *)
10997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
10999 do
11000   IFS=$as_save_IFS
11001   test -z "$as_dir" && as_dir=.
11002     for ac_exec_ext in '' $ac_executable_extensions; do
11003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11004     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11006     break 2
11007   fi
11008 done
11009   done
11010 IFS=$as_save_IFS
11011
11012   ;;
11013 esac
11014 fi
11015 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11016 if test -n "$ac_pt_PKG_CONFIG"; then
11017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11018 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11019 else
11020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11022 fi
11023
11024   if test "x$ac_pt_PKG_CONFIG" = x; then
11025     PKG_CONFIG=""
11026   else
11027     case $cross_compiling:$ac_tool_warned in
11028 yes:)
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11031 ac_tool_warned=yes ;;
11032 esac
11033     PKG_CONFIG=$ac_pt_PKG_CONFIG
11034   fi
11035 else
11036   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11037 fi
11038
11039 fi
11040 if test -n "$PKG_CONFIG"; then
11041         _pkg_min_version=0.19
11042         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11043 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11044         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11045                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11046 $as_echo "yes" >&6; }
11047         else
11048                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11050                 PKG_CONFIG=""
11051         fi
11052
11053 fi
11054
11055 ac_config_files="$ac_config_files Makefile data/Makefile doc/Makefile src/Makefile src/build.h lua/Makefile"
11056
11057
11058 uname=`uname`
11059
11060 case $uname in
11061   Linux*)
11062     WANT_SYSINFO=yes
11063     ;;
11064   FreeBSD*|GNU/kFreeBSD*)
11065     WANT_KVM=yes
11066     WANT_DEVSTAT=yes
11067     ;;
11068 #  NetBSD*)
11069 #    WANT_KVM=yes
11070 #    WANT_OSSLIB=yes
11071 #    ;;
11072
11073   OpenBSD*)
11074     WANT_KVM=yes
11075     WANT_OSSLIB=yes
11076     ;;
11077
11078 # Solaris doesn't work at all right now
11079 #  SunOS*)
11080 #    WANT_KSTAT=yes
11081 #    ;;
11082
11083   *)
11084     echo "Your operating system $uname isn't supported"
11085     echo "Feel free to help. :P"
11086     exit 1
11087     ;;
11088 esac
11089
11090  if test x$uname = xLinux; then
11091   BUILD_LINUX_TRUE=
11092   BUILD_LINUX_FALSE='#'
11093 else
11094   BUILD_LINUX_TRUE='#'
11095   BUILD_LINUX_FALSE=
11096 fi
11097
11098 #AM_CONDITIONAL(BUILD_SOLARIS, test x$uname = xSunOS)
11099  if test x$uname = xFreeBSD -o x$uname = xGNU/kFreeBSD; then
11100   BUILD_FREEBSD_TRUE=
11101   BUILD_FREEBSD_FALSE='#'
11102 else
11103   BUILD_FREEBSD_TRUE='#'
11104   BUILD_FREEBSD_FALSE=
11105 fi
11106
11107 #AM_CONDITIONAL(BUILD_NETBSD, test x$uname = xNetBSD)
11108  if test x$uname = xOpenBSD; then
11109   BUILD_OPENBSD_TRUE=
11110   BUILD_OPENBSD_FALSE='#'
11111 else
11112   BUILD_OPENBSD_TRUE='#'
11113   BUILD_OPENBSD_FALSE=
11114 fi
11115
11116
11117 BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date)
11118 BUILD_ARCH="$(uname -sr) ($(uname -m))"
11119
11120
11121
11122
11123
11124 # Check whether --enable-config_output was given.
11125 if test "${enable_config_output+set}" = set; then :
11126   enableval=$enable_config_output; want_config_output="$enableval"
11127 else
11128   want_config_output=yes
11129 fi
11130
11131
11132  if test x$want_config_output = xyes; then
11133   BUILD_CONFIG_OUTPUT_TRUE=
11134   BUILD_CONFIG_OUTPUT_FALSE='#'
11135 else
11136   BUILD_CONFIG_OUTPUT_TRUE='#'
11137   BUILD_CONFIG_OUTPUT_FALSE=
11138 fi
11139
11140 if test x$want_config_output = xyes; then
11141
11142 $as_echo "#define CONFIG_OUTPUT 1" >>confdefs.h
11143
11144   for ac_func in fopencookie
11145 do :
11146   ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
11147 if test "x$ac_cv_func_fopencookie" = x""yes; then :
11148   cat >>confdefs.h <<_ACEOF
11149 #define HAVE_FOPENCOOKIE 1
11150 _ACEOF
11151
11152 fi
11153 done
11154
11155   for ac_func in funopen
11156 do :
11157   ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
11158 if test "x$ac_cv_func_funopen" = x""yes; then :
11159   cat >>confdefs.h <<_ACEOF
11160 #define HAVE_FUNOPEN 1
11161 _ACEOF
11162
11163 fi
11164 done
11165
11166 fi
11167
11168
11169 # Check whether --enable-own_window was given.
11170 if test "${enable_own_window+set}" = set; then :
11171   enableval=$enable_own_window; dah="$enableval"
11172 else
11173   dah=yes
11174 fi
11175
11176
11177 if test $dah != "no"; then
11178
11179 $as_echo "#define OWN_WINDOW 1" >>confdefs.h
11180
11181 fi
11182
11183
11184 # Check whether --enable-ncurses was given.
11185 if test "${enable_ncurses+set}" = set; then :
11186   enableval=$enable_ncurses; want_ncurses="$enableval"
11187 else
11188   want_ncurses=yes
11189 fi
11190
11191
11192  if test x$want_ncurses = xyes; then
11193   BUILD_NCURSES_TRUE=
11194   BUILD_NCURSES_FALSE='#'
11195 else
11196   BUILD_NCURSES_TRUE='#'
11197   BUILD_NCURSES_FALSE=
11198 fi
11199
11200 if test x$want_ncurses = xyes; then
11201       conky_LIBS="$conky_LIBS -lncurses"
11202
11203 $as_echo "#define NCURSES 1" >>confdefs.h
11204
11205 fi
11206
11207
11208
11209 # Check whether --enable-audacious was given.
11210 if test "${enable_audacious+set}" = set; then :
11211   enableval=$enable_audacious; want_audacious="$enableval"
11212 else
11213   want_audacious=no
11214 fi
11215
11216
11217  if test x$want_audacious = xyes -o x$want_audacious = xlegacy; then
11218   BUILD_AUDACIOUS_TRUE=
11219   BUILD_AUDACIOUS_FALSE='#'
11220 else
11221   BUILD_AUDACIOUS_TRUE='#'
11222   BUILD_AUDACIOUS_FALSE=
11223 fi
11224
11225 if test x$want_audacious = xyes; then
11226
11227 pkg_failed=no
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Audacious" >&5
11229 $as_echo_n "checking for Audacious... " >&6; }
11230
11231 if test -n "$PKG_CONFIG"; then
11232     if test -n "$Audacious_CFLAGS"; then
11233         pkg_cv_Audacious_CFLAGS="$Audacious_CFLAGS"
11234     else
11235         if test -n "$PKG_CONFIG" && \
11236     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0\""; } >&5
11237   ($PKG_CONFIG --exists --print-errors "audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0") 2>&5
11238   ac_status=$?
11239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11240   test $ac_status = 0; }; then
11241   pkg_cv_Audacious_CFLAGS=`$PKG_CONFIG --cflags "audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0" 2>/dev/null`
11242 else
11243   pkg_failed=yes
11244 fi
11245     fi
11246 else
11247         pkg_failed=untried
11248 fi
11249 if test -n "$PKG_CONFIG"; then
11250     if test -n "$Audacious_LIBS"; then
11251         pkg_cv_Audacious_LIBS="$Audacious_LIBS"
11252     else
11253         if test -n "$PKG_CONFIG" && \
11254     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0\""; } >&5
11255   ($PKG_CONFIG --exists --print-errors "audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0") 2>&5
11256   ac_status=$?
11257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11258   test $ac_status = 0; }; then
11259   pkg_cv_Audacious_LIBS=`$PKG_CONFIG --libs "audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0" 2>/dev/null`
11260 else
11261   pkg_failed=yes
11262 fi
11263     fi
11264 else
11265         pkg_failed=untried
11266 fi
11267
11268
11269
11270 if test $pkg_failed = yes; then
11271
11272 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11273         _pkg_short_errors_supported=yes
11274 else
11275         _pkg_short_errors_supported=no
11276 fi
11277         if test $_pkg_short_errors_supported = yes; then
11278                 Audacious_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0"`
11279         else
11280                 Audacious_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0"`
11281         fi
11282         # Put the nasty error message in config.log where it belongs
11283         echo "$Audacious_PKG_ERRORS" >&5
11284
11285         as_fn_error "Package requirements (audacious >= 1.4.0 dbus-glib-1 glib-2.0 gobject-2.0) were not met:
11286
11287 $Audacious_PKG_ERRORS
11288
11289 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11290 installed software in a non-standard prefix.
11291
11292 Alternatively, you may set the environment variables Audacious_CFLAGS
11293 and Audacious_LIBS to avoid the need to call pkg-config.
11294 See the pkg-config man page for more details.
11295 " "$LINENO" 5
11296 elif test $pkg_failed = untried; then
11297         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11299 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
11300 is in your PATH or set the PKG_CONFIG environment variable to the full
11301 path to pkg-config.
11302
11303 Alternatively, you may set the environment variables Audacious_CFLAGS
11304 and Audacious_LIBS to avoid the need to call pkg-config.
11305 See the pkg-config man page for more details.
11306
11307 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11308 See \`config.log' for more details." "$LINENO" 5; }
11309 else
11310         Audacious_CFLAGS=$pkg_cv_Audacious_CFLAGS
11311         Audacious_LIBS=$pkg_cv_Audacious_LIBS
11312         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11313 $as_echo "yes" >&6; }
11314         :
11315 fi
11316       conky_CFLAGS="$conky_CFLAGS $Audacious_CFLAGS"
11317       conky_LIBS="$conky_LIBS $Audacious_LIBS"
11318       save_CPPFLAGS="$CPPFLAGS"
11319       CPPFLAGS="$Audacious_CFLAGS -I`pkg-config --variable=audacious_include_dir audacious`/audacious"
11320       for ac_header in audacious/audctrl.h audacious/dbus.h glib.h glib-object.h
11321 do :
11322   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11323 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11324 eval as_val=\$$as_ac_Header
11325    if test "x$as_val" = x""yes; then :
11326   cat >>confdefs.h <<_ACEOF
11327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11328 _ACEOF
11329
11330 else
11331   as_fn_error "required header(s) not found" "$LINENO" 5
11332 fi
11333
11334 done
11335
11336       CPPFLAGS="$save_CPPFLAGS"
11337
11338 $as_echo "#define AUDACIOUS 1" >>confdefs.h
11339
11340 else if test x$want_audacious = xlegacy; then
11341
11342 pkg_failed=no
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Audacious" >&5
11344 $as_echo_n "checking for Audacious... " >&6; }
11345
11346 if test -n "$PKG_CONFIG"; then
11347     if test -n "$Audacious_CFLAGS"; then
11348         pkg_cv_Audacious_CFLAGS="$Audacious_CFLAGS"
11349     else
11350         if test -n "$PKG_CONFIG" && \
11351     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audacious < 1.4.0 glib-2.0\""; } >&5
11352   ($PKG_CONFIG --exists --print-errors "audacious < 1.4.0 glib-2.0") 2>&5
11353   ac_status=$?
11354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11355   test $ac_status = 0; }; then
11356   pkg_cv_Audacious_CFLAGS=`$PKG_CONFIG --cflags "audacious < 1.4.0 glib-2.0" 2>/dev/null`
11357 else
11358   pkg_failed=yes
11359 fi
11360     fi
11361 else
11362         pkg_failed=untried
11363 fi
11364 if test -n "$PKG_CONFIG"; then
11365     if test -n "$Audacious_LIBS"; then
11366         pkg_cv_Audacious_LIBS="$Audacious_LIBS"
11367     else
11368         if test -n "$PKG_CONFIG" && \
11369     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audacious < 1.4.0 glib-2.0\""; } >&5
11370   ($PKG_CONFIG --exists --print-errors "audacious < 1.4.0 glib-2.0") 2>&5
11371   ac_status=$?
11372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11373   test $ac_status = 0; }; then
11374   pkg_cv_Audacious_LIBS=`$PKG_CONFIG --libs "audacious < 1.4.0 glib-2.0" 2>/dev/null`
11375 else
11376   pkg_failed=yes
11377 fi
11378     fi
11379 else
11380         pkg_failed=untried
11381 fi
11382
11383
11384
11385 if test $pkg_failed = yes; then
11386
11387 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11388         _pkg_short_errors_supported=yes
11389 else
11390         _pkg_short_errors_supported=no
11391 fi
11392         if test $_pkg_short_errors_supported = yes; then
11393                 Audacious_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "audacious < 1.4.0 glib-2.0"`
11394         else
11395                 Audacious_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audacious < 1.4.0 glib-2.0"`
11396         fi
11397         # Put the nasty error message in config.log where it belongs
11398         echo "$Audacious_PKG_ERRORS" >&5
11399
11400         as_fn_error "Package requirements (audacious < 1.4.0 glib-2.0) were not met:
11401
11402 $Audacious_PKG_ERRORS
11403
11404 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11405 installed software in a non-standard prefix.
11406
11407 Alternatively, you may set the environment variables Audacious_CFLAGS
11408 and Audacious_LIBS to avoid the need to call pkg-config.
11409 See the pkg-config man page for more details.
11410 " "$LINENO" 5
11411 elif test $pkg_failed = untried; then
11412         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11414 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
11415 is in your PATH or set the PKG_CONFIG environment variable to the full
11416 path to pkg-config.
11417
11418 Alternatively, you may set the environment variables Audacious_CFLAGS
11419 and Audacious_LIBS to avoid the need to call pkg-config.
11420 See the pkg-config man page for more details.
11421
11422 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11423 See \`config.log' for more details." "$LINENO" 5; }
11424 else
11425         Audacious_CFLAGS=$pkg_cv_Audacious_CFLAGS
11426         Audacious_LIBS=$pkg_cv_Audacious_LIBS
11427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428 $as_echo "yes" >&6; }
11429         :
11430 fi
11431       conky_CFLAGS="$conky_CFLAGS $Audacious_CFLAGS"
11432       conky_LIBS="$conky_LIBS $Audacious_LIBS"
11433       save_CPPFLAGS="$CPPFLAGS"
11434       CPPFLAGS="$Audacious_CFLAGS -I`pkg-config --variable=audacious_include_dir audacious`/audacious"
11435       for ac_header in audacious/beepctrl.h glib.h
11436 do :
11437   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11438 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11439 eval as_val=\$$as_ac_Header
11440    if test "x$as_val" = x""yes; then :
11441   cat >>confdefs.h <<_ACEOF
11442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11443 _ACEOF
11444
11445 else
11446   as_fn_error "required  header(s) not found" "$LINENO" 5
11447 fi
11448
11449 done
11450
11451       CPPFLAGS="$save_CPPFLAGS"
11452
11453 $as_echo "#define AUDACIOUS 1" >>confdefs.h
11454
11455
11456 $as_echo "#define AUDACIOUS_LEGACY 1" >>confdefs.h
11457
11458       fi
11459 fi
11460
11461
11462
11463 # Check whether --enable-bmpx was given.
11464 if test "${enable_bmpx+set}" = set; then :
11465   enableval=$enable_bmpx; want_bmpx="$enableval"
11466 else
11467   want_bmpx=no
11468 fi
11469
11470
11471  if test x$want_bmpx = xyes; then
11472   BUILD_BMPX_TRUE=
11473   BUILD_BMPX_FALSE='#'
11474 else
11475   BUILD_BMPX_TRUE='#'
11476   BUILD_BMPX_FALSE=
11477 fi
11478
11479 if test x$want_bmpx = xyes; then
11480
11481 pkg_failed=no
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BMPx" >&5
11483 $as_echo_n "checking for BMPx... " >&6; }
11484
11485 if test -n "$PKG_CONFIG"; then
11486     if test -n "$BMPx_CFLAGS"; then
11487         pkg_cv_BMPx_CFLAGS="$BMPx_CFLAGS"
11488     else
11489         if test -n "$PKG_CONFIG" && \
11490     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bmp-2.0 >= 0.14.0\""; } >&5
11491   ($PKG_CONFIG --exists --print-errors "bmp-2.0 >= 0.14.0") 2>&5
11492   ac_status=$?
11493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494   test $ac_status = 0; }; then
11495   pkg_cv_BMPx_CFLAGS=`$PKG_CONFIG --cflags "bmp-2.0 >= 0.14.0" 2>/dev/null`
11496 else
11497   pkg_failed=yes
11498 fi
11499     fi
11500 else
11501         pkg_failed=untried
11502 fi
11503 if test -n "$PKG_CONFIG"; then
11504     if test -n "$BMPx_LIBS"; then
11505         pkg_cv_BMPx_LIBS="$BMPx_LIBS"
11506     else
11507         if test -n "$PKG_CONFIG" && \
11508     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bmp-2.0 >= 0.14.0\""; } >&5
11509   ($PKG_CONFIG --exists --print-errors "bmp-2.0 >= 0.14.0") 2>&5
11510   ac_status=$?
11511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11512   test $ac_status = 0; }; then
11513   pkg_cv_BMPx_LIBS=`$PKG_CONFIG --libs "bmp-2.0 >= 0.14.0" 2>/dev/null`
11514 else
11515   pkg_failed=yes
11516 fi
11517     fi
11518 else
11519         pkg_failed=untried
11520 fi
11521
11522
11523
11524 if test $pkg_failed = yes; then
11525
11526 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11527         _pkg_short_errors_supported=yes
11528 else
11529         _pkg_short_errors_supported=no
11530 fi
11531         if test $_pkg_short_errors_supported = yes; then
11532                 BMPx_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "bmp-2.0 >= 0.14.0"`
11533         else
11534                 BMPx_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bmp-2.0 >= 0.14.0"`
11535         fi
11536         # Put the nasty error message in config.log where it belongs
11537         echo "$BMPx_PKG_ERRORS" >&5
11538
11539         as_fn_error "Package requirements (bmp-2.0 >= 0.14.0) were not met:
11540
11541 $BMPx_PKG_ERRORS
11542
11543 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11544 installed software in a non-standard prefix.
11545
11546 Alternatively, you may set the environment variables BMPx_CFLAGS
11547 and BMPx_LIBS to avoid the need to call pkg-config.
11548 See the pkg-config man page for more details.
11549 " "$LINENO" 5
11550 elif test $pkg_failed = untried; then
11551         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11553 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
11554 is in your PATH or set the PKG_CONFIG environment variable to the full
11555 path to pkg-config.
11556
11557 Alternatively, you may set the environment variables BMPx_CFLAGS
11558 and BMPx_LIBS to avoid the need to call pkg-config.
11559 See the pkg-config man page for more details.
11560
11561 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11562 See \`config.log' for more details." "$LINENO" 5; }
11563 else
11564         BMPx_CFLAGS=$pkg_cv_BMPx_CFLAGS
11565         BMPx_LIBS=$pkg_cv_BMPx_LIBS
11566         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11567 $as_echo "yes" >&6; }
11568         :
11569 fi
11570   conky_CFLAGS="$conky_CFLAGS $BMPx_CFLAGS"
11571   conky_LIBS="$conky_LIBS $BMPx_LIBS"
11572
11573 $as_echo "#define BMPX 1" >>confdefs.h
11574
11575 fi
11576
11577
11578
11579 # Check whether --enable-ibm was given.
11580 if test "${enable_ibm+set}" = set; then :
11581   enableval=$enable_ibm; want_ibm="$enableval"
11582 else
11583   want_ibm=no
11584 fi
11585
11586
11587  if test x$want_ibm = xyes; then
11588   BUILD_IBM_TRUE=
11589   BUILD_IBM_FALSE='#'
11590 else
11591   BUILD_IBM_TRUE='#'
11592   BUILD_IBM_FALSE=
11593 fi
11594
11595 if test x$want_ibm = xyes; then
11596         if test x"$uname" != xLinux; then
11597                 { $as_echo "$as_me:${as_lineno-$LINENO}: support for IBM/Lenovo notebooks not supported on $uname... disabling" >&5
11598 $as_echo "$as_me: support for IBM/Lenovo notebooks not supported on $uname... disabling" >&6;}
11599                 want_ibm="not supported on $uname"
11600         else
11601
11602 $as_echo "#define IBM 1" >>confdefs.h
11603
11604         fi
11605 fi
11606
11607
11608
11609 # Check whether --enable-hddtemp was given.
11610 if test "${enable_hddtemp+set}" = set; then :
11611   enableval=$enable_hddtemp; want_hddtemp="$enableval"
11612 else
11613   want_hddtemp=yes
11614 fi
11615
11616
11617  if test x$want_hddtemp = xyes; then
11618   BUILD_HDDTEMP_TRUE=
11619   BUILD_HDDTEMP_FALSE='#'
11620 else
11621   BUILD_HDDTEMP_TRUE='#'
11622   BUILD_HDDTEMP_FALSE=
11623 fi
11624
11625 if test x$want_hddtemp = xyes; then
11626   if test x"$uname" != xLinux; then
11627       { $as_echo "$as_me:${as_lineno-$LINENO}: hddtemp not supported on $uname... disabling" >&5
11628 $as_echo "$as_me: hddtemp not supported on $uname... disabling" >&6;}
11629       want_hddtemp="not supported on $uname"
11630   else
11631
11632 $as_echo "#define HDDTEMP 1" >>confdefs.h
11633
11634   fi
11635 fi
11636
11637
11638
11639 # Check whether --enable-apcupsd was given.
11640 if test "${enable_apcupsd+set}" = set; then :
11641   enableval=$enable_apcupsd; want_apcupsd="$enableval"
11642 else
11643   want_apcupsd=yes
11644 fi
11645
11646
11647 if test x$want_apcupsd = xyes; then
11648   if test x"$uname" != xLinux; then
11649       { $as_echo "$as_me:${as_lineno-$LINENO}: apcupsd not supported on $uname... disabling" >&5
11650 $as_echo "$as_me: apcupsd not supported on $uname... disabling" >&6;}
11651       want_apcupsd="not supported on $uname"
11652   else
11653
11654 $as_echo "#define APCUPSD 1" >>confdefs.h
11655
11656   fi
11657 fi
11658  if test x$want_apcupsd = xyes; then
11659   BUILD_APCUPSD_TRUE=
11660   BUILD_APCUPSD_FALSE='#'
11661 else
11662   BUILD_APCUPSD_TRUE='#'
11663   BUILD_APCUPSD_FALSE=
11664 fi
11665
11666
11667
11668
11669 # Check whether --enable-iostats was given.
11670 if test "${enable_iostats+set}" = set; then :
11671   enableval=$enable_iostats; want_iostats="$enableval"
11672 else
11673   want_iostats=yes
11674 fi
11675
11676
11677 if test x$want_iostats = xyes; then
11678   if test x"$uname" != xLinux; then
11679       { $as_echo "$as_me:${as_lineno-$LINENO}: iostats not supported on $uname... disabling" >&5
11680 $as_echo "$as_me: iostats not supported on $uname... disabling" >&6;}
11681       want_iostats="not supported on $uname"
11682   else
11683
11684 $as_echo "#define IOSTATS 1" >>confdefs.h
11685
11686   fi
11687 fi
11688
11689
11690
11691 # Check whether --enable-math was given.
11692 if test "${enable_math+set}" = set; then :
11693   enableval=$enable_math; want_math="$enableval"
11694 else
11695   want_math=yes
11696 fi
11697
11698
11699  if test x$want_math = xyes; then
11700   BUILD_MATH_TRUE=
11701   BUILD_MATH_FALSE='#'
11702 else
11703   BUILD_MATH_TRUE='#'
11704   BUILD_MATH_FALSE=
11705 fi
11706
11707 if test x$want_math = xyes; then
11708   conky_LIBS="$conky_LIBS -lm"
11709
11710 $as_echo "#define MATH 1" >>confdefs.h
11711
11712 fi
11713
11714
11715 # Check whether --enable-mpd was given.
11716 if test "${enable_mpd+set}" = set; then :
11717   enableval=$enable_mpd; want_mpd="$enableval"
11718 else
11719   want_mpd=yes
11720 fi
11721
11722
11723  if test x$want_mpd = xyes; then
11724   BUILD_MPD_TRUE=
11725   BUILD_MPD_FALSE='#'
11726 else
11727   BUILD_MPD_TRUE='#'
11728   BUILD_MPD_FALSE=
11729 fi
11730
11731 if test x$want_mpd = xyes; then
11732
11733 $as_echo "#define MPD 1" >>confdefs.h
11734
11735 fi
11736
11737
11738 # Check whether --enable-moc was given.
11739 if test "${enable_moc+set}" = set; then :
11740   enableval=$enable_moc; want_moc="$enableval"
11741 else
11742   want_moc=yes
11743 fi
11744
11745
11746  if test x$want_moc = xyes; then
11747   BUILD_MOC_TRUE=
11748   BUILD_MOC_FALSE='#'
11749 else
11750   BUILD_MOC_TRUE='#'
11751   BUILD_MOC_FALSE=
11752 fi
11753
11754 if test x$want_moc = xyes; then
11755
11756 $as_echo "#define MOC 1" >>confdefs.h
11757
11758 fi
11759
11760
11761 # Check whether --enable-xmms2 was given.
11762 if test "${enable_xmms2+set}" = set; then :
11763   enableval=$enable_xmms2; want_xmms2="$enableval"
11764 else
11765   want_xmms2=no
11766 fi
11767
11768
11769  if test x$want_xmms2 = xyes; then
11770   BUILD_XMMS2_TRUE=
11771   BUILD_XMMS2_FALSE='#'
11772 else
11773   BUILD_XMMS2_TRUE='#'
11774   BUILD_XMMS2_FALSE=
11775 fi
11776
11777 if test x$want_xmms2 = xyes; then
11778
11779 pkg_failed=no
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMMS2" >&5
11781 $as_echo_n "checking for XMMS2... " >&6; }
11782
11783 if test -n "$PKG_CONFIG"; then
11784     if test -n "$XMMS2_CFLAGS"; then
11785         pkg_cv_XMMS2_CFLAGS="$XMMS2_CFLAGS"
11786     else
11787         if test -n "$PKG_CONFIG" && \
11788     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmms2-client >= 0.6\""; } >&5
11789   ($PKG_CONFIG --exists --print-errors "xmms2-client >= 0.6") 2>&5
11790   ac_status=$?
11791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792   test $ac_status = 0; }; then
11793   pkg_cv_XMMS2_CFLAGS=`$PKG_CONFIG --cflags "xmms2-client >= 0.6" 2>/dev/null`
11794 else
11795   pkg_failed=yes
11796 fi
11797     fi
11798 else
11799         pkg_failed=untried
11800 fi
11801 if test -n "$PKG_CONFIG"; then
11802     if test -n "$XMMS2_LIBS"; then
11803         pkg_cv_XMMS2_LIBS="$XMMS2_LIBS"
11804     else
11805         if test -n "$PKG_CONFIG" && \
11806     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmms2-client >= 0.6\""; } >&5
11807   ($PKG_CONFIG --exists --print-errors "xmms2-client >= 0.6") 2>&5
11808   ac_status=$?
11809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11810   test $ac_status = 0; }; then
11811   pkg_cv_XMMS2_LIBS=`$PKG_CONFIG --libs "xmms2-client >= 0.6" 2>/dev/null`
11812 else
11813   pkg_failed=yes
11814 fi
11815     fi
11816 else
11817         pkg_failed=untried
11818 fi
11819
11820
11821
11822 if test $pkg_failed = yes; then
11823
11824 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11825         _pkg_short_errors_supported=yes
11826 else
11827         _pkg_short_errors_supported=no
11828 fi
11829         if test $_pkg_short_errors_supported = yes; then
11830                 XMMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xmms2-client >= 0.6"`
11831         else
11832                 XMMS2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmms2-client >= 0.6"`
11833         fi
11834         # Put the nasty error message in config.log where it belongs
11835         echo "$XMMS2_PKG_ERRORS" >&5
11836
11837         as_fn_error "Package requirements (xmms2-client >= 0.6) were not met:
11838
11839 $XMMS2_PKG_ERRORS
11840
11841 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11842 installed software in a non-standard prefix.
11843
11844 Alternatively, you may set the environment variables XMMS2_CFLAGS
11845 and XMMS2_LIBS to avoid the need to call pkg-config.
11846 See the pkg-config man page for more details.
11847 " "$LINENO" 5
11848 elif test $pkg_failed = untried; then
11849         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11851 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
11852 is in your PATH or set the PKG_CONFIG environment variable to the full
11853 path to pkg-config.
11854
11855 Alternatively, you may set the environment variables XMMS2_CFLAGS
11856 and XMMS2_LIBS to avoid the need to call pkg-config.
11857 See the pkg-config man page for more details.
11858
11859 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11860 See \`config.log' for more details." "$LINENO" 5; }
11861 else
11862         XMMS2_CFLAGS=$pkg_cv_XMMS2_CFLAGS
11863         XMMS2_LIBS=$pkg_cv_XMMS2_LIBS
11864         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11865 $as_echo "yes" >&6; }
11866         :
11867 fi
11868     conky_CFLAGS="$conky_CFLAGS $XMMS2_CFLAGS"
11869     conky_LIBS="$conky_LIBS $XMMS2_LIBS"
11870
11871 $as_echo "#define XMMS2 1" >>confdefs.h
11872
11873 fi
11874
11875
11876 # Check whether --enable-curl was given.
11877 if test "${enable_curl+set}" = set; then :
11878   enableval=$enable_curl; want_curl="$enableval"
11879 else
11880   want_curl=no
11881 fi
11882
11883
11884
11885 # Check whether --enable-eve was given.
11886 if test "${enable_eve+set}" = set; then :
11887   enableval=$enable_eve; want_eve="$enableval"
11888 else
11889   want_eve=no
11890 fi
11891
11892
11893  if test x$want_eve = xyes; then
11894   BUILD_EVE_TRUE=
11895   BUILD_EVE_FALSE='#'
11896 else
11897   BUILD_EVE_TRUE='#'
11898   BUILD_EVE_FALSE=
11899 fi
11900
11901 if test x$want_eve = xyes; then
11902         want_curl=yes
11903         want_libxml2=yes
11904
11905 $as_echo "#define EVE 1" >>confdefs.h
11906
11907
11908 $as_echo "#define EVEURL_TRAINING \"http://api.eve-online.com/char/SkillInTraining.xml.aspx\"" >>confdefs.h
11909
11910
11911 $as_echo "#define EVEURL_SKILLTREE \"http://api.eve-online.com/eve/Skilltree.xml.aspx\"" >>confdefs.h
11912
11913
11914 $as_echo "#define MY_ENCODING \"ISO-8859-1\"" >>confdefs.h
11915
11916
11917 $as_echo "#define EVE_OUTPUT_FORMAT \"%s %d in %s\"" >>confdefs.h
11918
11919 fi
11920
11921
11922 # Check whether --enable-rss was given.
11923 if test "${enable_rss+set}" = set; then :
11924   enableval=$enable_rss; want_rss="$enableval"
11925 else
11926   want_rss=no
11927 fi
11928
11929 #
11930  if test x$want_rss = xyes; then
11931   BUILD_RSS_TRUE=
11932   BUILD_RSS_FALSE='#'
11933 else
11934   BUILD_RSS_TRUE='#'
11935   BUILD_RSS_FALSE=
11936 fi
11937
11938 if test x$want_rss = xyes; then
11939         WANT_GLIB=yes
11940         want_curl=yes
11941         want_libxml2=yes
11942
11943 $as_echo "#define RSS 1" >>confdefs.h
11944
11945 fi
11946
11947
11948 # Check whether --enable-weather-metar was given.
11949 if test "${enable_weather_metar+set}" = set; then :
11950   enableval=$enable_weather_metar; want_metar="$enableval"
11951 else
11952   want_metar=no
11953 fi
11954
11955
11956 # Check whether --enable-weather-xoap was given.
11957 if test "${enable_weather_xoap+set}" = set; then :
11958   enableval=$enable_weather_xoap; want_xoap="$enableval"
11959 else
11960   want_xoap=no
11961 fi
11962
11963 #
11964 if test x$want_xoap = xyes; then
11965         want_metar=yes
11966 fi
11967  if test x$want_metar = xyes; then
11968   BUILD_WEATHER_TRUE=
11969   BUILD_WEATHER_FALSE='#'
11970 else
11971   BUILD_WEATHER_TRUE='#'
11972   BUILD_WEATHER_FALSE=
11973 fi
11974
11975  if test x$want_xoap = xyes; then
11976   BUILD_XOAP_TRUE=
11977   BUILD_XOAP_FALSE='#'
11978 else
11979   BUILD_XOAP_TRUE='#'
11980   BUILD_XOAP_FALSE=
11981 fi
11982
11983 if test x$want_metar = xyes; then
11984         if test x$want_xoap = xyes; then
11985                 want_libxml2=yes
11986
11987 $as_echo "#define XOAP 1" >>confdefs.h
11988
11989
11990 $as_echo "#define XOAP_FILE \"\$HOME/.xoaprc\"" >>confdefs.h
11991
11992         fi
11993         want_curl=yes
11994
11995 $as_echo "#define WEATHER 1" >>confdefs.h
11996
11997 fi
11998
11999
12000 # Check whether --enable-x11 was given.
12001 if test "${enable_x11+set}" = set; then :
12002   enableval=$enable_x11; want_x11="$enableval"
12003 else
12004   want_x11=yes
12005 fi
12006
12007
12008  if test x$want_x11 = xyes; then
12009   BUILD_X11_TRUE=
12010   BUILD_X11_FALSE='#'
12011 else
12012   BUILD_X11_TRUE='#'
12013   BUILD_X11_FALSE=
12014 fi
12015
12016 if test "x$want_x11" = "xyes"; then
12017     if $PKG_CONFIG --exists x11; then
12018
12019 pkg_failed=no
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
12021 $as_echo_n "checking for X11... " >&6; }
12022
12023 if test -n "$PKG_CONFIG"; then
12024     if test -n "$X11_CFLAGS"; then
12025         pkg_cv_X11_CFLAGS="$X11_CFLAGS"
12026     else
12027         if test -n "$PKG_CONFIG" && \
12028     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12029   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12030   ac_status=$?
12031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12032   test $ac_status = 0; }; then
12033   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
12034 else
12035   pkg_failed=yes
12036 fi
12037     fi
12038 else
12039         pkg_failed=untried
12040 fi
12041 if test -n "$PKG_CONFIG"; then
12042     if test -n "$X11_LIBS"; then
12043         pkg_cv_X11_LIBS="$X11_LIBS"
12044     else
12045         if test -n "$PKG_CONFIG" && \
12046     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
12047   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
12048   ac_status=$?
12049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12050   test $ac_status = 0; }; then
12051   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
12052 else
12053   pkg_failed=yes
12054 fi
12055     fi
12056 else
12057         pkg_failed=untried
12058 fi
12059
12060
12061
12062 if test $pkg_failed = yes; then
12063
12064 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12065         _pkg_short_errors_supported=yes
12066 else
12067         _pkg_short_errors_supported=no
12068 fi
12069         if test $_pkg_short_errors_supported = yes; then
12070                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
12071         else
12072                 X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
12073         fi
12074         # Put the nasty error message in config.log where it belongs
12075         echo "$X11_PKG_ERRORS" >&5
12076
12077         as_fn_error "Package requirements (x11) were not met:
12078
12079 $X11_PKG_ERRORS
12080
12081 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12082 installed software in a non-standard prefix.
12083
12084 Alternatively, you may set the environment variables X11_CFLAGS
12085 and X11_LIBS to avoid the need to call pkg-config.
12086 See the pkg-config man page for more details.
12087 " "$LINENO" 5
12088 elif test $pkg_failed = untried; then
12089         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12091 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12092 is in your PATH or set the PKG_CONFIG environment variable to the full
12093 path to pkg-config.
12094
12095 Alternatively, you may set the environment variables X11_CFLAGS
12096 and X11_LIBS to avoid the need to call pkg-config.
12097 See the pkg-config man page for more details.
12098
12099 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12100 See \`config.log' for more details." "$LINENO" 5; }
12101 else
12102         X11_CFLAGS=$pkg_cv_X11_CFLAGS
12103         X11_LIBS=$pkg_cv_X11_LIBS
12104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105 $as_echo "yes" >&6; }
12106         :
12107 fi
12108       conky_CFLAGS="$conky_CFLAGS $X11_CFLAGS"
12109       conky_LIBS="$conky_LIBS $X11_LIBS"
12110     else
12111             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12112 $as_echo_n "checking for X... " >&6; }
12113
12114
12115 # Check whether --with-x was given.
12116 if test "${with_x+set}" = set; then :
12117   withval=$with_x;
12118 fi
12119
12120 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12121 if test "x$with_x" = xno; then
12122   # The user explicitly disabled X.
12123   have_x=disabled
12124 else
12125   case $x_includes,$x_libraries in #(
12126     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
12127     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
12128   $as_echo_n "(cached) " >&6
12129 else
12130   # One or both of the vars are not set, and there is no cached value.
12131 ac_x_includes=no ac_x_libraries=no
12132 rm -f -r conftest.dir
12133 if mkdir conftest.dir; then
12134   cd conftest.dir
12135   cat >Imakefile <<'_ACEOF'
12136 incroot:
12137         @echo incroot='${INCROOT}'
12138 usrlibdir:
12139         @echo usrlibdir='${USRLIBDIR}'
12140 libdir:
12141         @echo libdir='${LIBDIR}'
12142 _ACEOF
12143   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
12144     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12145     for ac_var in incroot usrlibdir libdir; do
12146       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12147     done
12148     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12149     for ac_extension in a so sl dylib la dll; do
12150       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12151          test -f "$ac_im_libdir/libX11.$ac_extension"; then
12152         ac_im_usrlibdir=$ac_im_libdir; break
12153       fi
12154     done
12155     # Screen out bogus values from the imake configuration.  They are
12156     # bogus both because they are the default anyway, and because
12157     # using them would break gcc on systems where it needs fixed includes.
12158     case $ac_im_incroot in
12159         /usr/include) ac_x_includes= ;;
12160         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12161     esac
12162     case $ac_im_usrlibdir in
12163         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
12164         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12165     esac
12166   fi
12167   cd ..
12168   rm -f -r conftest.dir
12169 fi
12170
12171 # Standard set of common directories for X headers.
12172 # Check X11 before X11Rn because it is often a symlink to the current release.
12173 ac_x_header_dirs='
12174 /usr/X11/include
12175 /usr/X11R7/include
12176 /usr/X11R6/include
12177 /usr/X11R5/include
12178 /usr/X11R4/include
12179
12180 /usr/include/X11
12181 /usr/include/X11R7
12182 /usr/include/X11R6
12183 /usr/include/X11R5
12184 /usr/include/X11R4
12185
12186 /usr/local/X11/include
12187 /usr/local/X11R7/include
12188 /usr/local/X11R6/include
12189 /usr/local/X11R5/include
12190 /usr/local/X11R4/include
12191
12192 /usr/local/include/X11
12193 /usr/local/include/X11R7
12194 /usr/local/include/X11R6
12195 /usr/local/include/X11R5
12196 /usr/local/include/X11R4
12197
12198 /usr/X386/include
12199 /usr/x386/include
12200 /usr/XFree86/include/X11
12201
12202 /usr/include
12203 /usr/local/include
12204 /usr/unsupported/include
12205 /usr/athena/include
12206 /usr/local/x11r5/include
12207 /usr/lpp/Xamples/include
12208
12209 /usr/openwin/include
12210 /usr/openwin/share/include'
12211
12212 if test "$ac_x_includes" = no; then
12213   # Guess where to find include files, by looking for Xlib.h.
12214   # First, try using that file with no special directory specified.
12215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h.  */
12217 #include <X11/Xlib.h>
12218 _ACEOF
12219 if ac_fn_c_try_cpp "$LINENO"; then :
12220   # We can compile using X headers with no special include directory.
12221 ac_x_includes=
12222 else
12223   for ac_dir in $ac_x_header_dirs; do
12224   if test -r "$ac_dir/X11/Xlib.h"; then
12225     ac_x_includes=$ac_dir
12226     break
12227   fi
12228 done
12229 fi
12230 rm -f conftest.err conftest.$ac_ext
12231 fi # $ac_x_includes = no
12232
12233 if test "$ac_x_libraries" = no; then
12234   # Check for the libraries.
12235   # See if we find them without any special options.
12236   # Don't add to $LIBS permanently.
12237   ac_save_LIBS=$LIBS
12238   LIBS="-lX11 $LIBS"
12239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h.  */
12241 #include <X11/Xlib.h>
12242 int
12243 main ()
12244 {
12245 XrmInitialize ()
12246   ;
12247   return 0;
12248 }
12249 _ACEOF
12250 if ac_fn_c_try_link "$LINENO"; then :
12251   LIBS=$ac_save_LIBS
12252 # We can link X programs with no special library path.
12253 ac_x_libraries=
12254 else
12255   LIBS=$ac_save_LIBS
12256 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12257 do
12258   # Don't even attempt the hair of trying to link an X program!
12259   for ac_extension in a so sl dylib la dll; do
12260     if test -r "$ac_dir/libX11.$ac_extension"; then
12261       ac_x_libraries=$ac_dir
12262       break 2
12263     fi
12264   done
12265 done
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext \
12268     conftest$ac_exeext conftest.$ac_ext
12269 fi # $ac_x_libraries = no
12270
12271 case $ac_x_includes,$ac_x_libraries in #(
12272   no,* | *,no | *\'*)
12273     # Didn't find X, or a directory has "'" in its name.
12274     ac_cv_have_x="have_x=no";; #(
12275   *)
12276     # Record where we found X for the cache.
12277     ac_cv_have_x="have_x=yes\
12278         ac_x_includes='$ac_x_includes'\
12279         ac_x_libraries='$ac_x_libraries'"
12280 esac
12281 fi
12282 ;; #(
12283     *) have_x=yes;;
12284   esac
12285   eval "$ac_cv_have_x"
12286 fi # $with_x != no
12287
12288 if test "$have_x" != yes; then
12289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12290 $as_echo "$have_x" >&6; }
12291   no_x=yes
12292 else
12293   # If each of the values was on the command line, it overrides each guess.
12294   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12295   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12296   # Update the cache value to reflect the command line values.
12297   ac_cv_have_x="have_x=yes\
12298         ac_x_includes='$x_includes'\
12299         ac_x_libraries='$x_libraries'"
12300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12301 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12302 fi
12303
12304       if test "$no_x" = yes; then
12305   # Not all programs may use this symbol, but it does not hurt to define it.
12306
12307 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
12308
12309   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12310 else
12311   if test -n "$x_includes"; then
12312     X_CFLAGS="$X_CFLAGS -I$x_includes"
12313   fi
12314
12315   # It would also be nice to do this for all -L options, not just this one.
12316   if test -n "$x_libraries"; then
12317     X_LIBS="$X_LIBS -L$x_libraries"
12318     # For Solaris; some versions of Sun CC require a space after -R and
12319     # others require no space.  Words are not sufficient . . . .
12320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
12321 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
12322     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12323     ac_xsave_c_werror_flag=$ac_c_werror_flag
12324     ac_c_werror_flag=yes
12325     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h.  */
12327
12328 int
12329 main ()
12330 {
12331
12332   ;
12333   return 0;
12334 }
12335 _ACEOF
12336 if ac_fn_c_try_link "$LINENO"; then :
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12339        X_LIBS="$X_LIBS -R$x_libraries"
12340 else
12341   LIBS="$ac_xsave_LIBS -R $x_libraries"
12342        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h.  */
12344
12345 int
12346 main ()
12347 {
12348
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 if ac_fn_c_try_link "$LINENO"; then :
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12355 $as_echo "yes" >&6; }
12356           X_LIBS="$X_LIBS -R $x_libraries"
12357 else
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
12359 $as_echo "neither works" >&6; }
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext \
12362     conftest$ac_exeext conftest.$ac_ext
12363 fi
12364 rm -f core conftest.err conftest.$ac_objext \
12365     conftest$ac_exeext conftest.$ac_ext
12366     ac_c_werror_flag=$ac_xsave_c_werror_flag
12367     LIBS=$ac_xsave_LIBS
12368   fi
12369
12370   # Check for system-dependent libraries X programs must link with.
12371   # Do this before checking for the system-independent R6 libraries
12372   # (-lICE), since we may need -lsocket or whatever for X linking.
12373
12374   if test "$ISC" = yes; then
12375     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12376   else
12377     # Martyn Johnson says this is needed for Ultrix, if the X
12378     # libraries were built with DECnet support.  And Karl Berry says
12379     # the Alpha needs dnet_stub (dnet does not exist).
12380     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
12381     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h.  */
12383
12384 /* Override any GCC internal prototype to avoid an error.
12385    Use char because int might match the return type of a GCC
12386    builtin and then its argument prototype would still apply.  */
12387 #ifdef __cplusplus
12388 extern "C"
12389 #endif
12390 char XOpenDisplay ();
12391 int
12392 main ()
12393 {
12394 return XOpenDisplay ();
12395   ;
12396   return 0;
12397 }
12398 _ACEOF
12399 if ac_fn_c_try_link "$LINENO"; then :
12400
12401 else
12402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
12403 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
12404 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
12405   $as_echo_n "(cached) " >&6
12406 else
12407   ac_check_lib_save_LIBS=$LIBS
12408 LIBS="-ldnet  $LIBS"
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h.  */
12411
12412 /* Override any GCC internal prototype to avoid an error.
12413    Use char because int might match the return type of a GCC
12414    builtin and then its argument prototype would still apply.  */
12415 #ifdef __cplusplus
12416 extern "C"
12417 #endif
12418 char dnet_ntoa ();
12419 int
12420 main ()
12421 {
12422 return dnet_ntoa ();
12423   ;
12424   return 0;
12425 }
12426 _ACEOF
12427 if ac_fn_c_try_link "$LINENO"; then :
12428   ac_cv_lib_dnet_dnet_ntoa=yes
12429 else
12430   ac_cv_lib_dnet_dnet_ntoa=no
12431 fi
12432 rm -f core conftest.err conftest.$ac_objext \
12433     conftest$ac_exeext conftest.$ac_ext
12434 LIBS=$ac_check_lib_save_LIBS
12435 fi
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12437 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
12438 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
12439   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12440 fi
12441
12442     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12443       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
12444 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
12445 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
12446   $as_echo_n "(cached) " >&6
12447 else
12448   ac_check_lib_save_LIBS=$LIBS
12449 LIBS="-ldnet_stub  $LIBS"
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h.  */
12452
12453 /* Override any GCC internal prototype to avoid an error.
12454    Use char because int might match the return type of a GCC
12455    builtin and then its argument prototype would still apply.  */
12456 #ifdef __cplusplus
12457 extern "C"
12458 #endif
12459 char dnet_ntoa ();
12460 int
12461 main ()
12462 {
12463 return dnet_ntoa ();
12464   ;
12465   return 0;
12466 }
12467 _ACEOF
12468 if ac_fn_c_try_link "$LINENO"; then :
12469   ac_cv_lib_dnet_stub_dnet_ntoa=yes
12470 else
12471   ac_cv_lib_dnet_stub_dnet_ntoa=no
12472 fi
12473 rm -f core conftest.err conftest.$ac_objext \
12474     conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12476 fi
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12478 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12479 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
12480   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12481 fi
12482
12483     fi
12484 fi
12485 rm -f core conftest.err conftest.$ac_objext \
12486     conftest$ac_exeext conftest.$ac_ext
12487     LIBS="$ac_xsave_LIBS"
12488
12489     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12490     # to get the SysV transport functions.
12491     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12492     # needs -lnsl.
12493     # The nsl library prevents programs from opening the X display
12494     # on Irix 5.2, according to T.E. Dickey.
12495     # The functions gethostbyname, getservbyname, and inet_addr are
12496     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12497     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12498 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
12499
12500 fi
12501
12502     if test $ac_cv_func_gethostbyname = no; then
12503       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12504 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12505 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
12506   $as_echo_n "(cached) " >&6
12507 else
12508   ac_check_lib_save_LIBS=$LIBS
12509 LIBS="-lnsl  $LIBS"
12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511 /* end confdefs.h.  */
12512
12513 /* Override any GCC internal prototype to avoid an error.
12514    Use char because int might match the return type of a GCC
12515    builtin and then its argument prototype would still apply.  */
12516 #ifdef __cplusplus
12517 extern "C"
12518 #endif
12519 char gethostbyname ();
12520 int
12521 main ()
12522 {
12523 return gethostbyname ();
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 if ac_fn_c_try_link "$LINENO"; then :
12529   ac_cv_lib_nsl_gethostbyname=yes
12530 else
12531   ac_cv_lib_nsl_gethostbyname=no
12532 fi
12533 rm -f core conftest.err conftest.$ac_objext \
12534     conftest$ac_exeext conftest.$ac_ext
12535 LIBS=$ac_check_lib_save_LIBS
12536 fi
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12538 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12539 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
12540   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12541 fi
12542
12543       if test $ac_cv_lib_nsl_gethostbyname = no; then
12544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
12545 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12546 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
12547   $as_echo_n "(cached) " >&6
12548 else
12549   ac_check_lib_save_LIBS=$LIBS
12550 LIBS="-lbsd  $LIBS"
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h.  */
12553
12554 /* Override any GCC internal prototype to avoid an error.
12555    Use char because int might match the return type of a GCC
12556    builtin and then its argument prototype would still apply.  */
12557 #ifdef __cplusplus
12558 extern "C"
12559 #endif
12560 char gethostbyname ();
12561 int
12562 main ()
12563 {
12564 return gethostbyname ();
12565   ;
12566   return 0;
12567 }
12568 _ACEOF
12569 if ac_fn_c_try_link "$LINENO"; then :
12570   ac_cv_lib_bsd_gethostbyname=yes
12571 else
12572   ac_cv_lib_bsd_gethostbyname=no
12573 fi
12574 rm -f core conftest.err conftest.$ac_objext \
12575     conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12577 fi
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
12579 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12580 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
12581   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12582 fi
12583
12584       fi
12585     fi
12586
12587     # lieder@skyler.mavd.honeywell.com says without -lsocket,
12588     # socket/setsockopt and other routines are undefined under SCO ODT
12589     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
12590     # on later versions), says Simon Leinen: it contains gethostby*
12591     # variants that don't use the name server (or something).  -lsocket
12592     # must be given before -lnsl if both are needed.  We assume that
12593     # if connect needs -lnsl, so does gethostbyname.
12594     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
12595 if test "x$ac_cv_func_connect" = x""yes; then :
12596
12597 fi
12598
12599     if test $ac_cv_func_connect = no; then
12600       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12601 $as_echo_n "checking for connect in -lsocket... " >&6; }
12602 if test "${ac_cv_lib_socket_connect+set}" = set; then :
12603   $as_echo_n "(cached) " >&6
12604 else
12605   ac_check_lib_save_LIBS=$LIBS
12606 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h.  */
12609
12610 /* Override any GCC internal prototype to avoid an error.
12611    Use char because int might match the return type of a GCC
12612    builtin and then its argument prototype would still apply.  */
12613 #ifdef __cplusplus
12614 extern "C"
12615 #endif
12616 char connect ();
12617 int
12618 main ()
12619 {
12620 return connect ();
12621   ;
12622   return 0;
12623 }
12624 _ACEOF
12625 if ac_fn_c_try_link "$LINENO"; then :
12626   ac_cv_lib_socket_connect=yes
12627 else
12628   ac_cv_lib_socket_connect=no
12629 fi
12630 rm -f core conftest.err conftest.$ac_objext \
12631     conftest$ac_exeext conftest.$ac_ext
12632 LIBS=$ac_check_lib_save_LIBS
12633 fi
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12635 $as_echo "$ac_cv_lib_socket_connect" >&6; }
12636 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
12637   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12638 fi
12639
12640     fi
12641
12642     # Guillermo Gomez says -lposix is necessary on A/UX.
12643     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
12644 if test "x$ac_cv_func_remove" = x""yes; then :
12645
12646 fi
12647
12648     if test $ac_cv_func_remove = no; then
12649       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
12650 $as_echo_n "checking for remove in -lposix... " >&6; }
12651 if test "${ac_cv_lib_posix_remove+set}" = set; then :
12652   $as_echo_n "(cached) " >&6
12653 else
12654   ac_check_lib_save_LIBS=$LIBS
12655 LIBS="-lposix  $LIBS"
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h.  */
12658
12659 /* Override any GCC internal prototype to avoid an error.
12660    Use char because int might match the return type of a GCC
12661    builtin and then its argument prototype would still apply.  */
12662 #ifdef __cplusplus
12663 extern "C"
12664 #endif
12665 char remove ();
12666 int
12667 main ()
12668 {
12669 return remove ();
12670   ;
12671   return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_c_try_link "$LINENO"; then :
12675   ac_cv_lib_posix_remove=yes
12676 else
12677   ac_cv_lib_posix_remove=no
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext \
12680     conftest$ac_exeext conftest.$ac_ext
12681 LIBS=$ac_check_lib_save_LIBS
12682 fi
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
12684 $as_echo "$ac_cv_lib_posix_remove" >&6; }
12685 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
12686   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12687 fi
12688
12689     fi
12690
12691     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12692     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
12693 if test "x$ac_cv_func_shmat" = x""yes; then :
12694
12695 fi
12696
12697     if test $ac_cv_func_shmat = no; then
12698       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
12699 $as_echo_n "checking for shmat in -lipc... " >&6; }
12700 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
12701   $as_echo_n "(cached) " >&6
12702 else
12703   ac_check_lib_save_LIBS=$LIBS
12704 LIBS="-lipc  $LIBS"
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h.  */
12707
12708 /* Override any GCC internal prototype to avoid an error.
12709    Use char because int might match the return type of a GCC
12710    builtin and then its argument prototype would still apply.  */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char shmat ();
12715 int
12716 main ()
12717 {
12718 return shmat ();
12719   ;
12720   return 0;
12721 }
12722 _ACEOF
12723 if ac_fn_c_try_link "$LINENO"; then :
12724   ac_cv_lib_ipc_shmat=yes
12725 else
12726   ac_cv_lib_ipc_shmat=no
12727 fi
12728 rm -f core conftest.err conftest.$ac_objext \
12729     conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
12733 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
12734 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
12735   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12736 fi
12737
12738     fi
12739   fi
12740
12741   # Check for libraries that X11R6 Xt/Xaw programs need.
12742   ac_save_LDFLAGS=$LDFLAGS
12743   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12744   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12745   # check for ICE first), but we must link in the order -lSM -lICE or
12746   # we get undefined symbols.  So assume we have SM if we have ICE.
12747   # These have to be linked with before -lX11, unlike the other
12748   # libraries we check for below, so use a different variable.
12749   # John Interrante, Karl Berry
12750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
12751 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
12752 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
12753   $as_echo_n "(cached) " >&6
12754 else
12755   ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h.  */
12759
12760 /* Override any GCC internal prototype to avoid an error.
12761    Use char because int might match the return type of a GCC
12762    builtin and then its argument prototype would still apply.  */
12763 #ifdef __cplusplus
12764 extern "C"
12765 #endif
12766 char IceConnectionNumber ();
12767 int
12768 main ()
12769 {
12770 return IceConnectionNumber ();
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 if ac_fn_c_try_link "$LINENO"; then :
12776   ac_cv_lib_ICE_IceConnectionNumber=yes
12777 else
12778   ac_cv_lib_ICE_IceConnectionNumber=no
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext \
12781     conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12783 fi
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12785 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12786 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
12787   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12788 fi
12789
12790   LDFLAGS=$ac_save_LDFLAGS
12791
12792 fi
12793
12794       conky_CFLAGS="$conky_CFLAGS $X_CFLAGS"
12795       conky_LIBS="$conky_LIBS $X_LIBS"
12796       conky_LDFLAGS="$conky_LDFLAGS $conky_LIBS $X_PRE_LIBS"
12797       if test "x$no_x" = "xyes"; then
12798         as_fn_error "Can't locate your X11 installation" "$LINENO" 5
12799       fi
12800       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
12801 $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
12802 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then :
12803   $as_echo_n "(cached) " >&6
12804 else
12805   ac_check_lib_save_LIBS=$LIBS
12806 LIBS="-lX11  $LIBS"
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h.  */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811    Use char because int might match the return type of a GCC
12812    builtin and then its argument prototype would still apply.  */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char XOpenDisplay ();
12817 int
12818 main ()
12819 {
12820 return XOpenDisplay ();
12821   ;
12822   return 0;
12823 }
12824 _ACEOF
12825 if ac_fn_c_try_link "$LINENO"; then :
12826   ac_cv_lib_X11_XOpenDisplay=yes
12827 else
12828   ac_cv_lib_X11_XOpenDisplay=no
12829 fi
12830 rm -f core conftest.err conftest.$ac_objext \
12831     conftest$ac_exeext conftest.$ac_ext
12832 LIBS=$ac_check_lib_save_LIBS
12833 fi
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12835 $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
12836 if test "x$ac_cv_lib_X11_XOpenDisplay" = x""yes; then :
12837   cat >>confdefs.h <<_ACEOF
12838 #define HAVE_LIBX11 1
12839 _ACEOF
12840
12841   LIBS="-lX11 $LIBS"
12842
12843 else
12844   as_fn_error "Could not find XOpenDisplay in -lX11" "$LINENO" 5
12845 fi
12846
12847     fi
12848
12849 $as_echo "#define X11 1" >>confdefs.h
12850
12851 fi
12852
12853
12854 # Check whether --enable-argb was given.
12855 if test "${enable_argb+set}" = set; then :
12856   enableval=$enable_argb; want_argb="$enableval"
12857 else
12858   want_argb=yes
12859 fi
12860
12861
12862 if test x$want_argb = xyes; then
12863     if test "x$want_x11" != "xyes"; then
12864                 want_argb=no
12865     else
12866
12867 $as_echo "#define USE_ARGB 1" >>confdefs.h
12868
12869     fi
12870 fi
12871
12872
12873 # Check whether --enable-imlib2 was given.
12874 if test "${enable_imlib2+set}" = set; then :
12875   enableval=$enable_imlib2; want_imlib2="$enableval"
12876 else
12877   want_imlib2=no
12878 fi
12879
12880 # Check whether --enable-lua-imlib2 was given.
12881 if test "${enable_lua_imlib2+set}" = set; then :
12882   enableval=$enable_lua_imlib2; want_lua_imlib2="$enableval"
12883 else
12884   want_lua_imlib2=no
12885 fi
12886
12887
12888 # if lua-imlib2 is enabled, we must force imlib2
12889 if test x$want_lua_imlib2 = xyes; then
12890         want_imlib2=yes
12891 fi
12892
12893 if test x$want_imlib2 = xyes; then
12894         if test "x$want_x11" != "xyes"; then
12895                                 want_imlib2=no
12896         else
12897
12898 pkg_failed=no
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Imlib2" >&5
12900 $as_echo_n "checking for Imlib2... " >&6; }
12901
12902 if test -n "$PKG_CONFIG"; then
12903     if test -n "$Imlib2_CFLAGS"; then
12904         pkg_cv_Imlib2_CFLAGS="$Imlib2_CFLAGS"
12905     else
12906         if test -n "$PKG_CONFIG" && \
12907     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5
12908   ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
12909   ac_status=$?
12910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12911   test $ac_status = 0; }; then
12912   pkg_cv_Imlib2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null`
12913 else
12914   pkg_failed=yes
12915 fi
12916     fi
12917 else
12918         pkg_failed=untried
12919 fi
12920 if test -n "$PKG_CONFIG"; then
12921     if test -n "$Imlib2_LIBS"; then
12922         pkg_cv_Imlib2_LIBS="$Imlib2_LIBS"
12923     else
12924         if test -n "$PKG_CONFIG" && \
12925     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5
12926   ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
12927   ac_status=$?
12928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12929   test $ac_status = 0; }; then
12930   pkg_cv_Imlib2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null`
12931 else
12932   pkg_failed=yes
12933 fi
12934     fi
12935 else
12936         pkg_failed=untried
12937 fi
12938
12939
12940
12941 if test $pkg_failed = yes; then
12942
12943 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12944         _pkg_short_errors_supported=yes
12945 else
12946         _pkg_short_errors_supported=no
12947 fi
12948         if test $_pkg_short_errors_supported = yes; then
12949                 Imlib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlib2"`
12950         else
12951                 Imlib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlib2"`
12952         fi
12953         # Put the nasty error message in config.log where it belongs
12954         echo "$Imlib2_PKG_ERRORS" >&5
12955
12956         as_fn_error "Package requirements (imlib2) were not met:
12957
12958 $Imlib2_PKG_ERRORS
12959
12960 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12961 installed software in a non-standard prefix.
12962
12963 Alternatively, you may set the environment variables Imlib2_CFLAGS
12964 and Imlib2_LIBS to avoid the need to call pkg-config.
12965 See the pkg-config man page for more details.
12966 " "$LINENO" 5
12967 elif test $pkg_failed = untried; then
12968         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12970 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12971 is in your PATH or set the PKG_CONFIG environment variable to the full
12972 path to pkg-config.
12973
12974 Alternatively, you may set the environment variables Imlib2_CFLAGS
12975 and Imlib2_LIBS to avoid the need to call pkg-config.
12976 See the pkg-config man page for more details.
12977
12978 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12979 See \`config.log' for more details." "$LINENO" 5; }
12980 else
12981         Imlib2_CFLAGS=$pkg_cv_Imlib2_CFLAGS
12982         Imlib2_LIBS=$pkg_cv_Imlib2_LIBS
12983         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12984 $as_echo "yes" >&6; }
12985         :
12986 fi
12987                 conky_CFLAGS="$conky_CFLAGS $Imlib2_CFLAGS"
12988                 conky_LIBS="$conky_LIBS $Imlib2_LIBS"
12989
12990 $as_echo "#define IMLIB2 1" >>confdefs.h
12991
12992         fi
12993 fi
12994  if test x$want_imlib2 = xyes; then
12995   BUILD_IMLIB2_TRUE=
12996   BUILD_IMLIB2_FALSE='#'
12997 else
12998   BUILD_IMLIB2_TRUE='#'
12999   BUILD_IMLIB2_FALSE=
13000 fi
13001
13002
13003
13004 # Check whether --enable-lua was given.
13005 if test "${enable_lua+set}" = set; then :
13006   enableval=$enable_lua; want_lua="$enableval"
13007 else
13008   want_lua=yes
13009 fi
13010
13011 # Check whether --enable-lua-cairo was given.
13012 if test "${enable_lua_cairo+set}" = set; then :
13013   enableval=$enable_lua_cairo; want_lua_cairo="$enableval"
13014 else
13015   want_lua_cairo=no
13016 fi
13017
13018 need_tolua=no
13019 if test x$want_lua_cairo = xyes -o x$want_lua_imlib2 = xyes; then
13020         need_tolua=yes
13021         want_lua=yes
13022 fi
13023
13024  if test x$want_lua = xyes; then
13025   BUILD_LUA_TRUE=
13026   BUILD_LUA_FALSE='#'
13027 else
13028   BUILD_LUA_TRUE='#'
13029   BUILD_LUA_FALSE=
13030 fi
13031
13032 if test x$want_lua = xyes; then
13033
13034 pkg_failed=no
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
13036 $as_echo_n "checking for LUA... " >&6; }
13037
13038 if test -n "$PKG_CONFIG"; then
13039     if test -n "$LUA_CFLAGS"; then
13040         pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
13041     else
13042         if test -n "$PKG_CONFIG" && \
13043     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13044   ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13045   ac_status=$?
13046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13047   test $ac_status = 0; }; then
13048   pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
13049 else
13050   pkg_failed=yes
13051 fi
13052     fi
13053 else
13054         pkg_failed=untried
13055 fi
13056 if test -n "$PKG_CONFIG"; then
13057     if test -n "$LUA_LIBS"; then
13058         pkg_cv_LUA_LIBS="$LUA_LIBS"
13059     else
13060         if test -n "$PKG_CONFIG" && \
13061     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13062   ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13063   ac_status=$?
13064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13065   test $ac_status = 0; }; then
13066   pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
13067 else
13068   pkg_failed=yes
13069 fi
13070     fi
13071 else
13072         pkg_failed=untried
13073 fi
13074
13075
13076
13077 if test $pkg_failed = yes; then
13078
13079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13080         _pkg_short_errors_supported=yes
13081 else
13082         _pkg_short_errors_supported=no
13083 fi
13084         if test $_pkg_short_errors_supported = yes; then
13085                 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua >= 5.1"`
13086         else
13087                 LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua >= 5.1"`
13088         fi
13089         # Put the nasty error message in config.log where it belongs
13090         echo "$LUA_PKG_ERRORS" >&5
13091
13092         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13094
13095
13096 pkg_failed=no
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13098 $as_echo_n "checking for LUA51... " >&6; }
13099
13100 if test -n "$PKG_CONFIG"; then
13101     if test -n "$LUA51_CFLAGS"; then
13102         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13103     else
13104         if test -n "$PKG_CONFIG" && \
13105     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
13106   ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
13107   ac_status=$?
13108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13109   test $ac_status = 0; }; then
13110   pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
13111 else
13112   pkg_failed=yes
13113 fi
13114     fi
13115 else
13116         pkg_failed=untried
13117 fi
13118 if test -n "$PKG_CONFIG"; then
13119     if test -n "$LUA51_LIBS"; then
13120         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13121     else
13122         if test -n "$PKG_CONFIG" && \
13123     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
13124   ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
13125   ac_status=$?
13126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13127   test $ac_status = 0; }; then
13128   pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
13129 else
13130   pkg_failed=yes
13131 fi
13132     fi
13133 else
13134         pkg_failed=untried
13135 fi
13136
13137
13138
13139 if test $pkg_failed = yes; then
13140
13141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13142         _pkg_short_errors_supported=yes
13143 else
13144         _pkg_short_errors_supported=no
13145 fi
13146         if test $_pkg_short_errors_supported = yes; then
13147                 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13148         else
13149                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13150         fi
13151         # Put the nasty error message in config.log where it belongs
13152         echo "$LUA51_PKG_ERRORS" >&5
13153
13154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13156
13157
13158 pkg_failed=no
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13160 $as_echo_n "checking for LUA51... " >&6; }
13161
13162 if test -n "$PKG_CONFIG"; then
13163     if test -n "$LUA51_CFLAGS"; then
13164         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13165     else
13166         if test -n "$PKG_CONFIG" && \
13167     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13168   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13169   ac_status=$?
13170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13171   test $ac_status = 0; }; then
13172   pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
13173 else
13174   pkg_failed=yes
13175 fi
13176     fi
13177 else
13178         pkg_failed=untried
13179 fi
13180 if test -n "$PKG_CONFIG"; then
13181     if test -n "$LUA51_LIBS"; then
13182         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13183     else
13184         if test -n "$PKG_CONFIG" && \
13185     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13186   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13187   ac_status=$?
13188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189   test $ac_status = 0; }; then
13190   pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
13191 else
13192   pkg_failed=yes
13193 fi
13194     fi
13195 else
13196         pkg_failed=untried
13197 fi
13198
13199
13200
13201 if test $pkg_failed = yes; then
13202
13203 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13204         _pkg_short_errors_supported=yes
13205 else
13206         _pkg_short_errors_supported=no
13207 fi
13208         if test $_pkg_short_errors_supported = yes; then
13209                 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13210         else
13211                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13212         fi
13213         # Put the nasty error message in config.log where it belongs
13214         echo "$LUA51_PKG_ERRORS" >&5
13215
13216         as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13217
13218 $LUA51_PKG_ERRORS
13219
13220 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13221 installed software in a non-standard prefix.
13222
13223 Alternatively, you may set the environment variables LUA51_CFLAGS
13224 and LUA51_LIBS to avoid the need to call pkg-config.
13225 See the pkg-config man page for more details.
13226 " "$LINENO" 5
13227 elif test $pkg_failed = untried; then
13228         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13230 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
13231 is in your PATH or set the PKG_CONFIG environment variable to the full
13232 path to pkg-config.
13233
13234 Alternatively, you may set the environment variables LUA51_CFLAGS
13235 and LUA51_LIBS to avoid the need to call pkg-config.
13236 See the pkg-config man page for more details.
13237
13238 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13239 See \`config.log' for more details." "$LINENO" 5; }
13240 else
13241         LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13242         LUA51_LIBS=$pkg_cv_LUA51_LIBS
13243         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13244 $as_echo "yes" >&6; }
13245         :
13246 fi
13247
13248 elif test $pkg_failed = untried; then
13249
13250
13251 pkg_failed=no
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13253 $as_echo_n "checking for LUA51... " >&6; }
13254
13255 if test -n "$PKG_CONFIG"; then
13256     if test -n "$LUA51_CFLAGS"; then
13257         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13258     else
13259         if test -n "$PKG_CONFIG" && \
13260     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13261   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13262   ac_status=$?
13263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13264   test $ac_status = 0; }; then
13265   pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
13266 else
13267   pkg_failed=yes
13268 fi
13269     fi
13270 else
13271         pkg_failed=untried
13272 fi
13273 if test -n "$PKG_CONFIG"; then
13274     if test -n "$LUA51_LIBS"; then
13275         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13276     else
13277         if test -n "$PKG_CONFIG" && \
13278     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13279   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13280   ac_status=$?
13281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13282   test $ac_status = 0; }; then
13283   pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
13284 else
13285   pkg_failed=yes
13286 fi
13287     fi
13288 else
13289         pkg_failed=untried
13290 fi
13291
13292
13293
13294 if test $pkg_failed = yes; then
13295
13296 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13297         _pkg_short_errors_supported=yes
13298 else
13299         _pkg_short_errors_supported=no
13300 fi
13301         if test $_pkg_short_errors_supported = yes; then
13302                 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13303         else
13304                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13305         fi
13306         # Put the nasty error message in config.log where it belongs
13307         echo "$LUA51_PKG_ERRORS" >&5
13308
13309         as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13310
13311 $LUA51_PKG_ERRORS
13312
13313 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13314 installed software in a non-standard prefix.
13315
13316 Alternatively, you may set the environment variables LUA51_CFLAGS
13317 and LUA51_LIBS to avoid the need to call pkg-config.
13318 See the pkg-config man page for more details.
13319 " "$LINENO" 5
13320 elif test $pkg_failed = untried; then
13321         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13323 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
13324 is in your PATH or set the PKG_CONFIG environment variable to the full
13325 path to pkg-config.
13326
13327 Alternatively, you may set the environment variables LUA51_CFLAGS
13328 and LUA51_LIBS to avoid the need to call pkg-config.
13329 See the pkg-config man page for more details.
13330
13331 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13332 See \`config.log' for more details." "$LINENO" 5; }
13333 else
13334         LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13335         LUA51_LIBS=$pkg_cv_LUA51_LIBS
13336         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13337 $as_echo "yes" >&6; }
13338         :
13339 fi
13340
13341 else
13342         LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13343         LUA51_LIBS=$pkg_cv_LUA51_LIBS
13344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13345 $as_echo "yes" >&6; }
13346
13347 fi
13348
13349 elif test $pkg_failed = untried; then
13350
13351
13352 pkg_failed=no
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13354 $as_echo_n "checking for LUA51... " >&6; }
13355
13356 if test -n "$PKG_CONFIG"; then
13357     if test -n "$LUA51_CFLAGS"; then
13358         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13359     else
13360         if test -n "$PKG_CONFIG" && \
13361     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
13362   ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
13363   ac_status=$?
13364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13365   test $ac_status = 0; }; then
13366   pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
13367 else
13368   pkg_failed=yes
13369 fi
13370     fi
13371 else
13372         pkg_failed=untried
13373 fi
13374 if test -n "$PKG_CONFIG"; then
13375     if test -n "$LUA51_LIBS"; then
13376         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13377     else
13378         if test -n "$PKG_CONFIG" && \
13379     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
13380   ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
13381   ac_status=$?
13382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13383   test $ac_status = 0; }; then
13384   pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
13385 else
13386   pkg_failed=yes
13387 fi
13388     fi
13389 else
13390         pkg_failed=untried
13391 fi
13392
13393
13394
13395 if test $pkg_failed = yes; then
13396
13397 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13398         _pkg_short_errors_supported=yes
13399 else
13400         _pkg_short_errors_supported=no
13401 fi
13402         if test $_pkg_short_errors_supported = yes; then
13403                 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13404         else
13405                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
13406         fi
13407         # Put the nasty error message in config.log where it belongs
13408         echo "$LUA51_PKG_ERRORS" >&5
13409
13410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13412
13413
13414 pkg_failed=no
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13416 $as_echo_n "checking for LUA51... " >&6; }
13417
13418 if test -n "$PKG_CONFIG"; then
13419     if test -n "$LUA51_CFLAGS"; then
13420         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13421     else
13422         if test -n "$PKG_CONFIG" && \
13423     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13424   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13425   ac_status=$?
13426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13427   test $ac_status = 0; }; then
13428   pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
13429 else
13430   pkg_failed=yes
13431 fi
13432     fi
13433 else
13434         pkg_failed=untried
13435 fi
13436 if test -n "$PKG_CONFIG"; then
13437     if test -n "$LUA51_LIBS"; then
13438         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13439     else
13440         if test -n "$PKG_CONFIG" && \
13441     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13442   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13443   ac_status=$?
13444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13445   test $ac_status = 0; }; then
13446   pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
13447 else
13448   pkg_failed=yes
13449 fi
13450     fi
13451 else
13452         pkg_failed=untried
13453 fi
13454
13455
13456
13457 if test $pkg_failed = yes; then
13458
13459 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13460         _pkg_short_errors_supported=yes
13461 else
13462         _pkg_short_errors_supported=no
13463 fi
13464         if test $_pkg_short_errors_supported = yes; then
13465                 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13466         else
13467                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13468         fi
13469         # Put the nasty error message in config.log where it belongs
13470         echo "$LUA51_PKG_ERRORS" >&5
13471
13472         as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13473
13474 $LUA51_PKG_ERRORS
13475
13476 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13477 installed software in a non-standard prefix.
13478
13479 Alternatively, you may set the environment variables LUA51_CFLAGS
13480 and LUA51_LIBS to avoid the need to call pkg-config.
13481 See the pkg-config man page for more details.
13482 " "$LINENO" 5
13483 elif test $pkg_failed = untried; then
13484         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13486 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
13487 is in your PATH or set the PKG_CONFIG environment variable to the full
13488 path to pkg-config.
13489
13490 Alternatively, you may set the environment variables LUA51_CFLAGS
13491 and LUA51_LIBS to avoid the need to call pkg-config.
13492 See the pkg-config man page for more details.
13493
13494 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13495 See \`config.log' for more details." "$LINENO" 5; }
13496 else
13497         LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13498         LUA51_LIBS=$pkg_cv_LUA51_LIBS
13499         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13500 $as_echo "yes" >&6; }
13501         :
13502 fi
13503
13504 elif test $pkg_failed = untried; then
13505
13506
13507 pkg_failed=no
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA51" >&5
13509 $as_echo_n "checking for LUA51... " >&6; }
13510
13511 if test -n "$PKG_CONFIG"; then
13512     if test -n "$LUA51_CFLAGS"; then
13513         pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
13514     else
13515         if test -n "$PKG_CONFIG" && \
13516     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13517   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13518   ac_status=$?
13519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13520   test $ac_status = 0; }; then
13521   pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
13522 else
13523   pkg_failed=yes
13524 fi
13525     fi
13526 else
13527         pkg_failed=untried
13528 fi
13529 if test -n "$PKG_CONFIG"; then
13530     if test -n "$LUA51_LIBS"; then
13531         pkg_cv_LUA51_LIBS="$LUA51_LIBS"
13532     else
13533         if test -n "$PKG_CONFIG" && \
13534     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
13535   ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
13536   ac_status=$?
13537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13538   test $ac_status = 0; }; then
13539   pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
13540 else
13541   pkg_failed=yes
13542 fi
13543     fi
13544 else
13545         pkg_failed=untried
13546 fi
13547
13548
13549
13550 if test $pkg_failed = yes; then
13551
13552 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13553         _pkg_short_errors_supported=yes
13554 else
13555         _pkg_short_errors_supported=no
13556 fi
13557         if test $_pkg_short_errors_supported = yes; then
13558                 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13559         else
13560                 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
13561         fi
13562         # Put the nasty error message in config.log where it belongs
13563         echo "$LUA51_PKG_ERRORS" >&5
13564
13565         as_fn_error "Package requirements (lua5.1 >= 5.1) were not met:
13566
13567 $LUA51_PKG_ERRORS
13568
13569 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13570 installed software in a non-standard prefix.
13571
13572 Alternatively, you may set the environment variables LUA51_CFLAGS
13573 and LUA51_LIBS to avoid the need to call pkg-config.
13574 See the pkg-config man page for more details.
13575 " "$LINENO" 5
13576 elif test $pkg_failed = untried; then
13577         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13579 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
13580 is in your PATH or set the PKG_CONFIG environment variable to the full
13581 path to pkg-config.
13582
13583 Alternatively, you may set the environment variables LUA51_CFLAGS
13584 and LUA51_LIBS to avoid the need to call pkg-config.
13585 See the pkg-config man page for more details.
13586
13587 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13588 See \`config.log' for more details." "$LINENO" 5; }
13589 else
13590         LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13591         LUA51_LIBS=$pkg_cv_LUA51_LIBS
13592         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13593 $as_echo "yes" >&6; }
13594         :
13595 fi
13596
13597 else
13598         LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
13599         LUA51_LIBS=$pkg_cv_LUA51_LIBS
13600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13601 $as_echo "yes" >&6; }
13602
13603 fi
13604
13605 else
13606         LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
13607         LUA_LIBS=$pkg_cv_LUA_LIBS
13608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13609 $as_echo "yes" >&6; }
13610
13611 fi
13612         conky_CFLAGS="$conky_CFLAGS $LUA_CFLAGS $LUA51_CFLAGS"
13613         conky_LIBS="$conky_LIBS $LUA_LIBS $LUA51_LIBS"
13614
13615         if test x$need_tolua = xyes; then
13616
13617 $as_echo "#define LUA_EXTRAS 1" >>confdefs.h
13618
13619                 if test "x$want_x11" != "xyes"; then
13620                                                 want_lua_cairo=no
13621                 else
13622                         if test x$want_lua_cairo = xyes; then
13623
13624 pkg_failed=no
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
13626 $as_echo_n "checking for cairo... " >&6; }
13627
13628 if test -n "$PKG_CONFIG"; then
13629     if test -n "$cairo_CFLAGS"; then
13630         pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
13631     else
13632         if test -n "$PKG_CONFIG" && \
13633     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
13634   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
13635   ac_status=$?
13636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13637   test $ac_status = 0; }; then
13638   pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
13639 else
13640   pkg_failed=yes
13641 fi
13642     fi
13643 else
13644         pkg_failed=untried
13645 fi
13646 if test -n "$PKG_CONFIG"; then
13647     if test -n "$cairo_LIBS"; then
13648         pkg_cv_cairo_LIBS="$cairo_LIBS"
13649     else
13650         if test -n "$PKG_CONFIG" && \
13651     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
13652   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
13653   ac_status=$?
13654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655   test $ac_status = 0; }; then
13656   pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
13657 else
13658   pkg_failed=yes
13659 fi
13660     fi
13661 else
13662         pkg_failed=untried
13663 fi
13664
13665
13666
13667 if test $pkg_failed = yes; then
13668
13669 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13670         _pkg_short_errors_supported=yes
13671 else
13672         _pkg_short_errors_supported=no
13673 fi
13674         if test $_pkg_short_errors_supported = yes; then
13675                 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
13676         else
13677                 cairo_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
13678         fi
13679         # Put the nasty error message in config.log where it belongs
13680         echo "$cairo_PKG_ERRORS" >&5
13681
13682         as_fn_error "Package requirements (cairo) were not met:
13683
13684 $cairo_PKG_ERRORS
13685
13686 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13687 installed software in a non-standard prefix.
13688
13689 Alternatively, you may set the environment variables cairo_CFLAGS
13690 and cairo_LIBS to avoid the need to call pkg-config.
13691 See the pkg-config man page for more details.
13692 " "$LINENO" 5
13693 elif test $pkg_failed = untried; then
13694         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13696 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
13697 is in your PATH or set the PKG_CONFIG environment variable to the full
13698 path to pkg-config.
13699
13700 Alternatively, you may set the environment variables cairo_CFLAGS
13701 and cairo_LIBS to avoid the need to call pkg-config.
13702 See the pkg-config man page for more details.
13703
13704 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13705 See \`config.log' for more details." "$LINENO" 5; }
13706 else
13707         cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
13708         cairo_LIBS=$pkg_cv_cairo_LIBS
13709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13710 $as_echo "yes" >&6; }
13711         :
13712 fi
13713
13714 pkg_failed=no
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_xlib" >&5
13716 $as_echo_n "checking for cairo_xlib... " >&6; }
13717
13718 if test -n "$PKG_CONFIG"; then
13719     if test -n "$cairo_xlib_CFLAGS"; then
13720         pkg_cv_cairo_xlib_CFLAGS="$cairo_xlib_CFLAGS"
13721     else
13722         if test -n "$PKG_CONFIG" && \
13723     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-xlib\""; } >&5
13724   ($PKG_CONFIG --exists --print-errors "cairo-xlib") 2>&5
13725   ac_status=$?
13726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13727   test $ac_status = 0; }; then
13728   pkg_cv_cairo_xlib_CFLAGS=`$PKG_CONFIG --cflags "cairo-xlib" 2>/dev/null`
13729 else
13730   pkg_failed=yes
13731 fi
13732     fi
13733 else
13734         pkg_failed=untried
13735 fi
13736 if test -n "$PKG_CONFIG"; then
13737     if test -n "$cairo_xlib_LIBS"; then
13738         pkg_cv_cairo_xlib_LIBS="$cairo_xlib_LIBS"
13739     else
13740         if test -n "$PKG_CONFIG" && \
13741     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-xlib\""; } >&5
13742   ($PKG_CONFIG --exists --print-errors "cairo-xlib") 2>&5
13743   ac_status=$?
13744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13745   test $ac_status = 0; }; then
13746   pkg_cv_cairo_xlib_LIBS=`$PKG_CONFIG --libs "cairo-xlib" 2>/dev/null`
13747 else
13748   pkg_failed=yes
13749 fi
13750     fi
13751 else
13752         pkg_failed=untried
13753 fi
13754
13755
13756
13757 if test $pkg_failed = yes; then
13758
13759 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13760         _pkg_short_errors_supported=yes
13761 else
13762         _pkg_short_errors_supported=no
13763 fi
13764         if test $_pkg_short_errors_supported = yes; then
13765                 cairo_xlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-xlib"`
13766         else
13767                 cairo_xlib_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-xlib"`
13768         fi
13769         # Put the nasty error message in config.log where it belongs
13770         echo "$cairo_xlib_PKG_ERRORS" >&5
13771
13772         as_fn_error "Package requirements (cairo-xlib) were not met:
13773
13774 $cairo_xlib_PKG_ERRORS
13775
13776 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13777 installed software in a non-standard prefix.
13778
13779 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
13780 and cairo_xlib_LIBS to avoid the need to call pkg-config.
13781 See the pkg-config man page for more details.
13782 " "$LINENO" 5
13783 elif test $pkg_failed = untried; then
13784         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13786 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
13787 is in your PATH or set the PKG_CONFIG environment variable to the full
13788 path to pkg-config.
13789
13790 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
13791 and cairo_xlib_LIBS to avoid the need to call pkg-config.
13792 See the pkg-config man page for more details.
13793
13794 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13795 See \`config.log' for more details." "$LINENO" 5; }
13796 else
13797         cairo_xlib_CFLAGS=$pkg_cv_cairo_xlib_CFLAGS
13798         cairo_xlib_LIBS=$pkg_cv_cairo_xlib_LIBS
13799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13800 $as_echo "yes" >&6; }
13801         :
13802 fi
13803
13804 $as_echo "#define HAVE_LUA_CAIRO 1" >>confdefs.h
13805
13806                                 libcairo_CFLAGS="$libcairo_CFLAGS $cairo_CFLAGS $cairo_xlib_CFLAGS"
13807                                 libcairo_LIBS="$libcairo_LIBS $cairo_LIBS $cairo_xlib_LIBS"
13808                         fi
13809                         if test x$want_imlib2 = xyes; then
13810
13811 $as_echo "#define HAVE_LUA_IMLIB2 1" >>confdefs.h
13812
13813                         fi
13814                 fi
13815                 for ac_prog in tolua++ tolua++5.1 tolua++-5.1
13816 do
13817   # Extract the first word of "$ac_prog", so it can be a program name with args.
13818 set dummy $ac_prog; ac_word=$2
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13820 $as_echo_n "checking for $ac_word... " >&6; }
13821 if test "${ac_cv_prog_toluapp+set}" = set; then :
13822   $as_echo_n "(cached) " >&6
13823 else
13824   if test -n "$toluapp"; then
13825   ac_cv_prog_toluapp="$toluapp" # Let the user override the test.
13826 else
13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828 for as_dir in $PATH
13829 do
13830   IFS=$as_save_IFS
13831   test -z "$as_dir" && as_dir=.
13832     for ac_exec_ext in '' $ac_executable_extensions; do
13833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13834     ac_cv_prog_toluapp="$ac_prog"
13835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13836     break 2
13837   fi
13838 done
13839   done
13840 IFS=$as_save_IFS
13841
13842 fi
13843 fi
13844 toluapp=$ac_cv_prog_toluapp
13845 if test -n "$toluapp"; then
13846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toluapp" >&5
13847 $as_echo "$toluapp" >&6; }
13848 else
13849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850 $as_echo "no" >&6; }
13851 fi
13852
13853
13854   test -n "$toluapp" && break
13855 done
13856 test -n "$toluapp" || toluapp="no"
13857
13858                 if test x$toluapp = xno; then
13859                         as_fn_error "tolua++, tolua++5.1, or tolua++-5.1 is required for Lua extras." "$LINENO" 5
13860                 else
13861                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tolua_error" >&5
13862 $as_echo_n "checking for library containing tolua_error... " >&6; }
13863 if test "${ac_cv_search_tolua_error+set}" = set; then :
13864   $as_echo_n "(cached) " >&6
13865 else
13866   ac_func_search_save_LIBS=$LIBS
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h.  */
13869
13870 /* Override any GCC internal prototype to avoid an error.
13871    Use char because int might match the return type of a GCC
13872    builtin and then its argument prototype would still apply.  */
13873 #ifdef __cplusplus
13874 extern "C"
13875 #endif
13876 char tolua_error ();
13877 int
13878 main ()
13879 {
13880 return tolua_error ();
13881   ;
13882   return 0;
13883 }
13884 _ACEOF
13885 for ac_lib in '' tolua++-5.1 tolua++ tolua++5.1; do
13886   if test -z "$ac_lib"; then
13887     ac_res="none required"
13888   else
13889     ac_res=-l$ac_lib
13890     LIBS="-l$ac_lib $LUA_LIBS $LUA51_LIBS $ac_func_search_save_LIBS"
13891   fi
13892   if ac_fn_c_try_link "$LINENO"; then :
13893   ac_cv_search_tolua_error=$ac_res
13894 fi
13895 rm -f core conftest.err conftest.$ac_objext \
13896     conftest$ac_exeext
13897   if test "${ac_cv_search_tolua_error+set}" = set; then :
13898   break
13899 fi
13900 done
13901 if test "${ac_cv_search_tolua_error+set}" = set; then :
13902
13903 else
13904   ac_cv_search_tolua_error=no
13905 fi
13906 rm conftest.$ac_ext
13907 LIBS=$ac_func_search_save_LIBS
13908 fi
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tolua_error" >&5
13910 $as_echo "$ac_cv_search_tolua_error" >&6; }
13911 ac_res=$ac_cv_search_tolua_error
13912 if test "$ac_res" != no; then :
13913   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13914
13915                                                         tolua_LIBS="${LIBS}"
13916
13917                                                         tolua_CFLAGS="${CFLAGS}"
13918
13919
13920 else
13921   as_fn_error "tolua_error not found" "$LINENO" 5
13922 fi
13923
13924                 fi
13925                 conky_LIBS="$conky_LIBS $tolua_LIBS"
13926                 tolua_CFLAGS="$tolua_CFLAGS $LUA_CFLAGS $LUA51_CFLAGS"
13927                 tolua_LIBS="$tolua_LIBS $LUA_LIBS $LUA51_LIBS"
13928         fi
13929
13930 $as_echo "#define HAVE_LUA 1" >>confdefs.h
13931
13932 fi
13933  if test x$want_lua_cairo = xyes; then
13934   BUILD_LUA_CAIRO_TRUE=
13935   BUILD_LUA_CAIRO_FALSE='#'
13936 else
13937   BUILD_LUA_CAIRO_TRUE='#'
13938   BUILD_LUA_CAIRO_FALSE=
13939 fi
13940
13941  if test x$want_lua_imlib2 = xyes; then
13942   BUILD_LUA_IMLIB2_TRUE=
13943   BUILD_LUA_IMLIB2_FALSE='#'
13944 else
13945   BUILD_LUA_IMLIB2_TRUE='#'
13946   BUILD_LUA_IMLIB2_FALSE=
13947 fi
13948
13949
13950
13951 # Check whether --enable-wlan was given.
13952 if test "${enable_wlan+set}" = set; then :
13953   enableval=$enable_wlan; want_wlan="$enableval"
13954 else
13955   want_wlan=no
13956 fi
13957
13958
13959  if test x$want_wlan = xyes; then
13960   BUILD_WLAN_TRUE=
13961   BUILD_WLAN_FALSE='#'
13962 else
13963   BUILD_WLAN_TRUE='#'
13964   BUILD_WLAN_FALSE=
13965 fi
13966
13967 if test x$want_wlan = xyes; then
13968   for ac_header in iwlib.h
13969 do :
13970   ac_fn_c_check_header_mongrel "$LINENO" "iwlib.h" "ac_cv_header_iwlib_h" "$ac_includes_default"
13971 if test "x$ac_cv_header_iwlib_h" = x""yes; then :
13972   cat >>confdefs.h <<_ACEOF
13973 #define HAVE_IWLIB_H 1
13974 _ACEOF
13975
13976 else
13977   as_fn_error "iwlib.h header not found" "$LINENO" 5
13978 fi
13979
13980 done
13981
13982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iw_sockets_open in -liw" >&5
13983 $as_echo_n "checking for iw_sockets_open in -liw... " >&6; }
13984 if test "${ac_cv_lib_iw_iw_sockets_open+set}" = set; then :
13985   $as_echo_n "(cached) " >&6
13986 else
13987   ac_check_lib_save_LIBS=$LIBS
13988 LIBS="-liw $conky_LIBS $LIBS"
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h.  */
13991
13992 /* Override any GCC internal prototype to avoid an error.
13993    Use char because int might match the return type of a GCC
13994    builtin and then its argument prototype would still apply.  */
13995 #ifdef __cplusplus
13996 extern "C"
13997 #endif
13998 char iw_sockets_open ();
13999 int
14000 main ()
14001 {
14002 return iw_sockets_open ();
14003   ;
14004   return 0;
14005 }
14006 _ACEOF
14007 if ac_fn_c_try_link "$LINENO"; then :
14008   ac_cv_lib_iw_iw_sockets_open=yes
14009 else
14010   ac_cv_lib_iw_iw_sockets_open=no
14011 fi
14012 rm -f core conftest.err conftest.$ac_objext \
14013     conftest$ac_exeext conftest.$ac_ext
14014 LIBS=$ac_check_lib_save_LIBS
14015 fi
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iw_iw_sockets_open" >&5
14017 $as_echo "$ac_cv_lib_iw_iw_sockets_open" >&6; }
14018 if test "x$ac_cv_lib_iw_iw_sockets_open" = x""yes; then :
14019   conky_LIBS="-liw $conky_LIBS"
14020 else
14021   as_fn_error "iw_sockets_open not found" "$LINENO" 5
14022 fi
14023
14024
14025 $as_echo "#define HAVE_IWLIB 1" >>confdefs.h
14026
14027 fi
14028
14029
14030 # Check whether --enable-portmon was given.
14031 if test "${enable_portmon+set}" = set; then :
14032   enableval=$enable_portmon; want_portmon="$enableval"
14033 else
14034   want_portmon=yes
14035 fi
14036
14037
14038 if test x"$want_portmon" = xyes; then
14039   if test x"$uname" != xLinux; then
14040       { $as_echo "$as_me:${as_lineno-$LINENO}: port monitors not supported on $uname... disabling" >&5
14041 $as_echo "$as_me: port monitors not supported on $uname... disabling" >&6;}
14042       want_portmon="not supported on $uname"
14043   else
14044         for ac_func in getnameinfo
14045 do :
14046   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
14047 if test "x$ac_cv_func_getnameinfo" = x""yes; then :
14048   cat >>confdefs.h <<_ACEOF
14049 #define HAVE_GETNAMEINFO 1
14050 _ACEOF
14051
14052 else
14053   as_fn_error "getnameinfo function not found" "$LINENO" 5
14054 fi
14055 done
14056
14057         for ac_header in netdb.h netinet/in.h netinet/tcp.h sys/socket.h arpa/inet.h
14058 do :
14059   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14060 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14061 eval as_val=\$$as_ac_Header
14062    if test "x$as_val" = x""yes; then :
14063   cat >>confdefs.h <<_ACEOF
14064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14065 _ACEOF
14066
14067 else
14068   PORT_MONITORS_MISSING=yes
14069 fi
14070
14071 done
14072
14073         if test x"$PORT_MONITORS_MISSING" = xyes; then
14074               as_fn_error "missing a needed network header for port monitoring" "$LINENO" 5
14075         fi
14076         WANT_GLIB=yes
14077
14078 $as_echo "#define TCP_PORT_MONITOR 1" >>confdefs.h
14079
14080   fi
14081 fi
14082  if test x"$want_portmon" = xyes; then
14083   BUILD_PORT_MONITORS_TRUE=
14084   BUILD_PORT_MONITORS_FALSE='#'
14085 else
14086   BUILD_PORT_MONITORS_TRUE='#'
14087   BUILD_PORT_MONITORS_FALSE=
14088 fi
14089
14090
14091
14092
14093
14094
14095       if test "X$prefix" = "XNONE"; then
14096     acl_final_prefix="$ac_default_prefix"
14097   else
14098     acl_final_prefix="$prefix"
14099   fi
14100   if test "X$exec_prefix" = "XNONE"; then
14101     acl_final_exec_prefix='${prefix}'
14102   else
14103     acl_final_exec_prefix="$exec_prefix"
14104   fi
14105   acl_save_prefix="$prefix"
14106   prefix="$acl_final_prefix"
14107   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14108   prefix="$acl_save_prefix"
14109
14110
14111 # Check whether --with-gnu-ld was given.
14112 if test "${with_gnu_ld+set}" = set; then :
14113   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14114 else
14115   with_gnu_ld=no
14116 fi
14117
14118 # Prepare PATH_SEPARATOR.
14119 # The user is always right.
14120 if test "${PATH_SEPARATOR+set}" != set; then
14121   echo "#! /bin/sh" >conf$$.sh
14122   echo  "exit 0"   >>conf$$.sh
14123   chmod +x conf$$.sh
14124   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14125     PATH_SEPARATOR=';'
14126   else
14127     PATH_SEPARATOR=:
14128   fi
14129   rm -f conf$$.sh
14130 fi
14131 ac_prog=ld
14132 if test "$GCC" = yes; then
14133   # Check if gcc -print-prog-name=ld gives a path.
14134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14135 $as_echo_n "checking for ld used by GCC... " >&6; }
14136   case $host in
14137   *-*-mingw*)
14138     # gcc leaves a trailing carriage return which upsets mingw
14139     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14140   *)
14141     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14142   esac
14143   case $ac_prog in
14144     # Accept absolute paths.
14145     [\\/]* | [A-Za-z]:[\\/]*)
14146       re_direlt='/[^/][^/]*/\.\./'
14147       # Canonicalize the path of ld
14148       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14149       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14150         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14151       done
14152       test -z "$LD" && LD="$ac_prog"
14153       ;;
14154   "")
14155     # If it fails, then pretend we aren't using GCC.
14156     ac_prog=ld
14157     ;;
14158   *)
14159     # If it is relative, then search for the first ld in PATH.
14160     with_gnu_ld=unknown
14161     ;;
14162   esac
14163 elif test "$with_gnu_ld" = yes; then
14164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14165 $as_echo_n "checking for GNU ld... " >&6; }
14166 else
14167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14168 $as_echo_n "checking for non-GNU ld... " >&6; }
14169 fi
14170 if test "${acl_cv_path_LD+set}" = set; then :
14171   $as_echo_n "(cached) " >&6
14172 else
14173   if test -z "$LD"; then
14174   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14175   for ac_dir in $PATH; do
14176     test -z "$ac_dir" && ac_dir=.
14177     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14178       acl_cv_path_LD="$ac_dir/$ac_prog"
14179       # Check to see if the program is GNU ld.  I'd rather use --version,
14180       # but apparently some GNU ld's only accept -v.
14181       # Break only if it was the GNU/non-GNU ld that we prefer.
14182       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14183       *GNU* | *'with BFD'*)
14184         test "$with_gnu_ld" != no && break ;;
14185       *)
14186         test "$with_gnu_ld" != yes && break ;;
14187       esac
14188     fi
14189   done
14190   IFS="$ac_save_ifs"
14191 else
14192   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14193 fi
14194 fi
14195
14196 LD="$acl_cv_path_LD"
14197 if test -n "$LD"; then
14198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14199 $as_echo "$LD" >&6; }
14200 else
14201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14202 $as_echo "no" >&6; }
14203 fi
14204 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14206 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14207 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14208   $as_echo_n "(cached) " >&6
14209 else
14210   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14211 case `$LD -v 2>&1 </dev/null` in
14212 *GNU* | *'with BFD'*)
14213   acl_cv_prog_gnu_ld=yes ;;
14214 *)
14215   acl_cv_prog_gnu_ld=no ;;
14216 esac
14217 fi
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14219 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14220 with_gnu_ld=$acl_cv_prog_gnu_ld
14221
14222
14223
14224
14225                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14226 $as_echo_n "checking for shared library run path origin... " >&6; }
14227 if test "${acl_cv_rpath+set}" = set; then :
14228   $as_echo_n "(cached) " >&6
14229 else
14230
14231     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14232     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14233     . ./conftest.sh
14234     rm -f ./conftest.sh
14235     acl_cv_rpath=done
14236
14237 fi
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14239 $as_echo "$acl_cv_rpath" >&6; }
14240   wl="$acl_cv_wl"
14241   acl_libext="$acl_cv_libext"
14242   acl_shlibext="$acl_cv_shlibext"
14243   acl_libname_spec="$acl_cv_libname_spec"
14244   acl_library_names_spec="$acl_cv_library_names_spec"
14245   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14246   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14247   acl_hardcode_direct="$acl_cv_hardcode_direct"
14248   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14249     # Check whether --enable-rpath was given.
14250 if test "${enable_rpath+set}" = set; then :
14251   enableval=$enable_rpath; :
14252 else
14253   enable_rpath=yes
14254 fi
14255
14256
14257
14258                   acl_libdirstem=lib
14259   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14260   if test -n "$searchpath"; then
14261     acl_save_IFS="${IFS=        }"; IFS=":"
14262     for searchdir in $searchpath; do
14263       if test -d "$searchdir"; then
14264         case "$searchdir" in
14265           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14266           *) searchdir=`cd "$searchdir" && pwd`
14267              case "$searchdir" in
14268                */lib64 ) acl_libdirstem=lib64 ;;
14269              esac ;;
14270         esac
14271       fi
14272     done
14273     IFS="$acl_save_IFS"
14274   fi
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284     use_additional=yes
14285
14286   acl_save_prefix="$prefix"
14287   prefix="$acl_final_prefix"
14288   acl_save_exec_prefix="$exec_prefix"
14289   exec_prefix="$acl_final_exec_prefix"
14290
14291     eval additional_includedir=\"$includedir\"
14292     eval additional_libdir=\"$libdir\"
14293
14294   exec_prefix="$acl_save_exec_prefix"
14295   prefix="$acl_save_prefix"
14296
14297
14298 # Check whether --with-libiconv-prefix was given.
14299 if test "${with_libiconv_prefix+set}" = set; then :
14300   withval=$with_libiconv_prefix;
14301     if test "X$withval" = "Xno"; then
14302       use_additional=no
14303     else
14304       if test "X$withval" = "X"; then
14305
14306   acl_save_prefix="$prefix"
14307   prefix="$acl_final_prefix"
14308   acl_save_exec_prefix="$exec_prefix"
14309   exec_prefix="$acl_final_exec_prefix"
14310
14311           eval additional_includedir=\"$includedir\"
14312           eval additional_libdir=\"$libdir\"
14313
14314   exec_prefix="$acl_save_exec_prefix"
14315   prefix="$acl_save_prefix"
14316
14317       else
14318         additional_includedir="$withval/include"
14319         additional_libdir="$withval/$acl_libdirstem"
14320       fi
14321     fi
14322
14323 fi
14324
14325       LIBICONV=
14326   LTLIBICONV=
14327   INCICONV=
14328   LIBICONV_PREFIX=
14329   rpathdirs=
14330   ltrpathdirs=
14331   names_already_handled=
14332   names_next_round='iconv '
14333   while test -n "$names_next_round"; do
14334     names_this_round="$names_next_round"
14335     names_next_round=
14336     for name in $names_this_round; do
14337       already_handled=
14338       for n in $names_already_handled; do
14339         if test "$n" = "$name"; then
14340           already_handled=yes
14341           break
14342         fi
14343       done
14344       if test -z "$already_handled"; then
14345         names_already_handled="$names_already_handled $name"
14346                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14347         eval value=\"\$HAVE_LIB$uppername\"
14348         if test -n "$value"; then
14349           if test "$value" = yes; then
14350             eval value=\"\$LIB$uppername\"
14351             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14352             eval value=\"\$LTLIB$uppername\"
14353             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14354           else
14355                                     :
14356           fi
14357         else
14358                               found_dir=
14359           found_la=
14360           found_so=
14361           found_a=
14362           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14363           if test -n "$acl_shlibext"; then
14364             shrext=".$acl_shlibext"             # typically: shrext=.so
14365           else
14366             shrext=
14367           fi
14368           if test $use_additional = yes; then
14369             dir="$additional_libdir"
14370                                     if test -n "$acl_shlibext"; then
14371               if test -f "$dir/$libname$shrext"; then
14372                 found_dir="$dir"
14373                 found_so="$dir/$libname$shrext"
14374               else
14375                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14376                   ver=`(cd "$dir" && \
14377                         for f in "$libname$shrext".*; do echo "$f"; done \
14378                         | sed -e "s,^$libname$shrext\\\\.,," \
14379                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14380                         | sed 1q ) 2>/dev/null`
14381                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14382                     found_dir="$dir"
14383                     found_so="$dir/$libname$shrext.$ver"
14384                   fi
14385                 else
14386                   eval library_names=\"$acl_library_names_spec\"
14387                   for f in $library_names; do
14388                     if test -f "$dir/$f"; then
14389                       found_dir="$dir"
14390                       found_so="$dir/$f"
14391                       break
14392                     fi
14393                   done
14394                 fi
14395               fi
14396             fi
14397                         if test "X$found_dir" = "X"; then
14398               if test -f "$dir/$libname.$acl_libext"; then
14399                 found_dir="$dir"
14400                 found_a="$dir/$libname.$acl_libext"
14401               fi
14402             fi
14403             if test "X$found_dir" != "X"; then
14404               if test -f "$dir/$libname.la"; then
14405                 found_la="$dir/$libname.la"
14406               fi
14407             fi
14408           fi
14409           if test "X$found_dir" = "X"; then
14410             for x in $LDFLAGS $LTLIBICONV; do
14411
14412   acl_save_prefix="$prefix"
14413   prefix="$acl_final_prefix"
14414   acl_save_exec_prefix="$exec_prefix"
14415   exec_prefix="$acl_final_exec_prefix"
14416   eval x=\"$x\"
14417   exec_prefix="$acl_save_exec_prefix"
14418   prefix="$acl_save_prefix"
14419
14420               case "$x" in
14421                 -L*)
14422                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14423                                     if test -n "$acl_shlibext"; then
14424                     if test -f "$dir/$libname$shrext"; then
14425                       found_dir="$dir"
14426                       found_so="$dir/$libname$shrext"
14427                     else
14428                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14429                         ver=`(cd "$dir" && \
14430                               for f in "$libname$shrext".*; do echo "$f"; done \
14431                               | sed -e "s,^$libname$shrext\\\\.,," \
14432                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14433                               | sed 1q ) 2>/dev/null`
14434                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14435                           found_dir="$dir"
14436                           found_so="$dir/$libname$shrext.$ver"
14437                         fi
14438                       else
14439                         eval library_names=\"$acl_library_names_spec\"
14440                         for f in $library_names; do
14441                           if test -f "$dir/$f"; then
14442                             found_dir="$dir"
14443                             found_so="$dir/$f"
14444                             break
14445                           fi
14446                         done
14447                       fi
14448                     fi
14449                   fi
14450                                     if test "X$found_dir" = "X"; then
14451                     if test -f "$dir/$libname.$acl_libext"; then
14452                       found_dir="$dir"
14453                       found_a="$dir/$libname.$acl_libext"
14454                     fi
14455                   fi
14456                   if test "X$found_dir" != "X"; then
14457                     if test -f "$dir/$libname.la"; then
14458                       found_la="$dir/$libname.la"
14459                     fi
14460                   fi
14461                   ;;
14462               esac
14463               if test "X$found_dir" != "X"; then
14464                 break
14465               fi
14466             done
14467           fi
14468           if test "X$found_dir" != "X"; then
14469                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14470             if test "X$found_so" != "X"; then
14471                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14472                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14473               else
14474                                                                                 haveit=
14475                 for x in $ltrpathdirs; do
14476                   if test "X$x" = "X$found_dir"; then
14477                     haveit=yes
14478                     break
14479                   fi
14480                 done
14481                 if test -z "$haveit"; then
14482                   ltrpathdirs="$ltrpathdirs $found_dir"
14483                 fi
14484                                 if test "$acl_hardcode_direct" = yes; then
14485                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14486                 else
14487                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14488                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14489                                                             haveit=
14490                     for x in $rpathdirs; do
14491                       if test "X$x" = "X$found_dir"; then
14492                         haveit=yes
14493                         break
14494                       fi
14495                     done
14496                     if test -z "$haveit"; then
14497                       rpathdirs="$rpathdirs $found_dir"
14498                     fi
14499                   else
14500                                                                                 haveit=
14501                     for x in $LDFLAGS $LIBICONV; do
14502
14503   acl_save_prefix="$prefix"
14504   prefix="$acl_final_prefix"
14505   acl_save_exec_prefix="$exec_prefix"
14506   exec_prefix="$acl_final_exec_prefix"
14507   eval x=\"$x\"
14508   exec_prefix="$acl_save_exec_prefix"
14509   prefix="$acl_save_prefix"
14510
14511                       if test "X$x" = "X-L$found_dir"; then
14512                         haveit=yes
14513                         break
14514                       fi
14515                     done
14516                     if test -z "$haveit"; then
14517                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14518                     fi
14519                     if test "$acl_hardcode_minus_L" != no; then
14520                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14521                     else
14522                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14523                     fi
14524                   fi
14525                 fi
14526               fi
14527             else
14528               if test "X$found_a" != "X"; then
14529                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14530               else
14531                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14532               fi
14533             fi
14534                         additional_includedir=
14535             case "$found_dir" in
14536               */$acl_libdirstem | */$acl_libdirstem/)
14537                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14538                 LIBICONV_PREFIX="$basedir"
14539                 additional_includedir="$basedir/include"
14540                 ;;
14541             esac
14542             if test "X$additional_includedir" != "X"; then
14543                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14544                 haveit=
14545                 if test "X$additional_includedir" = "X/usr/local/include"; then
14546                   if test -n "$GCC"; then
14547                     case $host_os in
14548                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14549                     esac
14550                   fi
14551                 fi
14552                 if test -z "$haveit"; then
14553                   for x in $CPPFLAGS $INCICONV; do
14554
14555   acl_save_prefix="$prefix"
14556   prefix="$acl_final_prefix"
14557   acl_save_exec_prefix="$exec_prefix"
14558   exec_prefix="$acl_final_exec_prefix"
14559   eval x=\"$x\"
14560   exec_prefix="$acl_save_exec_prefix"
14561   prefix="$acl_save_prefix"
14562
14563                     if test "X$x" = "X-I$additional_includedir"; then
14564                       haveit=yes
14565                       break
14566                     fi
14567                   done
14568                   if test -z "$haveit"; then
14569                     if test -d "$additional_includedir"; then
14570                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14571                     fi
14572                   fi
14573                 fi
14574               fi
14575             fi
14576                         if test -n "$found_la"; then
14577                                                         save_libdir="$libdir"
14578               case "$found_la" in
14579                 */* | *\\*) . "$found_la" ;;
14580                 *) . "./$found_la" ;;
14581               esac
14582               libdir="$save_libdir"
14583                             for dep in $dependency_libs; do
14584                 case "$dep" in
14585                   -L*)
14586                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14587                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14588                       haveit=
14589                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14590                         if test -n "$GCC"; then
14591                           case $host_os in
14592                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14593                           esac
14594                         fi
14595                       fi
14596                       if test -z "$haveit"; then
14597                         haveit=
14598                         for x in $LDFLAGS $LIBICONV; do
14599
14600   acl_save_prefix="$prefix"
14601   prefix="$acl_final_prefix"
14602   acl_save_exec_prefix="$exec_prefix"
14603   exec_prefix="$acl_final_exec_prefix"
14604   eval x=\"$x\"
14605   exec_prefix="$acl_save_exec_prefix"
14606   prefix="$acl_save_prefix"
14607
14608                           if test "X$x" = "X-L$additional_libdir"; then
14609                             haveit=yes
14610                             break
14611                           fi
14612                         done
14613                         if test -z "$haveit"; then
14614                           if test -d "$additional_libdir"; then
14615                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14616                           fi
14617                         fi
14618                         haveit=
14619                         for x in $LDFLAGS $LTLIBICONV; do
14620
14621   acl_save_prefix="$prefix"
14622   prefix="$acl_final_prefix"
14623   acl_save_exec_prefix="$exec_prefix"
14624   exec_prefix="$acl_final_exec_prefix"
14625   eval x=\"$x\"
14626   exec_prefix="$acl_save_exec_prefix"
14627   prefix="$acl_save_prefix"
14628
14629                           if test "X$x" = "X-L$additional_libdir"; then
14630                             haveit=yes
14631                             break
14632                           fi
14633                         done
14634                         if test -z "$haveit"; then
14635                           if test -d "$additional_libdir"; then
14636                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14637                           fi
14638                         fi
14639                       fi
14640                     fi
14641                     ;;
14642                   -R*)
14643                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14644                     if test "$enable_rpath" != no; then
14645                                                                   haveit=
14646                       for x in $rpathdirs; do
14647                         if test "X$x" = "X$dir"; then
14648                           haveit=yes
14649                           break
14650                         fi
14651                       done
14652                       if test -z "$haveit"; then
14653                         rpathdirs="$rpathdirs $dir"
14654                       fi
14655                                                                   haveit=
14656                       for x in $ltrpathdirs; do
14657                         if test "X$x" = "X$dir"; then
14658                           haveit=yes
14659                           break
14660                         fi
14661                       done
14662                       if test -z "$haveit"; then
14663                         ltrpathdirs="$ltrpathdirs $dir"
14664                       fi
14665                     fi
14666                     ;;
14667                   -l*)
14668                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14669                     ;;
14670                   *.la)
14671                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14672                     ;;
14673                   *)
14674                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14675                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14676                     ;;
14677                 esac
14678               done
14679             fi
14680           else
14681                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14682             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14683           fi
14684         fi
14685       fi
14686     done
14687   done
14688   if test "X$rpathdirs" != "X"; then
14689     if test -n "$acl_hardcode_libdir_separator"; then
14690                         alldirs=
14691       for found_dir in $rpathdirs; do
14692         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14693       done
14694             acl_save_libdir="$libdir"
14695       libdir="$alldirs"
14696       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14697       libdir="$acl_save_libdir"
14698       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14699     else
14700             for found_dir in $rpathdirs; do
14701         acl_save_libdir="$libdir"
14702         libdir="$found_dir"
14703         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14704         libdir="$acl_save_libdir"
14705         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14706       done
14707     fi
14708   fi
14709   if test "X$ltrpathdirs" != "X"; then
14710             for found_dir in $ltrpathdirs; do
14711       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14712     done
14713   fi
14714
14715
14716
14717
14718
14719
14720
14721           am_save_CPPFLAGS="$CPPFLAGS"
14722
14723   for element in $INCICONV; do
14724     haveit=
14725     for x in $CPPFLAGS; do
14726
14727   acl_save_prefix="$prefix"
14728   prefix="$acl_final_prefix"
14729   acl_save_exec_prefix="$exec_prefix"
14730   exec_prefix="$acl_final_exec_prefix"
14731   eval x=\"$x\"
14732   exec_prefix="$acl_save_exec_prefix"
14733   prefix="$acl_save_prefix"
14734
14735       if test "X$x" = "X$element"; then
14736         haveit=yes
14737         break
14738       fi
14739     done
14740     if test -z "$haveit"; then
14741       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14742     fi
14743   done
14744
14745
14746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14747 $as_echo_n "checking for iconv... " >&6; }
14748 if test "${am_cv_func_iconv+set}" = set; then :
14749   $as_echo_n "(cached) " >&6
14750 else
14751
14752     am_cv_func_iconv="no, consider installing GNU libiconv"
14753     am_cv_lib_iconv=no
14754     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h.  */
14756 #include <stdlib.h>
14757 #include <iconv.h>
14758 int
14759 main ()
14760 {
14761 iconv_t cd = iconv_open("","");
14762        iconv(cd,NULL,NULL,NULL,NULL);
14763        iconv_close(cd);
14764   ;
14765   return 0;
14766 }
14767 _ACEOF
14768 if ac_fn_c_try_link "$LINENO"; then :
14769   am_cv_func_iconv=yes
14770 fi
14771 rm -f core conftest.err conftest.$ac_objext \
14772     conftest$ac_exeext conftest.$ac_ext
14773     if test "$am_cv_func_iconv" != yes; then
14774       am_save_LIBS="$LIBS"
14775       LIBS="$LIBS $LIBICONV"
14776       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h.  */
14778 #include <stdlib.h>
14779 #include <iconv.h>
14780 int
14781 main ()
14782 {
14783 iconv_t cd = iconv_open("","");
14784          iconv(cd,NULL,NULL,NULL,NULL);
14785          iconv_close(cd);
14786   ;
14787   return 0;
14788 }
14789 _ACEOF
14790 if ac_fn_c_try_link "$LINENO"; then :
14791   am_cv_lib_iconv=yes
14792         am_cv_func_iconv=yes
14793 fi
14794 rm -f core conftest.err conftest.$ac_objext \
14795     conftest$ac_exeext conftest.$ac_ext
14796       LIBS="$am_save_LIBS"
14797     fi
14798
14799 fi
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14801 $as_echo "$am_cv_func_iconv" >&6; }
14802   if test "$am_cv_func_iconv" = yes; then
14803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14804 $as_echo_n "checking for working iconv... " >&6; }
14805 if test "${am_cv_func_iconv_works+set}" = set; then :
14806   $as_echo_n "(cached) " >&6
14807 else
14808
14809             am_save_LIBS="$LIBS"
14810       if test $am_cv_lib_iconv = yes; then
14811         LIBS="$LIBS $LIBICONV"
14812       fi
14813       if test "$cross_compiling" = yes; then :
14814   case "$host_os" in
14815            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14816            *)            am_cv_func_iconv_works="guessing yes" ;;
14817          esac
14818 else
14819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h.  */
14821
14822 #include <iconv.h>
14823 #include <string.h>
14824 int main ()
14825 {
14826   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14827      returns.  */
14828   {
14829     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14830     if (cd_utf8_to_88591 != (iconv_t)(-1))
14831       {
14832         static const char input[] = "\342\202\254"; /* EURO SIGN */
14833         char buf[10];
14834         const char *inptr = input;
14835         size_t inbytesleft = strlen (input);
14836         char *outptr = buf;
14837         size_t outbytesleft = sizeof (buf);
14838         size_t res = iconv (cd_utf8_to_88591,
14839                             (char **) &inptr, &inbytesleft,
14840                             &outptr, &outbytesleft);
14841         if (res == 0)
14842           return 1;
14843       }
14844   }
14845 #if 0 /* This bug could be worked around by the caller.  */
14846   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
14847   {
14848     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14849     if (cd_88591_to_utf8 != (iconv_t)(-1))
14850       {
14851         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14852         char buf[50];
14853         const char *inptr = input;
14854         size_t inbytesleft = strlen (input);
14855         char *outptr = buf;
14856         size_t outbytesleft = sizeof (buf);
14857         size_t res = iconv (cd_88591_to_utf8,
14858                             (char **) &inptr, &inbytesleft,
14859                             &outptr, &outbytesleft);
14860         if ((int)res > 0)
14861           return 1;
14862       }
14863   }
14864 #endif
14865   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14866      provided.  */
14867   if (/* Try standardized names.  */
14868       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14869       /* Try IRIX, OSF/1 names.  */
14870       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14871       /* Try AIX names.  */
14872       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14873       /* Try HP-UX names.  */
14874       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14875     return 1;
14876   return 0;
14877 }
14878 _ACEOF
14879 if ac_fn_c_try_run "$LINENO"; then :
14880   am_cv_func_iconv_works=yes
14881 else
14882   am_cv_func_iconv_works=no
14883 fi
14884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14885   conftest.$ac_objext conftest.beam conftest.$ac_ext
14886 fi
14887
14888       LIBS="$am_save_LIBS"
14889
14890 fi
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14892 $as_echo "$am_cv_func_iconv_works" >&6; }
14893     case "$am_cv_func_iconv_works" in
14894       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14895       *)   am_func_iconv=yes ;;
14896     esac
14897   else
14898     am_func_iconv=no am_cv_lib_iconv=no
14899   fi
14900   if test "$am_func_iconv" = yes; then
14901
14902 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14903
14904   fi
14905   if test "$am_cv_lib_iconv" = yes; then
14906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14907 $as_echo_n "checking how to link with libiconv... " >&6; }
14908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14909 $as_echo "$LIBICONV" >&6; }
14910   else
14911             CPPFLAGS="$am_save_CPPFLAGS"
14912     LIBICONV=
14913     LTLIBICONV=
14914   fi
14915
14916
14917
14918   if test "$am_cv_func_iconv" = yes; then
14919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14920 $as_echo_n "checking for iconv declaration... " >&6; }
14921     if test "${am_cv_proto_iconv+set}" = set; then :
14922   $as_echo_n "(cached) " >&6
14923 else
14924
14925       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h.  */
14927
14928 #include <stdlib.h>
14929 #include <iconv.h>
14930 extern
14931 #ifdef __cplusplus
14932 "C"
14933 #endif
14934 #if defined(__STDC__) || defined(__cplusplus)
14935 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14936 #else
14937 size_t iconv();
14938 #endif
14939
14940 int
14941 main ()
14942 {
14943
14944   ;
14945   return 0;
14946 }
14947 _ACEOF
14948 if ac_fn_c_try_compile "$LINENO"; then :
14949   am_cv_proto_iconv_arg1=""
14950 else
14951   am_cv_proto_iconv_arg1="const"
14952 fi
14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14954       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14955 fi
14956
14957     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14959          }$am_cv_proto_iconv" >&5
14960 $as_echo "${ac_t:-
14961          }$am_cv_proto_iconv" >&6; }
14962
14963 cat >>confdefs.h <<_ACEOF
14964 #define ICONV_CONST $am_cv_proto_iconv_arg1
14965 _ACEOF
14966
14967   fi
14968
14969 if test "$am_cv_func_iconv" != yes; then
14970   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libiconv" >&5
14971 $as_echo "$as_me: WARNING: Could not find libiconv" >&2;}
14972 else
14973   conky_LIBS="$conky_LIBS $LIBICONV"
14974 fi
14975  if test "$am_cv_func_iconv" = yes; then
14976   BUILD_ICONV_TRUE=
14977   BUILD_ICONV_FALSE='#'
14978 else
14979   BUILD_ICONV_TRUE='#'
14980   BUILD_ICONV_FALSE=
14981 fi
14982
14983
14984
14985 # Check whether --enable-double_buffer was given.
14986 if test "${enable_double_buffer+set}" = set; then :
14987   enableval=$enable_double_buffer; want_double_buffer="$enableval"
14988 else
14989   want_double_buffer=yes
14990 fi
14991
14992
14993 if test "x$want_double_buffer" = "xyes"; then
14994     if test "x$want_x11" != "xyes"; then
14995             want_double_buffer=no
14996     else
14997       if $PKG_CONFIG --exists xext; then
14998
14999 pkg_failed=no
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xext" >&5
15001 $as_echo_n "checking for Xext... " >&6; }
15002
15003 if test -n "$PKG_CONFIG"; then
15004     if test -n "$Xext_CFLAGS"; then
15005         pkg_cv_Xext_CFLAGS="$Xext_CFLAGS"
15006     else
15007         if test -n "$PKG_CONFIG" && \
15008     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
15009   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
15010   ac_status=$?
15011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15012   test $ac_status = 0; }; then
15013   pkg_cv_Xext_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
15014 else
15015   pkg_failed=yes
15016 fi
15017     fi
15018 else
15019         pkg_failed=untried
15020 fi
15021 if test -n "$PKG_CONFIG"; then
15022     if test -n "$Xext_LIBS"; then
15023         pkg_cv_Xext_LIBS="$Xext_LIBS"
15024     else
15025         if test -n "$PKG_CONFIG" && \
15026     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
15027   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
15028   ac_status=$?
15029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030   test $ac_status = 0; }; then
15031   pkg_cv_Xext_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
15032 else
15033   pkg_failed=yes
15034 fi
15035     fi
15036 else
15037         pkg_failed=untried
15038 fi
15039
15040
15041
15042 if test $pkg_failed = yes; then
15043
15044 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15045         _pkg_short_errors_supported=yes
15046 else
15047         _pkg_short_errors_supported=no
15048 fi
15049         if test $_pkg_short_errors_supported = yes; then
15050                 Xext_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext"`
15051         else
15052                 Xext_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"`
15053         fi
15054         # Put the nasty error message in config.log where it belongs
15055         echo "$Xext_PKG_ERRORS" >&5
15056
15057         as_fn_error "Package requirements (xext) were not met:
15058
15059 $Xext_PKG_ERRORS
15060
15061 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15062 installed software in a non-standard prefix.
15063
15064 Alternatively, you may set the environment variables Xext_CFLAGS
15065 and Xext_LIBS to avoid the need to call pkg-config.
15066 See the pkg-config man page for more details.
15067 " "$LINENO" 5
15068 elif test $pkg_failed = untried; then
15069         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15071 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
15072 is in your PATH or set the PKG_CONFIG environment variable to the full
15073 path to pkg-config.
15074
15075 Alternatively, you may set the environment variables Xext_CFLAGS
15076 and Xext_LIBS to avoid the need to call pkg-config.
15077 See the pkg-config man page for more details.
15078
15079 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15080 See \`config.log' for more details." "$LINENO" 5; }
15081 else
15082         Xext_CFLAGS=$pkg_cv_Xext_CFLAGS
15083         Xext_LIBS=$pkg_cv_Xext_LIBS
15084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15085 $as_echo "yes" >&6; }
15086         :
15087 fi
15088         conky_CFLAGS="$conky_CFLAGS $Xext_CFLAGS"
15089         conky_LIBS="$conky_LIBS $Xext_LIBS"
15090       else
15091                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdbeQueryExtension in -lXext" >&5
15092 $as_echo_n "checking for XdbeQueryExtension in -lXext... " >&6; }
15093 if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then :
15094   $as_echo_n "(cached) " >&6
15095 else
15096   ac_check_lib_save_LIBS=$LIBS
15097 LIBS="-lXext  $LIBS"
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h.  */
15100
15101 /* Override any GCC internal prototype to avoid an error.
15102    Use char because int might match the return type of a GCC
15103    builtin and then its argument prototype would still apply.  */
15104 #ifdef __cplusplus
15105 extern "C"
15106 #endif
15107 char XdbeQueryExtension ();
15108 int
15109 main ()
15110 {
15111 return XdbeQueryExtension ();
15112   ;
15113   return 0;
15114 }
15115 _ACEOF
15116 if ac_fn_c_try_link "$LINENO"; then :
15117   ac_cv_lib_Xext_XdbeQueryExtension=yes
15118 else
15119   ac_cv_lib_Xext_XdbeQueryExtension=no
15120 fi
15121 rm -f core conftest.err conftest.$ac_objext \
15122     conftest$ac_exeext conftest.$ac_ext
15123 LIBS=$ac_check_lib_save_LIBS
15124 fi
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
15126 $as_echo "$ac_cv_lib_Xext_XdbeQueryExtension" >&6; }
15127 if test "x$ac_cv_lib_Xext_XdbeQueryExtension" = x""yes; then :
15128   conky_LIBS="$conky_LIBS -lXext"
15129 else
15130   as_fn_error "Could not find XdbeQueryExtension in -lXext" "$LINENO" 5
15131 fi
15132
15133       fi
15134
15135 $as_echo "#define HAVE_XDBE 1" >>confdefs.h
15136
15137     fi
15138 fi
15139
15140
15141
15142 # Check whether --enable-xdamage was given.
15143 if test "${enable_xdamage+set}" = set; then :
15144   enableval=$enable_xdamage; want_xdamage="$enableval"
15145 else
15146   want_xdamage=yes
15147 fi
15148
15149
15150 if test "x$want_xdamage" = "xyes"; then
15151     if test "x$want_x11" != "xyes"; then
15152             want_xdamage=no
15153     else
15154       if $PKG_CONFIG --exists xdamage; then
15155
15156 pkg_failed=no
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDamage" >&5
15158 $as_echo_n "checking for XDamage... " >&6; }
15159
15160 if test -n "$PKG_CONFIG"; then
15161     if test -n "$XDamage_CFLAGS"; then
15162         pkg_cv_XDamage_CFLAGS="$XDamage_CFLAGS"
15163     else
15164         if test -n "$PKG_CONFIG" && \
15165     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdamage\""; } >&5
15166   ($PKG_CONFIG --exists --print-errors "xdamage") 2>&5
15167   ac_status=$?
15168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15169   test $ac_status = 0; }; then
15170   pkg_cv_XDamage_CFLAGS=`$PKG_CONFIG --cflags "xdamage" 2>/dev/null`
15171 else
15172   pkg_failed=yes
15173 fi
15174     fi
15175 else
15176         pkg_failed=untried
15177 fi
15178 if test -n "$PKG_CONFIG"; then
15179     if test -n "$XDamage_LIBS"; then
15180         pkg_cv_XDamage_LIBS="$XDamage_LIBS"
15181     else
15182         if test -n "$PKG_CONFIG" && \
15183     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdamage\""; } >&5
15184   ($PKG_CONFIG --exists --print-errors "xdamage") 2>&5
15185   ac_status=$?
15186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15187   test $ac_status = 0; }; then
15188   pkg_cv_XDamage_LIBS=`$PKG_CONFIG --libs "xdamage" 2>/dev/null`
15189 else
15190   pkg_failed=yes
15191 fi
15192     fi
15193 else
15194         pkg_failed=untried
15195 fi
15196
15197
15198
15199 if test $pkg_failed = yes; then
15200
15201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15202         _pkg_short_errors_supported=yes
15203 else
15204         _pkg_short_errors_supported=no
15205 fi
15206         if test $_pkg_short_errors_supported = yes; then
15207                 XDamage_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdamage"`
15208         else
15209                 XDamage_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdamage"`
15210         fi
15211         # Put the nasty error message in config.log where it belongs
15212         echo "$XDamage_PKG_ERRORS" >&5
15213
15214         as_fn_error "Package requirements (xdamage) were not met:
15215
15216 $XDamage_PKG_ERRORS
15217
15218 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15219 installed software in a non-standard prefix.
15220
15221 Alternatively, you may set the environment variables XDamage_CFLAGS
15222 and XDamage_LIBS to avoid the need to call pkg-config.
15223 See the pkg-config man page for more details.
15224 " "$LINENO" 5
15225 elif test $pkg_failed = untried; then
15226         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15228 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
15229 is in your PATH or set the PKG_CONFIG environment variable to the full
15230 path to pkg-config.
15231
15232 Alternatively, you may set the environment variables XDamage_CFLAGS
15233 and XDamage_LIBS to avoid the need to call pkg-config.
15234 See the pkg-config man page for more details.
15235
15236 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15237 See \`config.log' for more details." "$LINENO" 5; }
15238 else
15239         XDamage_CFLAGS=$pkg_cv_XDamage_CFLAGS
15240         XDamage_LIBS=$pkg_cv_XDamage_LIBS
15241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15242 $as_echo "yes" >&6; }
15243         :
15244 fi
15245         conky_CFLAGS="$conky_CFLAGS $XDamage_CFLAGS"
15246         conky_LIBS="$conky_LIBS $XDamage_LIBS"
15247       else
15248                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDamageQueryExtension in -lXdamage" >&5
15249 $as_echo_n "checking for XDamageQueryExtension in -lXdamage... " >&6; }
15250 if test "${ac_cv_lib_Xdamage_XDamageQueryExtension+set}" = set; then :
15251   $as_echo_n "(cached) " >&6
15252 else
15253   ac_check_lib_save_LIBS=$LIBS
15254 LIBS="-lXdamage  $LIBS"
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h.  */
15257
15258 /* Override any GCC internal prototype to avoid an error.
15259    Use char because int might match the return type of a GCC
15260    builtin and then its argument prototype would still apply.  */
15261 #ifdef __cplusplus
15262 extern "C"
15263 #endif
15264 char XDamageQueryExtension ();
15265 int
15266 main ()
15267 {
15268 return XDamageQueryExtension ();
15269   ;
15270   return 0;
15271 }
15272 _ACEOF
15273 if ac_fn_c_try_link "$LINENO"; then :
15274   ac_cv_lib_Xdamage_XDamageQueryExtension=yes
15275 else
15276   ac_cv_lib_Xdamage_XDamageQueryExtension=no
15277 fi
15278 rm -f core conftest.err conftest.$ac_objext \
15279     conftest$ac_exeext conftest.$ac_ext
15280 LIBS=$ac_check_lib_save_LIBS
15281 fi
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdamage_XDamageQueryExtension" >&5
15283 $as_echo "$ac_cv_lib_Xdamage_XDamageQueryExtension" >&6; }
15284 if test "x$ac_cv_lib_Xdamage_XDamageQueryExtension" = x""yes; then :
15285   conky_LIBS="$conky_LIBS -lXdamage"
15286 else
15287   as_fn_error "Could not find XDamageQueryExtension in -lXdamage" "$LINENO" 5
15288 fi
15289
15290       fi
15291
15292 $as_echo "#define HAVE_XDAMAGE 1" >>confdefs.h
15293
15294     fi
15295 fi
15296
15297
15298
15299 # Check whether --enable-xft was given.
15300 if test "${enable_xft+set}" = set; then :
15301   enableval=$enable_xft; want_xft="$enableval"
15302 else
15303   want_xft=yes
15304 fi
15305
15306
15307 if test x$want_xft = "xyes"; then
15308     if test "x$want_x11" != "xyes"; then
15309             want_xft=no
15310     else
15311
15312 pkg_failed=no
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft" >&5
15314 $as_echo_n "checking for Xft... " >&6; }
15315
15316 if test -n "$PKG_CONFIG"; then
15317     if test -n "$Xft_CFLAGS"; then
15318         pkg_cv_Xft_CFLAGS="$Xft_CFLAGS"
15319     else
15320         if test -n "$PKG_CONFIG" && \
15321     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
15322   ($PKG_CONFIG --exists --print-errors "xft") 2>&5
15323   ac_status=$?
15324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15325   test $ac_status = 0; }; then
15326   pkg_cv_Xft_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
15327 else
15328   pkg_failed=yes
15329 fi
15330     fi
15331 else
15332         pkg_failed=untried
15333 fi
15334 if test -n "$PKG_CONFIG"; then
15335     if test -n "$Xft_LIBS"; then
15336         pkg_cv_Xft_LIBS="$Xft_LIBS"
15337     else
15338         if test -n "$PKG_CONFIG" && \
15339     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
15340   ($PKG_CONFIG --exists --print-errors "xft") 2>&5
15341   ac_status=$?
15342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15343   test $ac_status = 0; }; then
15344   pkg_cv_Xft_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
15345 else
15346   pkg_failed=yes
15347 fi
15348     fi
15349 else
15350         pkg_failed=untried
15351 fi
15352
15353
15354
15355 if test $pkg_failed = yes; then
15356
15357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15358         _pkg_short_errors_supported=yes
15359 else
15360         _pkg_short_errors_supported=no
15361 fi
15362         if test $_pkg_short_errors_supported = yes; then
15363                 Xft_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xft"`
15364         else
15365                 Xft_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft"`
15366         fi
15367         # Put the nasty error message in config.log where it belongs
15368         echo "$Xft_PKG_ERRORS" >&5
15369
15370         as_fn_error "Package requirements (xft) were not met:
15371
15372 $Xft_PKG_ERRORS
15373
15374 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15375 installed software in a non-standard prefix.
15376
15377 Alternatively, you may set the environment variables Xft_CFLAGS
15378 and Xft_LIBS to avoid the need to call pkg-config.
15379 See the pkg-config man page for more details.
15380 " "$LINENO" 5
15381 elif test $pkg_failed = untried; then
15382         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15384 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
15385 is in your PATH or set the PKG_CONFIG environment variable to the full
15386 path to pkg-config.
15387
15388 Alternatively, you may set the environment variables Xft_CFLAGS
15389 and Xft_LIBS to avoid the need to call pkg-config.
15390 See the pkg-config man page for more details.
15391
15392 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15393 See \`config.log' for more details." "$LINENO" 5; }
15394 else
15395         Xft_CFLAGS=$pkg_cv_Xft_CFLAGS
15396         Xft_LIBS=$pkg_cv_Xft_LIBS
15397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15398 $as_echo "yes" >&6; }
15399         :
15400 fi
15401       conky_CFLAGS="$conky_CFLAGS $Xft_CFLAGS"
15402       conky_LIBS="$conky_LIBS $Xft_LIBS"
15403
15404 $as_echo "#define XFT 1" >>confdefs.h
15405
15406     fi
15407 fi
15408
15409
15410 # Check whether --enable-nvidia was given.
15411 if test "${enable_nvidia+set}" = set; then :
15412   enableval=$enable_nvidia; want_nvidia="$enableval"
15413 else
15414   want_nvidia=no
15415 fi
15416
15417 if test x$want_nvidia = xyes; then
15418     if test "x$want_x11" != "xyes"; then
15419                 # do nada
15420                 want_nvidia=no
15421         else
15422                 for ac_header in NVCtrl/NVCtrl.h
15423 do :
15424   ac_fn_c_check_header_mongrel "$LINENO" "NVCtrl/NVCtrl.h" "ac_cv_header_NVCtrl_NVCtrl_h" "$ac_includes_default"
15425 if test "x$ac_cv_header_NVCtrl_NVCtrl_h" = x""yes; then :
15426   cat >>confdefs.h <<_ACEOF
15427 #define HAVE_NVCTRL_NVCTRL_H 1
15428 _ACEOF
15429
15430 else
15431   as_fn_error "NVCtrl/NVCtrl.h header not found" "$LINENO" 5
15432 fi
15433
15434 done
15435
15436                 conky_LIBS="$conky_LIBS -lXNVCtrl"
15437
15438 $as_echo "#define NVIDIA 1" >>confdefs.h
15439
15440         fi
15441 fi
15442  if test x$want_nvidia = xyes; then
15443   BUILD_NVIDIA_TRUE=
15444   BUILD_NVIDIA_FALSE='#'
15445 else
15446   BUILD_NVIDIA_TRUE='#'
15447   BUILD_NVIDIA_FALSE=
15448 fi
15449
15450
15451
15452 if test x$WANT_GLIB = xyes; then
15453
15454 pkg_failed=no
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib2" >&5
15456 $as_echo_n "checking for GLib2... " >&6; }
15457
15458 if test -n "$PKG_CONFIG"; then
15459     if test -n "$GLib2_CFLAGS"; then
15460         pkg_cv_GLib2_CFLAGS="$GLib2_CFLAGS"
15461     else
15462         if test -n "$PKG_CONFIG" && \
15463     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
15464   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
15465   ac_status=$?
15466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15467   test $ac_status = 0; }; then
15468   pkg_cv_GLib2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
15469 else
15470   pkg_failed=yes
15471 fi
15472     fi
15473 else
15474         pkg_failed=untried
15475 fi
15476 if test -n "$PKG_CONFIG"; then
15477     if test -n "$GLib2_LIBS"; then
15478         pkg_cv_GLib2_LIBS="$GLib2_LIBS"
15479     else
15480         if test -n "$PKG_CONFIG" && \
15481     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
15482   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
15483   ac_status=$?
15484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15485   test $ac_status = 0; }; then
15486   pkg_cv_GLib2_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
15487 else
15488   pkg_failed=yes
15489 fi
15490     fi
15491 else
15492         pkg_failed=untried
15493 fi
15494
15495
15496
15497 if test $pkg_failed = yes; then
15498
15499 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15500         _pkg_short_errors_supported=yes
15501 else
15502         _pkg_short_errors_supported=no
15503 fi
15504         if test $_pkg_short_errors_supported = yes; then
15505                 GLib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
15506         else
15507                 GLib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
15508         fi
15509         # Put the nasty error message in config.log where it belongs
15510         echo "$GLib2_PKG_ERRORS" >&5
15511
15512         as_fn_error "Package requirements (glib-2.0) were not met:
15513
15514 $GLib2_PKG_ERRORS
15515
15516 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15517 installed software in a non-standard prefix.
15518
15519 Alternatively, you may set the environment variables GLib2_CFLAGS
15520 and GLib2_LIBS to avoid the need to call pkg-config.
15521 See the pkg-config man page for more details.
15522 " "$LINENO" 5
15523 elif test $pkg_failed = untried; then
15524         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15526 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
15527 is in your PATH or set the PKG_CONFIG environment variable to the full
15528 path to pkg-config.
15529
15530 Alternatively, you may set the environment variables GLib2_CFLAGS
15531 and GLib2_LIBS to avoid the need to call pkg-config.
15532 See the pkg-config man page for more details.
15533
15534 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15535 See \`config.log' for more details." "$LINENO" 5; }
15536 else
15537         GLib2_CFLAGS=$pkg_cv_GLib2_CFLAGS
15538         GLib2_LIBS=$pkg_cv_GLib2_LIBS
15539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15540 $as_echo "yes" >&6; }
15541         :
15542 fi
15543         conky_CFLAGS="$conky_CFLAGS $GLib2_CFLAGS"
15544         conky_LIBS="$conky_LIBS $GLib2_LIBS"
15545 fi
15546
15547
15548 if test x$want_curl = xyes; then
15549
15550 pkg_failed=no
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
15552 $as_echo_n "checking for libcurl... " >&6; }
15553
15554 if test -n "$PKG_CONFIG"; then
15555     if test -n "$libcurl_CFLAGS"; then
15556         pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
15557     else
15558         if test -n "$PKG_CONFIG" && \
15559     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
15560   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
15561   ac_status=$?
15562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15563   test $ac_status = 0; }; then
15564   pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
15565 else
15566   pkg_failed=yes
15567 fi
15568     fi
15569 else
15570         pkg_failed=untried
15571 fi
15572 if test -n "$PKG_CONFIG"; then
15573     if test -n "$libcurl_LIBS"; then
15574         pkg_cv_libcurl_LIBS="$libcurl_LIBS"
15575     else
15576         if test -n "$PKG_CONFIG" && \
15577     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
15578   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
15579   ac_status=$?
15580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15581   test $ac_status = 0; }; then
15582   pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
15583 else
15584   pkg_failed=yes
15585 fi
15586     fi
15587 else
15588         pkg_failed=untried
15589 fi
15590
15591
15592
15593 if test $pkg_failed = yes; then
15594
15595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15596         _pkg_short_errors_supported=yes
15597 else
15598         _pkg_short_errors_supported=no
15599 fi
15600         if test $_pkg_short_errors_supported = yes; then
15601                 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
15602         else
15603                 libcurl_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
15604         fi
15605         # Put the nasty error message in config.log where it belongs
15606         echo "$libcurl_PKG_ERRORS" >&5
15607
15608         as_fn_error "Package requirements (libcurl) were not met:
15609
15610 $libcurl_PKG_ERRORS
15611
15612 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15613 installed software in a non-standard prefix.
15614
15615 Alternatively, you may set the environment variables libcurl_CFLAGS
15616 and libcurl_LIBS to avoid the need to call pkg-config.
15617 See the pkg-config man page for more details.
15618 " "$LINENO" 5
15619 elif test $pkg_failed = untried; then
15620         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15622 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
15623 is in your PATH or set the PKG_CONFIG environment variable to the full
15624 path to pkg-config.
15625
15626 Alternatively, you may set the environment variables libcurl_CFLAGS
15627 and libcurl_LIBS to avoid the need to call pkg-config.
15628 See the pkg-config man page for more details.
15629
15630 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15631 See \`config.log' for more details." "$LINENO" 5; }
15632 else
15633         libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
15634         libcurl_LIBS=$pkg_cv_libcurl_LIBS
15635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15636 $as_echo "yes" >&6; }
15637         :
15638 fi
15639         conky_CFLAGS="$conky_CFLAGS $libcurl_CFLAGS"
15640         conky_LIBS="$conky_LIBS $libcurl_LIBS"
15641
15642 $as_echo "#define HAVE_CURL 1" >>confdefs.h
15643
15644 fi
15645  if test x$want_curl = xyes; then
15646   BUILD_CURL_TRUE=
15647   BUILD_CURL_FALSE='#'
15648 else
15649   BUILD_CURL_TRUE='#'
15650   BUILD_CURL_FALSE=
15651 fi
15652
15653
15654
15655 if test x$want_libxml2 = xyes; then
15656
15657 pkg_failed=no
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
15659 $as_echo_n "checking for libxml2... " >&6; }
15660
15661 if test -n "$PKG_CONFIG"; then
15662     if test -n "$libxml2_CFLAGS"; then
15663         pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
15664     else
15665         if test -n "$PKG_CONFIG" && \
15666     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
15667   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
15668   ac_status=$?
15669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15670   test $ac_status = 0; }; then
15671   pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
15672 else
15673   pkg_failed=yes
15674 fi
15675     fi
15676 else
15677         pkg_failed=untried
15678 fi
15679 if test -n "$PKG_CONFIG"; then
15680     if test -n "$libxml2_LIBS"; then
15681         pkg_cv_libxml2_LIBS="$libxml2_LIBS"
15682     else
15683         if test -n "$PKG_CONFIG" && \
15684     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
15685   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
15686   ac_status=$?
15687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15688   test $ac_status = 0; }; then
15689   pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
15690 else
15691   pkg_failed=yes
15692 fi
15693     fi
15694 else
15695         pkg_failed=untried
15696 fi
15697
15698
15699
15700 if test $pkg_failed = yes; then
15701
15702 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15703         _pkg_short_errors_supported=yes
15704 else
15705         _pkg_short_errors_supported=no
15706 fi
15707         if test $_pkg_short_errors_supported = yes; then
15708                 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0"`
15709         else
15710                 libxml2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
15711         fi
15712         # Put the nasty error message in config.log where it belongs
15713         echo "$libxml2_PKG_ERRORS" >&5
15714
15715         as_fn_error "Package requirements (libxml-2.0) were not met:
15716
15717 $libxml2_PKG_ERRORS
15718
15719 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15720 installed software in a non-standard prefix.
15721
15722 Alternatively, you may set the environment variables libxml2_CFLAGS
15723 and libxml2_LIBS to avoid the need to call pkg-config.
15724 See the pkg-config man page for more details.
15725 " "$LINENO" 5
15726 elif test $pkg_failed = untried; then
15727         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15729 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
15730 is in your PATH or set the PKG_CONFIG environment variable to the full
15731 path to pkg-config.
15732
15733 Alternatively, you may set the environment variables libxml2_CFLAGS
15734 and libxml2_LIBS to avoid the need to call pkg-config.
15735 See the pkg-config man page for more details.
15736
15737 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15738 See \`config.log' for more details." "$LINENO" 5; }
15739 else
15740         libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
15741         libxml2_LIBS=$pkg_cv_libxml2_LIBS
15742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15743 $as_echo "yes" >&6; }
15744         :
15745 fi
15746         conky_CFLAGS="$conky_CFLAGS $libxml2_CFLAGS"
15747         conky_LIBS="$conky_LIBS $libxml2_LIBS"
15748 fi
15749
15750
15751 if test x$WANT_KVM = xyes; then
15752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15753 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15754 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15755   $as_echo_n "(cached) " >&6
15756 else
15757   ac_check_lib_save_LIBS=$LIBS
15758 LIBS="-lkvm  $LIBS"
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h.  */
15761
15762 /* Override any GCC internal prototype to avoid an error.
15763    Use char because int might match the return type of a GCC
15764    builtin and then its argument prototype would still apply.  */
15765 #ifdef __cplusplus
15766 extern "C"
15767 #endif
15768 char kvm_open ();
15769 int
15770 main ()
15771 {
15772 return kvm_open ();
15773   ;
15774   return 0;
15775 }
15776 _ACEOF
15777 if ac_fn_c_try_link "$LINENO"; then :
15778   ac_cv_lib_kvm_kvm_open=yes
15779 else
15780   ac_cv_lib_kvm_kvm_open=no
15781 fi
15782 rm -f core conftest.err conftest.$ac_objext \
15783     conftest$ac_exeext conftest.$ac_ext
15784 LIBS=$ac_check_lib_save_LIBS
15785 fi
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15787 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15788 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
15789   conky_LIBS="$conky_LIBS -lkvm"
15790 else
15791   as_fn_error "Could not find kvm_open in -lkvm." "$LINENO" 5
15792
15793 fi
15794
15795 fi
15796
15797
15798 if test x$WANT_DEVSTAT = xyes; then
15799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devstat_getversion in -ldevstat" >&5
15800 $as_echo_n "checking for devstat_getversion in -ldevstat... " >&6; }
15801 if test "${ac_cv_lib_devstat_devstat_getversion+set}" = set; then :
15802   $as_echo_n "(cached) " >&6
15803 else
15804   ac_check_lib_save_LIBS=$LIBS
15805 LIBS="-ldevstat  $LIBS"
15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h.  */
15808
15809 /* Override any GCC internal prototype to avoid an error.
15810    Use char because int might match the return type of a GCC
15811    builtin and then its argument prototype would still apply.  */
15812 #ifdef __cplusplus
15813 extern "C"
15814 #endif
15815 char devstat_getversion ();
15816 int
15817 main ()
15818 {
15819 return devstat_getversion ();
15820   ;
15821   return 0;
15822 }
15823 _ACEOF
15824 if ac_fn_c_try_link "$LINENO"; then :
15825   ac_cv_lib_devstat_devstat_getversion=yes
15826 else
15827   ac_cv_lib_devstat_devstat_getversion=no
15828 fi
15829 rm -f core conftest.err conftest.$ac_objext \
15830     conftest$ac_exeext conftest.$ac_ext
15831 LIBS=$ac_check_lib_save_LIBS
15832 fi
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devstat_devstat_getversion" >&5
15834 $as_echo "$ac_cv_lib_devstat_devstat_getversion" >&6; }
15835 if test "x$ac_cv_lib_devstat_devstat_getversion" = x""yes; then :
15836   conky_LIBS="$conky_LIBS -ldevstat"
15837 else
15838   as_fn_error "Cound not find devstat_getversion in -ldevstat." "$LINENO" 5
15839
15840 fi
15841
15842 fi
15843
15844
15845 if test x$WANT_OSSLIB = xyes; then
15846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
15847 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
15848 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
15849   $as_echo_n "(cached) " >&6
15850 else
15851   ac_check_lib_save_LIBS=$LIBS
15852 LIBS="-lossaudio  $LIBS"
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h.  */
15855
15856 /* Override any GCC internal prototype to avoid an error.
15857    Use char because int might match the return type of a GCC
15858    builtin and then its argument prototype would still apply.  */
15859 #ifdef __cplusplus
15860 extern "C"
15861 #endif
15862 char _oss_ioctl ();
15863 int
15864 main ()
15865 {
15866 return _oss_ioctl ();
15867   ;
15868   return 0;
15869 }
15870 _ACEOF
15871 if ac_fn_c_try_link "$LINENO"; then :
15872   ac_cv_lib_ossaudio__oss_ioctl=yes
15873 else
15874   ac_cv_lib_ossaudio__oss_ioctl=no
15875 fi
15876 rm -f core conftest.err conftest.$ac_objext \
15877     conftest$ac_exeext conftest.$ac_ext
15878 LIBS=$ac_check_lib_save_LIBS
15879 fi
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
15881 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
15882 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
15883   conky_LIBS="$conky_LIBS -lossaudio"
15884 else
15885   as_fn_error "Could not find oss_ioctl in -lossaudio." "$LINENO" 5
15886
15887 fi
15888
15889 fi
15890
15891 # Check whether --enable-alsa was given.
15892 if test "${enable_alsa+set}" = set; then :
15893   enableval=$enable_alsa; want_alsa="$enableval"
15894 else
15895   want_alsa=yes
15896 fi
15897
15898
15899 if test x$want_alsa = xyes; then
15900     ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
15901 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
15902
15903 else
15904   want_alsa=no
15905 fi
15906
15907
15908 fi
15909 if test x$want_alsa = xyes; then
15910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
15911 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
15912 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then :
15913   $as_echo_n "(cached) " >&6
15914 else
15915   ac_check_lib_save_LIBS=$LIBS
15916 LIBS="-lasound  $LIBS"
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h.  */
15919
15920 /* Override any GCC internal prototype to avoid an error.
15921    Use char because int might match the return type of a GCC
15922    builtin and then its argument prototype would still apply.  */
15923 #ifdef __cplusplus
15924 extern "C"
15925 #endif
15926 char snd_pcm_open ();
15927 int
15928 main ()
15929 {
15930 return snd_pcm_open ();
15931   ;
15932   return 0;
15933 }
15934 _ACEOF
15935 if ac_fn_c_try_link "$LINENO"; then :
15936   ac_cv_lib_asound_snd_pcm_open=yes
15937 else
15938   ac_cv_lib_asound_snd_pcm_open=no
15939 fi
15940 rm -f core conftest.err conftest.$ac_objext \
15941     conftest$ac_exeext conftest.$ac_ext
15942 LIBS=$ac_check_lib_save_LIBS
15943 fi
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
15945 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
15946 if test "x$ac_cv_lib_asound_snd_pcm_open" = x""yes; then :
15947   conky_LIBS="$conky_LIBS -lasound"
15948 else
15949   want_alsa=no
15950 fi
15951
15952 fi
15953 if test x$want_alsa = xyes; then
15954
15955 $as_echo "#define MIXER_IS_ALSA 1" >>confdefs.h
15956
15957 fi
15958
15959 for ac_header in signal.h unistd.h sys/utsname.h sys/stat.h linux/soundcard.h alsa/asoundlib.h dirent.h mcheck.h \
15960       sys/statfs.h sys/param.h pthread.h semaphore.h assert.h errno.h time.h
15961 do :
15962   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15963 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15964 eval as_val=\$$as_ac_Header
15965    if test "x$as_val" = x""yes; then :
15966   cat >>confdefs.h <<_ACEOF
15967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15968 _ACEOF
15969
15970 fi
15971
15972 done
15973
15974 for ac_header in sys/mount.h
15975 do :
15976   ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#ifdef HAVE_SYS_PARAM_H
15977       #include <sys/param.h>
15978       #endif
15979
15980 "
15981 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
15982   cat >>confdefs.h <<_ACEOF
15983 #define HAVE_SYS_MOUNT_H 1
15984 _ACEOF
15985
15986 fi
15987
15988 done
15989
15990 # check if we have inotify support
15991 for ac_header in sys/inotify.h
15992 do :
15993   ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
15994 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
15995   cat >>confdefs.h <<_ACEOF
15996 #define HAVE_SYS_INOTIFY_H 1
15997 _ACEOF
15998
15999 fi
16000
16001 done
16002
16003
16004
16005
16006 $as_echo "#define DEFAULTNETDEV \"eth0\"" >>confdefs.h
16007
16008
16009 $as_echo "#define CONFIG_FILE \"\$HOME/.conkyrc\"" >>confdefs.h
16010
16011
16012 $as_echo "#define MAX_SPECIALS_DEFAULT 512" >>confdefs.h
16013
16014
16015 $as_echo "#define MAX_USER_TEXT_DEFAULT 16384" >>confdefs.h
16016
16017
16018 $as_echo "#define DEFAULT_TEXT_BUFFER_SIZE 256" >>confdefs.h
16019
16020
16021 $as_echo "#define MAX_NET_INTERFACES 16" >>confdefs.h
16022
16023
16024
16025 for ac_func in calloc malloc free popen sysinfo getloadavg memrchr strndup gethostbyname_r
16026 do :
16027   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16029 eval as_val=\$$as_ac_var
16030    if test "x$as_val" = x""yes; then :
16031   cat >>confdefs.h <<_ACEOF
16032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16033 _ACEOF
16034
16035 fi
16036 done
16037
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16039 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16040 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16041   $as_echo_n "(cached) " >&6
16042 else
16043   ac_func_search_save_LIBS=$LIBS
16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h.  */
16046
16047 /* Override any GCC internal prototype to avoid an error.
16048    Use char because int might match the return type of a GCC
16049    builtin and then its argument prototype would still apply.  */
16050 #ifdef __cplusplus
16051 extern "C"
16052 #endif
16053 char clock_gettime ();
16054 int
16055 main ()
16056 {
16057 return clock_gettime ();
16058   ;
16059   return 0;
16060 }
16061 _ACEOF
16062 for ac_lib in '' rt; do
16063   if test -z "$ac_lib"; then
16064     ac_res="none required"
16065   else
16066     ac_res=-l$ac_lib
16067     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16068   fi
16069   if ac_fn_c_try_link "$LINENO"; then :
16070   ac_cv_search_clock_gettime=$ac_res
16071 fi
16072 rm -f core conftest.err conftest.$ac_objext \
16073     conftest$ac_exeext
16074   if test "${ac_cv_search_clock_gettime+set}" = set; then :
16075   break
16076 fi
16077 done
16078 if test "${ac_cv_search_clock_gettime+set}" = set; then :
16079
16080 else
16081   ac_cv_search_clock_gettime=no
16082 fi
16083 rm conftest.$ac_ext
16084 LIBS=$ac_func_search_save_LIBS
16085 fi
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16087 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16088 ac_res=$ac_cv_search_clock_gettime
16089 if test "$ac_res" != no; then :
16090   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16091   conky_LIBS="$conky_LIBS $LIBS"
16092
16093 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16094
16095 else
16096   for ac_func in gettimeofday
16097 do :
16098   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16099 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
16100   cat >>confdefs.h <<_ACEOF
16101 #define HAVE_GETTIMEOFDAY 1
16102 _ACEOF
16103
16104 else
16105   as_fn_error "gettimeofday() not available!" "$LINENO" 5
16106 fi
16107 done
16108
16109 fi
16110
16111
16112
16113 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/statfs.h>
16114 "
16115 if test "x$ac_cv_member_struct_statfs_f_fstypename" = x""yes; then :
16116
16117 $as_echo "#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1" >>confdefs.h
16118
16119 fi
16120
16121
16122
16123 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16124 if test "x$ac_cv_header_zlib_h" = x""yes; then :
16125
16126 else
16127   as_fn_error "zlib is missing; please install the headers first" "$LINENO" 5
16128 fi
16129
16130
16131
16132
16133
16134
16135
16136
16137 for ac_prog in db2x_xsltproc
16138 do
16139   # Extract the first word of "$ac_prog", so it can be a program name with args.
16140 set dummy $ac_prog; ac_word=$2
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16142 $as_echo_n "checking for $ac_word... " >&6; }
16143 if test "${ac_cv_prog_db2x_xsltproc_cmd+set}" = set; then :
16144   $as_echo_n "(cached) " >&6
16145 else
16146   if test -n "$db2x_xsltproc_cmd"; then
16147   ac_cv_prog_db2x_xsltproc_cmd="$db2x_xsltproc_cmd" # Let the user override the test.
16148 else
16149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16150 for as_dir in $PATH
16151 do
16152   IFS=$as_save_IFS
16153   test -z "$as_dir" && as_dir=.
16154     for ac_exec_ext in '' $ac_executable_extensions; do
16155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16156     ac_cv_prog_db2x_xsltproc_cmd="$ac_prog"
16157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16158     break 2
16159   fi
16160 done
16161   done
16162 IFS=$as_save_IFS
16163
16164 fi
16165 fi
16166 db2x_xsltproc_cmd=$ac_cv_prog_db2x_xsltproc_cmd
16167 if test -n "$db2x_xsltproc_cmd"; then
16168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db2x_xsltproc_cmd" >&5
16169 $as_echo "$db2x_xsltproc_cmd" >&6; }
16170 else
16171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16172 $as_echo "no" >&6; }
16173 fi
16174
16175
16176   test -n "$db2x_xsltproc_cmd" && break
16177 done
16178
16179 for ac_prog in db2x_manxml
16180 do
16181   # Extract the first word of "$ac_prog", so it can be a program name with args.
16182 set dummy $ac_prog; ac_word=$2
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16184 $as_echo_n "checking for $ac_word... " >&6; }
16185 if test "${ac_cv_prog_db2x_manxml_cmd+set}" = set; then :
16186   $as_echo_n "(cached) " >&6
16187 else
16188   if test -n "$db2x_manxml_cmd"; then
16189   ac_cv_prog_db2x_manxml_cmd="$db2x_manxml_cmd" # Let the user override the test.
16190 else
16191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16192 for as_dir in $PATH
16193 do
16194   IFS=$as_save_IFS
16195   test -z "$as_dir" && as_dir=.
16196     for ac_exec_ext in '' $ac_executable_extensions; do
16197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16198     ac_cv_prog_db2x_manxml_cmd="$ac_prog"
16199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16200     break 2
16201   fi
16202 done
16203   done
16204 IFS=$as_save_IFS
16205
16206 fi
16207 fi
16208 db2x_manxml_cmd=$ac_cv_prog_db2x_manxml_cmd
16209 if test -n "$db2x_manxml_cmd"; then
16210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db2x_manxml_cmd" >&5
16211 $as_echo "$db2x_manxml_cmd" >&6; }
16212 else
16213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16214 $as_echo "no" >&6; }
16215 fi
16216
16217
16218   test -n "$db2x_manxml_cmd" && break
16219 done
16220
16221 for ac_prog in xsltproc
16222 do
16223   # Extract the first word of "$ac_prog", so it can be a program name with args.
16224 set dummy $ac_prog; ac_word=$2
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16226 $as_echo_n "checking for $ac_word... " >&6; }
16227 if test "${ac_cv_prog_xsltproc_cmd+set}" = set; then :
16228   $as_echo_n "(cached) " >&6
16229 else
16230   if test -n "$xsltproc_cmd"; then
16231   ac_cv_prog_xsltproc_cmd="$xsltproc_cmd" # Let the user override the test.
16232 else
16233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16234 for as_dir in $PATH
16235 do
16236   IFS=$as_save_IFS
16237   test -z "$as_dir" && as_dir=.
16238     for ac_exec_ext in '' $ac_executable_extensions; do
16239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16240     ac_cv_prog_xsltproc_cmd="$ac_prog"
16241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16242     break 2
16243   fi
16244 done
16245   done
16246 IFS=$as_save_IFS
16247
16248 fi
16249 fi
16250 xsltproc_cmd=$ac_cv_prog_xsltproc_cmd
16251 if test -n "$xsltproc_cmd"; then
16252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsltproc_cmd" >&5
16253 $as_echo "$xsltproc_cmd" >&6; }
16254 else
16255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256 $as_echo "no" >&6; }
16257 fi
16258
16259
16260   test -n "$xsltproc_cmd" && break
16261 done
16262
16263 if test x$db2x_xsltproc_cmd = "x" -o x$xsltproc_cmd = "x"; then
16264    if false; then
16265   HAVE_DOCSTUFF_TRUE=
16266   HAVE_DOCSTUFF_FALSE='#'
16267 else
16268   HAVE_DOCSTUFF_TRUE='#'
16269   HAVE_DOCSTUFF_FALSE=
16270 fi
16271
16272 else
16273    if true; then
16274   HAVE_DOCSTUFF_TRUE=
16275   HAVE_DOCSTUFF_FALSE='#'
16276 else
16277   HAVE_DOCSTUFF_TRUE='#'
16278   HAVE_DOCSTUFF_FALSE=
16279 fi
16280
16281 fi
16282
16283
16284 if test x$WANT_KSTAT = xyes; then
16285   dah=no
16286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
16287 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
16288 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
16289   $as_echo_n "(cached) " >&6
16290 else
16291   ac_check_lib_save_LIBS=$LIBS
16292 LIBS="-lkstat  $LIBS"
16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294 /* end confdefs.h.  */
16295
16296 /* Override any GCC internal prototype to avoid an error.
16297    Use char because int might match the return type of a GCC
16298    builtin and then its argument prototype would still apply.  */
16299 #ifdef __cplusplus
16300 extern "C"
16301 #endif
16302 char kstat_open ();
16303 int
16304 main ()
16305 {
16306 return kstat_open ();
16307   ;
16308   return 0;
16309 }
16310 _ACEOF
16311 if ac_fn_c_try_link "$LINENO"; then :
16312   ac_cv_lib_kstat_kstat_open=yes
16313 else
16314   ac_cv_lib_kstat_kstat_open=no
16315 fi
16316 rm -f core conftest.err conftest.$ac_objext \
16317     conftest$ac_exeext conftest.$ac_ext
16318 LIBS=$ac_check_lib_save_LIBS
16319 fi
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
16321 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
16322 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
16323   dah=yes
16324 fi
16325
16326
16327   if test x$dah = xyes; then
16328
16329 $as_echo "#define HAVE_KSTAT 1" >>confdefs.h
16330
16331     conky_LDFLAGS="$conky_LDFLAGS -lkstat"
16332   fi
16333 fi
16334
16335
16336
16337
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD accepts -O1" >&5
16339 $as_echo_n "checking if $LD accepts -O1... " >&6; }
16340 case `$LD -O1 -v 2>&1 </dev/null` in
16341 *GNU* | *BSD*)
16342   conky_LDFLAGS="$conky_LDFLAGS -Wl,-O1"
16343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16344 $as_echo "yes" >&6; }
16345   ;;
16346 *)
16347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16348 $as_echo "no" >&6; }
16349   ;;
16350 esac
16351
16352
16353
16354 conky_CFLAGS="$conky_CFLAGS -Wall -W"
16355
16356
16357 # Check whether --enable-debug was given.
16358 if test "${enable_debug+set}" = set; then :
16359   enableval=$enable_debug; want_debug="$enableval"
16360 else
16361   want_debug=no
16362 fi
16363
16364
16365 if test "x$want_debug" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
16366   conky_CFLAGS="$conky_CFLAGS -g3 -O0"
16367
16368 $as_echo "#define DEBUG 1" >>confdefs.h
16369
16370 fi
16371
16372
16373 # Check whether --enable-testing was given.
16374 if test "${enable_testing+set}" = set; then :
16375   enableval=$enable_testing; want_testing="$enableval"
16376 else
16377   want_testing=no
16378 fi
16379
16380
16381 if test "x$want_testing" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
16382   if test "x$want_debug" = "xyes"; then
16383     conky_CFLAGS="$conky_CFLAGS -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Winline -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic -Werror"
16384
16385 $as_echo "#define TESTING /**/" >>confdefs.h
16386
16387   else
16388     conky_CFLAGS="$conky_CFLAGS -O0 -g3 -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Winline -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic -Werror"
16389
16390 $as_echo "#define TESTING /**/" >>confdefs.h
16391
16392   fi
16393 fi
16394
16395
16396 # Check whether --enable-profiling was given.
16397 if test "${enable_profiling+set}" = set; then :
16398   enableval=$enable_profiling; want_profiling="$enableval"
16399 else
16400   want_profiling=no
16401 fi
16402
16403
16404 if test "x$want_profiling" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
16405   if test "x$want_debug" = "xyes"; then
16406     conky_CFLAGS="$conky_CFLAGS -pg -fprofile-arcs -ftest-coverage"
16407   else
16408     conky_CFLAGS="$conky_CFLAGS -g3 -pg -fprofile-arcs -ftest-coverage"
16409   fi
16410
16411 $as_echo "#define PROFILING /**/" >>confdefs.h
16412
16413 fi
16414
16415
16416
16417
16418
16419 cat >confcache <<\_ACEOF
16420 # This file is a shell script that caches the results of configure
16421 # tests run on this system so they can be shared between configure
16422 # scripts and configure runs, see configure's option --config-cache.
16423 # It is not useful on other systems.  If it contains results you don't
16424 # want to keep, you may remove or edit it.
16425 #
16426 # config.status only pays attention to the cache file if you give it
16427 # the --recheck option to rerun configure.
16428 #
16429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16431 # following values.
16432
16433 _ACEOF
16434
16435 # The following way of writing the cache mishandles newlines in values,
16436 # but we know of no workaround that is simple, portable, and efficient.
16437 # So, we kill variables containing newlines.
16438 # Ultrix sh set writes to stderr and can't be redirected directly,
16439 # and sets the high bit in the cache file unless we assign to the vars.
16440 (
16441   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16442     eval ac_val=\$$ac_var
16443     case $ac_val in #(
16444     *${as_nl}*)
16445       case $ac_var in #(
16446       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16447 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16448       esac
16449       case $ac_var in #(
16450       _ | IFS | as_nl) ;; #(
16451       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16452       *) { eval $ac_var=; unset $ac_var;} ;;
16453       esac ;;
16454     esac
16455   done
16456
16457   (set) 2>&1 |
16458     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16459     *${as_nl}ac_space=\ *)
16460       # `set' does not quote correctly, so add quotes: double-quote
16461       # substitution turns \\\\ into \\, and sed turns \\ into \.
16462       sed -n \
16463         "s/'/'\\\\''/g;
16464           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16465       ;; #(
16466     *)
16467       # `set' quotes correctly as required by POSIX, so do not add quotes.
16468       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16469       ;;
16470     esac |
16471     sort
16472 ) |
16473   sed '
16474      /^ac_cv_env_/b end
16475      t clear
16476      :clear
16477      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16478      t end
16479      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16480      :end' >>confcache
16481 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16482   if test -w "$cache_file"; then
16483     test "x$cache_file" != "x/dev/null" &&
16484       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16485 $as_echo "$as_me: updating cache $cache_file" >&6;}
16486     cat confcache >$cache_file
16487   else
16488     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16489 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16490   fi
16491 fi
16492 rm -f confcache
16493
16494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16495 # Let make expand exec_prefix.
16496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16497
16498 DEFS=-DHAVE_CONFIG_H
16499
16500 ac_libobjs=
16501 ac_ltlibobjs=
16502 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16503   # 1. Remove the extension, and $U if already installed.
16504   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16505   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16506   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16507   #    will be set to the directory where LIBOBJS objects are built.
16508   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16509   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16510 done
16511 LIBOBJS=$ac_libobjs
16512
16513 LTLIBOBJS=$ac_ltlibobjs
16514
16515
16516  if test -n "$EXEEXT"; then
16517   am__EXEEXT_TRUE=
16518   am__EXEEXT_FALSE='#'
16519 else
16520   am__EXEEXT_TRUE='#'
16521   am__EXEEXT_FALSE=
16522 fi
16523
16524 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16525   as_fn_error "conditional \"AMDEP\" was never defined.
16526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16527 fi
16528 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16529   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16531 fi
16532 if test -z "${BUILD_LINUX_TRUE}" && test -z "${BUILD_LINUX_FALSE}"; then
16533   as_fn_error "conditional \"BUILD_LINUX\" was never defined.
16534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16535 fi
16536 if test -z "${BUILD_FREEBSD_TRUE}" && test -z "${BUILD_FREEBSD_FALSE}"; then
16537   as_fn_error "conditional \"BUILD_FREEBSD\" was never defined.
16538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16539 fi
16540 if test -z "${BUILD_OPENBSD_TRUE}" && test -z "${BUILD_OPENBSD_FALSE}"; then
16541   as_fn_error "conditional \"BUILD_OPENBSD\" was never defined.
16542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16543 fi
16544 if test -z "${BUILD_CONFIG_OUTPUT_TRUE}" && test -z "${BUILD_CONFIG_OUTPUT_FALSE}"; then
16545   as_fn_error "conditional \"BUILD_CONFIG_OUTPUT\" was never defined.
16546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16547 fi
16548 if test -z "${BUILD_NCURSES_TRUE}" && test -z "${BUILD_NCURSES_FALSE}"; then
16549   as_fn_error "conditional \"BUILD_NCURSES\" was never defined.
16550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16551 fi
16552 if test -z "${BUILD_AUDACIOUS_TRUE}" && test -z "${BUILD_AUDACIOUS_FALSE}"; then
16553   as_fn_error "conditional \"BUILD_AUDACIOUS\" was never defined.
16554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16555 fi
16556 if test -z "${BUILD_BMPX_TRUE}" && test -z "${BUILD_BMPX_FALSE}"; then
16557   as_fn_error "conditional \"BUILD_BMPX\" was never defined.
16558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16559 fi
16560 if test -z "${BUILD_IBM_TRUE}" && test -z "${BUILD_IBM_FALSE}"; then
16561   as_fn_error "conditional \"BUILD_IBM\" was never defined.
16562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16563 fi
16564 if test -z "${BUILD_HDDTEMP_TRUE}" && test -z "${BUILD_HDDTEMP_FALSE}"; then
16565   as_fn_error "conditional \"BUILD_HDDTEMP\" was never defined.
16566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16567 fi
16568 if test -z "${BUILD_APCUPSD_TRUE}" && test -z "${BUILD_APCUPSD_FALSE}"; then
16569   as_fn_error "conditional \"BUILD_APCUPSD\" was never defined.
16570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16571 fi
16572 if test -z "${BUILD_MATH_TRUE}" && test -z "${BUILD_MATH_FALSE}"; then
16573   as_fn_error "conditional \"BUILD_MATH\" was never defined.
16574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16575 fi
16576 if test -z "${BUILD_MPD_TRUE}" && test -z "${BUILD_MPD_FALSE}"; then
16577   as_fn_error "conditional \"BUILD_MPD\" was never defined.
16578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16579 fi
16580 if test -z "${BUILD_MOC_TRUE}" && test -z "${BUILD_MOC_FALSE}"; then
16581   as_fn_error "conditional \"BUILD_MOC\" was never defined.
16582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16583 fi
16584 if test -z "${BUILD_XMMS2_TRUE}" && test -z "${BUILD_XMMS2_FALSE}"; then
16585   as_fn_error "conditional \"BUILD_XMMS2\" was never defined.
16586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16587 fi
16588 if test -z "${BUILD_EVE_TRUE}" && test -z "${BUILD_EVE_FALSE}"; then
16589   as_fn_error "conditional \"BUILD_EVE\" was never defined.
16590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16591 fi
16592 if test -z "${BUILD_RSS_TRUE}" && test -z "${BUILD_RSS_FALSE}"; then
16593   as_fn_error "conditional \"BUILD_RSS\" was never defined.
16594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16595 fi
16596 if test -z "${BUILD_WEATHER_TRUE}" && test -z "${BUILD_WEATHER_FALSE}"; then
16597   as_fn_error "conditional \"BUILD_WEATHER\" was never defined.
16598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16599 fi
16600 if test -z "${BUILD_XOAP_TRUE}" && test -z "${BUILD_XOAP_FALSE}"; then
16601   as_fn_error "conditional \"BUILD_XOAP\" was never defined.
16602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16603 fi
16604 if test -z "${BUILD_X11_TRUE}" && test -z "${BUILD_X11_FALSE}"; then
16605   as_fn_error "conditional \"BUILD_X11\" was never defined.
16606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16607 fi
16608 if test -z "${BUILD_IMLIB2_TRUE}" && test -z "${BUILD_IMLIB2_FALSE}"; then
16609   as_fn_error "conditional \"BUILD_IMLIB2\" was never defined.
16610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16611 fi
16612 if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
16613   as_fn_error "conditional \"BUILD_LUA\" was never defined.
16614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16615 fi
16616 if test -z "${BUILD_LUA_CAIRO_TRUE}" && test -z "${BUILD_LUA_CAIRO_FALSE}"; then
16617   as_fn_error "conditional \"BUILD_LUA_CAIRO\" was never defined.
16618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16619 fi
16620 if test -z "${BUILD_LUA_IMLIB2_TRUE}" && test -z "${BUILD_LUA_IMLIB2_FALSE}"; then
16621   as_fn_error "conditional \"BUILD_LUA_IMLIB2\" was never defined.
16622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16623 fi
16624 if test -z "${BUILD_WLAN_TRUE}" && test -z "${BUILD_WLAN_FALSE}"; then
16625   as_fn_error "conditional \"BUILD_WLAN\" was never defined.
16626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16627 fi
16628 if test -z "${BUILD_PORT_MONITORS_TRUE}" && test -z "${BUILD_PORT_MONITORS_FALSE}"; then
16629   as_fn_error "conditional \"BUILD_PORT_MONITORS\" was never defined.
16630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16631 fi
16632 if test -z "${BUILD_ICONV_TRUE}" && test -z "${BUILD_ICONV_FALSE}"; then
16633   as_fn_error "conditional \"BUILD_ICONV\" was never defined.
16634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16635 fi
16636 if test -z "${BUILD_NVIDIA_TRUE}" && test -z "${BUILD_NVIDIA_FALSE}"; then
16637   as_fn_error "conditional \"BUILD_NVIDIA\" was never defined.
16638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16639 fi
16640 if test -z "${BUILD_CURL_TRUE}" && test -z "${BUILD_CURL_FALSE}"; then
16641   as_fn_error "conditional \"BUILD_CURL\" was never defined.
16642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16643 fi
16644 if test -z "${HAVE_DOCSTUFF_TRUE}" && test -z "${HAVE_DOCSTUFF_FALSE}"; then
16645   as_fn_error "conditional \"HAVE_DOCSTUFF\" was never defined.
16646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16647 fi
16648 if test -z "${HAVE_DOCSTUFF_TRUE}" && test -z "${HAVE_DOCSTUFF_FALSE}"; then
16649   as_fn_error "conditional \"HAVE_DOCSTUFF\" was never defined.
16650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16651 fi
16652
16653 : ${CONFIG_STATUS=./config.status}
16654 ac_write_fail=0
16655 ac_clean_files_save=$ac_clean_files
16656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16658 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16659 as_write_fail=0
16660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16661 #! $SHELL
16662 # Generated by $as_me.
16663 # Run this file to recreate the current configuration.
16664 # Compiler output produced by configure, useful for debugging
16665 # configure, is in config.log if it exists.
16666
16667 debug=false
16668 ac_cs_recheck=false
16669 ac_cs_silent=false
16670
16671 SHELL=\${CONFIG_SHELL-$SHELL}
16672 export SHELL
16673 _ASEOF
16674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16675 ## -------------------- ##
16676 ## M4sh Initialization. ##
16677 ## -------------------- ##
16678
16679 # Be more Bourne compatible
16680 DUALCASE=1; export DUALCASE # for MKS sh
16681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16682   emulate sh
16683   NULLCMD=:
16684   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16685   # is contrary to our usage.  Disable this feature.
16686   alias -g '${1+"$@"}'='"$@"'
16687   setopt NO_GLOB_SUBST
16688 else
16689   case `(set -o) 2>/dev/null` in #(
16690   *posix*) :
16691     set -o posix ;; #(
16692   *) :
16693      ;;
16694 esac
16695 fi
16696
16697
16698 as_nl='
16699 '
16700 export as_nl
16701 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16702 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16705 # Prefer a ksh shell builtin over an external printf program on Solaris,
16706 # but without wasting forks for bash or zsh.
16707 if test -z "$BASH_VERSION$ZSH_VERSION" \
16708     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16709   as_echo='print -r --'
16710   as_echo_n='print -rn --'
16711 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16712   as_echo='printf %s\n'
16713   as_echo_n='printf %s'
16714 else
16715   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16716     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16717     as_echo_n='/usr/ucb/echo -n'
16718   else
16719     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16720     as_echo_n_body='eval
16721       arg=$1;
16722       case $arg in #(
16723       *"$as_nl"*)
16724         expr "X$arg" : "X\\(.*\\)$as_nl";
16725         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16726       esac;
16727       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16728     '
16729     export as_echo_n_body
16730     as_echo_n='sh -c $as_echo_n_body as_echo'
16731   fi
16732   export as_echo_body
16733   as_echo='sh -c $as_echo_body as_echo'
16734 fi
16735
16736 # The user is always right.
16737 if test "${PATH_SEPARATOR+set}" != set; then
16738   PATH_SEPARATOR=:
16739   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16740     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16741       PATH_SEPARATOR=';'
16742   }
16743 fi
16744
16745
16746 # IFS
16747 # We need space, tab and new line, in precisely that order.  Quoting is
16748 # there to prevent editors from complaining about space-tab.
16749 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16750 # splitting by setting IFS to empty value.)
16751 IFS=" ""        $as_nl"
16752
16753 # Find who we are.  Look in the path if we contain no directory separator.
16754 case $0 in #((
16755   *[\\/]* ) as_myself=$0 ;;
16756   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16757 for as_dir in $PATH
16758 do
16759   IFS=$as_save_IFS
16760   test -z "$as_dir" && as_dir=.
16761     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16762   done
16763 IFS=$as_save_IFS
16764
16765      ;;
16766 esac
16767 # We did not find ourselves, most probably we were run as `sh COMMAND'
16768 # in which case we are not to be found in the path.
16769 if test "x$as_myself" = x; then
16770   as_myself=$0
16771 fi
16772 if test ! -f "$as_myself"; then
16773   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16774   exit 1
16775 fi
16776
16777 # Unset variables that we do not need and which cause bugs (e.g. in
16778 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16779 # suppresses any "Segmentation fault" message there.  '((' could
16780 # trigger a bug in pdksh 5.2.14.
16781 for as_var in BASH_ENV ENV MAIL MAILPATH
16782 do eval test x\${$as_var+set} = xset \
16783   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16784 done
16785 PS1='$ '
16786 PS2='> '
16787 PS4='+ '
16788
16789 # NLS nuisances.
16790 LC_ALL=C
16791 export LC_ALL
16792 LANGUAGE=C
16793 export LANGUAGE
16794
16795 # CDPATH.
16796 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16797
16798
16799 # as_fn_error ERROR [LINENO LOG_FD]
16800 # ---------------------------------
16801 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16802 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16803 # script with status $?, using 1 if that was 0.
16804 as_fn_error ()
16805 {
16806   as_status=$?; test $as_status -eq 0 && as_status=1
16807   if test "$3"; then
16808     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16809     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16810   fi
16811   $as_echo "$as_me: error: $1" >&2
16812   as_fn_exit $as_status
16813 } # as_fn_error
16814
16815
16816 # as_fn_set_status STATUS
16817 # -----------------------
16818 # Set $? to STATUS, without forking.
16819 as_fn_set_status ()
16820 {
16821   return $1
16822 } # as_fn_set_status
16823
16824 # as_fn_exit STATUS
16825 # -----------------
16826 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16827 as_fn_exit ()
16828 {
16829   set +e
16830   as_fn_set_status $1
16831   exit $1
16832 } # as_fn_exit
16833
16834 # as_fn_unset VAR
16835 # ---------------
16836 # Portably unset VAR.
16837 as_fn_unset ()
16838 {
16839   { eval $1=; unset $1;}
16840 }
16841 as_unset=as_fn_unset
16842 # as_fn_append VAR VALUE
16843 # ----------------------
16844 # Append the text in VALUE to the end of the definition contained in VAR. Take
16845 # advantage of any shell optimizations that allow amortized linear growth over
16846 # repeated appends, instead of the typical quadratic growth present in naive
16847 # implementations.
16848 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16849   eval 'as_fn_append ()
16850   {
16851     eval $1+=\$2
16852   }'
16853 else
16854   as_fn_append ()
16855   {
16856     eval $1=\$$1\$2
16857   }
16858 fi # as_fn_append
16859
16860 # as_fn_arith ARG...
16861 # ------------------
16862 # Perform arithmetic evaluation on the ARGs, and store the result in the
16863 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16864 # must be portable across $(()) and expr.
16865 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16866   eval 'as_fn_arith ()
16867   {
16868     as_val=$(( $* ))
16869   }'
16870 else
16871   as_fn_arith ()
16872   {
16873     as_val=`expr "$@" || test $? -eq 1`
16874   }
16875 fi # as_fn_arith
16876
16877
16878 if expr a : '\(a\)' >/dev/null 2>&1 &&
16879    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16880   as_expr=expr
16881 else
16882   as_expr=false
16883 fi
16884
16885 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16886   as_basename=basename
16887 else
16888   as_basename=false
16889 fi
16890
16891 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16892   as_dirname=dirname
16893 else
16894   as_dirname=false
16895 fi
16896
16897 as_me=`$as_basename -- "$0" ||
16898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16899          X"$0" : 'X\(//\)$' \| \
16900          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16901 $as_echo X/"$0" |
16902     sed '/^.*\/\([^/][^/]*\)\/*$/{
16903             s//\1/
16904             q
16905           }
16906           /^X\/\(\/\/\)$/{
16907             s//\1/
16908             q
16909           }
16910           /^X\/\(\/\).*/{
16911             s//\1/
16912             q
16913           }
16914           s/.*/./; q'`
16915
16916 # Avoid depending upon Character Ranges.
16917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16920 as_cr_digits='0123456789'
16921 as_cr_alnum=$as_cr_Letters$as_cr_digits
16922
16923 ECHO_C= ECHO_N= ECHO_T=
16924 case `echo -n x` in #(((((
16925 -n*)
16926   case `echo 'xy\c'` in
16927   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16928   xy)  ECHO_C='\c';;
16929   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16930        ECHO_T=' ';;
16931   esac;;
16932 *)
16933   ECHO_N='-n';;
16934 esac
16935
16936 rm -f conf$$ conf$$.exe conf$$.file
16937 if test -d conf$$.dir; then
16938   rm -f conf$$.dir/conf$$.file
16939 else
16940   rm -f conf$$.dir
16941   mkdir conf$$.dir 2>/dev/null
16942 fi
16943 if (echo >conf$$.file) 2>/dev/null; then
16944   if ln -s conf$$.file conf$$ 2>/dev/null; then
16945     as_ln_s='ln -s'
16946     # ... but there are two gotchas:
16947     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16948     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16949     # In both cases, we have to default to `cp -p'.
16950     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16951       as_ln_s='cp -p'
16952   elif ln conf$$.file conf$$ 2>/dev/null; then
16953     as_ln_s=ln
16954   else
16955     as_ln_s='cp -p'
16956   fi
16957 else
16958   as_ln_s='cp -p'
16959 fi
16960 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16961 rmdir conf$$.dir 2>/dev/null
16962
16963
16964 # as_fn_mkdir_p
16965 # -------------
16966 # Create "$as_dir" as a directory, including parents if necessary.
16967 as_fn_mkdir_p ()
16968 {
16969
16970   case $as_dir in #(
16971   -*) as_dir=./$as_dir;;
16972   esac
16973   test -d "$as_dir" || eval $as_mkdir_p || {
16974     as_dirs=
16975     while :; do
16976       case $as_dir in #(
16977       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16978       *) as_qdir=$as_dir;;
16979       esac
16980       as_dirs="'$as_qdir' $as_dirs"
16981       as_dir=`$as_dirname -- "$as_dir" ||
16982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16983          X"$as_dir" : 'X\(//\)[^/]' \| \
16984          X"$as_dir" : 'X\(//\)$' \| \
16985          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16986 $as_echo X"$as_dir" |
16987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16988             s//\1/
16989             q
16990           }
16991           /^X\(\/\/\)[^/].*/{
16992             s//\1/
16993             q
16994           }
16995           /^X\(\/\/\)$/{
16996             s//\1/
16997             q
16998           }
16999           /^X\(\/\).*/{
17000             s//\1/
17001             q
17002           }
17003           s/.*/./; q'`
17004       test -d "$as_dir" && break
17005     done
17006     test -z "$as_dirs" || eval "mkdir $as_dirs"
17007   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17008
17009
17010 } # as_fn_mkdir_p
17011 if mkdir -p . 2>/dev/null; then
17012   as_mkdir_p='mkdir -p "$as_dir"'
17013 else
17014   test -d ./-p && rmdir ./-p
17015   as_mkdir_p=false
17016 fi
17017
17018 if test -x / >/dev/null 2>&1; then
17019   as_test_x='test -x'
17020 else
17021   if ls -dL / >/dev/null 2>&1; then
17022     as_ls_L_option=L
17023   else
17024     as_ls_L_option=
17025   fi
17026   as_test_x='
17027     eval sh -c '\''
17028       if test -d "$1"; then
17029         test -d "$1/.";
17030       else
17031         case $1 in #(
17032         -*)set "./$1";;
17033         esac;
17034         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17035         ???[sx]*):;;*)false;;esac;fi
17036     '\'' sh
17037   '
17038 fi
17039 as_executable_p=$as_test_x
17040
17041 # Sed expression to map a string onto a valid CPP name.
17042 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17043
17044 # Sed expression to map a string onto a valid variable name.
17045 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17046
17047
17048 exec 6>&1
17049 ## ----------------------------------- ##
17050 ## Main body of $CONFIG_STATUS script. ##
17051 ## ----------------------------------- ##
17052 _ASEOF
17053 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17054
17055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17056 # Save the log message, to keep $0 and so on meaningful, and to
17057 # report actual input values of CONFIG_FILES etc. instead of their
17058 # values after options handling.
17059 ac_log="
17060 This file was extended by Conky $as_me 1.8.0, which was
17061 generated by GNU Autoconf 2.65.  Invocation command line was
17062
17063   CONFIG_FILES    = $CONFIG_FILES
17064   CONFIG_HEADERS  = $CONFIG_HEADERS
17065   CONFIG_LINKS    = $CONFIG_LINKS
17066   CONFIG_COMMANDS = $CONFIG_COMMANDS
17067   $ $0 $@
17068
17069 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17070 "
17071
17072 _ACEOF
17073
17074 case $ac_config_files in *"
17075 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17076 esac
17077
17078 case $ac_config_headers in *"
17079 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17080 esac
17081
17082
17083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17084 # Files that config.status was made for.
17085 config_files="$ac_config_files"
17086 config_headers="$ac_config_headers"
17087 config_commands="$ac_config_commands"
17088
17089 _ACEOF
17090
17091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17092 ac_cs_usage="\
17093 \`$as_me' instantiates files and other configuration actions
17094 from templates according to the current configuration.  Unless the files
17095 and actions are specified as TAGs, all are instantiated by default.
17096
17097 Usage: $0 [OPTION]... [TAG]...
17098
17099   -h, --help       print this help, then exit
17100   -V, --version    print version number and configuration settings, then exit
17101       --config     print configuration, then exit
17102   -q, --quiet, --silent
17103                    do not print progress messages
17104   -d, --debug      don't remove temporary files
17105       --recheck    update $as_me by reconfiguring in the same conditions
17106       --file=FILE[:TEMPLATE]
17107                    instantiate the configuration file FILE
17108       --header=FILE[:TEMPLATE]
17109                    instantiate the configuration header FILE
17110
17111 Configuration files:
17112 $config_files
17113
17114 Configuration headers:
17115 $config_headers
17116
17117 Configuration commands:
17118 $config_commands
17119
17120 Report bugs to <brenden1@users.sourceforge.net>."
17121
17122 _ACEOF
17123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17124 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17125 ac_cs_version="\\
17126 Conky config.status 1.8.0
17127 configured by $0, generated by GNU Autoconf 2.65,
17128   with options \\"\$ac_cs_config\\"
17129
17130 Copyright (C) 2009 Free Software Foundation, Inc.
17131 This config.status script is free software; the Free Software Foundation
17132 gives unlimited permission to copy, distribute and modify it."
17133
17134 ac_pwd='$ac_pwd'
17135 srcdir='$srcdir'
17136 INSTALL='$INSTALL'
17137 MKDIR_P='$MKDIR_P'
17138 AWK='$AWK'
17139 test -n "\$AWK" || AWK=awk
17140 _ACEOF
17141
17142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17143 # The default lists apply if the user does not specify any file.
17144 ac_need_defaults=:
17145 while test $# != 0
17146 do
17147   case $1 in
17148   --*=*)
17149     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17150     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17151     ac_shift=:
17152     ;;
17153   *)
17154     ac_option=$1
17155     ac_optarg=$2
17156     ac_shift=shift
17157     ;;
17158   esac
17159
17160   case $ac_option in
17161   # Handling of the options.
17162   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17163     ac_cs_recheck=: ;;
17164   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17165     $as_echo "$ac_cs_version"; exit ;;
17166   --config | --confi | --conf | --con | --co | --c )
17167     $as_echo "$ac_cs_config"; exit ;;
17168   --debug | --debu | --deb | --de | --d | -d )
17169     debug=: ;;
17170   --file | --fil | --fi | --f )
17171     $ac_shift
17172     case $ac_optarg in
17173     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17174     esac
17175     as_fn_append CONFIG_FILES " '$ac_optarg'"
17176     ac_need_defaults=false;;
17177   --header | --heade | --head | --hea )
17178     $ac_shift
17179     case $ac_optarg in
17180     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17181     esac
17182     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17183     ac_need_defaults=false;;
17184   --he | --h)
17185     # Conflict between --help and --header
17186     as_fn_error "ambiguous option: \`$1'
17187 Try \`$0 --help' for more information.";;
17188   --help | --hel | -h )
17189     $as_echo "$ac_cs_usage"; exit ;;
17190   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17191   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17192     ac_cs_silent=: ;;
17193
17194   # This is an error.
17195   -*) as_fn_error "unrecognized option: \`$1'
17196 Try \`$0 --help' for more information." ;;
17197
17198   *) as_fn_append ac_config_targets " $1"
17199      ac_need_defaults=false ;;
17200
17201   esac
17202   shift
17203 done
17204
17205 ac_configure_extra_args=
17206
17207 if $ac_cs_silent; then
17208   exec 6>/dev/null
17209   ac_configure_extra_args="$ac_configure_extra_args --silent"
17210 fi
17211
17212 _ACEOF
17213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17214 if \$ac_cs_recheck; then
17215   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17216   shift
17217   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17218   CONFIG_SHELL='$SHELL'
17219   export CONFIG_SHELL
17220   exec "\$@"
17221 fi
17222
17223 _ACEOF
17224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17225 exec 5>>config.log
17226 {
17227   echo
17228   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17229 ## Running $as_me. ##
17230 _ASBOX
17231   $as_echo "$ac_log"
17232 } >&5
17233
17234 _ACEOF
17235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17236 #
17237 # INIT-COMMANDS
17238 #
17239 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17240
17241
17242 # The HP-UX ksh and POSIX shell print the target directory to stdout
17243 # if CDPATH is set.
17244 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17245
17246 sed_quote_subst='$sed_quote_subst'
17247 double_quote_subst='$double_quote_subst'
17248 delay_variable_subst='$delay_variable_subst'
17249 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17250 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17251 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17252 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17253 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17254 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17255 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17256 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17257 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17258 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17259 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17260 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17261 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17262 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17263 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17264 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17265 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17266 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17267 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17268 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17269 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17270 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17271 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17272 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17273 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17274 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17275 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17276 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17277 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17278 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17279 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17280 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17281 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17282 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17283 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17284 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17285 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17286 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17287 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17288 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17289 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17290 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17291 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17292 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17293 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17294 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17295 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17296 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17297 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17298 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17299 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17300 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17301 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17302 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17303 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17304 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17305 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17306 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17307 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17308 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17309 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17310 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17311 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17312 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17313 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17314 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17315 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17316 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17317 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17318 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17319 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17320 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17321 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17322 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17323 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17324 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17325 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17326 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17327 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17328 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17329 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17330 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17331 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17332 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17333 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17334 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17335 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17336 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17337 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17338 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17339 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17340 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17341 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17342 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17343 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17344 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17345 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17346 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17347 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17348 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17349 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17350 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17351 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17352 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17353 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17354 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17355 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17356 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17357 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17358 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17359 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17360 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17361 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17362 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17363 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17364 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17365 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17366 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17367
17368 LTCC='$LTCC'
17369 LTCFLAGS='$LTCFLAGS'
17370 compiler='$compiler_DEFAULT'
17371
17372 # Quote evaled strings.
17373 for var in SED \
17374 GREP \
17375 EGREP \
17376 FGREP \
17377 LD \
17378 NM \
17379 LN_S \
17380 lt_SP2NL \
17381 lt_NL2SP \
17382 reload_flag \
17383 OBJDUMP \
17384 deplibs_check_method \
17385 file_magic_cmd \
17386 AR \
17387 AR_FLAGS \
17388 STRIP \
17389 RANLIB \
17390 CC \
17391 CFLAGS \
17392 compiler \
17393 lt_cv_sys_global_symbol_pipe \
17394 lt_cv_sys_global_symbol_to_cdecl \
17395 lt_cv_sys_global_symbol_to_c_name_address \
17396 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17397 SHELL \
17398 ECHO \
17399 lt_prog_compiler_no_builtin_flag \
17400 lt_prog_compiler_wl \
17401 lt_prog_compiler_pic \
17402 lt_prog_compiler_static \
17403 lt_cv_prog_compiler_c_o \
17404 need_locks \
17405 DSYMUTIL \
17406 NMEDIT \
17407 LIPO \
17408 OTOOL \
17409 OTOOL64 \
17410 shrext_cmds \
17411 export_dynamic_flag_spec \
17412 whole_archive_flag_spec \
17413 compiler_needs_object \
17414 with_gnu_ld \
17415 allow_undefined_flag \
17416 no_undefined_flag \
17417 hardcode_libdir_flag_spec \
17418 hardcode_libdir_flag_spec_ld \
17419 hardcode_libdir_separator \
17420 fix_srcfile_path \
17421 exclude_expsyms \
17422 include_expsyms \
17423 file_list_spec \
17424 variables_saved_for_relink \
17425 libname_spec \
17426 library_names_spec \
17427 soname_spec \
17428 finish_eval \
17429 old_striplib \
17430 striplib; do
17431     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17432     *[\\\\\\\`\\"\\\$]*)
17433       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17434       ;;
17435     *)
17436       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17437       ;;
17438     esac
17439 done
17440
17441 # Double-quote double-evaled strings.
17442 for var in reload_cmds \
17443 old_postinstall_cmds \
17444 old_postuninstall_cmds \
17445 old_archive_cmds \
17446 extract_expsyms_cmds \
17447 old_archive_from_new_cmds \
17448 old_archive_from_expsyms_cmds \
17449 archive_cmds \
17450 archive_expsym_cmds \
17451 module_cmds \
17452 module_expsym_cmds \
17453 export_symbols_cmds \
17454 prelink_cmds \
17455 postinstall_cmds \
17456 postuninstall_cmds \
17457 finish_cmds \
17458 sys_lib_search_path_spec \
17459 sys_lib_dlsearch_path_spec; do
17460     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17461     *[\\\\\\\`\\"\\\$]*)
17462       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17463       ;;
17464     *)
17465       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17466       ;;
17467     esac
17468 done
17469
17470 # Fix-up fallback echo if it was mangled by the above quoting rules.
17471 case \$lt_ECHO in
17472 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17473   ;;
17474 esac
17475
17476 ac_aux_dir='$ac_aux_dir'
17477 xsi_shell='$xsi_shell'
17478 lt_shell_append='$lt_shell_append'
17479
17480 # See if we are running on zsh, and set the options which allow our
17481 # commands through without removal of \ escapes INIT.
17482 if test -n "\${ZSH_VERSION+set}" ; then
17483    setopt NO_GLOB_SUBST
17484 fi
17485
17486
17487     PACKAGE='$PACKAGE'
17488     VERSION='$VERSION'
17489     TIMESTAMP='$TIMESTAMP'
17490     RM='$RM'
17491     ofile='$ofile'
17492
17493
17494
17495
17496 _ACEOF
17497
17498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17499
17500 # Handling of arguments.
17501 for ac_config_target in $ac_config_targets
17502 do
17503   case $ac_config_target in
17504     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17505     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17506     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17507     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17508     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
17509     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17510     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17511     "src/build.h") CONFIG_FILES="$CONFIG_FILES src/build.h" ;;
17512     "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;;
17513
17514   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17515   esac
17516 done
17517
17518
17519 # If the user did not use the arguments to specify the items to instantiate,
17520 # then the envvar interface is used.  Set only those that are not.
17521 # We use the long form for the default assignment because of an extremely
17522 # bizarre bug on SunOS 4.1.3.
17523 if $ac_need_defaults; then
17524   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17525   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17526   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17527 fi
17528
17529 # Have a temporary directory for convenience.  Make it in the build tree
17530 # simply because there is no reason against having it here, and in addition,
17531 # creating and moving files from /tmp can sometimes cause problems.
17532 # Hook for its removal unless debugging.
17533 # Note that there is a small window in which the directory will not be cleaned:
17534 # after its creation but before its name has been assigned to `$tmp'.
17535 $debug ||
17536 {
17537   tmp=
17538   trap 'exit_status=$?
17539   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17540 ' 0
17541   trap 'as_fn_exit 1' 1 2 13 15
17542 }
17543 # Create a (secure) tmp directory for tmp files.
17544
17545 {
17546   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17547   test -n "$tmp" && test -d "$tmp"
17548 }  ||
17549 {
17550   tmp=./conf$$-$RANDOM
17551   (umask 077 && mkdir "$tmp")
17552 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17553
17554 # Set up the scripts for CONFIG_FILES section.
17555 # No need to generate them if there are no CONFIG_FILES.
17556 # This happens for instance with `./config.status config.h'.
17557 if test -n "$CONFIG_FILES"; then
17558
17559
17560 ac_cr=`echo X | tr X '\015'`
17561 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17562 # But we know of no other shell where ac_cr would be empty at this
17563 # point, so we can use a bashism as a fallback.
17564 if test "x$ac_cr" = x; then
17565   eval ac_cr=\$\'\\r\'
17566 fi
17567 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17568 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17569   ac_cs_awk_cr='\r'
17570 else
17571   ac_cs_awk_cr=$ac_cr
17572 fi
17573
17574 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17575 _ACEOF
17576
17577
17578 {
17579   echo "cat >conf$$subs.awk <<_ACEOF" &&
17580   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17581   echo "_ACEOF"
17582 } >conf$$subs.sh ||
17583   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17584 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17585 ac_delim='%!_!# '
17586 for ac_last_try in false false false false false :; do
17587   . ./conf$$subs.sh ||
17588     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17589
17590   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17591   if test $ac_delim_n = $ac_delim_num; then
17592     break
17593   elif $ac_last_try; then
17594     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17595   else
17596     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17597   fi
17598 done
17599 rm -f conf$$subs.sh
17600
17601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17602 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17603 _ACEOF
17604 sed -n '
17605 h
17606 s/^/S["/; s/!.*/"]=/
17607 p
17608 g
17609 s/^[^!]*!//
17610 :repl
17611 t repl
17612 s/'"$ac_delim"'$//
17613 t delim
17614 :nl
17615 h
17616 s/\(.\{148\}\)..*/\1/
17617 t more1
17618 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17619 p
17620 n
17621 b repl
17622 :more1
17623 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17624 p
17625 g
17626 s/.\{148\}//
17627 t nl
17628 :delim
17629 h
17630 s/\(.\{148\}\)..*/\1/
17631 t more2
17632 s/["\\]/\\&/g; s/^/"/; s/$/"/
17633 p
17634 b
17635 :more2
17636 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17637 p
17638 g
17639 s/.\{148\}//
17640 t delim
17641 ' <conf$$subs.awk | sed '
17642 /^[^""]/{
17643   N
17644   s/\n//
17645 }
17646 ' >>$CONFIG_STATUS || ac_write_fail=1
17647 rm -f conf$$subs.awk
17648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17649 _ACAWK
17650 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17651   for (key in S) S_is_set[key] = 1
17652   FS = "\a"
17653
17654 }
17655 {
17656   line = $ 0
17657   nfields = split(line, field, "@")
17658   substed = 0
17659   len = length(field[1])
17660   for (i = 2; i < nfields; i++) {
17661     key = field[i]
17662     keylen = length(key)
17663     if (S_is_set[key]) {
17664       value = S[key]
17665       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17666       len += length(value) + length(field[++i])
17667       substed = 1
17668     } else
17669       len += 1 + keylen
17670   }
17671
17672   print line
17673 }
17674
17675 _ACAWK
17676 _ACEOF
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17679   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17680 else
17681   cat
17682 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17683   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17684 _ACEOF
17685
17686 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17687 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17688 # trailing colons and then remove the whole line if VPATH becomes empty
17689 # (actually we leave an empty line to preserve line numbers).
17690 if test "x$srcdir" = x.; then
17691   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17692 s/:*\$(srcdir):*/:/
17693 s/:*\${srcdir}:*/:/
17694 s/:*@srcdir@:*/:/
17695 s/^\([^=]*=[     ]*\):*/\1/
17696 s/:*$//
17697 s/^[^=]*=[       ]*$//
17698 }'
17699 fi
17700
17701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17702 fi # test -n "$CONFIG_FILES"
17703
17704 # Set up the scripts for CONFIG_HEADERS section.
17705 # No need to generate them if there are no CONFIG_HEADERS.
17706 # This happens for instance with `./config.status Makefile'.
17707 if test -n "$CONFIG_HEADERS"; then
17708 cat >"$tmp/defines.awk" <<\_ACAWK ||
17709 BEGIN {
17710 _ACEOF
17711
17712 # Transform confdefs.h into an awk script `defines.awk', embedded as
17713 # here-document in config.status, that substitutes the proper values into
17714 # config.h.in to produce config.h.
17715
17716 # Create a delimiter string that does not exist in confdefs.h, to ease
17717 # handling of long lines.
17718 ac_delim='%!_!# '
17719 for ac_last_try in false false :; do
17720   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17721   if test -z "$ac_t"; then
17722     break
17723   elif $ac_last_try; then
17724     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17725   else
17726     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17727   fi
17728 done
17729
17730 # For the awk script, D is an array of macro values keyed by name,
17731 # likewise P contains macro parameters if any.  Preserve backslash
17732 # newline sequences.
17733
17734 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17735 sed -n '
17736 s/.\{148\}/&'"$ac_delim"'/g
17737 t rset
17738 :rset
17739 s/^[     ]*#[    ]*define[       ][      ]*/ /
17740 t def
17741 d
17742 :def
17743 s/\\$//
17744 t bsnl
17745 s/["\\]/\\&/g
17746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17747 D["\1"]=" \3"/p
17748 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17749 d
17750 :bsnl
17751 s/["\\]/\\&/g
17752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17753 D["\1"]=" \3\\\\\\n"\\/p
17754 t cont
17755 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17756 t cont
17757 d
17758 :cont
17759 n
17760 s/.\{148\}/&'"$ac_delim"'/g
17761 t clear
17762 :clear
17763 s/\\$//
17764 t bsnlc
17765 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17766 d
17767 :bsnlc
17768 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17769 b cont
17770 ' <confdefs.h | sed '
17771 s/'"$ac_delim"'/"\\\
17772 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17773
17774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17775   for (key in D) D_is_set[key] = 1
17776   FS = "\a"
17777 }
17778 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17779   line = \$ 0
17780   split(line, arg, " ")
17781   if (arg[1] == "#") {
17782     defundef = arg[2]
17783     mac1 = arg[3]
17784   } else {
17785     defundef = substr(arg[1], 2)
17786     mac1 = arg[2]
17787   }
17788   split(mac1, mac2, "(") #)
17789   macro = mac2[1]
17790   prefix = substr(line, 1, index(line, defundef) - 1)
17791   if (D_is_set[macro]) {
17792     # Preserve the white space surrounding the "#".
17793     print prefix "define", macro P[macro] D[macro]
17794     next
17795   } else {
17796     # Replace #undef with comments.  This is necessary, for example,
17797     # in the case of _POSIX_SOURCE, which is predefined and required
17798     # on some systems where configure will not decide to define it.
17799     if (defundef == "undef") {
17800       print "/*", prefix defundef, macro, "*/"
17801       next
17802     }
17803   }
17804 }
17805 { print }
17806 _ACAWK
17807 _ACEOF
17808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17809   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17810 fi # test -n "$CONFIG_HEADERS"
17811
17812
17813 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17814 shift
17815 for ac_tag
17816 do
17817   case $ac_tag in
17818   :[FHLC]) ac_mode=$ac_tag; continue;;
17819   esac
17820   case $ac_mode$ac_tag in
17821   :[FHL]*:*);;
17822   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17823   :[FH]-) ac_tag=-:-;;
17824   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17825   esac
17826   ac_save_IFS=$IFS
17827   IFS=:
17828   set x $ac_tag
17829   IFS=$ac_save_IFS
17830   shift
17831   ac_file=$1
17832   shift
17833
17834   case $ac_mode in
17835   :L) ac_source=$1;;
17836   :[FH])
17837     ac_file_inputs=
17838     for ac_f
17839     do
17840       case $ac_f in
17841       -) ac_f="$tmp/stdin";;
17842       *) # Look for the file first in the build tree, then in the source tree
17843          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17844          # because $ac_f cannot contain `:'.
17845          test -f "$ac_f" ||
17846            case $ac_f in
17847            [\\/$]*) false;;
17848            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17849            esac ||
17850            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17851       esac
17852       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17853       as_fn_append ac_file_inputs " '$ac_f'"
17854     done
17855
17856     # Let's still pretend it is `configure' which instantiates (i.e., don't
17857     # use $as_me), people would be surprised to read:
17858     #    /* config.h.  Generated by config.status.  */
17859     configure_input='Generated from '`
17860           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17861         `' by configure.'
17862     if test x"$ac_file" != x-; then
17863       configure_input="$ac_file.  $configure_input"
17864       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17865 $as_echo "$as_me: creating $ac_file" >&6;}
17866     fi
17867     # Neutralize special characters interpreted by sed in replacement strings.
17868     case $configure_input in #(
17869     *\&* | *\|* | *\\* )
17870        ac_sed_conf_input=`$as_echo "$configure_input" |
17871        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17872     *) ac_sed_conf_input=$configure_input;;
17873     esac
17874
17875     case $ac_tag in
17876     *:-:* | *:-) cat >"$tmp/stdin" \
17877       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17878     esac
17879     ;;
17880   esac
17881
17882   ac_dir=`$as_dirname -- "$ac_file" ||
17883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17884          X"$ac_file" : 'X\(//\)[^/]' \| \
17885          X"$ac_file" : 'X\(//\)$' \| \
17886          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17887 $as_echo X"$ac_file" |
17888     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17889             s//\1/
17890             q
17891           }
17892           /^X\(\/\/\)[^/].*/{
17893             s//\1/
17894             q
17895           }
17896           /^X\(\/\/\)$/{
17897             s//\1/
17898             q
17899           }
17900           /^X\(\/\).*/{
17901             s//\1/
17902             q
17903           }
17904           s/.*/./; q'`
17905   as_dir="$ac_dir"; as_fn_mkdir_p
17906   ac_builddir=.
17907
17908 case "$ac_dir" in
17909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17910 *)
17911   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17912   # A ".." for each directory in $ac_dir_suffix.
17913   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17914   case $ac_top_builddir_sub in
17915   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17916   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17917   esac ;;
17918 esac
17919 ac_abs_top_builddir=$ac_pwd
17920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17921 # for backward compatibility:
17922 ac_top_builddir=$ac_top_build_prefix
17923
17924 case $srcdir in
17925   .)  # We are building in place.
17926     ac_srcdir=.
17927     ac_top_srcdir=$ac_top_builddir_sub
17928     ac_abs_top_srcdir=$ac_pwd ;;
17929   [\\/]* | ?:[\\/]* )  # Absolute name.
17930     ac_srcdir=$srcdir$ac_dir_suffix;
17931     ac_top_srcdir=$srcdir
17932     ac_abs_top_srcdir=$srcdir ;;
17933   *) # Relative name.
17934     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17935     ac_top_srcdir=$ac_top_build_prefix$srcdir
17936     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17937 esac
17938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17939
17940
17941   case $ac_mode in
17942   :F)
17943   #
17944   # CONFIG_FILE
17945   #
17946
17947   case $INSTALL in
17948   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17949   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17950   esac
17951   ac_MKDIR_P=$MKDIR_P
17952   case $MKDIR_P in
17953   [\\/$]* | ?:[\\/]* ) ;;
17954   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17955   esac
17956 _ACEOF
17957
17958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17959 # If the template does not know about datarootdir, expand it.
17960 # FIXME: This hack should be removed a few years after 2.60.
17961 ac_datarootdir_hack=; ac_datarootdir_seen=
17962 ac_sed_dataroot='
17963 /datarootdir/ {
17964   p
17965   q
17966 }
17967 /@datadir@/p
17968 /@docdir@/p
17969 /@infodir@/p
17970 /@localedir@/p
17971 /@mandir@/p'
17972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17973 *datarootdir*) ac_datarootdir_seen=yes;;
17974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17975   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17976 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17977 _ACEOF
17978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17979   ac_datarootdir_hack='
17980   s&@datadir@&$datadir&g
17981   s&@docdir@&$docdir&g
17982   s&@infodir@&$infodir&g
17983   s&@localedir@&$localedir&g
17984   s&@mandir@&$mandir&g
17985   s&\\\${datarootdir}&$datarootdir&g' ;;
17986 esac
17987 _ACEOF
17988
17989 # Neutralize VPATH when `$srcdir' = `.'.
17990 # Shell code in configure.ac might set extrasub.
17991 # FIXME: do we really want to maintain this feature?
17992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17993 ac_sed_extra="$ac_vpsub
17994 $extrasub
17995 _ACEOF
17996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17997 :t
17998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17999 s|@configure_input@|$ac_sed_conf_input|;t t
18000 s&@top_builddir@&$ac_top_builddir_sub&;t t
18001 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18002 s&@srcdir@&$ac_srcdir&;t t
18003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18004 s&@top_srcdir@&$ac_top_srcdir&;t t
18005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18006 s&@builddir@&$ac_builddir&;t t
18007 s&@abs_builddir@&$ac_abs_builddir&;t t
18008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18009 s&@INSTALL@&$ac_INSTALL&;t t
18010 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18011 $ac_datarootdir_hack
18012 "
18013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18014   || as_fn_error "could not create $ac_file" "$LINENO" 5
18015
18016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18017   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18018   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18019   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18020 which seems to be undefined.  Please make sure it is defined." >&5
18021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18022 which seems to be undefined.  Please make sure it is defined." >&2;}
18023
18024   rm -f "$tmp/stdin"
18025   case $ac_file in
18026   -) cat "$tmp/out" && rm -f "$tmp/out";;
18027   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18028   esac \
18029   || as_fn_error "could not create $ac_file" "$LINENO" 5
18030  ;;
18031   :H)
18032   #
18033   # CONFIG_HEADER
18034   #
18035   if test x"$ac_file" != x-; then
18036     {
18037       $as_echo "/* $configure_input  */" \
18038       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18039     } >"$tmp/config.h" \
18040       || as_fn_error "could not create $ac_file" "$LINENO" 5
18041     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18042       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18043 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18044     else
18045       rm -f "$ac_file"
18046       mv "$tmp/config.h" "$ac_file" \
18047         || as_fn_error "could not create $ac_file" "$LINENO" 5
18048     fi
18049   else
18050     $as_echo "/* $configure_input  */" \
18051       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18052       || as_fn_error "could not create -" "$LINENO" 5
18053   fi
18054 # Compute "$ac_file"'s index in $config_headers.
18055 _am_arg="$ac_file"
18056 _am_stamp_count=1
18057 for _am_header in $config_headers :; do
18058   case $_am_header in
18059     $_am_arg | $_am_arg:* )
18060       break ;;
18061     * )
18062       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18063   esac
18064 done
18065 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18066 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18067          X"$_am_arg" : 'X\(//\)[^/]' \| \
18068          X"$_am_arg" : 'X\(//\)$' \| \
18069          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18070 $as_echo X"$_am_arg" |
18071     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18072             s//\1/
18073             q
18074           }
18075           /^X\(\/\/\)[^/].*/{
18076             s//\1/
18077             q
18078           }
18079           /^X\(\/\/\)$/{
18080             s//\1/
18081             q
18082           }
18083           /^X\(\/\).*/{
18084             s//\1/
18085             q
18086           }
18087           s/.*/./; q'`/stamp-h$_am_stamp_count
18088  ;;
18089
18090   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18091 $as_echo "$as_me: executing $ac_file commands" >&6;}
18092  ;;
18093   esac
18094
18095
18096   case $ac_file$ac_mode in
18097     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18098   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18099   # are listed without --file.  Let's play safe and only enable the eval
18100   # if we detect the quoting.
18101   case $CONFIG_FILES in
18102   *\'*) eval set x "$CONFIG_FILES" ;;
18103   *)   set x $CONFIG_FILES ;;
18104   esac
18105   shift
18106   for mf
18107   do
18108     # Strip MF so we end up with the name of the file.
18109     mf=`echo "$mf" | sed -e 's/:.*$//'`
18110     # Check whether this is an Automake generated Makefile or not.
18111     # We used to match only the files named `Makefile.in', but
18112     # some people rename them; so instead we look at the file content.
18113     # Grep'ing the first line is not enough: some people post-process
18114     # each Makefile.in and add a new line on top of each file to say so.
18115     # Grep'ing the whole file is not good either: AIX grep has a line
18116     # limit of 2048, but all sed's we know have understand at least 4000.
18117     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18118       dirpart=`$as_dirname -- "$mf" ||
18119 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18120          X"$mf" : 'X\(//\)[^/]' \| \
18121          X"$mf" : 'X\(//\)$' \| \
18122          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18123 $as_echo X"$mf" |
18124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18125             s//\1/
18126             q
18127           }
18128           /^X\(\/\/\)[^/].*/{
18129             s//\1/
18130             q
18131           }
18132           /^X\(\/\/\)$/{
18133             s//\1/
18134             q
18135           }
18136           /^X\(\/\).*/{
18137             s//\1/
18138             q
18139           }
18140           s/.*/./; q'`
18141     else
18142       continue
18143     fi
18144     # Extract the definition of DEPDIR, am__include, and am__quote
18145     # from the Makefile without running `make'.
18146     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18147     test -z "$DEPDIR" && continue
18148     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18149     test -z "am__include" && continue
18150     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18151     # When using ansi2knr, U may be empty or an underscore; expand it
18152     U=`sed -n 's/^U = //p' < "$mf"`
18153     # Find all dependency output files, they are included files with
18154     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18155     # simplest approach to changing $(DEPDIR) to its actual value in the
18156     # expansion.
18157     for file in `sed -n "
18158       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18159          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18160       # Make sure the directory exists.
18161       test -f "$dirpart/$file" && continue
18162       fdir=`$as_dirname -- "$file" ||
18163 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18164          X"$file" : 'X\(//\)[^/]' \| \
18165          X"$file" : 'X\(//\)$' \| \
18166          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18167 $as_echo X"$file" |
18168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18169             s//\1/
18170             q
18171           }
18172           /^X\(\/\/\)[^/].*/{
18173             s//\1/
18174             q
18175           }
18176           /^X\(\/\/\)$/{
18177             s//\1/
18178             q
18179           }
18180           /^X\(\/\).*/{
18181             s//\1/
18182             q
18183           }
18184           s/.*/./; q'`
18185       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18186       # echo "creating $dirpart/$file"
18187       echo '# dummy' > "$dirpart/$file"
18188     done
18189   done
18190 }
18191  ;;
18192     "libtool":C)
18193
18194     # See if we are running on zsh, and set the options which allow our
18195     # commands through without removal of \ escapes.
18196     if test -n "${ZSH_VERSION+set}" ; then
18197       setopt NO_GLOB_SUBST
18198     fi
18199
18200     cfgfile="${ofile}T"
18201     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18202     $RM "$cfgfile"
18203
18204     cat <<_LT_EOF >> "$cfgfile"
18205 #! $SHELL
18206
18207 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18208 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18209 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18210 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18211 #
18212 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18213 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18214 #   Written by Gordon Matzigkeit, 1996
18215 #
18216 #   This file is part of GNU Libtool.
18217 #
18218 # GNU Libtool is free software; you can redistribute it and/or
18219 # modify it under the terms of the GNU General Public License as
18220 # published by the Free Software Foundation; either version 2 of
18221 # the License, or (at your option) any later version.
18222 #
18223 # As a special exception to the GNU General Public License,
18224 # if you distribute this file as part of a program or library that
18225 # is built using GNU Libtool, you may include this file under the
18226 # same distribution terms that you use for the rest of that program.
18227 #
18228 # GNU Libtool is distributed in the hope that it will be useful,
18229 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18230 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18231 # GNU General Public License for more details.
18232 #
18233 # You should have received a copy of the GNU General Public License
18234 # along with GNU Libtool; see the file COPYING.  If not, a copy
18235 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18236 # obtained by writing to the Free Software Foundation, Inc.,
18237 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18238
18239
18240 # The names of the tagged configurations supported by this script.
18241 available_tags=""
18242
18243 # ### BEGIN LIBTOOL CONFIG
18244
18245 # A sed program that does not truncate output.
18246 SED=$lt_SED
18247
18248 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18249 Xsed="\$SED -e 1s/^X//"
18250
18251 # A grep program that handles long lines.
18252 GREP=$lt_GREP
18253
18254 # An ERE matcher.
18255 EGREP=$lt_EGREP
18256
18257 # A literal string matcher.
18258 FGREP=$lt_FGREP
18259
18260 # Which release of libtool.m4 was used?
18261 macro_version=$macro_version
18262 macro_revision=$macro_revision
18263
18264 # Whether or not to build shared libraries.
18265 build_libtool_libs=$enable_shared
18266
18267 # Whether or not to build static libraries.
18268 build_old_libs=$enable_static
18269
18270 # What type of objects to build.
18271 pic_mode=$pic_mode
18272
18273 # Whether or not to optimize for fast installation.
18274 fast_install=$enable_fast_install
18275
18276 # The host system.
18277 host_alias=$host_alias
18278 host=$host
18279 host_os=$host_os
18280
18281 # The build system.
18282 build_alias=$build_alias
18283 build=$build
18284 build_os=$build_os
18285
18286 # A BSD- or MS-compatible name lister.
18287 NM=$lt_NM
18288
18289 # Whether we need soft or hard links.
18290 LN_S=$lt_LN_S
18291
18292 # What is the maximum length of a command?
18293 max_cmd_len=$max_cmd_len
18294
18295 # Object file suffix (normally "o").
18296 objext=$ac_objext
18297
18298 # Executable file suffix (normally "").
18299 exeext=$exeext
18300
18301 # whether the shell understands "unset".
18302 lt_unset=$lt_unset
18303
18304 # turn spaces into newlines.
18305 SP2NL=$lt_lt_SP2NL
18306
18307 # turn newlines into spaces.
18308 NL2SP=$lt_lt_NL2SP
18309
18310 # How to create reloadable object files.
18311 reload_flag=$lt_reload_flag
18312 reload_cmds=$lt_reload_cmds
18313
18314 # An object symbol dumper.
18315 OBJDUMP=$lt_OBJDUMP
18316
18317 # Method to check whether dependent libraries are shared objects.
18318 deplibs_check_method=$lt_deplibs_check_method
18319
18320 # Command to use when deplibs_check_method == "file_magic".
18321 file_magic_cmd=$lt_file_magic_cmd
18322
18323 # The archiver.
18324 AR=$lt_AR
18325 AR_FLAGS=$lt_AR_FLAGS
18326
18327 # A symbol stripping program.
18328 STRIP=$lt_STRIP
18329
18330 # Commands used to install an old-style archive.
18331 RANLIB=$lt_RANLIB
18332 old_postinstall_cmds=$lt_old_postinstall_cmds
18333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18334
18335 # A C compiler.
18336 LTCC=$lt_CC
18337
18338 # LTCC compiler flags.
18339 LTCFLAGS=$lt_CFLAGS
18340
18341 # Take the output of nm and produce a listing of raw symbols and C names.
18342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18343
18344 # Transform the output of nm in a proper C declaration.
18345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18346
18347 # Transform the output of nm in a C name address pair.
18348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18349
18350 # Transform the output of nm in a C name address pair when lib prefix is needed.
18351 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18352
18353 # The name of the directory that contains temporary libtool files.
18354 objdir=$objdir
18355
18356 # Shell to use when invoking shell scripts.
18357 SHELL=$lt_SHELL
18358
18359 # An echo program that does not interpret backslashes.
18360 ECHO=$lt_ECHO
18361
18362 # Used to examine libraries when file_magic_cmd begins with "file".
18363 MAGIC_CMD=$MAGIC_CMD
18364
18365 # Must we lock files when doing compilation?
18366 need_locks=$lt_need_locks
18367
18368 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18369 DSYMUTIL=$lt_DSYMUTIL
18370
18371 # Tool to change global to local symbols on Mac OS X.
18372 NMEDIT=$lt_NMEDIT
18373
18374 # Tool to manipulate fat objects and archives on Mac OS X.
18375 LIPO=$lt_LIPO
18376
18377 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18378 OTOOL=$lt_OTOOL
18379
18380 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18381 OTOOL64=$lt_OTOOL64
18382
18383 # Old archive suffix (normally "a").
18384 libext=$libext
18385
18386 # Shared library suffix (normally ".so").
18387 shrext_cmds=$lt_shrext_cmds
18388
18389 # The commands to extract the exported symbol list from a shared archive.
18390 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18391
18392 # Variables whose values should be saved in libtool wrapper scripts and
18393 # restored at link time.
18394 variables_saved_for_relink=$lt_variables_saved_for_relink
18395
18396 # Do we need the "lib" prefix for modules?
18397 need_lib_prefix=$need_lib_prefix
18398
18399 # Do we need a version for libraries?
18400 need_version=$need_version
18401
18402 # Library versioning type.
18403 version_type=$version_type
18404
18405 # Shared library runtime path variable.
18406 runpath_var=$runpath_var
18407
18408 # Shared library path variable.
18409 shlibpath_var=$shlibpath_var
18410
18411 # Is shlibpath searched before the hard-coded library search path?
18412 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18413
18414 # Format of library name prefix.
18415 libname_spec=$lt_libname_spec
18416
18417 # List of archive names.  First name is the real one, the rest are links.
18418 # The last name is the one that the linker finds with -lNAME
18419 library_names_spec=$lt_library_names_spec
18420
18421 # The coded name of the library, if different from the real name.
18422 soname_spec=$lt_soname_spec
18423
18424 # Command to use after installation of a shared archive.
18425 postinstall_cmds=$lt_postinstall_cmds
18426
18427 # Command to use after uninstallation of a shared archive.
18428 postuninstall_cmds=$lt_postuninstall_cmds
18429
18430 # Commands used to finish a libtool library installation in a directory.
18431 finish_cmds=$lt_finish_cmds
18432
18433 # As "finish_cmds", except a single script fragment to be evaled but
18434 # not shown.
18435 finish_eval=$lt_finish_eval
18436
18437 # Whether we should hardcode library paths into libraries.
18438 hardcode_into_libs=$hardcode_into_libs
18439
18440 # Compile-time system search path for libraries.
18441 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18442
18443 # Run-time system search path for libraries.
18444 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18445
18446 # Whether dlopen is supported.
18447 dlopen_support=$enable_dlopen
18448
18449 # Whether dlopen of programs is supported.
18450 dlopen_self=$enable_dlopen_self
18451
18452 # Whether dlopen of statically linked programs is supported.
18453 dlopen_self_static=$enable_dlopen_self_static
18454
18455 # Commands to strip libraries.
18456 old_striplib=$lt_old_striplib
18457 striplib=$lt_striplib
18458
18459
18460 # The linker used to build libraries.
18461 LD=$lt_LD
18462
18463 # Commands used to build an old-style archive.
18464 old_archive_cmds=$lt_old_archive_cmds
18465
18466 # A language specific compiler.
18467 CC=$lt_compiler
18468
18469 # Is the compiler the GNU compiler?
18470 with_gcc=$GCC
18471
18472 # Compiler flag to turn off builtin functions.
18473 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18474
18475 # How to pass a linker flag through the compiler.
18476 wl=$lt_lt_prog_compiler_wl
18477
18478 # Additional compiler flags for building library objects.
18479 pic_flag=$lt_lt_prog_compiler_pic
18480
18481 # Compiler flag to prevent dynamic linking.
18482 link_static_flag=$lt_lt_prog_compiler_static
18483
18484 # Does compiler simultaneously support -c and -o options?
18485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18486
18487 # Whether or not to add -lc for building shared libraries.
18488 build_libtool_need_lc=$archive_cmds_need_lc
18489
18490 # Whether or not to disallow shared libs when runtime libs are static.
18491 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18492
18493 # Compiler flag to allow reflexive dlopens.
18494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18495
18496 # Compiler flag to generate shared objects directly from archives.
18497 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18498
18499 # Whether the compiler copes with passing no objects directly.
18500 compiler_needs_object=$lt_compiler_needs_object
18501
18502 # Create an old-style archive from a shared archive.
18503 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18504
18505 # Create a temporary old-style archive to link instead of a shared archive.
18506 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18507
18508 # Commands used to build a shared archive.
18509 archive_cmds=$lt_archive_cmds
18510 archive_expsym_cmds=$lt_archive_expsym_cmds
18511
18512 # Commands used to build a loadable module if different from building
18513 # a shared archive.
18514 module_cmds=$lt_module_cmds
18515 module_expsym_cmds=$lt_module_expsym_cmds
18516
18517 # Whether we are building with GNU ld or not.
18518 with_gnu_ld=$lt_with_gnu_ld
18519
18520 # Flag that allows shared libraries with undefined symbols to be built.
18521 allow_undefined_flag=$lt_allow_undefined_flag
18522
18523 # Flag that enforces no undefined symbols.
18524 no_undefined_flag=$lt_no_undefined_flag
18525
18526 # Flag to hardcode \$libdir into a binary during linking.
18527 # This must work even if \$libdir does not exist
18528 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18529
18530 # If ld is used when linking, flag to hardcode \$libdir into a binary
18531 # during linking.  This must work even if \$libdir does not exist.
18532 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18533
18534 # Whether we need a single "-rpath" flag with a separated argument.
18535 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18536
18537 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18538 # DIR into the resulting binary.
18539 hardcode_direct=$hardcode_direct
18540
18541 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18542 # DIR into the resulting binary and the resulting library dependency is
18543 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18544 # library is relocated.
18545 hardcode_direct_absolute=$hardcode_direct_absolute
18546
18547 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18548 # into the resulting binary.
18549 hardcode_minus_L=$hardcode_minus_L
18550
18551 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18552 # into the resulting binary.
18553 hardcode_shlibpath_var=$hardcode_shlibpath_var
18554
18555 # Set to "yes" if building a shared library automatically hardcodes DIR
18556 # into the library and all subsequent libraries and executables linked
18557 # against it.
18558 hardcode_automatic=$hardcode_automatic
18559
18560 # Set to yes if linker adds runtime paths of dependent libraries
18561 # to runtime path list.
18562 inherit_rpath=$inherit_rpath
18563
18564 # Whether libtool must link a program against all its dependency libraries.
18565 link_all_deplibs=$link_all_deplibs
18566
18567 # Fix the shell variable \$srcfile for the compiler.
18568 fix_srcfile_path=$lt_fix_srcfile_path
18569
18570 # Set to "yes" if exported symbols are required.
18571 always_export_symbols=$always_export_symbols
18572
18573 # The commands to list exported symbols.
18574 export_symbols_cmds=$lt_export_symbols_cmds
18575
18576 # Symbols that should not be listed in the preloaded symbols.
18577 exclude_expsyms=$lt_exclude_expsyms
18578
18579 # Symbols that must always be exported.
18580 include_expsyms=$lt_include_expsyms
18581
18582 # Commands necessary for linking programs (against libraries) with templates.
18583 prelink_cmds=$lt_prelink_cmds
18584
18585 # Specify filename containing input files.
18586 file_list_spec=$lt_file_list_spec
18587
18588 # How to hardcode a shared library path into an executable.
18589 hardcode_action=$hardcode_action
18590
18591 # ### END LIBTOOL CONFIG
18592
18593 _LT_EOF
18594
18595   case $host_os in
18596   aix3*)
18597     cat <<\_LT_EOF >> "$cfgfile"
18598 # AIX sometimes has problems with the GCC collect2 program.  For some
18599 # reason, if we set the COLLECT_NAMES environment variable, the problems
18600 # vanish in a puff of smoke.
18601 if test "X${COLLECT_NAMES+set}" != Xset; then
18602   COLLECT_NAMES=
18603   export COLLECT_NAMES
18604 fi
18605 _LT_EOF
18606     ;;
18607   esac
18608
18609
18610 ltmain="$ac_aux_dir/ltmain.sh"
18611
18612
18613   # We use sed instead of cat because bash on DJGPP gets confused if
18614   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18615   # text mode, it properly converts lines to CR/LF.  This bash problem
18616   # is reportedly fixed, but why not run on old versions too?
18617   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18618     || (rm -f "$cfgfile"; exit 1)
18619
18620   case $xsi_shell in
18621   yes)
18622     cat << \_LT_EOF >> "$cfgfile"
18623
18624 # func_dirname file append nondir_replacement
18625 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18626 # otherwise set result to NONDIR_REPLACEMENT.
18627 func_dirname ()
18628 {
18629   case ${1} in
18630     */*) func_dirname_result="${1%/*}${2}" ;;
18631     *  ) func_dirname_result="${3}" ;;
18632   esac
18633 }
18634
18635 # func_basename file
18636 func_basename ()
18637 {
18638   func_basename_result="${1##*/}"
18639 }
18640
18641 # func_dirname_and_basename file append nondir_replacement
18642 # perform func_basename and func_dirname in a single function
18643 # call:
18644 #   dirname:  Compute the dirname of FILE.  If nonempty,
18645 #             add APPEND to the result, otherwise set result
18646 #             to NONDIR_REPLACEMENT.
18647 #             value returned in "$func_dirname_result"
18648 #   basename: Compute filename of FILE.
18649 #             value retuned in "$func_basename_result"
18650 # Implementation must be kept synchronized with func_dirname
18651 # and func_basename. For efficiency, we do not delegate to
18652 # those functions but instead duplicate the functionality here.
18653 func_dirname_and_basename ()
18654 {
18655   case ${1} in
18656     */*) func_dirname_result="${1%/*}${2}" ;;
18657     *  ) func_dirname_result="${3}" ;;
18658   esac
18659   func_basename_result="${1##*/}"
18660 }
18661
18662 # func_stripname prefix suffix name
18663 # strip PREFIX and SUFFIX off of NAME.
18664 # PREFIX and SUFFIX must not contain globbing or regex special
18665 # characters, hashes, percent signs, but SUFFIX may contain a leading
18666 # dot (in which case that matches only a dot).
18667 func_stripname ()
18668 {
18669   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18670   # positional parameters, so assign one to ordinary parameter first.
18671   func_stripname_result=${3}
18672   func_stripname_result=${func_stripname_result#"${1}"}
18673   func_stripname_result=${func_stripname_result%"${2}"}
18674 }
18675
18676 # func_opt_split
18677 func_opt_split ()
18678 {
18679   func_opt_split_opt=${1%%=*}
18680   func_opt_split_arg=${1#*=}
18681 }
18682
18683 # func_lo2o object
18684 func_lo2o ()
18685 {
18686   case ${1} in
18687     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18688     *)    func_lo2o_result=${1} ;;
18689   esac
18690 }
18691
18692 # func_xform libobj-or-source
18693 func_xform ()
18694 {
18695   func_xform_result=${1%.*}.lo
18696 }
18697
18698 # func_arith arithmetic-term...
18699 func_arith ()
18700 {
18701   func_arith_result=$(( $* ))
18702 }
18703
18704 # func_len string
18705 # STRING may not start with a hyphen.
18706 func_len ()
18707 {
18708   func_len_result=${#1}
18709 }
18710
18711 _LT_EOF
18712     ;;
18713   *) # Bourne compatible functions.
18714     cat << \_LT_EOF >> "$cfgfile"
18715
18716 # func_dirname file append nondir_replacement
18717 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18718 # otherwise set result to NONDIR_REPLACEMENT.
18719 func_dirname ()
18720 {
18721   # Extract subdirectory from the argument.
18722   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18723   if test "X$func_dirname_result" = "X${1}"; then
18724     func_dirname_result="${3}"
18725   else
18726     func_dirname_result="$func_dirname_result${2}"
18727   fi
18728 }
18729
18730 # func_basename file
18731 func_basename ()
18732 {
18733   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18734 }
18735
18736
18737 # func_stripname prefix suffix name
18738 # strip PREFIX and SUFFIX off of NAME.
18739 # PREFIX and SUFFIX must not contain globbing or regex special
18740 # characters, hashes, percent signs, but SUFFIX may contain a leading
18741 # dot (in which case that matches only a dot).
18742 # func_strip_suffix prefix name
18743 func_stripname ()
18744 {
18745   case ${2} in
18746     .*) func_stripname_result=`$ECHO "X${3}" \
18747            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18748     *)  func_stripname_result=`$ECHO "X${3}" \
18749            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18750   esac
18751 }
18752
18753 # sed scripts:
18754 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18755 my_sed_long_arg='1s/^-[^=]*=//'
18756
18757 # func_opt_split
18758 func_opt_split ()
18759 {
18760   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18761   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18762 }
18763
18764 # func_lo2o object
18765 func_lo2o ()
18766 {
18767   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18768 }
18769
18770 # func_xform libobj-or-source
18771 func_xform ()
18772 {
18773   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18774 }
18775
18776 # func_arith arithmetic-term...
18777 func_arith ()
18778 {
18779   func_arith_result=`expr "$@"`
18780 }
18781
18782 # func_len string
18783 # STRING may not start with a hyphen.
18784 func_len ()
18785 {
18786   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18787 }
18788
18789 _LT_EOF
18790 esac
18791
18792 case $lt_shell_append in
18793   yes)
18794     cat << \_LT_EOF >> "$cfgfile"
18795
18796 # func_append var value
18797 # Append VALUE to the end of shell variable VAR.
18798 func_append ()
18799 {
18800   eval "$1+=\$2"
18801 }
18802 _LT_EOF
18803     ;;
18804   *)
18805     cat << \_LT_EOF >> "$cfgfile"
18806
18807 # func_append var value
18808 # Append VALUE to the end of shell variable VAR.
18809 func_append ()
18810 {
18811   eval "$1=\$$1\$2"
18812 }
18813
18814 _LT_EOF
18815     ;;
18816   esac
18817
18818
18819   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18820     || (rm -f "$cfgfile"; exit 1)
18821
18822   mv -f "$cfgfile" "$ofile" ||
18823     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18824   chmod +x "$ofile"
18825
18826  ;;
18827
18828   esac
18829 done # for ac_tag
18830
18831
18832 as_fn_exit 0
18833 _ACEOF
18834 ac_clean_files=$ac_clean_files_save
18835
18836 test $ac_write_fail = 0 ||
18837   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18838
18839
18840 # configure is writing to config.log, and then calls config.status.
18841 # config.status does its own redirection, appending to config.log.
18842 # Unfortunately, on DOS this fails, as config.log is still kept open
18843 # by configure, so config.status won't be able to write to it; its
18844 # output is simply discarded.  So we exec the FD to /dev/null,
18845 # effectively closing config.log, so it can be properly (re)opened and
18846 # appended to by config.status.  When coming back to configure, we
18847 # need to make the FD available again.
18848 if test "$no_create" != yes; then
18849   ac_cs_success=:
18850   ac_config_status_args=
18851   test "$silent" = yes &&
18852     ac_config_status_args="$ac_config_status_args --quiet"
18853   exec 5>/dev/null
18854   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18855   exec 5>>config.log
18856   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18857   # would make configure fail if this is the last instruction.
18858   $ac_cs_success || as_fn_exit $?
18859 fi
18860 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18861   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18862 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18863 fi
18864
18865
18866 cat << EOF
18867
18868 $PACKAGE $VERSION configured successfully:
18869
18870  Installing into:   $prefix
18871  System config dir: $sysconfdir
18872  C compiler flags:  $conky_CFLAGS
18873  Libraries:         $conky_LIBS
18874  Linker flags:      $conky_LDFLAGS
18875
18876  * X11:
18877   X11 support:      $want_x11
18878   XDamage support:  $want_xdamage
18879   XDBE support:     $want_double_buffer
18880   Xft support:      $want_xft
18881   ARGB support      $want_argb
18882
18883  * Music detection:
18884   Audacious:        $want_audacious
18885   BMPx:             $want_bmpx
18886   MPD:              $want_mpd
18887   MOC:              $want_moc
18888   XMMS2:            $want_xmms2
18889
18890  * General:
18891   math:             $want_math
18892   hddtemp:          $want_hddtemp
18893   portmon:          $want_portmon
18894   RSS:              $want_rss
18895   Curl:             $want_curl
18896   Weather
18897     METAR:          $want_metar
18898     XOAP:           $want_xoap
18899   wireless:         $want_wlan
18900   IBM:              $want_ibm
18901   nvidia:           $want_nvidia
18902   eve-online:       $want_eve
18903   config-output:    $want_config_output
18904   Imlib2:           $want_imlib2
18905   ALSA mixer:       $want_alsa
18906   apcupsd:          $want_apcupsd
18907   I/O stats:        $want_iostats
18908
18909  * Lua ($want_lua) bindings:
18910   Cairo:            $want_lua_cairo
18911   Imlib2:           $want_lua_imlib2
18912
18913 EOF