added slog interval support
[psensor.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for psensor 0.7.0.x.
4 #
5 # Report bugs to <jeanfi@gmail.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, 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 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
245 $0: have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='psensor'
562 PACKAGE_TARNAME='psensor'
563 PACKAGE_VERSION='0.7.0.x'
564 PACKAGE_STRING='psensor 0.7.0.x'
565 PACKAGE_BUGREPORT='jeanfi@gmail.com'
566 PACKAGE_URL='http://wpitchoune.net/psensor'
567
568 ac_unique_file="src/compat.h"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 gt_needs=
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 HELP2MAN
610 GTOP_FALSE
611 GTOP_TRUE
612 GTOP_LIBS
613 GTOP_CFLAGS
614 LIBMICROHTTPD_FALSE
615 LIBMICROHTTPD_TRUE
616 LIBMICROHTTPD_LIBS
617 LIBMICROHTTPD_CFLAGS
618 LIBATIADL_LIBS
619 LIBATIADL_CFLAGS
620 LIBATIADL_FALSE
621 LIBATIADL_TRUE
622 UNITY_FALSE
623 UNITY_TRUE
624 UNITY_LIBS
625 UNITY_CFLAGS
626 NVIDIA_LIBS
627 NVIDIA_CFLAGS
628 NVIDIA_FALSE
629 NVIDIA_TRUE
630 JSON_FALSE
631 JSON_TRUE
632 JSON_LIBS
633 JSON_CFLAGS
634 CURL_FALSE
635 CURL_TRUE
636 CURL_LIBS
637 CURL_CFLAGS
638 APPINDICATOR_FALSE
639 APPINDICATOR_TRUE
640 APPINDICATOR_LIBS
641 APPINDICATOR_CFLAGS
642 LIBNOTIFY_FALSE
643 LIBNOTIFY_TRUE
644 LIBNOTIFY_LIBS
645 LIBNOTIFY_CFLAGS
646 ATASMART_FALSE
647 ATASMART_TRUE
648 ATASMART_LIBS
649 ATASMART_CFLAGS
650 GCONF_LIBS
651 GCONF_CFLAGS
652 GTK_LIBS
653 GTK_CFLAGS
654 XEXT_LIBS
655 XEXT_CFLAGS
656 X11_LIBS
657 X11_CFLAGS
658 PKG_CONFIG_LIBDIR
659 PKG_CONFIG_PATH
660 PKG_CONFIG
661 SENSORS_LIBS
662 PTHREAD_LIBS
663 GCONF_SCHEMAS_INSTALL_FALSE
664 GCONF_SCHEMAS_INSTALL_TRUE
665 GCONF_SCHEMA_FILE_DIR
666 GCONF_SCHEMA_CONFIG_SOURCE
667 GCONFTOOL
668 POSUB
669 LTLIBINTL
670 LIBINTL
671 INTLLIBS
672 LTLIBICONV
673 LIBICONV
674 INTL_MACOSX_LIBS
675 host_os
676 host_vendor
677 host_cpu
678 host
679 build_os
680 build_vendor
681 build_cpu
682 build
683 XGETTEXT_EXTRA_OPTIONS
684 MSGMERGE
685 XGETTEXT_015
686 XGETTEXT
687 GMSGFMT_015
688 MSGFMT_015
689 GMSGFMT
690 MSGFMT
691 GETTEXT_MACRO_VERSION
692 USE_NLS
693 LIBOBJS
694 EGREP
695 GREP
696 CPP
697 XMKMF
698 RANLIB
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 am__untar
717 am__tar
718 AMTAR
719 am__leading_dot
720 SET_MAKE
721 AWK
722 mkdir_p
723 MKDIR_P
724 INSTALL_STRIP_PROGRAM
725 STRIP
726 install_sh
727 MAKEINFO
728 AUTOHEADER
729 AUTOMAKE
730 AUTOCONF
731 ACLOCAL
732 VERSION
733 PACKAGE
734 CYGPATH_W
735 am__isrc
736 INSTALL_DATA
737 INSTALL_SCRIPT
738 INSTALL_PROGRAM
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_dependency_tracking
781 with_x
782 enable_nls
783 with_gnu_ld
784 enable_rpath
785 with_libiconv_prefix
786 with_libintl_prefix
787 with_gconf_source
788 with_gconf_schema_file_dir
789 enable_schemas_install
790 with_libatiadl
791 with_gtop
792 '
793       ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 XMKMF
802 CPP
803 PKG_CONFIG
804 PKG_CONFIG_PATH
805 PKG_CONFIG_LIBDIR
806 X11_CFLAGS
807 X11_LIBS
808 XEXT_CFLAGS
809 XEXT_LIBS
810 GTK_CFLAGS
811 GTK_LIBS
812 GCONF_CFLAGS
813 GCONF_LIBS
814 ATASMART_CFLAGS
815 ATASMART_LIBS
816 LIBNOTIFY_CFLAGS
817 LIBNOTIFY_LIBS
818 APPINDICATOR_CFLAGS
819 APPINDICATOR_LIBS
820 CURL_CFLAGS
821 CURL_LIBS
822 JSON_CFLAGS
823 JSON_LIBS
824 UNITY_CFLAGS
825 UNITY_LIBS
826 LIBMICROHTTPD_CFLAGS
827 LIBMICROHTTPD_LIBS
828 GTOP_CFLAGS
829 GTOP_LIBS'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884   # If the previous option needs an argument, assign it.
885   if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889   fi
890
891   case $ac_option in
892   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893   *=)   ac_optarg= ;;
894   *)    ac_optarg=yes ;;
895   esac
896
897   # Accept the important Cygnus configure options, so we can diagnose typos.
898
899   case $ac_dashdash$ac_option in
900   --)
901     ac_dashdash=yes ;;
902
903   -bindir | --bindir | --bindi | --bind | --bin | --bi)
904     ac_prev=bindir ;;
905   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906     bindir=$ac_optarg ;;
907
908   -build | --build | --buil | --bui | --bu)
909     ac_prev=build_alias ;;
910   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911     build_alias=$ac_optarg ;;
912
913   -cache-file | --cache-file | --cache-fil | --cache-fi \
914   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915     ac_prev=cache_file ;;
916   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918     cache_file=$ac_optarg ;;
919
920   --config-cache | -C)
921     cache_file=config.cache ;;
922
923   -datadir | --datadir | --datadi | --datad)
924     ac_prev=datadir ;;
925   -datadir=* | --datadir=* | --datadi=* | --datad=*)
926     datadir=$ac_optarg ;;
927
928   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929   | --dataroo | --dataro | --datar)
930     ac_prev=datarootdir ;;
931   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933     datarootdir=$ac_optarg ;;
934
935   -disable-* | --disable-*)
936     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939       as_fn_error $? "invalid feature name: $ac_useropt"
940     ac_useropt_orig=$ac_useropt
941     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942     case $ac_user_opts in
943       *"
944 "enable_$ac_useropt"
945 "*) ;;
946       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947          ac_unrecognized_sep=', ';;
948     esac
949     eval enable_$ac_useropt=no ;;
950
951   -docdir | --docdir | --docdi | --doc | --do)
952     ac_prev=docdir ;;
953   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954     docdir=$ac_optarg ;;
955
956   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957     ac_prev=dvidir ;;
958   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959     dvidir=$ac_optarg ;;
960
961   -enable-* | --enable-*)
962     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963     # Reject names that are not valid shell variable names.
964     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965       as_fn_error $? "invalid feature name: $ac_useropt"
966     ac_useropt_orig=$ac_useropt
967     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968     case $ac_user_opts in
969       *"
970 "enable_$ac_useropt"
971 "*) ;;
972       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973          ac_unrecognized_sep=', ';;
974     esac
975     eval enable_$ac_useropt=\$ac_optarg ;;
976
977   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979   | --exec | --exe | --ex)
980     ac_prev=exec_prefix ;;
981   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983   | --exec=* | --exe=* | --ex=*)
984     exec_prefix=$ac_optarg ;;
985
986   -gas | --gas | --ga | --g)
987     # Obsolete; use --with-gas.
988     with_gas=yes ;;
989
990   -help | --help | --hel | --he | -h)
991     ac_init_help=long ;;
992   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993     ac_init_help=recursive ;;
994   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995     ac_init_help=short ;;
996
997   -host | --host | --hos | --ho)
998     ac_prev=host_alias ;;
999   -host=* | --host=* | --hos=* | --ho=*)
1000     host_alias=$ac_optarg ;;
1001
1002   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003     ac_prev=htmldir ;;
1004   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005   | --ht=*)
1006     htmldir=$ac_optarg ;;
1007
1008   -includedir | --includedir | --includedi | --included | --include \
1009   | --includ | --inclu | --incl | --inc)
1010     ac_prev=includedir ;;
1011   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012   | --includ=* | --inclu=* | --incl=* | --inc=*)
1013     includedir=$ac_optarg ;;
1014
1015   -infodir | --infodir | --infodi | --infod | --info | --inf)
1016     ac_prev=infodir ;;
1017   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018     infodir=$ac_optarg ;;
1019
1020   -libdir | --libdir | --libdi | --libd)
1021     ac_prev=libdir ;;
1022   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023     libdir=$ac_optarg ;;
1024
1025   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026   | --libexe | --libex | --libe)
1027     ac_prev=libexecdir ;;
1028   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029   | --libexe=* | --libex=* | --libe=*)
1030     libexecdir=$ac_optarg ;;
1031
1032   -localedir | --localedir | --localedi | --localed | --locale)
1033     ac_prev=localedir ;;
1034   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035     localedir=$ac_optarg ;;
1036
1037   -localstatedir | --localstatedir | --localstatedi | --localstated \
1038   | --localstate | --localstat | --localsta | --localst | --locals)
1039     ac_prev=localstatedir ;;
1040   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042     localstatedir=$ac_optarg ;;
1043
1044   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045     ac_prev=mandir ;;
1046   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047     mandir=$ac_optarg ;;
1048
1049   -nfp | --nfp | --nf)
1050     # Obsolete; use --without-fp.
1051     with_fp=no ;;
1052
1053   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054   | --no-cr | --no-c | -n)
1055     no_create=yes ;;
1056
1057   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059     no_recursion=yes ;;
1060
1061   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063   | --oldin | --oldi | --old | --ol | --o)
1064     ac_prev=oldincludedir ;;
1065   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068     oldincludedir=$ac_optarg ;;
1069
1070   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071     ac_prev=prefix ;;
1072   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073     prefix=$ac_optarg ;;
1074
1075   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076   | --program-pre | --program-pr | --program-p)
1077     ac_prev=program_prefix ;;
1078   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080     program_prefix=$ac_optarg ;;
1081
1082   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083   | --program-suf | --program-su | --program-s)
1084     ac_prev=program_suffix ;;
1085   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087     program_suffix=$ac_optarg ;;
1088
1089   -program-transform-name | --program-transform-name \
1090   | --program-transform-nam | --program-transform-na \
1091   | --program-transform-n | --program-transform- \
1092   | --program-transform | --program-transfor \
1093   | --program-transfo | --program-transf \
1094   | --program-trans | --program-tran \
1095   | --progr-tra | --program-tr | --program-t)
1096     ac_prev=program_transform_name ;;
1097   -program-transform-name=* | --program-transform-name=* \
1098   | --program-transform-nam=* | --program-transform-na=* \
1099   | --program-transform-n=* | --program-transform-=* \
1100   | --program-transform=* | --program-transfor=* \
1101   | --program-transfo=* | --program-transf=* \
1102   | --program-trans=* | --program-tran=* \
1103   | --progr-tra=* | --program-tr=* | --program-t=*)
1104     program_transform_name=$ac_optarg ;;
1105
1106   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107     ac_prev=pdfdir ;;
1108   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109     pdfdir=$ac_optarg ;;
1110
1111   -psdir | --psdir | --psdi | --psd | --ps)
1112     ac_prev=psdir ;;
1113   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114     psdir=$ac_optarg ;;
1115
1116   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117   | -silent | --silent | --silen | --sile | --sil)
1118     silent=yes ;;
1119
1120   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121     ac_prev=sbindir ;;
1122   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123   | --sbi=* | --sb=*)
1124     sbindir=$ac_optarg ;;
1125
1126   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128   | --sharedst | --shareds | --shared | --share | --shar \
1129   | --sha | --sh)
1130     ac_prev=sharedstatedir ;;
1131   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134   | --sha=* | --sh=*)
1135     sharedstatedir=$ac_optarg ;;
1136
1137   -site | --site | --sit)
1138     ac_prev=site ;;
1139   -site=* | --site=* | --sit=*)
1140     site=$ac_optarg ;;
1141
1142   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143     ac_prev=srcdir ;;
1144   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145     srcdir=$ac_optarg ;;
1146
1147   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148   | --syscon | --sysco | --sysc | --sys | --sy)
1149     ac_prev=sysconfdir ;;
1150   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152     sysconfdir=$ac_optarg ;;
1153
1154   -target | --target | --targe | --targ | --tar | --ta | --t)
1155     ac_prev=target_alias ;;
1156   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157     target_alias=$ac_optarg ;;
1158
1159   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160     verbose=yes ;;
1161
1162   -version | --version | --versio | --versi | --vers | -V)
1163     ac_init_version=: ;;
1164
1165   -with-* | --with-*)
1166     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167     # Reject names that are not valid shell variable names.
1168     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169       as_fn_error $? "invalid package name: $ac_useropt"
1170     ac_useropt_orig=$ac_useropt
1171     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172     case $ac_user_opts in
1173       *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177          ac_unrecognized_sep=', ';;
1178     esac
1179     eval with_$ac_useropt=\$ac_optarg ;;
1180
1181   -without-* | --without-*)
1182     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185       as_fn_error $? "invalid package name: $ac_useropt"
1186     ac_useropt_orig=$ac_useropt
1187     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188     case $ac_user_opts in
1189       *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193          ac_unrecognized_sep=', ';;
1194     esac
1195     eval with_$ac_useropt=no ;;
1196
1197   --x)
1198     # Obsolete; use --with-x.
1199     with_x=yes ;;
1200
1201   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202   | --x-incl | --x-inc | --x-in | --x-i)
1203     ac_prev=x_includes ;;
1204   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206     x_includes=$ac_optarg ;;
1207
1208   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210     ac_prev=x_libraries ;;
1211   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213     x_libraries=$ac_optarg ;;
1214
1215   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217     ;;
1218
1219   *=*)
1220     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221     # Reject names that are not valid shell variable names.
1222     case $ac_envvar in #(
1223       '' | [0-9]* | *[!_$as_cr_alnum]* )
1224       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225     esac
1226     eval $ac_envvar=\$ac_optarg
1227     export $ac_envvar ;;
1228
1229   *)
1230     # FIXME: should be removed in autoconf 3.0.
1231     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235     ;;
1236
1237   esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242   as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246   case $enable_option_checking in
1247     no) ;;
1248     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250   esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255                 datadir sysconfdir sharedstatedir localstatedir includedir \
1256                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257                 libdir localedir mandir
1258 do
1259   eval ac_val=\$$ac_var
1260   # Remove trailing slashes.
1261   case $ac_val in
1262     */ )
1263       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264       eval $ac_var=\$ac_val;;
1265   esac
1266   # Be sure to have absolute directory names.
1267   case $ac_val in
1268     [\\/$]* | ?:[\\/]* )  continue;;
1269     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270   esac
1271   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283   if test "x$build_alias" = x; then
1284     cross_compiling=maybe
1285     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1286     If a cross compiler is detected then cross compile mode will be used" >&2
1287   elif test "x$build_alias" != "x$host_alias"; then
1288     cross_compiling=yes
1289   fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301   as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303   as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308   ac_srcdir_defaulted=yes
1309   # Try the directory containing this script, then the parent directory.
1310   ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312          X"$as_myself" : 'X\(//\)[^/]' \| \
1313          X"$as_myself" : 'X\(//\)$' \| \
1314          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317             s//\1/
1318             q
1319           }
1320           /^X\(\/\/\)[^/].*/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)$/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\).*/{
1329             s//\1/
1330             q
1331           }
1332           s/.*/./; q'`
1333   srcdir=$ac_confdir
1334   if test ! -r "$srcdir/$ac_unique_file"; then
1335     srcdir=..
1336   fi
1337 else
1338   ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347         pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350   srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360   eval ac_env_${ac_var}_value=\$${ac_var}
1361   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369   # Omit some internal or obsolete options to make the list less imposing.
1370   # This message is too long to be a string in the A/UX 3.1 sh.
1371   cat <<_ACEOF
1372 \`configure' configures psensor 0.7.0.x to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE.  See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382   -h, --help              display this help and exit
1383       --help=short        display options specific to this package
1384       --help=recursive    display the short help of all the included packages
1385   -V, --version           display version information and exit
1386   -q, --quiet, --silent   do not print \`checking ...' messages
1387       --cache-file=FILE   cache test results in FILE [disabled]
1388   -C, --config-cache      alias for \`--cache-file=config.cache'
1389   -n, --no-create         do not create output files
1390       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393   --prefix=PREFIX         install architecture-independent files in PREFIX
1394                           [$ac_default_prefix]
1395   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1396                           [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406   --bindir=DIR            user executables [EPREFIX/bin]
1407   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1408   --libexecdir=DIR        program executables [EPREFIX/libexec]
1409   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1410   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1411   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1412   --libdir=DIR            object code libraries [EPREFIX/lib]
1413   --includedir=DIR        C header files [PREFIX/include]
1414   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1415   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1416   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1417   --infodir=DIR           info documentation [DATAROOTDIR/info]
1418   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1419   --mandir=DIR            man documentation [DATAROOTDIR/man]
1420   --docdir=DIR            documentation root [DATAROOTDIR/doc/psensor]
1421   --htmldir=DIR           html documentation [DOCDIR]
1422   --dvidir=DIR            dvi documentation [DOCDIR]
1423   --pdfdir=DIR            pdf documentation [DOCDIR]
1424   --psdir=DIR             ps documentation [DOCDIR]
1425 _ACEOF
1426
1427   cat <<\_ACEOF
1428
1429 Program names:
1430   --program-prefix=PREFIX            prepend PREFIX to installed program names
1431   --program-suffix=SUFFIX            append SUFFIX to installed program names
1432   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1433
1434 X features:
1435   --x-includes=DIR    X include files are in DIR
1436   --x-libraries=DIR   X library files are in DIR
1437
1438 System types:
1439   --build=BUILD     configure for building on BUILD [guessed]
1440   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445   case $ac_init_help in
1446      short | recursive ) echo "Configuration of psensor 0.7.0.x:";;
1447    esac
1448   cat <<\_ACEOF
1449
1450 Optional Features:
1451   --disable-option-checking  ignore unrecognized --enable/--with options
1452   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1453   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1454   --disable-dependency-tracking  speeds up one-time build
1455   --enable-dependency-tracking   do not reject slow dependency extractors
1456   --disable-nls           do not use Native Language Support
1457   --disable-rpath         do not hardcode runtime library paths
1458   --disable-schemas-install
1459                           Disable the schemas installation
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --with-x                use the X Window System
1465   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1466   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1467   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1468   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1469   --without-libintl-prefix     don't search for libintl in includedir and libdir
1470   --with-gconf-source=sourceaddress
1471                           Config database for installing schema files.
1472   --with-gconf-schema-file-dir=dir
1473                           Directory for installing schema files.
1474   --with-libatiadl=DIR   use libatiadlxx in DIR
1475   --with-gtop=yes|no   use gtop
1476
1477 Some influential environment variables:
1478   CC          C compiler command
1479   CFLAGS      C compiler flags
1480   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1481               nonstandard directory <lib dir>
1482   LIBS        libraries to pass to the linker, e.g. -l<library>
1483   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484               you have headers in a nonstandard directory <include dir>
1485   XMKMF       Path to xmkmf, Makefile generator for X Window System
1486   CPP         C preprocessor
1487   PKG_CONFIG  path to pkg-config utility
1488   PKG_CONFIG_PATH
1489               directories to add to pkg-config's search path
1490   PKG_CONFIG_LIBDIR
1491               path overriding pkg-config's built-in search path
1492   X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1493   X11_LIBS    linker flags for X11, overriding pkg-config
1494   XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1495   XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1496   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1497   GTK_LIBS    linker flags for GTK, overriding pkg-config
1498   GCONF_CFLAGS
1499               C compiler flags for GCONF, overriding pkg-config
1500   GCONF_LIBS  linker flags for GCONF, overriding pkg-config
1501   ATASMART_CFLAGS
1502               C compiler flags for ATASMART, overriding pkg-config
1503   ATASMART_LIBS
1504               linker flags for ATASMART, overriding pkg-config
1505   LIBNOTIFY_CFLAGS
1506               C compiler flags for LIBNOTIFY, overriding pkg-config
1507   LIBNOTIFY_LIBS
1508               linker flags for LIBNOTIFY, overriding pkg-config
1509   APPINDICATOR_CFLAGS
1510               C compiler flags for APPINDICATOR, overriding pkg-config
1511   APPINDICATOR_LIBS
1512               linker flags for APPINDICATOR, overriding pkg-config
1513   CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1514   CURL_LIBS   linker flags for CURL, overriding pkg-config
1515   JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1516   JSON_LIBS   linker flags for JSON, overriding pkg-config
1517   UNITY_CFLAGS
1518               C compiler flags for UNITY, overriding pkg-config
1519   UNITY_LIBS  linker flags for UNITY, overriding pkg-config
1520   LIBMICROHTTPD_CFLAGS
1521               C compiler flags for LIBMICROHTTPD, overriding pkg-config
1522   LIBMICROHTTPD_LIBS
1523               linker flags for LIBMICROHTTPD, overriding pkg-config
1524   GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1525   GTOP_LIBS   linker flags for GTOP, overriding pkg-config
1526
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1529
1530 Report bugs to <jeanfi@gmail.com>.
1531 psensor home page: <http://wpitchoune.net/psensor>.
1532 _ACEOF
1533 ac_status=$?
1534 fi
1535
1536 if test "$ac_init_help" = "recursive"; then
1537   # If there are subdirs, report their specific --help.
1538   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539     test -d "$ac_dir" ||
1540       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541       continue
1542     ac_builddir=.
1543
1544 case "$ac_dir" in
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *)
1547   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1548   # A ".." for each directory in $ac_dir_suffix.
1549   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550   case $ac_top_builddir_sub in
1551   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553   esac ;;
1554 esac
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1559
1560 case $srcdir in
1561   .)  # We are building in place.
1562     ac_srcdir=.
1563     ac_top_srcdir=$ac_top_builddir_sub
1564     ac_abs_top_srcdir=$ac_pwd ;;
1565   [\\/]* | ?:[\\/]* )  # Absolute name.
1566     ac_srcdir=$srcdir$ac_dir_suffix;
1567     ac_top_srcdir=$srcdir
1568     ac_abs_top_srcdir=$srcdir ;;
1569   *) # Relative name.
1570     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571     ac_top_srcdir=$ac_top_build_prefix$srcdir
1572     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 esac
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576     cd "$ac_dir" || { ac_status=$?; continue; }
1577     # Check for guested configure.
1578     if test -f "$ac_srcdir/configure.gnu"; then
1579       echo &&
1580       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581     elif test -f "$ac_srcdir/configure"; then
1582       echo &&
1583       $SHELL "$ac_srcdir/configure" --help=recursive
1584     else
1585       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586     fi || ac_status=$?
1587     cd "$ac_pwd" || { ac_status=$?; break; }
1588   done
1589 fi
1590
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1593   cat <<\_ACEOF
1594 psensor configure 0.7.0.x
1595 generated by GNU Autoconf 2.68
1596
1597 Copyright (C) 2010 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1600 _ACEOF
1601   exit
1602 fi
1603
1604 ## ------------------------ ##
1605 ## Autoconf initialization. ##
1606 ## ------------------------ ##
1607
1608 # ac_fn_c_try_compile LINENO
1609 # --------------------------
1610 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_compile ()
1612 {
1613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614   rm -f conftest.$ac_objext
1615   if { { ac_try="$ac_compile"
1616 case "(($ac_try" in
1617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618   *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622   (eval "$ac_compile") 2>conftest.err
1623   ac_status=$?
1624   if test -s conftest.err; then
1625     grep -v '^ *+' conftest.err >conftest.er1
1626     cat conftest.er1 >&5
1627     mv -f conftest.er1 conftest.err
1628   fi
1629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630   test $ac_status = 0; } && {
1631          test -z "$ac_c_werror_flag" ||
1632          test ! -s conftest.err
1633        } && test -s conftest.$ac_objext; then :
1634   ac_retval=0
1635 else
1636   $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639         ac_retval=1
1640 fi
1641   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642   as_fn_set_status $ac_retval
1643
1644 } # ac_fn_c_try_compile
1645
1646 # ac_fn_c_try_cpp LINENO
1647 # ----------------------
1648 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_cpp ()
1650 {
1651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652   if { { ac_try="$ac_cpp conftest.$ac_ext"
1653 case "(($ac_try" in
1654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655   *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660   ac_status=$?
1661   if test -s conftest.err; then
1662     grep -v '^ *+' conftest.err >conftest.er1
1663     cat conftest.er1 >&5
1664     mv -f conftest.er1 conftest.err
1665   fi
1666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667   test $ac_status = 0; } > conftest.i && {
1668          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669          test ! -s conftest.err
1670        }; then :
1671   ac_retval=0
1672 else
1673   $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676     ac_retval=1
1677 fi
1678   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679   as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_cpp
1682
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_link ()
1687 {
1688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689   rm -f conftest.$ac_objext conftest$ac_exeext
1690   if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693   *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697   (eval "$ac_link") 2>conftest.err
1698   ac_status=$?
1699   if test -s conftest.err; then
1700     grep -v '^ *+' conftest.err >conftest.er1
1701     cat conftest.er1 >&5
1702     mv -f conftest.er1 conftest.err
1703   fi
1704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705   test $ac_status = 0; } && {
1706          test -z "$ac_c_werror_flag" ||
1707          test ! -s conftest.err
1708        } && test -s conftest$ac_exeext && {
1709          test "$cross_compiling" = yes ||
1710          $as_test_x conftest$ac_exeext
1711        }; then :
1712   ac_retval=0
1713 else
1714   $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717         ac_retval=1
1718 fi
1719   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721   # interfere with the next link command; also delete a directory that is
1722   # left behind by Apple's compiler.  We do this before executing the actions.
1723   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725   as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_link
1728
1729 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1732 # the include files in INCLUDES and setting the cache variable VAR
1733 # accordingly.
1734 ac_fn_c_check_header_mongrel ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   if eval \${$3+:} false; then :
1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741   $as_echo_n "(cached) " >&6
1742 fi
1743 eval ac_res=\$$3
1744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 else
1747   # Is the header compilable?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1749 $as_echo_n "checking $2 usability... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h.  */
1752 $4
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"; then :
1756   ac_header_compiler=yes
1757 else
1758   ac_header_compiler=no
1759 fi
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1762 $as_echo "$ac_header_compiler" >&6; }
1763
1764 # Is the header present?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1766 $as_echo_n "checking $2 presence... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h.  */
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_cpp "$LINENO"; then :
1772   ac_header_preproc=yes
1773 else
1774   ac_header_preproc=no
1775 fi
1776 rm -f conftest.err conftest.i conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1778 $as_echo "$ac_header_preproc" >&6; }
1779
1780 # So?  What about this header?
1781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1782   yes:no: )
1783     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787     ;;
1788   no:yes:* )
1789     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1792 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1793     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1796 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1797     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799 ( $as_echo "## ------------------------------- ##
1800 ## Report this to jeanfi@gmail.com ##
1801 ## ------------------------------- ##"
1802      ) | sed "s/^/$as_me: WARNING:     /" >&2
1803     ;;
1804 esac
1805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808   $as_echo_n "(cached) " >&6
1809 else
1810   eval "$3=\$ac_header_compiler"
1811 fi
1812 eval ac_res=\$$3
1813                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 fi
1816   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818 } # ac_fn_c_check_header_mongrel
1819
1820 # ac_fn_c_try_run LINENO
1821 # ----------------------
1822 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1823 # that executables *can* be run.
1824 ac_fn_c_try_run ()
1825 {
1826   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827   if { { ac_try="$ac_link"
1828 case "(($ac_try" in
1829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830   *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834   (eval "$ac_link") 2>&5
1835   ac_status=$?
1836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1838   { { case "(($ac_try" in
1839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840   *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844   (eval "$ac_try") 2>&5
1845   ac_status=$?
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; }; }; then :
1848   ac_retval=0
1849 else
1850   $as_echo "$as_me: program exited with status $ac_status" >&5
1851        $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854        ac_retval=$ac_status
1855 fi
1856   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858   as_fn_set_status $ac_retval
1859
1860 } # ac_fn_c_try_run
1861
1862 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1863 # -------------------------------------------------------
1864 # Tests whether HEADER exists and can be compiled using the include files in
1865 # INCLUDES, setting the cache variable VAR accordingly.
1866 ac_fn_c_check_header_compile ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872   $as_echo_n "(cached) " >&6
1873 else
1874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h.  */
1876 $4
1877 #include <$2>
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880   eval "$3=yes"
1881 else
1882   eval "$3=no"
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_header_compile
1892
1893 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1894 # -------------------------------------------
1895 # Tests whether TYPE exists after having included INCLUDES, setting cache
1896 # variable VAR accordingly.
1897 ac_fn_c_check_type ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903   $as_echo_n "(cached) " >&6
1904 else
1905   eval "$3=no"
1906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h.  */
1908 $4
1909 int
1910 main ()
1911 {
1912 if (sizeof ($2))
1913          return 0;
1914   ;
1915   return 0;
1916 }
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h.  */
1921 $4
1922 int
1923 main ()
1924 {
1925 if (sizeof (($2)))
1926             return 0;
1927   ;
1928   return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932
1933 else
1934   eval "$3=yes"
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 fi
1940 eval ac_res=\$$3
1941                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944
1945 } # ac_fn_c_check_type
1946
1947 # ac_fn_c_check_func LINENO FUNC VAR
1948 # ----------------------------------
1949 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1950 ac_fn_c_check_func ()
1951 {
1952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956   $as_echo_n "(cached) " >&6
1957 else
1958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1962 #define $2 innocuous_$2
1963
1964 /* System header to define __stub macros and hopefully few prototypes,
1965     which can conflict with char $2 (); below.
1966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1967     <limits.h> exists even on freestanding compilers.  */
1968
1969 #ifdef __STDC__
1970 # include <limits.h>
1971 #else
1972 # include <assert.h>
1973 #endif
1974
1975 #undef $2
1976
1977 /* Override any GCC internal prototype to avoid an error.
1978    Use char because int might match the return type of a GCC
1979    builtin and then its argument prototype would still apply.  */
1980 #ifdef __cplusplus
1981 extern "C"
1982 #endif
1983 char $2 ();
1984 /* The GNU C library defines this for functions which it implements
1985     to always fail with ENOSYS.  Some functions are actually named
1986     something starting with __ and the normal name is an alias.  */
1987 #if defined __stub_$2 || defined __stub___$2
1988 choke me
1989 #endif
1990
1991 int
1992 main ()
1993 {
1994 return $2 ();
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_link "$LINENO"; then :
2000   eval "$3=yes"
2001 else
2002   eval "$3=no"
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext \
2005     conftest$ac_exeext conftest.$ac_ext
2006 fi
2007 eval ac_res=\$$3
2008                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012 } # ac_fn_c_check_func
2013 cat >config.log <<_ACEOF
2014 This file contains any messages produced by compilers while
2015 running configure, to aid debugging if configure makes a mistake.
2016
2017 It was created by psensor $as_me 0.7.0.x, which was
2018 generated by GNU Autoconf 2.68.  Invocation command line was
2019
2020   $ $0 $@
2021
2022 _ACEOF
2023 exec 5>>config.log
2024 {
2025 cat <<_ASUNAME
2026 ## --------- ##
2027 ## Platform. ##
2028 ## --------- ##
2029
2030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2035
2036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2037 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2038
2039 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2040 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2042 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2043 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2044 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2045 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2046
2047 _ASUNAME
2048
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054     $as_echo "PATH: $as_dir"
2055   done
2056 IFS=$as_save_IFS
2057
2058 } >&5
2059
2060 cat >&5 <<_ACEOF
2061
2062
2063 ## ----------- ##
2064 ## Core tests. ##
2065 ## ----------- ##
2066
2067 _ACEOF
2068
2069
2070 # Keep a trace of the command line.
2071 # Strip out --no-create and --no-recursion so they do not pile up.
2072 # Strip out --silent because we don't want to record it for future runs.
2073 # Also quote any args containing shell meta-characters.
2074 # Make two passes to allow for proper duplicate-argument suppression.
2075 ac_configure_args=
2076 ac_configure_args0=
2077 ac_configure_args1=
2078 ac_must_keep_next=false
2079 for ac_pass in 1 2
2080 do
2081   for ac_arg
2082   do
2083     case $ac_arg in
2084     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2085     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2086     | -silent | --silent | --silen | --sile | --sil)
2087       continue ;;
2088     *\'*)
2089       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2090     esac
2091     case $ac_pass in
2092     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2093     2)
2094       as_fn_append ac_configure_args1 " '$ac_arg'"
2095       if test $ac_must_keep_next = true; then
2096         ac_must_keep_next=false # Got value, back to normal.
2097       else
2098         case $ac_arg in
2099           *=* | --config-cache | -C | -disable-* | --disable-* \
2100           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2101           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2102           | -with-* | --with-* | -without-* | --without-* | --x)
2103             case "$ac_configure_args0 " in
2104               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2105             esac
2106             ;;
2107           -* ) ac_must_keep_next=true ;;
2108         esac
2109       fi
2110       as_fn_append ac_configure_args " '$ac_arg'"
2111       ;;
2112     esac
2113   done
2114 done
2115 { ac_configure_args0=; unset ac_configure_args0;}
2116 { ac_configure_args1=; unset ac_configure_args1;}
2117
2118 # When interrupted or exit'd, cleanup temporary files, and complete
2119 # config.log.  We remove comments because anyway the quotes in there
2120 # would cause problems or look ugly.
2121 # WARNING: Use '\'' to represent an apostrophe within the trap.
2122 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2123 trap 'exit_status=$?
2124   # Save into config.log some information that might help in debugging.
2125   {
2126     echo
2127
2128     $as_echo "## ---------------- ##
2129 ## Cache variables. ##
2130 ## ---------------- ##"
2131     echo
2132     # The following way of writing the cache mishandles newlines in values,
2133 (
2134   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2135     eval ac_val=\$$ac_var
2136     case $ac_val in #(
2137     *${as_nl}*)
2138       case $ac_var in #(
2139       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2140 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2141       esac
2142       case $ac_var in #(
2143       _ | IFS | as_nl) ;; #(
2144       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2145       *) { eval $ac_var=; unset $ac_var;} ;;
2146       esac ;;
2147     esac
2148   done
2149   (set) 2>&1 |
2150     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2151     *${as_nl}ac_space=\ *)
2152       sed -n \
2153         "s/'\''/'\''\\\\'\'''\''/g;
2154           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2155       ;; #(
2156     *)
2157       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2158       ;;
2159     esac |
2160     sort
2161 )
2162     echo
2163
2164     $as_echo "## ----------------- ##
2165 ## Output variables. ##
2166 ## ----------------- ##"
2167     echo
2168     for ac_var in $ac_subst_vars
2169     do
2170       eval ac_val=\$$ac_var
2171       case $ac_val in
2172       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173       esac
2174       $as_echo "$ac_var='\''$ac_val'\''"
2175     done | sort
2176     echo
2177
2178     if test -n "$ac_subst_files"; then
2179       $as_echo "## ------------------- ##
2180 ## File substitutions. ##
2181 ## ------------------- ##"
2182       echo
2183       for ac_var in $ac_subst_files
2184       do
2185         eval ac_val=\$$ac_var
2186         case $ac_val in
2187         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188         esac
2189         $as_echo "$ac_var='\''$ac_val'\''"
2190       done | sort
2191       echo
2192     fi
2193
2194     if test -s confdefs.h; then
2195       $as_echo "## ----------- ##
2196 ## confdefs.h. ##
2197 ## ----------- ##"
2198       echo
2199       cat confdefs.h
2200       echo
2201     fi
2202     test "$ac_signal" != 0 &&
2203       $as_echo "$as_me: caught signal $ac_signal"
2204     $as_echo "$as_me: exit $exit_status"
2205   } >&5
2206   rm -f core *.core core.conftest.* &&
2207     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2208     exit $exit_status
2209 ' 0
2210 for ac_signal in 1 2 13 15; do
2211   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2212 done
2213 ac_signal=0
2214
2215 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2216 rm -f -r conftest* confdefs.h
2217
2218 $as_echo "/* confdefs.h */" > confdefs.h
2219
2220 # Predefined preprocessor variables.
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_NAME "$PACKAGE_NAME"
2224 _ACEOF
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2228 _ACEOF
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2232 _ACEOF
2233
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_STRING "$PACKAGE_STRING"
2236 _ACEOF
2237
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2240 _ACEOF
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_URL "$PACKAGE_URL"
2244 _ACEOF
2245
2246
2247 # Let the site file select an alternate cache file if it wants to.
2248 # Prefer an explicitly selected file to automatically selected ones.
2249 ac_site_file1=NONE
2250 ac_site_file2=NONE
2251 if test -n "$CONFIG_SITE"; then
2252   # We do not want a PATH search for config.site.
2253   case $CONFIG_SITE in #((
2254     -*)  ac_site_file1=./$CONFIG_SITE;;
2255     */*) ac_site_file1=$CONFIG_SITE;;
2256     *)   ac_site_file1=./$CONFIG_SITE;;
2257   esac
2258 elif test "x$prefix" != xNONE; then
2259   ac_site_file1=$prefix/share/config.site
2260   ac_site_file2=$prefix/etc/config.site
2261 else
2262   ac_site_file1=$ac_default_prefix/share/config.site
2263   ac_site_file2=$ac_default_prefix/etc/config.site
2264 fi
2265 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2266 do
2267   test "x$ac_site_file" = xNONE && continue
2268   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2269     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2270 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2271     sed 's/^/| /' "$ac_site_file" >&5
2272     . "$ac_site_file" \
2273       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275 as_fn_error $? "failed to load site script $ac_site_file
2276 See \`config.log' for more details" "$LINENO" 5; }
2277   fi
2278 done
2279
2280 if test -r "$cache_file"; then
2281   # Some versions of bash will fail to source /dev/null (special files
2282   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2283   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2284     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2285 $as_echo "$as_me: loading cache $cache_file" >&6;}
2286     case $cache_file in
2287       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288       *)                      . "./$cache_file";;
2289     esac
2290   fi
2291 else
2292   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2293 $as_echo "$as_me: creating cache $cache_file" >&6;}
2294   >$cache_file
2295 fi
2296
2297 gt_needs="$gt_needs "
2298 # Check that the precious variables saved in the cache have kept the same
2299 # value.
2300 ac_cache_corrupted=false
2301 for ac_var in $ac_precious_vars; do
2302   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2303   eval ac_new_set=\$ac_env_${ac_var}_set
2304   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2305   eval ac_new_val=\$ac_env_${ac_var}_value
2306   case $ac_old_set,$ac_new_set in
2307     set,)
2308       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2309 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2310       ac_cache_corrupted=: ;;
2311     ,set)
2312       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2313 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2314       ac_cache_corrupted=: ;;
2315     ,);;
2316     *)
2317       if test "x$ac_old_val" != "x$ac_new_val"; then
2318         # differences in whitespace do not lead to failure.
2319         ac_old_val_w=`echo x $ac_old_val`
2320         ac_new_val_w=`echo x $ac_new_val`
2321         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2322           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2323 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2324           ac_cache_corrupted=:
2325         else
2326           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2327 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2328           eval $ac_var=\$ac_old_val
2329         fi
2330         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2331 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2332         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2333 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2334       fi;;
2335   esac
2336   # Pass precious variables to config.status.
2337   if test "$ac_new_set" = set; then
2338     case $ac_new_val in
2339     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2340     *) ac_arg=$ac_var=$ac_new_val ;;
2341     esac
2342     case " $ac_configure_args " in
2343       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2344       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2345     esac
2346   fi
2347 done
2348 if $ac_cache_corrupted; then
2349   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2352 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2353   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2354 fi
2355 ## -------------------- ##
2356 ## Main body of script. ##
2357 ## -------------------- ##
2358
2359 ac_ext=c
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364
2365
2366
2367 am__api_version='1.11'
2368
2369 ac_aux_dir=
2370 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2371   if test -f "$ac_dir/install-sh"; then
2372     ac_aux_dir=$ac_dir
2373     ac_install_sh="$ac_aux_dir/install-sh -c"
2374     break
2375   elif test -f "$ac_dir/install.sh"; then
2376     ac_aux_dir=$ac_dir
2377     ac_install_sh="$ac_aux_dir/install.sh -c"
2378     break
2379   elif test -f "$ac_dir/shtool"; then
2380     ac_aux_dir=$ac_dir
2381     ac_install_sh="$ac_aux_dir/shtool install -c"
2382     break
2383   fi
2384 done
2385 if test -z "$ac_aux_dir"; then
2386   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2387 fi
2388
2389 # These three variables are undocumented and unsupported,
2390 # and are intended to be withdrawn in a future Autoconf release.
2391 # They can cause serious problems if a builder's source tree is in a directory
2392 # whose full name contains unusual characters.
2393 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2394 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2395 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2396
2397
2398 # Find a good install program.  We prefer a C program (faster),
2399 # so one script is as good as another.  But avoid the broken or
2400 # incompatible versions:
2401 # SysV /etc/install, /usr/sbin/install
2402 # SunOS /usr/etc/install
2403 # IRIX /sbin/install
2404 # AIX /bin/install
2405 # AmigaOS /C/install, which installs bootblocks on floppy discs
2406 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2407 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2408 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2409 # OS/2's system install, which has a completely different semantic
2410 # ./install, which can be erroneously created by make from ./install.sh.
2411 # Reject install programs that cannot install multiple files.
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2413 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2414 if test -z "$INSTALL"; then
2415 if ${ac_cv_path_install+:} false; then :
2416   $as_echo_n "(cached) " >&6
2417 else
2418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421   IFS=$as_save_IFS
2422   test -z "$as_dir" && as_dir=.
2423     # Account for people who put trailing slashes in PATH elements.
2424 case $as_dir/ in #((
2425   ./ | .// | /[cC]/* | \
2426   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2427   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2428   /usr/ucb/* ) ;;
2429   *)
2430     # OSF1 and SCO ODT 3.0 have their own names for install.
2431     # Don't use installbsd from OSF since it installs stuff as root
2432     # by default.
2433     for ac_prog in ginstall scoinst install; do
2434       for ac_exec_ext in '' $ac_executable_extensions; do
2435         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2436           if test $ac_prog = install &&
2437             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2438             # AIX install.  It has an incompatible calling convention.
2439             :
2440           elif test $ac_prog = install &&
2441             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2442             # program-specific install script used by HP pwplus--don't use.
2443             :
2444           else
2445             rm -rf conftest.one conftest.two conftest.dir
2446             echo one > conftest.one
2447             echo two > conftest.two
2448             mkdir conftest.dir
2449             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2450               test -s conftest.one && test -s conftest.two &&
2451               test -s conftest.dir/conftest.one &&
2452               test -s conftest.dir/conftest.two
2453             then
2454               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2455               break 3
2456             fi
2457           fi
2458         fi
2459       done
2460     done
2461     ;;
2462 esac
2463
2464   done
2465 IFS=$as_save_IFS
2466
2467 rm -rf conftest.one conftest.two conftest.dir
2468
2469 fi
2470   if test "${ac_cv_path_install+set}" = set; then
2471     INSTALL=$ac_cv_path_install
2472   else
2473     # As a last resort, use the slow shell script.  Don't cache a
2474     # value for INSTALL within a source directory, because that will
2475     # break other packages using the cache if that directory is
2476     # removed, or if the value is a relative name.
2477     INSTALL=$ac_install_sh
2478   fi
2479 fi
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2481 $as_echo "$INSTALL" >&6; }
2482
2483 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2484 # It thinks the first close brace ends the variable substitution.
2485 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2486
2487 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2488
2489 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2490
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2492 $as_echo_n "checking whether build environment is sane... " >&6; }
2493 # Just in case
2494 sleep 1
2495 echo timestamp > conftest.file
2496 # Reject unsafe characters in $srcdir or the absolute working directory
2497 # name.  Accept space and tab only in the latter.
2498 am_lf='
2499 '
2500 case `pwd` in
2501   *[\\\"\#\$\&\'\`$am_lf]*)
2502     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2503 esac
2504 case $srcdir in
2505   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2506     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2507 esac
2508
2509 # Do `set' in a subshell so we don't clobber the current shell's
2510 # arguments.  Must try -L first in case configure is actually a
2511 # symlink; some systems play weird games with the mod time of symlinks
2512 # (eg FreeBSD returns the mod time of the symlink's containing
2513 # directory).
2514 if (
2515    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2516    if test "$*" = "X"; then
2517       # -L didn't work.
2518       set X `ls -t "$srcdir/configure" conftest.file`
2519    fi
2520    rm -f conftest.file
2521    if test "$*" != "X $srcdir/configure conftest.file" \
2522       && test "$*" != "X conftest.file $srcdir/configure"; then
2523
2524       # If neither matched, then we have a broken ls.  This can happen
2525       # if, for instance, CONFIG_SHELL is bash and it inherits a
2526       # broken ls alias from the environment.  This has actually
2527       # happened.  Such a system could not be considered "sane".
2528       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2529 alias in your environment" "$LINENO" 5
2530    fi
2531
2532    test "$2" = conftest.file
2533    )
2534 then
2535    # Ok.
2536    :
2537 else
2538    as_fn_error $? "newly created file is older than distributed files!
2539 Check your system clock" "$LINENO" 5
2540 fi
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2542 $as_echo "yes" >&6; }
2543 test "$program_prefix" != NONE &&
2544   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2545 # Use a double $ so make ignores it.
2546 test "$program_suffix" != NONE &&
2547   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2548 # Double any \ or $.
2549 # By default was `s,x,x', remove it if useless.
2550 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2551 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2552
2553 # expand $ac_aux_dir to an absolute path
2554 am_aux_dir=`cd $ac_aux_dir && pwd`
2555
2556 if test x"${MISSING+set}" != xset; then
2557   case $am_aux_dir in
2558   *\ * | *\     *)
2559     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2560   *)
2561     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2562   esac
2563 fi
2564 # Use eval to expand $SHELL
2565 if eval "$MISSING --run true"; then
2566   am_missing_run="$MISSING --run "
2567 else
2568   am_missing_run=
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2570 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2571 fi
2572
2573 if test x"${install_sh}" != xset; then
2574   case $am_aux_dir in
2575   *\ * | *\     *)
2576     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2577   *)
2578     install_sh="\${SHELL} $am_aux_dir/install-sh"
2579   esac
2580 fi
2581
2582 # Installed binaries are usually stripped using `strip' when the user
2583 # run `make install-strip'.  However `strip' might not be the right
2584 # tool to use in cross-compilation environments, therefore Automake
2585 # will honor the `STRIP' environment variable to overrule this program.
2586 if test "$cross_compiling" != no; then
2587   if test -n "$ac_tool_prefix"; then
2588   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2589 set dummy ${ac_tool_prefix}strip; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if ${ac_cv_prog_STRIP+:} false; then :
2593   $as_echo_n "(cached) " >&6
2594 else
2595   if test -n "$STRIP"; then
2596   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601   IFS=$as_save_IFS
2602   test -z "$as_dir" && as_dir=.
2603     for ac_exec_ext in '' $ac_executable_extensions; do
2604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607     break 2
2608   fi
2609 done
2610   done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 STRIP=$ac_cv_prog_STRIP
2616 if test -n "$STRIP"; then
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2618 $as_echo "$STRIP" >&6; }
2619 else
2620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 fi
2623
2624
2625 fi
2626 if test -z "$ac_cv_prog_STRIP"; then
2627   ac_ct_STRIP=$STRIP
2628   # Extract the first word of "strip", so it can be a program name with args.
2629 set dummy strip; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2633   $as_echo_n "(cached) " >&6
2634 else
2635   if test -n "$ac_ct_STRIP"; then
2636   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641   IFS=$as_save_IFS
2642   test -z "$as_dir" && as_dir=.
2643     for ac_exec_ext in '' $ac_executable_extensions; do
2644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645     ac_cv_prog_ac_ct_STRIP="strip"
2646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647     break 2
2648   fi
2649 done
2650   done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2656 if test -n "$ac_ct_STRIP"; then
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2658 $as_echo "$ac_ct_STRIP" >&6; }
2659 else
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 fi
2663
2664   if test "x$ac_ct_STRIP" = x; then
2665     STRIP=":"
2666   else
2667     case $cross_compiling:$ac_tool_warned in
2668 yes:)
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671 ac_tool_warned=yes ;;
2672 esac
2673     STRIP=$ac_ct_STRIP
2674   fi
2675 else
2676   STRIP="$ac_cv_prog_STRIP"
2677 fi
2678
2679 fi
2680 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2681
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2683 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2684 if test -z "$MKDIR_P"; then
2685   if ${ac_cv_path_mkdir+:} false; then :
2686   $as_echo_n "(cached) " >&6
2687 else
2688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2690 do
2691   IFS=$as_save_IFS
2692   test -z "$as_dir" && as_dir=.
2693     for ac_prog in mkdir gmkdir; do
2694          for ac_exec_ext in '' $ac_executable_extensions; do
2695            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2696            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2697              'mkdir (GNU coreutils) '* | \
2698              'mkdir (coreutils) '* | \
2699              'mkdir (fileutils) '4.1*)
2700                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2701                break 3;;
2702            esac
2703          done
2704        done
2705   done
2706 IFS=$as_save_IFS
2707
2708 fi
2709
2710   test -d ./--version && rmdir ./--version
2711   if test "${ac_cv_path_mkdir+set}" = set; then
2712     MKDIR_P="$ac_cv_path_mkdir -p"
2713   else
2714     # As a last resort, use the slow shell script.  Don't cache a
2715     # value for MKDIR_P within a source directory, because that will
2716     # break other packages using the cache if that directory is
2717     # removed, or if the value is a relative name.
2718     MKDIR_P="$ac_install_sh -d"
2719   fi
2720 fi
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2722 $as_echo "$MKDIR_P" >&6; }
2723
2724 mkdir_p="$MKDIR_P"
2725 case $mkdir_p in
2726   [\\/$]* | ?:[\\/]*) ;;
2727   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2728 esac
2729
2730 for ac_prog in gawk mawk nawk awk
2731 do
2732   # Extract the first word of "$ac_prog", so it can be a program name with args.
2733 set dummy $ac_prog; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_AWK+:} false; then :
2737   $as_echo_n "(cached) " >&6
2738 else
2739   if test -n "$AWK"; then
2740   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745   IFS=$as_save_IFS
2746   test -z "$as_dir" && as_dir=.
2747     for ac_exec_ext in '' $ac_executable_extensions; do
2748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749     ac_cv_prog_AWK="$ac_prog"
2750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751     break 2
2752   fi
2753 done
2754   done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 AWK=$ac_cv_prog_AWK
2760 if test -n "$AWK"; then
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2762 $as_echo "$AWK" >&6; }
2763 else
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769   test -n "$AWK" && break
2770 done
2771
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2773 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2774 set x ${MAKE-make}
2775 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2776 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2777   $as_echo_n "(cached) " >&6
2778 else
2779   cat >conftest.make <<\_ACEOF
2780 SHELL = /bin/sh
2781 all:
2782         @echo '@@@%%%=$(MAKE)=@@@%%%'
2783 _ACEOF
2784 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2785 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2786   *@@@%%%=?*=@@@%%%*)
2787     eval ac_cv_prog_make_${ac_make}_set=yes;;
2788   *)
2789     eval ac_cv_prog_make_${ac_make}_set=no;;
2790 esac
2791 rm -f conftest.make
2792 fi
2793 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795 $as_echo "yes" >&6; }
2796   SET_MAKE=
2797 else
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800   SET_MAKE="MAKE=${MAKE-make}"
2801 fi
2802
2803 rm -rf .tst 2>/dev/null
2804 mkdir .tst 2>/dev/null
2805 if test -d .tst; then
2806   am__leading_dot=.
2807 else
2808   am__leading_dot=_
2809 fi
2810 rmdir .tst 2>/dev/null
2811
2812 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2813   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2814   # is not polluted with repeated "-I."
2815   am__isrc=' -I$(srcdir)'
2816   # test to see if srcdir already configured
2817   if test -f $srcdir/config.status; then
2818     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2819   fi
2820 fi
2821
2822 # test whether we have cygpath
2823 if test -z "$CYGPATH_W"; then
2824   if (cygpath --version) >/dev/null 2>/dev/null; then
2825     CYGPATH_W='cygpath -w'
2826   else
2827     CYGPATH_W=echo
2828   fi
2829 fi
2830
2831
2832 # Define the identity of the package.
2833  PACKAGE='psensor'
2834  VERSION='0.7.0.x'
2835
2836
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE "$PACKAGE"
2839 _ACEOF
2840
2841
2842 cat >>confdefs.h <<_ACEOF
2843 #define VERSION "$VERSION"
2844 _ACEOF
2845
2846 # Some tools Automake needs.
2847
2848 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2849
2850
2851 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2852
2853
2854 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2855
2856
2857 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2858
2859
2860 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2861
2862 # We need awk for the "check" target.  The system "awk" is bad on
2863 # some platforms.
2864 # Always define AMTAR for backward compatibility.  Yes, it's still used
2865 # in the wild :-(  We should find a proper way to deprecate it ...
2866 AMTAR='$${TAR-tar}'
2867
2868 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2869
2870
2871
2872
2873
2874
2875
2876 ac_config_headers="$ac_config_headers config.h"
2877
2878
2879 # Checks for programs.
2880 ac_ext=c
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 if test -n "$ac_tool_prefix"; then
2886   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2887 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_CC+:} false; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   if test -n "$CC"; then
2894   ac_cv_prog_CC="$CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899   IFS=$as_save_IFS
2900   test -z "$as_dir" && as_dir=.
2901     for ac_exec_ext in '' $ac_executable_extensions; do
2902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905     break 2
2906   fi
2907 done
2908   done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 CC=$ac_cv_prog_CC
2914 if test -n "$CC"; then
2915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916 $as_echo "$CC" >&6; }
2917 else
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922
2923 fi
2924 if test -z "$ac_cv_prog_CC"; then
2925   ac_ct_CC=$CC
2926   # Extract the first word of "gcc", so it can be a program name with args.
2927 set dummy gcc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2931   $as_echo_n "(cached) " >&6
2932 else
2933   if test -n "$ac_ct_CC"; then
2934   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939   IFS=$as_save_IFS
2940   test -z "$as_dir" && as_dir=.
2941     for ac_exec_ext in '' $ac_executable_extensions; do
2942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943     ac_cv_prog_ac_ct_CC="gcc"
2944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945     break 2
2946   fi
2947 done
2948   done
2949 IFS=$as_save_IFS
2950
2951 fi
2952 fi
2953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2954 if test -n "$ac_ct_CC"; then
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2956 $as_echo "$ac_ct_CC" >&6; }
2957 else
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962   if test "x$ac_ct_CC" = x; then
2963     CC=""
2964   else
2965     case $cross_compiling:$ac_tool_warned in
2966 yes:)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2969 ac_tool_warned=yes ;;
2970 esac
2971     CC=$ac_ct_CC
2972   fi
2973 else
2974   CC="$ac_cv_prog_CC"
2975 fi
2976
2977 if test -z "$CC"; then
2978           if test -n "$ac_tool_prefix"; then
2979     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}cc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_CC+:} false; then :
2984   $as_echo_n "(cached) " >&6
2985 else
2986   if test -n "$CC"; then
2987   ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
2993   test -z "$as_dir" && as_dir=.
2994     for ac_exec_ext in '' $ac_executable_extensions; do
2995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996     ac_cv_prog_CC="${ac_tool_prefix}cc"
2997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998     break 2
2999   fi
3000 done
3001   done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3010 else
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015
3016   fi
3017 fi
3018 if test -z "$CC"; then
3019   # Extract the first word of "cc", so it can be a program name with args.
3020 set dummy cc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_CC+:} false; then :
3024   $as_echo_n "(cached) " >&6
3025 else
3026   if test -n "$CC"; then
3027   ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029   ac_prog_rejected=no
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033   IFS=$as_save_IFS
3034   test -z "$as_dir" && as_dir=.
3035     for ac_exec_ext in '' $ac_executable_extensions; do
3036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3038        ac_prog_rejected=yes
3039        continue
3040      fi
3041     ac_cv_prog_CC="cc"
3042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043     break 2
3044   fi
3045 done
3046   done
3047 IFS=$as_save_IFS
3048
3049 if test $ac_prog_rejected = yes; then
3050   # We found a bogon in the path, so make sure we never use it.
3051   set dummy $ac_cv_prog_CC
3052   shift
3053   if test $# != 0; then
3054     # We chose a different compiler from the bogus one.
3055     # However, it has the same basename, so the bogon will be chosen
3056     # first if we set CC to just the basename; use the full file name.
3057     shift
3058     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3059   fi
3060 fi
3061 fi
3062 fi
3063 CC=$ac_cv_prog_CC
3064 if test -n "$CC"; then
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3067 else
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073 fi
3074 if test -z "$CC"; then
3075   if test -n "$ac_tool_prefix"; then
3076   for ac_prog in cl.exe
3077   do
3078     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_CC+:} false; then :
3083   $as_echo_n "(cached) " >&6
3084 else
3085   if test -n "$CC"; then
3086   ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093     for ac_exec_ext in '' $ac_executable_extensions; do
3094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100   done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3109 else
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114
3115     test -n "$CC" && break
3116   done
3117 fi
3118 if test -z "$CC"; then
3119   ac_ct_CC=$CC
3120   for ac_prog in cl.exe
3121 do
3122   # Extract the first word of "$ac_prog", so it can be a program name with args.
3123 set dummy $ac_prog; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3127   $as_echo_n "(cached) " >&6
3128 else
3129   if test -n "$ac_ct_CC"; then
3130   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135   IFS=$as_save_IFS
3136   test -z "$as_dir" && as_dir=.
3137     for ac_exec_ext in '' $ac_executable_extensions; do
3138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139     ac_cv_prog_ac_ct_CC="$ac_prog"
3140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141     break 2
3142   fi
3143 done
3144   done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152 $as_echo "$ac_ct_CC" >&6; }
3153 else
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 fi
3157
3158
3159   test -n "$ac_ct_CC" && break
3160 done
3161
3162   if test "x$ac_ct_CC" = x; then
3163     CC=""
3164   else
3165     case $cross_compiling:$ac_tool_warned in
3166 yes:)
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169 ac_tool_warned=yes ;;
3170 esac
3171     CC=$ac_ct_CC
3172   fi
3173 fi
3174
3175 fi
3176
3177
3178 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180 as_fn_error $? "no acceptable C compiler found in \$PATH
3181 See \`config.log' for more details" "$LINENO" 5; }
3182
3183 # Provide some information about the compiler.
3184 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3185 set X $ac_compile
3186 ac_compiler=$2
3187 for ac_option in --version -v -V -qversion; do
3188   { { ac_try="$ac_compiler $ac_option >&5"
3189 case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3196   ac_status=$?
3197   if test -s conftest.err; then
3198     sed '10a\
3199 ... rest of stderr output deleted ...
3200          10q' conftest.err >conftest.er1
3201     cat conftest.er1 >&5
3202   fi
3203   rm -f conftest.er1 conftest.err
3204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205   test $ac_status = 0; }
3206 done
3207
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h.  */
3210
3211 int
3212 main ()
3213 {
3214
3215   ;
3216   return 0;
3217 }
3218 _ACEOF
3219 ac_clean_files_save=$ac_clean_files
3220 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3221 # Try to create an executable without -o first, disregard a.out.
3222 # It will help us diagnose broken compilers, and finding out an intuition
3223 # of exeext.
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3225 $as_echo_n "checking whether the C compiler works... " >&6; }
3226 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3227
3228 # The possible output files:
3229 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3230
3231 ac_rmfiles=
3232 for ac_file in $ac_files
3233 do
3234   case $ac_file in
3235     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3236     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3237   esac
3238 done
3239 rm -f $ac_rmfiles
3240
3241 if { { ac_try="$ac_link_default"
3242 case "(($ac_try" in
3243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244   *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248   (eval "$ac_link_default") 2>&5
3249   ac_status=$?
3250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251   test $ac_status = 0; }; then :
3252   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3253 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3254 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3255 # so that the user can short-circuit this test for compilers unknown to
3256 # Autoconf.
3257 for ac_file in $ac_files ''
3258 do
3259   test -f "$ac_file" || continue
3260   case $ac_file in
3261     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3262         ;;
3263     [ab].out )
3264         # We found the default executable, but exeext='' is most
3265         # certainly right.
3266         break;;
3267     *.* )
3268         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3269         then :; else
3270            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3271         fi
3272         # We set ac_cv_exeext here because the later test for it is not
3273         # safe: cross compilers may not add the suffix if given an `-o'
3274         # argument, so we may need to know it at that point already.
3275         # Even if this section looks crufty: it has the advantage of
3276         # actually working.
3277         break;;
3278     * )
3279         break;;
3280   esac
3281 done
3282 test "$ac_cv_exeext" = no && ac_cv_exeext=
3283
3284 else
3285   ac_file=''
3286 fi
3287 if test -z "$ac_file"; then :
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 $as_echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error 77 "C compiler cannot create executables
3296 See \`config.log' for more details" "$LINENO" 5; }
3297 else
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3302 $as_echo_n "checking for C compiler default output file name... " >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3304 $as_echo "$ac_file" >&6; }
3305 ac_exeext=$ac_cv_exeext
3306
3307 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3308 ac_clean_files=$ac_clean_files_save
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3310 $as_echo_n "checking for suffix of executables... " >&6; }
3311 if { { ac_try="$ac_link"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318   (eval "$ac_link") 2>&5
3319   ac_status=$?
3320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321   test $ac_status = 0; }; then :
3322   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3323 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3324 # work properly (i.e., refer to `conftest.exe'), while it won't with
3325 # `rm'.
3326 for ac_file in conftest.exe conftest conftest.*; do
3327   test -f "$ac_file" || continue
3328   case $ac_file in
3329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331           break;;
3332     * ) break;;
3333   esac
3334 done
3335 else
3336   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3339 See \`config.log' for more details" "$LINENO" 5; }
3340 fi
3341 rm -f conftest conftest$ac_cv_exeext
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3343 $as_echo "$ac_cv_exeext" >&6; }
3344
3345 rm -f conftest.$ac_ext
3346 EXEEXT=$ac_cv_exeext
3347 ac_exeext=$EXEEXT
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h.  */
3350 #include <stdio.h>
3351 int
3352 main ()
3353 {
3354 FILE *f = fopen ("conftest.out", "w");
3355  return ferror (f) || fclose (f) != 0;
3356
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 ac_clean_files="$ac_clean_files conftest.out"
3362 # Check that the compiler produces executables we can run.  If not, either
3363 # the compiler is broken, or we cross compile.
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3365 $as_echo_n "checking whether we are cross compiling... " >&6; }
3366 if test "$cross_compiling" != yes; then
3367   { { ac_try="$ac_link"
3368 case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374   (eval "$ac_link") 2>&5
3375   ac_status=$?
3376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377   test $ac_status = 0; }
3378   if { ac_try='./conftest$ac_cv_exeext'
3379   { { case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385   (eval "$ac_try") 2>&5
3386   ac_status=$?
3387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388   test $ac_status = 0; }; }; then
3389     cross_compiling=no
3390   else
3391     if test "$cross_compiling" = maybe; then
3392         cross_compiling=yes
3393     else
3394         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396 as_fn_error $? "cannot run C compiled programs.
3397 If you meant to cross compile, use \`--host'.
3398 See \`config.log' for more details" "$LINENO" 5; }
3399     fi
3400   fi
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3403 $as_echo "$cross_compiling" >&6; }
3404
3405 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3406 ac_clean_files=$ac_clean_files_save
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3408 $as_echo_n "checking for suffix of object files... " >&6; }
3409 if ${ac_cv_objext+:} false; then :
3410   $as_echo_n "(cached) " >&6
3411 else
3412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h.  */
3414
3415 int
3416 main ()
3417 {
3418
3419   ;
3420   return 0;
3421 }
3422 _ACEOF
3423 rm -f conftest.o conftest.obj
3424 if { { ac_try="$ac_compile"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431   (eval "$ac_compile") 2>&5
3432   ac_status=$?
3433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434   test $ac_status = 0; }; then :
3435   for ac_file in conftest.o conftest.obj conftest.*; do
3436   test -f "$ac_file" || continue;
3437   case $ac_file in
3438     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3439     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3440        break;;
3441   esac
3442 done
3443 else
3444   $as_echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error $? "cannot compute suffix of object files: cannot compile
3450 See \`config.log' for more details" "$LINENO" 5; }
3451 fi
3452 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3453 fi
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3455 $as_echo "$ac_cv_objext" >&6; }
3456 OBJEXT=$ac_cv_objext
3457 ac_objext=$OBJEXT
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3459 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3460 if ${ac_cv_c_compiler_gnu+:} false; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469 #ifndef __GNUC__
3470        choke me
3471 #endif
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 if ac_fn_c_try_compile "$LINENO"; then :
3478   ac_compiler_gnu=yes
3479 else
3480   ac_compiler_gnu=no
3481 fi
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3484
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3487 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3488 if test $ac_compiler_gnu = yes; then
3489   GCC=yes
3490 else
3491   GCC=
3492 fi
3493 ac_test_CFLAGS=${CFLAGS+set}
3494 ac_save_CFLAGS=$CFLAGS
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3496 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3497 if ${ac_cv_prog_cc_g+:} false; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   ac_save_c_werror_flag=$ac_c_werror_flag
3501    ac_c_werror_flag=yes
3502    ac_cv_prog_cc_g=no
3503    CFLAGS="-g"
3504    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h.  */
3506
3507 int
3508 main ()
3509 {
3510
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516   ac_cv_prog_cc_g=yes
3517 else
3518   CFLAGS=""
3519       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h.  */
3521
3522 int
3523 main ()
3524 {
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531
3532 else
3533   ac_c_werror_flag=$ac_save_c_werror_flag
3534          CFLAGS="-g"
3535          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 if ac_fn_c_try_compile "$LINENO"; then :
3547   ac_cv_prog_cc_g=yes
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 fi
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554    ac_c_werror_flag=$ac_save_c_werror_flag
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3557 $as_echo "$ac_cv_prog_cc_g" >&6; }
3558 if test "$ac_test_CFLAGS" = set; then
3559   CFLAGS=$ac_save_CFLAGS
3560 elif test $ac_cv_prog_cc_g = yes; then
3561   if test "$GCC" = yes; then
3562     CFLAGS="-g -O2"
3563   else
3564     CFLAGS="-g"
3565   fi
3566 else
3567   if test "$GCC" = yes; then
3568     CFLAGS="-O2"
3569   else
3570     CFLAGS=
3571   fi
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3574 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3575 if ${ac_cv_prog_cc_c89+:} false; then :
3576   $as_echo_n "(cached) " >&6
3577 else
3578   ac_cv_prog_cc_c89=no
3579 ac_save_CC=$CC
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582 #include <stdarg.h>
3583 #include <stdio.h>
3584 #include <sys/types.h>
3585 #include <sys/stat.h>
3586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3587 struct buf { int x; };
3588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589 static char *e (p, i)
3590      char **p;
3591      int i;
3592 {
3593   return p[i];
3594 }
3595 static char *f (char * (*g) (char **, int), char **p, ...)
3596 {
3597   char *s;
3598   va_list v;
3599   va_start (v,p);
3600   s = g (p, va_arg (v,int));
3601   va_end (v);
3602   return s;
3603 }
3604
3605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3606    function prototypes and stuff, but not '\xHH' hex character constants.
3607    These don't provoke an error unfortunately, instead are silently treated
3608    as 'x'.  The following induces an error, until -std is added to get
3609    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3610    array size at least.  It's necessary to write '\x00'==0 to get something
3611    that's true only with -std.  */
3612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3613
3614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615    inside strings and character constants.  */
3616 #define FOO(x) 'x'
3617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3618
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623 int argc;
3624 char **argv;
3625 int
3626 main ()
3627 {
3628 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3629   ;
3630   return 0;
3631 }
3632 _ACEOF
3633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3635 do
3636   CC="$ac_save_CC $ac_arg"
3637   if ac_fn_c_try_compile "$LINENO"; then :
3638   ac_cv_prog_cc_c89=$ac_arg
3639 fi
3640 rm -f core conftest.err conftest.$ac_objext
3641   test "x$ac_cv_prog_cc_c89" != "xno" && break
3642 done
3643 rm -f conftest.$ac_ext
3644 CC=$ac_save_CC
3645
3646 fi
3647 # AC_CACHE_VAL
3648 case "x$ac_cv_prog_cc_c89" in
3649   x)
3650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3651 $as_echo "none needed" >&6; } ;;
3652   xno)
3653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3654 $as_echo "unsupported" >&6; } ;;
3655   *)
3656     CC="$CC $ac_cv_prog_cc_c89"
3657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3658 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3659 esac
3660 if test "x$ac_cv_prog_cc_c89" != xno; then :
3661
3662 fi
3663
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 DEPDIR="${am__leading_dot}deps"
3670
3671 ac_config_commands="$ac_config_commands depfiles"
3672
3673
3674 am_make=${MAKE-make}
3675 cat > confinc << 'END'
3676 am__doit:
3677         @echo this is the am__doit target
3678 .PHONY: am__doit
3679 END
3680 # If we don't find an include directive, just comment out the code.
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3682 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3683 am__include="#"
3684 am__quote=
3685 _am_result=none
3686 # First try GNU make style include.
3687 echo "include confinc" > confmf
3688 # Ignore all kinds of additional output from `make'.
3689 case `$am_make -s -f confmf 2> /dev/null` in #(
3690 *the\ am__doit\ target*)
3691   am__include=include
3692   am__quote=
3693   _am_result=GNU
3694   ;;
3695 esac
3696 # Now try BSD make style include.
3697 if test "$am__include" = "#"; then
3698    echo '.include "confinc"' > confmf
3699    case `$am_make -s -f confmf 2> /dev/null` in #(
3700    *the\ am__doit\ target*)
3701      am__include=.include
3702      am__quote="\""
3703      _am_result=BSD
3704      ;;
3705    esac
3706 fi
3707
3708
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3710 $as_echo "$_am_result" >&6; }
3711 rm -f confinc confmf
3712
3713 # Check whether --enable-dependency-tracking was given.
3714 if test "${enable_dependency_tracking+set}" = set; then :
3715   enableval=$enable_dependency_tracking;
3716 fi
3717
3718 if test "x$enable_dependency_tracking" != xno; then
3719   am_depcomp="$ac_aux_dir/depcomp"
3720   AMDEPBACKSLASH='\'
3721   am__nodep='_no'
3722 fi
3723  if test "x$enable_dependency_tracking" != xno; then
3724   AMDEP_TRUE=
3725   AMDEP_FALSE='#'
3726 else
3727   AMDEP_TRUE='#'
3728   AMDEP_FALSE=
3729 fi
3730
3731
3732
3733 depcc="$CC"   am_compiler_list=
3734
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3736 $as_echo_n "checking dependency style of $depcc... " >&6; }
3737 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3741   # We make a subdir and do the tests there.  Otherwise we can end up
3742   # making bogus files that we don't know about and never remove.  For
3743   # instance it was reported that on HP-UX the gcc test will end up
3744   # making a dummy file named `D' -- because `-MD' means `put the output
3745   # in D'.
3746   rm -rf conftest.dir
3747   mkdir conftest.dir
3748   # Copy depcomp to subdir because otherwise we won't find it if we're
3749   # using a relative directory.
3750   cp "$am_depcomp" conftest.dir
3751   cd conftest.dir
3752   # We will build objects and dependencies in a subdirectory because
3753   # it helps to detect inapplicable dependency modes.  For instance
3754   # both Tru64's cc and ICC support -MD to output dependencies as a
3755   # side effect of compilation, but ICC will put the dependencies in
3756   # the current directory while Tru64 will put them in the object
3757   # directory.
3758   mkdir sub
3759
3760   am_cv_CC_dependencies_compiler_type=none
3761   if test "$am_compiler_list" = ""; then
3762      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3763   fi
3764   am__universal=false
3765   case " $depcc " in #(
3766      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3767      esac
3768
3769   for depmode in $am_compiler_list; do
3770     # Setup a source with many dependencies, because some compilers
3771     # like to wrap large dependency lists on column 80 (with \), and
3772     # we should not choose a depcomp mode which is confused by this.
3773     #
3774     # We need to recreate these files for each test, as the compiler may
3775     # overwrite some of them when testing with obscure command lines.
3776     # This happens at least with the AIX C compiler.
3777     : > sub/conftest.c
3778     for i in 1 2 3 4 5 6; do
3779       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3780       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3781       # Solaris 8's {/usr,}/bin/sh.
3782       touch sub/conftst$i.h
3783     done
3784     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3785
3786     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3787     # mode.  It turns out that the SunPro C++ compiler does not properly
3788     # handle `-M -o', and we need to detect this.  Also, some Intel
3789     # versions had trouble with output in subdirs
3790     am__obj=sub/conftest.${OBJEXT-o}
3791     am__minus_obj="-o $am__obj"
3792     case $depmode in
3793     gcc)
3794       # This depmode causes a compiler race in universal mode.
3795       test "$am__universal" = false || continue
3796       ;;
3797     nosideeffect)
3798       # after this tag, mechanisms are not by side-effect, so they'll
3799       # only be used when explicitly requested
3800       if test "x$enable_dependency_tracking" = xyes; then
3801         continue
3802       else
3803         break
3804       fi
3805       ;;
3806     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3807       # This compiler won't grok `-c -o', but also, the minuso test has
3808       # not run yet.  These depmodes are late enough in the game, and
3809       # so weak that their functioning should not be impacted.
3810       am__obj=conftest.${OBJEXT-o}
3811       am__minus_obj=
3812       ;;
3813     none) break ;;
3814     esac
3815     if depmode=$depmode \
3816        source=sub/conftest.c object=$am__obj \
3817        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3818        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3819          >/dev/null 2>conftest.err &&
3820        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3821        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3822        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3823        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3824       # icc doesn't choke on unknown options, it will just issue warnings
3825       # or remarks (even with -Werror).  So we grep stderr for any message
3826       # that says an option was ignored or not supported.
3827       # When given -MP, icc 7.0 and 7.1 complain thusly:
3828       #   icc: Command line warning: ignoring option '-M'; no argument required
3829       # The diagnosis changed in icc 8.0:
3830       #   icc: Command line remark: option '-MP' not supported
3831       if (grep 'ignoring option' conftest.err ||
3832           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3833         am_cv_CC_dependencies_compiler_type=$depmode
3834         break
3835       fi
3836     fi
3837   done
3838
3839   cd ..
3840   rm -rf conftest.dir
3841 else
3842   am_cv_CC_dependencies_compiler_type=none
3843 fi
3844
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3847 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3848 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3849
3850  if
3851   test "x$enable_dependency_tracking" != xno \
3852   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3853   am__fastdepCC_TRUE=
3854   am__fastdepCC_FALSE='#'
3855 else
3856   am__fastdepCC_TRUE='#'
3857   am__fastdepCC_FALSE=
3858 fi
3859
3860
3861 if test "x$CC" != xcc; then
3862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3863 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3864 else
3865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3866 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3867 fi
3868 set dummy $CC; ac_cc=`$as_echo "$2" |
3869                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3870 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h.  */
3875
3876 int
3877 main ()
3878 {
3879
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 # Make sure it works both with $CC and with simple cc.
3885 # We do the test twice because some compilers refuse to overwrite an
3886 # existing .o file with -o, though they will create one.
3887 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3888 rm -f conftest2.*
3889 if { { case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895   (eval "$ac_try") 2>&5
3896   ac_status=$?
3897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898   test $ac_status = 0; } &&
3899    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901   *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905   (eval "$ac_try") 2>&5
3906   ac_status=$?
3907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908   test $ac_status = 0; };
3909 then
3910   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3911   if test "x$CC" != xcc; then
3912     # Test first that cc exists at all.
3913     if { ac_try='cc -c conftest.$ac_ext >&5'
3914   { { case "(($ac_try" in
3915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916   *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920   (eval "$ac_try") 2>&5
3921   ac_status=$?
3922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923   test $ac_status = 0; }; }; then
3924       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3925       rm -f conftest2.*
3926       if { { case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932   (eval "$ac_try") 2>&5
3933   ac_status=$?
3934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935   test $ac_status = 0; } &&
3936          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938   *) ac_try_echo=$ac_try;;
3939 esac
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942   (eval "$ac_try") 2>&5
3943   ac_status=$?
3944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945   test $ac_status = 0; };
3946       then
3947         # cc works too.
3948         :
3949       else
3950         # cc exists but doesn't like -o.
3951         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3952       fi
3953     fi
3954   fi
3955 else
3956   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3957 fi
3958 rm -f core conftest*
3959
3960 fi
3961 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3963 $as_echo "yes" >&6; }
3964 else
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3967
3968 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3969
3970 fi
3971
3972 # FIXME: we rely on the cache variable name because
3973 # there is no other way.
3974 set dummy $CC
3975 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3976 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3977 if test "$am_t" != yes; then
3978    # Losing compiler, so override with the script.
3979    # FIXME: It is wrong to rewrite CC.
3980    # But if we don't then we get into trouble of one sort or another.
3981    # A longer-term fix would be to have automake use am__CC in this case,
3982    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3983    CC="$am_aux_dir/compile $CC"
3984 fi
3985
3986
3987
3988 # Checks lib build
3989 if test -n "$ac_tool_prefix"; then
3990   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if ${ac_cv_prog_RANLIB+:} false; then :
3995   $as_echo_n "(cached) " >&6
3996 else
3997   if test -n "$RANLIB"; then
3998   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003   IFS=$as_save_IFS
4004   test -z "$as_dir" && as_dir=.
4005     for ac_exec_ext in '' $ac_executable_extensions; do
4006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009     break 2
4010   fi
4011 done
4012   done
4013 IFS=$as_save_IFS
4014
4015 fi
4016 fi
4017 RANLIB=$ac_cv_prog_RANLIB
4018 if test -n "$RANLIB"; then
4019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4020 $as_echo "$RANLIB" >&6; }
4021 else
4022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4024 fi
4025
4026
4027 fi
4028 if test -z "$ac_cv_prog_RANLIB"; then
4029   ac_ct_RANLIB=$RANLIB
4030   # Extract the first word of "ranlib", so it can be a program name with args.
4031 set dummy ranlib; ac_word=$2
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4035   $as_echo_n "(cached) " >&6
4036 else
4037   if test -n "$ac_ct_RANLIB"; then
4038   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043   IFS=$as_save_IFS
4044   test -z "$as_dir" && as_dir=.
4045     for ac_exec_ext in '' $ac_executable_extensions; do
4046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047     ac_cv_prog_ac_ct_RANLIB="ranlib"
4048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052   done
4053 IFS=$as_save_IFS
4054
4055 fi
4056 fi
4057 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4058 if test -n "$ac_ct_RANLIB"; then
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4060 $as_echo "$ac_ct_RANLIB" >&6; }
4061 else
4062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064 fi
4065
4066   if test "x$ac_ct_RANLIB" = x; then
4067     RANLIB=":"
4068   else
4069     case $cross_compiling:$ac_tool_warned in
4070 yes:)
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4073 ac_tool_warned=yes ;;
4074 esac
4075     RANLIB=$ac_ct_RANLIB
4076   fi
4077 else
4078   RANLIB="$ac_cv_prog_RANLIB"
4079 fi
4080
4081
4082 # Checks for header files.
4083
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4090 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4091 # On Suns, sometimes $CPP names a directory.
4092 if test -n "$CPP" && test -d "$CPP"; then
4093   CPP=
4094 fi
4095 if test -z "$CPP"; then
4096   if ${ac_cv_prog_CPP+:} false; then :
4097   $as_echo_n "(cached) " >&6
4098 else
4099       # Double quotes because CPP needs to be expanded
4100     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4101     do
4102       ac_preproc_ok=false
4103 for ac_c_preproc_warn_flag in '' yes
4104 do
4105   # Use a header file that comes with gcc, so configuring glibc
4106   # with a fresh cross-compiler works.
4107   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4108   # <limits.h> exists even on freestanding compilers.
4109   # On the NeXT, cc -E runs the code through the compiler's parser,
4110   # not just through cpp. "Syntax error" is here to catch this case.
4111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h.  */
4113 #ifdef __STDC__
4114 # include <limits.h>
4115 #else
4116 # include <assert.h>
4117 #endif
4118                      Syntax error
4119 _ACEOF
4120 if ac_fn_c_try_cpp "$LINENO"; then :
4121
4122 else
4123   # Broken: fails on valid input.
4124 continue
4125 fi
4126 rm -f conftest.err conftest.i conftest.$ac_ext
4127
4128   # OK, works on sane cases.  Now check whether nonexistent headers
4129   # can be detected and how.
4130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h.  */
4132 #include <ac_nonexistent.h>
4133 _ACEOF
4134 if ac_fn_c_try_cpp "$LINENO"; then :
4135   # Broken: success on invalid input.
4136 continue
4137 else
4138   # Passes both tests.
4139 ac_preproc_ok=:
4140 break
4141 fi
4142 rm -f conftest.err conftest.i conftest.$ac_ext
4143
4144 done
4145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4146 rm -f conftest.i conftest.err conftest.$ac_ext
4147 if $ac_preproc_ok; then :
4148   break
4149 fi
4150
4151     done
4152     ac_cv_prog_CPP=$CPP
4153
4154 fi
4155   CPP=$ac_cv_prog_CPP
4156 else
4157   ac_cv_prog_CPP=$CPP
4158 fi
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4160 $as_echo "$CPP" >&6; }
4161 ac_preproc_ok=false
4162 for ac_c_preproc_warn_flag in '' yes
4163 do
4164   # Use a header file that comes with gcc, so configuring glibc
4165   # with a fresh cross-compiler works.
4166   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4167   # <limits.h> exists even on freestanding compilers.
4168   # On the NeXT, cc -E runs the code through the compiler's parser,
4169   # not just through cpp. "Syntax error" is here to catch this case.
4170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h.  */
4172 #ifdef __STDC__
4173 # include <limits.h>
4174 #else
4175 # include <assert.h>
4176 #endif
4177                      Syntax error
4178 _ACEOF
4179 if ac_fn_c_try_cpp "$LINENO"; then :
4180
4181 else
4182   # Broken: fails on valid input.
4183 continue
4184 fi
4185 rm -f conftest.err conftest.i conftest.$ac_ext
4186
4187   # OK, works on sane cases.  Now check whether nonexistent headers
4188   # can be detected and how.
4189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h.  */
4191 #include <ac_nonexistent.h>
4192 _ACEOF
4193 if ac_fn_c_try_cpp "$LINENO"; then :
4194   # Broken: success on invalid input.
4195 continue
4196 else
4197   # Passes both tests.
4198 ac_preproc_ok=:
4199 break
4200 fi
4201 rm -f conftest.err conftest.i conftest.$ac_ext
4202
4203 done
4204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4205 rm -f conftest.i conftest.err conftest.$ac_ext
4206 if $ac_preproc_ok; then :
4207
4208 else
4209   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4211 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4212 See \`config.log' for more details" "$LINENO" 5; }
4213 fi
4214
4215 ac_ext=c
4216 ac_cpp='$CPP $CPPFLAGS'
4217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4220
4221
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4223 $as_echo_n "checking for X... " >&6; }
4224
4225
4226 # Check whether --with-x was given.
4227 if test "${with_x+set}" = set; then :
4228   withval=$with_x;
4229 fi
4230
4231 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4232 if test "x$with_x" = xno; then
4233   # The user explicitly disabled X.
4234   have_x=disabled
4235 else
4236   case $x_includes,$x_libraries in #(
4237     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4238     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4239   $as_echo_n "(cached) " >&6
4240 else
4241   # One or both of the vars are not set, and there is no cached value.
4242 ac_x_includes=no ac_x_libraries=no
4243 rm -f -r conftest.dir
4244 if mkdir conftest.dir; then
4245   cd conftest.dir
4246   cat >Imakefile <<'_ACEOF'
4247 incroot:
4248         @echo incroot='${INCROOT}'
4249 usrlibdir:
4250         @echo usrlibdir='${USRLIBDIR}'
4251 libdir:
4252         @echo libdir='${LIBDIR}'
4253 _ACEOF
4254   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4255     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4256     for ac_var in incroot usrlibdir libdir; do
4257       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4258     done
4259     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4260     for ac_extension in a so sl dylib la dll; do
4261       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4262          test -f "$ac_im_libdir/libX11.$ac_extension"; then
4263         ac_im_usrlibdir=$ac_im_libdir; break
4264       fi
4265     done
4266     # Screen out bogus values from the imake configuration.  They are
4267     # bogus both because they are the default anyway, and because
4268     # using them would break gcc on systems where it needs fixed includes.
4269     case $ac_im_incroot in
4270         /usr/include) ac_x_includes= ;;
4271         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4272     esac
4273     case $ac_im_usrlibdir in
4274         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4275         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4276     esac
4277   fi
4278   cd ..
4279   rm -f -r conftest.dir
4280 fi
4281
4282 # Standard set of common directories for X headers.
4283 # Check X11 before X11Rn because it is often a symlink to the current release.
4284 ac_x_header_dirs='
4285 /usr/X11/include
4286 /usr/X11R7/include
4287 /usr/X11R6/include
4288 /usr/X11R5/include
4289 /usr/X11R4/include
4290
4291 /usr/include/X11
4292 /usr/include/X11R7
4293 /usr/include/X11R6
4294 /usr/include/X11R5
4295 /usr/include/X11R4
4296
4297 /usr/local/X11/include
4298 /usr/local/X11R7/include
4299 /usr/local/X11R6/include
4300 /usr/local/X11R5/include
4301 /usr/local/X11R4/include
4302
4303 /usr/local/include/X11
4304 /usr/local/include/X11R7
4305 /usr/local/include/X11R6
4306 /usr/local/include/X11R5
4307 /usr/local/include/X11R4
4308
4309 /usr/X386/include
4310 /usr/x386/include
4311 /usr/XFree86/include/X11
4312
4313 /usr/include
4314 /usr/local/include
4315 /usr/unsupported/include
4316 /usr/athena/include
4317 /usr/local/x11r5/include
4318 /usr/lpp/Xamples/include
4319
4320 /usr/openwin/include
4321 /usr/openwin/share/include'
4322
4323 if test "$ac_x_includes" = no; then
4324   # Guess where to find include files, by looking for Xlib.h.
4325   # First, try using that file with no special directory specified.
4326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h.  */
4328 #include <X11/Xlib.h>
4329 _ACEOF
4330 if ac_fn_c_try_cpp "$LINENO"; then :
4331   # We can compile using X headers with no special include directory.
4332 ac_x_includes=
4333 else
4334   for ac_dir in $ac_x_header_dirs; do
4335   if test -r "$ac_dir/X11/Xlib.h"; then
4336     ac_x_includes=$ac_dir
4337     break
4338   fi
4339 done
4340 fi
4341 rm -f conftest.err conftest.i conftest.$ac_ext
4342 fi # $ac_x_includes = no
4343
4344 if test "$ac_x_libraries" = no; then
4345   # Check for the libraries.
4346   # See if we find them without any special options.
4347   # Don't add to $LIBS permanently.
4348   ac_save_LIBS=$LIBS
4349   LIBS="-lX11 $LIBS"
4350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h.  */
4352 #include <X11/Xlib.h>
4353 int
4354 main ()
4355 {
4356 XrmInitialize ()
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_c_try_link "$LINENO"; then :
4362   LIBS=$ac_save_LIBS
4363 # We can link X programs with no special library path.
4364 ac_x_libraries=
4365 else
4366   LIBS=$ac_save_LIBS
4367 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4368 do
4369   # Don't even attempt the hair of trying to link an X program!
4370   for ac_extension in a so sl dylib la dll; do
4371     if test -r "$ac_dir/libX11.$ac_extension"; then
4372       ac_x_libraries=$ac_dir
4373       break 2
4374     fi
4375   done
4376 done
4377 fi
4378 rm -f core conftest.err conftest.$ac_objext \
4379     conftest$ac_exeext conftest.$ac_ext
4380 fi # $ac_x_libraries = no
4381
4382 case $ac_x_includes,$ac_x_libraries in #(
4383   no,* | *,no | *\'*)
4384     # Didn't find X, or a directory has "'" in its name.
4385     ac_cv_have_x="have_x=no";; #(
4386   *)
4387     # Record where we found X for the cache.
4388     ac_cv_have_x="have_x=yes\
4389         ac_x_includes='$ac_x_includes'\
4390         ac_x_libraries='$ac_x_libraries'"
4391 esac
4392 fi
4393 ;; #(
4394     *) have_x=yes;;
4395   esac
4396   eval "$ac_cv_have_x"
4397 fi # $with_x != no
4398
4399 if test "$have_x" != yes; then
4400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4401 $as_echo "$have_x" >&6; }
4402   no_x=yes
4403 else
4404   # If each of the values was on the command line, it overrides each guess.
4405   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4406   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4407   # Update the cache value to reflect the command line values.
4408   ac_cv_have_x="have_x=yes\
4409         ac_x_includes='$x_includes'\
4410         ac_x_libraries='$x_libraries'"
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4412 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4413 fi
4414
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4416 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4417 if ${ac_cv_path_GREP+:} false; then :
4418   $as_echo_n "(cached) " >&6
4419 else
4420   if test -z "$GREP"; then
4421   ac_path_GREP_found=false
4422   # Loop through the user's path and test for each of PROGNAME-LIST
4423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4425 do
4426   IFS=$as_save_IFS
4427   test -z "$as_dir" && as_dir=.
4428     for ac_prog in grep ggrep; do
4429     for ac_exec_ext in '' $ac_executable_extensions; do
4430       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4431       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4432 # Check for GNU ac_path_GREP and select it if it is found.
4433   # Check for GNU $ac_path_GREP
4434 case `"$ac_path_GREP" --version 2>&1` in
4435 *GNU*)
4436   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4437 *)
4438   ac_count=0
4439   $as_echo_n 0123456789 >"conftest.in"
4440   while :
4441   do
4442     cat "conftest.in" "conftest.in" >"conftest.tmp"
4443     mv "conftest.tmp" "conftest.in"
4444     cp "conftest.in" "conftest.nl"
4445     $as_echo 'GREP' >> "conftest.nl"
4446     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4447     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4448     as_fn_arith $ac_count + 1 && ac_count=$as_val
4449     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4450       # Best one so far, save it but keep looking for a better one
4451       ac_cv_path_GREP="$ac_path_GREP"
4452       ac_path_GREP_max=$ac_count
4453     fi
4454     # 10*(2^10) chars as input seems more than enough
4455     test $ac_count -gt 10 && break
4456   done
4457   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4458 esac
4459
4460       $ac_path_GREP_found && break 3
4461     done
4462   done
4463   done
4464 IFS=$as_save_IFS
4465   if test -z "$ac_cv_path_GREP"; then
4466     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4467   fi
4468 else
4469   ac_cv_path_GREP=$GREP
4470 fi
4471
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4474 $as_echo "$ac_cv_path_GREP" >&6; }
4475  GREP="$ac_cv_path_GREP"
4476
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4479 $as_echo_n "checking for egrep... " >&6; }
4480 if ${ac_cv_path_EGREP+:} false; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4484    then ac_cv_path_EGREP="$GREP -E"
4485    else
4486      if test -z "$EGREP"; then
4487   ac_path_EGREP_found=false
4488   # Loop through the user's path and test for each of PROGNAME-LIST
4489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4491 do
4492   IFS=$as_save_IFS
4493   test -z "$as_dir" && as_dir=.
4494     for ac_prog in egrep; do
4495     for ac_exec_ext in '' $ac_executable_extensions; do
4496       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4497       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4498 # Check for GNU ac_path_EGREP and select it if it is found.
4499   # Check for GNU $ac_path_EGREP
4500 case `"$ac_path_EGREP" --version 2>&1` in
4501 *GNU*)
4502   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4503 *)
4504   ac_count=0
4505   $as_echo_n 0123456789 >"conftest.in"
4506   while :
4507   do
4508     cat "conftest.in" "conftest.in" >"conftest.tmp"
4509     mv "conftest.tmp" "conftest.in"
4510     cp "conftest.in" "conftest.nl"
4511     $as_echo 'EGREP' >> "conftest.nl"
4512     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4513     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4514     as_fn_arith $ac_count + 1 && ac_count=$as_val
4515     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4516       # Best one so far, save it but keep looking for a better one
4517       ac_cv_path_EGREP="$ac_path_EGREP"
4518       ac_path_EGREP_max=$ac_count
4519     fi
4520     # 10*(2^10) chars as input seems more than enough
4521     test $ac_count -gt 10 && break
4522   done
4523   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4524 esac
4525
4526       $ac_path_EGREP_found && break 3
4527     done
4528   done
4529   done
4530 IFS=$as_save_IFS
4531   if test -z "$ac_cv_path_EGREP"; then
4532     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4533   fi
4534 else
4535   ac_cv_path_EGREP=$EGREP
4536 fi
4537
4538    fi
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4541 $as_echo "$ac_cv_path_EGREP" >&6; }
4542  EGREP="$ac_cv_path_EGREP"
4543
4544
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4546 $as_echo_n "checking for ANSI C header files... " >&6; }
4547 if ${ac_cv_header_stdc+:} false; then :
4548   $as_echo_n "(cached) " >&6
4549 else
4550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h.  */
4552 #include <stdlib.h>
4553 #include <stdarg.h>
4554 #include <string.h>
4555 #include <float.h>
4556
4557 int
4558 main ()
4559 {
4560
4561   ;
4562   return 0;
4563 }
4564 _ACEOF
4565 if ac_fn_c_try_compile "$LINENO"; then :
4566   ac_cv_header_stdc=yes
4567 else
4568   ac_cv_header_stdc=no
4569 fi
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571
4572 if test $ac_cv_header_stdc = yes; then
4573   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h.  */
4576 #include <string.h>
4577
4578 _ACEOF
4579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4580   $EGREP "memchr" >/dev/null 2>&1; then :
4581
4582 else
4583   ac_cv_header_stdc=no
4584 fi
4585 rm -f conftest*
4586
4587 fi
4588
4589 if test $ac_cv_header_stdc = yes; then
4590   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h.  */
4593 #include <stdlib.h>
4594
4595 _ACEOF
4596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4597   $EGREP "free" >/dev/null 2>&1; then :
4598
4599 else
4600   ac_cv_header_stdc=no
4601 fi
4602 rm -f conftest*
4603
4604 fi
4605
4606 if test $ac_cv_header_stdc = yes; then
4607   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4608   if test "$cross_compiling" = yes; then :
4609   :
4610 else
4611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h.  */
4613 #include <ctype.h>
4614 #include <stdlib.h>
4615 #if ((' ' & 0x0FF) == 0x020)
4616 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4617 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4618 #else
4619 # define ISLOWER(c) \
4620                    (('a' <= (c) && (c) <= 'i') \
4621                      || ('j' <= (c) && (c) <= 'r') \
4622                      || ('s' <= (c) && (c) <= 'z'))
4623 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4624 #endif
4625
4626 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4627 int
4628 main ()
4629 {
4630   int i;
4631   for (i = 0; i < 256; i++)
4632     if (XOR (islower (i), ISLOWER (i))
4633         || toupper (i) != TOUPPER (i))
4634       return 2;
4635   return 0;
4636 }
4637 _ACEOF
4638 if ac_fn_c_try_run "$LINENO"; then :
4639
4640 else
4641   ac_cv_header_stdc=no
4642 fi
4643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4644   conftest.$ac_objext conftest.beam conftest.$ac_ext
4645 fi
4646
4647 fi
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4650 $as_echo "$ac_cv_header_stdc" >&6; }
4651 if test $ac_cv_header_stdc = yes; then
4652
4653 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4654
4655 fi
4656
4657 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4658 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4659                   inttypes.h stdint.h unistd.h
4660 do :
4661   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4662 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4663 "
4664 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4665   cat >>confdefs.h <<_ACEOF
4666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4667 _ACEOF
4668
4669 fi
4670
4671 done
4672
4673
4674 for ac_header in stdbool.h
4675 do :
4676   ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
4677 if test "x$ac_cv_header_stdbool_h" = xyes; then :
4678   cat >>confdefs.h <<_ACEOF
4679 #define HAVE_STDBOOL_H 1
4680 _ACEOF
4681
4682 fi
4683
4684 done
4685
4686
4687 # Checks for typedefs, structures, and compiler characteristics.
4688 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4689 if test "x$ac_cv_type_size_t" = xyes; then :
4690
4691 else
4692
4693 cat >>confdefs.h <<_ACEOF
4694 #define size_t unsigned int
4695 _ACEOF
4696
4697 fi
4698
4699 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4700 if test "x$ac_cv_type_ssize_t" = xyes; then :
4701
4702 else
4703
4704 cat >>confdefs.h <<_ACEOF
4705 #define ssize_t int
4706 _ACEOF
4707
4708 fi
4709
4710
4711 # Checks for library functions.
4712 for ac_header in stdlib.h
4713 do :
4714   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4715 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4716   cat >>confdefs.h <<_ACEOF
4717 #define HAVE_STDLIB_H 1
4718 _ACEOF
4719
4720 fi
4721
4722 done
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4725 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4726 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4727   $as_echo_n "(cached) " >&6
4728 else
4729   if test "$cross_compiling" = yes; then :
4730   ac_cv_func_malloc_0_nonnull=no
4731 else
4732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h.  */
4734 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4735 # include <stdlib.h>
4736 #else
4737 char *malloc ();
4738 #endif
4739
4740 int
4741 main ()
4742 {
4743 return ! malloc (0);
4744   ;
4745   return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_c_try_run "$LINENO"; then :
4749   ac_cv_func_malloc_0_nonnull=yes
4750 else
4751   ac_cv_func_malloc_0_nonnull=no
4752 fi
4753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4754   conftest.$ac_objext conftest.beam conftest.$ac_ext
4755 fi
4756
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4759 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4760 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4761
4762 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4763
4764 else
4765   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4766
4767    case " $LIBOBJS " in
4768   *" malloc.$ac_objext "* ) ;;
4769   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4770  ;;
4771 esac
4772
4773
4774 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4775
4776 fi
4777
4778
4779 for ac_header in stdlib.h
4780 do :
4781   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4782 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4783   cat >>confdefs.h <<_ACEOF
4784 #define HAVE_STDLIB_H 1
4785 _ACEOF
4786
4787 fi
4788
4789 done
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4792 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4793 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
4794   $as_echo_n "(cached) " >&6
4795 else
4796   if test "$cross_compiling" = yes; then :
4797   ac_cv_func_realloc_0_nonnull=no
4798 else
4799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h.  */
4801 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4802 # include <stdlib.h>
4803 #else
4804 char *realloc ();
4805 #endif
4806
4807 int
4808 main ()
4809 {
4810 return ! realloc (0, 0);
4811   ;
4812   return 0;
4813 }
4814 _ACEOF
4815 if ac_fn_c_try_run "$LINENO"; then :
4816   ac_cv_func_realloc_0_nonnull=yes
4817 else
4818   ac_cv_func_realloc_0_nonnull=no
4819 fi
4820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4821   conftest.$ac_objext conftest.beam conftest.$ac_ext
4822 fi
4823
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4826 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4827 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4828
4829 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4830
4831 else
4832   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4833
4834    case " $LIBOBJS " in
4835   *" realloc.$ac_objext "* ) ;;
4836   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4837  ;;
4838 esac
4839
4840
4841 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4842
4843 fi
4844
4845
4846 for ac_func in gettimeofday memmove socket strdup strtol
4847 do :
4848   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4849 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4850 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4851   cat >>confdefs.h <<_ACEOF
4852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4853 _ACEOF
4854
4855 fi
4856 done
4857
4858
4859
4860
4861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4862 $as_echo_n "checking whether NLS is requested... " >&6; }
4863     # Check whether --enable-nls was given.
4864 if test "${enable_nls+set}" = set; then :
4865   enableval=$enable_nls; USE_NLS=$enableval
4866 else
4867   USE_NLS=yes
4868 fi
4869
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4871 $as_echo "$USE_NLS" >&6; }
4872
4873
4874
4875
4876       GETTEXT_MACRO_VERSION=0.18
4877
4878
4879
4880
4881 # Prepare PATH_SEPARATOR.
4882 # The user is always right.
4883 if test "${PATH_SEPARATOR+set}" != set; then
4884   echo "#! /bin/sh" >conf$$.sh
4885   echo  "exit 0"   >>conf$$.sh
4886   chmod +x conf$$.sh
4887   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4888     PATH_SEPARATOR=';'
4889   else
4890     PATH_SEPARATOR=:
4891   fi
4892   rm -f conf$$.sh
4893 fi
4894
4895 # Find out how to test for executable files. Don't use a zero-byte file,
4896 # as systems may use methods other than mode bits to determine executability.
4897 cat >conf$$.file <<_ASEOF
4898 #! /bin/sh
4899 exit 0
4900 _ASEOF
4901 chmod +x conf$$.file
4902 if test -x conf$$.file >/dev/null 2>&1; then
4903   ac_executable_p="test -x"
4904 else
4905   ac_executable_p="test -f"
4906 fi
4907 rm -f conf$$.file
4908
4909 # Extract the first word of "msgfmt", so it can be a program name with args.
4910 set dummy msgfmt; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if ${ac_cv_path_MSGFMT+:} false; then :
4914   $as_echo_n "(cached) " >&6
4915 else
4916   case "$MSGFMT" in
4917   [\\/]* | ?:[\\/]*)
4918     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4919     ;;
4920   *)
4921     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4922     for ac_dir in $PATH; do
4923       IFS="$ac_save_IFS"
4924       test -z "$ac_dir" && ac_dir=.
4925       for ac_exec_ext in '' $ac_executable_extensions; do
4926         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4927           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4928           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4929      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4930             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4931             break 2
4932           fi
4933         fi
4934       done
4935     done
4936     IFS="$ac_save_IFS"
4937   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4938     ;;
4939 esac
4940 fi
4941 MSGFMT="$ac_cv_path_MSGFMT"
4942 if test "$MSGFMT" != ":"; then
4943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4944 $as_echo "$MSGFMT" >&6; }
4945 else
4946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949
4950   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4951 set dummy gmsgfmt; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_path_GMSGFMT+:} false; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   case $GMSGFMT in
4958   [\\/]* | ?:[\\/]*)
4959   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4960   ;;
4961   *)
4962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965   IFS=$as_save_IFS
4966   test -z "$as_dir" && as_dir=.
4967     for ac_exec_ext in '' $ac_executable_extensions; do
4968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971     break 2
4972   fi
4973 done
4974   done
4975 IFS=$as_save_IFS
4976
4977   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4978   ;;
4979 esac
4980 fi
4981 GMSGFMT=$ac_cv_path_GMSGFMT
4982 if test -n "$GMSGFMT"; then
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4984 $as_echo "$GMSGFMT" >&6; }
4985 else
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990
4991
4992     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4993     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4994     *) MSGFMT_015=$MSGFMT ;;
4995   esac
4996
4997   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4998     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4999     *) GMSGFMT_015=$GMSGFMT ;;
5000   esac
5001
5002
5003
5004 # Prepare PATH_SEPARATOR.
5005 # The user is always right.
5006 if test "${PATH_SEPARATOR+set}" != set; then
5007   echo "#! /bin/sh" >conf$$.sh
5008   echo  "exit 0"   >>conf$$.sh
5009   chmod +x conf$$.sh
5010   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5011     PATH_SEPARATOR=';'
5012   else
5013     PATH_SEPARATOR=:
5014   fi
5015   rm -f conf$$.sh
5016 fi
5017
5018 # Find out how to test for executable files. Don't use a zero-byte file,
5019 # as systems may use methods other than mode bits to determine executability.
5020 cat >conf$$.file <<_ASEOF
5021 #! /bin/sh
5022 exit 0
5023 _ASEOF
5024 chmod +x conf$$.file
5025 if test -x conf$$.file >/dev/null 2>&1; then
5026   ac_executable_p="test -x"
5027 else
5028   ac_executable_p="test -f"
5029 fi
5030 rm -f conf$$.file
5031
5032 # Extract the first word of "xgettext", so it can be a program name with args.
5033 set dummy xgettext; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if ${ac_cv_path_XGETTEXT+:} false; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039   case "$XGETTEXT" in
5040   [\\/]* | ?:[\\/]*)
5041     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5042     ;;
5043   *)
5044     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5045     for ac_dir in $PATH; do
5046       IFS="$ac_save_IFS"
5047       test -z "$ac_dir" && ac_dir=.
5048       for ac_exec_ext in '' $ac_executable_extensions; do
5049         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5050           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5051           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5052      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5053             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5054             break 2
5055           fi
5056         fi
5057       done
5058     done
5059     IFS="$ac_save_IFS"
5060   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5061     ;;
5062 esac
5063 fi
5064 XGETTEXT="$ac_cv_path_XGETTEXT"
5065 if test "$XGETTEXT" != ":"; then
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5067 $as_echo "$XGETTEXT" >&6; }
5068 else
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072
5073     rm -f messages.po
5074
5075     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5076     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5077     *) XGETTEXT_015=$XGETTEXT ;;
5078   esac
5079
5080
5081
5082 # Prepare PATH_SEPARATOR.
5083 # The user is always right.
5084 if test "${PATH_SEPARATOR+set}" != set; then
5085   echo "#! /bin/sh" >conf$$.sh
5086   echo  "exit 0"   >>conf$$.sh
5087   chmod +x conf$$.sh
5088   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5089     PATH_SEPARATOR=';'
5090   else
5091     PATH_SEPARATOR=:
5092   fi
5093   rm -f conf$$.sh
5094 fi
5095
5096 # Find out how to test for executable files. Don't use a zero-byte file,
5097 # as systems may use methods other than mode bits to determine executability.
5098 cat >conf$$.file <<_ASEOF
5099 #! /bin/sh
5100 exit 0
5101 _ASEOF
5102 chmod +x conf$$.file
5103 if test -x conf$$.file >/dev/null 2>&1; then
5104   ac_executable_p="test -x"
5105 else
5106   ac_executable_p="test -f"
5107 fi
5108 rm -f conf$$.file
5109
5110 # Extract the first word of "msgmerge", so it can be a program name with args.
5111 set dummy msgmerge; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_path_MSGMERGE+:} false; then :
5115   $as_echo_n "(cached) " >&6
5116 else
5117   case "$MSGMERGE" in
5118   [\\/]* | ?:[\\/]*)
5119     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5120     ;;
5121   *)
5122     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5123     for ac_dir in $PATH; do
5124       IFS="$ac_save_IFS"
5125       test -z "$ac_dir" && ac_dir=.
5126       for ac_exec_ext in '' $ac_executable_extensions; do
5127         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5128           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5129           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5130             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5131             break 2
5132           fi
5133         fi
5134       done
5135     done
5136     IFS="$ac_save_IFS"
5137   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5138     ;;
5139 esac
5140 fi
5141 MSGMERGE="$ac_cv_path_MSGMERGE"
5142 if test "$MSGMERGE" != ":"; then
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5144 $as_echo "$MSGMERGE" >&6; }
5145 else
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150
5151         test -n "$localedir" || localedir='${datadir}/locale'
5152
5153
5154     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5155
5156
5157   ac_config_commands="$ac_config_commands po-directories"
5158
5159
5160
5161       if test "X$prefix" = "XNONE"; then
5162     acl_final_prefix="$ac_default_prefix"
5163   else
5164     acl_final_prefix="$prefix"
5165   fi
5166   if test "X$exec_prefix" = "XNONE"; then
5167     acl_final_exec_prefix='${prefix}'
5168   else
5169     acl_final_exec_prefix="$exec_prefix"
5170   fi
5171   acl_save_prefix="$prefix"
5172   prefix="$acl_final_prefix"
5173   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5174   prefix="$acl_save_prefix"
5175
5176 # Make sure we can run config.sub.
5177 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5178   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5181 $as_echo_n "checking build system type... " >&6; }
5182 if ${ac_cv_build+:} false; then :
5183   $as_echo_n "(cached) " >&6
5184 else
5185   ac_build_alias=$build_alias
5186 test "x$ac_build_alias" = x &&
5187   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5188 test "x$ac_build_alias" = x &&
5189   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5190 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5191   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5192
5193 fi
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5195 $as_echo "$ac_cv_build" >&6; }
5196 case $ac_cv_build in
5197 *-*-*) ;;
5198 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5199 esac
5200 build=$ac_cv_build
5201 ac_save_IFS=$IFS; IFS='-'
5202 set x $ac_cv_build
5203 shift
5204 build_cpu=$1
5205 build_vendor=$2
5206 shift; shift
5207 # Remember, the first character of IFS is used to create $*,
5208 # except with old shells:
5209 build_os=$*
5210 IFS=$ac_save_IFS
5211 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5212
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5215 $as_echo_n "checking host system type... " >&6; }
5216 if ${ac_cv_host+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   if test "x$host_alias" = x; then
5220   ac_cv_host=$ac_cv_build
5221 else
5222   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5223     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5224 fi
5225
5226 fi
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5228 $as_echo "$ac_cv_host" >&6; }
5229 case $ac_cv_host in
5230 *-*-*) ;;
5231 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5232 esac
5233 host=$ac_cv_host
5234 ac_save_IFS=$IFS; IFS='-'
5235 set x $ac_cv_host
5236 shift
5237 host_cpu=$1
5238 host_vendor=$2
5239 shift; shift
5240 # Remember, the first character of IFS is used to create $*,
5241 # except with old shells:
5242 host_os=$*
5243 IFS=$ac_save_IFS
5244 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5245
5246
5247
5248 # Check whether --with-gnu-ld was given.
5249 if test "${with_gnu_ld+set}" = set; then :
5250   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5251 else
5252   with_gnu_ld=no
5253 fi
5254
5255 # Prepare PATH_SEPARATOR.
5256 # The user is always right.
5257 if test "${PATH_SEPARATOR+set}" != set; then
5258   echo "#! /bin/sh" >conf$$.sh
5259   echo  "exit 0"   >>conf$$.sh
5260   chmod +x conf$$.sh
5261   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5262     PATH_SEPARATOR=';'
5263   else
5264     PATH_SEPARATOR=:
5265   fi
5266   rm -f conf$$.sh
5267 fi
5268 ac_prog=ld
5269 if test "$GCC" = yes; then
5270   # Check if gcc -print-prog-name=ld gives a path.
5271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5272 $as_echo_n "checking for ld used by GCC... " >&6; }
5273   case $host in
5274   *-*-mingw*)
5275     # gcc leaves a trailing carriage return which upsets mingw
5276     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5277   *)
5278     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5279   esac
5280   case $ac_prog in
5281     # Accept absolute paths.
5282     [\\/]* | [A-Za-z]:[\\/]*)
5283       re_direlt='/[^/][^/]*/\.\./'
5284       # Canonicalize the path of ld
5285       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5286       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5287         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5288       done
5289       test -z "$LD" && LD="$ac_prog"
5290       ;;
5291   "")
5292     # If it fails, then pretend we aren't using GCC.
5293     ac_prog=ld
5294     ;;
5295   *)
5296     # If it is relative, then search for the first ld in PATH.
5297     with_gnu_ld=unknown
5298     ;;
5299   esac
5300 elif test "$with_gnu_ld" = yes; then
5301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5302 $as_echo_n "checking for GNU ld... " >&6; }
5303 else
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5305 $as_echo_n "checking for non-GNU ld... " >&6; }
5306 fi
5307 if ${acl_cv_path_LD+:} false; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   if test -z "$LD"; then
5311   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5312   for ac_dir in $PATH; do
5313     test -z "$ac_dir" && ac_dir=.
5314     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5315       acl_cv_path_LD="$ac_dir/$ac_prog"
5316       # Check to see if the program is GNU ld.  I'd rather use --version,
5317       # but apparently some GNU ld's only accept -v.
5318       # Break only if it was the GNU/non-GNU ld that we prefer.
5319       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5320       *GNU* | *'with BFD'*)
5321         test "$with_gnu_ld" != no && break ;;
5322       *)
5323         test "$with_gnu_ld" != yes && break ;;
5324       esac
5325     fi
5326   done
5327   IFS="$ac_save_ifs"
5328 else
5329   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5330 fi
5331 fi
5332
5333 LD="$acl_cv_path_LD"
5334 if test -n "$LD"; then
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5336 $as_echo "$LD" >&6; }
5337 else
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5343 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5344 if ${acl_cv_prog_gnu_ld+:} false; then :
5345   $as_echo_n "(cached) " >&6
5346 else
5347   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5348 case `$LD -v 2>&1 </dev/null` in
5349 *GNU* | *'with BFD'*)
5350   acl_cv_prog_gnu_ld=yes ;;
5351 *)
5352   acl_cv_prog_gnu_ld=no ;;
5353 esac
5354 fi
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5356 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5357 with_gnu_ld=$acl_cv_prog_gnu_ld
5358
5359
5360
5361
5362                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5363 $as_echo_n "checking for shared library run path origin... " >&6; }
5364 if ${acl_cv_rpath+:} false; then :
5365   $as_echo_n "(cached) " >&6
5366 else
5367
5368     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5369     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5370     . ./conftest.sh
5371     rm -f ./conftest.sh
5372     acl_cv_rpath=done
5373
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5376 $as_echo "$acl_cv_rpath" >&6; }
5377   wl="$acl_cv_wl"
5378   acl_libext="$acl_cv_libext"
5379   acl_shlibext="$acl_cv_shlibext"
5380   acl_libname_spec="$acl_cv_libname_spec"
5381   acl_library_names_spec="$acl_cv_library_names_spec"
5382   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5383   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5384   acl_hardcode_direct="$acl_cv_hardcode_direct"
5385   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5386     # Check whether --enable-rpath was given.
5387 if test "${enable_rpath+set}" = set; then :
5388   enableval=$enable_rpath; :
5389 else
5390   enable_rpath=yes
5391 fi
5392
5393
5394
5395
5396   acl_libdirstem=lib
5397   acl_libdirstem2=
5398   case "$host_os" in
5399     solaris*)
5400                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5401 $as_echo_n "checking for 64-bit host... " >&6; }
5402 if ${gl_cv_solaris_64bit+:} false; then :
5403   $as_echo_n "(cached) " >&6
5404 else
5405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h.  */
5407
5408 #ifdef _LP64
5409 sixtyfour bits
5410 #endif
5411
5412 _ACEOF
5413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5414   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5415   gl_cv_solaris_64bit=yes
5416 else
5417   gl_cv_solaris_64bit=no
5418 fi
5419 rm -f conftest*
5420
5421
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5424 $as_echo "$gl_cv_solaris_64bit" >&6; }
5425       if test $gl_cv_solaris_64bit = yes; then
5426         acl_libdirstem=lib/64
5427         case "$host_cpu" in
5428           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
5429           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5430         esac
5431       fi
5432       ;;
5433     *)
5434       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5435       if test -n "$searchpath"; then
5436         acl_save_IFS="${IFS=    }"; IFS=":"
5437         for searchdir in $searchpath; do
5438           if test -d "$searchdir"; then
5439             case "$searchdir" in
5440               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5441               */../ | */.. )
5442                 # Better ignore directories of this form. They are misleading.
5443                 ;;
5444               *) searchdir=`cd "$searchdir" && pwd`
5445                  case "$searchdir" in
5446                    */lib64 ) acl_libdirstem=lib64 ;;
5447                  esac ;;
5448             esac
5449           fi
5450         done
5451         IFS="$acl_save_IFS"
5452       fi
5453       ;;
5454   esac
5455   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468     use_additional=yes
5469
5470   acl_save_prefix="$prefix"
5471   prefix="$acl_final_prefix"
5472   acl_save_exec_prefix="$exec_prefix"
5473   exec_prefix="$acl_final_exec_prefix"
5474
5475     eval additional_includedir=\"$includedir\"
5476     eval additional_libdir=\"$libdir\"
5477
5478   exec_prefix="$acl_save_exec_prefix"
5479   prefix="$acl_save_prefix"
5480
5481
5482 # Check whether --with-libiconv-prefix was given.
5483 if test "${with_libiconv_prefix+set}" = set; then :
5484   withval=$with_libiconv_prefix;
5485     if test "X$withval" = "Xno"; then
5486       use_additional=no
5487     else
5488       if test "X$withval" = "X"; then
5489
5490   acl_save_prefix="$prefix"
5491   prefix="$acl_final_prefix"
5492   acl_save_exec_prefix="$exec_prefix"
5493   exec_prefix="$acl_final_exec_prefix"
5494
5495           eval additional_includedir=\"$includedir\"
5496           eval additional_libdir=\"$libdir\"
5497
5498   exec_prefix="$acl_save_exec_prefix"
5499   prefix="$acl_save_prefix"
5500
5501       else
5502         additional_includedir="$withval/include"
5503         additional_libdir="$withval/$acl_libdirstem"
5504         if test "$acl_libdirstem2" != "$acl_libdirstem" \
5505            && ! test -d "$withval/$acl_libdirstem"; then
5506           additional_libdir="$withval/$acl_libdirstem2"
5507         fi
5508       fi
5509     fi
5510
5511 fi
5512
5513       LIBICONV=
5514   LTLIBICONV=
5515   INCICONV=
5516   LIBICONV_PREFIX=
5517       HAVE_LIBICONV=
5518   rpathdirs=
5519   ltrpathdirs=
5520   names_already_handled=
5521   names_next_round='iconv '
5522   while test -n "$names_next_round"; do
5523     names_this_round="$names_next_round"
5524     names_next_round=
5525     for name in $names_this_round; do
5526       already_handled=
5527       for n in $names_already_handled; do
5528         if test "$n" = "$name"; then
5529           already_handled=yes
5530           break
5531         fi
5532       done
5533       if test -z "$already_handled"; then
5534         names_already_handled="$names_already_handled $name"
5535                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5536         eval value=\"\$HAVE_LIB$uppername\"
5537         if test -n "$value"; then
5538           if test "$value" = yes; then
5539             eval value=\"\$LIB$uppername\"
5540             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5541             eval value=\"\$LTLIB$uppername\"
5542             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5543           else
5544                                     :
5545           fi
5546         else
5547                               found_dir=
5548           found_la=
5549           found_so=
5550           found_a=
5551           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5552           if test -n "$acl_shlibext"; then
5553             shrext=".$acl_shlibext"             # typically: shrext=.so
5554           else
5555             shrext=
5556           fi
5557           if test $use_additional = yes; then
5558             dir="$additional_libdir"
5559                                     if test -n "$acl_shlibext"; then
5560               if test -f "$dir/$libname$shrext"; then
5561                 found_dir="$dir"
5562                 found_so="$dir/$libname$shrext"
5563               else
5564                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5565                   ver=`(cd "$dir" && \
5566                         for f in "$libname$shrext".*; do echo "$f"; done \
5567                         | sed -e "s,^$libname$shrext\\\\.,," \
5568                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5569                         | sed 1q ) 2>/dev/null`
5570                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5571                     found_dir="$dir"
5572                     found_so="$dir/$libname$shrext.$ver"
5573                   fi
5574                 else
5575                   eval library_names=\"$acl_library_names_spec\"
5576                   for f in $library_names; do
5577                     if test -f "$dir/$f"; then
5578                       found_dir="$dir"
5579                       found_so="$dir/$f"
5580                       break
5581                     fi
5582                   done
5583                 fi
5584               fi
5585             fi
5586                         if test "X$found_dir" = "X"; then
5587               if test -f "$dir/$libname.$acl_libext"; then
5588                 found_dir="$dir"
5589                 found_a="$dir/$libname.$acl_libext"
5590               fi
5591             fi
5592             if test "X$found_dir" != "X"; then
5593               if test -f "$dir/$libname.la"; then
5594                 found_la="$dir/$libname.la"
5595               fi
5596             fi
5597           fi
5598           if test "X$found_dir" = "X"; then
5599             for x in $LDFLAGS $LTLIBICONV; do
5600
5601   acl_save_prefix="$prefix"
5602   prefix="$acl_final_prefix"
5603   acl_save_exec_prefix="$exec_prefix"
5604   exec_prefix="$acl_final_exec_prefix"
5605   eval x=\"$x\"
5606   exec_prefix="$acl_save_exec_prefix"
5607   prefix="$acl_save_prefix"
5608
5609               case "$x" in
5610                 -L*)
5611                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5612                                     if test -n "$acl_shlibext"; then
5613                     if test -f "$dir/$libname$shrext"; then
5614                       found_dir="$dir"
5615                       found_so="$dir/$libname$shrext"
5616                     else
5617                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5618                         ver=`(cd "$dir" && \
5619                               for f in "$libname$shrext".*; do echo "$f"; done \
5620                               | sed -e "s,^$libname$shrext\\\\.,," \
5621                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5622                               | sed 1q ) 2>/dev/null`
5623                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5624                           found_dir="$dir"
5625                           found_so="$dir/$libname$shrext.$ver"
5626                         fi
5627                       else
5628                         eval library_names=\"$acl_library_names_spec\"
5629                         for f in $library_names; do
5630                           if test -f "$dir/$f"; then
5631                             found_dir="$dir"
5632                             found_so="$dir/$f"
5633                             break
5634                           fi
5635                         done
5636                       fi
5637                     fi
5638                   fi
5639                                     if test "X$found_dir" = "X"; then
5640                     if test -f "$dir/$libname.$acl_libext"; then
5641                       found_dir="$dir"
5642                       found_a="$dir/$libname.$acl_libext"
5643                     fi
5644                   fi
5645                   if test "X$found_dir" != "X"; then
5646                     if test -f "$dir/$libname.la"; then
5647                       found_la="$dir/$libname.la"
5648                     fi
5649                   fi
5650                   ;;
5651               esac
5652               if test "X$found_dir" != "X"; then
5653                 break
5654               fi
5655             done
5656           fi
5657           if test "X$found_dir" != "X"; then
5658                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5659             if test "X$found_so" != "X"; then
5660                                                         if test "$enable_rpath" = no \
5661                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5662                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5663                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5664               else
5665                                                                                 haveit=
5666                 for x in $ltrpathdirs; do
5667                   if test "X$x" = "X$found_dir"; then
5668                     haveit=yes
5669                     break
5670                   fi
5671                 done
5672                 if test -z "$haveit"; then
5673                   ltrpathdirs="$ltrpathdirs $found_dir"
5674                 fi
5675                                 if test "$acl_hardcode_direct" = yes; then
5676                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5677                 else
5678                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5679                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5680                                                             haveit=
5681                     for x in $rpathdirs; do
5682                       if test "X$x" = "X$found_dir"; then
5683                         haveit=yes
5684                         break
5685                       fi
5686                     done
5687                     if test -z "$haveit"; then
5688                       rpathdirs="$rpathdirs $found_dir"
5689                     fi
5690                   else
5691                                                                                 haveit=
5692                     for x in $LDFLAGS $LIBICONV; do
5693
5694   acl_save_prefix="$prefix"
5695   prefix="$acl_final_prefix"
5696   acl_save_exec_prefix="$exec_prefix"
5697   exec_prefix="$acl_final_exec_prefix"
5698   eval x=\"$x\"
5699   exec_prefix="$acl_save_exec_prefix"
5700   prefix="$acl_save_prefix"
5701
5702                       if test "X$x" = "X-L$found_dir"; then
5703                         haveit=yes
5704                         break
5705                       fi
5706                     done
5707                     if test -z "$haveit"; then
5708                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5709                     fi
5710                     if test "$acl_hardcode_minus_L" != no; then
5711                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5712                     else
5713                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5714                     fi
5715                   fi
5716                 fi
5717               fi
5718             else
5719               if test "X$found_a" != "X"; then
5720                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5721               else
5722                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5723               fi
5724             fi
5725                         additional_includedir=
5726             case "$found_dir" in
5727               */$acl_libdirstem | */$acl_libdirstem/)
5728                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5729                 if test "$name" = 'iconv'; then
5730                   LIBICONV_PREFIX="$basedir"
5731                 fi
5732                 additional_includedir="$basedir/include"
5733                 ;;
5734               */$acl_libdirstem2 | */$acl_libdirstem2/)
5735                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5736                 if test "$name" = 'iconv'; then
5737                   LIBICONV_PREFIX="$basedir"
5738                 fi
5739                 additional_includedir="$basedir/include"
5740                 ;;
5741             esac
5742             if test "X$additional_includedir" != "X"; then
5743                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5744                 haveit=
5745                 if test "X$additional_includedir" = "X/usr/local/include"; then
5746                   if test -n "$GCC"; then
5747                     case $host_os in
5748                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5749                     esac
5750                   fi
5751                 fi
5752                 if test -z "$haveit"; then
5753                   for x in $CPPFLAGS $INCICONV; do
5754
5755   acl_save_prefix="$prefix"
5756   prefix="$acl_final_prefix"
5757   acl_save_exec_prefix="$exec_prefix"
5758   exec_prefix="$acl_final_exec_prefix"
5759   eval x=\"$x\"
5760   exec_prefix="$acl_save_exec_prefix"
5761   prefix="$acl_save_prefix"
5762
5763                     if test "X$x" = "X-I$additional_includedir"; then
5764                       haveit=yes
5765                       break
5766                     fi
5767                   done
5768                   if test -z "$haveit"; then
5769                     if test -d "$additional_includedir"; then
5770                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5771                     fi
5772                   fi
5773                 fi
5774               fi
5775             fi
5776                         if test -n "$found_la"; then
5777                                                         save_libdir="$libdir"
5778               case "$found_la" in
5779                 */* | *\\*) . "$found_la" ;;
5780                 *) . "./$found_la" ;;
5781               esac
5782               libdir="$save_libdir"
5783                             for dep in $dependency_libs; do
5784                 case "$dep" in
5785                   -L*)
5786                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5787                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5788                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5789                       haveit=
5790                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5791                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5792                         if test -n "$GCC"; then
5793                           case $host_os in
5794                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5795                           esac
5796                         fi
5797                       fi
5798                       if test -z "$haveit"; then
5799                         haveit=
5800                         for x in $LDFLAGS $LIBICONV; do
5801
5802   acl_save_prefix="$prefix"
5803   prefix="$acl_final_prefix"
5804   acl_save_exec_prefix="$exec_prefix"
5805   exec_prefix="$acl_final_exec_prefix"
5806   eval x=\"$x\"
5807   exec_prefix="$acl_save_exec_prefix"
5808   prefix="$acl_save_prefix"
5809
5810                           if test "X$x" = "X-L$additional_libdir"; then
5811                             haveit=yes
5812                             break
5813                           fi
5814                         done
5815                         if test -z "$haveit"; then
5816                           if test -d "$additional_libdir"; then
5817                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5818                           fi
5819                         fi
5820                         haveit=
5821                         for x in $LDFLAGS $LTLIBICONV; do
5822
5823   acl_save_prefix="$prefix"
5824   prefix="$acl_final_prefix"
5825   acl_save_exec_prefix="$exec_prefix"
5826   exec_prefix="$acl_final_exec_prefix"
5827   eval x=\"$x\"
5828   exec_prefix="$acl_save_exec_prefix"
5829   prefix="$acl_save_prefix"
5830
5831                           if test "X$x" = "X-L$additional_libdir"; then
5832                             haveit=yes
5833                             break
5834                           fi
5835                         done
5836                         if test -z "$haveit"; then
5837                           if test -d "$additional_libdir"; then
5838                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5839                           fi
5840                         fi
5841                       fi
5842                     fi
5843                     ;;
5844                   -R*)
5845                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5846                     if test "$enable_rpath" != no; then
5847                                                                   haveit=
5848                       for x in $rpathdirs; do
5849                         if test "X$x" = "X$dir"; then
5850                           haveit=yes
5851                           break
5852                         fi
5853                       done
5854                       if test -z "$haveit"; then
5855                         rpathdirs="$rpathdirs $dir"
5856                       fi
5857                                                                   haveit=
5858                       for x in $ltrpathdirs; do
5859                         if test "X$x" = "X$dir"; then
5860                           haveit=yes
5861                           break
5862                         fi
5863                       done
5864                       if test -z "$haveit"; then
5865                         ltrpathdirs="$ltrpathdirs $dir"
5866                       fi
5867                     fi
5868                     ;;
5869                   -l*)
5870                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5871                     ;;
5872                   *.la)
5873                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5874                     ;;
5875                   *)
5876                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5877                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5878                     ;;
5879                 esac
5880               done
5881             fi
5882           else
5883                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5884             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5885           fi
5886         fi
5887       fi
5888     done
5889   done
5890   if test "X$rpathdirs" != "X"; then
5891     if test -n "$acl_hardcode_libdir_separator"; then
5892                         alldirs=
5893       for found_dir in $rpathdirs; do
5894         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5895       done
5896             acl_save_libdir="$libdir"
5897       libdir="$alldirs"
5898       eval flag=\"$acl_hardcode_libdir_flag_spec\"
5899       libdir="$acl_save_libdir"
5900       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5901     else
5902             for found_dir in $rpathdirs; do
5903         acl_save_libdir="$libdir"
5904         libdir="$found_dir"
5905         eval flag=\"$acl_hardcode_libdir_flag_spec\"
5906         libdir="$acl_save_libdir"
5907         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5908       done
5909     fi
5910   fi
5911   if test "X$ltrpathdirs" != "X"; then
5912             for found_dir in $ltrpathdirs; do
5913       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5914     done
5915   fi
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5948 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5949 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   gt_save_LIBS="$LIBS"
5953      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5954      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h.  */
5956 #include <CoreFoundation/CFPreferences.h>
5957 int
5958 main ()
5959 {
5960 CFPreferencesCopyAppValue(NULL, NULL)
5961   ;
5962   return 0;
5963 }
5964 _ACEOF
5965 if ac_fn_c_try_link "$LINENO"; then :
5966   gt_cv_func_CFPreferencesCopyAppValue=yes
5967 else
5968   gt_cv_func_CFPreferencesCopyAppValue=no
5969 fi
5970 rm -f core conftest.err conftest.$ac_objext \
5971     conftest$ac_exeext conftest.$ac_ext
5972      LIBS="$gt_save_LIBS"
5973 fi
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5975 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5976   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5977
5978 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5979
5980   fi
5981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5982 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5983 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5984   $as_echo_n "(cached) " >&6
5985 else
5986   gt_save_LIBS="$LIBS"
5987      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5988      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h.  */
5990 #include <CoreFoundation/CFLocale.h>
5991 int
5992 main ()
5993 {
5994 CFLocaleCopyCurrent();
5995   ;
5996   return 0;
5997 }
5998 _ACEOF
5999 if ac_fn_c_try_link "$LINENO"; then :
6000   gt_cv_func_CFLocaleCopyCurrent=yes
6001 else
6002   gt_cv_func_CFLocaleCopyCurrent=no
6003 fi
6004 rm -f core conftest.err conftest.$ac_objext \
6005     conftest$ac_exeext conftest.$ac_ext
6006      LIBS="$gt_save_LIBS"
6007 fi
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6009 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6010   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6011
6012 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6013
6014   fi
6015   INTL_MACOSX_LIBS=
6016   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6017     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6018   fi
6019
6020
6021
6022
6023
6024
6025   LIBINTL=
6026   LTLIBINTL=
6027   POSUB=
6028
6029     case " $gt_needs " in
6030     *" need-formatstring-macros "*) gt_api_version=3 ;;
6031     *" need-ngettext "*) gt_api_version=2 ;;
6032     *) gt_api_version=1 ;;
6033   esac
6034   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6035   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6036
6037     if test "$USE_NLS" = "yes"; then
6038     gt_use_preinstalled_gnugettext=no
6039
6040
6041         if test $gt_api_version -ge 3; then
6042           gt_revision_test_code='
6043 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6044 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6045 #endif
6046 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6047 '
6048         else
6049           gt_revision_test_code=
6050         fi
6051         if test $gt_api_version -ge 2; then
6052           gt_expression_test_code=' + * ngettext ("", "", 0)'
6053         else
6054           gt_expression_test_code=
6055         fi
6056
6057         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6058 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6059 if eval \${$gt_func_gnugettext_libc+:} false; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h.  */
6064 #include <libintl.h>
6065 $gt_revision_test_code
6066 extern int _nl_msg_cat_cntr;
6067 extern int *_nl_domain_bindings;
6068 int
6069 main ()
6070 {
6071 bindtextdomain ("", "");
6072 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_link "$LINENO"; then :
6078   eval "$gt_func_gnugettext_libc=yes"
6079 else
6080   eval "$gt_func_gnugettext_libc=no"
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext \
6083     conftest$ac_exeext conftest.$ac_ext
6084 fi
6085 eval ac_res=\$$gt_func_gnugettext_libc
6086                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6087 $as_echo "$ac_res" >&6; }
6088
6089         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6090
6091
6092
6093
6094
6095           am_save_CPPFLAGS="$CPPFLAGS"
6096
6097   for element in $INCICONV; do
6098     haveit=
6099     for x in $CPPFLAGS; do
6100
6101   acl_save_prefix="$prefix"
6102   prefix="$acl_final_prefix"
6103   acl_save_exec_prefix="$exec_prefix"
6104   exec_prefix="$acl_final_exec_prefix"
6105   eval x=\"$x\"
6106   exec_prefix="$acl_save_exec_prefix"
6107   prefix="$acl_save_prefix"
6108
6109       if test "X$x" = "X$element"; then
6110         haveit=yes
6111         break
6112       fi
6113     done
6114     if test -z "$haveit"; then
6115       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6116     fi
6117   done
6118
6119
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6121 $as_echo_n "checking for iconv... " >&6; }
6122 if ${am_cv_func_iconv+:} false; then :
6123   $as_echo_n "(cached) " >&6
6124 else
6125
6126     am_cv_func_iconv="no, consider installing GNU libiconv"
6127     am_cv_lib_iconv=no
6128     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h.  */
6130 #include <stdlib.h>
6131 #include <iconv.h>
6132 int
6133 main ()
6134 {
6135 iconv_t cd = iconv_open("","");
6136        iconv(cd,NULL,NULL,NULL,NULL);
6137        iconv_close(cd);
6138   ;
6139   return 0;
6140 }
6141 _ACEOF
6142 if ac_fn_c_try_link "$LINENO"; then :
6143   am_cv_func_iconv=yes
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext \
6146     conftest$ac_exeext conftest.$ac_ext
6147     if test "$am_cv_func_iconv" != yes; then
6148       am_save_LIBS="$LIBS"
6149       LIBS="$LIBS $LIBICONV"
6150       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h.  */
6152 #include <stdlib.h>
6153 #include <iconv.h>
6154 int
6155 main ()
6156 {
6157 iconv_t cd = iconv_open("","");
6158          iconv(cd,NULL,NULL,NULL,NULL);
6159          iconv_close(cd);
6160   ;
6161   return 0;
6162 }
6163 _ACEOF
6164 if ac_fn_c_try_link "$LINENO"; then :
6165   am_cv_lib_iconv=yes
6166         am_cv_func_iconv=yes
6167 fi
6168 rm -f core conftest.err conftest.$ac_objext \
6169     conftest$ac_exeext conftest.$ac_ext
6170       LIBS="$am_save_LIBS"
6171     fi
6172
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6175 $as_echo "$am_cv_func_iconv" >&6; }
6176   if test "$am_cv_func_iconv" = yes; then
6177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6178 $as_echo_n "checking for working iconv... " >&6; }
6179 if ${am_cv_func_iconv_works+:} false; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182
6183             am_save_LIBS="$LIBS"
6184       if test $am_cv_lib_iconv = yes; then
6185         LIBS="$LIBS $LIBICONV"
6186       fi
6187       if test "$cross_compiling" = yes; then :
6188   case "$host_os" in
6189            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6190            *)            am_cv_func_iconv_works="guessing yes" ;;
6191          esac
6192 else
6193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h.  */
6195
6196 #include <iconv.h>
6197 #include <string.h>
6198 int main ()
6199 {
6200   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6201      returns.  */
6202   {
6203     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6204     if (cd_utf8_to_88591 != (iconv_t)(-1))
6205       {
6206         static const char input[] = "\342\202\254"; /* EURO SIGN */
6207         char buf[10];
6208         const char *inptr = input;
6209         size_t inbytesleft = strlen (input);
6210         char *outptr = buf;
6211         size_t outbytesleft = sizeof (buf);
6212         size_t res = iconv (cd_utf8_to_88591,
6213                             (char **) &inptr, &inbytesleft,
6214                             &outptr, &outbytesleft);
6215         if (res == 0)
6216           return 1;
6217       }
6218   }
6219   /* Test against Solaris 10 bug: Failures are not distinguishable from
6220      successful returns.  */
6221   {
6222     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6223     if (cd_ascii_to_88591 != (iconv_t)(-1))
6224       {
6225         static const char input[] = "\263";
6226         char buf[10];
6227         const char *inptr = input;
6228         size_t inbytesleft = strlen (input);
6229         char *outptr = buf;
6230         size_t outbytesleft = sizeof (buf);
6231         size_t res = iconv (cd_ascii_to_88591,
6232                             (char **) &inptr, &inbytesleft,
6233                             &outptr, &outbytesleft);
6234         if (res == 0)
6235           return 1;
6236       }
6237   }
6238 #if 0 /* This bug could be worked around by the caller.  */
6239   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6240   {
6241     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6242     if (cd_88591_to_utf8 != (iconv_t)(-1))
6243       {
6244         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6245         char buf[50];
6246         const char *inptr = input;
6247         size_t inbytesleft = strlen (input);
6248         char *outptr = buf;
6249         size_t outbytesleft = sizeof (buf);
6250         size_t res = iconv (cd_88591_to_utf8,
6251                             (char **) &inptr, &inbytesleft,
6252                             &outptr, &outbytesleft);
6253         if ((int)res > 0)
6254           return 1;
6255       }
6256   }
6257 #endif
6258   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6259      provided.  */
6260   if (/* Try standardized names.  */
6261       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6262       /* Try IRIX, OSF/1 names.  */
6263       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6264       /* Try AIX names.  */
6265       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6266       /* Try HP-UX names.  */
6267       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6268     return 1;
6269   return 0;
6270 }
6271 _ACEOF
6272 if ac_fn_c_try_run "$LINENO"; then :
6273   am_cv_func_iconv_works=yes
6274 else
6275   am_cv_func_iconv_works=no
6276 fi
6277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6278   conftest.$ac_objext conftest.beam conftest.$ac_ext
6279 fi
6280
6281       LIBS="$am_save_LIBS"
6282
6283 fi
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6285 $as_echo "$am_cv_func_iconv_works" >&6; }
6286     case "$am_cv_func_iconv_works" in
6287       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6288       *)   am_func_iconv=yes ;;
6289     esac
6290   else
6291     am_func_iconv=no am_cv_lib_iconv=no
6292   fi
6293   if test "$am_func_iconv" = yes; then
6294
6295 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6296
6297   fi
6298   if test "$am_cv_lib_iconv" = yes; then
6299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6300 $as_echo_n "checking how to link with libiconv... " >&6; }
6301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6302 $as_echo "$LIBICONV" >&6; }
6303   else
6304             CPPFLAGS="$am_save_CPPFLAGS"
6305     LIBICONV=
6306     LTLIBICONV=
6307   fi
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319     use_additional=yes
6320
6321   acl_save_prefix="$prefix"
6322   prefix="$acl_final_prefix"
6323   acl_save_exec_prefix="$exec_prefix"
6324   exec_prefix="$acl_final_exec_prefix"
6325
6326     eval additional_includedir=\"$includedir\"
6327     eval additional_libdir=\"$libdir\"
6328
6329   exec_prefix="$acl_save_exec_prefix"
6330   prefix="$acl_save_prefix"
6331
6332
6333 # Check whether --with-libintl-prefix was given.
6334 if test "${with_libintl_prefix+set}" = set; then :
6335   withval=$with_libintl_prefix;
6336     if test "X$withval" = "Xno"; then
6337       use_additional=no
6338     else
6339       if test "X$withval" = "X"; then
6340
6341   acl_save_prefix="$prefix"
6342   prefix="$acl_final_prefix"
6343   acl_save_exec_prefix="$exec_prefix"
6344   exec_prefix="$acl_final_exec_prefix"
6345
6346           eval additional_includedir=\"$includedir\"
6347           eval additional_libdir=\"$libdir\"
6348
6349   exec_prefix="$acl_save_exec_prefix"
6350   prefix="$acl_save_prefix"
6351
6352       else
6353         additional_includedir="$withval/include"
6354         additional_libdir="$withval/$acl_libdirstem"
6355         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6356            && ! test -d "$withval/$acl_libdirstem"; then
6357           additional_libdir="$withval/$acl_libdirstem2"
6358         fi
6359       fi
6360     fi
6361
6362 fi
6363
6364       LIBINTL=
6365   LTLIBINTL=
6366   INCINTL=
6367   LIBINTL_PREFIX=
6368       HAVE_LIBINTL=
6369   rpathdirs=
6370   ltrpathdirs=
6371   names_already_handled=
6372   names_next_round='intl '
6373   while test -n "$names_next_round"; do
6374     names_this_round="$names_next_round"
6375     names_next_round=
6376     for name in $names_this_round; do
6377       already_handled=
6378       for n in $names_already_handled; do
6379         if test "$n" = "$name"; then
6380           already_handled=yes
6381           break
6382         fi
6383       done
6384       if test -z "$already_handled"; then
6385         names_already_handled="$names_already_handled $name"
6386                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6387         eval value=\"\$HAVE_LIB$uppername\"
6388         if test -n "$value"; then
6389           if test "$value" = yes; then
6390             eval value=\"\$LIB$uppername\"
6391             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6392             eval value=\"\$LTLIB$uppername\"
6393             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6394           else
6395                                     :
6396           fi
6397         else
6398                               found_dir=
6399           found_la=
6400           found_so=
6401           found_a=
6402           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6403           if test -n "$acl_shlibext"; then
6404             shrext=".$acl_shlibext"             # typically: shrext=.so
6405           else
6406             shrext=
6407           fi
6408           if test $use_additional = yes; then
6409             dir="$additional_libdir"
6410                                     if test -n "$acl_shlibext"; then
6411               if test -f "$dir/$libname$shrext"; then
6412                 found_dir="$dir"
6413                 found_so="$dir/$libname$shrext"
6414               else
6415                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6416                   ver=`(cd "$dir" && \
6417                         for f in "$libname$shrext".*; do echo "$f"; done \
6418                         | sed -e "s,^$libname$shrext\\\\.,," \
6419                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6420                         | sed 1q ) 2>/dev/null`
6421                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6422                     found_dir="$dir"
6423                     found_so="$dir/$libname$shrext.$ver"
6424                   fi
6425                 else
6426                   eval library_names=\"$acl_library_names_spec\"
6427                   for f in $library_names; do
6428                     if test -f "$dir/$f"; then
6429                       found_dir="$dir"
6430                       found_so="$dir/$f"
6431                       break
6432                     fi
6433                   done
6434                 fi
6435               fi
6436             fi
6437                         if test "X$found_dir" = "X"; then
6438               if test -f "$dir/$libname.$acl_libext"; then
6439                 found_dir="$dir"
6440                 found_a="$dir/$libname.$acl_libext"
6441               fi
6442             fi
6443             if test "X$found_dir" != "X"; then
6444               if test -f "$dir/$libname.la"; then
6445                 found_la="$dir/$libname.la"
6446               fi
6447             fi
6448           fi
6449           if test "X$found_dir" = "X"; then
6450             for x in $LDFLAGS $LTLIBINTL; do
6451
6452   acl_save_prefix="$prefix"
6453   prefix="$acl_final_prefix"
6454   acl_save_exec_prefix="$exec_prefix"
6455   exec_prefix="$acl_final_exec_prefix"
6456   eval x=\"$x\"
6457   exec_prefix="$acl_save_exec_prefix"
6458   prefix="$acl_save_prefix"
6459
6460               case "$x" in
6461                 -L*)
6462                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6463                                     if test -n "$acl_shlibext"; then
6464                     if test -f "$dir/$libname$shrext"; then
6465                       found_dir="$dir"
6466                       found_so="$dir/$libname$shrext"
6467                     else
6468                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6469                         ver=`(cd "$dir" && \
6470                               for f in "$libname$shrext".*; do echo "$f"; done \
6471                               | sed -e "s,^$libname$shrext\\\\.,," \
6472                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6473                               | sed 1q ) 2>/dev/null`
6474                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6475                           found_dir="$dir"
6476                           found_so="$dir/$libname$shrext.$ver"
6477                         fi
6478                       else
6479                         eval library_names=\"$acl_library_names_spec\"
6480                         for f in $library_names; do
6481                           if test -f "$dir/$f"; then
6482                             found_dir="$dir"
6483                             found_so="$dir/$f"
6484                             break
6485                           fi
6486                         done
6487                       fi
6488                     fi
6489                   fi
6490                                     if test "X$found_dir" = "X"; then
6491                     if test -f "$dir/$libname.$acl_libext"; then
6492                       found_dir="$dir"
6493                       found_a="$dir/$libname.$acl_libext"
6494                     fi
6495                   fi
6496                   if test "X$found_dir" != "X"; then
6497                     if test -f "$dir/$libname.la"; then
6498                       found_la="$dir/$libname.la"
6499                     fi
6500                   fi
6501                   ;;
6502               esac
6503               if test "X$found_dir" != "X"; then
6504                 break
6505               fi
6506             done
6507           fi
6508           if test "X$found_dir" != "X"; then
6509                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6510             if test "X$found_so" != "X"; then
6511                                                         if test "$enable_rpath" = no \
6512                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6513                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6514                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6515               else
6516                                                                                 haveit=
6517                 for x in $ltrpathdirs; do
6518                   if test "X$x" = "X$found_dir"; then
6519                     haveit=yes
6520                     break
6521                   fi
6522                 done
6523                 if test -z "$haveit"; then
6524                   ltrpathdirs="$ltrpathdirs $found_dir"
6525                 fi
6526                                 if test "$acl_hardcode_direct" = yes; then
6527                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6528                 else
6529                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6530                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6531                                                             haveit=
6532                     for x in $rpathdirs; do
6533                       if test "X$x" = "X$found_dir"; then
6534                         haveit=yes
6535                         break
6536                       fi
6537                     done
6538                     if test -z "$haveit"; then
6539                       rpathdirs="$rpathdirs $found_dir"
6540                     fi
6541                   else
6542                                                                                 haveit=
6543                     for x in $LDFLAGS $LIBINTL; do
6544
6545   acl_save_prefix="$prefix"
6546   prefix="$acl_final_prefix"
6547   acl_save_exec_prefix="$exec_prefix"
6548   exec_prefix="$acl_final_exec_prefix"
6549   eval x=\"$x\"
6550   exec_prefix="$acl_save_exec_prefix"
6551   prefix="$acl_save_prefix"
6552
6553                       if test "X$x" = "X-L$found_dir"; then
6554                         haveit=yes
6555                         break
6556                       fi
6557                     done
6558                     if test -z "$haveit"; then
6559                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6560                     fi
6561                     if test "$acl_hardcode_minus_L" != no; then
6562                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6563                     else
6564                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6565                     fi
6566                   fi
6567                 fi
6568               fi
6569             else
6570               if test "X$found_a" != "X"; then
6571                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6572               else
6573                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6574               fi
6575             fi
6576                         additional_includedir=
6577             case "$found_dir" in
6578               */$acl_libdirstem | */$acl_libdirstem/)
6579                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6580                 if test "$name" = 'intl'; then
6581                   LIBINTL_PREFIX="$basedir"
6582                 fi
6583                 additional_includedir="$basedir/include"
6584                 ;;
6585               */$acl_libdirstem2 | */$acl_libdirstem2/)
6586                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6587                 if test "$name" = 'intl'; then
6588                   LIBINTL_PREFIX="$basedir"
6589                 fi
6590                 additional_includedir="$basedir/include"
6591                 ;;
6592             esac
6593             if test "X$additional_includedir" != "X"; then
6594                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6595                 haveit=
6596                 if test "X$additional_includedir" = "X/usr/local/include"; then
6597                   if test -n "$GCC"; then
6598                     case $host_os in
6599                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6600                     esac
6601                   fi
6602                 fi
6603                 if test -z "$haveit"; then
6604                   for x in $CPPFLAGS $INCINTL; do
6605
6606   acl_save_prefix="$prefix"
6607   prefix="$acl_final_prefix"
6608   acl_save_exec_prefix="$exec_prefix"
6609   exec_prefix="$acl_final_exec_prefix"
6610   eval x=\"$x\"
6611   exec_prefix="$acl_save_exec_prefix"
6612   prefix="$acl_save_prefix"
6613
6614                     if test "X$x" = "X-I$additional_includedir"; then
6615                       haveit=yes
6616                       break
6617                     fi
6618                   done
6619                   if test -z "$haveit"; then
6620                     if test -d "$additional_includedir"; then
6621                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6622                     fi
6623                   fi
6624                 fi
6625               fi
6626             fi
6627                         if test -n "$found_la"; then
6628                                                         save_libdir="$libdir"
6629               case "$found_la" in
6630                 */* | *\\*) . "$found_la" ;;
6631                 *) . "./$found_la" ;;
6632               esac
6633               libdir="$save_libdir"
6634                             for dep in $dependency_libs; do
6635                 case "$dep" in
6636                   -L*)
6637                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6638                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6639                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6640                       haveit=
6641                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6642                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6643                         if test -n "$GCC"; then
6644                           case $host_os in
6645                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6646                           esac
6647                         fi
6648                       fi
6649                       if test -z "$haveit"; then
6650                         haveit=
6651                         for x in $LDFLAGS $LIBINTL; do
6652
6653   acl_save_prefix="$prefix"
6654   prefix="$acl_final_prefix"
6655   acl_save_exec_prefix="$exec_prefix"
6656   exec_prefix="$acl_final_exec_prefix"
6657   eval x=\"$x\"
6658   exec_prefix="$acl_save_exec_prefix"
6659   prefix="$acl_save_prefix"
6660
6661                           if test "X$x" = "X-L$additional_libdir"; then
6662                             haveit=yes
6663                             break
6664                           fi
6665                         done
6666                         if test -z "$haveit"; then
6667                           if test -d "$additional_libdir"; then
6668                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6669                           fi
6670                         fi
6671                         haveit=
6672                         for x in $LDFLAGS $LTLIBINTL; do
6673
6674   acl_save_prefix="$prefix"
6675   prefix="$acl_final_prefix"
6676   acl_save_exec_prefix="$exec_prefix"
6677   exec_prefix="$acl_final_exec_prefix"
6678   eval x=\"$x\"
6679   exec_prefix="$acl_save_exec_prefix"
6680   prefix="$acl_save_prefix"
6681
6682                           if test "X$x" = "X-L$additional_libdir"; then
6683                             haveit=yes
6684                             break
6685                           fi
6686                         done
6687                         if test -z "$haveit"; then
6688                           if test -d "$additional_libdir"; then
6689                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6690                           fi
6691                         fi
6692                       fi
6693                     fi
6694                     ;;
6695                   -R*)
6696                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6697                     if test "$enable_rpath" != no; then
6698                                                                   haveit=
6699                       for x in $rpathdirs; do
6700                         if test "X$x" = "X$dir"; then
6701                           haveit=yes
6702                           break
6703                         fi
6704                       done
6705                       if test -z "$haveit"; then
6706                         rpathdirs="$rpathdirs $dir"
6707                       fi
6708                                                                   haveit=
6709                       for x in $ltrpathdirs; do
6710                         if test "X$x" = "X$dir"; then
6711                           haveit=yes
6712                           break
6713                         fi
6714                       done
6715                       if test -z "$haveit"; then
6716                         ltrpathdirs="$ltrpathdirs $dir"
6717                       fi
6718                     fi
6719                     ;;
6720                   -l*)
6721                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6722                     ;;
6723                   *.la)
6724                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6725                     ;;
6726                   *)
6727                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6728                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6729                     ;;
6730                 esac
6731               done
6732             fi
6733           else
6734                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6735             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6736           fi
6737         fi
6738       fi
6739     done
6740   done
6741   if test "X$rpathdirs" != "X"; then
6742     if test -n "$acl_hardcode_libdir_separator"; then
6743                         alldirs=
6744       for found_dir in $rpathdirs; do
6745         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6746       done
6747             acl_save_libdir="$libdir"
6748       libdir="$alldirs"
6749       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6750       libdir="$acl_save_libdir"
6751       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6752     else
6753             for found_dir in $rpathdirs; do
6754         acl_save_libdir="$libdir"
6755         libdir="$found_dir"
6756         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6757         libdir="$acl_save_libdir"
6758         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6759       done
6760     fi
6761   fi
6762   if test "X$ltrpathdirs" != "X"; then
6763             for found_dir in $ltrpathdirs; do
6764       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6765     done
6766   fi
6767
6768
6769
6770
6771
6772
6773           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6774 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6775 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   gt_save_CPPFLAGS="$CPPFLAGS"
6779             CPPFLAGS="$CPPFLAGS $INCINTL"
6780             gt_save_LIBS="$LIBS"
6781             LIBS="$LIBS $LIBINTL"
6782                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h.  */
6784 #include <libintl.h>
6785 $gt_revision_test_code
6786 extern int _nl_msg_cat_cntr;
6787 extern
6788 #ifdef __cplusplus
6789 "C"
6790 #endif
6791 const char *_nl_expand_alias (const char *);
6792 int
6793 main ()
6794 {
6795 bindtextdomain ("", "");
6796 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6797   ;
6798   return 0;
6799 }
6800 _ACEOF
6801 if ac_fn_c_try_link "$LINENO"; then :
6802   eval "$gt_func_gnugettext_libintl=yes"
6803 else
6804   eval "$gt_func_gnugettext_libintl=no"
6805 fi
6806 rm -f core conftest.err conftest.$ac_objext \
6807     conftest$ac_exeext conftest.$ac_ext
6808                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6809               LIBS="$LIBS $LIBICONV"
6810               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h.  */
6812 #include <libintl.h>
6813 $gt_revision_test_code
6814 extern int _nl_msg_cat_cntr;
6815 extern
6816 #ifdef __cplusplus
6817 "C"
6818 #endif
6819 const char *_nl_expand_alias (const char *);
6820 int
6821 main ()
6822 {
6823 bindtextdomain ("", "");
6824 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6825   ;
6826   return 0;
6827 }
6828 _ACEOF
6829 if ac_fn_c_try_link "$LINENO"; then :
6830   LIBINTL="$LIBINTL $LIBICONV"
6831                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6832                 eval "$gt_func_gnugettext_libintl=yes"
6833
6834 fi
6835 rm -f core conftest.err conftest.$ac_objext \
6836     conftest$ac_exeext conftest.$ac_ext
6837             fi
6838             CPPFLAGS="$gt_save_CPPFLAGS"
6839             LIBS="$gt_save_LIBS"
6840 fi
6841 eval ac_res=\$$gt_func_gnugettext_libintl
6842                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6843 $as_echo "$ac_res" >&6; }
6844         fi
6845
6846                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6847            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6848                 && test "$PACKAGE" != gettext-runtime \
6849                 && test "$PACKAGE" != gettext-tools; }; then
6850           gt_use_preinstalled_gnugettext=yes
6851         else
6852                     LIBINTL=
6853           LTLIBINTL=
6854           INCINTL=
6855         fi
6856
6857
6858
6859     if test -n "$INTL_MACOSX_LIBS"; then
6860       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6861          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6862                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6863         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6864       fi
6865     fi
6866
6867     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6868        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6869
6870 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6871
6872     else
6873       USE_NLS=no
6874     fi
6875   fi
6876
6877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6878 $as_echo_n "checking whether to use NLS... " >&6; }
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6880 $as_echo "$USE_NLS" >&6; }
6881   if test "$USE_NLS" = "yes"; then
6882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6883 $as_echo_n "checking where the gettext function comes from... " >&6; }
6884     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6885       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6886         gt_source="external libintl"
6887       else
6888         gt_source="libc"
6889       fi
6890     else
6891       gt_source="included intl directory"
6892     fi
6893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6894 $as_echo "$gt_source" >&6; }
6895   fi
6896
6897   if test "$USE_NLS" = "yes"; then
6898
6899     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6900       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6901         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6902 $as_echo_n "checking how to link with libintl... " >&6; }
6903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6904 $as_echo "$LIBINTL" >&6; }
6905
6906   for element in $INCINTL; do
6907     haveit=
6908     for x in $CPPFLAGS; do
6909
6910   acl_save_prefix="$prefix"
6911   prefix="$acl_final_prefix"
6912   acl_save_exec_prefix="$exec_prefix"
6913   exec_prefix="$acl_final_exec_prefix"
6914   eval x=\"$x\"
6915   exec_prefix="$acl_save_exec_prefix"
6916   prefix="$acl_save_prefix"
6917
6918       if test "X$x" = "X$element"; then
6919         haveit=yes
6920         break
6921       fi
6922     done
6923     if test -z "$haveit"; then
6924       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6925     fi
6926   done
6927
6928       fi
6929
6930
6931 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6932
6933
6934 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6935
6936     fi
6937
6938         POSUB=po
6939   fi
6940
6941
6942
6943     INTLLIBS="$LIBINTL"
6944
6945
6946
6947
6948
6949
6950
6951 # Gconf
6952 # Extract the first word of "gconftool-2", so it can be a program name with args.
6953 set dummy gconftool-2; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if ${ac_cv_path_GCONFTOOL+:} false; then :
6957   $as_echo_n "(cached) " >&6
6958 else
6959   case $GCONFTOOL in
6960   [\\/]* | ?:[\\/]*)
6961   ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path.
6962   ;;
6963   *)
6964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967   IFS=$as_save_IFS
6968   test -z "$as_dir" && as_dir=.
6969     for ac_exec_ext in '' $ac_executable_extensions; do
6970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6971     ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext"
6972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973     break 2
6974   fi
6975 done
6976   done
6977 IFS=$as_save_IFS
6978
6979   test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no"
6980   ;;
6981 esac
6982 fi
6983 GCONFTOOL=$ac_cv_path_GCONFTOOL
6984 if test -n "$GCONFTOOL"; then
6985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONFTOOL" >&5
6986 $as_echo "$GCONFTOOL" >&6; }
6987 else
6988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6990 fi
6991
6992
6993
6994 if test x"$GCONFTOOL" = xno; then
6995   as_fn_error $? "gconftool-2 executable not found in your path - should be installed with GConf" "$LINENO" 5
6996 fi
6997
6998
6999   if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
7000     GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7001   else
7002     GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
7003   fi
7004
7005
7006 # Check whether --with-gconf-source was given.
7007 if test "${with_gconf_source+set}" = set; then :
7008   withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval"
7009 fi
7010
7011
7012
7013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
7014 $as_echo "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; }
7015
7016   if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
7017     GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
7018   fi
7019
7020
7021 # Check whether --with-gconf-schema-file-dir was given.
7022 if test "${with_gconf_schema_file_dir+set}" = set; then :
7023   withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval"
7024 fi
7025
7026
7027
7028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
7029 $as_echo "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; }
7030
7031   # Check whether --enable-schemas-install was given.
7032 if test "${enable_schemas_install+set}" = set; then :
7033   enableval=$enable_schemas_install; case ${enableval} in
7034        yes|no) ;;
7035        *) as_fn_error $? "bad value ${enableval} for --enable-schemas-install" "$LINENO" 5 ;;
7036       esac
7037 fi
7038
7039    if test "$enable_schemas_install" != no; then
7040   GCONF_SCHEMAS_INSTALL_TRUE=
7041   GCONF_SCHEMAS_INSTALL_FALSE='#'
7042 else
7043   GCONF_SCHEMAS_INSTALL_TRUE='#'
7044   GCONF_SCHEMAS_INSTALL_FALSE=
7045 fi
7046
7047
7048
7049 ############### common
7050
7051 # Checks pthread
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7053 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7054 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7055   $as_echo_n "(cached) " >&6
7056 else
7057   ac_check_lib_save_LIBS=$LIBS
7058 LIBS="-lpthread  $LIBS"
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h.  */
7061
7062 /* Override any GCC internal prototype to avoid an error.
7063    Use char because int might match the return type of a GCC
7064    builtin and then its argument prototype would still apply.  */
7065 #ifdef __cplusplus
7066 extern "C"
7067 #endif
7068 char pthread_create ();
7069 int
7070 main ()
7071 {
7072 return pthread_create ();
7073   ;
7074   return 0;
7075 }
7076 _ACEOF
7077 if ac_fn_c_try_link "$LINENO"; then :
7078   ac_cv_lib_pthread_pthread_create=yes
7079 else
7080   ac_cv_lib_pthread_pthread_create=no
7081 fi
7082 rm -f core conftest.err conftest.$ac_objext \
7083     conftest$ac_exeext conftest.$ac_ext
7084 LIBS=$ac_check_lib_save_LIBS
7085 fi
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7087 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7088 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7089   cat >>confdefs.h <<_ACEOF
7090 #define HAVE_LIBPTHREAD 1
7091 _ACEOF
7092
7093   LIBS="-lpthread $LIBS"
7094
7095 fi
7096
7097 PTHREAD_LIBS=-pthread
7098
7099
7100 # Checks sensors, required by psensor and psensor-server
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
7102 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
7103 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
7104   $as_echo_n "(cached) " >&6
7105 else
7106   ac_check_lib_save_LIBS=$LIBS
7107 LIBS="-lsensors  $LIBS"
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h.  */
7110
7111 /* Override any GCC internal prototype to avoid an error.
7112    Use char because int might match the return type of a GCC
7113    builtin and then its argument prototype would still apply.  */
7114 #ifdef __cplusplus
7115 extern "C"
7116 #endif
7117 char sensors_init ();
7118 int
7119 main ()
7120 {
7121 return sensors_init ();
7122   ;
7123   return 0;
7124 }
7125 _ACEOF
7126 if ac_fn_c_try_link "$LINENO"; then :
7127   ac_cv_lib_sensors_sensors_init=yes
7128 else
7129   ac_cv_lib_sensors_sensors_init=no
7130 fi
7131 rm -f core conftest.err conftest.$ac_objext \
7132     conftest$ac_exeext conftest.$ac_ext
7133 LIBS=$ac_check_lib_save_LIBS
7134 fi
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
7136 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
7137 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
7138   cat >>confdefs.h <<_ACEOF
7139 #define HAVE_LIBSENSORS 1
7140 _ACEOF
7141
7142   LIBS="-lsensors $LIBS"
7143
7144 fi
7145
7146 for ac_header in sensors/sensors.h sensors/errors.h
7147 do :
7148   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7149 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7150 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7151   cat >>confdefs.h <<_ACEOF
7152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7153 _ACEOF
7154
7155 fi
7156
7157 done
7158
7159 SENSORS_LIBS=-lsensors
7160
7161
7162 ############### psensor
7163
7164 ### Required
7165
7166
7167
7168
7169
7170
7171
7172
7173 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7174         if test -n "$ac_tool_prefix"; then
7175   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7180   $as_echo_n "(cached) " >&6
7181 else
7182   case $PKG_CONFIG in
7183   [\\/]* | ?:[\\/]*)
7184   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7185   ;;
7186   *)
7187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190   IFS=$as_save_IFS
7191   test -z "$as_dir" && as_dir=.
7192     for ac_exec_ext in '' $ac_executable_extensions; do
7193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196     break 2
7197   fi
7198 done
7199   done
7200 IFS=$as_save_IFS
7201
7202   ;;
7203 esac
7204 fi
7205 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7206 if test -n "$PKG_CONFIG"; then
7207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7208 $as_echo "$PKG_CONFIG" >&6; }
7209 else
7210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214
7215 fi
7216 if test -z "$ac_cv_path_PKG_CONFIG"; then
7217   ac_pt_PKG_CONFIG=$PKG_CONFIG
7218   # Extract the first word of "pkg-config", so it can be a program name with args.
7219 set dummy pkg-config; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7223   $as_echo_n "(cached) " >&6
7224 else
7225   case $ac_pt_PKG_CONFIG in
7226   [\\/]* | ?:[\\/]*)
7227   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7228   ;;
7229   *)
7230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233   IFS=$as_save_IFS
7234   test -z "$as_dir" && as_dir=.
7235     for ac_exec_ext in '' $ac_executable_extensions; do
7236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7237     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239     break 2
7240   fi
7241 done
7242   done
7243 IFS=$as_save_IFS
7244
7245   ;;
7246 esac
7247 fi
7248 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7249 if test -n "$ac_pt_PKG_CONFIG"; then
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7251 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7252 else
7253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7255 fi
7256
7257   if test "x$ac_pt_PKG_CONFIG" = x; then
7258     PKG_CONFIG=""
7259   else
7260     case $cross_compiling:$ac_tool_warned in
7261 yes:)
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7264 ac_tool_warned=yes ;;
7265 esac
7266     PKG_CONFIG=$ac_pt_PKG_CONFIG
7267   fi
7268 else
7269   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7270 fi
7271
7272 fi
7273 if test -n "$PKG_CONFIG"; then
7274         _pkg_min_version=0.9.0
7275         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7276 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7277         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7278                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7279 $as_echo "yes" >&6; }
7280         else
7281                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283                 PKG_CONFIG=""
7284         fi
7285 fi
7286
7287 pkg_failed=no
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7289 $as_echo_n "checking for X11... " >&6; }
7290
7291 if test -n "$X11_CFLAGS"; then
7292     pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7293  elif test -n "$PKG_CONFIG"; then
7294     if test -n "$PKG_CONFIG" && \
7295     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7296   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7297   ac_status=$?
7298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299   test $ac_status = 0; }; then
7300   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7301                       test "x$?" != "x0" && pkg_failed=yes
7302 else
7303   pkg_failed=yes
7304 fi
7305  else
7306     pkg_failed=untried
7307 fi
7308 if test -n "$X11_LIBS"; then
7309     pkg_cv_X11_LIBS="$X11_LIBS"
7310  elif test -n "$PKG_CONFIG"; then
7311     if test -n "$PKG_CONFIG" && \
7312     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7313   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7314   ac_status=$?
7315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7316   test $ac_status = 0; }; then
7317   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7318                       test "x$?" != "x0" && pkg_failed=yes
7319 else
7320   pkg_failed=yes
7321 fi
7322  else
7323     pkg_failed=untried
7324 fi
7325
7326
7327
7328 if test $pkg_failed = yes; then
7329         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7331
7332 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7333         _pkg_short_errors_supported=yes
7334 else
7335         _pkg_short_errors_supported=no
7336 fi
7337         if test $_pkg_short_errors_supported = yes; then
7338                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7339         else
7340                 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7341         fi
7342         # Put the nasty error message in config.log where it belongs
7343         echo "$X11_PKG_ERRORS" >&5
7344
7345         as_fn_error $? "Package requirements (x11) were not met:
7346
7347 $X11_PKG_ERRORS
7348
7349 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7350 installed software in a non-standard prefix.
7351
7352 Alternatively, you may set the environment variables X11_CFLAGS
7353 and X11_LIBS to avoid the need to call pkg-config.
7354 See the pkg-config man page for more details." "$LINENO" 5
7355 elif test $pkg_failed = untried; then
7356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7360 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7361 is in your PATH or set the PKG_CONFIG environment variable to the full
7362 path to pkg-config.
7363
7364 Alternatively, you may set the environment variables X11_CFLAGS
7365 and X11_LIBS to avoid the need to call pkg-config.
7366 See the pkg-config man page for more details.
7367
7368 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7369 See \`config.log' for more details" "$LINENO" 5; }
7370 else
7371         X11_CFLAGS=$pkg_cv_X11_CFLAGS
7372         X11_LIBS=$pkg_cv_X11_LIBS
7373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7374 $as_echo "yes" >&6; }
7375
7376 fi
7377
7378
7379
7380
7381 pkg_failed=no
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7383 $as_echo_n "checking for XEXT... " >&6; }
7384
7385 if test -n "$XEXT_CFLAGS"; then
7386     pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7387  elif test -n "$PKG_CONFIG"; then
7388     if test -n "$PKG_CONFIG" && \
7389     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7390   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7391   ac_status=$?
7392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393   test $ac_status = 0; }; then
7394   pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7395                       test "x$?" != "x0" && pkg_failed=yes
7396 else
7397   pkg_failed=yes
7398 fi
7399  else
7400     pkg_failed=untried
7401 fi
7402 if test -n "$XEXT_LIBS"; then
7403     pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7404  elif test -n "$PKG_CONFIG"; then
7405     if test -n "$PKG_CONFIG" && \
7406     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7407   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7408   ac_status=$?
7409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7410   test $ac_status = 0; }; then
7411   pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7412                       test "x$?" != "x0" && pkg_failed=yes
7413 else
7414   pkg_failed=yes
7415 fi
7416  else
7417     pkg_failed=untried
7418 fi
7419
7420
7421
7422 if test $pkg_failed = yes; then
7423         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7425
7426 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7427         _pkg_short_errors_supported=yes
7428 else
7429         _pkg_short_errors_supported=no
7430 fi
7431         if test $_pkg_short_errors_supported = yes; then
7432                 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7433         else
7434                 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7435         fi
7436         # Put the nasty error message in config.log where it belongs
7437         echo "$XEXT_PKG_ERRORS" >&5
7438
7439         as_fn_error $? "Package requirements (xext) were not met:
7440
7441 $XEXT_PKG_ERRORS
7442
7443 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7444 installed software in a non-standard prefix.
7445
7446 Alternatively, you may set the environment variables XEXT_CFLAGS
7447 and XEXT_LIBS to avoid the need to call pkg-config.
7448 See the pkg-config man page for more details." "$LINENO" 5
7449 elif test $pkg_failed = untried; then
7450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7452         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7454 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7455 is in your PATH or set the PKG_CONFIG environment variable to the full
7456 path to pkg-config.
7457
7458 Alternatively, you may set the environment variables XEXT_CFLAGS
7459 and XEXT_LIBS to avoid the need to call pkg-config.
7460 See the pkg-config man page for more details.
7461
7462 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7463 See \`config.log' for more details" "$LINENO" 5; }
7464 else
7465         XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7466         XEXT_LIBS=$pkg_cv_XEXT_LIBS
7467         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7468 $as_echo "yes" >&6; }
7469
7470 fi
7471
7472
7473
7474 # Checks GTK+ 3.0
7475
7476 pkg_failed=no
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7478 $as_echo_n "checking for GTK... " >&6; }
7479
7480 if test -n "$GTK_CFLAGS"; then
7481     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7482  elif test -n "$PKG_CONFIG"; then
7483     if test -n "$PKG_CONFIG" && \
7484     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7485   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7486   ac_status=$?
7487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7488   test $ac_status = 0; }; then
7489   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
7490                       test "x$?" != "x0" && pkg_failed=yes
7491 else
7492   pkg_failed=yes
7493 fi
7494  else
7495     pkg_failed=untried
7496 fi
7497 if test -n "$GTK_LIBS"; then
7498     pkg_cv_GTK_LIBS="$GTK_LIBS"
7499  elif test -n "$PKG_CONFIG"; then
7500     if test -n "$PKG_CONFIG" && \
7501     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7502   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7503   ac_status=$?
7504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505   test $ac_status = 0; }; then
7506   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
7507                       test "x$?" != "x0" && pkg_failed=yes
7508 else
7509   pkg_failed=yes
7510 fi
7511  else
7512     pkg_failed=untried
7513 fi
7514
7515
7516
7517 if test $pkg_failed = yes; then
7518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7520
7521 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7522         _pkg_short_errors_supported=yes
7523 else
7524         _pkg_short_errors_supported=no
7525 fi
7526         if test $_pkg_short_errors_supported = yes; then
7527                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7528         else
7529                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7530         fi
7531         # Put the nasty error message in config.log where it belongs
7532         echo "$GTK_PKG_ERRORS" >&5
7533
7534         as_fn_error $? "Package requirements (gtk+-3.0) were not met:
7535
7536 $GTK_PKG_ERRORS
7537
7538 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7539 installed software in a non-standard prefix.
7540
7541 Alternatively, you may set the environment variables GTK_CFLAGS
7542 and GTK_LIBS to avoid the need to call pkg-config.
7543 See the pkg-config man page for more details." "$LINENO" 5
7544 elif test $pkg_failed = untried; then
7545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7547         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7549 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7550 is in your PATH or set the PKG_CONFIG environment variable to the full
7551 path to pkg-config.
7552
7553 Alternatively, you may set the environment variables GTK_CFLAGS
7554 and GTK_LIBS to avoid the need to call pkg-config.
7555 See the pkg-config man page for more details.
7556
7557 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7558 See \`config.log' for more details" "$LINENO" 5; }
7559 else
7560         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7561         GTK_LIBS=$pkg_cv_GTK_LIBS
7562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7563 $as_echo "yes" >&6; }
7564
7565 fi
7566 # ensure that only allowed headers are included
7567 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
7568 # ensure that no gtk deprecated symbols are used
7569 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
7570 GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
7571 # ensure use of accessors
7572 GTK_CFLAGS+=" -DGSEAL_ENABLE "
7573
7574
7575
7576 # Check GCONF
7577
7578 pkg_failed=no
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
7580 $as_echo_n "checking for GCONF... " >&6; }
7581
7582 if test -n "$GCONF_CFLAGS"; then
7583     pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
7584  elif test -n "$PKG_CONFIG"; then
7585     if test -n "$PKG_CONFIG" && \
7586     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7587   ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7588   ac_status=$?
7589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590   test $ac_status = 0; }; then
7591   pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
7592                       test "x$?" != "x0" && pkg_failed=yes
7593 else
7594   pkg_failed=yes
7595 fi
7596  else
7597     pkg_failed=untried
7598 fi
7599 if test -n "$GCONF_LIBS"; then
7600     pkg_cv_GCONF_LIBS="$GCONF_LIBS"
7601  elif test -n "$PKG_CONFIG"; then
7602     if test -n "$PKG_CONFIG" && \
7603     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
7604   ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
7605   ac_status=$?
7606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7607   test $ac_status = 0; }; then
7608   pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
7609                       test "x$?" != "x0" && pkg_failed=yes
7610 else
7611   pkg_failed=yes
7612 fi
7613  else
7614     pkg_failed=untried
7615 fi
7616
7617
7618
7619 if test $pkg_failed = yes; then
7620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7622
7623 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7624         _pkg_short_errors_supported=yes
7625 else
7626         _pkg_short_errors_supported=no
7627 fi
7628         if test $_pkg_short_errors_supported = yes; then
7629                 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0" 2>&1`
7630         else
7631                 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0" 2>&1`
7632         fi
7633         # Put the nasty error message in config.log where it belongs
7634         echo "$GCONF_PKG_ERRORS" >&5
7635
7636         as_fn_error $? "Package requirements (gconf-2.0) were not met:
7637
7638 $GCONF_PKG_ERRORS
7639
7640 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7641 installed software in a non-standard prefix.
7642
7643 Alternatively, you may set the environment variables GCONF_CFLAGS
7644 and GCONF_LIBS to avoid the need to call pkg-config.
7645 See the pkg-config man page for more details." "$LINENO" 5
7646 elif test $pkg_failed = untried; then
7647         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7649         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7651 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7652 is in your PATH or set the PKG_CONFIG environment variable to the full
7653 path to pkg-config.
7654
7655 Alternatively, you may set the environment variables GCONF_CFLAGS
7656 and GCONF_LIBS to avoid the need to call pkg-config.
7657 See the pkg-config man page for more details.
7658
7659 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7660 See \`config.log' for more details" "$LINENO" 5; }
7661 else
7662         GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
7663         GCONF_LIBS=$pkg_cv_GCONF_LIBS
7664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7665 $as_echo "yes" >&6; }
7666
7667 fi
7668
7669
7670
7671 ### Optional
7672
7673 # check libatasmart
7674
7675 pkg_failed=no
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATASMART" >&5
7677 $as_echo_n "checking for ATASMART... " >&6; }
7678
7679 if test -n "$ATASMART_CFLAGS"; then
7680     pkg_cv_ATASMART_CFLAGS="$ATASMART_CFLAGS"
7681  elif test -n "$PKG_CONFIG"; then
7682     if test -n "$PKG_CONFIG" && \
7683     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7684   ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7685   ac_status=$?
7686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7687   test $ac_status = 0; }; then
7688   pkg_cv_ATASMART_CFLAGS=`$PKG_CONFIG --cflags "libatasmart" 2>/dev/null`
7689                       test "x$?" != "x0" && pkg_failed=yes
7690 else
7691   pkg_failed=yes
7692 fi
7693  else
7694     pkg_failed=untried
7695 fi
7696 if test -n "$ATASMART_LIBS"; then
7697     pkg_cv_ATASMART_LIBS="$ATASMART_LIBS"
7698  elif test -n "$PKG_CONFIG"; then
7699     if test -n "$PKG_CONFIG" && \
7700     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
7701   ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
7702   ac_status=$?
7703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7704   test $ac_status = 0; }; then
7705   pkg_cv_ATASMART_LIBS=`$PKG_CONFIG --libs "libatasmart" 2>/dev/null`
7706                       test "x$?" != "x0" && pkg_failed=yes
7707 else
7708   pkg_failed=yes
7709 fi
7710  else
7711     pkg_failed=untried
7712 fi
7713
7714
7715
7716 if test $pkg_failed = yes; then
7717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7719
7720 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7721         _pkg_short_errors_supported=yes
7722 else
7723         _pkg_short_errors_supported=no
7724 fi
7725         if test $_pkg_short_errors_supported = yes; then
7726                 ATASMART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libatasmart" 2>&1`
7727         else
7728                 ATASMART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libatasmart" 2>&1`
7729         fi
7730         # Put the nasty error message in config.log where it belongs
7731         echo "$ATASMART_PKG_ERRORS" >&5
7732
7733         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
7734 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
7735 elif test $pkg_failed = untried; then
7736         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7738         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
7739 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
7740 else
7741         ATASMART_CFLAGS=$pkg_cv_ATASMART_CFLAGS
7742         ATASMART_LIBS=$pkg_cv_ATASMART_LIBS
7743         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7744 $as_echo "yes" >&6; }
7745
7746 $as_echo "#define HAVE_ATASMART 1" >>confdefs.h
7747
7748 fi
7749
7750  if test -n "$ATASMART_LIBS"; then
7751   ATASMART_TRUE=
7752   ATASMART_FALSE='#'
7753 else
7754   ATASMART_TRUE='#'
7755   ATASMART_FALSE=
7756 fi
7757
7758
7759
7760
7761 # Check libnotify
7762 LIBNOTIFY_LIBS=
7763
7764 pkg_failed=no
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
7766 $as_echo_n "checking for LIBNOTIFY... " >&6; }
7767
7768 if test -n "$LIBNOTIFY_CFLAGS"; then
7769     pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
7770  elif test -n "$PKG_CONFIG"; then
7771     if test -n "$PKG_CONFIG" && \
7772     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7773   ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7774   ac_status=$?
7775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7776   test $ac_status = 0; }; then
7777   pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
7778                       test "x$?" != "x0" && pkg_failed=yes
7779 else
7780   pkg_failed=yes
7781 fi
7782  else
7783     pkg_failed=untried
7784 fi
7785 if test -n "$LIBNOTIFY_LIBS"; then
7786     pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
7787  elif test -n "$PKG_CONFIG"; then
7788     if test -n "$PKG_CONFIG" && \
7789     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
7790   ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
7791   ac_status=$?
7792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7793   test $ac_status = 0; }; then
7794   pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
7795                       test "x$?" != "x0" && pkg_failed=yes
7796 else
7797   pkg_failed=yes
7798 fi
7799  else
7800     pkg_failed=untried
7801 fi
7802
7803
7804
7805 if test $pkg_failed = yes; then
7806         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808
7809 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7810         _pkg_short_errors_supported=yes
7811 else
7812         _pkg_short_errors_supported=no
7813 fi
7814         if test $_pkg_short_errors_supported = yes; then
7815                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
7816         else
7817                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
7818         fi
7819         # Put the nasty error message in config.log where it belongs
7820         echo "$LIBNOTIFY_PKG_ERRORS" >&5
7821
7822         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7823 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7824 elif test $pkg_failed = untried; then
7825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7827         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
7828 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
7829 else
7830         LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
7831         LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
7832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7834
7835 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
7836
7837 fi
7838  if test -n "$LIBNOTIFY_LIBS"; then
7839   LIBNOTIFY_TRUE=
7840   LIBNOTIFY_FALSE='#'
7841 else
7842   LIBNOTIFY_TRUE='#'
7843   LIBNOTIFY_FALSE=
7844 fi
7845
7846
7847
7848
7849 # Checks AppIndicator
7850 APPINDICATOR_LIBS=
7851
7852
7853 pkg_failed=no
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7855 $as_echo_n "checking for APPINDICATOR... " >&6; }
7856
7857 if test -n "$APPINDICATOR_CFLAGS"; then
7858     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7859  elif test -n "$PKG_CONFIG"; then
7860     if test -n "$PKG_CONFIG" && \
7861     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7862   ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7863   ac_status=$?
7864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7865   test $ac_status = 0; }; then
7866   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
7867                       test "x$?" != "x0" && pkg_failed=yes
7868 else
7869   pkg_failed=yes
7870 fi
7871  else
7872     pkg_failed=untried
7873 fi
7874 if test -n "$APPINDICATOR_LIBS"; then
7875     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7876  elif test -n "$PKG_CONFIG"; then
7877     if test -n "$PKG_CONFIG" && \
7878     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
7879   ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
7880   ac_status=$?
7881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7882   test $ac_status = 0; }; then
7883   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
7884                       test "x$?" != "x0" && pkg_failed=yes
7885 else
7886   pkg_failed=yes
7887 fi
7888  else
7889     pkg_failed=untried
7890 fi
7891
7892
7893
7894 if test $pkg_failed = yes; then
7895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897
7898 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7899         _pkg_short_errors_supported=yes
7900 else
7901         _pkg_short_errors_supported=no
7902 fi
7903         if test $_pkg_short_errors_supported = yes; then
7904                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7905         else
7906                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
7907         fi
7908         # Put the nasty error message in config.log where it belongs
7909         echo "$APPINDICATOR_PKG_ERRORS" >&5
7910
7911         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7912 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7913 elif test $pkg_failed = untried; then
7914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
7917 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
7918 else
7919         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7920         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7922 $as_echo "yes" >&6; }
7923
7924 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
7925
7926 fi
7927
7928 if test "$APPINDICATOR_LIBS" == ""; then
7929
7930 pkg_failed=no
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
7932 $as_echo_n "checking for APPINDICATOR... " >&6; }
7933
7934 if test -n "$APPINDICATOR_CFLAGS"; then
7935     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
7936  elif test -n "$PKG_CONFIG"; then
7937     if test -n "$PKG_CONFIG" && \
7938     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7939   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7940   ac_status=$?
7941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942   test $ac_status = 0; }; then
7943   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7944                       test "x$?" != "x0" && pkg_failed=yes
7945 else
7946   pkg_failed=yes
7947 fi
7948  else
7949     pkg_failed=untried
7950 fi
7951 if test -n "$APPINDICATOR_LIBS"; then
7952     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
7953  elif test -n "$PKG_CONFIG"; then
7954     if test -n "$PKG_CONFIG" && \
7955     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
7956   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
7957   ac_status=$?
7958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959   test $ac_status = 0; }; then
7960   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
7961                       test "x$?" != "x0" && pkg_failed=yes
7962 else
7963   pkg_failed=yes
7964 fi
7965  else
7966     pkg_failed=untried
7967 fi
7968
7969
7970
7971 if test $pkg_failed = yes; then
7972         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7974
7975 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7976         _pkg_short_errors_supported=yes
7977 else
7978         _pkg_short_errors_supported=no
7979 fi
7980         if test $_pkg_short_errors_supported = yes; then
7981                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7982         else
7983                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
7984         fi
7985         # Put the nasty error message in config.log where it belongs
7986         echo "$APPINDICATOR_PKG_ERRORS" >&5
7987
7988         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7989 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7990 elif test $pkg_failed = untried; then
7991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7993         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
7994 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
7995 else
7996         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
7997         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
7998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7999 $as_echo "yes" >&6; }
8000
8001 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8002
8003
8004 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
8005
8006
8007 fi
8008 fi
8009
8010 if test "$APPINDICATOR_LIBS" == ""; then
8011
8012 pkg_failed=no
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8014 $as_echo_n "checking for APPINDICATOR... " >&6; }
8015
8016 if test -n "$APPINDICATOR_CFLAGS"; then
8017     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8018  elif test -n "$PKG_CONFIG"; then
8019     if test -n "$PKG_CONFIG" && \
8020     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8021   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8022   ac_status=$?
8023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8024   test $ac_status = 0; }; then
8025   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
8026                       test "x$?" != "x0" && pkg_failed=yes
8027 else
8028   pkg_failed=yes
8029 fi
8030  else
8031     pkg_failed=untried
8032 fi
8033 if test -n "$APPINDICATOR_LIBS"; then
8034     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8035  elif test -n "$PKG_CONFIG"; then
8036     if test -n "$PKG_CONFIG" && \
8037     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8038   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8039   ac_status=$?
8040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041   test $ac_status = 0; }; then
8042   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
8043                       test "x$?" != "x0" && pkg_failed=yes
8044 else
8045   pkg_failed=yes
8046 fi
8047  else
8048     pkg_failed=untried
8049 fi
8050
8051
8052
8053 if test $pkg_failed = yes; then
8054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8056
8057 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8058         _pkg_short_errors_supported=yes
8059 else
8060         _pkg_short_errors_supported=no
8061 fi
8062         if test $_pkg_short_errors_supported = yes; then
8063                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8064         else
8065                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8066         fi
8067         # Put the nasty error message in config.log where it belongs
8068         echo "$APPINDICATOR_PKG_ERRORS" >&5
8069
8070         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8071 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8072 elif test $pkg_failed = untried; then
8073         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8075         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8076 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8077 else
8078         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8079         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8081 $as_echo "yes" >&6; }
8082
8083 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8084
8085 fi
8086 fi
8087  if test -n "$APPINDICATOR_LIBS"; then
8088   APPINDICATOR_TRUE=
8089   APPINDICATOR_FALSE='#'
8090 else
8091   APPINDICATOR_TRUE='#'
8092   APPINDICATOR_FALSE=
8093 fi
8094
8095
8096
8097
8098 # Check CURL, needed for remote monitoring
8099 CURL_LIBS=
8100
8101 pkg_failed=no
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
8103 $as_echo_n "checking for CURL... " >&6; }
8104
8105 if test -n "$CURL_CFLAGS"; then
8106     pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
8107  elif test -n "$PKG_CONFIG"; then
8108     if test -n "$PKG_CONFIG" && \
8109     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8110   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8111   ac_status=$?
8112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8113   test $ac_status = 0; }; then
8114   pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
8115                       test "x$?" != "x0" && pkg_failed=yes
8116 else
8117   pkg_failed=yes
8118 fi
8119  else
8120     pkg_failed=untried
8121 fi
8122 if test -n "$CURL_LIBS"; then
8123     pkg_cv_CURL_LIBS="$CURL_LIBS"
8124  elif test -n "$PKG_CONFIG"; then
8125     if test -n "$PKG_CONFIG" && \
8126     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8127   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8128   ac_status=$?
8129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8130   test $ac_status = 0; }; then
8131   pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
8132                       test "x$?" != "x0" && pkg_failed=yes
8133 else
8134   pkg_failed=yes
8135 fi
8136  else
8137     pkg_failed=untried
8138 fi
8139
8140
8141
8142 if test $pkg_failed = yes; then
8143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145
8146 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8147         _pkg_short_errors_supported=yes
8148 else
8149         _pkg_short_errors_supported=no
8150 fi
8151         if test $_pkg_short_errors_supported = yes; then
8152                 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
8153         else
8154                 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
8155         fi
8156         # Put the nasty error message in config.log where it belongs
8157         echo "$CURL_PKG_ERRORS" >&5
8158
8159         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8160 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8161 elif test $pkg_failed = untried; then
8162         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8165 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8166 else
8167         CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8168         CURL_LIBS=$pkg_cv_CURL_LIBS
8169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8170 $as_echo "yes" >&6; }
8171
8172 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8173
8174 fi
8175  if test -n "$CURL_LIBS"; then
8176   CURL_TRUE=
8177   CURL_FALSE='#'
8178 else
8179   CURL_TRUE='#'
8180   CURL_FALSE=
8181 fi
8182
8183
8184
8185
8186 # Check JSON, needed for remote monitoring
8187 JSON_LIBS=
8188
8189 pkg_failed=no
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8191 $as_echo_n "checking for JSON... " >&6; }
8192
8193 if test -n "$JSON_CFLAGS"; then
8194     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8195  elif test -n "$PKG_CONFIG"; then
8196     if test -n "$PKG_CONFIG" && \
8197     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8198   ($PKG_CONFIG --exists --print-errors "json") 2>&5
8199   ac_status=$?
8200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8201   test $ac_status = 0; }; then
8202   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
8203                       test "x$?" != "x0" && pkg_failed=yes
8204 else
8205   pkg_failed=yes
8206 fi
8207  else
8208     pkg_failed=untried
8209 fi
8210 if test -n "$JSON_LIBS"; then
8211     pkg_cv_JSON_LIBS="$JSON_LIBS"
8212  elif test -n "$PKG_CONFIG"; then
8213     if test -n "$PKG_CONFIG" && \
8214     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8215   ($PKG_CONFIG --exists --print-errors "json") 2>&5
8216   ac_status=$?
8217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8218   test $ac_status = 0; }; then
8219   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
8220                       test "x$?" != "x0" && pkg_failed=yes
8221 else
8222   pkg_failed=yes
8223 fi
8224  else
8225     pkg_failed=untried
8226 fi
8227
8228
8229
8230 if test $pkg_failed = yes; then
8231         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233
8234 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8235         _pkg_short_errors_supported=yes
8236 else
8237         _pkg_short_errors_supported=no
8238 fi
8239         if test $_pkg_short_errors_supported = yes; then
8240                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
8241         else
8242                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
8243         fi
8244         # Put the nasty error message in config.log where it belongs
8245         echo "$JSON_PKG_ERRORS" >&5
8246
8247         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8248 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8249 elif test $pkg_failed = untried; then
8250         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8252         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8253 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8254 else
8255         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8256         JSON_LIBS=$pkg_cv_JSON_LIBS
8257         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8258 $as_echo "yes" >&6; }
8259
8260 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8261
8262 fi
8263  if test -n "$JSON_LIBS"; then
8264   JSON_TRUE=
8265   JSON_FALSE='#'
8266 else
8267   JSON_TRUE='#'
8268   JSON_FALSE=
8269 fi
8270
8271
8272
8273
8274 # Enables remote monitoring if JSON and CURL is present
8275 if test -n "$JSON_LIBS"; then
8276    if test -n "$CURL_LIBS"; then
8277
8278 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8279
8280    fi
8281 fi
8282
8283 # Checks NVIDIA
8284 # following code from sensors-applet
8285 # sensors-applet.sourceforge.net/
8286 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8287 do :
8288   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8289 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8290                   #include <X11/Xlib.h>
8291
8292 "
8293 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8294   cat >>confdefs.h <<_ACEOF
8295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8296 _ACEOF
8297   HAVE_NVIDIA=true
8298 fi
8299
8300 done
8301
8302 if test -n "${X11_LIBS}"; then
8303 LIBS="${LIBS} -lX11 -lXext"
8304
8305 if test "${HAVE_NVIDIA}" = "true"; then
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8307 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8308 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   ac_check_lib_save_LIBS=$LIBS
8312 LIBS="-lXNVCtrl  $LIBS"
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h.  */
8315
8316 /* Override any GCC internal prototype to avoid an error.
8317    Use char because int might match the return type of a GCC
8318    builtin and then its argument prototype would still apply.  */
8319 #ifdef __cplusplus
8320 extern "C"
8321 #endif
8322 char XNVCTRLQueryExtension ();
8323 int
8324 main ()
8325 {
8326 return XNVCTRLQueryExtension ();
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 if ac_fn_c_try_link "$LINENO"; then :
8332   ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8333 else
8334   ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext \
8337     conftest$ac_exeext conftest.$ac_ext
8338 LIBS=$ac_check_lib_save_LIBS
8339 fi
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8341 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8342 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8343   NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8344
8345 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8346
8347
8348 fi
8349
8350 fi
8351 fi
8352  if test -n "$NVIDIA_LIBS"; then
8353   NVIDIA_TRUE=
8354   NVIDIA_FALSE='#'
8355 else
8356   NVIDIA_TRUE='#'
8357   NVIDIA_FALSE=
8358 fi
8359
8360
8361
8362
8363 # Checks Unity
8364
8365 pkg_failed=no
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8367 $as_echo_n "checking for UNITY... " >&6; }
8368
8369 if test -n "$UNITY_CFLAGS"; then
8370     pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
8371  elif test -n "$PKG_CONFIG"; then
8372     if test -n "$PKG_CONFIG" && \
8373     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8374   ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8375   ac_status=$?
8376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8377   test $ac_status = 0; }; then
8378   pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8379                       test "x$?" != "x0" && pkg_failed=yes
8380 else
8381   pkg_failed=yes
8382 fi
8383  else
8384     pkg_failed=untried
8385 fi
8386 if test -n "$UNITY_LIBS"; then
8387     pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8388  elif test -n "$PKG_CONFIG"; then
8389     if test -n "$PKG_CONFIG" && \
8390     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8391   ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8392   ac_status=$?
8393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8394   test $ac_status = 0; }; then
8395   pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8396                       test "x$?" != "x0" && pkg_failed=yes
8397 else
8398   pkg_failed=yes
8399 fi
8400  else
8401     pkg_failed=untried
8402 fi
8403
8404
8405
8406 if test $pkg_failed = yes; then
8407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }
8409
8410 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8411         _pkg_short_errors_supported=yes
8412 else
8413         _pkg_short_errors_supported=no
8414 fi
8415         if test $_pkg_short_errors_supported = yes; then
8416                 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8417         else
8418                 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8419         fi
8420         # Put the nasty error message in config.log where it belongs
8421         echo "$UNITY_PKG_ERRORS" >&5
8422
8423         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8424 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8425 elif test $pkg_failed = untried; then
8426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8428         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8429 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8430 else
8431         UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8432         UNITY_LIBS=$pkg_cv_UNITY_LIBS
8433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8434 $as_echo "yes" >&6; }
8435
8436 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8437
8438 fi
8439
8440
8441  if test -n "$UNITY_LIBS"; then
8442   UNITY_TRUE=
8443   UNITY_FALSE='#'
8444 else
8445   UNITY_TRUE='#'
8446   UNITY_FALSE=
8447 fi
8448
8449
8450 # libatiadl
8451
8452 # Check whether --with-libatiadl was given.
8453 if test "${with_libatiadl+set}" = set; then :
8454   withval=$with_libatiadl;
8455                    ATIADL_DIR=${withval}
8456                    CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8457                    LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
8458
8459
8460 fi
8461
8462
8463 for ac_header in adl_defines.h
8464 do :
8465   ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8466 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
8467   cat >>confdefs.h <<_ACEOF
8468 #define HAVE_ADL_DEFINES_H 1
8469 _ACEOF
8470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8471 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8472 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
8473   $as_echo_n "(cached) " >&6
8474 else
8475   ac_check_lib_save_LIBS=$LIBS
8476 LIBS="-latiadlxx  $LIBS"
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h.  */
8479
8480 /* Override any GCC internal prototype to avoid an error.
8481    Use char because int might match the return type of a GCC
8482    builtin and then its argument prototype would still apply.  */
8483 #ifdef __cplusplus
8484 extern "C"
8485 #endif
8486 char ADL_Main_Control_Refresh ();
8487 int
8488 main ()
8489 {
8490 return ADL_Main_Control_Refresh ();
8491   ;
8492   return 0;
8493 }
8494 _ACEOF
8495 if ac_fn_c_try_link "$LINENO"; then :
8496   ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
8497 else
8498   ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
8499 fi
8500 rm -f core conftest.err conftest.$ac_objext \
8501     conftest$ac_exeext conftest.$ac_ext
8502 LIBS=$ac_check_lib_save_LIBS
8503 fi
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
8505 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
8506 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
8507
8508
8509 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
8510
8511                         LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
8512                         LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
8513
8514 fi
8515
8516 fi
8517
8518 done
8519
8520
8521  if test -n "$LIBATIADL_LIBS"; then
8522   LIBATIADL_TRUE=
8523   LIBATIADL_FALSE='#'
8524 else
8525   LIBATIADL_TRUE='#'
8526   LIBATIADL_FALSE=
8527 fi
8528
8529
8530
8531
8532 ############### psensor-server
8533
8534 # libmicrohttpd, mandatory for psensor-server
8535 LIBMICROHTTPD_LIBS=
8536
8537 pkg_failed=no
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
8539 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
8540
8541 if test -n "$LIBMICROHTTPD_CFLAGS"; then
8542     pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
8543  elif test -n "$PKG_CONFIG"; then
8544     if test -n "$PKG_CONFIG" && \
8545     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8546   ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8547   ac_status=$?
8548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8549   test $ac_status = 0; }; then
8550   pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
8551                       test "x$?" != "x0" && pkg_failed=yes
8552 else
8553   pkg_failed=yes
8554 fi
8555  else
8556     pkg_failed=untried
8557 fi
8558 if test -n "$LIBMICROHTTPD_LIBS"; then
8559     pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
8560  elif test -n "$PKG_CONFIG"; then
8561     if test -n "$PKG_CONFIG" && \
8562     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
8563   ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
8564   ac_status=$?
8565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8566   test $ac_status = 0; }; then
8567   pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
8568                       test "x$?" != "x0" && pkg_failed=yes
8569 else
8570   pkg_failed=yes
8571 fi
8572  else
8573     pkg_failed=untried
8574 fi
8575
8576
8577
8578 if test $pkg_failed = yes; then
8579         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8581
8582 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8583         _pkg_short_errors_supported=yes
8584 else
8585         _pkg_short_errors_supported=no
8586 fi
8587         if test $_pkg_short_errors_supported = yes; then
8588                 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8589         else
8590                 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
8591         fi
8592         # Put the nasty error message in config.log where it belongs
8593         echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
8594
8595         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8596 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8597 elif test $pkg_failed = untried; then
8598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8600         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
8601 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
8602 else
8603         LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
8604         LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
8605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8606 $as_echo "yes" >&6; }
8607
8608 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
8609
8610 fi
8611  if test -n "$LIBMICROHTTPD_LIBS"; then
8612   LIBMICROHTTPD_TRUE=
8613   LIBMICROHTTPD_FALSE='#'
8614 else
8615   LIBMICROHTTPD_TRUE='#'
8616   LIBMICROHTTPD_FALSE=
8617 fi
8618
8619
8620
8621
8622 # GTop, optional
8623
8624
8625 # Check whether --with-gtop was given.
8626 if test "${with_gtop+set}" = set; then :
8627   withval=$with_gtop;
8628         with_gtop=$withval
8629 else
8630
8631         with_gtop="yes"
8632
8633 fi
8634
8635
8636 GTOP_LIBS=
8637 if test "$with_gtop" = "yes"; then
8638
8639 pkg_failed=no
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
8641 $as_echo_n "checking for GTOP... " >&6; }
8642
8643 if test -n "$GTOP_CFLAGS"; then
8644     pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
8645  elif test -n "$PKG_CONFIG"; then
8646     if test -n "$PKG_CONFIG" && \
8647     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8648   ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8649   ac_status=$?
8650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8651   test $ac_status = 0; }; then
8652   pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
8653                       test "x$?" != "x0" && pkg_failed=yes
8654 else
8655   pkg_failed=yes
8656 fi
8657  else
8658     pkg_failed=untried
8659 fi
8660 if test -n "$GTOP_LIBS"; then
8661     pkg_cv_GTOP_LIBS="$GTOP_LIBS"
8662  elif test -n "$PKG_CONFIG"; then
8663     if test -n "$PKG_CONFIG" && \
8664     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
8665   ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
8666   ac_status=$?
8667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8668   test $ac_status = 0; }; then
8669   pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
8670                       test "x$?" != "x0" && pkg_failed=yes
8671 else
8672   pkg_failed=yes
8673 fi
8674  else
8675     pkg_failed=untried
8676 fi
8677
8678
8679
8680 if test $pkg_failed = yes; then
8681         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8683
8684 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8685         _pkg_short_errors_supported=yes
8686 else
8687         _pkg_short_errors_supported=no
8688 fi
8689         if test $_pkg_short_errors_supported = yes; then
8690                 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8691         else
8692                 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
8693         fi
8694         # Put the nasty error message in config.log where it belongs
8695         echo "$GTOP_PKG_ERRORS" >&5
8696
8697         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8698 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8699 elif test $pkg_failed = untried; then
8700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701 $as_echo "no" >&6; }
8702         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
8703 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
8704 else
8705         GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
8706         GTOP_LIBS=$pkg_cv_GTOP_LIBS
8707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8708 $as_echo "yes" >&6; }
8709
8710 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
8711
8712 fi
8713 fi
8714  if test -n "$GTOP_LIBS"; then
8715   GTOP_TRUE=
8716   GTOP_FALSE='#'
8717 else
8718   GTOP_TRUE='#'
8719   GTOP_FALSE=
8720 fi
8721
8722
8723
8724
8725 ac_config_files="$ac_config_files Makefile src/Makefile src/glade/Makefile src/lib/Makefile src/server/Makefile icons/hicolor/scalable/Makefile icons/hicolor/14x14/Makefile icons/hicolor/16x16/Makefile icons/hicolor/22x22/Makefile icons/hicolor/24x24/Makefile icons/hicolor/32x32/Makefile icons/hicolor/48x48/Makefile icons/hicolor/64x64/Makefile icons/ubuntu-mono-dark/status/22/Makefile icons/ubuntu-mono-light/status/22/Makefile icons/ubuntu-mono-dark/apps/22/Makefile www/Makefile po/Makefile.in tests/Makefile"
8726
8727
8728 for ac_prog in help2man
8729 do
8730   # Extract the first word of "$ac_prog", so it can be a program name with args.
8731 set dummy $ac_prog; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if ${ac_cv_prog_HELP2MAN+:} false; then :
8735   $as_echo_n "(cached) " >&6
8736 else
8737   if test -n "$HELP2MAN"; then
8738   ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743   IFS=$as_save_IFS
8744   test -z "$as_dir" && as_dir=.
8745     for ac_exec_ext in '' $ac_executable_extensions; do
8746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8747     ac_cv_prog_HELP2MAN="$ac_prog"
8748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749     break 2
8750   fi
8751 done
8752   done
8753 IFS=$as_save_IFS
8754
8755 fi
8756 fi
8757 HELP2MAN=$ac_cv_prog_HELP2MAN
8758 if test -n "$HELP2MAN"; then
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8760 $as_echo "$HELP2MAN" >&6; }
8761 else
8762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764 fi
8765
8766
8767   test -n "$HELP2MAN" && break
8768 done
8769
8770
8771 cat >confcache <<\_ACEOF
8772 # This file is a shell script that caches the results of configure
8773 # tests run on this system so they can be shared between configure
8774 # scripts and configure runs, see configure's option --config-cache.
8775 # It is not useful on other systems.  If it contains results you don't
8776 # want to keep, you may remove or edit it.
8777 #
8778 # config.status only pays attention to the cache file if you give it
8779 # the --recheck option to rerun configure.
8780 #
8781 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8782 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8783 # following values.
8784
8785 _ACEOF
8786
8787 # The following way of writing the cache mishandles newlines in values,
8788 # but we know of no workaround that is simple, portable, and efficient.
8789 # So, we kill variables containing newlines.
8790 # Ultrix sh set writes to stderr and can't be redirected directly,
8791 # and sets the high bit in the cache file unless we assign to the vars.
8792 (
8793   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8794     eval ac_val=\$$ac_var
8795     case $ac_val in #(
8796     *${as_nl}*)
8797       case $ac_var in #(
8798       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8800       esac
8801       case $ac_var in #(
8802       _ | IFS | as_nl) ;; #(
8803       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8804       *) { eval $ac_var=; unset $ac_var;} ;;
8805       esac ;;
8806     esac
8807   done
8808
8809   (set) 2>&1 |
8810     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8811     *${as_nl}ac_space=\ *)
8812       # `set' does not quote correctly, so add quotes: double-quote
8813       # substitution turns \\\\ into \\, and sed turns \\ into \.
8814       sed -n \
8815         "s/'/'\\\\''/g;
8816           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8817       ;; #(
8818     *)
8819       # `set' quotes correctly as required by POSIX, so do not add quotes.
8820       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8821       ;;
8822     esac |
8823     sort
8824 ) |
8825   sed '
8826      /^ac_cv_env_/b end
8827      t clear
8828      :clear
8829      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8830      t end
8831      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8832      :end' >>confcache
8833 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8834   if test -w "$cache_file"; then
8835     if test "x$cache_file" != "x/dev/null"; then
8836       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8837 $as_echo "$as_me: updating cache $cache_file" >&6;}
8838       if test ! -f "$cache_file" || test -h "$cache_file"; then
8839         cat confcache >"$cache_file"
8840       else
8841         case $cache_file in #(
8842         */* | ?:*)
8843           mv -f confcache "$cache_file"$$ &&
8844           mv -f "$cache_file"$$ "$cache_file" ;; #(
8845         *)
8846           mv -f confcache "$cache_file" ;;
8847         esac
8848       fi
8849     fi
8850   else
8851     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8852 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8853   fi
8854 fi
8855 rm -f confcache
8856
8857 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8858 # Let make expand exec_prefix.
8859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8860
8861 DEFS=-DHAVE_CONFIG_H
8862
8863 ac_libobjs=
8864 ac_ltlibobjs=
8865 U=
8866 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8867   # 1. Remove the extension, and $U if already installed.
8868   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8869   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8870   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8871   #    will be set to the directory where LIBOBJS objects are built.
8872   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8873   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8874 done
8875 LIBOBJS=$ac_libobjs
8876
8877 LTLIBOBJS=$ac_ltlibobjs
8878
8879
8880  if test -n "$EXEEXT"; then
8881   am__EXEEXT_TRUE=
8882   am__EXEEXT_FALSE='#'
8883 else
8884   am__EXEEXT_TRUE='#'
8885   am__EXEEXT_FALSE=
8886 fi
8887
8888 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8889   as_fn_error $? "conditional \"AMDEP\" was never defined.
8890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8891 fi
8892 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8893   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8895 fi
8896 if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8897   as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8899 fi
8900 if test -z "${ATASMART_TRUE}" && test -z "${ATASMART_FALSE}"; then
8901   as_fn_error $? "conditional \"ATASMART\" was never defined.
8902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8903 fi
8904 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
8905   as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
8906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8907 fi
8908 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
8909   as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
8910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8911 fi
8912 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
8913   as_fn_error $? "conditional \"CURL\" was never defined.
8914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8915 fi
8916 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
8917   as_fn_error $? "conditional \"JSON\" was never defined.
8918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8919 fi
8920 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
8921   as_fn_error $? "conditional \"NVIDIA\" was never defined.
8922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8923 fi
8924 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
8925   as_fn_error $? "conditional \"UNITY\" was never defined.
8926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8927 fi
8928 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
8929   as_fn_error $? "conditional \"LIBATIADL\" was never defined.
8930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8931 fi
8932 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
8933   as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
8934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8935 fi
8936 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
8937   as_fn_error $? "conditional \"GTOP\" was never defined.
8938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8939 fi
8940
8941 : "${CONFIG_STATUS=./config.status}"
8942 ac_write_fail=0
8943 ac_clean_files_save=$ac_clean_files
8944 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8946 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8947 as_write_fail=0
8948 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8949 #! $SHELL
8950 # Generated by $as_me.
8951 # Run this file to recreate the current configuration.
8952 # Compiler output produced by configure, useful for debugging
8953 # configure, is in config.log if it exists.
8954
8955 debug=false
8956 ac_cs_recheck=false
8957 ac_cs_silent=false
8958
8959 SHELL=\${CONFIG_SHELL-$SHELL}
8960 export SHELL
8961 _ASEOF
8962 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8963 ## -------------------- ##
8964 ## M4sh Initialization. ##
8965 ## -------------------- ##
8966
8967 # Be more Bourne compatible
8968 DUALCASE=1; export DUALCASE # for MKS sh
8969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8970   emulate sh
8971   NULLCMD=:
8972   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8973   # is contrary to our usage.  Disable this feature.
8974   alias -g '${1+"$@"}'='"$@"'
8975   setopt NO_GLOB_SUBST
8976 else
8977   case `(set -o) 2>/dev/null` in #(
8978   *posix*) :
8979     set -o posix ;; #(
8980   *) :
8981      ;;
8982 esac
8983 fi
8984
8985
8986 as_nl='
8987 '
8988 export as_nl
8989 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8990 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8991 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8992 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8993 # Prefer a ksh shell builtin over an external printf program on Solaris,
8994 # but without wasting forks for bash or zsh.
8995 if test -z "$BASH_VERSION$ZSH_VERSION" \
8996     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8997   as_echo='print -r --'
8998   as_echo_n='print -rn --'
8999 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9000   as_echo='printf %s\n'
9001   as_echo_n='printf %s'
9002 else
9003   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9004     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9005     as_echo_n='/usr/ucb/echo -n'
9006   else
9007     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9008     as_echo_n_body='eval
9009       arg=$1;
9010       case $arg in #(
9011       *"$as_nl"*)
9012         expr "X$arg" : "X\\(.*\\)$as_nl";
9013         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9014       esac;
9015       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9016     '
9017     export as_echo_n_body
9018     as_echo_n='sh -c $as_echo_n_body as_echo'
9019   fi
9020   export as_echo_body
9021   as_echo='sh -c $as_echo_body as_echo'
9022 fi
9023
9024 # The user is always right.
9025 if test "${PATH_SEPARATOR+set}" != set; then
9026   PATH_SEPARATOR=:
9027   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9028     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9029       PATH_SEPARATOR=';'
9030   }
9031 fi
9032
9033
9034 # IFS
9035 # We need space, tab and new line, in precisely that order.  Quoting is
9036 # there to prevent editors from complaining about space-tab.
9037 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9038 # splitting by setting IFS to empty value.)
9039 IFS=" ""        $as_nl"
9040
9041 # Find who we are.  Look in the path if we contain no directory separator.
9042 as_myself=
9043 case $0 in #((
9044   *[\\/]* ) as_myself=$0 ;;
9045   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9047 do
9048   IFS=$as_save_IFS
9049   test -z "$as_dir" && as_dir=.
9050     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9051   done
9052 IFS=$as_save_IFS
9053
9054      ;;
9055 esac
9056 # We did not find ourselves, most probably we were run as `sh COMMAND'
9057 # in which case we are not to be found in the path.
9058 if test "x$as_myself" = x; then
9059   as_myself=$0
9060 fi
9061 if test ! -f "$as_myself"; then
9062   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9063   exit 1
9064 fi
9065
9066 # Unset variables that we do not need and which cause bugs (e.g. in
9067 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9068 # suppresses any "Segmentation fault" message there.  '((' could
9069 # trigger a bug in pdksh 5.2.14.
9070 for as_var in BASH_ENV ENV MAIL MAILPATH
9071 do eval test x\${$as_var+set} = xset \
9072   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9073 done
9074 PS1='$ '
9075 PS2='> '
9076 PS4='+ '
9077
9078 # NLS nuisances.
9079 LC_ALL=C
9080 export LC_ALL
9081 LANGUAGE=C
9082 export LANGUAGE
9083
9084 # CDPATH.
9085 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9086
9087
9088 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9089 # ----------------------------------------
9090 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9091 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9092 # script with STATUS, using 1 if that was 0.
9093 as_fn_error ()
9094 {
9095   as_status=$1; test $as_status -eq 0 && as_status=1
9096   if test "$4"; then
9097     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9098     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9099   fi
9100   $as_echo "$as_me: error: $2" >&2
9101   as_fn_exit $as_status
9102 } # as_fn_error
9103
9104
9105 # as_fn_set_status STATUS
9106 # -----------------------
9107 # Set $? to STATUS, without forking.
9108 as_fn_set_status ()
9109 {
9110   return $1
9111 } # as_fn_set_status
9112
9113 # as_fn_exit STATUS
9114 # -----------------
9115 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9116 as_fn_exit ()
9117 {
9118   set +e
9119   as_fn_set_status $1
9120   exit $1
9121 } # as_fn_exit
9122
9123 # as_fn_unset VAR
9124 # ---------------
9125 # Portably unset VAR.
9126 as_fn_unset ()
9127 {
9128   { eval $1=; unset $1;}
9129 }
9130 as_unset=as_fn_unset
9131 # as_fn_append VAR VALUE
9132 # ----------------------
9133 # Append the text in VALUE to the end of the definition contained in VAR. Take
9134 # advantage of any shell optimizations that allow amortized linear growth over
9135 # repeated appends, instead of the typical quadratic growth present in naive
9136 # implementations.
9137 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9138   eval 'as_fn_append ()
9139   {
9140     eval $1+=\$2
9141   }'
9142 else
9143   as_fn_append ()
9144   {
9145     eval $1=\$$1\$2
9146   }
9147 fi # as_fn_append
9148
9149 # as_fn_arith ARG...
9150 # ------------------
9151 # Perform arithmetic evaluation on the ARGs, and store the result in the
9152 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9153 # must be portable across $(()) and expr.
9154 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9155   eval 'as_fn_arith ()
9156   {
9157     as_val=$(( $* ))
9158   }'
9159 else
9160   as_fn_arith ()
9161   {
9162     as_val=`expr "$@" || test $? -eq 1`
9163   }
9164 fi # as_fn_arith
9165
9166
9167 if expr a : '\(a\)' >/dev/null 2>&1 &&
9168    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9169   as_expr=expr
9170 else
9171   as_expr=false
9172 fi
9173
9174 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9175   as_basename=basename
9176 else
9177   as_basename=false
9178 fi
9179
9180 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9181   as_dirname=dirname
9182 else
9183   as_dirname=false
9184 fi
9185
9186 as_me=`$as_basename -- "$0" ||
9187 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9188          X"$0" : 'X\(//\)$' \| \
9189          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9190 $as_echo X/"$0" |
9191     sed '/^.*\/\([^/][^/]*\)\/*$/{
9192             s//\1/
9193             q
9194           }
9195           /^X\/\(\/\/\)$/{
9196             s//\1/
9197             q
9198           }
9199           /^X\/\(\/\).*/{
9200             s//\1/
9201             q
9202           }
9203           s/.*/./; q'`
9204
9205 # Avoid depending upon Character Ranges.
9206 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9207 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9208 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9209 as_cr_digits='0123456789'
9210 as_cr_alnum=$as_cr_Letters$as_cr_digits
9211
9212 ECHO_C= ECHO_N= ECHO_T=
9213 case `echo -n x` in #(((((
9214 -n*)
9215   case `echo 'xy\c'` in
9216   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9217   xy)  ECHO_C='\c';;
9218   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9219        ECHO_T=' ';;
9220   esac;;
9221 *)
9222   ECHO_N='-n';;
9223 esac
9224
9225 rm -f conf$$ conf$$.exe conf$$.file
9226 if test -d conf$$.dir; then
9227   rm -f conf$$.dir/conf$$.file
9228 else
9229   rm -f conf$$.dir
9230   mkdir conf$$.dir 2>/dev/null
9231 fi
9232 if (echo >conf$$.file) 2>/dev/null; then
9233   if ln -s conf$$.file conf$$ 2>/dev/null; then
9234     as_ln_s='ln -s'
9235     # ... but there are two gotchas:
9236     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9237     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9238     # In both cases, we have to default to `cp -p'.
9239     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9240       as_ln_s='cp -p'
9241   elif ln conf$$.file conf$$ 2>/dev/null; then
9242     as_ln_s=ln
9243   else
9244     as_ln_s='cp -p'
9245   fi
9246 else
9247   as_ln_s='cp -p'
9248 fi
9249 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9250 rmdir conf$$.dir 2>/dev/null
9251
9252
9253 # as_fn_mkdir_p
9254 # -------------
9255 # Create "$as_dir" as a directory, including parents if necessary.
9256 as_fn_mkdir_p ()
9257 {
9258
9259   case $as_dir in #(
9260   -*) as_dir=./$as_dir;;
9261   esac
9262   test -d "$as_dir" || eval $as_mkdir_p || {
9263     as_dirs=
9264     while :; do
9265       case $as_dir in #(
9266       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9267       *) as_qdir=$as_dir;;
9268       esac
9269       as_dirs="'$as_qdir' $as_dirs"
9270       as_dir=`$as_dirname -- "$as_dir" ||
9271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9272          X"$as_dir" : 'X\(//\)[^/]' \| \
9273          X"$as_dir" : 'X\(//\)$' \| \
9274          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9275 $as_echo X"$as_dir" |
9276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9277             s//\1/
9278             q
9279           }
9280           /^X\(\/\/\)[^/].*/{
9281             s//\1/
9282             q
9283           }
9284           /^X\(\/\/\)$/{
9285             s//\1/
9286             q
9287           }
9288           /^X\(\/\).*/{
9289             s//\1/
9290             q
9291           }
9292           s/.*/./; q'`
9293       test -d "$as_dir" && break
9294     done
9295     test -z "$as_dirs" || eval "mkdir $as_dirs"
9296   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9297
9298
9299 } # as_fn_mkdir_p
9300 if mkdir -p . 2>/dev/null; then
9301   as_mkdir_p='mkdir -p "$as_dir"'
9302 else
9303   test -d ./-p && rmdir ./-p
9304   as_mkdir_p=false
9305 fi
9306
9307 if test -x / >/dev/null 2>&1; then
9308   as_test_x='test -x'
9309 else
9310   if ls -dL / >/dev/null 2>&1; then
9311     as_ls_L_option=L
9312   else
9313     as_ls_L_option=
9314   fi
9315   as_test_x='
9316     eval sh -c '\''
9317       if test -d "$1"; then
9318         test -d "$1/.";
9319       else
9320         case $1 in #(
9321         -*)set "./$1";;
9322         esac;
9323         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9324         ???[sx]*):;;*)false;;esac;fi
9325     '\'' sh
9326   '
9327 fi
9328 as_executable_p=$as_test_x
9329
9330 # Sed expression to map a string onto a valid CPP name.
9331 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9332
9333 # Sed expression to map a string onto a valid variable name.
9334 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9335
9336
9337 exec 6>&1
9338 ## ----------------------------------- ##
9339 ## Main body of $CONFIG_STATUS script. ##
9340 ## ----------------------------------- ##
9341 _ASEOF
9342 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9343
9344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9345 # Save the log message, to keep $0 and so on meaningful, and to
9346 # report actual input values of CONFIG_FILES etc. instead of their
9347 # values after options handling.
9348 ac_log="
9349 This file was extended by psensor $as_me 0.7.0.x, which was
9350 generated by GNU Autoconf 2.68.  Invocation command line was
9351
9352   CONFIG_FILES    = $CONFIG_FILES
9353   CONFIG_HEADERS  = $CONFIG_HEADERS
9354   CONFIG_LINKS    = $CONFIG_LINKS
9355   CONFIG_COMMANDS = $CONFIG_COMMANDS
9356   $ $0 $@
9357
9358 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9359 "
9360
9361 _ACEOF
9362
9363 case $ac_config_files in *"
9364 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9365 esac
9366
9367 case $ac_config_headers in *"
9368 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9369 esac
9370
9371
9372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9373 # Files that config.status was made for.
9374 config_files="$ac_config_files"
9375 config_headers="$ac_config_headers"
9376 config_commands="$ac_config_commands"
9377
9378 _ACEOF
9379
9380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9381 ac_cs_usage="\
9382 \`$as_me' instantiates files and other configuration actions
9383 from templates according to the current configuration.  Unless the files
9384 and actions are specified as TAGs, all are instantiated by default.
9385
9386 Usage: $0 [OPTION]... [TAG]...
9387
9388   -h, --help       print this help, then exit
9389   -V, --version    print version number and configuration settings, then exit
9390       --config     print configuration, then exit
9391   -q, --quiet, --silent
9392                    do not print progress messages
9393   -d, --debug      don't remove temporary files
9394       --recheck    update $as_me by reconfiguring in the same conditions
9395       --file=FILE[:TEMPLATE]
9396                    instantiate the configuration file FILE
9397       --header=FILE[:TEMPLATE]
9398                    instantiate the configuration header FILE
9399
9400 Configuration files:
9401 $config_files
9402
9403 Configuration headers:
9404 $config_headers
9405
9406 Configuration commands:
9407 $config_commands
9408
9409 Report bugs to <jeanfi@gmail.com>.
9410 psensor home page: <http://wpitchoune.net/psensor>."
9411
9412 _ACEOF
9413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9414 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9415 ac_cs_version="\\
9416 psensor config.status 0.7.0.x
9417 configured by $0, generated by GNU Autoconf 2.68,
9418   with options \\"\$ac_cs_config\\"
9419
9420 Copyright (C) 2010 Free Software Foundation, Inc.
9421 This config.status script is free software; the Free Software Foundation
9422 gives unlimited permission to copy, distribute and modify it."
9423
9424 ac_pwd='$ac_pwd'
9425 srcdir='$srcdir'
9426 INSTALL='$INSTALL'
9427 MKDIR_P='$MKDIR_P'
9428 AWK='$AWK'
9429 test -n "\$AWK" || AWK=awk
9430 _ACEOF
9431
9432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9433 # The default lists apply if the user does not specify any file.
9434 ac_need_defaults=:
9435 while test $# != 0
9436 do
9437   case $1 in
9438   --*=?*)
9439     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9440     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9441     ac_shift=:
9442     ;;
9443   --*=)
9444     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9445     ac_optarg=
9446     ac_shift=:
9447     ;;
9448   *)
9449     ac_option=$1
9450     ac_optarg=$2
9451     ac_shift=shift
9452     ;;
9453   esac
9454
9455   case $ac_option in
9456   # Handling of the options.
9457   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9458     ac_cs_recheck=: ;;
9459   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9460     $as_echo "$ac_cs_version"; exit ;;
9461   --config | --confi | --conf | --con | --co | --c )
9462     $as_echo "$ac_cs_config"; exit ;;
9463   --debug | --debu | --deb | --de | --d | -d )
9464     debug=: ;;
9465   --file | --fil | --fi | --f )
9466     $ac_shift
9467     case $ac_optarg in
9468     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9469     '') as_fn_error $? "missing file argument" ;;
9470     esac
9471     as_fn_append CONFIG_FILES " '$ac_optarg'"
9472     ac_need_defaults=false;;
9473   --header | --heade | --head | --hea )
9474     $ac_shift
9475     case $ac_optarg in
9476     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9477     esac
9478     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9479     ac_need_defaults=false;;
9480   --he | --h)
9481     # Conflict between --help and --header
9482     as_fn_error $? "ambiguous option: \`$1'
9483 Try \`$0 --help' for more information.";;
9484   --help | --hel | -h )
9485     $as_echo "$ac_cs_usage"; exit ;;
9486   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9487   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9488     ac_cs_silent=: ;;
9489
9490   # This is an error.
9491   -*) as_fn_error $? "unrecognized option: \`$1'
9492 Try \`$0 --help' for more information." ;;
9493
9494   *) as_fn_append ac_config_targets " $1"
9495      ac_need_defaults=false ;;
9496
9497   esac
9498   shift
9499 done
9500
9501 ac_configure_extra_args=
9502
9503 if $ac_cs_silent; then
9504   exec 6>/dev/null
9505   ac_configure_extra_args="$ac_configure_extra_args --silent"
9506 fi
9507
9508 _ACEOF
9509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9510 if \$ac_cs_recheck; then
9511   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9512   shift
9513   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9514   CONFIG_SHELL='$SHELL'
9515   export CONFIG_SHELL
9516   exec "\$@"
9517 fi
9518
9519 _ACEOF
9520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9521 exec 5>>config.log
9522 {
9523   echo
9524   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9525 ## Running $as_me. ##
9526 _ASBOX
9527   $as_echo "$ac_log"
9528 } >&5
9529
9530 _ACEOF
9531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9532 #
9533 # INIT-COMMANDS
9534 #
9535 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9536 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9537     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9538     # from automake < 1.5.
9539     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9540     # Capture the value of LINGUAS because we need it to compute CATALOGS.
9541     LINGUAS="${LINGUAS-%UNSET%}"
9542
9543
9544 _ACEOF
9545
9546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9547
9548 # Handling of arguments.
9549 for ac_config_target in $ac_config_targets
9550 do
9551   case $ac_config_target in
9552     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9553     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9554     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9555     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9556     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9557     "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
9558     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9559     "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
9560     "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
9561     "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
9562     "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
9563     "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
9564     "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
9565     "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
9566     "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
9567     "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
9568     "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
9569     "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
9570     "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
9571     "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
9572     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9573     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9574
9575   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9576   esac
9577 done
9578
9579
9580 # If the user did not use the arguments to specify the items to instantiate,
9581 # then the envvar interface is used.  Set only those that are not.
9582 # We use the long form for the default assignment because of an extremely
9583 # bizarre bug on SunOS 4.1.3.
9584 if $ac_need_defaults; then
9585   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9586   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9587   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9588 fi
9589
9590 # Have a temporary directory for convenience.  Make it in the build tree
9591 # simply because there is no reason against having it here, and in addition,
9592 # creating and moving files from /tmp can sometimes cause problems.
9593 # Hook for its removal unless debugging.
9594 # Note that there is a small window in which the directory will not be cleaned:
9595 # after its creation but before its name has been assigned to `$tmp'.
9596 $debug ||
9597 {
9598   tmp= ac_tmp=
9599   trap 'exit_status=$?
9600   : "${ac_tmp:=$tmp}"
9601   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9602 ' 0
9603   trap 'as_fn_exit 1' 1 2 13 15
9604 }
9605 # Create a (secure) tmp directory for tmp files.
9606
9607 {
9608   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9609   test -d "$tmp"
9610 }  ||
9611 {
9612   tmp=./conf$$-$RANDOM
9613   (umask 077 && mkdir "$tmp")
9614 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9615 ac_tmp=$tmp
9616
9617 # Set up the scripts for CONFIG_FILES section.
9618 # No need to generate them if there are no CONFIG_FILES.
9619 # This happens for instance with `./config.status config.h'.
9620 if test -n "$CONFIG_FILES"; then
9621
9622
9623 ac_cr=`echo X | tr X '\015'`
9624 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9625 # But we know of no other shell where ac_cr would be empty at this
9626 # point, so we can use a bashism as a fallback.
9627 if test "x$ac_cr" = x; then
9628   eval ac_cr=\$\'\\r\'
9629 fi
9630 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9631 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9632   ac_cs_awk_cr='\\r'
9633 else
9634   ac_cs_awk_cr=$ac_cr
9635 fi
9636
9637 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9638 _ACEOF
9639
9640
9641 {
9642   echo "cat >conf$$subs.awk <<_ACEOF" &&
9643   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9644   echo "_ACEOF"
9645 } >conf$$subs.sh ||
9646   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9647 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9648 ac_delim='%!_!# '
9649 for ac_last_try in false false false false false :; do
9650   . ./conf$$subs.sh ||
9651     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9652
9653   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9654   if test $ac_delim_n = $ac_delim_num; then
9655     break
9656   elif $ac_last_try; then
9657     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9658   else
9659     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9660   fi
9661 done
9662 rm -f conf$$subs.sh
9663
9664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9665 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9666 _ACEOF
9667 sed -n '
9668 h
9669 s/^/S["/; s/!.*/"]=/
9670 p
9671 g
9672 s/^[^!]*!//
9673 :repl
9674 t repl
9675 s/'"$ac_delim"'$//
9676 t delim
9677 :nl
9678 h
9679 s/\(.\{148\}\)..*/\1/
9680 t more1
9681 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9682 p
9683 n
9684 b repl
9685 :more1
9686 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9687 p
9688 g
9689 s/.\{148\}//
9690 t nl
9691 :delim
9692 h
9693 s/\(.\{148\}\)..*/\1/
9694 t more2
9695 s/["\\]/\\&/g; s/^/"/; s/$/"/
9696 p
9697 b
9698 :more2
9699 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9700 p
9701 g
9702 s/.\{148\}//
9703 t delim
9704 ' <conf$$subs.awk | sed '
9705 /^[^""]/{
9706   N
9707   s/\n//
9708 }
9709 ' >>$CONFIG_STATUS || ac_write_fail=1
9710 rm -f conf$$subs.awk
9711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9712 _ACAWK
9713 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9714   for (key in S) S_is_set[key] = 1
9715   FS = "\a"
9716
9717 }
9718 {
9719   line = $ 0
9720   nfields = split(line, field, "@")
9721   substed = 0
9722   len = length(field[1])
9723   for (i = 2; i < nfields; i++) {
9724     key = field[i]
9725     keylen = length(key)
9726     if (S_is_set[key]) {
9727       value = S[key]
9728       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9729       len += length(value) + length(field[++i])
9730       substed = 1
9731     } else
9732       len += 1 + keylen
9733   }
9734
9735   print line
9736 }
9737
9738 _ACAWK
9739 _ACEOF
9740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9741 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9742   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9743 else
9744   cat
9745 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9746   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9747 _ACEOF
9748
9749 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9750 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9751 # trailing colons and then remove the whole line if VPATH becomes empty
9752 # (actually we leave an empty line to preserve line numbers).
9753 if test "x$srcdir" = x.; then
9754   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
9755 h
9756 s///
9757 s/^/:/
9758 s/[      ]*$/:/
9759 s/:\$(srcdir):/:/g
9760 s/:\${srcdir}:/:/g
9761 s/:@srcdir@:/:/g
9762 s/^:*//
9763 s/:*$//
9764 x
9765 s/\(=[   ]*\).*/\1/
9766 G
9767 s/\n//
9768 s/^[^=]*=[       ]*$//
9769 }'
9770 fi
9771
9772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9773 fi # test -n "$CONFIG_FILES"
9774
9775 # Set up the scripts for CONFIG_HEADERS section.
9776 # No need to generate them if there are no CONFIG_HEADERS.
9777 # This happens for instance with `./config.status Makefile'.
9778 if test -n "$CONFIG_HEADERS"; then
9779 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9780 BEGIN {
9781 _ACEOF
9782
9783 # Transform confdefs.h into an awk script `defines.awk', embedded as
9784 # here-document in config.status, that substitutes the proper values into
9785 # config.h.in to produce config.h.
9786
9787 # Create a delimiter string that does not exist in confdefs.h, to ease
9788 # handling of long lines.
9789 ac_delim='%!_!# '
9790 for ac_last_try in false false :; do
9791   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9792   if test -z "$ac_tt"; then
9793     break
9794   elif $ac_last_try; then
9795     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9796   else
9797     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9798   fi
9799 done
9800
9801 # For the awk script, D is an array of macro values keyed by name,
9802 # likewise P contains macro parameters if any.  Preserve backslash
9803 # newline sequences.
9804
9805 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9806 sed -n '
9807 s/.\{148\}/&'"$ac_delim"'/g
9808 t rset
9809 :rset
9810 s/^[     ]*#[    ]*define[       ][      ]*/ /
9811 t def
9812 d
9813 :def
9814 s/\\$//
9815 t bsnl
9816 s/["\\]/\\&/g
9817 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9818 D["\1"]=" \3"/p
9819 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
9820 d
9821 :bsnl
9822 s/["\\]/\\&/g
9823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9824 D["\1"]=" \3\\\\\\n"\\/p
9825 t cont
9826 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9827 t cont
9828 d
9829 :cont
9830 n
9831 s/.\{148\}/&'"$ac_delim"'/g
9832 t clear
9833 :clear
9834 s/\\$//
9835 t bsnlc
9836 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9837 d
9838 :bsnlc
9839 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9840 b cont
9841 ' <confdefs.h | sed '
9842 s/'"$ac_delim"'/"\\\
9843 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9844
9845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9846   for (key in D) D_is_set[key] = 1
9847   FS = "\a"
9848 }
9849 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9850   line = \$ 0
9851   split(line, arg, " ")
9852   if (arg[1] == "#") {
9853     defundef = arg[2]
9854     mac1 = arg[3]
9855   } else {
9856     defundef = substr(arg[1], 2)
9857     mac1 = arg[2]
9858   }
9859   split(mac1, mac2, "(") #)
9860   macro = mac2[1]
9861   prefix = substr(line, 1, index(line, defundef) - 1)
9862   if (D_is_set[macro]) {
9863     # Preserve the white space surrounding the "#".
9864     print prefix "define", macro P[macro] D[macro]
9865     next
9866   } else {
9867     # Replace #undef with comments.  This is necessary, for example,
9868     # in the case of _POSIX_SOURCE, which is predefined and required
9869     # on some systems where configure will not decide to define it.
9870     if (defundef == "undef") {
9871       print "/*", prefix defundef, macro, "*/"
9872       next
9873     }
9874   }
9875 }
9876 { print }
9877 _ACAWK
9878 _ACEOF
9879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9880   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9881 fi # test -n "$CONFIG_HEADERS"
9882
9883
9884 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9885 shift
9886 for ac_tag
9887 do
9888   case $ac_tag in
9889   :[FHLC]) ac_mode=$ac_tag; continue;;
9890   esac
9891   case $ac_mode$ac_tag in
9892   :[FHL]*:*);;
9893   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9894   :[FH]-) ac_tag=-:-;;
9895   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9896   esac
9897   ac_save_IFS=$IFS
9898   IFS=:
9899   set x $ac_tag
9900   IFS=$ac_save_IFS
9901   shift
9902   ac_file=$1
9903   shift
9904
9905   case $ac_mode in
9906   :L) ac_source=$1;;
9907   :[FH])
9908     ac_file_inputs=
9909     for ac_f
9910     do
9911       case $ac_f in
9912       -) ac_f="$ac_tmp/stdin";;
9913       *) # Look for the file first in the build tree, then in the source tree
9914          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9915          # because $ac_f cannot contain `:'.
9916          test -f "$ac_f" ||
9917            case $ac_f in
9918            [\\/$]*) false;;
9919            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9920            esac ||
9921            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9922       esac
9923       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9924       as_fn_append ac_file_inputs " '$ac_f'"
9925     done
9926
9927     # Let's still pretend it is `configure' which instantiates (i.e., don't
9928     # use $as_me), people would be surprised to read:
9929     #    /* config.h.  Generated by config.status.  */
9930     configure_input='Generated from '`
9931           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9932         `' by configure.'
9933     if test x"$ac_file" != x-; then
9934       configure_input="$ac_file.  $configure_input"
9935       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9936 $as_echo "$as_me: creating $ac_file" >&6;}
9937     fi
9938     # Neutralize special characters interpreted by sed in replacement strings.
9939     case $configure_input in #(
9940     *\&* | *\|* | *\\* )
9941        ac_sed_conf_input=`$as_echo "$configure_input" |
9942        sed 's/[\\\\&|]/\\\\&/g'`;; #(
9943     *) ac_sed_conf_input=$configure_input;;
9944     esac
9945
9946     case $ac_tag in
9947     *:-:* | *:-) cat >"$ac_tmp/stdin" \
9948       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9949     esac
9950     ;;
9951   esac
9952
9953   ac_dir=`$as_dirname -- "$ac_file" ||
9954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9955          X"$ac_file" : 'X\(//\)[^/]' \| \
9956          X"$ac_file" : 'X\(//\)$' \| \
9957          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9958 $as_echo X"$ac_file" |
9959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9960             s//\1/
9961             q
9962           }
9963           /^X\(\/\/\)[^/].*/{
9964             s//\1/
9965             q
9966           }
9967           /^X\(\/\/\)$/{
9968             s//\1/
9969             q
9970           }
9971           /^X\(\/\).*/{
9972             s//\1/
9973             q
9974           }
9975           s/.*/./; q'`
9976   as_dir="$ac_dir"; as_fn_mkdir_p
9977   ac_builddir=.
9978
9979 case "$ac_dir" in
9980 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9981 *)
9982   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9983   # A ".." for each directory in $ac_dir_suffix.
9984   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9985   case $ac_top_builddir_sub in
9986   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9987   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9988   esac ;;
9989 esac
9990 ac_abs_top_builddir=$ac_pwd
9991 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9992 # for backward compatibility:
9993 ac_top_builddir=$ac_top_build_prefix
9994
9995 case $srcdir in
9996   .)  # We are building in place.
9997     ac_srcdir=.
9998     ac_top_srcdir=$ac_top_builddir_sub
9999     ac_abs_top_srcdir=$ac_pwd ;;
10000   [\\/]* | ?:[\\/]* )  # Absolute name.
10001     ac_srcdir=$srcdir$ac_dir_suffix;
10002     ac_top_srcdir=$srcdir
10003     ac_abs_top_srcdir=$srcdir ;;
10004   *) # Relative name.
10005     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10006     ac_top_srcdir=$ac_top_build_prefix$srcdir
10007     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10008 esac
10009 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10010
10011
10012   case $ac_mode in
10013   :F)
10014   #
10015   # CONFIG_FILE
10016   #
10017
10018   case $INSTALL in
10019   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10020   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10021   esac
10022   ac_MKDIR_P=$MKDIR_P
10023   case $MKDIR_P in
10024   [\\/$]* | ?:[\\/]* ) ;;
10025   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10026   esac
10027 _ACEOF
10028
10029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10030 # If the template does not know about datarootdir, expand it.
10031 # FIXME: This hack should be removed a few years after 2.60.
10032 ac_datarootdir_hack=; ac_datarootdir_seen=
10033 ac_sed_dataroot='
10034 /datarootdir/ {
10035   p
10036   q
10037 }
10038 /@datadir@/p
10039 /@docdir@/p
10040 /@infodir@/p
10041 /@localedir@/p
10042 /@mandir@/p'
10043 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10044 *datarootdir*) ac_datarootdir_seen=yes;;
10045 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10046   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10047 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10048 _ACEOF
10049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10050   ac_datarootdir_hack='
10051   s&@datadir@&$datadir&g
10052   s&@docdir@&$docdir&g
10053   s&@infodir@&$infodir&g
10054   s&@localedir@&$localedir&g
10055   s&@mandir@&$mandir&g
10056   s&\\\${datarootdir}&$datarootdir&g' ;;
10057 esac
10058 _ACEOF
10059
10060 # Neutralize VPATH when `$srcdir' = `.'.
10061 # Shell code in configure.ac might set extrasub.
10062 # FIXME: do we really want to maintain this feature?
10063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10064 ac_sed_extra="$ac_vpsub
10065 $extrasub
10066 _ACEOF
10067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10068 :t
10069 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10070 s|@configure_input@|$ac_sed_conf_input|;t t
10071 s&@top_builddir@&$ac_top_builddir_sub&;t t
10072 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10073 s&@srcdir@&$ac_srcdir&;t t
10074 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10075 s&@top_srcdir@&$ac_top_srcdir&;t t
10076 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10077 s&@builddir@&$ac_builddir&;t t
10078 s&@abs_builddir@&$ac_abs_builddir&;t t
10079 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10080 s&@INSTALL@&$ac_INSTALL&;t t
10081 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10082 $ac_datarootdir_hack
10083 "
10084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10085   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10086
10087 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10088   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10089   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10090       "$ac_tmp/out"`; test -z "$ac_out"; } &&
10091   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10092 which seems to be undefined.  Please make sure it is defined" >&5
10093 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10094 which seems to be undefined.  Please make sure it is defined" >&2;}
10095
10096   rm -f "$ac_tmp/stdin"
10097   case $ac_file in
10098   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10099   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10100   esac \
10101   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10102  ;;
10103   :H)
10104   #
10105   # CONFIG_HEADER
10106   #
10107   if test x"$ac_file" != x-; then
10108     {
10109       $as_echo "/* $configure_input  */" \
10110       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10111     } >"$ac_tmp/config.h" \
10112       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10113     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10114       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10115 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10116     else
10117       rm -f "$ac_file"
10118       mv "$ac_tmp/config.h" "$ac_file" \
10119         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10120     fi
10121   else
10122     $as_echo "/* $configure_input  */" \
10123       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10124       || as_fn_error $? "could not create -" "$LINENO" 5
10125   fi
10126 # Compute "$ac_file"'s index in $config_headers.
10127 _am_arg="$ac_file"
10128 _am_stamp_count=1
10129 for _am_header in $config_headers :; do
10130   case $_am_header in
10131     $_am_arg | $_am_arg:* )
10132       break ;;
10133     * )
10134       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10135   esac
10136 done
10137 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10138 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10139          X"$_am_arg" : 'X\(//\)[^/]' \| \
10140          X"$_am_arg" : 'X\(//\)$' \| \
10141          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10142 $as_echo X"$_am_arg" |
10143     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10144             s//\1/
10145             q
10146           }
10147           /^X\(\/\/\)[^/].*/{
10148             s//\1/
10149             q
10150           }
10151           /^X\(\/\/\)$/{
10152             s//\1/
10153             q
10154           }
10155           /^X\(\/\).*/{
10156             s//\1/
10157             q
10158           }
10159           s/.*/./; q'`/stamp-h$_am_stamp_count
10160  ;;
10161
10162   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10163 $as_echo "$as_me: executing $ac_file commands" >&6;}
10164  ;;
10165   esac
10166
10167
10168   case $ac_file$ac_mode in
10169     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10170   # Autoconf 2.62 quotes --file arguments for eval, but not when files
10171   # are listed without --file.  Let's play safe and only enable the eval
10172   # if we detect the quoting.
10173   case $CONFIG_FILES in
10174   *\'*) eval set x "$CONFIG_FILES" ;;
10175   *)   set x $CONFIG_FILES ;;
10176   esac
10177   shift
10178   for mf
10179   do
10180     # Strip MF so we end up with the name of the file.
10181     mf=`echo "$mf" | sed -e 's/:.*$//'`
10182     # Check whether this is an Automake generated Makefile or not.
10183     # We used to match only the files named `Makefile.in', but
10184     # some people rename them; so instead we look at the file content.
10185     # Grep'ing the first line is not enough: some people post-process
10186     # each Makefile.in and add a new line on top of each file to say so.
10187     # Grep'ing the whole file is not good either: AIX grep has a line
10188     # limit of 2048, but all sed's we know have understand at least 4000.
10189     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10190       dirpart=`$as_dirname -- "$mf" ||
10191 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10192          X"$mf" : 'X\(//\)[^/]' \| \
10193          X"$mf" : 'X\(//\)$' \| \
10194          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10195 $as_echo X"$mf" |
10196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10197             s//\1/
10198             q
10199           }
10200           /^X\(\/\/\)[^/].*/{
10201             s//\1/
10202             q
10203           }
10204           /^X\(\/\/\)$/{
10205             s//\1/
10206             q
10207           }
10208           /^X\(\/\).*/{
10209             s//\1/
10210             q
10211           }
10212           s/.*/./; q'`
10213     else
10214       continue
10215     fi
10216     # Extract the definition of DEPDIR, am__include, and am__quote
10217     # from the Makefile without running `make'.
10218     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10219     test -z "$DEPDIR" && continue
10220     am__include=`sed -n 's/^am__include = //p' < "$mf"`
10221     test -z "am__include" && continue
10222     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10223     # When using ansi2knr, U may be empty or an underscore; expand it
10224     U=`sed -n 's/^U = //p' < "$mf"`
10225     # Find all dependency output files, they are included files with
10226     # $(DEPDIR) in their names.  We invoke sed twice because it is the
10227     # simplest approach to changing $(DEPDIR) to its actual value in the
10228     # expansion.
10229     for file in `sed -n "
10230       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10231          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10232       # Make sure the directory exists.
10233       test -f "$dirpart/$file" && continue
10234       fdir=`$as_dirname -- "$file" ||
10235 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10236          X"$file" : 'X\(//\)[^/]' \| \
10237          X"$file" : 'X\(//\)$' \| \
10238          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10239 $as_echo X"$file" |
10240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10241             s//\1/
10242             q
10243           }
10244           /^X\(\/\/\)[^/].*/{
10245             s//\1/
10246             q
10247           }
10248           /^X\(\/\/\)$/{
10249             s//\1/
10250             q
10251           }
10252           /^X\(\/\).*/{
10253             s//\1/
10254             q
10255           }
10256           s/.*/./; q'`
10257       as_dir=$dirpart/$fdir; as_fn_mkdir_p
10258       # echo "creating $dirpart/$file"
10259       echo '# dummy' > "$dirpart/$file"
10260     done
10261   done
10262 }
10263  ;;
10264     "po-directories":C)
10265     for ac_file in $CONFIG_FILES; do
10266       # Support "outfile[:infile[:infile...]]"
10267       case "$ac_file" in
10268         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10269       esac
10270       # PO directories have a Makefile.in generated from Makefile.in.in.
10271       case "$ac_file" in */Makefile.in)
10272         # Adjust a relative srcdir.
10273         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10274         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10275         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10276         # In autoconf-2.13 it is called $ac_given_srcdir.
10277         # In autoconf-2.50 it is called $srcdir.
10278         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10279         case "$ac_given_srcdir" in
10280           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10281           /*) top_srcdir="$ac_given_srcdir" ;;
10282           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10283         esac
10284         # Treat a directory as a PO directory if and only if it has a
10285         # POTFILES.in file. This allows packages to have multiple PO
10286         # directories under different names or in different locations.
10287         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10288           rm -f "$ac_dir/POTFILES"
10289           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10290           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10291           POMAKEFILEDEPS="POTFILES.in"
10292           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10293           # on $ac_dir but don't depend on user-specified configuration
10294           # parameters.
10295           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10296             # The LINGUAS file contains the set of available languages.
10297             if test -n "$OBSOLETE_ALL_LINGUAS"; then
10298               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10299             fi
10300             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10301             # Hide the ALL_LINGUAS assigment from automake < 1.5.
10302             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10303             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10304           else
10305             # The set of available languages was given in configure.in.
10306             # Hide the ALL_LINGUAS assigment from automake < 1.5.
10307             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10308           fi
10309           # Compute POFILES
10310           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10311           # Compute UPDATEPOFILES
10312           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10313           # Compute DUMMYPOFILES
10314           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10315           # Compute GMOFILES
10316           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10317           case "$ac_given_srcdir" in
10318             .) srcdirpre= ;;
10319             *) srcdirpre='$(srcdir)/' ;;
10320           esac
10321           POFILES=
10322           UPDATEPOFILES=
10323           DUMMYPOFILES=
10324           GMOFILES=
10325           for lang in $ALL_LINGUAS; do
10326             POFILES="$POFILES $srcdirpre$lang.po"
10327             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10328             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10329             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10330           done
10331           # CATALOGS depends on both $ac_dir and the user's LINGUAS
10332           # environment variable.
10333           INST_LINGUAS=
10334           if test -n "$ALL_LINGUAS"; then
10335             for presentlang in $ALL_LINGUAS; do
10336               useit=no
10337               if test "%UNSET%" != "$LINGUAS"; then
10338                 desiredlanguages="$LINGUAS"
10339               else
10340                 desiredlanguages="$ALL_LINGUAS"
10341               fi
10342               for desiredlang in $desiredlanguages; do
10343                 # Use the presentlang catalog if desiredlang is
10344                 #   a. equal to presentlang, or
10345                 #   b. a variant of presentlang (because in this case,
10346                 #      presentlang can be used as a fallback for messages
10347                 #      which are not translated in the desiredlang catalog).
10348                 case "$desiredlang" in
10349                   "$presentlang"*) useit=yes;;
10350                 esac
10351               done
10352               if test $useit = yes; then
10353                 INST_LINGUAS="$INST_LINGUAS $presentlang"
10354               fi
10355             done
10356           fi
10357           CATALOGS=
10358           if test -n "$INST_LINGUAS"; then
10359             for lang in $INST_LINGUAS; do
10360               CATALOGS="$CATALOGS $lang.gmo"
10361             done
10362           fi
10363           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10364           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10365           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10366             if test -f "$f"; then
10367               case "$f" in
10368                 *.orig | *.bak | *~) ;;
10369                 *) cat "$f" >> "$ac_dir/Makefile" ;;
10370               esac
10371             fi
10372           done
10373         fi
10374         ;;
10375       esac
10376     done ;;
10377
10378   esac
10379 done # for ac_tag
10380
10381
10382 as_fn_exit 0
10383 _ACEOF
10384 ac_clean_files=$ac_clean_files_save
10385
10386 test $ac_write_fail = 0 ||
10387   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10388
10389
10390 # configure is writing to config.log, and then calls config.status.
10391 # config.status does its own redirection, appending to config.log.
10392 # Unfortunately, on DOS this fails, as config.log is still kept open
10393 # by configure, so config.status won't be able to write to it; its
10394 # output is simply discarded.  So we exec the FD to /dev/null,
10395 # effectively closing config.log, so it can be properly (re)opened and
10396 # appended to by config.status.  When coming back to configure, we
10397 # need to make the FD available again.
10398 if test "$no_create" != yes; then
10399   ac_cs_success=:
10400   ac_config_status_args=
10401   test "$silent" = yes &&
10402     ac_config_status_args="$ac_config_status_args --quiet"
10403   exec 5>/dev/null
10404   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10405   exec 5>>config.log
10406   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10407   # would make configure fail if this is the last instruction.
10408   $ac_cs_success || as_fn_exit 1
10409 fi
10410 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10411   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10412 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10413 fi
10414