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