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