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