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