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