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