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