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