regenerated build files
[psensor.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for psensor 1.1.0.
4 #
5 # Report bugs to <jeanfi@gmail.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='psensor'
582 PACKAGE_TARNAME='psensor'
583 PACKAGE_VERSION='1.1.0'
584 PACKAGE_STRING='psensor 1.1.0'
585 PACKAGE_BUGREPORT='jeanfi@gmail.com'
586 PACKAGE_URL='http://wpitchoune.net/psensor'
587
588 ac_unique_file="src/ui.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 gt_needs=
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 CPPCHECK_FALSE
630 CPPCHECK_TRUE
631 HAVE_CPPCHECK
632 ASCIIDOC_FALSE
633 ASCIIDOC_TRUE
634 ASCIIDOC
635 HELP2MAN
636 GTOP_FALSE
637 GTOP_TRUE
638 GTOP_LIBS
639 GTOP_CFLAGS
640 LIBMICROHTTPD_FALSE
641 LIBMICROHTTPD_TRUE
642 LIBMICROHTTPD_LIBS
643 LIBMICROHTTPD_CFLAGS
644 LIBATIADL_LIBS
645 LIBATIADL_CFLAGS
646 LIBATIADL_FALSE
647 LIBATIADL_TRUE
648 UNITY_FALSE
649 UNITY_TRUE
650 UNITY_LIBS
651 UNITY_CFLAGS
652 NVIDIA_LIBS
653 NVIDIA_CFLAGS
654 NVIDIA_FALSE
655 NVIDIA_TRUE
656 JSON_FALSE
657 JSON_TRUE
658 JSON_LIBS
659 JSON_CFLAGS
660 CURL_FALSE
661 CURL_TRUE
662 CURL_LIBS
663 CURL_CFLAGS
664 APPINDICATOR_FALSE
665 APPINDICATOR_TRUE
666 APPINDICATOR_LIBS
667 APPINDICATOR_CFLAGS
668 LIBNOTIFY_FALSE
669 LIBNOTIFY_TRUE
670 LIBNOTIFY_LIBS
671 LIBNOTIFY_CFLAGS
672 ATASMART_FALSE
673 ATASMART_TRUE
674 ATASMART_LIBS
675 ATASMART_CFLAGS
676 GCONF_FALSE
677 GCONF_TRUE
678 GCONF_LIBS
679 GCONF_CFLAGS
680 GTK_FALSE
681 GTK_TRUE
682 GTK_LIBS
683 GTK_CFLAGS
684 XEXT_FALSE
685 XEXT_TRUE
686 XEXT_LIBS
687 XEXT_CFLAGS
688 X11_FALSE
689 X11_TRUE
690 X11_LIBS
691 X11_CFLAGS
692 SENSORS_LIBS
693 PTHREAD_LIBS
694 GSETTINGS_RULES
695 GLIB_COMPILE_SCHEMAS
696 gsettingsschemadir
697 PKG_CONFIG_LIBDIR
698 PKG_CONFIG_PATH
699 PKG_CONFIG
700 GSETTINGS_DISABLE_SCHEMAS_COMPILE
701 GCONF_SCHEMAS_INSTALL_FALSE
702 GCONF_SCHEMAS_INSTALL_TRUE
703 GCONF_SCHEMA_FILE_DIR
704 GCONF_SCHEMA_CONFIG_SOURCE
705 GCONFTOOL
706 POSUB
707 LTLIBINTL
708 LIBINTL
709 INTLLIBS
710 LTLIBICONV
711 LIBICONV
712 INTL_MACOSX_LIBS
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 XGETTEXT_EXTRA_OPTIONS
722 MSGMERGE
723 XGETTEXT_015
724 XGETTEXT
725 GMSGFMT_015
726 MSGFMT_015
727 GMSGFMT
728 MSGFMT
729 GETTEXT_MACRO_VERSION
730 USE_NLS
731 SED
732 LIBOBJS
733 EGREP
734 GREP
735 CPP
736 XMKMF
737 ac_ct_AR
738 AR
739 RANLIB
740 am__fastdepCC_FALSE
741 am__fastdepCC_TRUE
742 CCDEPMODE
743 am__nodep
744 AMDEPBACKSLASH
745 AMDEP_FALSE
746 AMDEP_TRUE
747 am__quote
748 am__include
749 DEPDIR
750 OBJEXT
751 EXEEXT
752 ac_ct_CC
753 CPPFLAGS
754 LDFLAGS
755 CFLAGS
756 CC
757 am__untar
758 am__tar
759 AMTAR
760 am__leading_dot
761 SET_MAKE
762 AWK
763 mkdir_p
764 MKDIR_P
765 INSTALL_STRIP_PROGRAM
766 STRIP
767 install_sh
768 MAKEINFO
769 AUTOHEADER
770 AUTOMAKE
771 AUTOCONF
772 ACLOCAL
773 VERSION
774 PACKAGE
775 CYGPATH_W
776 am__isrc
777 INSTALL_DATA
778 INSTALL_SCRIPT
779 INSTALL_PROGRAM
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 enable_dependency_tracking
822 enable_largefile
823 with_x
824 enable_nls
825 with_gnu_ld
826 enable_rpath
827 with_libiconv_prefix
828 with_libintl_prefix
829 with_gconf_source
830 with_gconf_schema_file_dir
831 enable_schemas_install
832 enable_schemas_compile
833 with_libatiadl
834 with_gtop
835 '
836       ac_precious_vars='build_alias
837 host_alias
838 target_alias
839 CC
840 CFLAGS
841 LDFLAGS
842 LIBS
843 CPPFLAGS
844 XMKMF
845 CPP
846 PKG_CONFIG
847 PKG_CONFIG_PATH
848 PKG_CONFIG_LIBDIR
849 X11_CFLAGS
850 X11_LIBS
851 XEXT_CFLAGS
852 XEXT_LIBS
853 GTK_CFLAGS
854 GTK_LIBS
855 GCONF_CFLAGS
856 GCONF_LIBS
857 ATASMART_CFLAGS
858 ATASMART_LIBS
859 LIBNOTIFY_CFLAGS
860 LIBNOTIFY_LIBS
861 APPINDICATOR_CFLAGS
862 APPINDICATOR_LIBS
863 CURL_CFLAGS
864 CURL_LIBS
865 JSON_CFLAGS
866 JSON_LIBS
867 UNITY_CFLAGS
868 UNITY_LIBS
869 LIBMICROHTTPD_CFLAGS
870 LIBMICROHTTPD_LIBS
871 GTOP_CFLAGS
872 GTOP_LIBS'
873
874
875 # Initialize some variables set by options.
876 ac_init_help=
877 ac_init_version=false
878 ac_unrecognized_opts=
879 ac_unrecognized_sep=
880 # The variables have the same names as the options, with
881 # dashes changed to underlines.
882 cache_file=/dev/null
883 exec_prefix=NONE
884 no_create=
885 no_recursion=
886 prefix=NONE
887 program_prefix=NONE
888 program_suffix=NONE
889 program_transform_name=s,x,x,
890 silent=
891 site=
892 srcdir=
893 verbose=
894 x_includes=NONE
895 x_libraries=NONE
896
897 # Installation directory options.
898 # These are left unexpanded so users can "make install exec_prefix=/foo"
899 # and all the variables that are supposed to be based on exec_prefix
900 # by default will actually change.
901 # Use braces instead of parens because sh, perl, etc. also accept them.
902 # (The list follows the same order as the GNU Coding Standards.)
903 bindir='${exec_prefix}/bin'
904 sbindir='${exec_prefix}/sbin'
905 libexecdir='${exec_prefix}/libexec'
906 datarootdir='${prefix}/share'
907 datadir='${datarootdir}'
908 sysconfdir='${prefix}/etc'
909 sharedstatedir='${prefix}/com'
910 localstatedir='${prefix}/var'
911 includedir='${prefix}/include'
912 oldincludedir='/usr/include'
913 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
914 infodir='${datarootdir}/info'
915 htmldir='${docdir}'
916 dvidir='${docdir}'
917 pdfdir='${docdir}'
918 psdir='${docdir}'
919 libdir='${exec_prefix}/lib'
920 localedir='${datarootdir}/locale'
921 mandir='${datarootdir}/man'
922
923 ac_prev=
924 ac_dashdash=
925 for ac_option
926 do
927   # If the previous option needs an argument, assign it.
928   if test -n "$ac_prev"; then
929     eval $ac_prev=\$ac_option
930     ac_prev=
931     continue
932   fi
933
934   case $ac_option in
935   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936   *=)   ac_optarg= ;;
937   *)    ac_optarg=yes ;;
938   esac
939
940   # Accept the important Cygnus configure options, so we can diagnose typos.
941
942   case $ac_dashdash$ac_option in
943   --)
944     ac_dashdash=yes ;;
945
946   -bindir | --bindir | --bindi | --bind | --bin | --bi)
947     ac_prev=bindir ;;
948   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949     bindir=$ac_optarg ;;
950
951   -build | --build | --buil | --bui | --bu)
952     ac_prev=build_alias ;;
953   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954     build_alias=$ac_optarg ;;
955
956   -cache-file | --cache-file | --cache-fil | --cache-fi \
957   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958     ac_prev=cache_file ;;
959   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961     cache_file=$ac_optarg ;;
962
963   --config-cache | -C)
964     cache_file=config.cache ;;
965
966   -datadir | --datadir | --datadi | --datad)
967     ac_prev=datadir ;;
968   -datadir=* | --datadir=* | --datadi=* | --datad=*)
969     datadir=$ac_optarg ;;
970
971   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972   | --dataroo | --dataro | --datar)
973     ac_prev=datarootdir ;;
974   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976     datarootdir=$ac_optarg ;;
977
978   -disable-* | --disable-*)
979     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982       as_fn_error $? "invalid feature name: $ac_useropt"
983     ac_useropt_orig=$ac_useropt
984     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985     case $ac_user_opts in
986       *"
987 "enable_$ac_useropt"
988 "*) ;;
989       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990          ac_unrecognized_sep=', ';;
991     esac
992     eval enable_$ac_useropt=no ;;
993
994   -docdir | --docdir | --docdi | --doc | --do)
995     ac_prev=docdir ;;
996   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997     docdir=$ac_optarg ;;
998
999   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000     ac_prev=dvidir ;;
1001   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002     dvidir=$ac_optarg ;;
1003
1004   -enable-* | --enable-*)
1005     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008       as_fn_error $? "invalid feature name: $ac_useropt"
1009     ac_useropt_orig=$ac_useropt
1010     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011     case $ac_user_opts in
1012       *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016          ac_unrecognized_sep=', ';;
1017     esac
1018     eval enable_$ac_useropt=\$ac_optarg ;;
1019
1020   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022   | --exec | --exe | --ex)
1023     ac_prev=exec_prefix ;;
1024   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026   | --exec=* | --exe=* | --ex=*)
1027     exec_prefix=$ac_optarg ;;
1028
1029   -gas | --gas | --ga | --g)
1030     # Obsolete; use --with-gas.
1031     with_gas=yes ;;
1032
1033   -help | --help | --hel | --he | -h)
1034     ac_init_help=long ;;
1035   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036     ac_init_help=recursive ;;
1037   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038     ac_init_help=short ;;
1039
1040   -host | --host | --hos | --ho)
1041     ac_prev=host_alias ;;
1042   -host=* | --host=* | --hos=* | --ho=*)
1043     host_alias=$ac_optarg ;;
1044
1045   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046     ac_prev=htmldir ;;
1047   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048   | --ht=*)
1049     htmldir=$ac_optarg ;;
1050
1051   -includedir | --includedir | --includedi | --included | --include \
1052   | --includ | --inclu | --incl | --inc)
1053     ac_prev=includedir ;;
1054   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055   | --includ=* | --inclu=* | --incl=* | --inc=*)
1056     includedir=$ac_optarg ;;
1057
1058   -infodir | --infodir | --infodi | --infod | --info | --inf)
1059     ac_prev=infodir ;;
1060   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061     infodir=$ac_optarg ;;
1062
1063   -libdir | --libdir | --libdi | --libd)
1064     ac_prev=libdir ;;
1065   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066     libdir=$ac_optarg ;;
1067
1068   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069   | --libexe | --libex | --libe)
1070     ac_prev=libexecdir ;;
1071   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072   | --libexe=* | --libex=* | --libe=*)
1073     libexecdir=$ac_optarg ;;
1074
1075   -localedir | --localedir | --localedi | --localed | --locale)
1076     ac_prev=localedir ;;
1077   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078     localedir=$ac_optarg ;;
1079
1080   -localstatedir | --localstatedir | --localstatedi | --localstated \
1081   | --localstate | --localstat | --localsta | --localst | --locals)
1082     ac_prev=localstatedir ;;
1083   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085     localstatedir=$ac_optarg ;;
1086
1087   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088     ac_prev=mandir ;;
1089   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090     mandir=$ac_optarg ;;
1091
1092   -nfp | --nfp | --nf)
1093     # Obsolete; use --without-fp.
1094     with_fp=no ;;
1095
1096   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097   | --no-cr | --no-c | -n)
1098     no_create=yes ;;
1099
1100   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102     no_recursion=yes ;;
1103
1104   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106   | --oldin | --oldi | --old | --ol | --o)
1107     ac_prev=oldincludedir ;;
1108   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111     oldincludedir=$ac_optarg ;;
1112
1113   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114     ac_prev=prefix ;;
1115   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116     prefix=$ac_optarg ;;
1117
1118   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119   | --program-pre | --program-pr | --program-p)
1120     ac_prev=program_prefix ;;
1121   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123     program_prefix=$ac_optarg ;;
1124
1125   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126   | --program-suf | --program-su | --program-s)
1127     ac_prev=program_suffix ;;
1128   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130     program_suffix=$ac_optarg ;;
1131
1132   -program-transform-name | --program-transform-name \
1133   | --program-transform-nam | --program-transform-na \
1134   | --program-transform-n | --program-transform- \
1135   | --program-transform | --program-transfor \
1136   | --program-transfo | --program-transf \
1137   | --program-trans | --program-tran \
1138   | --progr-tra | --program-tr | --program-t)
1139     ac_prev=program_transform_name ;;
1140   -program-transform-name=* | --program-transform-name=* \
1141   | --program-transform-nam=* | --program-transform-na=* \
1142   | --program-transform-n=* | --program-transform-=* \
1143   | --program-transform=* | --program-transfor=* \
1144   | --program-transfo=* | --program-transf=* \
1145   | --program-trans=* | --program-tran=* \
1146   | --progr-tra=* | --program-tr=* | --program-t=*)
1147     program_transform_name=$ac_optarg ;;
1148
1149   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150     ac_prev=pdfdir ;;
1151   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152     pdfdir=$ac_optarg ;;
1153
1154   -psdir | --psdir | --psdi | --psd | --ps)
1155     ac_prev=psdir ;;
1156   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157     psdir=$ac_optarg ;;
1158
1159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160   | -silent | --silent | --silen | --sile | --sil)
1161     silent=yes ;;
1162
1163   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164     ac_prev=sbindir ;;
1165   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166   | --sbi=* | --sb=*)
1167     sbindir=$ac_optarg ;;
1168
1169   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171   | --sharedst | --shareds | --shared | --share | --shar \
1172   | --sha | --sh)
1173     ac_prev=sharedstatedir ;;
1174   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177   | --sha=* | --sh=*)
1178     sharedstatedir=$ac_optarg ;;
1179
1180   -site | --site | --sit)
1181     ac_prev=site ;;
1182   -site=* | --site=* | --sit=*)
1183     site=$ac_optarg ;;
1184
1185   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186     ac_prev=srcdir ;;
1187   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188     srcdir=$ac_optarg ;;
1189
1190   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191   | --syscon | --sysco | --sysc | --sys | --sy)
1192     ac_prev=sysconfdir ;;
1193   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195     sysconfdir=$ac_optarg ;;
1196
1197   -target | --target | --targe | --targ | --tar | --ta | --t)
1198     ac_prev=target_alias ;;
1199   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200     target_alias=$ac_optarg ;;
1201
1202   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203     verbose=yes ;;
1204
1205   -version | --version | --versio | --versi | --vers | -V)
1206     ac_init_version=: ;;
1207
1208   -with-* | --with-*)
1209     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212       as_fn_error $? "invalid package name: $ac_useropt"
1213     ac_useropt_orig=$ac_useropt
1214     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215     case $ac_user_opts in
1216       *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220          ac_unrecognized_sep=', ';;
1221     esac
1222     eval with_$ac_useropt=\$ac_optarg ;;
1223
1224   -without-* | --without-*)
1225     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228       as_fn_error $? "invalid package name: $ac_useropt"
1229     ac_useropt_orig=$ac_useropt
1230     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231     case $ac_user_opts in
1232       *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236          ac_unrecognized_sep=', ';;
1237     esac
1238     eval with_$ac_useropt=no ;;
1239
1240   --x)
1241     # Obsolete; use --with-x.
1242     with_x=yes ;;
1243
1244   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245   | --x-incl | --x-inc | --x-in | --x-i)
1246     ac_prev=x_includes ;;
1247   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249     x_includes=$ac_optarg ;;
1250
1251   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253     ac_prev=x_libraries ;;
1254   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256     x_libraries=$ac_optarg ;;
1257
1258   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1260     ;;
1261
1262   *=*)
1263     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264     # Reject names that are not valid shell variable names.
1265     case $ac_envvar in #(
1266       '' | [0-9]* | *[!_$as_cr_alnum]* )
1267       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268     esac
1269     eval $ac_envvar=\$ac_optarg
1270     export $ac_envvar ;;
1271
1272   *)
1273     # FIXME: should be removed in autoconf 3.0.
1274     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278     ;;
1279
1280   esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285   as_fn_error $? "missing argument to $ac_option"
1286 fi
1287
1288 if test -n "$ac_unrecognized_opts"; then
1289   case $enable_option_checking in
1290     no) ;;
1291     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293   esac
1294 fi
1295
1296 # Check all directory arguments for consistency.
1297 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298                 datadir sysconfdir sharedstatedir localstatedir includedir \
1299                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300                 libdir localedir mandir
1301 do
1302   eval ac_val=\$$ac_var
1303   # Remove trailing slashes.
1304   case $ac_val in
1305     */ )
1306       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307       eval $ac_var=\$ac_val;;
1308   esac
1309   # Be sure to have absolute directory names.
1310   case $ac_val in
1311     [\\/$]* | ?:[\\/]* )  continue;;
1312     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313   esac
1314   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 done
1316
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1323
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326   if test "x$build_alias" = x; then
1327     cross_compiling=maybe
1328   elif test "x$build_alias" != "x$host_alias"; then
1329     cross_compiling=yes
1330   fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342   as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344   as_fn_error $? "pwd does not report name of working directory"
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349   ac_srcdir_defaulted=yes
1350   # Try the directory containing this script, then the parent directory.
1351   ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353          X"$as_myself" : 'X\(//\)[^/]' \| \
1354          X"$as_myself" : 'X\(//\)$' \| \
1355          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)[^/].*/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\).*/{
1370             s//\1/
1371             q
1372           }
1373           s/.*/./; q'`
1374   srcdir=$ac_confdir
1375   if test ! -r "$srcdir/$ac_unique_file"; then
1376     srcdir=..
1377   fi
1378 else
1379   ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures psensor 1.1.0 to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking ...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR            user executables [EPREFIX/bin]
1448   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR        program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453   --libdir=DIR            object code libraries [EPREFIX/lib]
1454   --includedir=DIR        C header files [PREFIX/include]
1455   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1456   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1457   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1458   --infodir=DIR           info documentation [DATAROOTDIR/info]
1459   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1460   --mandir=DIR            man documentation [DATAROOTDIR/man]
1461   --docdir=DIR            documentation root [DATAROOTDIR/doc/psensor]
1462   --htmldir=DIR           html documentation [DOCDIR]
1463   --dvidir=DIR            dvi documentation [DOCDIR]
1464   --pdfdir=DIR            pdf documentation [DOCDIR]
1465   --psdir=DIR             ps documentation [DOCDIR]
1466 _ACEOF
1467
1468   cat <<\_ACEOF
1469
1470 Program names:
1471   --program-prefix=PREFIX            prepend PREFIX to installed program names
1472   --program-suffix=SUFFIX            append SUFFIX to installed program names
1473   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1474
1475 X features:
1476   --x-includes=DIR    X include files are in DIR
1477   --x-libraries=DIR   X library files are in DIR
1478
1479 System types:
1480   --build=BUILD     configure for building on BUILD [guessed]
1481   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1482 _ACEOF
1483 fi
1484
1485 if test -n "$ac_init_help"; then
1486   case $ac_init_help in
1487      short | recursive ) echo "Configuration of psensor 1.1.0:";;
1488    esac
1489   cat <<\_ACEOF
1490
1491 Optional Features:
1492   --disable-option-checking  ignore unrecognized --enable/--with options
1493   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1494   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1495   --disable-dependency-tracking  speeds up one-time build
1496   --enable-dependency-tracking   do not reject slow dependency extractors
1497   --disable-largefile     omit support for large files
1498   --disable-nls           do not use Native Language Support
1499   --disable-rpath         do not hardcode runtime library paths
1500   --disable-schemas-install
1501                           Disable the schemas installation
1502   --disable-schemas-compile
1503                           Disable regeneration of gschemas.compiled on install
1504
1505 Optional Packages:
1506   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1507   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1508   --with-x                use the X Window System
1509   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1510   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1511   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1512   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1513   --without-libintl-prefix     don't search for libintl in includedir and libdir
1514   --with-gconf-source=sourceaddress
1515                           Config database for installing schema files.
1516   --with-gconf-schema-file-dir=dir
1517                           Directory for installing schema files.
1518   --with-libatiadl=DIR   use libatiadlxx in DIR
1519   --with-gtop=yes|no   use gtop
1520
1521 Some influential environment variables:
1522   CC          C compiler command
1523   CFLAGS      C compiler flags
1524   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1525               nonstandard directory <lib dir>
1526   LIBS        libraries to pass to the linker, e.g. -l<library>
1527   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528               you have headers in a nonstandard directory <include dir>
1529   XMKMF       Path to xmkmf, Makefile generator for X Window System
1530   CPP         C preprocessor
1531   PKG_CONFIG  path to pkg-config utility
1532   PKG_CONFIG_PATH
1533               directories to add to pkg-config's search path
1534   PKG_CONFIG_LIBDIR
1535               path overriding pkg-config's built-in search path
1536   X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1537   X11_LIBS    linker flags for X11, overriding pkg-config
1538   XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1539   XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1540   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1541   GTK_LIBS    linker flags for GTK, overriding pkg-config
1542   GCONF_CFLAGS
1543               C compiler flags for GCONF, overriding pkg-config
1544   GCONF_LIBS  linker flags for GCONF, overriding pkg-config
1545   ATASMART_CFLAGS
1546               C compiler flags for ATASMART, overriding pkg-config
1547   ATASMART_LIBS
1548               linker flags for ATASMART, overriding pkg-config
1549   LIBNOTIFY_CFLAGS
1550               C compiler flags for LIBNOTIFY, overriding pkg-config
1551   LIBNOTIFY_LIBS
1552               linker flags for LIBNOTIFY, overriding pkg-config
1553   APPINDICATOR_CFLAGS
1554               C compiler flags for APPINDICATOR, overriding pkg-config
1555   APPINDICATOR_LIBS
1556               linker flags for APPINDICATOR, overriding pkg-config
1557   CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1558   CURL_LIBS   linker flags for CURL, overriding pkg-config
1559   JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1560   JSON_LIBS   linker flags for JSON, overriding pkg-config
1561   UNITY_CFLAGS
1562               C compiler flags for UNITY, overriding pkg-config
1563   UNITY_LIBS  linker flags for UNITY, overriding pkg-config
1564   LIBMICROHTTPD_CFLAGS
1565               C compiler flags for LIBMICROHTTPD, overriding pkg-config
1566   LIBMICROHTTPD_LIBS
1567               linker flags for LIBMICROHTTPD, overriding pkg-config
1568   GTOP_CFLAGS C compiler flags for GTOP, overriding pkg-config
1569   GTOP_LIBS   linker flags for GTOP, overriding pkg-config
1570
1571 Use these variables to override the choices made by `configure' or to help
1572 it to find libraries and programs with nonstandard names/locations.
1573
1574 Report bugs to <jeanfi@gmail.com>.
1575 psensor home page: <http://wpitchoune.net/psensor>.
1576 _ACEOF
1577 ac_status=$?
1578 fi
1579
1580 if test "$ac_init_help" = "recursive"; then
1581   # If there are subdirs, report their specific --help.
1582   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583     test -d "$ac_dir" ||
1584       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585       continue
1586     ac_builddir=.
1587
1588 case "$ac_dir" in
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *)
1591   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592   # A ".." for each directory in $ac_dir_suffix.
1593   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594   case $ac_top_builddir_sub in
1595   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597   esac ;;
1598 esac
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1603
1604 case $srcdir in
1605   .)  # We are building in place.
1606     ac_srcdir=.
1607     ac_top_srcdir=$ac_top_builddir_sub
1608     ac_abs_top_srcdir=$ac_pwd ;;
1609   [\\/]* | ?:[\\/]* )  # Absolute name.
1610     ac_srcdir=$srcdir$ac_dir_suffix;
1611     ac_top_srcdir=$srcdir
1612     ac_abs_top_srcdir=$srcdir ;;
1613   *) # Relative name.
1614     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615     ac_top_srcdir=$ac_top_build_prefix$srcdir
1616     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 esac
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620     cd "$ac_dir" || { ac_status=$?; continue; }
1621     # Check for guested configure.
1622     if test -f "$ac_srcdir/configure.gnu"; then
1623       echo &&
1624       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625     elif test -f "$ac_srcdir/configure"; then
1626       echo &&
1627       $SHELL "$ac_srcdir/configure" --help=recursive
1628     else
1629       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630     fi || ac_status=$?
1631     cd "$ac_pwd" || { ac_status=$?; break; }
1632   done
1633 fi
1634
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1637   cat <<\_ACEOF
1638 psensor configure 1.1.0
1639 generated by GNU Autoconf 2.69
1640
1641 Copyright (C) 2012 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1644 _ACEOF
1645   exit
1646 fi
1647
1648 ## ------------------------ ##
1649 ## Autoconf initialization. ##
1650 ## ------------------------ ##
1651
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1656 {
1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658   rm -f conftest.$ac_objext
1659   if { { ac_try="$ac_compile"
1660 case "(($ac_try" in
1661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662   *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666   (eval "$ac_compile") 2>conftest.err
1667   ac_status=$?
1668   if test -s conftest.err; then
1669     grep -v '^ *+' conftest.err >conftest.er1
1670     cat conftest.er1 >&5
1671     mv -f conftest.er1 conftest.err
1672   fi
1673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674   test $ac_status = 0; } && {
1675          test -z "$ac_c_werror_flag" ||
1676          test ! -s conftest.err
1677        } && test -s conftest.$ac_objext; then :
1678   ac_retval=0
1679 else
1680   $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683         ac_retval=1
1684 fi
1685   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686   as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_compile
1689
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_cpp ()
1694 {
1695   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696   if { { ac_try="$ac_cpp conftest.$ac_ext"
1697 case "(($ac_try" in
1698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699   *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704   ac_status=$?
1705   if test -s conftest.err; then
1706     grep -v '^ *+' conftest.err >conftest.er1
1707     cat conftest.er1 >&5
1708     mv -f conftest.er1 conftest.err
1709   fi
1710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711   test $ac_status = 0; } > conftest.i && {
1712          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713          test ! -s conftest.err
1714        }; then :
1715   ac_retval=0
1716 else
1717   $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720     ac_retval=1
1721 fi
1722   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723   as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_cpp
1726
1727 # ac_fn_c_try_link LINENO
1728 # -----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_link ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   rm -f conftest.$ac_objext conftest$ac_exeext
1734   if { { ac_try="$ac_link"
1735 case "(($ac_try" in
1736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737   *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741   (eval "$ac_link") 2>conftest.err
1742   ac_status=$?
1743   if test -s conftest.err; then
1744     grep -v '^ *+' conftest.err >conftest.er1
1745     cat conftest.er1 >&5
1746     mv -f conftest.er1 conftest.err
1747   fi
1748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749   test $ac_status = 0; } && {
1750          test -z "$ac_c_werror_flag" ||
1751          test ! -s conftest.err
1752        } && test -s conftest$ac_exeext && {
1753          test "$cross_compiling" = yes ||
1754          test -x conftest$ac_exeext
1755        }; then :
1756   ac_retval=0
1757 else
1758   $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1760
1761         ac_retval=1
1762 fi
1763   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1764   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1765   # interfere with the next link command; also delete a directory that is
1766   # left behind by Apple's compiler.  We do this before executing the actions.
1767   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769   as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_link
1772
1773 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776 # the include files in INCLUDES and setting the cache variable VAR
1777 # accordingly.
1778 ac_fn_c_check_header_mongrel ()
1779 {
1780   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781   if eval \${$3+:} false; then :
1782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785   $as_echo_n "(cached) " >&6
1786 fi
1787 eval ac_res=\$$3
1788                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 else
1791   # Is the header compilable?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793 $as_echo_n "checking $2 usability... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h.  */
1796 $4
1797 #include <$2>
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800   ac_header_compiler=yes
1801 else
1802   ac_header_compiler=no
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806 $as_echo "$ac_header_compiler" >&6; }
1807
1808 # Is the header present?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810 $as_echo_n "checking $2 presence... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h.  */
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_cpp "$LINENO"; then :
1816   ac_header_preproc=yes
1817 else
1818   ac_header_preproc=no
1819 fi
1820 rm -f conftest.err conftest.i conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822 $as_echo "$ac_header_preproc" >&6; }
1823
1824 # So?  What about this header?
1825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826   yes:no: )
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831     ;;
1832   no:yes:* )
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1836 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1840 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ( $as_echo "## ------------------------------- ##
1844 ## Report this to jeanfi@gmail.com ##
1845 ## ------------------------------- ##"
1846      ) | sed "s/^/$as_me: WARNING:     /" >&2
1847     ;;
1848 esac
1849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852   $as_echo_n "(cached) " >&6
1853 else
1854   eval "$3=\$ac_header_compiler"
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 fi
1860   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_header_mongrel
1863
1864 # ac_fn_c_try_run LINENO
1865 # ----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867 # that executables *can* be run.
1868 ac_fn_c_try_run ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874   *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878   (eval "$ac_link") 2>&5
1879   ac_status=$?
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882   { { case "(($ac_try" in
1883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884   *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888   (eval "$ac_try") 2>&5
1889   ac_status=$?
1890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891   test $ac_status = 0; }; }; then :
1892   ac_retval=0
1893 else
1894   $as_echo "$as_me: program exited with status $ac_status" >&5
1895        $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898        ac_retval=$ac_status
1899 fi
1900   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902   as_fn_set_status $ac_retval
1903
1904 } # ac_fn_c_try_run
1905
1906 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists and can be compiled using the include files in
1909 # INCLUDES, setting the cache variable VAR accordingly.
1910 ac_fn_c_check_header_compile ()
1911 {
1912   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916   $as_echo_n "(cached) " >&6
1917 else
1918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h.  */
1920 $4
1921 #include <$2>
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924   eval "$3=yes"
1925 else
1926   eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 fi
1930 eval ac_res=\$$3
1931                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934
1935 } # ac_fn_c_check_header_compile
1936
1937 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1938 # -------------------------------------------
1939 # Tests whether TYPE exists after having included INCLUDES, setting cache
1940 # variable VAR accordingly.
1941 ac_fn_c_check_type ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947   $as_echo_n "(cached) " >&6
1948 else
1949   eval "$3=no"
1950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h.  */
1952 $4
1953 int
1954 main ()
1955 {
1956 if (sizeof ($2))
1957          return 0;
1958   ;
1959   return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h.  */
1965 $4
1966 int
1967 main ()
1968 {
1969 if (sizeof (($2)))
1970             return 0;
1971   ;
1972   return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976
1977 else
1978   eval "$3=yes"
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 fi
1984 eval ac_res=\$$3
1985                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988
1989 } # ac_fn_c_check_type
1990
1991 # ac_fn_c_check_func LINENO FUNC VAR
1992 # ----------------------------------
1993 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1994 ac_fn_c_check_func ()
1995 {
1996   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000   $as_echo_n "(cached) " >&6
2001 else
2002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h.  */
2004 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2006 #define $2 innocuous_$2
2007
2008 /* System header to define __stub macros and hopefully few prototypes,
2009     which can conflict with char $2 (); below.
2010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2011     <limits.h> exists even on freestanding compilers.  */
2012
2013 #ifdef __STDC__
2014 # include <limits.h>
2015 #else
2016 # include <assert.h>
2017 #endif
2018
2019 #undef $2
2020
2021 /* Override any GCC internal prototype to avoid an error.
2022    Use char because int might match the return type of a GCC
2023    builtin and then its argument prototype would still apply.  */
2024 #ifdef __cplusplus
2025 extern "C"
2026 #endif
2027 char $2 ();
2028 /* The GNU C library defines this for functions which it implements
2029     to always fail with ENOSYS.  Some functions are actually named
2030     something starting with __ and the normal name is an alias.  */
2031 #if defined __stub_$2 || defined __stub___$2
2032 choke me
2033 #endif
2034
2035 int
2036 main ()
2037 {
2038 return $2 ();
2039   ;
2040   return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_link "$LINENO"; then :
2044   eval "$3=yes"
2045 else
2046   eval "$3=no"
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext \
2049     conftest$ac_exeext conftest.$ac_ext
2050 fi
2051 eval ac_res=\$$3
2052                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055
2056 } # ac_fn_c_check_func
2057 cat >config.log <<_ACEOF
2058 This file contains any messages produced by compilers while
2059 running configure, to aid debugging if configure makes a mistake.
2060
2061 It was created by psensor $as_me 1.1.0, which was
2062 generated by GNU Autoconf 2.69.  Invocation command line was
2063
2064   $ $0 $@
2065
2066 _ACEOF
2067 exec 5>>config.log
2068 {
2069 cat <<_ASUNAME
2070 ## --------- ##
2071 ## Platform. ##
2072 ## --------- ##
2073
2074 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2075 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2076 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2077 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2078 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2079
2080 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2081 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2082
2083 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2084 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2085 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2086 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2087 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2088 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2089 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2090
2091 _ASUNAME
2092
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098     $as_echo "PATH: $as_dir"
2099   done
2100 IFS=$as_save_IFS
2101
2102 } >&5
2103
2104 cat >&5 <<_ACEOF
2105
2106
2107 ## ----------- ##
2108 ## Core tests. ##
2109 ## ----------- ##
2110
2111 _ACEOF
2112
2113
2114 # Keep a trace of the command line.
2115 # Strip out --no-create and --no-recursion so they do not pile up.
2116 # Strip out --silent because we don't want to record it for future runs.
2117 # Also quote any args containing shell meta-characters.
2118 # Make two passes to allow for proper duplicate-argument suppression.
2119 ac_configure_args=
2120 ac_configure_args0=
2121 ac_configure_args1=
2122 ac_must_keep_next=false
2123 for ac_pass in 1 2
2124 do
2125   for ac_arg
2126   do
2127     case $ac_arg in
2128     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2129     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130     | -silent | --silent | --silen | --sile | --sil)
2131       continue ;;
2132     *\'*)
2133       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2134     esac
2135     case $ac_pass in
2136     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2137     2)
2138       as_fn_append ac_configure_args1 " '$ac_arg'"
2139       if test $ac_must_keep_next = true; then
2140         ac_must_keep_next=false # Got value, back to normal.
2141       else
2142         case $ac_arg in
2143           *=* | --config-cache | -C | -disable-* | --disable-* \
2144           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2145           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2146           | -with-* | --with-* | -without-* | --without-* | --x)
2147             case "$ac_configure_args0 " in
2148               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2149             esac
2150             ;;
2151           -* ) ac_must_keep_next=true ;;
2152         esac
2153       fi
2154       as_fn_append ac_configure_args " '$ac_arg'"
2155       ;;
2156     esac
2157   done
2158 done
2159 { ac_configure_args0=; unset ac_configure_args0;}
2160 { ac_configure_args1=; unset ac_configure_args1;}
2161
2162 # When interrupted or exit'd, cleanup temporary files, and complete
2163 # config.log.  We remove comments because anyway the quotes in there
2164 # would cause problems or look ugly.
2165 # WARNING: Use '\'' to represent an apostrophe within the trap.
2166 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2167 trap 'exit_status=$?
2168   # Save into config.log some information that might help in debugging.
2169   {
2170     echo
2171
2172     $as_echo "## ---------------- ##
2173 ## Cache variables. ##
2174 ## ---------------- ##"
2175     echo
2176     # The following way of writing the cache mishandles newlines in values,
2177 (
2178   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2179     eval ac_val=\$$ac_var
2180     case $ac_val in #(
2181     *${as_nl}*)
2182       case $ac_var in #(
2183       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2184 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2185       esac
2186       case $ac_var in #(
2187       _ | IFS | as_nl) ;; #(
2188       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2189       *) { eval $ac_var=; unset $ac_var;} ;;
2190       esac ;;
2191     esac
2192   done
2193   (set) 2>&1 |
2194     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2195     *${as_nl}ac_space=\ *)
2196       sed -n \
2197         "s/'\''/'\''\\\\'\'''\''/g;
2198           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2199       ;; #(
2200     *)
2201       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2202       ;;
2203     esac |
2204     sort
2205 )
2206     echo
2207
2208     $as_echo "## ----------------- ##
2209 ## Output variables. ##
2210 ## ----------------- ##"
2211     echo
2212     for ac_var in $ac_subst_vars
2213     do
2214       eval ac_val=\$$ac_var
2215       case $ac_val in
2216       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217       esac
2218       $as_echo "$ac_var='\''$ac_val'\''"
2219     done | sort
2220     echo
2221
2222     if test -n "$ac_subst_files"; then
2223       $as_echo "## ------------------- ##
2224 ## File substitutions. ##
2225 ## ------------------- ##"
2226       echo
2227       for ac_var in $ac_subst_files
2228       do
2229         eval ac_val=\$$ac_var
2230         case $ac_val in
2231         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2232         esac
2233         $as_echo "$ac_var='\''$ac_val'\''"
2234       done | sort
2235       echo
2236     fi
2237
2238     if test -s confdefs.h; then
2239       $as_echo "## ----------- ##
2240 ## confdefs.h. ##
2241 ## ----------- ##"
2242       echo
2243       cat confdefs.h
2244       echo
2245     fi
2246     test "$ac_signal" != 0 &&
2247       $as_echo "$as_me: caught signal $ac_signal"
2248     $as_echo "$as_me: exit $exit_status"
2249   } >&5
2250   rm -f core *.core core.conftest.* &&
2251     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2252     exit $exit_status
2253 ' 0
2254 for ac_signal in 1 2 13 15; do
2255   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2256 done
2257 ac_signal=0
2258
2259 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2260 rm -f -r conftest* confdefs.h
2261
2262 $as_echo "/* confdefs.h */" > confdefs.h
2263
2264 # Predefined preprocessor variables.
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_NAME "$PACKAGE_NAME"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2272 _ACEOF
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_STRING "$PACKAGE_STRING"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_URL "$PACKAGE_URL"
2288 _ACEOF
2289
2290
2291 # Let the site file select an alternate cache file if it wants to.
2292 # Prefer an explicitly selected file to automatically selected ones.
2293 ac_site_file1=NONE
2294 ac_site_file2=NONE
2295 if test -n "$CONFIG_SITE"; then
2296   # We do not want a PATH search for config.site.
2297   case $CONFIG_SITE in #((
2298     -*)  ac_site_file1=./$CONFIG_SITE;;
2299     */*) ac_site_file1=$CONFIG_SITE;;
2300     *)   ac_site_file1=./$CONFIG_SITE;;
2301   esac
2302 elif test "x$prefix" != xNONE; then
2303   ac_site_file1=$prefix/share/config.site
2304   ac_site_file2=$prefix/etc/config.site
2305 else
2306   ac_site_file1=$ac_default_prefix/share/config.site
2307   ac_site_file2=$ac_default_prefix/etc/config.site
2308 fi
2309 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2310 do
2311   test "x$ac_site_file" = xNONE && continue
2312   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2313     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2314 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2315     sed 's/^/| /' "$ac_site_file" >&5
2316     . "$ac_site_file" \
2317       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 as_fn_error $? "failed to load site script $ac_site_file
2320 See \`config.log' for more details" "$LINENO" 5; }
2321   fi
2322 done
2323
2324 if test -r "$cache_file"; then
2325   # Some versions of bash will fail to source /dev/null (special files
2326   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2327   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2328     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2329 $as_echo "$as_me: loading cache $cache_file" >&6;}
2330     case $cache_file in
2331       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2332       *)                      . "./$cache_file";;
2333     esac
2334   fi
2335 else
2336   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2337 $as_echo "$as_me: creating cache $cache_file" >&6;}
2338   >$cache_file
2339 fi
2340
2341 gt_needs="$gt_needs "
2342 # Check that the precious variables saved in the cache have kept the same
2343 # value.
2344 ac_cache_corrupted=false
2345 for ac_var in $ac_precious_vars; do
2346   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2347   eval ac_new_set=\$ac_env_${ac_var}_set
2348   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2349   eval ac_new_val=\$ac_env_${ac_var}_value
2350   case $ac_old_set,$ac_new_set in
2351     set,)
2352       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2353 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2354       ac_cache_corrupted=: ;;
2355     ,set)
2356       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2358       ac_cache_corrupted=: ;;
2359     ,);;
2360     *)
2361       if test "x$ac_old_val" != "x$ac_new_val"; then
2362         # differences in whitespace do not lead to failure.
2363         ac_old_val_w=`echo x $ac_old_val`
2364         ac_new_val_w=`echo x $ac_new_val`
2365         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2366           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2367 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2368           ac_cache_corrupted=:
2369         else
2370           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2371 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2372           eval $ac_var=\$ac_old_val
2373         fi
2374         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2375 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2376         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2377 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2378       fi;;
2379   esac
2380   # Pass precious variables to config.status.
2381   if test "$ac_new_set" = set; then
2382     case $ac_new_val in
2383     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2384     *) ac_arg=$ac_var=$ac_new_val ;;
2385     esac
2386     case " $ac_configure_args " in
2387       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2388       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2389     esac
2390   fi
2391 done
2392 if $ac_cache_corrupted; then
2393   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2396 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2397   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2398 fi
2399 ## -------------------- ##
2400 ## Main body of script. ##
2401 ## -------------------- ##
2402
2403 ac_ext=c
2404 ac_cpp='$CPP $CPPFLAGS'
2405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408
2409
2410
2411 am__api_version='1.11'
2412
2413 ac_aux_dir=
2414 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2415   if test -f "$ac_dir/install-sh"; then
2416     ac_aux_dir=$ac_dir
2417     ac_install_sh="$ac_aux_dir/install-sh -c"
2418     break
2419   elif test -f "$ac_dir/install.sh"; then
2420     ac_aux_dir=$ac_dir
2421     ac_install_sh="$ac_aux_dir/install.sh -c"
2422     break
2423   elif test -f "$ac_dir/shtool"; then
2424     ac_aux_dir=$ac_dir
2425     ac_install_sh="$ac_aux_dir/shtool install -c"
2426     break
2427   fi
2428 done
2429 if test -z "$ac_aux_dir"; then
2430   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2431 fi
2432
2433 # These three variables are undocumented and unsupported,
2434 # and are intended to be withdrawn in a future Autoconf release.
2435 # They can cause serious problems if a builder's source tree is in a directory
2436 # whose full name contains unusual characters.
2437 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2438 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2439 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2440
2441
2442 # Find a good install program.  We prefer a C program (faster),
2443 # so one script is as good as another.  But avoid the broken or
2444 # incompatible versions:
2445 # SysV /etc/install, /usr/sbin/install
2446 # SunOS /usr/etc/install
2447 # IRIX /sbin/install
2448 # AIX /bin/install
2449 # AmigaOS /C/install, which installs bootblocks on floppy discs
2450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2453 # OS/2's system install, which has a completely different semantic
2454 # ./install, which can be erroneously created by make from ./install.sh.
2455 # Reject install programs that cannot install multiple files.
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2457 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2458 if test -z "$INSTALL"; then
2459 if ${ac_cv_path_install+:} false; then :
2460   $as_echo_n "(cached) " >&6
2461 else
2462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467     # Account for people who put trailing slashes in PATH elements.
2468 case $as_dir/ in #((
2469   ./ | .// | /[cC]/* | \
2470   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2471   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2472   /usr/ucb/* ) ;;
2473   *)
2474     # OSF1 and SCO ODT 3.0 have their own names for install.
2475     # Don't use installbsd from OSF since it installs stuff as root
2476     # by default.
2477     for ac_prog in ginstall scoinst install; do
2478       for ac_exec_ext in '' $ac_executable_extensions; do
2479         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2480           if test $ac_prog = install &&
2481             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482             # AIX install.  It has an incompatible calling convention.
2483             :
2484           elif test $ac_prog = install &&
2485             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486             # program-specific install script used by HP pwplus--don't use.
2487             :
2488           else
2489             rm -rf conftest.one conftest.two conftest.dir
2490             echo one > conftest.one
2491             echo two > conftest.two
2492             mkdir conftest.dir
2493             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2494               test -s conftest.one && test -s conftest.two &&
2495               test -s conftest.dir/conftest.one &&
2496               test -s conftest.dir/conftest.two
2497             then
2498               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2499               break 3
2500             fi
2501           fi
2502         fi
2503       done
2504     done
2505     ;;
2506 esac
2507
2508   done
2509 IFS=$as_save_IFS
2510
2511 rm -rf conftest.one conftest.two conftest.dir
2512
2513 fi
2514   if test "${ac_cv_path_install+set}" = set; then
2515     INSTALL=$ac_cv_path_install
2516   else
2517     # As a last resort, use the slow shell script.  Don't cache a
2518     # value for INSTALL within a source directory, because that will
2519     # break other packages using the cache if that directory is
2520     # removed, or if the value is a relative name.
2521     INSTALL=$ac_install_sh
2522   fi
2523 fi
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2525 $as_echo "$INSTALL" >&6; }
2526
2527 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2528 # It thinks the first close brace ends the variable substitution.
2529 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2530
2531 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2532
2533 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2536 $as_echo_n "checking whether build environment is sane... " >&6; }
2537 # Just in case
2538 sleep 1
2539 echo timestamp > conftest.file
2540 # Reject unsafe characters in $srcdir or the absolute working directory
2541 # name.  Accept space and tab only in the latter.
2542 am_lf='
2543 '
2544 case `pwd` in
2545   *[\\\"\#\$\&\'\`$am_lf]*)
2546     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2547 esac
2548 case $srcdir in
2549   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2550     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2551 esac
2552
2553 # Do `set' in a subshell so we don't clobber the current shell's
2554 # arguments.  Must try -L first in case configure is actually a
2555 # symlink; some systems play weird games with the mod time of symlinks
2556 # (eg FreeBSD returns the mod time of the symlink's containing
2557 # directory).
2558 if (
2559    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2560    if test "$*" = "X"; then
2561       # -L didn't work.
2562       set X `ls -t "$srcdir/configure" conftest.file`
2563    fi
2564    rm -f conftest.file
2565    if test "$*" != "X $srcdir/configure conftest.file" \
2566       && test "$*" != "X conftest.file $srcdir/configure"; then
2567
2568       # If neither matched, then we have a broken ls.  This can happen
2569       # if, for instance, CONFIG_SHELL is bash and it inherits a
2570       # broken ls alias from the environment.  This has actually
2571       # happened.  Such a system could not be considered "sane".
2572       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2573 alias in your environment" "$LINENO" 5
2574    fi
2575
2576    test "$2" = conftest.file
2577    )
2578 then
2579    # Ok.
2580    :
2581 else
2582    as_fn_error $? "newly created file is older than distributed files!
2583 Check your system clock" "$LINENO" 5
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2586 $as_echo "yes" >&6; }
2587 test "$program_prefix" != NONE &&
2588   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2589 # Use a double $ so make ignores it.
2590 test "$program_suffix" != NONE &&
2591   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2592 # Double any \ or $.
2593 # By default was `s,x,x', remove it if useless.
2594 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2595 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2596
2597 # expand $ac_aux_dir to an absolute path
2598 am_aux_dir=`cd $ac_aux_dir && pwd`
2599
2600 if test x"${MISSING+set}" != xset; then
2601   case $am_aux_dir in
2602   *\ * | *\     *)
2603     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2604   *)
2605     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2606   esac
2607 fi
2608 # Use eval to expand $SHELL
2609 if eval "$MISSING --run true"; then
2610   am_missing_run="$MISSING --run "
2611 else
2612   am_missing_run=
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2614 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2615 fi
2616
2617 if test x"${install_sh}" != xset; then
2618   case $am_aux_dir in
2619   *\ * | *\     *)
2620     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2621   *)
2622     install_sh="\${SHELL} $am_aux_dir/install-sh"
2623   esac
2624 fi
2625
2626 # Installed binaries are usually stripped using `strip' when the user
2627 # run `make install-strip'.  However `strip' might not be the right
2628 # tool to use in cross-compilation environments, therefore Automake
2629 # will honor the `STRIP' environment variable to overrule this program.
2630 if test "$cross_compiling" != no; then
2631   if test -n "$ac_tool_prefix"; then
2632   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}strip; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_STRIP+:} false; then :
2637   $as_echo_n "(cached) " >&6
2638 else
2639   if test -n "$STRIP"; then
2640   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647     for ac_exec_ext in '' $ac_executable_extensions; do
2648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654   done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 STRIP=$ac_cv_prog_STRIP
2660 if test -n "$STRIP"; then
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2662 $as_echo "$STRIP" >&6; }
2663 else
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667
2668
2669 fi
2670 if test -z "$ac_cv_prog_STRIP"; then
2671   ac_ct_STRIP=$STRIP
2672   # Extract the first word of "strip", so it can be a program name with args.
2673 set dummy strip; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2677   $as_echo_n "(cached) " >&6
2678 else
2679   if test -n "$ac_ct_STRIP"; then
2680   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685   IFS=$as_save_IFS
2686   test -z "$as_dir" && as_dir=.
2687     for ac_exec_ext in '' $ac_executable_extensions; do
2688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689     ac_cv_prog_ac_ct_STRIP="strip"
2690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691     break 2
2692   fi
2693 done
2694   done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2700 if test -n "$ac_ct_STRIP"; then
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2702 $as_echo "$ac_ct_STRIP" >&6; }
2703 else
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2706 fi
2707
2708   if test "x$ac_ct_STRIP" = x; then
2709     STRIP=":"
2710   else
2711     case $cross_compiling:$ac_tool_warned in
2712 yes:)
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715 ac_tool_warned=yes ;;
2716 esac
2717     STRIP=$ac_ct_STRIP
2718   fi
2719 else
2720   STRIP="$ac_cv_prog_STRIP"
2721 fi
2722
2723 fi
2724 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2725
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2727 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2728 if test -z "$MKDIR_P"; then
2729   if ${ac_cv_path_mkdir+:} false; then :
2730   $as_echo_n "(cached) " >&6
2731 else
2732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737     for ac_prog in mkdir gmkdir; do
2738          for ac_exec_ext in '' $ac_executable_extensions; do
2739            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2740            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2741              'mkdir (GNU coreutils) '* | \
2742              'mkdir (coreutils) '* | \
2743              'mkdir (fileutils) '4.1*)
2744                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2745                break 3;;
2746            esac
2747          done
2748        done
2749   done
2750 IFS=$as_save_IFS
2751
2752 fi
2753
2754   test -d ./--version && rmdir ./--version
2755   if test "${ac_cv_path_mkdir+set}" = set; then
2756     MKDIR_P="$ac_cv_path_mkdir -p"
2757   else
2758     # As a last resort, use the slow shell script.  Don't cache a
2759     # value for MKDIR_P within a source directory, because that will
2760     # break other packages using the cache if that directory is
2761     # removed, or if the value is a relative name.
2762     MKDIR_P="$ac_install_sh -d"
2763   fi
2764 fi
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2766 $as_echo "$MKDIR_P" >&6; }
2767
2768 mkdir_p="$MKDIR_P"
2769 case $mkdir_p in
2770   [\\/$]* | ?:[\\/]*) ;;
2771   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2772 esac
2773
2774 for ac_prog in gawk mawk nawk awk
2775 do
2776   # Extract the first word of "$ac_prog", so it can be a program name with args.
2777 set dummy $ac_prog; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_AWK+:} false; then :
2781   $as_echo_n "(cached) " >&6
2782 else
2783   if test -n "$AWK"; then
2784   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791     for ac_exec_ext in '' $ac_executable_extensions; do
2792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793     ac_cv_prog_AWK="$ac_prog"
2794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795     break 2
2796   fi
2797 done
2798   done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 AWK=$ac_cv_prog_AWK
2804 if test -n "$AWK"; then
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2806 $as_echo "$AWK" >&6; }
2807 else
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813   test -n "$AWK" && break
2814 done
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2817 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2818 set x ${MAKE-make}
2819 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2820 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2821   $as_echo_n "(cached) " >&6
2822 else
2823   cat >conftest.make <<\_ACEOF
2824 SHELL = /bin/sh
2825 all:
2826         @echo '@@@%%%=$(MAKE)=@@@%%%'
2827 _ACEOF
2828 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2829 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2830   *@@@%%%=?*=@@@%%%*)
2831     eval ac_cv_prog_make_${ac_make}_set=yes;;
2832   *)
2833     eval ac_cv_prog_make_${ac_make}_set=no;;
2834 esac
2835 rm -f conftest.make
2836 fi
2837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2839 $as_echo "yes" >&6; }
2840   SET_MAKE=
2841 else
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844   SET_MAKE="MAKE=${MAKE-make}"
2845 fi
2846
2847 rm -rf .tst 2>/dev/null
2848 mkdir .tst 2>/dev/null
2849 if test -d .tst; then
2850   am__leading_dot=.
2851 else
2852   am__leading_dot=_
2853 fi
2854 rmdir .tst 2>/dev/null
2855
2856 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2857   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2858   # is not polluted with repeated "-I."
2859   am__isrc=' -I$(srcdir)'
2860   # test to see if srcdir already configured
2861   if test -f $srcdir/config.status; then
2862     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2863   fi
2864 fi
2865
2866 # test whether we have cygpath
2867 if test -z "$CYGPATH_W"; then
2868   if (cygpath --version) >/dev/null 2>/dev/null; then
2869     CYGPATH_W='cygpath -w'
2870   else
2871     CYGPATH_W=echo
2872   fi
2873 fi
2874
2875
2876 # Define the identity of the package.
2877  PACKAGE='psensor'
2878  VERSION='1.1.0'
2879
2880
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE "$PACKAGE"
2883 _ACEOF
2884
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define VERSION "$VERSION"
2888 _ACEOF
2889
2890 # Some tools Automake needs.
2891
2892 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2893
2894
2895 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2896
2897
2898 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2899
2900
2901 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2902
2903
2904 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2905
2906 # We need awk for the "check" target.  The system "awk" is bad on
2907 # some platforms.
2908 # Always define AMTAR for backward compatibility.  Yes, it's still used
2909 # in the wild :-(  We should find a proper way to deprecate it ...
2910 AMTAR='$${TAR-tar}'
2911
2912 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2913
2914
2915
2916
2917
2918
2919
2920 ac_config_headers="$ac_config_headers config.h"
2921
2922
2923 # m4
2924
2925
2926 # Checks for programs.
2927 ac_ext=c
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932 if test -n "$ac_tool_prefix"; then
2933   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_CC+:} false; then :
2938   $as_echo_n "(cached) " >&6
2939 else
2940   if test -n "$CC"; then
2941   ac_cv_prog_CC="$CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948     for ac_exec_ext in '' $ac_executable_extensions; do
2949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952     break 2
2953   fi
2954 done
2955   done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 CC=$ac_cv_prog_CC
2961 if test -n "$CC"; then
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963 $as_echo "$CC" >&6; }
2964 else
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970 fi
2971 if test -z "$ac_cv_prog_CC"; then
2972   ac_ct_CC=$CC
2973   # Extract the first word of "gcc", so it can be a program name with args.
2974 set dummy gcc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   if test -n "$ac_ct_CC"; then
2981   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     for ac_exec_ext in '' $ac_executable_extensions; do
2989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990     ac_cv_prog_ac_ct_CC="gcc"
2991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992     break 2
2993   fi
2994 done
2995   done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3003 $as_echo "$ac_ct_CC" >&6; }
3004 else
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009   if test "x$ac_ct_CC" = x; then
3010     CC=""
3011   else
3012     case $cross_compiling:$ac_tool_warned in
3013 yes:)
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3016 ac_tool_warned=yes ;;
3017 esac
3018     CC=$ac_ct_CC
3019   fi
3020 else
3021   CC="$ac_cv_prog_CC"
3022 fi
3023
3024 if test -z "$CC"; then
3025           if test -n "$ac_tool_prefix"; then
3026     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}cc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   if test -n "$CC"; then
3034   ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041     for ac_exec_ext in '' $ac_executable_extensions; do
3042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043     ac_cv_prog_CC="${ac_tool_prefix}cc"
3044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045     break 2
3046   fi
3047 done
3048   done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 CC=$ac_cv_prog_CC
3054 if test -n "$CC"; then
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3057 else
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 fi
3061
3062
3063   fi
3064 fi
3065 if test -z "$CC"; then
3066   # Extract the first word of "cc", so it can be a program name with args.
3067 set dummy cc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_CC+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   if test -n "$CC"; then
3074   ac_cv_prog_CC="$CC" # Let the user override the test.
3075 else
3076   ac_prog_rejected=no
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080   IFS=$as_save_IFS
3081   test -z "$as_dir" && as_dir=.
3082     for ac_exec_ext in '' $ac_executable_extensions; do
3083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085        ac_prog_rejected=yes
3086        continue
3087      fi
3088     ac_cv_prog_CC="cc"
3089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093   done
3094 IFS=$as_save_IFS
3095
3096 if test $ac_prog_rejected = yes; then
3097   # We found a bogon in the path, so make sure we never use it.
3098   set dummy $ac_cv_prog_CC
3099   shift
3100   if test $# != 0; then
3101     # We chose a different compiler from the bogus one.
3102     # However, it has the same basename, so the bogon will be chosen
3103     # first if we set CC to just the basename; use the full file name.
3104     shift
3105     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3106   fi
3107 fi
3108 fi
3109 fi
3110 CC=$ac_cv_prog_CC
3111 if test -n "$CC"; then
3112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113 $as_echo "$CC" >&6; }
3114 else
3115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120 fi
3121 if test -z "$CC"; then
3122   if test -n "$ac_tool_prefix"; then
3123   for ac_prog in cl.exe
3124   do
3125     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_CC+:} false; then :
3130   $as_echo_n "(cached) " >&6
3131 else
3132   if test -n "$CC"; then
3133   ac_cv_prog_CC="$CC" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138   IFS=$as_save_IFS
3139   test -z "$as_dir" && as_dir=.
3140     for ac_exec_ext in '' $ac_executable_extensions; do
3141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144     break 2
3145   fi
3146 done
3147   done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 CC=$ac_cv_prog_CC
3153 if test -n "$CC"; then
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155 $as_echo "$CC" >&6; }
3156 else
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 fi
3160
3161
3162     test -n "$CC" && break
3163   done
3164 fi
3165 if test -z "$CC"; then
3166   ac_ct_CC=$CC
3167   for ac_prog in cl.exe
3168 do
3169   # Extract the first word of "$ac_prog", so it can be a program name with args.
3170 set dummy $ac_prog; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3174   $as_echo_n "(cached) " >&6
3175 else
3176   if test -n "$ac_ct_CC"; then
3177   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182   IFS=$as_save_IFS
3183   test -z "$as_dir" && as_dir=.
3184     for ac_exec_ext in '' $ac_executable_extensions; do
3185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186     ac_cv_prog_ac_ct_CC="$ac_prog"
3187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188     break 2
3189   fi
3190 done
3191   done
3192 IFS=$as_save_IFS
3193
3194 fi
3195 fi
3196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3197 if test -n "$ac_ct_CC"; then
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3199 $as_echo "$ac_ct_CC" >&6; }
3200 else
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205
3206   test -n "$ac_ct_CC" && break
3207 done
3208
3209   if test "x$ac_ct_CC" = x; then
3210     CC=""
3211   else
3212     case $cross_compiling:$ac_tool_warned in
3213 yes:)
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3216 ac_tool_warned=yes ;;
3217 esac
3218     CC=$ac_ct_CC
3219   fi
3220 fi
3221
3222 fi
3223
3224
3225 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227 as_fn_error $? "no acceptable C compiler found in \$PATH
3228 See \`config.log' for more details" "$LINENO" 5; }
3229
3230 # Provide some information about the compiler.
3231 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3232 set X $ac_compile
3233 ac_compiler=$2
3234 for ac_option in --version -v -V -qversion; do
3235   { { ac_try="$ac_compiler $ac_option >&5"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3243   ac_status=$?
3244   if test -s conftest.err; then
3245     sed '10a\
3246 ... rest of stderr output deleted ...
3247          10q' conftest.err >conftest.er1
3248     cat conftest.er1 >&5
3249   fi
3250   rm -f conftest.er1 conftest.err
3251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252   test $ac_status = 0; }
3253 done
3254
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h.  */
3257
3258 int
3259 main ()
3260 {
3261
3262   ;
3263   return 0;
3264 }
3265 _ACEOF
3266 ac_clean_files_save=$ac_clean_files
3267 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3268 # Try to create an executable without -o first, disregard a.out.
3269 # It will help us diagnose broken compilers, and finding out an intuition
3270 # of exeext.
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3272 $as_echo_n "checking whether the C compiler works... " >&6; }
3273 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3274
3275 # The possible output files:
3276 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3277
3278 ac_rmfiles=
3279 for ac_file in $ac_files
3280 do
3281   case $ac_file in
3282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3283     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3284   esac
3285 done
3286 rm -f $ac_rmfiles
3287
3288 if { { ac_try="$ac_link_default"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295   (eval "$ac_link_default") 2>&5
3296   ac_status=$?
3297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298   test $ac_status = 0; }; then :
3299   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3300 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3301 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3302 # so that the user can short-circuit this test for compilers unknown to
3303 # Autoconf.
3304 for ac_file in $ac_files ''
3305 do
3306   test -f "$ac_file" || continue
3307   case $ac_file in
3308     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3309         ;;
3310     [ab].out )
3311         # We found the default executable, but exeext='' is most
3312         # certainly right.
3313         break;;
3314     *.* )
3315         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3316         then :; else
3317            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318         fi
3319         # We set ac_cv_exeext here because the later test for it is not
3320         # safe: cross compilers may not add the suffix if given an `-o'
3321         # argument, so we may need to know it at that point already.
3322         # Even if this section looks crufty: it has the advantage of
3323         # actually working.
3324         break;;
3325     * )
3326         break;;
3327   esac
3328 done
3329 test "$ac_cv_exeext" = no && ac_cv_exeext=
3330
3331 else
3332   ac_file=''
3333 fi
3334 if test -z "$ac_file"; then :
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 $as_echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error 77 "C compiler cannot create executables
3343 See \`config.log' for more details" "$LINENO" 5; }
3344 else
3345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3346 $as_echo "yes" >&6; }
3347 fi
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3349 $as_echo_n "checking for C compiler default output file name... " >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3351 $as_echo "$ac_file" >&6; }
3352 ac_exeext=$ac_cv_exeext
3353
3354 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3355 ac_clean_files=$ac_clean_files_save
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3357 $as_echo_n "checking for suffix of executables... " >&6; }
3358 if { { ac_try="$ac_link"
3359 case "(($ac_try" in
3360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361   *) ac_try_echo=$ac_try;;
3362 esac
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365   (eval "$ac_link") 2>&5
3366   ac_status=$?
3367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368   test $ac_status = 0; }; then :
3369   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3370 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3371 # work properly (i.e., refer to `conftest.exe'), while it won't with
3372 # `rm'.
3373 for ac_file in conftest.exe conftest conftest.*; do
3374   test -f "$ac_file" || continue
3375   case $ac_file in
3376     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3377     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378           break;;
3379     * ) break;;
3380   esac
3381 done
3382 else
3383   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3386 See \`config.log' for more details" "$LINENO" 5; }
3387 fi
3388 rm -f conftest conftest$ac_cv_exeext
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3390 $as_echo "$ac_cv_exeext" >&6; }
3391
3392 rm -f conftest.$ac_ext
3393 EXEEXT=$ac_cv_exeext
3394 ac_exeext=$EXEEXT
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h.  */
3397 #include <stdio.h>
3398 int
3399 main ()
3400 {
3401 FILE *f = fopen ("conftest.out", "w");
3402  return ferror (f) || fclose (f) != 0;
3403
3404   ;
3405   return 0;
3406 }
3407 _ACEOF
3408 ac_clean_files="$ac_clean_files conftest.out"
3409 # Check that the compiler produces executables we can run.  If not, either
3410 # the compiler is broken, or we cross compile.
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3412 $as_echo_n "checking whether we are cross compiling... " >&6; }
3413 if test "$cross_compiling" != yes; then
3414   { { ac_try="$ac_link"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421   (eval "$ac_link") 2>&5
3422   ac_status=$?
3423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424   test $ac_status = 0; }
3425   if { ac_try='./conftest$ac_cv_exeext'
3426   { { case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432   (eval "$ac_try") 2>&5
3433   ac_status=$?
3434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435   test $ac_status = 0; }; }; then
3436     cross_compiling=no
3437   else
3438     if test "$cross_compiling" = maybe; then
3439         cross_compiling=yes
3440     else
3441         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "cannot run C compiled programs.
3444 If you meant to cross compile, use \`--host'.
3445 See \`config.log' for more details" "$LINENO" 5; }
3446     fi
3447   fi
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3450 $as_echo "$cross_compiling" >&6; }
3451
3452 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3453 ac_clean_files=$ac_clean_files_save
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3455 $as_echo_n "checking for suffix of object files... " >&6; }
3456 if ${ac_cv_objext+:} false; then :
3457   $as_echo_n "(cached) " >&6
3458 else
3459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h.  */
3461
3462 int
3463 main ()
3464 {
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.o conftest.obj
3471 if { { ac_try="$ac_compile"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478   (eval "$ac_compile") 2>&5
3479   ac_status=$?
3480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481   test $ac_status = 0; }; then :
3482   for ac_file in conftest.o conftest.obj conftest.*; do
3483   test -f "$ac_file" || continue;
3484   case $ac_file in
3485     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3486     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3487        break;;
3488   esac
3489 done
3490 else
3491   $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error $? "cannot compute suffix of object files: cannot compile
3497 See \`config.log' for more details" "$LINENO" 5; }
3498 fi
3499 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3500 fi
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3502 $as_echo "$ac_cv_objext" >&6; }
3503 OBJEXT=$ac_cv_objext
3504 ac_objext=$OBJEXT
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3506 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3507 if ${ac_cv_c_compiler_gnu+:} false; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h.  */
3512
3513 int
3514 main ()
3515 {
3516 #ifndef __GNUC__
3517        choke me
3518 #endif
3519
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 if ac_fn_c_try_compile "$LINENO"; then :
3525   ac_compiler_gnu=yes
3526 else
3527   ac_compiler_gnu=no
3528 fi
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3531
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3534 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3535 if test $ac_compiler_gnu = yes; then
3536   GCC=yes
3537 else
3538   GCC=
3539 fi
3540 ac_test_CFLAGS=${CFLAGS+set}
3541 ac_save_CFLAGS=$CFLAGS
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3543 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3544 if ${ac_cv_prog_cc_g+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   ac_save_c_werror_flag=$ac_c_werror_flag
3548    ac_c_werror_flag=yes
3549    ac_cv_prog_cc_g=no
3550    CFLAGS="-g"
3551    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h.  */
3553
3554 int
3555 main ()
3556 {
3557
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563   ac_cv_prog_cc_g=yes
3564 else
3565   CFLAGS=""
3566       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h.  */
3568
3569 int
3570 main ()
3571 {
3572
3573   ;
3574   return 0;
3575 }
3576 _ACEOF
3577 if ac_fn_c_try_compile "$LINENO"; then :
3578
3579 else
3580   ac_c_werror_flag=$ac_save_c_werror_flag
3581          CFLAGS="-g"
3582          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h.  */
3584
3585 int
3586 main ()
3587 {
3588
3589   ;
3590   return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594   ac_cv_prog_cc_g=yes
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601    ac_c_werror_flag=$ac_save_c_werror_flag
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3604 $as_echo "$ac_cv_prog_cc_g" >&6; }
3605 if test "$ac_test_CFLAGS" = set; then
3606   CFLAGS=$ac_save_CFLAGS
3607 elif test $ac_cv_prog_cc_g = yes; then
3608   if test "$GCC" = yes; then
3609     CFLAGS="-g -O2"
3610   else
3611     CFLAGS="-g"
3612   fi
3613 else
3614   if test "$GCC" = yes; then
3615     CFLAGS="-O2"
3616   else
3617     CFLAGS=
3618   fi
3619 fi
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3621 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3622 if ${ac_cv_prog_cc_c89+:} false; then :
3623   $as_echo_n "(cached) " >&6
3624 else
3625   ac_cv_prog_cc_c89=no
3626 ac_save_CC=$CC
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h.  */
3629 #include <stdarg.h>
3630 #include <stdio.h>
3631 struct stat;
3632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3633 struct buf { int x; };
3634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635 static char *e (p, i)
3636      char **p;
3637      int i;
3638 {
3639   return p[i];
3640 }
3641 static char *f (char * (*g) (char **, int), char **p, ...)
3642 {
3643   char *s;
3644   va_list v;
3645   va_start (v,p);
3646   s = g (p, va_arg (v,int));
3647   va_end (v);
3648   return s;
3649 }
3650
3651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3652    function prototypes and stuff, but not '\xHH' hex character constants.
3653    These don't provoke an error unfortunately, instead are silently treated
3654    as 'x'.  The following induces an error, until -std is added to get
3655    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3656    array size at least.  It's necessary to write '\x00'==0 to get something
3657    that's true only with -std.  */
3658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659
3660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3661    inside strings and character constants.  */
3662 #define FOO(x) 'x'
3663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3664
3665 int test (int i, double x);
3666 struct s1 {int (*f) (int a);};
3667 struct s2 {int (*f) (double a);};
3668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3669 int argc;
3670 char **argv;
3671 int
3672 main ()
3673 {
3674 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3675   ;
3676   return 0;
3677 }
3678 _ACEOF
3679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3680         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3681 do
3682   CC="$ac_save_CC $ac_arg"
3683   if ac_fn_c_try_compile "$LINENO"; then :
3684   ac_cv_prog_cc_c89=$ac_arg
3685 fi
3686 rm -f core conftest.err conftest.$ac_objext
3687   test "x$ac_cv_prog_cc_c89" != "xno" && break
3688 done
3689 rm -f conftest.$ac_ext
3690 CC=$ac_save_CC
3691
3692 fi
3693 # AC_CACHE_VAL
3694 case "x$ac_cv_prog_cc_c89" in
3695   x)
3696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3697 $as_echo "none needed" >&6; } ;;
3698   xno)
3699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3700 $as_echo "unsupported" >&6; } ;;
3701   *)
3702     CC="$CC $ac_cv_prog_cc_c89"
3703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3704 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3705 esac
3706 if test "x$ac_cv_prog_cc_c89" != xno; then :
3707
3708 fi
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 DEPDIR="${am__leading_dot}deps"
3716
3717 ac_config_commands="$ac_config_commands depfiles"
3718
3719
3720 am_make=${MAKE-make}
3721 cat > confinc << 'END'
3722 am__doit:
3723         @echo this is the am__doit target
3724 .PHONY: am__doit
3725 END
3726 # If we don't find an include directive, just comment out the code.
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3728 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3729 am__include="#"
3730 am__quote=
3731 _am_result=none
3732 # First try GNU make style include.
3733 echo "include confinc" > confmf
3734 # Ignore all kinds of additional output from `make'.
3735 case `$am_make -s -f confmf 2> /dev/null` in #(
3736 *the\ am__doit\ target*)
3737   am__include=include
3738   am__quote=
3739   _am_result=GNU
3740   ;;
3741 esac
3742 # Now try BSD make style include.
3743 if test "$am__include" = "#"; then
3744    echo '.include "confinc"' > confmf
3745    case `$am_make -s -f confmf 2> /dev/null` in #(
3746    *the\ am__doit\ target*)
3747      am__include=.include
3748      am__quote="\""
3749      _am_result=BSD
3750      ;;
3751    esac
3752 fi
3753
3754
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3756 $as_echo "$_am_result" >&6; }
3757 rm -f confinc confmf
3758
3759 # Check whether --enable-dependency-tracking was given.
3760 if test "${enable_dependency_tracking+set}" = set; then :
3761   enableval=$enable_dependency_tracking;
3762 fi
3763
3764 if test "x$enable_dependency_tracking" != xno; then
3765   am_depcomp="$ac_aux_dir/depcomp"
3766   AMDEPBACKSLASH='\'
3767   am__nodep='_no'
3768 fi
3769  if test "x$enable_dependency_tracking" != xno; then
3770   AMDEP_TRUE=
3771   AMDEP_FALSE='#'
3772 else
3773   AMDEP_TRUE='#'
3774   AMDEP_FALSE=
3775 fi
3776
3777
3778
3779 depcc="$CC"   am_compiler_list=
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3782 $as_echo_n "checking dependency style of $depcc... " >&6; }
3783 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3784   $as_echo_n "(cached) " >&6
3785 else
3786   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3787   # We make a subdir and do the tests there.  Otherwise we can end up
3788   # making bogus files that we don't know about and never remove.  For
3789   # instance it was reported that on HP-UX the gcc test will end up
3790   # making a dummy file named `D' -- because `-MD' means `put the output
3791   # in D'.
3792   rm -rf conftest.dir
3793   mkdir conftest.dir
3794   # Copy depcomp to subdir because otherwise we won't find it if we're
3795   # using a relative directory.
3796   cp "$am_depcomp" conftest.dir
3797   cd conftest.dir
3798   # We will build objects and dependencies in a subdirectory because
3799   # it helps to detect inapplicable dependency modes.  For instance
3800   # both Tru64's cc and ICC support -MD to output dependencies as a
3801   # side effect of compilation, but ICC will put the dependencies in
3802   # the current directory while Tru64 will put them in the object
3803   # directory.
3804   mkdir sub
3805
3806   am_cv_CC_dependencies_compiler_type=none
3807   if test "$am_compiler_list" = ""; then
3808      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3809   fi
3810   am__universal=false
3811   case " $depcc " in #(
3812      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3813      esac
3814
3815   for depmode in $am_compiler_list; do
3816     # Setup a source with many dependencies, because some compilers
3817     # like to wrap large dependency lists on column 80 (with \), and
3818     # we should not choose a depcomp mode which is confused by this.
3819     #
3820     # We need to recreate these files for each test, as the compiler may
3821     # overwrite some of them when testing with obscure command lines.
3822     # This happens at least with the AIX C compiler.
3823     : > sub/conftest.c
3824     for i in 1 2 3 4 5 6; do
3825       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827       # Solaris 8's {/usr,}/bin/sh.
3828       touch sub/conftst$i.h
3829     done
3830     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831
3832     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3833     # mode.  It turns out that the SunPro C++ compiler does not properly
3834     # handle `-M -o', and we need to detect this.  Also, some Intel
3835     # versions had trouble with output in subdirs
3836     am__obj=sub/conftest.${OBJEXT-o}
3837     am__minus_obj="-o $am__obj"
3838     case $depmode in
3839     gcc)
3840       # This depmode causes a compiler race in universal mode.
3841       test "$am__universal" = false || continue
3842       ;;
3843     nosideeffect)
3844       # after this tag, mechanisms are not by side-effect, so they'll
3845       # only be used when explicitly requested
3846       if test "x$enable_dependency_tracking" = xyes; then
3847         continue
3848       else
3849         break
3850       fi
3851       ;;
3852     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3853       # This compiler won't grok `-c -o', but also, the minuso test has
3854       # not run yet.  These depmodes are late enough in the game, and
3855       # so weak that their functioning should not be impacted.
3856       am__obj=conftest.${OBJEXT-o}
3857       am__minus_obj=
3858       ;;
3859     none) break ;;
3860     esac
3861     if depmode=$depmode \
3862        source=sub/conftest.c object=$am__obj \
3863        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3864        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3865          >/dev/null 2>conftest.err &&
3866        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3867        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3868        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3869        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3870       # icc doesn't choke on unknown options, it will just issue warnings
3871       # or remarks (even with -Werror).  So we grep stderr for any message
3872       # that says an option was ignored or not supported.
3873       # When given -MP, icc 7.0 and 7.1 complain thusly:
3874       #   icc: Command line warning: ignoring option '-M'; no argument required
3875       # The diagnosis changed in icc 8.0:
3876       #   icc: Command line remark: option '-MP' not supported
3877       if (grep 'ignoring option' conftest.err ||
3878           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3879         am_cv_CC_dependencies_compiler_type=$depmode
3880         break
3881       fi
3882     fi
3883   done
3884
3885   cd ..
3886   rm -rf conftest.dir
3887 else
3888   am_cv_CC_dependencies_compiler_type=none
3889 fi
3890
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3893 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3894 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3895
3896  if
3897   test "x$enable_dependency_tracking" != xno \
3898   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3899   am__fastdepCC_TRUE=
3900   am__fastdepCC_FALSE='#'
3901 else
3902   am__fastdepCC_TRUE='#'
3903   am__fastdepCC_FALSE=
3904 fi
3905
3906
3907 if test "x$CC" != xcc; then
3908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3909 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3910 else
3911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3912 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3913 fi
3914 set dummy $CC; ac_cc=`$as_echo "$2" |
3915                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3916 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3917   $as_echo_n "(cached) " >&6
3918 else
3919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h.  */
3921
3922 int
3923 main ()
3924 {
3925
3926   ;
3927   return 0;
3928 }
3929 _ACEOF
3930 # Make sure it works both with $CC and with simple cc.
3931 # We do the test twice because some compilers refuse to overwrite an
3932 # existing .o file with -o, though they will create one.
3933 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3934 rm -f conftest2.*
3935 if { { case "(($ac_try" in
3936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937   *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941   (eval "$ac_try") 2>&5
3942   ac_status=$?
3943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944   test $ac_status = 0; } &&
3945    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947   *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951   (eval "$ac_try") 2>&5
3952   ac_status=$?
3953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954   test $ac_status = 0; };
3955 then
3956   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3957   if test "x$CC" != xcc; then
3958     # Test first that cc exists at all.
3959     if { ac_try='cc -c conftest.$ac_ext >&5'
3960   { { case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 $as_echo "$ac_try_echo"; } >&5
3966   (eval "$ac_try") 2>&5
3967   ac_status=$?
3968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969   test $ac_status = 0; }; }; then
3970       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3971       rm -f conftest2.*
3972       if { { case "(($ac_try" in
3973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974   *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978   (eval "$ac_try") 2>&5
3979   ac_status=$?
3980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981   test $ac_status = 0; } &&
3982          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984   *) ac_try_echo=$ac_try;;
3985 esac
3986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3987 $as_echo "$ac_try_echo"; } >&5
3988   (eval "$ac_try") 2>&5
3989   ac_status=$?
3990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3991   test $ac_status = 0; };
3992       then
3993         # cc works too.
3994         :
3995       else
3996         # cc exists but doesn't like -o.
3997         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3998       fi
3999     fi
4000   fi
4001 else
4002   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4003 fi
4004 rm -f core conftest*
4005
4006 fi
4007 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4009 $as_echo "yes" >&6; }
4010 else
4011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4013
4014 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4015
4016 fi
4017
4018 # FIXME: we rely on the cache variable name because
4019 # there is no other way.
4020 set dummy $CC
4021 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4022 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4023 if test "$am_t" != yes; then
4024    # Losing compiler, so override with the script.
4025    # FIXME: It is wrong to rewrite CC.
4026    # But if we don't then we get into trouble of one sort or another.
4027    # A longer-term fix would be to have automake use am__CC in this case,
4028    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4029    CC="$am_aux_dir/compile $CC"
4030 fi
4031
4032
4033
4034
4035 # Check whether --enable-largefile was given.
4036 if test "${enable_largefile+set}" = set; then :
4037   enableval=$enable_largefile;
4038 fi
4039
4040 if test "$enable_largefile" != no; then
4041
4042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4043 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4044 if ${ac_cv_sys_largefile_CC+:} false; then :
4045   $as_echo_n "(cached) " >&6
4046 else
4047   ac_cv_sys_largefile_CC=no
4048      if test "$GCC" != yes; then
4049        ac_save_CC=$CC
4050        while :; do
4051          # IRIX 6.2 and later do not support large files by default,
4052          # so use the C compiler's -n32 option if that helps.
4053          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h.  */
4055 #include <sys/types.h>
4056  /* Check that off_t can represent 2**63 - 1 correctly.
4057     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4058     since some C++ compilers masquerading as C compilers
4059     incorrectly reject 9223372036854775807.  */
4060 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4061   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4062                        && LARGE_OFF_T % 2147483647 == 1)
4063                       ? 1 : -1];
4064 int
4065 main ()
4066 {
4067
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072          if ac_fn_c_try_compile "$LINENO"; then :
4073   break
4074 fi
4075 rm -f core conftest.err conftest.$ac_objext
4076          CC="$CC -n32"
4077          if ac_fn_c_try_compile "$LINENO"; then :
4078   ac_cv_sys_largefile_CC=' -n32'; break
4079 fi
4080 rm -f core conftest.err conftest.$ac_objext
4081          break
4082        done
4083        CC=$ac_save_CC
4084        rm -f conftest.$ac_ext
4085     fi
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4088 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4089   if test "$ac_cv_sys_largefile_CC" != no; then
4090     CC=$CC$ac_cv_sys_largefile_CC
4091   fi
4092
4093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4094 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4095 if ${ac_cv_sys_file_offset_bits+:} false; then :
4096   $as_echo_n "(cached) " >&6
4097 else
4098   while :; do
4099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h.  */
4101 #include <sys/types.h>
4102  /* Check that off_t can represent 2**63 - 1 correctly.
4103     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4104     since some C++ compilers masquerading as C compilers
4105     incorrectly reject 9223372036854775807.  */
4106 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4107   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4108                        && LARGE_OFF_T % 2147483647 == 1)
4109                       ? 1 : -1];
4110 int
4111 main ()
4112 {
4113
4114   ;
4115   return 0;
4116 }
4117 _ACEOF
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119   ac_cv_sys_file_offset_bits=no; break
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h.  */
4124 #define _FILE_OFFSET_BITS 64
4125 #include <sys/types.h>
4126  /* Check that off_t can represent 2**63 - 1 correctly.
4127     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4128     since some C++ compilers masquerading as C compilers
4129     incorrectly reject 9223372036854775807.  */
4130 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4131   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4132                        && LARGE_OFF_T % 2147483647 == 1)
4133                       ? 1 : -1];
4134 int
4135 main ()
4136 {
4137
4138   ;
4139   return 0;
4140 }
4141 _ACEOF
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143   ac_cv_sys_file_offset_bits=64; break
4144 fi
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146   ac_cv_sys_file_offset_bits=unknown
4147   break
4148 done
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4151 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4152 case $ac_cv_sys_file_offset_bits in #(
4153   no | unknown) ;;
4154   *)
4155 cat >>confdefs.h <<_ACEOF
4156 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4157 _ACEOF
4158 ;;
4159 esac
4160 rm -rf conftest*
4161   if test $ac_cv_sys_file_offset_bits = unknown; then
4162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4163 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4164 if ${ac_cv_sys_large_files+:} false; then :
4165   $as_echo_n "(cached) " >&6
4166 else
4167   while :; do
4168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h.  */
4170 #include <sys/types.h>
4171  /* Check that off_t can represent 2**63 - 1 correctly.
4172     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4173     since some C++ compilers masquerading as C compilers
4174     incorrectly reject 9223372036854775807.  */
4175 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4176   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4177                        && LARGE_OFF_T % 2147483647 == 1)
4178                       ? 1 : -1];
4179 int
4180 main ()
4181 {
4182
4183   ;
4184   return 0;
4185 }
4186 _ACEOF
4187 if ac_fn_c_try_compile "$LINENO"; then :
4188   ac_cv_sys_large_files=no; break
4189 fi
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h.  */
4193 #define _LARGE_FILES 1
4194 #include <sys/types.h>
4195  /* Check that off_t can represent 2**63 - 1 correctly.
4196     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4197     since some C++ compilers masquerading as C compilers
4198     incorrectly reject 9223372036854775807.  */
4199 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4200   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4201                        && LARGE_OFF_T % 2147483647 == 1)
4202                       ? 1 : -1];
4203 int
4204 main ()
4205 {
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212   ac_cv_sys_large_files=1; break
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215   ac_cv_sys_large_files=unknown
4216   break
4217 done
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4220 $as_echo "$ac_cv_sys_large_files" >&6; }
4221 case $ac_cv_sys_large_files in #(
4222   no | unknown) ;;
4223   *)
4224 cat >>confdefs.h <<_ACEOF
4225 #define _LARGE_FILES $ac_cv_sys_large_files
4226 _ACEOF
4227 ;;
4228 esac
4229 rm -rf conftest*
4230   fi
4231
4232
4233 fi
4234
4235
4236 # Checks lib build
4237 if test -n "$ac_tool_prefix"; then
4238   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4239 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_RANLIB+:} false; then :
4243   $as_echo_n "(cached) " >&6
4244 else
4245   if test -n "$RANLIB"; then
4246   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251   IFS=$as_save_IFS
4252   test -z "$as_dir" && as_dir=.
4253     for ac_exec_ext in '' $ac_executable_extensions; do
4254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257     break 2
4258   fi
4259 done
4260   done
4261 IFS=$as_save_IFS
4262
4263 fi
4264 fi
4265 RANLIB=$ac_cv_prog_RANLIB
4266 if test -n "$RANLIB"; then
4267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4268 $as_echo "$RANLIB" >&6; }
4269 else
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4272 fi
4273
4274
4275 fi
4276 if test -z "$ac_cv_prog_RANLIB"; then
4277   ac_ct_RANLIB=$RANLIB
4278   # Extract the first word of "ranlib", so it can be a program name with args.
4279 set dummy ranlib; ac_word=$2
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 $as_echo_n "checking for $ac_word... " >&6; }
4282 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4283   $as_echo_n "(cached) " >&6
4284 else
4285   if test -n "$ac_ct_RANLIB"; then
4286   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293     for ac_exec_ext in '' $ac_executable_extensions; do
4294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295     ac_cv_prog_ac_ct_RANLIB="ranlib"
4296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297     break 2
4298   fi
4299 done
4300   done
4301 IFS=$as_save_IFS
4302
4303 fi
4304 fi
4305 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4306 if test -n "$ac_ct_RANLIB"; then
4307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4308 $as_echo "$ac_ct_RANLIB" >&6; }
4309 else
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4312 fi
4313
4314   if test "x$ac_ct_RANLIB" = x; then
4315     RANLIB=":"
4316   else
4317     case $cross_compiling:$ac_tool_warned in
4318 yes:)
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4321 ac_tool_warned=yes ;;
4322 esac
4323     RANLIB=$ac_ct_RANLIB
4324   fi
4325 else
4326   RANLIB="$ac_cv_prog_RANLIB"
4327 fi
4328
4329 if test -n "$ac_tool_prefix"; then
4330   for ac_prog in ar lib "link -lib"
4331   do
4332     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if ${ac_cv_prog_AR+:} false; then :
4337   $as_echo_n "(cached) " >&6
4338 else
4339   if test -n "$AR"; then
4340   ac_cv_prog_AR="$AR" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4344 do
4345   IFS=$as_save_IFS
4346   test -z "$as_dir" && as_dir=.
4347     for ac_exec_ext in '' $ac_executable_extensions; do
4348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351     break 2
4352   fi
4353 done
4354   done
4355 IFS=$as_save_IFS
4356
4357 fi
4358 fi
4359 AR=$ac_cv_prog_AR
4360 if test -n "$AR"; then
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4362 $as_echo "$AR" >&6; }
4363 else
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366 fi
4367
4368
4369     test -n "$AR" && break
4370   done
4371 fi
4372 if test -z "$AR"; then
4373   ac_ct_AR=$AR
4374   for ac_prog in ar lib "link -lib"
4375 do
4376   # Extract the first word of "$ac_prog", so it can be a program name with args.
4377 set dummy $ac_prog; ac_word=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4381   $as_echo_n "(cached) " >&6
4382 else
4383   if test -n "$ac_ct_AR"; then
4384   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4385 else
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4388 do
4389   IFS=$as_save_IFS
4390   test -z "$as_dir" && as_dir=.
4391     for ac_exec_ext in '' $ac_executable_extensions; do
4392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393     ac_cv_prog_ac_ct_AR="$ac_prog"
4394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395     break 2
4396   fi
4397 done
4398   done
4399 IFS=$as_save_IFS
4400
4401 fi
4402 fi
4403 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4404 if test -n "$ac_ct_AR"; then
4405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4406 $as_echo "$ac_ct_AR" >&6; }
4407 else
4408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4410 fi
4411
4412
4413   test -n "$ac_ct_AR" && break
4414 done
4415
4416   if test "x$ac_ct_AR" = x; then
4417     AR="false"
4418   else
4419     case $cross_compiling:$ac_tool_warned in
4420 yes:)
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423 ac_tool_warned=yes ;;
4424 esac
4425     AR=$ac_ct_AR
4426   fi
4427 fi
4428
4429 : ${AR=ar}
4430
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4432 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4433 if ${am_cv_ar_interface+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   am_cv_ar_interface=ar
4437    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h.  */
4439 int some_variable = 0;
4440 _ACEOF
4441 if ac_fn_c_try_compile "$LINENO"; then :
4442   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4443       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4444   (eval $am_ar_try) 2>&5
4445   ac_status=$?
4446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447   test $ac_status = 0; }
4448       if test "$ac_status" -eq 0; then
4449         am_cv_ar_interface=ar
4450       else
4451         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4452         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4453   (eval $am_ar_try) 2>&5
4454   ac_status=$?
4455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456   test $ac_status = 0; }
4457         if test "$ac_status" -eq 0; then
4458           am_cv_ar_interface=lib
4459         else
4460           am_cv_ar_interface=unknown
4461         fi
4462       fi
4463       rm -f conftest.lib libconftest.a
4464
4465 fi
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467
4468 fi
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4470 $as_echo "$am_cv_ar_interface" >&6; }
4471
4472 case $am_cv_ar_interface in
4473 ar)
4474   ;;
4475 lib)
4476   # Microsoft lib, so override with the ar-lib wrapper script.
4477   # FIXME: It is wrong to rewrite AR.
4478   # But if we don't then we get into trouble of one sort or another.
4479   # A longer-term fix would be to have automake use am__AR in this case,
4480   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4481   # similar.
4482   AR="$am_aux_dir/ar-lib $AR"
4483   ;;
4484 unknown)
4485   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4486   ;;
4487 esac
4488
4489
4490 # Checks for header files.
4491 ac_ext=c
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4497 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4498 # On Suns, sometimes $CPP names a directory.
4499 if test -n "$CPP" && test -d "$CPP"; then
4500   CPP=
4501 fi
4502 if test -z "$CPP"; then
4503   if ${ac_cv_prog_CPP+:} false; then :
4504   $as_echo_n "(cached) " >&6
4505 else
4506       # Double quotes because CPP needs to be expanded
4507     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4508     do
4509       ac_preproc_ok=false
4510 for ac_c_preproc_warn_flag in '' yes
4511 do
4512   # Use a header file that comes with gcc, so configuring glibc
4513   # with a fresh cross-compiler works.
4514   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4515   # <limits.h> exists even on freestanding compilers.
4516   # On the NeXT, cc -E runs the code through the compiler's parser,
4517   # not just through cpp. "Syntax error" is here to catch this case.
4518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h.  */
4520 #ifdef __STDC__
4521 # include <limits.h>
4522 #else
4523 # include <assert.h>
4524 #endif
4525                      Syntax error
4526 _ACEOF
4527 if ac_fn_c_try_cpp "$LINENO"; then :
4528
4529 else
4530   # Broken: fails on valid input.
4531 continue
4532 fi
4533 rm -f conftest.err conftest.i conftest.$ac_ext
4534
4535   # OK, works on sane cases.  Now check whether nonexistent headers
4536   # can be detected and how.
4537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h.  */
4539 #include <ac_nonexistent.h>
4540 _ACEOF
4541 if ac_fn_c_try_cpp "$LINENO"; then :
4542   # Broken: success on invalid input.
4543 continue
4544 else
4545   # Passes both tests.
4546 ac_preproc_ok=:
4547 break
4548 fi
4549 rm -f conftest.err conftest.i conftest.$ac_ext
4550
4551 done
4552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4553 rm -f conftest.i conftest.err conftest.$ac_ext
4554 if $ac_preproc_ok; then :
4555   break
4556 fi
4557
4558     done
4559     ac_cv_prog_CPP=$CPP
4560
4561 fi
4562   CPP=$ac_cv_prog_CPP
4563 else
4564   ac_cv_prog_CPP=$CPP
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4567 $as_echo "$CPP" >&6; }
4568 ac_preproc_ok=false
4569 for ac_c_preproc_warn_flag in '' yes
4570 do
4571   # Use a header file that comes with gcc, so configuring glibc
4572   # with a fresh cross-compiler works.
4573   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4574   # <limits.h> exists even on freestanding compilers.
4575   # On the NeXT, cc -E runs the code through the compiler's parser,
4576   # not just through cpp. "Syntax error" is here to catch this case.
4577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h.  */
4579 #ifdef __STDC__
4580 # include <limits.h>
4581 #else
4582 # include <assert.h>
4583 #endif
4584                      Syntax error
4585 _ACEOF
4586 if ac_fn_c_try_cpp "$LINENO"; then :
4587
4588 else
4589   # Broken: fails on valid input.
4590 continue
4591 fi
4592 rm -f conftest.err conftest.i conftest.$ac_ext
4593
4594   # OK, works on sane cases.  Now check whether nonexistent headers
4595   # can be detected and how.
4596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598 #include <ac_nonexistent.h>
4599 _ACEOF
4600 if ac_fn_c_try_cpp "$LINENO"; then :
4601   # Broken: success on invalid input.
4602 continue
4603 else
4604   # Passes both tests.
4605 ac_preproc_ok=:
4606 break
4607 fi
4608 rm -f conftest.err conftest.i conftest.$ac_ext
4609
4610 done
4611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4612 rm -f conftest.i conftest.err conftest.$ac_ext
4613 if $ac_preproc_ok; then :
4614
4615 else
4616   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4618 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4619 See \`config.log' for more details" "$LINENO" 5; }
4620 fi
4621
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627
4628
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4630 $as_echo_n "checking for X... " >&6; }
4631
4632
4633 # Check whether --with-x was given.
4634 if test "${with_x+set}" = set; then :
4635   withval=$with_x;
4636 fi
4637
4638 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4639 if test "x$with_x" = xno; then
4640   # The user explicitly disabled X.
4641   have_x=disabled
4642 else
4643   case $x_includes,$x_libraries in #(
4644     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4645     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4646   $as_echo_n "(cached) " >&6
4647 else
4648   # One or both of the vars are not set, and there is no cached value.
4649 ac_x_includes=no ac_x_libraries=no
4650 rm -f -r conftest.dir
4651 if mkdir conftest.dir; then
4652   cd conftest.dir
4653   cat >Imakefile <<'_ACEOF'
4654 incroot:
4655         @echo incroot='${INCROOT}'
4656 usrlibdir:
4657         @echo usrlibdir='${USRLIBDIR}'
4658 libdir:
4659         @echo libdir='${LIBDIR}'
4660 _ACEOF
4661   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4662     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4663     for ac_var in incroot usrlibdir libdir; do
4664       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4665     done
4666     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4667     for ac_extension in a so sl dylib la dll; do
4668       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4669          test -f "$ac_im_libdir/libX11.$ac_extension"; then
4670         ac_im_usrlibdir=$ac_im_libdir; break
4671       fi
4672     done
4673     # Screen out bogus values from the imake configuration.  They are
4674     # bogus both because they are the default anyway, and because
4675     # using them would break gcc on systems where it needs fixed includes.
4676     case $ac_im_incroot in
4677         /usr/include) ac_x_includes= ;;
4678         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4679     esac
4680     case $ac_im_usrlibdir in
4681         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4682         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4683     esac
4684   fi
4685   cd ..
4686   rm -f -r conftest.dir
4687 fi
4688
4689 # Standard set of common directories for X headers.
4690 # Check X11 before X11Rn because it is often a symlink to the current release.
4691 ac_x_header_dirs='
4692 /usr/X11/include
4693 /usr/X11R7/include
4694 /usr/X11R6/include
4695 /usr/X11R5/include
4696 /usr/X11R4/include
4697
4698 /usr/include/X11
4699 /usr/include/X11R7
4700 /usr/include/X11R6
4701 /usr/include/X11R5
4702 /usr/include/X11R4
4703
4704 /usr/local/X11/include
4705 /usr/local/X11R7/include
4706 /usr/local/X11R6/include
4707 /usr/local/X11R5/include
4708 /usr/local/X11R4/include
4709
4710 /usr/local/include/X11
4711 /usr/local/include/X11R7
4712 /usr/local/include/X11R6
4713 /usr/local/include/X11R5
4714 /usr/local/include/X11R4
4715
4716 /usr/X386/include
4717 /usr/x386/include
4718 /usr/XFree86/include/X11
4719
4720 /usr/include
4721 /usr/local/include
4722 /usr/unsupported/include
4723 /usr/athena/include
4724 /usr/local/x11r5/include
4725 /usr/lpp/Xamples/include
4726
4727 /usr/openwin/include
4728 /usr/openwin/share/include'
4729
4730 if test "$ac_x_includes" = no; then
4731   # Guess where to find include files, by looking for Xlib.h.
4732   # First, try using that file with no special directory specified.
4733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h.  */
4735 #include <X11/Xlib.h>
4736 _ACEOF
4737 if ac_fn_c_try_cpp "$LINENO"; then :
4738   # We can compile using X headers with no special include directory.
4739 ac_x_includes=
4740 else
4741   for ac_dir in $ac_x_header_dirs; do
4742   if test -r "$ac_dir/X11/Xlib.h"; then
4743     ac_x_includes=$ac_dir
4744     break
4745   fi
4746 done
4747 fi
4748 rm -f conftest.err conftest.i conftest.$ac_ext
4749 fi # $ac_x_includes = no
4750
4751 if test "$ac_x_libraries" = no; then
4752   # Check for the libraries.
4753   # See if we find them without any special options.
4754   # Don't add to $LIBS permanently.
4755   ac_save_LIBS=$LIBS
4756   LIBS="-lX11 $LIBS"
4757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h.  */
4759 #include <X11/Xlib.h>
4760 int
4761 main ()
4762 {
4763 XrmInitialize ()
4764   ;
4765   return 0;
4766 }
4767 _ACEOF
4768 if ac_fn_c_try_link "$LINENO"; then :
4769   LIBS=$ac_save_LIBS
4770 # We can link X programs with no special library path.
4771 ac_x_libraries=
4772 else
4773   LIBS=$ac_save_LIBS
4774 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4775 do
4776   # Don't even attempt the hair of trying to link an X program!
4777   for ac_extension in a so sl dylib la dll; do
4778     if test -r "$ac_dir/libX11.$ac_extension"; then
4779       ac_x_libraries=$ac_dir
4780       break 2
4781     fi
4782   done
4783 done
4784 fi
4785 rm -f core conftest.err conftest.$ac_objext \
4786     conftest$ac_exeext conftest.$ac_ext
4787 fi # $ac_x_libraries = no
4788
4789 case $ac_x_includes,$ac_x_libraries in #(
4790   no,* | *,no | *\'*)
4791     # Didn't find X, or a directory has "'" in its name.
4792     ac_cv_have_x="have_x=no";; #(
4793   *)
4794     # Record where we found X for the cache.
4795     ac_cv_have_x="have_x=yes\
4796         ac_x_includes='$ac_x_includes'\
4797         ac_x_libraries='$ac_x_libraries'"
4798 esac
4799 fi
4800 ;; #(
4801     *) have_x=yes;;
4802   esac
4803   eval "$ac_cv_have_x"
4804 fi # $with_x != no
4805
4806 if test "$have_x" != yes; then
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4808 $as_echo "$have_x" >&6; }
4809   no_x=yes
4810 else
4811   # If each of the values was on the command line, it overrides each guess.
4812   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4813   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4814   # Update the cache value to reflect the command line values.
4815   ac_cv_have_x="have_x=yes\
4816         ac_x_includes='$x_includes'\
4817         ac_x_libraries='$x_libraries'"
4818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4819 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4820 fi
4821
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4823 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4824 if ${ac_cv_path_GREP+:} false; then :
4825   $as_echo_n "(cached) " >&6
4826 else
4827   if test -z "$GREP"; then
4828   ac_path_GREP_found=false
4829   # Loop through the user's path and test for each of PROGNAME-LIST
4830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835     for ac_prog in grep ggrep; do
4836     for ac_exec_ext in '' $ac_executable_extensions; do
4837       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4838       as_fn_executable_p "$ac_path_GREP" || continue
4839 # Check for GNU ac_path_GREP and select it if it is found.
4840   # Check for GNU $ac_path_GREP
4841 case `"$ac_path_GREP" --version 2>&1` in
4842 *GNU*)
4843   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4844 *)
4845   ac_count=0
4846   $as_echo_n 0123456789 >"conftest.in"
4847   while :
4848   do
4849     cat "conftest.in" "conftest.in" >"conftest.tmp"
4850     mv "conftest.tmp" "conftest.in"
4851     cp "conftest.in" "conftest.nl"
4852     $as_echo 'GREP' >> "conftest.nl"
4853     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4854     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4855     as_fn_arith $ac_count + 1 && ac_count=$as_val
4856     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4857       # Best one so far, save it but keep looking for a better one
4858       ac_cv_path_GREP="$ac_path_GREP"
4859       ac_path_GREP_max=$ac_count
4860     fi
4861     # 10*(2^10) chars as input seems more than enough
4862     test $ac_count -gt 10 && break
4863   done
4864   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4865 esac
4866
4867       $ac_path_GREP_found && break 3
4868     done
4869   done
4870   done
4871 IFS=$as_save_IFS
4872   if test -z "$ac_cv_path_GREP"; then
4873     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4874   fi
4875 else
4876   ac_cv_path_GREP=$GREP
4877 fi
4878
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4881 $as_echo "$ac_cv_path_GREP" >&6; }
4882  GREP="$ac_cv_path_GREP"
4883
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4886 $as_echo_n "checking for egrep... " >&6; }
4887 if ${ac_cv_path_EGREP+:} false; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4891    then ac_cv_path_EGREP="$GREP -E"
4892    else
4893      if test -z "$EGREP"; then
4894   ac_path_EGREP_found=false
4895   # Loop through the user's path and test for each of PROGNAME-LIST
4896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901     for ac_prog in egrep; do
4902     for ac_exec_ext in '' $ac_executable_extensions; do
4903       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4904       as_fn_executable_p "$ac_path_EGREP" || continue
4905 # Check for GNU ac_path_EGREP and select it if it is found.
4906   # Check for GNU $ac_path_EGREP
4907 case `"$ac_path_EGREP" --version 2>&1` in
4908 *GNU*)
4909   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4910 *)
4911   ac_count=0
4912   $as_echo_n 0123456789 >"conftest.in"
4913   while :
4914   do
4915     cat "conftest.in" "conftest.in" >"conftest.tmp"
4916     mv "conftest.tmp" "conftest.in"
4917     cp "conftest.in" "conftest.nl"
4918     $as_echo 'EGREP' >> "conftest.nl"
4919     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4920     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4921     as_fn_arith $ac_count + 1 && ac_count=$as_val
4922     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4923       # Best one so far, save it but keep looking for a better one
4924       ac_cv_path_EGREP="$ac_path_EGREP"
4925       ac_path_EGREP_max=$ac_count
4926     fi
4927     # 10*(2^10) chars as input seems more than enough
4928     test $ac_count -gt 10 && break
4929   done
4930   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4931 esac
4932
4933       $ac_path_EGREP_found && break 3
4934     done
4935   done
4936   done
4937 IFS=$as_save_IFS
4938   if test -z "$ac_cv_path_EGREP"; then
4939     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4940   fi
4941 else
4942   ac_cv_path_EGREP=$EGREP
4943 fi
4944
4945    fi
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4948 $as_echo "$ac_cv_path_EGREP" >&6; }
4949  EGREP="$ac_cv_path_EGREP"
4950
4951
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4953 $as_echo_n "checking for ANSI C header files... " >&6; }
4954 if ${ac_cv_header_stdc+:} false; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h.  */
4959 #include <stdlib.h>
4960 #include <stdarg.h>
4961 #include <string.h>
4962 #include <float.h>
4963
4964 int
4965 main ()
4966 {
4967
4968   ;
4969   return 0;
4970 }
4971 _ACEOF
4972 if ac_fn_c_try_compile "$LINENO"; then :
4973   ac_cv_header_stdc=yes
4974 else
4975   ac_cv_header_stdc=no
4976 fi
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978
4979 if test $ac_cv_header_stdc = yes; then
4980   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h.  */
4983 #include <string.h>
4984
4985 _ACEOF
4986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4987   $EGREP "memchr" >/dev/null 2>&1; then :
4988
4989 else
4990   ac_cv_header_stdc=no
4991 fi
4992 rm -f conftest*
4993
4994 fi
4995
4996 if test $ac_cv_header_stdc = yes; then
4997   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h.  */
5000 #include <stdlib.h>
5001
5002 _ACEOF
5003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5004   $EGREP "free" >/dev/null 2>&1; then :
5005
5006 else
5007   ac_cv_header_stdc=no
5008 fi
5009 rm -f conftest*
5010
5011 fi
5012
5013 if test $ac_cv_header_stdc = yes; then
5014   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5015   if test "$cross_compiling" = yes; then :
5016   :
5017 else
5018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h.  */
5020 #include <ctype.h>
5021 #include <stdlib.h>
5022 #if ((' ' & 0x0FF) == 0x020)
5023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5025 #else
5026 # define ISLOWER(c) \
5027                    (('a' <= (c) && (c) <= 'i') \
5028                      || ('j' <= (c) && (c) <= 'r') \
5029                      || ('s' <= (c) && (c) <= 'z'))
5030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5031 #endif
5032
5033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5034 int
5035 main ()
5036 {
5037   int i;
5038   for (i = 0; i < 256; i++)
5039     if (XOR (islower (i), ISLOWER (i))
5040         || toupper (i) != TOUPPER (i))
5041       return 2;
5042   return 0;
5043 }
5044 _ACEOF
5045 if ac_fn_c_try_run "$LINENO"; then :
5046
5047 else
5048   ac_cv_header_stdc=no
5049 fi
5050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5051   conftest.$ac_objext conftest.beam conftest.$ac_ext
5052 fi
5053
5054 fi
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5057 $as_echo "$ac_cv_header_stdc" >&6; }
5058 if test $ac_cv_header_stdc = yes; then
5059
5060 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5061
5062 fi
5063
5064 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5065 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5066                   inttypes.h stdint.h unistd.h
5067 do :
5068   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5069 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5070 "
5071 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5072   cat >>confdefs.h <<_ACEOF
5073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5074 _ACEOF
5075
5076 fi
5077
5078 done
5079
5080
5081 for ac_header in stdbool.h
5082 do :
5083   ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
5084 if test "x$ac_cv_header_stdbool_h" = xyes; then :
5085   cat >>confdefs.h <<_ACEOF
5086 #define HAVE_STDBOOL_H 1
5087 _ACEOF
5088
5089 fi
5090
5091 done
5092
5093
5094 # Checks for typedefs, structures, and compiler characteristics.
5095 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5096 if test "x$ac_cv_type_size_t" = xyes; then :
5097
5098 else
5099
5100 cat >>confdefs.h <<_ACEOF
5101 #define size_t unsigned int
5102 _ACEOF
5103
5104 fi
5105
5106 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5107 if test "x$ac_cv_type_ssize_t" = xyes; then :
5108
5109 else
5110
5111 cat >>confdefs.h <<_ACEOF
5112 #define ssize_t int
5113 _ACEOF
5114
5115 fi
5116
5117
5118 # Checks for library functions.
5119 for ac_header in stdlib.h
5120 do :
5121   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5122 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5123   cat >>confdefs.h <<_ACEOF
5124 #define HAVE_STDLIB_H 1
5125 _ACEOF
5126
5127 fi
5128
5129 done
5130
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5132 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5133 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5134   $as_echo_n "(cached) " >&6
5135 else
5136   if test "$cross_compiling" = yes; then :
5137   ac_cv_func_malloc_0_nonnull=no
5138 else
5139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h.  */
5141 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5142 # include <stdlib.h>
5143 #else
5144 char *malloc ();
5145 #endif
5146
5147 int
5148 main ()
5149 {
5150 return ! malloc (0);
5151   ;
5152   return 0;
5153 }
5154 _ACEOF
5155 if ac_fn_c_try_run "$LINENO"; then :
5156   ac_cv_func_malloc_0_nonnull=yes
5157 else
5158   ac_cv_func_malloc_0_nonnull=no
5159 fi
5160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5161   conftest.$ac_objext conftest.beam conftest.$ac_ext
5162 fi
5163
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5166 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5167 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5168
5169 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5170
5171 else
5172   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5173
5174    case " $LIBOBJS " in
5175   *" malloc.$ac_objext "* ) ;;
5176   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5177  ;;
5178 esac
5179
5180
5181 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5182
5183 fi
5184
5185
5186 for ac_header in stdlib.h
5187 do :
5188   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5189 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5190   cat >>confdefs.h <<_ACEOF
5191 #define HAVE_STDLIB_H 1
5192 _ACEOF
5193
5194 fi
5195
5196 done
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
5199 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5200 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203   if test "$cross_compiling" = yes; then :
5204   ac_cv_func_realloc_0_nonnull=no
5205 else
5206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h.  */
5208 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5209 # include <stdlib.h>
5210 #else
5211 char *realloc ();
5212 #endif
5213
5214 int
5215 main ()
5216 {
5217 return ! realloc (0, 0);
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 if ac_fn_c_try_run "$LINENO"; then :
5223   ac_cv_func_realloc_0_nonnull=yes
5224 else
5225   ac_cv_func_realloc_0_nonnull=no
5226 fi
5227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5228   conftest.$ac_objext conftest.beam conftest.$ac_ext
5229 fi
5230
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
5233 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5234 if test $ac_cv_func_realloc_0_nonnull = yes; then :
5235
5236 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
5237
5238 else
5239   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
5240
5241    case " $LIBOBJS " in
5242   *" realloc.$ac_objext "* ) ;;
5243   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5244  ;;
5245 esac
5246
5247
5248 $as_echo "#define realloc rpl_realloc" >>confdefs.h
5249
5250 fi
5251
5252
5253 for ac_func in gettimeofday memmove socket strdup strtol
5254 do :
5255   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5256 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5257 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5258   cat >>confdefs.h <<_ACEOF
5259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5260 _ACEOF
5261
5262 fi
5263 done
5264
5265
5266
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5268 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5269 if ${ac_cv_path_SED+:} false; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5273      for ac_i in 1 2 3 4 5 6 7; do
5274        ac_script="$ac_script$as_nl$ac_script"
5275      done
5276      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5277      { ac_script=; unset ac_script;}
5278      if test -z "$SED"; then
5279   ac_path_SED_found=false
5280   # Loop through the user's path and test for each of PROGNAME-LIST
5281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284   IFS=$as_save_IFS
5285   test -z "$as_dir" && as_dir=.
5286     for ac_prog in sed gsed; do
5287     for ac_exec_ext in '' $ac_executable_extensions; do
5288       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5289       as_fn_executable_p "$ac_path_SED" || continue
5290 # Check for GNU ac_path_SED and select it if it is found.
5291   # Check for GNU $ac_path_SED
5292 case `"$ac_path_SED" --version 2>&1` in
5293 *GNU*)
5294   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5295 *)
5296   ac_count=0
5297   $as_echo_n 0123456789 >"conftest.in"
5298   while :
5299   do
5300     cat "conftest.in" "conftest.in" >"conftest.tmp"
5301     mv "conftest.tmp" "conftest.in"
5302     cp "conftest.in" "conftest.nl"
5303     $as_echo '' >> "conftest.nl"
5304     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5305     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5306     as_fn_arith $ac_count + 1 && ac_count=$as_val
5307     if test $ac_count -gt ${ac_path_SED_max-0}; then
5308       # Best one so far, save it but keep looking for a better one
5309       ac_cv_path_SED="$ac_path_SED"
5310       ac_path_SED_max=$ac_count
5311     fi
5312     # 10*(2^10) chars as input seems more than enough
5313     test $ac_count -gt 10 && break
5314   done
5315   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5316 esac
5317
5318       $ac_path_SED_found && break 3
5319     done
5320   done
5321   done
5322 IFS=$as_save_IFS
5323   if test -z "$ac_cv_path_SED"; then
5324     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5325   fi
5326 else
5327   ac_cv_path_SED=$SED
5328 fi
5329
5330 fi
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5332 $as_echo "$ac_cv_path_SED" >&6; }
5333  SED="$ac_cv_path_SED"
5334   rm -f conftest.sed
5335
5336
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5338 $as_echo_n "checking whether NLS is requested... " >&6; }
5339     # Check whether --enable-nls was given.
5340 if test "${enable_nls+set}" = set; then :
5341   enableval=$enable_nls; USE_NLS=$enableval
5342 else
5343   USE_NLS=yes
5344 fi
5345
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5347 $as_echo "$USE_NLS" >&6; }
5348
5349
5350
5351
5352       GETTEXT_MACRO_VERSION=0.18
5353
5354
5355
5356
5357 # Prepare PATH_SEPARATOR.
5358 # The user is always right.
5359 if test "${PATH_SEPARATOR+set}" != set; then
5360   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5361   # contains only /bin. Note that ksh looks also at the FPATH variable,
5362   # so we have to set that as well for the test.
5363   PATH_SEPARATOR=:
5364   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5365     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5366            || PATH_SEPARATOR=';'
5367        }
5368 fi
5369
5370 # Find out how to test for executable files. Don't use a zero-byte file,
5371 # as systems may use methods other than mode bits to determine executability.
5372 cat >conf$$.file <<_ASEOF
5373 #! /bin/sh
5374 exit 0
5375 _ASEOF
5376 chmod +x conf$$.file
5377 if test -x conf$$.file >/dev/null 2>&1; then
5378   ac_executable_p="test -x"
5379 else
5380   ac_executable_p="test -f"
5381 fi
5382 rm -f conf$$.file
5383
5384 # Extract the first word of "msgfmt", so it can be a program name with args.
5385 set dummy msgfmt; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_path_MSGFMT+:} false; then :
5389   $as_echo_n "(cached) " >&6
5390 else
5391   case "$MSGFMT" in
5392   [\\/]* | ?:[\\/]*)
5393     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5394     ;;
5395   *)
5396     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5397     for ac_dir in $PATH; do
5398       IFS="$ac_save_IFS"
5399       test -z "$ac_dir" && ac_dir=.
5400       for ac_exec_ext in '' $ac_executable_extensions; do
5401         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5402           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5403           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5404      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5405             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5406             break 2
5407           fi
5408         fi
5409       done
5410     done
5411     IFS="$ac_save_IFS"
5412   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5413     ;;
5414 esac
5415 fi
5416 MSGFMT="$ac_cv_path_MSGFMT"
5417 if test "$MSGFMT" != ":"; then
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5419 $as_echo "$MSGFMT" >&6; }
5420 else
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424
5425   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5426 set dummy gmsgfmt; ac_word=$2
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if ${ac_cv_path_GMSGFMT+:} false; then :
5430   $as_echo_n "(cached) " >&6
5431 else
5432   case $GMSGFMT in
5433   [\\/]* | ?:[\\/]*)
5434   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5435   ;;
5436   *)
5437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5439 do
5440   IFS=$as_save_IFS
5441   test -z "$as_dir" && as_dir=.
5442     for ac_exec_ext in '' $ac_executable_extensions; do
5443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446     break 2
5447   fi
5448 done
5449   done
5450 IFS=$as_save_IFS
5451
5452   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5453   ;;
5454 esac
5455 fi
5456 GMSGFMT=$ac_cv_path_GMSGFMT
5457 if test -n "$GMSGFMT"; then
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5459 $as_echo "$GMSGFMT" >&6; }
5460 else
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5463 fi
5464
5465
5466
5467     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5468     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5469     *) MSGFMT_015=$MSGFMT ;;
5470   esac
5471
5472   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5473     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5474     *) GMSGFMT_015=$GMSGFMT ;;
5475   esac
5476
5477
5478
5479 # Prepare PATH_SEPARATOR.
5480 # The user is always right.
5481 if test "${PATH_SEPARATOR+set}" != set; then
5482   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5483   # contains only /bin. Note that ksh looks also at the FPATH variable,
5484   # so we have to set that as well for the test.
5485   PATH_SEPARATOR=:
5486   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5487     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5488            || PATH_SEPARATOR=';'
5489        }
5490 fi
5491
5492 # Find out how to test for executable files. Don't use a zero-byte file,
5493 # as systems may use methods other than mode bits to determine executability.
5494 cat >conf$$.file <<_ASEOF
5495 #! /bin/sh
5496 exit 0
5497 _ASEOF
5498 chmod +x conf$$.file
5499 if test -x conf$$.file >/dev/null 2>&1; then
5500   ac_executable_p="test -x"
5501 else
5502   ac_executable_p="test -f"
5503 fi
5504 rm -f conf$$.file
5505
5506 # Extract the first word of "xgettext", so it can be a program name with args.
5507 set dummy xgettext; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_path_XGETTEXT+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   case "$XGETTEXT" in
5514   [\\/]* | ?:[\\/]*)
5515     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5516     ;;
5517   *)
5518     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5519     for ac_dir in $PATH; do
5520       IFS="$ac_save_IFS"
5521       test -z "$ac_dir" && ac_dir=.
5522       for ac_exec_ext in '' $ac_executable_extensions; do
5523         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5524           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5525           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5526      (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
5527             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5528             break 2
5529           fi
5530         fi
5531       done
5532     done
5533     IFS="$ac_save_IFS"
5534   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5535     ;;
5536 esac
5537 fi
5538 XGETTEXT="$ac_cv_path_XGETTEXT"
5539 if test "$XGETTEXT" != ":"; then
5540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5541 $as_echo "$XGETTEXT" >&6; }
5542 else
5543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546
5547     rm -f messages.po
5548
5549     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5550     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5551     *) XGETTEXT_015=$XGETTEXT ;;
5552   esac
5553
5554
5555
5556 # Prepare PATH_SEPARATOR.
5557 # The user is always right.
5558 if test "${PATH_SEPARATOR+set}" != set; then
5559   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5560   # contains only /bin. Note that ksh looks also at the FPATH variable,
5561   # so we have to set that as well for the test.
5562   PATH_SEPARATOR=:
5563   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5564     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5565            || PATH_SEPARATOR=';'
5566        }
5567 fi
5568
5569 # Find out how to test for executable files. Don't use a zero-byte file,
5570 # as systems may use methods other than mode bits to determine executability.
5571 cat >conf$$.file <<_ASEOF
5572 #! /bin/sh
5573 exit 0
5574 _ASEOF
5575 chmod +x conf$$.file
5576 if test -x conf$$.file >/dev/null 2>&1; then
5577   ac_executable_p="test -x"
5578 else
5579   ac_executable_p="test -f"
5580 fi
5581 rm -f conf$$.file
5582
5583 # Extract the first word of "msgmerge", so it can be a program name with args.
5584 set dummy msgmerge; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_path_MSGMERGE+:} false; then :
5588   $as_echo_n "(cached) " >&6
5589 else
5590   case "$MSGMERGE" in
5591   [\\/]* | ?:[\\/]*)
5592     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5593     ;;
5594   *)
5595     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5596     for ac_dir in $PATH; do
5597       IFS="$ac_save_IFS"
5598       test -z "$ac_dir" && ac_dir=.
5599       for ac_exec_ext in '' $ac_executable_extensions; do
5600         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5601           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5602           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5603             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5604             break 2
5605           fi
5606         fi
5607       done
5608     done
5609     IFS="$ac_save_IFS"
5610   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5611     ;;
5612 esac
5613 fi
5614 MSGMERGE="$ac_cv_path_MSGMERGE"
5615 if test "$MSGMERGE" != ":"; then
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5617 $as_echo "$MSGMERGE" >&6; }
5618 else
5619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620 $as_echo "no" >&6; }
5621 fi
5622
5623
5624         test -n "$localedir" || localedir='${datadir}/locale'
5625
5626
5627     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5628
5629
5630   ac_config_commands="$ac_config_commands po-directories"
5631
5632
5633
5634       if test "X$prefix" = "XNONE"; then
5635     acl_final_prefix="$ac_default_prefix"
5636   else
5637     acl_final_prefix="$prefix"
5638   fi
5639   if test "X$exec_prefix" = "XNONE"; then
5640     acl_final_exec_prefix='${prefix}'
5641   else
5642     acl_final_exec_prefix="$exec_prefix"
5643   fi
5644   acl_save_prefix="$prefix"
5645   prefix="$acl_final_prefix"
5646   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5647   prefix="$acl_save_prefix"
5648
5649 # Make sure we can run config.sub.
5650 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5651   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5652
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5654 $as_echo_n "checking build system type... " >&6; }
5655 if ${ac_cv_build+:} false; then :
5656   $as_echo_n "(cached) " >&6
5657 else
5658   ac_build_alias=$build_alias
5659 test "x$ac_build_alias" = x &&
5660   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5661 test "x$ac_build_alias" = x &&
5662   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5663 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5664   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5665
5666 fi
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5668 $as_echo "$ac_cv_build" >&6; }
5669 case $ac_cv_build in
5670 *-*-*) ;;
5671 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5672 esac
5673 build=$ac_cv_build
5674 ac_save_IFS=$IFS; IFS='-'
5675 set x $ac_cv_build
5676 shift
5677 build_cpu=$1
5678 build_vendor=$2
5679 shift; shift
5680 # Remember, the first character of IFS is used to create $*,
5681 # except with old shells:
5682 build_os=$*
5683 IFS=$ac_save_IFS
5684 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5685
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5688 $as_echo_n "checking host system type... " >&6; }
5689 if ${ac_cv_host+:} false; then :
5690   $as_echo_n "(cached) " >&6
5691 else
5692   if test "x$host_alias" = x; then
5693   ac_cv_host=$ac_cv_build
5694 else
5695   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5696     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5697 fi
5698
5699 fi
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5701 $as_echo "$ac_cv_host" >&6; }
5702 case $ac_cv_host in
5703 *-*-*) ;;
5704 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5705 esac
5706 host=$ac_cv_host
5707 ac_save_IFS=$IFS; IFS='-'
5708 set x $ac_cv_host
5709 shift
5710 host_cpu=$1
5711 host_vendor=$2
5712 shift; shift
5713 # Remember, the first character of IFS is used to create $*,
5714 # except with old shells:
5715 host_os=$*
5716 IFS=$ac_save_IFS
5717 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5718
5719
5720
5721
5722 # Check whether --with-gnu-ld was given.
5723 if test "${with_gnu_ld+set}" = set; then :
5724   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5725 else
5726   with_gnu_ld=no
5727 fi
5728
5729 # Prepare PATH_SEPARATOR.
5730 # The user is always right.
5731 if test "${PATH_SEPARATOR+set}" != set; then
5732   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5733   # contains only /bin. Note that ksh looks also at the FPATH variable,
5734   # so we have to set that as well for the test.
5735   PATH_SEPARATOR=:
5736   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5737     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5738            || PATH_SEPARATOR=';'
5739        }
5740 fi
5741
5742 ac_prog=ld
5743 if test "$GCC" = yes; then
5744   # Check if gcc -print-prog-name=ld gives a path.
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5746 $as_echo_n "checking for ld used by $CC... " >&6; }
5747   case $host in
5748   *-*-mingw*)
5749     # gcc leaves a trailing carriage return which upsets mingw
5750     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5751   *)
5752     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5753   esac
5754   case $ac_prog in
5755     # Accept absolute paths.
5756     [\\/]* | ?:[\\/]*)
5757       re_direlt='/[^/][^/]*/\.\./'
5758       # Canonicalize the pathname of ld
5759       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5760       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5761         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5762       done
5763       test -z "$LD" && LD="$ac_prog"
5764       ;;
5765   "")
5766     # If it fails, then pretend we aren't using GCC.
5767     ac_prog=ld
5768     ;;
5769   *)
5770     # If it is relative, then search for the first ld in PATH.
5771     with_gnu_ld=unknown
5772     ;;
5773   esac
5774 elif test "$with_gnu_ld" = yes; then
5775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5776 $as_echo_n "checking for GNU ld... " >&6; }
5777 else
5778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5779 $as_echo_n "checking for non-GNU ld... " >&6; }
5780 fi
5781 if ${acl_cv_path_LD+:} false; then :
5782   $as_echo_n "(cached) " >&6
5783 else
5784   if test -z "$LD"; then
5785   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5786   for ac_dir in $PATH; do
5787     IFS="$acl_save_ifs"
5788     test -z "$ac_dir" && ac_dir=.
5789     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5790       acl_cv_path_LD="$ac_dir/$ac_prog"
5791       # Check to see if the program is GNU ld.  I'd rather use --version,
5792       # but apparently some variants of GNU ld only accept -v.
5793       # Break only if it was the GNU/non-GNU ld that we prefer.
5794       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5795       *GNU* | *'with BFD'*)
5796         test "$with_gnu_ld" != no && break
5797         ;;
5798       *)
5799         test "$with_gnu_ld" != yes && break
5800         ;;
5801       esac
5802     fi
5803   done
5804   IFS="$acl_save_ifs"
5805 else
5806   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5807 fi
5808 fi
5809
5810 LD="$acl_cv_path_LD"
5811 if test -n "$LD"; then
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5813 $as_echo "$LD" >&6; }
5814 else
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817 fi
5818 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5820 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5821 if ${acl_cv_prog_gnu_ld+:} false; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5825 case `$LD -v 2>&1 </dev/null` in
5826 *GNU* | *'with BFD'*)
5827   acl_cv_prog_gnu_ld=yes
5828   ;;
5829 *)
5830   acl_cv_prog_gnu_ld=no
5831   ;;
5832 esac
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5835 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5836 with_gnu_ld=$acl_cv_prog_gnu_ld
5837
5838
5839
5840
5841                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5842 $as_echo_n "checking for shared library run path origin... " >&6; }
5843 if ${acl_cv_rpath+:} false; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846
5847     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5848     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5849     . ./conftest.sh
5850     rm -f ./conftest.sh
5851     acl_cv_rpath=done
5852
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5855 $as_echo "$acl_cv_rpath" >&6; }
5856   wl="$acl_cv_wl"
5857   acl_libext="$acl_cv_libext"
5858   acl_shlibext="$acl_cv_shlibext"
5859   acl_libname_spec="$acl_cv_libname_spec"
5860   acl_library_names_spec="$acl_cv_library_names_spec"
5861   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5862   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5863   acl_hardcode_direct="$acl_cv_hardcode_direct"
5864   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5865     # Check whether --enable-rpath was given.
5866 if test "${enable_rpath+set}" = set; then :
5867   enableval=$enable_rpath; :
5868 else
5869   enable_rpath=yes
5870 fi
5871
5872
5873
5874
5875   acl_libdirstem=lib
5876   acl_libdirstem2=
5877   case "$host_os" in
5878     solaris*)
5879                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5880 $as_echo_n "checking for 64-bit host... " >&6; }
5881 if ${gl_cv_solaris_64bit+:} false; then :
5882   $as_echo_n "(cached) " >&6
5883 else
5884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h.  */
5886
5887 #ifdef _LP64
5888 sixtyfour bits
5889 #endif
5890
5891 _ACEOF
5892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5894   gl_cv_solaris_64bit=yes
5895 else
5896   gl_cv_solaris_64bit=no
5897 fi
5898 rm -f conftest*
5899
5900
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5903 $as_echo "$gl_cv_solaris_64bit" >&6; }
5904       if test $gl_cv_solaris_64bit = yes; then
5905         acl_libdirstem=lib/64
5906         case "$host_cpu" in
5907           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
5908           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5909         esac
5910       fi
5911       ;;
5912     *)
5913       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5914       if test -n "$searchpath"; then
5915         acl_save_IFS="${IFS=    }"; IFS=":"
5916         for searchdir in $searchpath; do
5917           if test -d "$searchdir"; then
5918             case "$searchdir" in
5919               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5920               */../ | */.. )
5921                 # Better ignore directories of this form. They are misleading.
5922                 ;;
5923               *) searchdir=`cd "$searchdir" && pwd`
5924                  case "$searchdir" in
5925                    */lib64 ) acl_libdirstem=lib64 ;;
5926                  esac ;;
5927             esac
5928           fi
5929         done
5930         IFS="$acl_save_IFS"
5931       fi
5932       ;;
5933   esac
5934   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947     use_additional=yes
5948
5949   acl_save_prefix="$prefix"
5950   prefix="$acl_final_prefix"
5951   acl_save_exec_prefix="$exec_prefix"
5952   exec_prefix="$acl_final_exec_prefix"
5953
5954     eval additional_includedir=\"$includedir\"
5955     eval additional_libdir=\"$libdir\"
5956
5957   exec_prefix="$acl_save_exec_prefix"
5958   prefix="$acl_save_prefix"
5959
5960
5961 # Check whether --with-libiconv-prefix was given.
5962 if test "${with_libiconv_prefix+set}" = set; then :
5963   withval=$with_libiconv_prefix;
5964     if test "X$withval" = "Xno"; then
5965       use_additional=no
5966     else
5967       if test "X$withval" = "X"; then
5968
5969   acl_save_prefix="$prefix"
5970   prefix="$acl_final_prefix"
5971   acl_save_exec_prefix="$exec_prefix"
5972   exec_prefix="$acl_final_exec_prefix"
5973
5974           eval additional_includedir=\"$includedir\"
5975           eval additional_libdir=\"$libdir\"
5976
5977   exec_prefix="$acl_save_exec_prefix"
5978   prefix="$acl_save_prefix"
5979
5980       else
5981         additional_includedir="$withval/include"
5982         additional_libdir="$withval/$acl_libdirstem"
5983         if test "$acl_libdirstem2" != "$acl_libdirstem" \
5984            && ! test -d "$withval/$acl_libdirstem"; then
5985           additional_libdir="$withval/$acl_libdirstem2"
5986         fi
5987       fi
5988     fi
5989
5990 fi
5991
5992       LIBICONV=
5993   LTLIBICONV=
5994   INCICONV=
5995   LIBICONV_PREFIX=
5996       HAVE_LIBICONV=
5997   rpathdirs=
5998   ltrpathdirs=
5999   names_already_handled=
6000   names_next_round='iconv '
6001   while test -n "$names_next_round"; do
6002     names_this_round="$names_next_round"
6003     names_next_round=
6004     for name in $names_this_round; do
6005       already_handled=
6006       for n in $names_already_handled; do
6007         if test "$n" = "$name"; then
6008           already_handled=yes
6009           break
6010         fi
6011       done
6012       if test -z "$already_handled"; then
6013         names_already_handled="$names_already_handled $name"
6014                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6015         eval value=\"\$HAVE_LIB$uppername\"
6016         if test -n "$value"; then
6017           if test "$value" = yes; then
6018             eval value=\"\$LIB$uppername\"
6019             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6020             eval value=\"\$LTLIB$uppername\"
6021             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6022           else
6023                                     :
6024           fi
6025         else
6026                               found_dir=
6027           found_la=
6028           found_so=
6029           found_a=
6030           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6031           if test -n "$acl_shlibext"; then
6032             shrext=".$acl_shlibext"             # typically: shrext=.so
6033           else
6034             shrext=
6035           fi
6036           if test $use_additional = yes; then
6037             dir="$additional_libdir"
6038                                     if test -n "$acl_shlibext"; then
6039               if test -f "$dir/$libname$shrext"; then
6040                 found_dir="$dir"
6041                 found_so="$dir/$libname$shrext"
6042               else
6043                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6044                   ver=`(cd "$dir" && \
6045                         for f in "$libname$shrext".*; do echo "$f"; done \
6046                         | sed -e "s,^$libname$shrext\\\\.,," \
6047                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6048                         | sed 1q ) 2>/dev/null`
6049                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6050                     found_dir="$dir"
6051                     found_so="$dir/$libname$shrext.$ver"
6052                   fi
6053                 else
6054                   eval library_names=\"$acl_library_names_spec\"
6055                   for f in $library_names; do
6056                     if test -f "$dir/$f"; then
6057                       found_dir="$dir"
6058                       found_so="$dir/$f"
6059                       break
6060                     fi
6061                   done
6062                 fi
6063               fi
6064             fi
6065                         if test "X$found_dir" = "X"; then
6066               if test -f "$dir/$libname.$acl_libext"; then
6067                 found_dir="$dir"
6068                 found_a="$dir/$libname.$acl_libext"
6069               fi
6070             fi
6071             if test "X$found_dir" != "X"; then
6072               if test -f "$dir/$libname.la"; then
6073                 found_la="$dir/$libname.la"
6074               fi
6075             fi
6076           fi
6077           if test "X$found_dir" = "X"; then
6078             for x in $LDFLAGS $LTLIBICONV; do
6079
6080   acl_save_prefix="$prefix"
6081   prefix="$acl_final_prefix"
6082   acl_save_exec_prefix="$exec_prefix"
6083   exec_prefix="$acl_final_exec_prefix"
6084   eval x=\"$x\"
6085   exec_prefix="$acl_save_exec_prefix"
6086   prefix="$acl_save_prefix"
6087
6088               case "$x" in
6089                 -L*)
6090                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6091                                     if test -n "$acl_shlibext"; then
6092                     if test -f "$dir/$libname$shrext"; then
6093                       found_dir="$dir"
6094                       found_so="$dir/$libname$shrext"
6095                     else
6096                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6097                         ver=`(cd "$dir" && \
6098                               for f in "$libname$shrext".*; do echo "$f"; done \
6099                               | sed -e "s,^$libname$shrext\\\\.,," \
6100                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6101                               | sed 1q ) 2>/dev/null`
6102                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6103                           found_dir="$dir"
6104                           found_so="$dir/$libname$shrext.$ver"
6105                         fi
6106                       else
6107                         eval library_names=\"$acl_library_names_spec\"
6108                         for f in $library_names; do
6109                           if test -f "$dir/$f"; then
6110                             found_dir="$dir"
6111                             found_so="$dir/$f"
6112                             break
6113                           fi
6114                         done
6115                       fi
6116                     fi
6117                   fi
6118                                     if test "X$found_dir" = "X"; then
6119                     if test -f "$dir/$libname.$acl_libext"; then
6120                       found_dir="$dir"
6121                       found_a="$dir/$libname.$acl_libext"
6122                     fi
6123                   fi
6124                   if test "X$found_dir" != "X"; then
6125                     if test -f "$dir/$libname.la"; then
6126                       found_la="$dir/$libname.la"
6127                     fi
6128                   fi
6129                   ;;
6130               esac
6131               if test "X$found_dir" != "X"; then
6132                 break
6133               fi
6134             done
6135           fi
6136           if test "X$found_dir" != "X"; then
6137                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6138             if test "X$found_so" != "X"; then
6139                                                         if test "$enable_rpath" = no \
6140                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6141                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6142                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6143               else
6144                                                                                 haveit=
6145                 for x in $ltrpathdirs; do
6146                   if test "X$x" = "X$found_dir"; then
6147                     haveit=yes
6148                     break
6149                   fi
6150                 done
6151                 if test -z "$haveit"; then
6152                   ltrpathdirs="$ltrpathdirs $found_dir"
6153                 fi
6154                                 if test "$acl_hardcode_direct" = yes; then
6155                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6156                 else
6157                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6158                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6159                                                             haveit=
6160                     for x in $rpathdirs; do
6161                       if test "X$x" = "X$found_dir"; then
6162                         haveit=yes
6163                         break
6164                       fi
6165                     done
6166                     if test -z "$haveit"; then
6167                       rpathdirs="$rpathdirs $found_dir"
6168                     fi
6169                   else
6170                                                                                 haveit=
6171                     for x in $LDFLAGS $LIBICONV; do
6172
6173   acl_save_prefix="$prefix"
6174   prefix="$acl_final_prefix"
6175   acl_save_exec_prefix="$exec_prefix"
6176   exec_prefix="$acl_final_exec_prefix"
6177   eval x=\"$x\"
6178   exec_prefix="$acl_save_exec_prefix"
6179   prefix="$acl_save_prefix"
6180
6181                       if test "X$x" = "X-L$found_dir"; then
6182                         haveit=yes
6183                         break
6184                       fi
6185                     done
6186                     if test -z "$haveit"; then
6187                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6188                     fi
6189                     if test "$acl_hardcode_minus_L" != no; then
6190                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6191                     else
6192                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6193                     fi
6194                   fi
6195                 fi
6196               fi
6197             else
6198               if test "X$found_a" != "X"; then
6199                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6200               else
6201                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6202               fi
6203             fi
6204                         additional_includedir=
6205             case "$found_dir" in
6206               */$acl_libdirstem | */$acl_libdirstem/)
6207                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6208                 if test "$name" = 'iconv'; then
6209                   LIBICONV_PREFIX="$basedir"
6210                 fi
6211                 additional_includedir="$basedir/include"
6212                 ;;
6213               */$acl_libdirstem2 | */$acl_libdirstem2/)
6214                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6215                 if test "$name" = 'iconv'; then
6216                   LIBICONV_PREFIX="$basedir"
6217                 fi
6218                 additional_includedir="$basedir/include"
6219                 ;;
6220             esac
6221             if test "X$additional_includedir" != "X"; then
6222                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6223                 haveit=
6224                 if test "X$additional_includedir" = "X/usr/local/include"; then
6225                   if test -n "$GCC"; then
6226                     case $host_os in
6227                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6228                     esac
6229                   fi
6230                 fi
6231                 if test -z "$haveit"; then
6232                   for x in $CPPFLAGS $INCICONV; do
6233
6234   acl_save_prefix="$prefix"
6235   prefix="$acl_final_prefix"
6236   acl_save_exec_prefix="$exec_prefix"
6237   exec_prefix="$acl_final_exec_prefix"
6238   eval x=\"$x\"
6239   exec_prefix="$acl_save_exec_prefix"
6240   prefix="$acl_save_prefix"
6241
6242                     if test "X$x" = "X-I$additional_includedir"; then
6243                       haveit=yes
6244                       break
6245                     fi
6246                   done
6247                   if test -z "$haveit"; then
6248                     if test -d "$additional_includedir"; then
6249                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6250                     fi
6251                   fi
6252                 fi
6253               fi
6254             fi
6255                         if test -n "$found_la"; then
6256                                                         save_libdir="$libdir"
6257               case "$found_la" in
6258                 */* | *\\*) . "$found_la" ;;
6259                 *) . "./$found_la" ;;
6260               esac
6261               libdir="$save_libdir"
6262                             for dep in $dependency_libs; do
6263                 case "$dep" in
6264                   -L*)
6265                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6266                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6267                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6268                       haveit=
6269                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6270                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6271                         if test -n "$GCC"; then
6272                           case $host_os in
6273                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6274                           esac
6275                         fi
6276                       fi
6277                       if test -z "$haveit"; then
6278                         haveit=
6279                         for x in $LDFLAGS $LIBICONV; do
6280
6281   acl_save_prefix="$prefix"
6282   prefix="$acl_final_prefix"
6283   acl_save_exec_prefix="$exec_prefix"
6284   exec_prefix="$acl_final_exec_prefix"
6285   eval x=\"$x\"
6286   exec_prefix="$acl_save_exec_prefix"
6287   prefix="$acl_save_prefix"
6288
6289                           if test "X$x" = "X-L$additional_libdir"; then
6290                             haveit=yes
6291                             break
6292                           fi
6293                         done
6294                         if test -z "$haveit"; then
6295                           if test -d "$additional_libdir"; then
6296                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6297                           fi
6298                         fi
6299                         haveit=
6300                         for x in $LDFLAGS $LTLIBICONV; do
6301
6302   acl_save_prefix="$prefix"
6303   prefix="$acl_final_prefix"
6304   acl_save_exec_prefix="$exec_prefix"
6305   exec_prefix="$acl_final_exec_prefix"
6306   eval x=\"$x\"
6307   exec_prefix="$acl_save_exec_prefix"
6308   prefix="$acl_save_prefix"
6309
6310                           if test "X$x" = "X-L$additional_libdir"; then
6311                             haveit=yes
6312                             break
6313                           fi
6314                         done
6315                         if test -z "$haveit"; then
6316                           if test -d "$additional_libdir"; then
6317                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6318                           fi
6319                         fi
6320                       fi
6321                     fi
6322                     ;;
6323                   -R*)
6324                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6325                     if test "$enable_rpath" != no; then
6326                                                                   haveit=
6327                       for x in $rpathdirs; do
6328                         if test "X$x" = "X$dir"; then
6329                           haveit=yes
6330                           break
6331                         fi
6332                       done
6333                       if test -z "$haveit"; then
6334                         rpathdirs="$rpathdirs $dir"
6335                       fi
6336                                                                   haveit=
6337                       for x in $ltrpathdirs; do
6338                         if test "X$x" = "X$dir"; then
6339                           haveit=yes
6340                           break
6341                         fi
6342                       done
6343                       if test -z "$haveit"; then
6344                         ltrpathdirs="$ltrpathdirs $dir"
6345                       fi
6346                     fi
6347                     ;;
6348                   -l*)
6349                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6350                     ;;
6351                   *.la)
6352                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6353                     ;;
6354                   *)
6355                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6356                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6357                     ;;
6358                 esac
6359               done
6360             fi
6361           else
6362                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6363             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6364           fi
6365         fi
6366       fi
6367     done
6368   done
6369   if test "X$rpathdirs" != "X"; then
6370     if test -n "$acl_hardcode_libdir_separator"; then
6371                         alldirs=
6372       for found_dir in $rpathdirs; do
6373         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6374       done
6375             acl_save_libdir="$libdir"
6376       libdir="$alldirs"
6377       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6378       libdir="$acl_save_libdir"
6379       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6380     else
6381             for found_dir in $rpathdirs; do
6382         acl_save_libdir="$libdir"
6383         libdir="$found_dir"
6384         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6385         libdir="$acl_save_libdir"
6386         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6387       done
6388     fi
6389   fi
6390   if test "X$ltrpathdirs" != "X"; then
6391             for found_dir in $ltrpathdirs; do
6392       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6393     done
6394   fi
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6427 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6428 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6429   $as_echo_n "(cached) " >&6
6430 else
6431   gt_save_LIBS="$LIBS"
6432      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6433      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h.  */
6435 #include <CoreFoundation/CFPreferences.h>
6436 int
6437 main ()
6438 {
6439 CFPreferencesCopyAppValue(NULL, NULL)
6440   ;
6441   return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_c_try_link "$LINENO"; then :
6445   gt_cv_func_CFPreferencesCopyAppValue=yes
6446 else
6447   gt_cv_func_CFPreferencesCopyAppValue=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext \
6450     conftest$ac_exeext conftest.$ac_ext
6451      LIBS="$gt_save_LIBS"
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6454 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6455   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6456
6457 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6458
6459   fi
6460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6461 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6462 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6463   $as_echo_n "(cached) " >&6
6464 else
6465   gt_save_LIBS="$LIBS"
6466      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6467      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h.  */
6469 #include <CoreFoundation/CFLocale.h>
6470 int
6471 main ()
6472 {
6473 CFLocaleCopyCurrent();
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_c_try_link "$LINENO"; then :
6479   gt_cv_func_CFLocaleCopyCurrent=yes
6480 else
6481   gt_cv_func_CFLocaleCopyCurrent=no
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext \
6484     conftest$ac_exeext conftest.$ac_ext
6485      LIBS="$gt_save_LIBS"
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6488 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6489   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6490
6491 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6492
6493   fi
6494   INTL_MACOSX_LIBS=
6495   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6496     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6497   fi
6498
6499
6500
6501
6502
6503
6504   LIBINTL=
6505   LTLIBINTL=
6506   POSUB=
6507
6508     case " $gt_needs " in
6509     *" need-formatstring-macros "*) gt_api_version=3 ;;
6510     *" need-ngettext "*) gt_api_version=2 ;;
6511     *) gt_api_version=1 ;;
6512   esac
6513   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6514   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6515
6516     if test "$USE_NLS" = "yes"; then
6517     gt_use_preinstalled_gnugettext=no
6518
6519
6520         if test $gt_api_version -ge 3; then
6521           gt_revision_test_code='
6522 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6523 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6524 #endif
6525 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6526 '
6527         else
6528           gt_revision_test_code=
6529         fi
6530         if test $gt_api_version -ge 2; then
6531           gt_expression_test_code=' + * ngettext ("", "", 0)'
6532         else
6533           gt_expression_test_code=
6534         fi
6535
6536         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6537 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6538 if eval \${$gt_func_gnugettext_libc+:} false; then :
6539   $as_echo_n "(cached) " >&6
6540 else
6541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h.  */
6543
6544 #include <libintl.h>
6545 $gt_revision_test_code
6546 extern int _nl_msg_cat_cntr;
6547 extern int *_nl_domain_bindings;
6548
6549 int
6550 main ()
6551 {
6552
6553 bindtextdomain ("", "");
6554 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6555
6556   ;
6557   return 0;
6558 }
6559 _ACEOF
6560 if ac_fn_c_try_link "$LINENO"; then :
6561   eval "$gt_func_gnugettext_libc=yes"
6562 else
6563   eval "$gt_func_gnugettext_libc=no"
6564 fi
6565 rm -f core conftest.err conftest.$ac_objext \
6566     conftest$ac_exeext conftest.$ac_ext
6567 fi
6568 eval ac_res=\$$gt_func_gnugettext_libc
6569                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6570 $as_echo "$ac_res" >&6; }
6571
6572         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6573
6574
6575
6576
6577
6578           am_save_CPPFLAGS="$CPPFLAGS"
6579
6580   for element in $INCICONV; do
6581     haveit=
6582     for x in $CPPFLAGS; do
6583
6584   acl_save_prefix="$prefix"
6585   prefix="$acl_final_prefix"
6586   acl_save_exec_prefix="$exec_prefix"
6587   exec_prefix="$acl_final_exec_prefix"
6588   eval x=\"$x\"
6589   exec_prefix="$acl_save_exec_prefix"
6590   prefix="$acl_save_prefix"
6591
6592       if test "X$x" = "X$element"; then
6593         haveit=yes
6594         break
6595       fi
6596     done
6597     if test -z "$haveit"; then
6598       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6599     fi
6600   done
6601
6602
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6604 $as_echo_n "checking for iconv... " >&6; }
6605 if ${am_cv_func_iconv+:} false; then :
6606   $as_echo_n "(cached) " >&6
6607 else
6608
6609     am_cv_func_iconv="no, consider installing GNU libiconv"
6610     am_cv_lib_iconv=no
6611     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h.  */
6613
6614 #include <stdlib.h>
6615 #include <iconv.h>
6616
6617 int
6618 main ()
6619 {
6620 iconv_t cd = iconv_open("","");
6621            iconv(cd,NULL,NULL,NULL,NULL);
6622            iconv_close(cd);
6623   ;
6624   return 0;
6625 }
6626 _ACEOF
6627 if ac_fn_c_try_link "$LINENO"; then :
6628   am_cv_func_iconv=yes
6629 fi
6630 rm -f core conftest.err conftest.$ac_objext \
6631     conftest$ac_exeext conftest.$ac_ext
6632     if test "$am_cv_func_iconv" != yes; then
6633       am_save_LIBS="$LIBS"
6634       LIBS="$LIBS $LIBICONV"
6635       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h.  */
6637
6638 #include <stdlib.h>
6639 #include <iconv.h>
6640
6641 int
6642 main ()
6643 {
6644 iconv_t cd = iconv_open("","");
6645              iconv(cd,NULL,NULL,NULL,NULL);
6646              iconv_close(cd);
6647   ;
6648   return 0;
6649 }
6650 _ACEOF
6651 if ac_fn_c_try_link "$LINENO"; then :
6652   am_cv_lib_iconv=yes
6653         am_cv_func_iconv=yes
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext \
6656     conftest$ac_exeext conftest.$ac_ext
6657       LIBS="$am_save_LIBS"
6658     fi
6659
6660 fi
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6662 $as_echo "$am_cv_func_iconv" >&6; }
6663   if test "$am_cv_func_iconv" = yes; then
6664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6665 $as_echo_n "checking for working iconv... " >&6; }
6666 if ${am_cv_func_iconv_works+:} false; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669
6670                   am_save_LIBS="$LIBS"
6671       if test $am_cv_lib_iconv = yes; then
6672         LIBS="$LIBS $LIBICONV"
6673       fi
6674       if test "$cross_compiling" = yes; then :
6675
6676          case "$host_os" in
6677            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6678            *)            am_cv_func_iconv_works="guessing yes" ;;
6679          esac
6680
6681 else
6682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h.  */
6684
6685 #include <iconv.h>
6686 #include <string.h>
6687 int main ()
6688 {
6689   int result = 0;
6690   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6691      returns.  */
6692   {
6693     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6694     if (cd_utf8_to_88591 != (iconv_t)(-1))
6695       {
6696         static const char input[] = "\342\202\254"; /* EURO SIGN */
6697         char buf[10];
6698         const char *inptr = input;
6699         size_t inbytesleft = strlen (input);
6700         char *outptr = buf;
6701         size_t outbytesleft = sizeof (buf);
6702         size_t res = iconv (cd_utf8_to_88591,
6703                             (char **) &inptr, &inbytesleft,
6704                             &outptr, &outbytesleft);
6705         if (res == 0)
6706           result |= 1;
6707         iconv_close (cd_utf8_to_88591);
6708       }
6709   }
6710   /* Test against Solaris 10 bug: Failures are not distinguishable from
6711      successful returns.  */
6712   {
6713     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6714     if (cd_ascii_to_88591 != (iconv_t)(-1))
6715       {
6716         static const char input[] = "\263";
6717         char buf[10];
6718         const char *inptr = input;
6719         size_t inbytesleft = strlen (input);
6720         char *outptr = buf;
6721         size_t outbytesleft = sizeof (buf);
6722         size_t res = iconv (cd_ascii_to_88591,
6723                             (char **) &inptr, &inbytesleft,
6724                             &outptr, &outbytesleft);
6725         if (res == 0)
6726           result |= 2;
6727         iconv_close (cd_ascii_to_88591);
6728       }
6729   }
6730   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
6731   {
6732     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6733     if (cd_88591_to_utf8 != (iconv_t)(-1))
6734       {
6735         static const char input[] = "\304";
6736         static char buf[2] = { (char)0xDE, (char)0xAD };
6737         const char *inptr = input;
6738         size_t inbytesleft = 1;
6739         char *outptr = buf;
6740         size_t outbytesleft = 1;
6741         size_t res = iconv (cd_88591_to_utf8,
6742                             (char **) &inptr, &inbytesleft,
6743                             &outptr, &outbytesleft);
6744         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6745           result |= 4;
6746         iconv_close (cd_88591_to_utf8);
6747       }
6748   }
6749 #if 0 /* This bug could be worked around by the caller.  */
6750   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6751   {
6752     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6753     if (cd_88591_to_utf8 != (iconv_t)(-1))
6754       {
6755         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6756         char buf[50];
6757         const char *inptr = input;
6758         size_t inbytesleft = strlen (input);
6759         char *outptr = buf;
6760         size_t outbytesleft = sizeof (buf);
6761         size_t res = iconv (cd_88591_to_utf8,
6762                             (char **) &inptr, &inbytesleft,
6763                             &outptr, &outbytesleft);
6764         if ((int)res > 0)
6765           result |= 8;
6766         iconv_close (cd_88591_to_utf8);
6767       }
6768   }
6769 #endif
6770   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6771      provided.  */
6772   if (/* Try standardized names.  */
6773       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6774       /* Try IRIX, OSF/1 names.  */
6775       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6776       /* Try AIX names.  */
6777       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6778       /* Try HP-UX names.  */
6779       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6780     result |= 16;
6781   return result;
6782 }
6783 _ACEOF
6784 if ac_fn_c_try_run "$LINENO"; then :
6785   am_cv_func_iconv_works=yes
6786 else
6787   am_cv_func_iconv_works=no
6788 fi
6789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6790   conftest.$ac_objext conftest.beam conftest.$ac_ext
6791 fi
6792
6793       LIBS="$am_save_LIBS"
6794
6795 fi
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6797 $as_echo "$am_cv_func_iconv_works" >&6; }
6798     case "$am_cv_func_iconv_works" in
6799       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6800       *)   am_func_iconv=yes ;;
6801     esac
6802   else
6803     am_func_iconv=no am_cv_lib_iconv=no
6804   fi
6805   if test "$am_func_iconv" = yes; then
6806
6807 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6808
6809   fi
6810   if test "$am_cv_lib_iconv" = yes; then
6811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6812 $as_echo_n "checking how to link with libiconv... " >&6; }
6813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6814 $as_echo "$LIBICONV" >&6; }
6815   else
6816             CPPFLAGS="$am_save_CPPFLAGS"
6817     LIBICONV=
6818     LTLIBICONV=
6819   fi
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831     use_additional=yes
6832
6833   acl_save_prefix="$prefix"
6834   prefix="$acl_final_prefix"
6835   acl_save_exec_prefix="$exec_prefix"
6836   exec_prefix="$acl_final_exec_prefix"
6837
6838     eval additional_includedir=\"$includedir\"
6839     eval additional_libdir=\"$libdir\"
6840
6841   exec_prefix="$acl_save_exec_prefix"
6842   prefix="$acl_save_prefix"
6843
6844
6845 # Check whether --with-libintl-prefix was given.
6846 if test "${with_libintl_prefix+set}" = set; then :
6847   withval=$with_libintl_prefix;
6848     if test "X$withval" = "Xno"; then
6849       use_additional=no
6850     else
6851       if test "X$withval" = "X"; then
6852
6853   acl_save_prefix="$prefix"
6854   prefix="$acl_final_prefix"
6855   acl_save_exec_prefix="$exec_prefix"
6856   exec_prefix="$acl_final_exec_prefix"
6857
6858           eval additional_includedir=\"$includedir\"
6859           eval additional_libdir=\"$libdir\"
6860
6861   exec_prefix="$acl_save_exec_prefix"
6862   prefix="$acl_save_prefix"
6863
6864       else
6865         additional_includedir="$withval/include"
6866         additional_libdir="$withval/$acl_libdirstem"
6867         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6868            && ! test -d "$withval/$acl_libdirstem"; then
6869           additional_libdir="$withval/$acl_libdirstem2"
6870         fi
6871       fi
6872     fi
6873
6874 fi
6875
6876       LIBINTL=
6877   LTLIBINTL=
6878   INCINTL=
6879   LIBINTL_PREFIX=
6880       HAVE_LIBINTL=
6881   rpathdirs=
6882   ltrpathdirs=
6883   names_already_handled=
6884   names_next_round='intl '
6885   while test -n "$names_next_round"; do
6886     names_this_round="$names_next_round"
6887     names_next_round=
6888     for name in $names_this_round; do
6889       already_handled=
6890       for n in $names_already_handled; do
6891         if test "$n" = "$name"; then
6892           already_handled=yes
6893           break
6894         fi
6895       done
6896       if test -z "$already_handled"; then
6897         names_already_handled="$names_already_handled $name"
6898                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6899         eval value=\"\$HAVE_LIB$uppername\"
6900         if test -n "$value"; then
6901           if test "$value" = yes; then
6902             eval value=\"\$LIB$uppername\"
6903             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6904             eval value=\"\$LTLIB$uppername\"
6905             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6906           else
6907                                     :
6908           fi
6909         else
6910                               found_dir=
6911           found_la=
6912           found_so=
6913           found_a=
6914           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6915           if test -n "$acl_shlibext"; then
6916             shrext=".$acl_shlibext"             # typically: shrext=.so
6917           else
6918             shrext=
6919           fi
6920           if test $use_additional = yes; then
6921             dir="$additional_libdir"
6922                                     if test -n "$acl_shlibext"; then
6923               if test -f "$dir/$libname$shrext"; then
6924                 found_dir="$dir"
6925                 found_so="$dir/$libname$shrext"
6926               else
6927                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6928                   ver=`(cd "$dir" && \
6929                         for f in "$libname$shrext".*; do echo "$f"; done \
6930                         | sed -e "s,^$libname$shrext\\\\.,," \
6931                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6932                         | sed 1q ) 2>/dev/null`
6933                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6934                     found_dir="$dir"
6935                     found_so="$dir/$libname$shrext.$ver"
6936                   fi
6937                 else
6938                   eval library_names=\"$acl_library_names_spec\"
6939                   for f in $library_names; do
6940                     if test -f "$dir/$f"; then
6941                       found_dir="$dir"
6942                       found_so="$dir/$f"
6943                       break
6944                     fi
6945                   done
6946                 fi
6947               fi
6948             fi
6949                         if test "X$found_dir" = "X"; then
6950               if test -f "$dir/$libname.$acl_libext"; then
6951                 found_dir="$dir"
6952                 found_a="$dir/$libname.$acl_libext"
6953               fi
6954             fi
6955             if test "X$found_dir" != "X"; then
6956               if test -f "$dir/$libname.la"; then
6957                 found_la="$dir/$libname.la"
6958               fi
6959             fi
6960           fi
6961           if test "X$found_dir" = "X"; then
6962             for x in $LDFLAGS $LTLIBINTL; do
6963
6964   acl_save_prefix="$prefix"
6965   prefix="$acl_final_prefix"
6966   acl_save_exec_prefix="$exec_prefix"
6967   exec_prefix="$acl_final_exec_prefix"
6968   eval x=\"$x\"
6969   exec_prefix="$acl_save_exec_prefix"
6970   prefix="$acl_save_prefix"
6971
6972               case "$x" in
6973                 -L*)
6974                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6975                                     if test -n "$acl_shlibext"; then
6976                     if test -f "$dir/$libname$shrext"; then
6977                       found_dir="$dir"
6978                       found_so="$dir/$libname$shrext"
6979                     else
6980                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6981                         ver=`(cd "$dir" && \
6982                               for f in "$libname$shrext".*; do echo "$f"; done \
6983                               | sed -e "s,^$libname$shrext\\\\.,," \
6984                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6985                               | sed 1q ) 2>/dev/null`
6986                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6987                           found_dir="$dir"
6988                           found_so="$dir/$libname$shrext.$ver"
6989                         fi
6990                       else
6991                         eval library_names=\"$acl_library_names_spec\"
6992                         for f in $library_names; do
6993                           if test -f "$dir/$f"; then
6994                             found_dir="$dir"
6995                             found_so="$dir/$f"
6996                             break
6997                           fi
6998                         done
6999                       fi
7000                     fi
7001                   fi
7002                                     if test "X$found_dir" = "X"; then
7003                     if test -f "$dir/$libname.$acl_libext"; then
7004                       found_dir="$dir"
7005                       found_a="$dir/$libname.$acl_libext"
7006                     fi
7007                   fi
7008                   if test "X$found_dir" != "X"; then
7009                     if test -f "$dir/$libname.la"; then
7010                       found_la="$dir/$libname.la"
7011                     fi
7012                   fi
7013                   ;;
7014               esac
7015               if test "X$found_dir" != "X"; then
7016                 break
7017               fi
7018             done
7019           fi
7020           if test "X$found_dir" != "X"; then
7021                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7022             if test "X$found_so" != "X"; then
7023                                                         if test "$enable_rpath" = no \
7024                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7025                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7026                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7027               else
7028                                                                                 haveit=
7029                 for x in $ltrpathdirs; do
7030                   if test "X$x" = "X$found_dir"; then
7031                     haveit=yes
7032                     break
7033                   fi
7034                 done
7035                 if test -z "$haveit"; then
7036                   ltrpathdirs="$ltrpathdirs $found_dir"
7037                 fi
7038                                 if test "$acl_hardcode_direct" = yes; then
7039                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7040                 else
7041                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7042                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7043                                                             haveit=
7044                     for x in $rpathdirs; do
7045                       if test "X$x" = "X$found_dir"; then
7046                         haveit=yes
7047                         break
7048                       fi
7049                     done
7050                     if test -z "$haveit"; then
7051                       rpathdirs="$rpathdirs $found_dir"
7052                     fi
7053                   else
7054                                                                                 haveit=
7055                     for x in $LDFLAGS $LIBINTL; do
7056
7057   acl_save_prefix="$prefix"
7058   prefix="$acl_final_prefix"
7059   acl_save_exec_prefix="$exec_prefix"
7060   exec_prefix="$acl_final_exec_prefix"
7061   eval x=\"$x\"
7062   exec_prefix="$acl_save_exec_prefix"
7063   prefix="$acl_save_prefix"
7064
7065                       if test "X$x" = "X-L$found_dir"; then
7066                         haveit=yes
7067                         break
7068                       fi
7069                     done
7070                     if test -z "$haveit"; then
7071                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7072                     fi
7073                     if test "$acl_hardcode_minus_L" != no; then
7074                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7075                     else
7076                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7077                     fi
7078                   fi
7079                 fi
7080               fi
7081             else
7082               if test "X$found_a" != "X"; then
7083                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7084               else
7085                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7086               fi
7087             fi
7088                         additional_includedir=
7089             case "$found_dir" in
7090               */$acl_libdirstem | */$acl_libdirstem/)
7091                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7092                 if test "$name" = 'intl'; then
7093                   LIBINTL_PREFIX="$basedir"
7094                 fi
7095                 additional_includedir="$basedir/include"
7096                 ;;
7097               */$acl_libdirstem2 | */$acl_libdirstem2/)
7098                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7099                 if test "$name" = 'intl'; then
7100                   LIBINTL_PREFIX="$basedir"
7101                 fi
7102                 additional_includedir="$basedir/include"
7103                 ;;
7104             esac
7105             if test "X$additional_includedir" != "X"; then
7106                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7107                 haveit=
7108                 if test "X$additional_includedir" = "X/usr/local/include"; then
7109                   if test -n "$GCC"; then
7110                     case $host_os in
7111                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7112                     esac
7113                   fi
7114                 fi
7115                 if test -z "$haveit"; then
7116                   for x in $CPPFLAGS $INCINTL; do
7117
7118   acl_save_prefix="$prefix"
7119   prefix="$acl_final_prefix"
7120   acl_save_exec_prefix="$exec_prefix"
7121   exec_prefix="$acl_final_exec_prefix"
7122   eval x=\"$x\"
7123   exec_prefix="$acl_save_exec_prefix"
7124   prefix="$acl_save_prefix"
7125
7126                     if test "X$x" = "X-I$additional_includedir"; then
7127                       haveit=yes
7128                       break
7129                     fi
7130                   done
7131                   if test -z "$haveit"; then
7132                     if test -d "$additional_includedir"; then
7133                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7134                     fi
7135                   fi
7136                 fi
7137               fi
7138             fi
7139                         if test -n "$found_la"; then
7140                                                         save_libdir="$libdir"
7141               case "$found_la" in
7142                 */* | *\\*) . "$found_la" ;;
7143                 *) . "./$found_la" ;;
7144               esac
7145               libdir="$save_libdir"
7146                             for dep in $dependency_libs; do
7147                 case "$dep" in
7148                   -L*)
7149                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7150                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7151                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7152                       haveit=
7153                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7154                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7155                         if test -n "$GCC"; then
7156                           case $host_os in
7157                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7158                           esac
7159                         fi
7160                       fi
7161                       if test -z "$haveit"; then
7162                         haveit=
7163                         for x in $LDFLAGS $LIBINTL; do
7164
7165   acl_save_prefix="$prefix"
7166   prefix="$acl_final_prefix"
7167   acl_save_exec_prefix="$exec_prefix"
7168   exec_prefix="$acl_final_exec_prefix"
7169   eval x=\"$x\"
7170   exec_prefix="$acl_save_exec_prefix"
7171   prefix="$acl_save_prefix"
7172
7173                           if test "X$x" = "X-L$additional_libdir"; then
7174                             haveit=yes
7175                             break
7176                           fi
7177                         done
7178                         if test -z "$haveit"; then
7179                           if test -d "$additional_libdir"; then
7180                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7181                           fi
7182                         fi
7183                         haveit=
7184                         for x in $LDFLAGS $LTLIBINTL; do
7185
7186   acl_save_prefix="$prefix"
7187   prefix="$acl_final_prefix"
7188   acl_save_exec_prefix="$exec_prefix"
7189   exec_prefix="$acl_final_exec_prefix"
7190   eval x=\"$x\"
7191   exec_prefix="$acl_save_exec_prefix"
7192   prefix="$acl_save_prefix"
7193
7194                           if test "X$x" = "X-L$additional_libdir"; then
7195                             haveit=yes
7196                             break
7197                           fi
7198                         done
7199                         if test -z "$haveit"; then
7200                           if test -d "$additional_libdir"; then
7201                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7202                           fi
7203                         fi
7204                       fi
7205                     fi
7206                     ;;
7207                   -R*)
7208                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7209                     if test "$enable_rpath" != no; then
7210                                                                   haveit=
7211                       for x in $rpathdirs; do
7212                         if test "X$x" = "X$dir"; then
7213                           haveit=yes
7214                           break
7215                         fi
7216                       done
7217                       if test -z "$haveit"; then
7218                         rpathdirs="$rpathdirs $dir"
7219                       fi
7220                                                                   haveit=
7221                       for x in $ltrpathdirs; do
7222                         if test "X$x" = "X$dir"; then
7223                           haveit=yes
7224                           break
7225                         fi
7226                       done
7227                       if test -z "$haveit"; then
7228                         ltrpathdirs="$ltrpathdirs $dir"
7229                       fi
7230                     fi
7231                     ;;
7232                   -l*)
7233                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7234                     ;;
7235                   *.la)
7236                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7237                     ;;
7238                   *)
7239                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7240                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7241                     ;;
7242                 esac
7243               done
7244             fi
7245           else
7246                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7247             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7248           fi
7249         fi
7250       fi
7251     done
7252   done
7253   if test "X$rpathdirs" != "X"; then
7254     if test -n "$acl_hardcode_libdir_separator"; then
7255                         alldirs=
7256       for found_dir in $rpathdirs; do
7257         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7258       done
7259             acl_save_libdir="$libdir"
7260       libdir="$alldirs"
7261       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7262       libdir="$acl_save_libdir"
7263       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7264     else
7265             for found_dir in $rpathdirs; do
7266         acl_save_libdir="$libdir"
7267         libdir="$found_dir"
7268         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7269         libdir="$acl_save_libdir"
7270         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7271       done
7272     fi
7273   fi
7274   if test "X$ltrpathdirs" != "X"; then
7275             for found_dir in $ltrpathdirs; do
7276       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7277     done
7278   fi
7279
7280
7281
7282
7283
7284
7285           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7286 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7287 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7288   $as_echo_n "(cached) " >&6
7289 else
7290   gt_save_CPPFLAGS="$CPPFLAGS"
7291             CPPFLAGS="$CPPFLAGS $INCINTL"
7292             gt_save_LIBS="$LIBS"
7293             LIBS="$LIBS $LIBINTL"
7294                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h.  */
7296
7297 #include <libintl.h>
7298 $gt_revision_test_code
7299 extern int _nl_msg_cat_cntr;
7300 extern
7301 #ifdef __cplusplus
7302 "C"
7303 #endif
7304 const char *_nl_expand_alias (const char *);
7305
7306 int
7307 main ()
7308 {
7309
7310 bindtextdomain ("", "");
7311 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7312
7313   ;
7314   return 0;
7315 }
7316 _ACEOF
7317 if ac_fn_c_try_link "$LINENO"; then :
7318   eval "$gt_func_gnugettext_libintl=yes"
7319 else
7320   eval "$gt_func_gnugettext_libintl=no"
7321 fi
7322 rm -f core conftest.err conftest.$ac_objext \
7323     conftest$ac_exeext conftest.$ac_ext
7324                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7325               LIBS="$LIBS $LIBICONV"
7326               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h.  */
7328
7329 #include <libintl.h>
7330 $gt_revision_test_code
7331 extern int _nl_msg_cat_cntr;
7332 extern
7333 #ifdef __cplusplus
7334 "C"
7335 #endif
7336 const char *_nl_expand_alias (const char *);
7337
7338 int
7339 main ()
7340 {
7341
7342 bindtextdomain ("", "");
7343 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7344
7345   ;
7346   return 0;
7347 }
7348 _ACEOF
7349 if ac_fn_c_try_link "$LINENO"; then :
7350   LIBINTL="$LIBINTL $LIBICONV"
7351                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7352                  eval "$gt_func_gnugettext_libintl=yes"
7353
7354 fi
7355 rm -f core conftest.err conftest.$ac_objext \
7356     conftest$ac_exeext conftest.$ac_ext
7357             fi
7358             CPPFLAGS="$gt_save_CPPFLAGS"
7359             LIBS="$gt_save_LIBS"
7360 fi
7361 eval ac_res=\$$gt_func_gnugettext_libintl
7362                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7363 $as_echo "$ac_res" >&6; }
7364         fi
7365
7366                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7367            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7368                 && test "$PACKAGE" != gettext-runtime \
7369                 && test "$PACKAGE" != gettext-tools; }; then
7370           gt_use_preinstalled_gnugettext=yes
7371         else
7372                     LIBINTL=
7373           LTLIBINTL=
7374           INCINTL=
7375         fi
7376
7377
7378
7379     if test -n "$INTL_MACOSX_LIBS"; then
7380       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7381          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7382                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7383         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7384       fi
7385     fi
7386
7387     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7388        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7389
7390 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7391
7392     else
7393       USE_NLS=no
7394     fi
7395   fi
7396
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7398 $as_echo_n "checking whether to use NLS... " >&6; }
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7400 $as_echo "$USE_NLS" >&6; }
7401   if test "$USE_NLS" = "yes"; then
7402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7403 $as_echo_n "checking where the gettext function comes from... " >&6; }
7404     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7405       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7406         gt_source="external libintl"
7407       else
7408         gt_source="libc"
7409       fi
7410     else
7411       gt_source="included intl directory"
7412     fi
7413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7414 $as_echo "$gt_source" >&6; }
7415   fi
7416
7417   if test "$USE_NLS" = "yes"; then
7418
7419     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7420       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7421         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7422 $as_echo_n "checking how to link with libintl... " >&6; }
7423         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7424 $as_echo "$LIBINTL" >&6; }
7425
7426   for element in $INCINTL; do
7427     haveit=
7428     for x in $CPPFLAGS; do
7429
7430   acl_save_prefix="$prefix"
7431   prefix="$acl_final_prefix"
7432   acl_save_exec_prefix="$exec_prefix"
7433   exec_prefix="$acl_final_exec_prefix"
7434   eval x=\"$x\"
7435   exec_prefix="$acl_save_exec_prefix"
7436   prefix="$acl_save_prefix"
7437
7438       if test "X$x" = "X$element"; then
7439         haveit=yes
7440         break
7441       fi
7442     done
7443     if test -z "$haveit"; then
7444       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7445     fi
7446   done
7447
7448       fi
7449
7450
7451 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7452
7453
7454 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7455
7456     fi
7457
7458         POSUB=po
7459   fi
7460
7461
7462
7463     INTLLIBS="$LIBINTL"
7464
7465
7466
7467
7468
7469
7470
7471 # Gconf
7472 # Extract the first word of "gconftool-2", so it can be a program name with args.
7473 set dummy gconftool-2; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if ${ac_cv_path_GCONFTOOL+:} false; then :
7477   $as_echo_n "(cached) " >&6
7478 else
7479   case $GCONFTOOL in
7480   [\\/]* | ?:[\\/]*)
7481   ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path.
7482   ;;
7483   *)
7484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489     for ac_exec_ext in '' $ac_executable_extensions; do
7490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491     ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext"
7492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496   done
7497 IFS=$as_save_IFS
7498
7499   test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no"
7500   ;;
7501 esac
7502 fi
7503 GCONFTOOL=$ac_cv_path_GCONFTOOL
7504 if test -n "$GCONFTOOL"; then
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONFTOOL" >&5
7506 $as_echo "$GCONFTOOL" >&6; }
7507 else
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512
7513
7514   if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
7515     GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7516   else
7517     GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
7518   fi
7519
7520
7521 # Check whether --with-gconf-source was given.
7522 if test "${with_gconf_source+set}" = set; then :
7523   withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval"
7524 fi
7525
7526
7527
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
7529 $as_echo "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; }
7530
7531   if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
7532     GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
7533   fi
7534
7535
7536 # Check whether --with-gconf-schema-file-dir was given.
7537 if test "${with_gconf_schema_file_dir+set}" = set; then :
7538   withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval"
7539 fi
7540
7541
7542
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
7544 $as_echo "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; }
7545
7546   # Check whether --enable-schemas-install was given.
7547 if test "${enable_schemas_install+set}" = set; then :
7548   enableval=$enable_schemas_install; case ${enableval} in
7549        yes|no) ;;
7550        *) as_fn_error $? "bad value ${enableval} for --enable-schemas-install" "$LINENO" 5 ;;
7551       esac
7552 fi
7553
7554    if test "$enable_schemas_install" != no; then
7555   GCONF_SCHEMAS_INSTALL_TRUE=
7556   GCONF_SCHEMAS_INSTALL_FALSE='#'
7557 else
7558   GCONF_SCHEMAS_INSTALL_TRUE='#'
7559   GCONF_SCHEMAS_INSTALL_FALSE=
7560 fi
7561
7562
7563
7564 # Gsettings
7565
7566
7567   # Check whether --enable-schemas-compile was given.
7568 if test "${enable_schemas_compile+set}" = set; then :
7569   enableval=$enable_schemas_compile; case ${enableval} in
7570                   yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
7571                   no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
7572                   *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
7573                  esac
7574 fi
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7585         if test -n "$ac_tool_prefix"; then
7586   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593   case $PKG_CONFIG in
7594   [\\/]* | ?:[\\/]*)
7595   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7596   ;;
7597   *)
7598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603     for ac_exec_ext in '' $ac_executable_extensions; do
7604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610   done
7611 IFS=$as_save_IFS
7612
7613   ;;
7614 esac
7615 fi
7616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7617 if test -n "$PKG_CONFIG"; then
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7619 $as_echo "$PKG_CONFIG" >&6; }
7620 else
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7623 fi
7624
7625
7626 fi
7627 if test -z "$ac_cv_path_PKG_CONFIG"; then
7628   ac_pt_PKG_CONFIG=$PKG_CONFIG
7629   # Extract the first word of "pkg-config", so it can be a program name with args.
7630 set dummy pkg-config; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   case $ac_pt_PKG_CONFIG in
7637   [\\/]* | ?:[\\/]*)
7638   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7639   ;;
7640   *)
7641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646     for ac_exec_ext in '' $ac_executable_extensions; do
7647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653   done
7654 IFS=$as_save_IFS
7655
7656   ;;
7657 esac
7658 fi
7659 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7660 if test -n "$ac_pt_PKG_CONFIG"; then
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7662 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7663 else
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7666 fi
7667
7668   if test "x$ac_pt_PKG_CONFIG" = x; then
7669     PKG_CONFIG=""
7670   else
7671     case $cross_compiling:$ac_tool_warned in
7672 yes:)
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7675 ac_tool_warned=yes ;;
7676 esac
7677     PKG_CONFIG=$ac_pt_PKG_CONFIG
7678   fi
7679 else
7680   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7681 fi
7682
7683 fi
7684 if test -n "$PKG_CONFIG"; then
7685         _pkg_min_version=0.16
7686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7687 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7688         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7689                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7690 $as_echo "yes" >&6; }
7691         else
7692                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7694                 PKG_CONFIG=""
7695         fi
7696 fi
7697   gsettingsschemadir=${datadir}/glib-2.0/schemas
7698
7699   if test x$cross_compiling != xyes; then
7700     GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
7701   else
7702     # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
7703 set dummy glib-compile-schemas; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
7707   $as_echo_n "(cached) " >&6
7708 else
7709   case $GLIB_COMPILE_SCHEMAS in
7710   [\\/]* | ?:[\\/]*)
7711   ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
7712   ;;
7713   *)
7714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719     for ac_exec_ext in '' $ac_executable_extensions; do
7720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721     ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
7722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726   done
7727 IFS=$as_save_IFS
7728
7729   ;;
7730 esac
7731 fi
7732 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
7733 if test -n "$GLIB_COMPILE_SCHEMAS"; then
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
7735 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
7736 else
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742   fi
7743
7744   if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
7745     as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
7746   else
7747     :
7748   fi
7749
7750   GSETTINGS_RULES='
7751 .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
7752
7753 mostlyclean-am: clean-gsettings-schemas
7754
7755 gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
7756
7757 %.gschema.valid: %.gschema.xml $(gsettings__enum_file)
7758         $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@
7759
7760 all-am: $(gsettings_SCHEMAS:.xml=.valid)
7761 uninstall-am: uninstall-gsettings-schemas
7762 install-data-am: install-gsettings-schemas
7763
7764 .SECONDARY: $(gsettings_SCHEMAS)
7765
7766 install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
7767         @$(NORMAL_INSTALL)
7768         if test -n "$^"; then \
7769                 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
7770                 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
7771                 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
7772         fi
7773
7774 uninstall-gsettings-schemas:
7775         @$(NORMAL_UNINSTALL)
7776         @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
7777         files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
7778         test -n "$$files" || exit 0; \
7779         echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
7780         cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
7781         test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
7782
7783 clean-gsettings-schemas:
7784         rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
7785
7786 ifdef gsettings_ENUM_NAMESPACE
7787 $(gsettings__enum_file): $(gsettings_ENUM_FILES)
7788         $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@
7789 endif
7790 '
7791
7792
7793
7794
7795
7796
7797
7798 ############### common
7799
7800 # Checks pthread
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7802 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7803 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7804   $as_echo_n "(cached) " >&6
7805 else
7806   ac_check_lib_save_LIBS=$LIBS
7807 LIBS="-lpthread  $LIBS"
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h.  */
7810
7811 /* Override any GCC internal prototype to avoid an error.
7812    Use char because int might match the return type of a GCC
7813    builtin and then its argument prototype would still apply.  */
7814 #ifdef __cplusplus
7815 extern "C"
7816 #endif
7817 char pthread_create ();
7818 int
7819 main ()
7820 {
7821 return pthread_create ();
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 if ac_fn_c_try_link "$LINENO"; then :
7827   ac_cv_lib_pthread_pthread_create=yes
7828 else
7829   ac_cv_lib_pthread_pthread_create=no
7830 fi
7831 rm -f core conftest.err conftest.$ac_objext \
7832     conftest$ac_exeext conftest.$ac_ext
7833 LIBS=$ac_check_lib_save_LIBS
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7836 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7837 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7838   cat >>confdefs.h <<_ACEOF
7839 #define HAVE_LIBPTHREAD 1
7840 _ACEOF
7841
7842   LIBS="-lpthread $LIBS"
7843
7844 fi
7845
7846 PTHREAD_LIBS=-pthread
7847
7848
7849 # Checks sensors, required by psensor and psensor-server
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
7851 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
7852 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
7853   $as_echo_n "(cached) " >&6
7854 else
7855   ac_check_lib_save_LIBS=$LIBS
7856 LIBS="-lsensors  $LIBS"
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h.  */
7859
7860 /* Override any GCC internal prototype to avoid an error.
7861    Use char because int might match the return type of a GCC
7862    builtin and then its argument prototype would still apply.  */
7863 #ifdef __cplusplus
7864 extern "C"
7865 #endif
7866 char sensors_init ();
7867 int
7868 main ()
7869 {
7870 return sensors_init ();
7871   ;
7872   return 0;
7873 }
7874 _ACEOF
7875 if ac_fn_c_try_link "$LINENO"; then :
7876   ac_cv_lib_sensors_sensors_init=yes
7877 else
7878   ac_cv_lib_sensors_sensors_init=no
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext \
7881     conftest$ac_exeext conftest.$ac_ext
7882 LIBS=$ac_check_lib_save_LIBS
7883 fi
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
7885 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
7886 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
7887   cat >>confdefs.h <<_ACEOF
7888 #define HAVE_LIBSENSORS 1
7889 _ACEOF
7890
7891   LIBS="-lsensors $LIBS"
7892
7893 fi
7894
7895 for ac_header in sensors/sensors.h sensors/error.h
7896 do :
7897   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7898 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7900   cat >>confdefs.h <<_ACEOF
7901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7902 _ACEOF
7903
7904 fi
7905
7906 done
7907
7908 SENSORS_LIBS=-lsensors
7909
7910
7911 ############### psensor
7912
7913 ### Required
7914
7915
7916 pkg_failed=no
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7918 $as_echo_n "checking for X11... " >&6; }
7919
7920 if test -n "$X11_CFLAGS"; then
7921     pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7922  elif test -n "$PKG_CONFIG"; then
7923     if test -n "$PKG_CONFIG" && \
7924     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7925   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7926   ac_status=$?
7927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7928   test $ac_status = 0; }; then
7929   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7930                       test "x$?" != "x0" && pkg_failed=yes
7931 else
7932   pkg_failed=yes
7933 fi
7934  else
7935     pkg_failed=untried
7936 fi
7937 if test -n "$X11_LIBS"; then
7938     pkg_cv_X11_LIBS="$X11_LIBS"
7939  elif test -n "$PKG_CONFIG"; then
7940     if test -n "$PKG_CONFIG" && \
7941     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7942   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7943   ac_status=$?
7944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7945   test $ac_status = 0; }; then
7946   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7947                       test "x$?" != "x0" && pkg_failed=yes
7948 else
7949   pkg_failed=yes
7950 fi
7951  else
7952     pkg_failed=untried
7953 fi
7954
7955
7956
7957 if test $pkg_failed = yes; then
7958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7960
7961 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7962         _pkg_short_errors_supported=yes
7963 else
7964         _pkg_short_errors_supported=no
7965 fi
7966         if test $_pkg_short_errors_supported = yes; then
7967                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7968         else
7969                 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7970         fi
7971         # Put the nasty error message in config.log where it belongs
7972         echo "$X11_PKG_ERRORS" >&5
7973
7974         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7975 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7976 elif test $pkg_failed = untried; then
7977         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7980 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7981 else
7982         X11_CFLAGS=$pkg_cv_X11_CFLAGS
7983         X11_LIBS=$pkg_cv_X11_LIBS
7984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7985 $as_echo "yes" >&6; }
7986
7987 fi
7988  if test -n "$X11_LIBS"; then
7989   X11_TRUE=
7990   X11_FALSE='#'
7991 else
7992   X11_TRUE='#'
7993   X11_FALSE=
7994 fi
7995
7996
7997
7998
7999
8000 pkg_failed=no
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
8002 $as_echo_n "checking for XEXT... " >&6; }
8003
8004 if test -n "$XEXT_CFLAGS"; then
8005     pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
8006  elif test -n "$PKG_CONFIG"; then
8007     if test -n "$PKG_CONFIG" && \
8008     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
8009   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
8010   ac_status=$?
8011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8012   test $ac_status = 0; }; then
8013   pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
8014                       test "x$?" != "x0" && pkg_failed=yes
8015 else
8016   pkg_failed=yes
8017 fi
8018  else
8019     pkg_failed=untried
8020 fi
8021 if test -n "$XEXT_LIBS"; then
8022     pkg_cv_XEXT_LIBS="$XEXT_LIBS"
8023  elif test -n "$PKG_CONFIG"; then
8024     if test -n "$PKG_CONFIG" && \
8025     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
8026   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
8027   ac_status=$?
8028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8029   test $ac_status = 0; }; then
8030   pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
8031                       test "x$?" != "x0" && pkg_failed=yes
8032 else
8033   pkg_failed=yes
8034 fi
8035  else
8036     pkg_failed=untried
8037 fi
8038
8039
8040
8041 if test $pkg_failed = yes; then
8042         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8044
8045 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8046         _pkg_short_errors_supported=yes
8047 else
8048         _pkg_short_errors_supported=no
8049 fi
8050         if test $_pkg_short_errors_supported = yes; then
8051                 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
8052         else
8053                 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
8054         fi
8055         # Put the nasty error message in config.log where it belongs
8056         echo "$XEXT_PKG_ERRORS" >&5
8057
8058         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
8059 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
8060 elif test $pkg_failed = untried; then
8061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
8064 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
8065 else
8066         XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
8067         XEXT_LIBS=$pkg_cv_XEXT_LIBS
8068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8069 $as_echo "yes" >&6; }
8070
8071 fi
8072  if test -n "$XEXT_LIBS"; then
8073   XEXT_TRUE=
8074   XEXT_FALSE='#'
8075 else
8076   XEXT_TRUE='#'
8077   XEXT_FALSE=
8078 fi
8079
8080
8081
8082
8083 # Checks GTK+ 3.0
8084
8085 pkg_failed=no
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
8087 $as_echo_n "checking for GTK... " >&6; }
8088
8089 if test -n "$GTK_CFLAGS"; then
8090     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8091  elif test -n "$PKG_CONFIG"; then
8092     if test -n "$PKG_CONFIG" && \
8093     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
8094   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
8095   ac_status=$?
8096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8097   test $ac_status = 0; }; then
8098   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
8099                       test "x$?" != "x0" && pkg_failed=yes
8100 else
8101   pkg_failed=yes
8102 fi
8103  else
8104     pkg_failed=untried
8105 fi
8106 if test -n "$GTK_LIBS"; then
8107     pkg_cv_GTK_LIBS="$GTK_LIBS"
8108  elif test -n "$PKG_CONFIG"; then
8109     if test -n "$PKG_CONFIG" && \
8110     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
8111   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
8112   ac_status=$?
8113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114   test $ac_status = 0; }; then
8115   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
8116                       test "x$?" != "x0" && pkg_failed=yes
8117 else
8118   pkg_failed=yes
8119 fi
8120  else
8121     pkg_failed=untried
8122 fi
8123
8124
8125
8126 if test $pkg_failed = yes; then
8127         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8129
8130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8131         _pkg_short_errors_supported=yes
8132 else
8133         _pkg_short_errors_supported=no
8134 fi
8135         if test $_pkg_short_errors_supported = yes; then
8136                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
8137         else
8138                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
8139         fi
8140         # Put the nasty error message in config.log where it belongs
8141         echo "$GTK_PKG_ERRORS" >&5
8142
8143         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
8144 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
8145 elif test $pkg_failed = untried; then
8146         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8148         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
8149 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
8150 else
8151         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
8152         GTK_LIBS=$pkg_cv_GTK_LIBS
8153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8154 $as_echo "yes" >&6; }
8155
8156 fi
8157  if test -n "$GTK_LIBS"; then
8158   GTK_TRUE=
8159   GTK_FALSE='#'
8160 else
8161   GTK_TRUE='#'
8162   GTK_FALSE=
8163 fi
8164
8165 # ensure that only allowed headers are included
8166 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
8167 # ensure that no gtk deprecated symbols are used
8168 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
8169 GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
8170 # ensure use of accessors
8171 GTK_CFLAGS+=" -DGSEAL_ENABLE "
8172
8173
8174
8175 # Check GCONF
8176
8177 pkg_failed=no
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
8179 $as_echo_n "checking for GCONF... " >&6; }
8180
8181 if test -n "$GCONF_CFLAGS"; then
8182     pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
8183  elif test -n "$PKG_CONFIG"; then
8184     if test -n "$PKG_CONFIG" && \
8185     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
8186   ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
8187   ac_status=$?
8188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8189   test $ac_status = 0; }; then
8190   pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
8191                       test "x$?" != "x0" && pkg_failed=yes
8192 else
8193   pkg_failed=yes
8194 fi
8195  else
8196     pkg_failed=untried
8197 fi
8198 if test -n "$GCONF_LIBS"; then
8199     pkg_cv_GCONF_LIBS="$GCONF_LIBS"
8200  elif test -n "$PKG_CONFIG"; then
8201     if test -n "$PKG_CONFIG" && \
8202     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
8203   ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
8204   ac_status=$?
8205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8206   test $ac_status = 0; }; then
8207   pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
8208                       test "x$?" != "x0" && pkg_failed=yes
8209 else
8210   pkg_failed=yes
8211 fi
8212  else
8213     pkg_failed=untried
8214 fi
8215
8216
8217
8218 if test $pkg_failed = yes; then
8219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8221
8222 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8223         _pkg_short_errors_supported=yes
8224 else
8225         _pkg_short_errors_supported=no
8226 fi
8227         if test $_pkg_short_errors_supported = yes; then
8228                 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0" 2>&1`
8229         else
8230                 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0" 2>&1`
8231         fi
8232         # Put the nasty error message in config.log where it belongs
8233         echo "$GCONF_PKG_ERRORS" >&5
8234
8235         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gconf2 missing psensor will not be built\"" >&5
8236 $as_echo "$as_me: WARNING: \"gconf2 missing psensor will not be built\"" >&2;}
8237 elif test $pkg_failed = untried; then
8238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8240         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gconf2 missing psensor will not be built\"" >&5
8241 $as_echo "$as_me: WARNING: \"gconf2 missing psensor will not be built\"" >&2;}
8242 else
8243         GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
8244         GCONF_LIBS=$pkg_cv_GCONF_LIBS
8245         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8246 $as_echo "yes" >&6; }
8247
8248 $as_echo "#define HAVE_GCONF2 1" >>confdefs.h
8249
8250 fi
8251  if test -n "$GCONF_LIBS"; then
8252   GCONF_TRUE=
8253   GCONF_FALSE='#'
8254 else
8255   GCONF_TRUE='#'
8256   GCONF_FALSE=
8257 fi
8258
8259
8260
8261
8262 ### Optional
8263
8264 # check libatasmart
8265
8266 pkg_failed=no
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATASMART" >&5
8268 $as_echo_n "checking for ATASMART... " >&6; }
8269
8270 if test -n "$ATASMART_CFLAGS"; then
8271     pkg_cv_ATASMART_CFLAGS="$ATASMART_CFLAGS"
8272  elif test -n "$PKG_CONFIG"; then
8273     if test -n "$PKG_CONFIG" && \
8274     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
8275   ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
8276   ac_status=$?
8277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8278   test $ac_status = 0; }; then
8279   pkg_cv_ATASMART_CFLAGS=`$PKG_CONFIG --cflags "libatasmart" 2>/dev/null`
8280                       test "x$?" != "x0" && pkg_failed=yes
8281 else
8282   pkg_failed=yes
8283 fi
8284  else
8285     pkg_failed=untried
8286 fi
8287 if test -n "$ATASMART_LIBS"; then
8288     pkg_cv_ATASMART_LIBS="$ATASMART_LIBS"
8289  elif test -n "$PKG_CONFIG"; then
8290     if test -n "$PKG_CONFIG" && \
8291     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
8292   ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
8293   ac_status=$?
8294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8295   test $ac_status = 0; }; then
8296   pkg_cv_ATASMART_LIBS=`$PKG_CONFIG --libs "libatasmart" 2>/dev/null`
8297                       test "x$?" != "x0" && pkg_failed=yes
8298 else
8299   pkg_failed=yes
8300 fi
8301  else
8302     pkg_failed=untried
8303 fi
8304
8305
8306
8307 if test $pkg_failed = yes; then
8308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8310
8311 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8312         _pkg_short_errors_supported=yes
8313 else
8314         _pkg_short_errors_supported=no
8315 fi
8316         if test $_pkg_short_errors_supported = yes; then
8317                 ATASMART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libatasmart" 2>&1`
8318         else
8319                 ATASMART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libatasmart" 2>&1`
8320         fi
8321         # Put the nasty error message in config.log where it belongs
8322         echo "$ATASMART_PKG_ERRORS" >&5
8323
8324         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
8325 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
8326 elif test $pkg_failed = untried; then
8327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
8330 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
8331 else
8332         ATASMART_CFLAGS=$pkg_cv_ATASMART_CFLAGS
8333         ATASMART_LIBS=$pkg_cv_ATASMART_LIBS
8334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8335 $as_echo "yes" >&6; }
8336
8337 $as_echo "#define HAVE_ATASMART 1" >>confdefs.h
8338
8339 fi
8340
8341  if test -n "$ATASMART_LIBS"; then
8342   ATASMART_TRUE=
8343   ATASMART_FALSE='#'
8344 else
8345   ATASMART_TRUE='#'
8346   ATASMART_FALSE=
8347 fi
8348
8349
8350
8351
8352 # Check libnotify
8353 LIBNOTIFY_LIBS=
8354
8355 pkg_failed=no
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
8357 $as_echo_n "checking for LIBNOTIFY... " >&6; }
8358
8359 if test -n "$LIBNOTIFY_CFLAGS"; then
8360     pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
8361  elif test -n "$PKG_CONFIG"; then
8362     if test -n "$PKG_CONFIG" && \
8363     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
8364   ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
8365   ac_status=$?
8366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8367   test $ac_status = 0; }; then
8368   pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
8369                       test "x$?" != "x0" && pkg_failed=yes
8370 else
8371   pkg_failed=yes
8372 fi
8373  else
8374     pkg_failed=untried
8375 fi
8376 if test -n "$LIBNOTIFY_LIBS"; then
8377     pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
8378  elif test -n "$PKG_CONFIG"; then
8379     if test -n "$PKG_CONFIG" && \
8380     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
8381   ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
8382   ac_status=$?
8383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8384   test $ac_status = 0; }; then
8385   pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
8386                       test "x$?" != "x0" && pkg_failed=yes
8387 else
8388   pkg_failed=yes
8389 fi
8390  else
8391     pkg_failed=untried
8392 fi
8393
8394
8395
8396 if test $pkg_failed = yes; then
8397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399
8400 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8401         _pkg_short_errors_supported=yes
8402 else
8403         _pkg_short_errors_supported=no
8404 fi
8405         if test $_pkg_short_errors_supported = yes; then
8406                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
8407         else
8408                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
8409         fi
8410         # Put the nasty error message in config.log where it belongs
8411         echo "$LIBNOTIFY_PKG_ERRORS" >&5
8412
8413         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
8414 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
8415 elif test $pkg_failed = untried; then
8416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
8419 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
8420 else
8421         LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
8422         LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
8423         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8424 $as_echo "yes" >&6; }
8425
8426 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
8427
8428 fi
8429  if test -n "$LIBNOTIFY_LIBS"; then
8430   LIBNOTIFY_TRUE=
8431   LIBNOTIFY_FALSE='#'
8432 else
8433   LIBNOTIFY_TRUE='#'
8434   LIBNOTIFY_FALSE=
8435 fi
8436
8437
8438
8439
8440 # Checks AppIndicator
8441 APPINDICATOR_LIBS=
8442
8443
8444 pkg_failed=no
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8446 $as_echo_n "checking for APPINDICATOR... " >&6; }
8447
8448 if test -n "$APPINDICATOR_CFLAGS"; then
8449     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8450  elif test -n "$PKG_CONFIG"; then
8451     if test -n "$PKG_CONFIG" && \
8452     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
8453   ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
8454   ac_status=$?
8455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8456   test $ac_status = 0; }; then
8457   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
8458                       test "x$?" != "x0" && pkg_failed=yes
8459 else
8460   pkg_failed=yes
8461 fi
8462  else
8463     pkg_failed=untried
8464 fi
8465 if test -n "$APPINDICATOR_LIBS"; then
8466     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8467  elif test -n "$PKG_CONFIG"; then
8468     if test -n "$PKG_CONFIG" && \
8469     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
8470   ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
8471   ac_status=$?
8472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8473   test $ac_status = 0; }; then
8474   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
8475                       test "x$?" != "x0" && pkg_failed=yes
8476 else
8477   pkg_failed=yes
8478 fi
8479  else
8480     pkg_failed=untried
8481 fi
8482
8483
8484
8485 if test $pkg_failed = yes; then
8486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488
8489 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8490         _pkg_short_errors_supported=yes
8491 else
8492         _pkg_short_errors_supported=no
8493 fi
8494         if test $_pkg_short_errors_supported = yes; then
8495                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
8496         else
8497                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
8498         fi
8499         # Put the nasty error message in config.log where it belongs
8500         echo "$APPINDICATOR_PKG_ERRORS" >&5
8501
8502         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
8503 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
8504 elif test $pkg_failed = untried; then
8505         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 $as_echo "no" >&6; }
8507         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
8508 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
8509 else
8510         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8511         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8512         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8513 $as_echo "yes" >&6; }
8514
8515 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8516
8517 fi
8518
8519 if test "$APPINDICATOR_LIBS" == ""; then
8520
8521 pkg_failed=no
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8523 $as_echo_n "checking for APPINDICATOR... " >&6; }
8524
8525 if test -n "$APPINDICATOR_CFLAGS"; then
8526     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8527  elif test -n "$PKG_CONFIG"; then
8528     if test -n "$PKG_CONFIG" && \
8529     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
8530   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
8531   ac_status=$?
8532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8533   test $ac_status = 0; }; then
8534   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
8535                       test "x$?" != "x0" && pkg_failed=yes
8536 else
8537   pkg_failed=yes
8538 fi
8539  else
8540     pkg_failed=untried
8541 fi
8542 if test -n "$APPINDICATOR_LIBS"; then
8543     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8544  elif test -n "$PKG_CONFIG"; then
8545     if test -n "$PKG_CONFIG" && \
8546     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
8547   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
8548   ac_status=$?
8549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8550   test $ac_status = 0; }; then
8551   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
8552                       test "x$?" != "x0" && pkg_failed=yes
8553 else
8554   pkg_failed=yes
8555 fi
8556  else
8557     pkg_failed=untried
8558 fi
8559
8560
8561
8562 if test $pkg_failed = yes; then
8563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8565
8566 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8567         _pkg_short_errors_supported=yes
8568 else
8569         _pkg_short_errors_supported=no
8570 fi
8571         if test $_pkg_short_errors_supported = yes; then
8572                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8573         else
8574                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8575         fi
8576         # Put the nasty error message in config.log where it belongs
8577         echo "$APPINDICATOR_PKG_ERRORS" >&5
8578
8579         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8580 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8581 elif test $pkg_failed = untried; then
8582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8584         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8585 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8586 else
8587         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8588         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8590 $as_echo "yes" >&6; }
8591
8592 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8593
8594
8595 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
8596
8597
8598 fi
8599 fi
8600
8601 if test "$APPINDICATOR_LIBS" == ""; then
8602
8603 pkg_failed=no
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8605 $as_echo_n "checking for APPINDICATOR... " >&6; }
8606
8607 if test -n "$APPINDICATOR_CFLAGS"; then
8608     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8609  elif test -n "$PKG_CONFIG"; then
8610     if test -n "$PKG_CONFIG" && \
8611     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8612   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8613   ac_status=$?
8614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8615   test $ac_status = 0; }; then
8616   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
8617                       test "x$?" != "x0" && pkg_failed=yes
8618 else
8619   pkg_failed=yes
8620 fi
8621  else
8622     pkg_failed=untried
8623 fi
8624 if test -n "$APPINDICATOR_LIBS"; then
8625     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8626  elif test -n "$PKG_CONFIG"; then
8627     if test -n "$PKG_CONFIG" && \
8628     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8629   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8630   ac_status=$?
8631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8632   test $ac_status = 0; }; then
8633   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
8634                       test "x$?" != "x0" && pkg_failed=yes
8635 else
8636   pkg_failed=yes
8637 fi
8638  else
8639     pkg_failed=untried
8640 fi
8641
8642
8643
8644 if test $pkg_failed = yes; then
8645         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8647
8648 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8649         _pkg_short_errors_supported=yes
8650 else
8651         _pkg_short_errors_supported=no
8652 fi
8653         if test $_pkg_short_errors_supported = yes; then
8654                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8655         else
8656                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8657         fi
8658         # Put the nasty error message in config.log where it belongs
8659         echo "$APPINDICATOR_PKG_ERRORS" >&5
8660
8661         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8662 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8663 elif test $pkg_failed = untried; then
8664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8666         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8667 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8668 else
8669         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8670         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8671         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8672 $as_echo "yes" >&6; }
8673
8674 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8675
8676 fi
8677 fi
8678  if test -n "$APPINDICATOR_LIBS"; then
8679   APPINDICATOR_TRUE=
8680   APPINDICATOR_FALSE='#'
8681 else
8682   APPINDICATOR_TRUE='#'
8683   APPINDICATOR_FALSE=
8684 fi
8685
8686
8687
8688
8689 # Check CURL, needed for remote monitoring
8690 CURL_LIBS=
8691
8692 pkg_failed=no
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
8694 $as_echo_n "checking for CURL... " >&6; }
8695
8696 if test -n "$CURL_CFLAGS"; then
8697     pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
8698  elif test -n "$PKG_CONFIG"; then
8699     if test -n "$PKG_CONFIG" && \
8700     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8701   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8702   ac_status=$?
8703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8704   test $ac_status = 0; }; then
8705   pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
8706                       test "x$?" != "x0" && pkg_failed=yes
8707 else
8708   pkg_failed=yes
8709 fi
8710  else
8711     pkg_failed=untried
8712 fi
8713 if test -n "$CURL_LIBS"; then
8714     pkg_cv_CURL_LIBS="$CURL_LIBS"
8715  elif test -n "$PKG_CONFIG"; then
8716     if test -n "$PKG_CONFIG" && \
8717     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8718   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8719   ac_status=$?
8720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8721   test $ac_status = 0; }; then
8722   pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
8723                       test "x$?" != "x0" && pkg_failed=yes
8724 else
8725   pkg_failed=yes
8726 fi
8727  else
8728     pkg_failed=untried
8729 fi
8730
8731
8732
8733 if test $pkg_failed = yes; then
8734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 $as_echo "no" >&6; }
8736
8737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8738         _pkg_short_errors_supported=yes
8739 else
8740         _pkg_short_errors_supported=no
8741 fi
8742         if test $_pkg_short_errors_supported = yes; then
8743                 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
8744         else
8745                 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
8746         fi
8747         # Put the nasty error message in config.log where it belongs
8748         echo "$CURL_PKG_ERRORS" >&5
8749
8750         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8751 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8752 elif test $pkg_failed = untried; then
8753         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 $as_echo "no" >&6; }
8755         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8756 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8757 else
8758         CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8759         CURL_LIBS=$pkg_cv_CURL_LIBS
8760         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8761 $as_echo "yes" >&6; }
8762
8763 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8764
8765 fi
8766  if test -n "$CURL_LIBS"; then
8767   CURL_TRUE=
8768   CURL_FALSE='#'
8769 else
8770   CURL_TRUE='#'
8771   CURL_FALSE=
8772 fi
8773
8774
8775
8776
8777 # Check JSON, needed for remote monitoring
8778 JSON_LIBS=
8779
8780 pkg_failed=no
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8782 $as_echo_n "checking for JSON... " >&6; }
8783
8784 if test -n "$JSON_CFLAGS"; then
8785     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8786  elif test -n "$PKG_CONFIG"; then
8787     if test -n "$PKG_CONFIG" && \
8788     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
8789   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
8790   ac_status=$?
8791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8792   test $ac_status = 0; }; then
8793   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
8794                       test "x$?" != "x0" && pkg_failed=yes
8795 else
8796   pkg_failed=yes
8797 fi
8798  else
8799     pkg_failed=untried
8800 fi
8801 if test -n "$JSON_LIBS"; then
8802     pkg_cv_JSON_LIBS="$JSON_LIBS"
8803  elif test -n "$PKG_CONFIG"; then
8804     if test -n "$PKG_CONFIG" && \
8805     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
8806   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
8807   ac_status=$?
8808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8809   test $ac_status = 0; }; then
8810   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
8811                       test "x$?" != "x0" && pkg_failed=yes
8812 else
8813   pkg_failed=yes
8814 fi
8815  else
8816     pkg_failed=untried
8817 fi
8818
8819
8820
8821 if test $pkg_failed = yes; then
8822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8824
8825 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8826         _pkg_short_errors_supported=yes
8827 else
8828         _pkg_short_errors_supported=no
8829 fi
8830         if test $_pkg_short_errors_supported = yes; then
8831                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
8832         else
8833                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
8834         fi
8835         # Put the nasty error message in config.log where it belongs
8836         echo "$JSON_PKG_ERRORS" >&5
8837
8838         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8839 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8840 elif test $pkg_failed = untried; then
8841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842 $as_echo "no" >&6; }
8843         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8844 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8845 else
8846         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8847         JSON_LIBS=$pkg_cv_JSON_LIBS
8848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8849 $as_echo "yes" >&6; }
8850
8851 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8852
8853 fi
8854
8855 if test "$JSON_LIBS" == ""; then
8856
8857 pkg_failed=no
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8859 $as_echo_n "checking for JSON... " >&6; }
8860
8861 if test -n "$JSON_CFLAGS"; then
8862     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8863  elif test -n "$PKG_CONFIG"; then
8864     if test -n "$PKG_CONFIG" && \
8865     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8866   ($PKG_CONFIG --exists --print-errors "json") 2>&5
8867   ac_status=$?
8868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8869   test $ac_status = 0; }; then
8870   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
8871                       test "x$?" != "x0" && pkg_failed=yes
8872 else
8873   pkg_failed=yes
8874 fi
8875  else
8876     pkg_failed=untried
8877 fi
8878 if test -n "$JSON_LIBS"; then
8879     pkg_cv_JSON_LIBS="$JSON_LIBS"
8880  elif test -n "$PKG_CONFIG"; then
8881     if test -n "$PKG_CONFIG" && \
8882     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8883   ($PKG_CONFIG --exists --print-errors "json") 2>&5
8884   ac_status=$?
8885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8886   test $ac_status = 0; }; then
8887   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
8888                       test "x$?" != "x0" && pkg_failed=yes
8889 else
8890   pkg_failed=yes
8891 fi
8892  else
8893     pkg_failed=untried
8894 fi
8895
8896
8897
8898 if test $pkg_failed = yes; then
8899         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8901
8902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8903         _pkg_short_errors_supported=yes
8904 else
8905         _pkg_short_errors_supported=no
8906 fi
8907         if test $_pkg_short_errors_supported = yes; then
8908                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
8909         else
8910                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
8911         fi
8912         # Put the nasty error message in config.log where it belongs
8913         echo "$JSON_PKG_ERRORS" >&5
8914
8915         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8916 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8917 elif test $pkg_failed = untried; then
8918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8919 $as_echo "no" >&6; }
8920         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8921 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8922 else
8923         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8924         JSON_LIBS=$pkg_cv_JSON_LIBS
8925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8926 $as_echo "yes" >&6; }
8927
8928 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8929
8930
8931 $as_echo "#define HAVE_JSON_0 1" >>confdefs.h
8932
8933 fi
8934 fi
8935
8936  if test -n "$JSON_LIBS"; then
8937   JSON_TRUE=
8938   JSON_FALSE='#'
8939 else
8940   JSON_TRUE='#'
8941   JSON_FALSE=
8942 fi
8943
8944
8945
8946
8947 # Enables remote monitoring if JSON and CURL is present
8948 if test -n "$JSON_LIBS"; then
8949    if test -n "$CURL_LIBS"; then
8950
8951 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8952
8953    fi
8954 fi
8955
8956 # Checks NVIDIA
8957 # following code from sensors-applet
8958 # sensors-applet.sourceforge.net/
8959 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8960 do :
8961   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8963                   #include <X11/Xlib.h>
8964
8965 "
8966 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8967   cat >>confdefs.h <<_ACEOF
8968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8969 _ACEOF
8970   HAVE_NVIDIA=true
8971 fi
8972
8973 done
8974
8975 if test -n "${X11_LIBS}"; then
8976 LIBS="${LIBS} -lX11 -lXext"
8977
8978 if test "${HAVE_NVIDIA}" = "true"; then
8979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8980 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8981 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8982   $as_echo_n "(cached) " >&6
8983 else
8984   ac_check_lib_save_LIBS=$LIBS
8985 LIBS="-lXNVCtrl  $LIBS"
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h.  */
8988
8989 /* Override any GCC internal prototype to avoid an error.
8990    Use char because int might match the return type of a GCC
8991    builtin and then its argument prototype would still apply.  */
8992 #ifdef __cplusplus
8993 extern "C"
8994 #endif
8995 char XNVCTRLQueryExtension ();
8996 int
8997 main ()
8998 {
8999 return XNVCTRLQueryExtension ();
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_c_try_link "$LINENO"; then :
9005   ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
9006 else
9007   ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext \
9010     conftest$ac_exeext conftest.$ac_ext
9011 LIBS=$ac_check_lib_save_LIBS
9012 fi
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
9014 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
9015 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
9016   NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
9017
9018 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
9019
9020
9021 fi
9022
9023 fi
9024 fi
9025  if test -n "$NVIDIA_LIBS"; then
9026   NVIDIA_TRUE=
9027   NVIDIA_FALSE='#'
9028 else
9029   NVIDIA_TRUE='#'
9030   NVIDIA_FALSE=
9031 fi
9032
9033
9034
9035
9036 # Checks Unity
9037
9038 pkg_failed=no
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
9040 $as_echo_n "checking for UNITY... " >&6; }
9041
9042 if test -n "$UNITY_CFLAGS"; then
9043     pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
9044  elif test -n "$PKG_CONFIG"; then
9045     if test -n "$PKG_CONFIG" && \
9046     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
9047   ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
9048   ac_status=$?
9049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9050   test $ac_status = 0; }; then
9051   pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
9052                       test "x$?" != "x0" && pkg_failed=yes
9053 else
9054   pkg_failed=yes
9055 fi
9056  else
9057     pkg_failed=untried
9058 fi
9059 if test -n "$UNITY_LIBS"; then
9060     pkg_cv_UNITY_LIBS="$UNITY_LIBS"
9061  elif test -n "$PKG_CONFIG"; then
9062     if test -n "$PKG_CONFIG" && \
9063     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
9064   ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
9065   ac_status=$?
9066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9067   test $ac_status = 0; }; then
9068   pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
9069                       test "x$?" != "x0" && pkg_failed=yes
9070 else
9071   pkg_failed=yes
9072 fi
9073  else
9074     pkg_failed=untried
9075 fi
9076
9077
9078
9079 if test $pkg_failed = yes; then
9080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081 $as_echo "no" >&6; }
9082
9083 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9084         _pkg_short_errors_supported=yes
9085 else
9086         _pkg_short_errors_supported=no
9087 fi
9088         if test $_pkg_short_errors_supported = yes; then
9089                 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
9090         else
9091                 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
9092         fi
9093         # Put the nasty error message in config.log where it belongs
9094         echo "$UNITY_PKG_ERRORS" >&5
9095
9096         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
9097 $as_echo "$as_me: WARNING: Unity not present" >&2;}
9098 elif test $pkg_failed = untried; then
9099         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9101         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
9102 $as_echo "$as_me: WARNING: Unity not present" >&2;}
9103 else
9104         UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
9105         UNITY_LIBS=$pkg_cv_UNITY_LIBS
9106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9107 $as_echo "yes" >&6; }
9108
9109 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
9110
9111 fi
9112
9113
9114  if test -n "$UNITY_LIBS"; then
9115   UNITY_TRUE=
9116   UNITY_FALSE='#'
9117 else
9118   UNITY_TRUE='#'
9119   UNITY_FALSE=
9120 fi
9121
9122
9123 # libatiadl
9124
9125 # Check whether --with-libatiadl was given.
9126 if test "${with_libatiadl+set}" = set; then :
9127   withval=$with_libatiadl;
9128                    ATIADL_DIR=${withval}
9129                    CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
9130                    LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
9131
9132
9133 fi
9134
9135
9136 for ac_header in adl_defines.h
9137 do :
9138   ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
9139 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
9140   cat >>confdefs.h <<_ACEOF
9141 #define HAVE_ADL_DEFINES_H 1
9142 _ACEOF
9143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
9144 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
9145 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
9146   $as_echo_n "(cached) " >&6
9147 else
9148   ac_check_lib_save_LIBS=$LIBS
9149 LIBS="-latiadlxx  $LIBS"
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h.  */
9152
9153 /* Override any GCC internal prototype to avoid an error.
9154    Use char because int might match the return type of a GCC
9155    builtin and then its argument prototype would still apply.  */
9156 #ifdef __cplusplus
9157 extern "C"
9158 #endif
9159 char ADL_Main_Control_Refresh ();
9160 int
9161 main ()
9162 {
9163 return ADL_Main_Control_Refresh ();
9164   ;
9165   return 0;
9166 }
9167 _ACEOF
9168 if ac_fn_c_try_link "$LINENO"; then :
9169   ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
9170 else
9171   ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
9172 fi
9173 rm -f core conftest.err conftest.$ac_objext \
9174     conftest$ac_exeext conftest.$ac_ext
9175 LIBS=$ac_check_lib_save_LIBS
9176 fi
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
9178 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
9179 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
9180
9181
9182 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
9183
9184                         LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
9185                         LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
9186
9187 fi
9188
9189 fi
9190
9191 done
9192
9193
9194  if test -n "$LIBATIADL_LIBS"; then
9195   LIBATIADL_TRUE=
9196   LIBATIADL_FALSE='#'
9197 else
9198   LIBATIADL_TRUE='#'
9199   LIBATIADL_FALSE=
9200 fi
9201
9202
9203
9204
9205 ############### psensor-server
9206
9207 # libmicrohttpd, mandatory for psensor-server
9208 LIBMICROHTTPD_LIBS=
9209
9210 pkg_failed=no
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
9212 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
9213
9214 if test -n "$LIBMICROHTTPD_CFLAGS"; then
9215     pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
9216  elif test -n "$PKG_CONFIG"; then
9217     if test -n "$PKG_CONFIG" && \
9218     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
9219   ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
9220   ac_status=$?
9221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9222   test $ac_status = 0; }; then
9223   pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
9224                       test "x$?" != "x0" && pkg_failed=yes
9225 else
9226   pkg_failed=yes
9227 fi
9228  else
9229     pkg_failed=untried
9230 fi
9231 if test -n "$LIBMICROHTTPD_LIBS"; then
9232     pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
9233  elif test -n "$PKG_CONFIG"; then
9234     if test -n "$PKG_CONFIG" && \
9235     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
9236   ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
9237   ac_status=$?
9238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9239   test $ac_status = 0; }; then
9240   pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
9241                       test "x$?" != "x0" && pkg_failed=yes
9242 else
9243   pkg_failed=yes
9244 fi
9245  else
9246     pkg_failed=untried
9247 fi
9248
9249
9250
9251 if test $pkg_failed = yes; then
9252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 $as_echo "no" >&6; }
9254
9255 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9256         _pkg_short_errors_supported=yes
9257 else
9258         _pkg_short_errors_supported=no
9259 fi
9260         if test $_pkg_short_errors_supported = yes; then
9261                 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
9262         else
9263                 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
9264         fi
9265         # Put the nasty error message in config.log where it belongs
9266         echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
9267
9268         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
9269 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
9270 elif test $pkg_failed = untried; then
9271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 $as_echo "no" >&6; }
9273         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
9274 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
9275 else
9276         LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
9277         LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
9278         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9279 $as_echo "yes" >&6; }
9280
9281 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
9282
9283 fi
9284  if test -n "$LIBMICROHTTPD_LIBS"; then
9285   LIBMICROHTTPD_TRUE=
9286   LIBMICROHTTPD_FALSE='#'
9287 else
9288   LIBMICROHTTPD_TRUE='#'
9289   LIBMICROHTTPD_FALSE=
9290 fi
9291
9292
9293
9294
9295 # GTop, optional
9296
9297
9298 # Check whether --with-gtop was given.
9299 if test "${with_gtop+set}" = set; then :
9300   withval=$with_gtop;
9301         with_gtop=$withval
9302 else
9303
9304         with_gtop="yes"
9305
9306 fi
9307
9308
9309 GTOP_LIBS=
9310 if test "$with_gtop" = "yes"; then
9311
9312 pkg_failed=no
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
9314 $as_echo_n "checking for GTOP... " >&6; }
9315
9316 if test -n "$GTOP_CFLAGS"; then
9317     pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
9318  elif test -n "$PKG_CONFIG"; then
9319     if test -n "$PKG_CONFIG" && \
9320     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
9321   ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
9322   ac_status=$?
9323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9324   test $ac_status = 0; }; then
9325   pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
9326                       test "x$?" != "x0" && pkg_failed=yes
9327 else
9328   pkg_failed=yes
9329 fi
9330  else
9331     pkg_failed=untried
9332 fi
9333 if test -n "$GTOP_LIBS"; then
9334     pkg_cv_GTOP_LIBS="$GTOP_LIBS"
9335  elif test -n "$PKG_CONFIG"; then
9336     if test -n "$PKG_CONFIG" && \
9337     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
9338   ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
9339   ac_status=$?
9340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9341   test $ac_status = 0; }; then
9342   pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
9343                       test "x$?" != "x0" && pkg_failed=yes
9344 else
9345   pkg_failed=yes
9346 fi
9347  else
9348     pkg_failed=untried
9349 fi
9350
9351
9352
9353 if test $pkg_failed = yes; then
9354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9355 $as_echo "no" >&6; }
9356
9357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9358         _pkg_short_errors_supported=yes
9359 else
9360         _pkg_short_errors_supported=no
9361 fi
9362         if test $_pkg_short_errors_supported = yes; then
9363                 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
9364         else
9365                 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
9366         fi
9367         # Put the nasty error message in config.log where it belongs
9368         echo "$GTOP_PKG_ERRORS" >&5
9369
9370         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
9371 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
9372 elif test $pkg_failed = untried; then
9373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374 $as_echo "no" >&6; }
9375         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
9376 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
9377 else
9378         GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
9379         GTOP_LIBS=$pkg_cv_GTOP_LIBS
9380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9381 $as_echo "yes" >&6; }
9382
9383 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
9384
9385 fi
9386 fi
9387  if test -n "$GTOP_LIBS"; then
9388   GTOP_TRUE=
9389   GTOP_FALSE='#'
9390 else
9391   GTOP_TRUE='#'
9392   GTOP_FALSE=
9393 fi
9394
9395
9396
9397
9398 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/glade/Makefile src/lib/Makefile src/server/Makefile icons/hicolor/scalable/Makefile icons/hicolor/14x14/Makefile icons/hicolor/16x16/Makefile icons/hicolor/22x22/Makefile icons/hicolor/24x24/Makefile icons/hicolor/32x32/Makefile icons/hicolor/48x48/Makefile icons/hicolor/64x64/Makefile icons/ubuntu-mono-dark/status/22/Makefile icons/ubuntu-mono-light/status/22/Makefile icons/ubuntu-mono-dark/apps/22/Makefile www/Makefile po/Makefile.in tests/Makefile"
9399
9400
9401 for ac_prog in help2man
9402 do
9403   # Extract the first word of "$ac_prog", so it can be a program name with args.
9404 set dummy $ac_prog; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if ${ac_cv_prog_HELP2MAN+:} false; then :
9408   $as_echo_n "(cached) " >&6
9409 else
9410   if test -n "$HELP2MAN"; then
9411   ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
9412 else
9413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414 for as_dir in $PATH
9415 do
9416   IFS=$as_save_IFS
9417   test -z "$as_dir" && as_dir=.
9418     for ac_exec_ext in '' $ac_executable_extensions; do
9419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9420     ac_cv_prog_HELP2MAN="$ac_prog"
9421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9422     break 2
9423   fi
9424 done
9425   done
9426 IFS=$as_save_IFS
9427
9428 fi
9429 fi
9430 HELP2MAN=$ac_cv_prog_HELP2MAN
9431 if test -n "$HELP2MAN"; then
9432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
9433 $as_echo "$HELP2MAN" >&6; }
9434 else
9435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436 $as_echo "no" >&6; }
9437 fi
9438
9439
9440   test -n "$HELP2MAN" && break
9441 done
9442
9443
9444 # Extract the first word of "asciidoc", so it can be a program name with args.
9445 set dummy asciidoc; ac_word=$2
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9447 $as_echo_n "checking for $ac_word... " >&6; }
9448 if ${ac_cv_prog_ASCIIDOC+:} false; then :
9449   $as_echo_n "(cached) " >&6
9450 else
9451   if test -n "$ASCIIDOC"; then
9452   ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
9453 else
9454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9455 for as_dir in $PATH
9456 do
9457   IFS=$as_save_IFS
9458   test -z "$as_dir" && as_dir=.
9459     for ac_exec_ext in '' $ac_executable_extensions; do
9460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9461     ac_cv_prog_ASCIIDOC="yes"
9462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9463     break 2
9464   fi
9465 done
9466   done
9467 IFS=$as_save_IFS
9468
9469 fi
9470 fi
9471 ASCIIDOC=$ac_cv_prog_ASCIIDOC
9472 if test -n "$ASCIIDOC"; then
9473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
9474 $as_echo "$ASCIIDOC" >&6; }
9475 else
9476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9477 $as_echo "no" >&6; }
9478 fi
9479
9480
9481  if test -n "$ASCIIDOC"; then
9482   ASCIIDOC_TRUE=
9483   ASCIIDOC_FALSE='#'
9484 else
9485   ASCIIDOC_TRUE='#'
9486   ASCIIDOC_FALSE=
9487 fi
9488
9489
9490 # Extract the first word of "cppcheck", so it can be a program name with args.
9491 set dummy cppcheck; ac_word=$2
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
9495   $as_echo_n "(cached) " >&6
9496 else
9497   if test -n "$HAVE_CPPCHECK"; then
9498   ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
9499 else
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9502 do
9503   IFS=$as_save_IFS
9504   test -z "$as_dir" && as_dir=.
9505     for ac_exec_ext in '' $ac_executable_extensions; do
9506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9507     ac_cv_prog_HAVE_CPPCHECK="yes"
9508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9509     break 2
9510   fi
9511 done
9512   done
9513 IFS=$as_save_IFS
9514
9515 fi
9516 fi
9517 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
9518 if test -n "$HAVE_CPPCHECK"; then
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
9520 $as_echo "$HAVE_CPPCHECK" >&6; }
9521 else
9522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9524 fi
9525
9526
9527  if test -n "$HAVE_CPPCHECK"; then
9528   CPPCHECK_TRUE=
9529   CPPCHECK_FALSE='#'
9530 else
9531   CPPCHECK_TRUE='#'
9532   CPPCHECK_FALSE=
9533 fi
9534
9535
9536 cat >confcache <<\_ACEOF
9537 # This file is a shell script that caches the results of configure
9538 # tests run on this system so they can be shared between configure
9539 # scripts and configure runs, see configure's option --config-cache.
9540 # It is not useful on other systems.  If it contains results you don't
9541 # want to keep, you may remove or edit it.
9542 #
9543 # config.status only pays attention to the cache file if you give it
9544 # the --recheck option to rerun configure.
9545 #
9546 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9548 # following values.
9549
9550 _ACEOF
9551
9552 # The following way of writing the cache mishandles newlines in values,
9553 # but we know of no workaround that is simple, portable, and efficient.
9554 # So, we kill variables containing newlines.
9555 # Ultrix sh set writes to stderr and can't be redirected directly,
9556 # and sets the high bit in the cache file unless we assign to the vars.
9557 (
9558   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9559     eval ac_val=\$$ac_var
9560     case $ac_val in #(
9561     *${as_nl}*)
9562       case $ac_var in #(
9563       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9564 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9565       esac
9566       case $ac_var in #(
9567       _ | IFS | as_nl) ;; #(
9568       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9569       *) { eval $ac_var=; unset $ac_var;} ;;
9570       esac ;;
9571     esac
9572   done
9573
9574   (set) 2>&1 |
9575     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9576     *${as_nl}ac_space=\ *)
9577       # `set' does not quote correctly, so add quotes: double-quote
9578       # substitution turns \\\\ into \\, and sed turns \\ into \.
9579       sed -n \
9580         "s/'/'\\\\''/g;
9581           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9582       ;; #(
9583     *)
9584       # `set' quotes correctly as required by POSIX, so do not add quotes.
9585       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9586       ;;
9587     esac |
9588     sort
9589 ) |
9590   sed '
9591      /^ac_cv_env_/b end
9592      t clear
9593      :clear
9594      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9595      t end
9596      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9597      :end' >>confcache
9598 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9599   if test -w "$cache_file"; then
9600     if test "x$cache_file" != "x/dev/null"; then
9601       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9602 $as_echo "$as_me: updating cache $cache_file" >&6;}
9603       if test ! -f "$cache_file" || test -h "$cache_file"; then
9604         cat confcache >"$cache_file"
9605       else
9606         case $cache_file in #(
9607         */* | ?:*)
9608           mv -f confcache "$cache_file"$$ &&
9609           mv -f "$cache_file"$$ "$cache_file" ;; #(
9610         *)
9611           mv -f confcache "$cache_file" ;;
9612         esac
9613       fi
9614     fi
9615   else
9616     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9617 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9618   fi
9619 fi
9620 rm -f confcache
9621
9622 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9623 # Let make expand exec_prefix.
9624 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9625
9626 DEFS=-DHAVE_CONFIG_H
9627
9628 ac_libobjs=
9629 ac_ltlibobjs=
9630 U=
9631 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9632   # 1. Remove the extension, and $U if already installed.
9633   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9634   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9635   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9636   #    will be set to the directory where LIBOBJS objects are built.
9637   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9638   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9639 done
9640 LIBOBJS=$ac_libobjs
9641
9642 LTLIBOBJS=$ac_ltlibobjs
9643
9644
9645  if test -n "$EXEEXT"; then
9646   am__EXEEXT_TRUE=
9647   am__EXEEXT_FALSE='#'
9648 else
9649   am__EXEEXT_TRUE='#'
9650   am__EXEEXT_FALSE=
9651 fi
9652
9653 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9654   as_fn_error $? "conditional \"AMDEP\" was never defined.
9655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9656 fi
9657 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9658   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9660 fi
9661 if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
9662   as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
9663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9664 fi
9665 if test -z "${X11_TRUE}" && test -z "${X11_FALSE}"; then
9666   as_fn_error $? "conditional \"X11\" was never defined.
9667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9668 fi
9669 if test -z "${XEXT_TRUE}" && test -z "${XEXT_FALSE}"; then
9670   as_fn_error $? "conditional \"XEXT\" was never defined.
9671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9672 fi
9673 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
9674   as_fn_error $? "conditional \"GTK\" was never defined.
9675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9676 fi
9677 if test -z "${GCONF_TRUE}" && test -z "${GCONF_FALSE}"; then
9678   as_fn_error $? "conditional \"GCONF\" was never defined.
9679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9680 fi
9681 if test -z "${ATASMART_TRUE}" && test -z "${ATASMART_FALSE}"; then
9682   as_fn_error $? "conditional \"ATASMART\" was never defined.
9683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9684 fi
9685 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
9686   as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
9687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9688 fi
9689 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
9690   as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
9691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9692 fi
9693 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
9694   as_fn_error $? "conditional \"CURL\" was never defined.
9695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9696 fi
9697 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
9698   as_fn_error $? "conditional \"JSON\" was never defined.
9699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9700 fi
9701 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
9702   as_fn_error $? "conditional \"NVIDIA\" was never defined.
9703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9704 fi
9705 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
9706   as_fn_error $? "conditional \"UNITY\" was never defined.
9707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9708 fi
9709 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
9710   as_fn_error $? "conditional \"LIBATIADL\" was never defined.
9711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9712 fi
9713 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
9714   as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
9715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9716 fi
9717 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
9718   as_fn_error $? "conditional \"GTOP\" was never defined.
9719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9720 fi
9721 if test -z "${ASCIIDOC_TRUE}" && test -z "${ASCIIDOC_FALSE}"; then
9722   as_fn_error $? "conditional \"ASCIIDOC\" was never defined.
9723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9724 fi
9725 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
9726   as_fn_error $? "conditional \"CPPCHECK\" was never defined.
9727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9728 fi
9729
9730 : "${CONFIG_STATUS=./config.status}"
9731 ac_write_fail=0
9732 ac_clean_files_save=$ac_clean_files
9733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9735 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9736 as_write_fail=0
9737 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9738 #! $SHELL
9739 # Generated by $as_me.
9740 # Run this file to recreate the current configuration.
9741 # Compiler output produced by configure, useful for debugging
9742 # configure, is in config.log if it exists.
9743
9744 debug=false
9745 ac_cs_recheck=false
9746 ac_cs_silent=false
9747
9748 SHELL=\${CONFIG_SHELL-$SHELL}
9749 export SHELL
9750 _ASEOF
9751 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9752 ## -------------------- ##
9753 ## M4sh Initialization. ##
9754 ## -------------------- ##
9755
9756 # Be more Bourne compatible
9757 DUALCASE=1; export DUALCASE # for MKS sh
9758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9759   emulate sh
9760   NULLCMD=:
9761   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9762   # is contrary to our usage.  Disable this feature.
9763   alias -g '${1+"$@"}'='"$@"'
9764   setopt NO_GLOB_SUBST
9765 else
9766   case `(set -o) 2>/dev/null` in #(
9767   *posix*) :
9768     set -o posix ;; #(
9769   *) :
9770      ;;
9771 esac
9772 fi
9773
9774
9775 as_nl='
9776 '
9777 export as_nl
9778 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9779 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9780 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9781 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9782 # Prefer a ksh shell builtin over an external printf program on Solaris,
9783 # but without wasting forks for bash or zsh.
9784 if test -z "$BASH_VERSION$ZSH_VERSION" \
9785     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9786   as_echo='print -r --'
9787   as_echo_n='print -rn --'
9788 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9789   as_echo='printf %s\n'
9790   as_echo_n='printf %s'
9791 else
9792   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9793     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9794     as_echo_n='/usr/ucb/echo -n'
9795   else
9796     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9797     as_echo_n_body='eval
9798       arg=$1;
9799       case $arg in #(
9800       *"$as_nl"*)
9801         expr "X$arg" : "X\\(.*\\)$as_nl";
9802         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9803       esac;
9804       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9805     '
9806     export as_echo_n_body
9807     as_echo_n='sh -c $as_echo_n_body as_echo'
9808   fi
9809   export as_echo_body
9810   as_echo='sh -c $as_echo_body as_echo'
9811 fi
9812
9813 # The user is always right.
9814 if test "${PATH_SEPARATOR+set}" != set; then
9815   PATH_SEPARATOR=:
9816   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9817     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9818       PATH_SEPARATOR=';'
9819   }
9820 fi
9821
9822
9823 # IFS
9824 # We need space, tab and new line, in precisely that order.  Quoting is
9825 # there to prevent editors from complaining about space-tab.
9826 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9827 # splitting by setting IFS to empty value.)
9828 IFS=" ""        $as_nl"
9829
9830 # Find who we are.  Look in the path if we contain no directory separator.
9831 as_myself=
9832 case $0 in #((
9833   *[\\/]* ) as_myself=$0 ;;
9834   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835 for as_dir in $PATH
9836 do
9837   IFS=$as_save_IFS
9838   test -z "$as_dir" && as_dir=.
9839     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9840   done
9841 IFS=$as_save_IFS
9842
9843      ;;
9844 esac
9845 # We did not find ourselves, most probably we were run as `sh COMMAND'
9846 # in which case we are not to be found in the path.
9847 if test "x$as_myself" = x; then
9848   as_myself=$0
9849 fi
9850 if test ! -f "$as_myself"; then
9851   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9852   exit 1
9853 fi
9854
9855 # Unset variables that we do not need and which cause bugs (e.g. in
9856 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9857 # suppresses any "Segmentation fault" message there.  '((' could
9858 # trigger a bug in pdksh 5.2.14.
9859 for as_var in BASH_ENV ENV MAIL MAILPATH
9860 do eval test x\${$as_var+set} = xset \
9861   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9862 done
9863 PS1='$ '
9864 PS2='> '
9865 PS4='+ '
9866
9867 # NLS nuisances.
9868 LC_ALL=C
9869 export LC_ALL
9870 LANGUAGE=C
9871 export LANGUAGE
9872
9873 # CDPATH.
9874 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9875
9876
9877 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9878 # ----------------------------------------
9879 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9880 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9881 # script with STATUS, using 1 if that was 0.
9882 as_fn_error ()
9883 {
9884   as_status=$1; test $as_status -eq 0 && as_status=1
9885   if test "$4"; then
9886     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9887     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9888   fi
9889   $as_echo "$as_me: error: $2" >&2
9890   as_fn_exit $as_status
9891 } # as_fn_error
9892
9893
9894 # as_fn_set_status STATUS
9895 # -----------------------
9896 # Set $? to STATUS, without forking.
9897 as_fn_set_status ()
9898 {
9899   return $1
9900 } # as_fn_set_status
9901
9902 # as_fn_exit STATUS
9903 # -----------------
9904 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9905 as_fn_exit ()
9906 {
9907   set +e
9908   as_fn_set_status $1
9909   exit $1
9910 } # as_fn_exit
9911
9912 # as_fn_unset VAR
9913 # ---------------
9914 # Portably unset VAR.
9915 as_fn_unset ()
9916 {
9917   { eval $1=; unset $1;}
9918 }
9919 as_unset=as_fn_unset
9920 # as_fn_append VAR VALUE
9921 # ----------------------
9922 # Append the text in VALUE to the end of the definition contained in VAR. Take
9923 # advantage of any shell optimizations that allow amortized linear growth over
9924 # repeated appends, instead of the typical quadratic growth present in naive
9925 # implementations.
9926 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9927   eval 'as_fn_append ()
9928   {
9929     eval $1+=\$2
9930   }'
9931 else
9932   as_fn_append ()
9933   {
9934     eval $1=\$$1\$2
9935   }
9936 fi # as_fn_append
9937
9938 # as_fn_arith ARG...
9939 # ------------------
9940 # Perform arithmetic evaluation on the ARGs, and store the result in the
9941 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9942 # must be portable across $(()) and expr.
9943 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9944   eval 'as_fn_arith ()
9945   {
9946     as_val=$(( $* ))
9947   }'
9948 else
9949   as_fn_arith ()
9950   {
9951     as_val=`expr "$@" || test $? -eq 1`
9952   }
9953 fi # as_fn_arith
9954
9955
9956 if expr a : '\(a\)' >/dev/null 2>&1 &&
9957    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9958   as_expr=expr
9959 else
9960   as_expr=false
9961 fi
9962
9963 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9964   as_basename=basename
9965 else
9966   as_basename=false
9967 fi
9968
9969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9970   as_dirname=dirname
9971 else
9972   as_dirname=false
9973 fi
9974
9975 as_me=`$as_basename -- "$0" ||
9976 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9977          X"$0" : 'X\(//\)$' \| \
9978          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9979 $as_echo X/"$0" |
9980     sed '/^.*\/\([^/][^/]*\)\/*$/{
9981             s//\1/
9982             q
9983           }
9984           /^X\/\(\/\/\)$/{
9985             s//\1/
9986             q
9987           }
9988           /^X\/\(\/\).*/{
9989             s//\1/
9990             q
9991           }
9992           s/.*/./; q'`
9993
9994 # Avoid depending upon Character Ranges.
9995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9998 as_cr_digits='0123456789'
9999 as_cr_alnum=$as_cr_Letters$as_cr_digits
10000
10001 ECHO_C= ECHO_N= ECHO_T=
10002 case `echo -n x` in #(((((
10003 -n*)
10004   case `echo 'xy\c'` in
10005   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10006   xy)  ECHO_C='\c';;
10007   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10008        ECHO_T=' ';;
10009   esac;;
10010 *)
10011   ECHO_N='-n';;
10012 esac
10013
10014 rm -f conf$$ conf$$.exe conf$$.file
10015 if test -d conf$$.dir; then
10016   rm -f conf$$.dir/conf$$.file
10017 else
10018   rm -f conf$$.dir
10019   mkdir conf$$.dir 2>/dev/null
10020 fi
10021 if (echo >conf$$.file) 2>/dev/null; then
10022   if ln -s conf$$.file conf$$ 2>/dev/null; then
10023     as_ln_s='ln -s'
10024     # ... but there are two gotchas:
10025     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10026     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10027     # In both cases, we have to default to `cp -pR'.
10028     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10029       as_ln_s='cp -pR'
10030   elif ln conf$$.file conf$$ 2>/dev/null; then
10031     as_ln_s=ln
10032   else
10033     as_ln_s='cp -pR'
10034   fi
10035 else
10036   as_ln_s='cp -pR'
10037 fi
10038 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10039 rmdir conf$$.dir 2>/dev/null
10040
10041
10042 # as_fn_mkdir_p
10043 # -------------
10044 # Create "$as_dir" as a directory, including parents if necessary.
10045 as_fn_mkdir_p ()
10046 {
10047
10048   case $as_dir in #(
10049   -*) as_dir=./$as_dir;;
10050   esac
10051   test -d "$as_dir" || eval $as_mkdir_p || {
10052     as_dirs=
10053     while :; do
10054       case $as_dir in #(
10055       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10056       *) as_qdir=$as_dir;;
10057       esac
10058       as_dirs="'$as_qdir' $as_dirs"
10059       as_dir=`$as_dirname -- "$as_dir" ||
10060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10061          X"$as_dir" : 'X\(//\)[^/]' \| \
10062          X"$as_dir" : 'X\(//\)$' \| \
10063          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10064 $as_echo X"$as_dir" |
10065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10066             s//\1/
10067             q
10068           }
10069           /^X\(\/\/\)[^/].*/{
10070             s//\1/
10071             q
10072           }
10073           /^X\(\/\/\)$/{
10074             s//\1/
10075             q
10076           }
10077           /^X\(\/\).*/{
10078             s//\1/
10079             q
10080           }
10081           s/.*/./; q'`
10082       test -d "$as_dir" && break
10083     done
10084     test -z "$as_dirs" || eval "mkdir $as_dirs"
10085   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10086
10087
10088 } # as_fn_mkdir_p
10089 if mkdir -p . 2>/dev/null; then
10090   as_mkdir_p='mkdir -p "$as_dir"'
10091 else
10092   test -d ./-p && rmdir ./-p
10093   as_mkdir_p=false
10094 fi
10095
10096
10097 # as_fn_executable_p FILE
10098 # -----------------------
10099 # Test if FILE is an executable regular file.
10100 as_fn_executable_p ()
10101 {
10102   test -f "$1" && test -x "$1"
10103 } # as_fn_executable_p
10104 as_test_x='test -x'
10105 as_executable_p=as_fn_executable_p
10106
10107 # Sed expression to map a string onto a valid CPP name.
10108 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10109
10110 # Sed expression to map a string onto a valid variable name.
10111 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10112
10113
10114 exec 6>&1
10115 ## ----------------------------------- ##
10116 ## Main body of $CONFIG_STATUS script. ##
10117 ## ----------------------------------- ##
10118 _ASEOF
10119 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10120
10121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10122 # Save the log message, to keep $0 and so on meaningful, and to
10123 # report actual input values of CONFIG_FILES etc. instead of their
10124 # values after options handling.
10125 ac_log="
10126 This file was extended by psensor $as_me 1.1.0, which was
10127 generated by GNU Autoconf 2.69.  Invocation command line was
10128
10129   CONFIG_FILES    = $CONFIG_FILES
10130   CONFIG_HEADERS  = $CONFIG_HEADERS
10131   CONFIG_LINKS    = $CONFIG_LINKS
10132   CONFIG_COMMANDS = $CONFIG_COMMANDS
10133   $ $0 $@
10134
10135 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10136 "
10137
10138 _ACEOF
10139
10140 case $ac_config_files in *"
10141 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10142 esac
10143
10144 case $ac_config_headers in *"
10145 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10146 esac
10147
10148
10149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10150 # Files that config.status was made for.
10151 config_files="$ac_config_files"
10152 config_headers="$ac_config_headers"
10153 config_commands="$ac_config_commands"
10154
10155 _ACEOF
10156
10157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10158 ac_cs_usage="\
10159 \`$as_me' instantiates files and other configuration actions
10160 from templates according to the current configuration.  Unless the files
10161 and actions are specified as TAGs, all are instantiated by default.
10162
10163 Usage: $0 [OPTION]... [TAG]...
10164
10165   -h, --help       print this help, then exit
10166   -V, --version    print version number and configuration settings, then exit
10167       --config     print configuration, then exit
10168   -q, --quiet, --silent
10169                    do not print progress messages
10170   -d, --debug      don't remove temporary files
10171       --recheck    update $as_me by reconfiguring in the same conditions
10172       --file=FILE[:TEMPLATE]
10173                    instantiate the configuration file FILE
10174       --header=FILE[:TEMPLATE]
10175                    instantiate the configuration header FILE
10176
10177 Configuration files:
10178 $config_files
10179
10180 Configuration headers:
10181 $config_headers
10182
10183 Configuration commands:
10184 $config_commands
10185
10186 Report bugs to <jeanfi@gmail.com>.
10187 psensor home page: <http://wpitchoune.net/psensor>."
10188
10189 _ACEOF
10190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10191 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10192 ac_cs_version="\\
10193 psensor config.status 1.1.0
10194 configured by $0, generated by GNU Autoconf 2.69,
10195   with options \\"\$ac_cs_config\\"
10196
10197 Copyright (C) 2012 Free Software Foundation, Inc.
10198 This config.status script is free software; the Free Software Foundation
10199 gives unlimited permission to copy, distribute and modify it."
10200
10201 ac_pwd='$ac_pwd'
10202 srcdir='$srcdir'
10203 INSTALL='$INSTALL'
10204 MKDIR_P='$MKDIR_P'
10205 AWK='$AWK'
10206 test -n "\$AWK" || AWK=awk
10207 _ACEOF
10208
10209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10210 # The default lists apply if the user does not specify any file.
10211 ac_need_defaults=:
10212 while test $# != 0
10213 do
10214   case $1 in
10215   --*=?*)
10216     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10217     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10218     ac_shift=:
10219     ;;
10220   --*=)
10221     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10222     ac_optarg=
10223     ac_shift=:
10224     ;;
10225   *)
10226     ac_option=$1
10227     ac_optarg=$2
10228     ac_shift=shift
10229     ;;
10230   esac
10231
10232   case $ac_option in
10233   # Handling of the options.
10234   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10235     ac_cs_recheck=: ;;
10236   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10237     $as_echo "$ac_cs_version"; exit ;;
10238   --config | --confi | --conf | --con | --co | --c )
10239     $as_echo "$ac_cs_config"; exit ;;
10240   --debug | --debu | --deb | --de | --d | -d )
10241     debug=: ;;
10242   --file | --fil | --fi | --f )
10243     $ac_shift
10244     case $ac_optarg in
10245     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10246     '') as_fn_error $? "missing file argument" ;;
10247     esac
10248     as_fn_append CONFIG_FILES " '$ac_optarg'"
10249     ac_need_defaults=false;;
10250   --header | --heade | --head | --hea )
10251     $ac_shift
10252     case $ac_optarg in
10253     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10254     esac
10255     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10256     ac_need_defaults=false;;
10257   --he | --h)
10258     # Conflict between --help and --header
10259     as_fn_error $? "ambiguous option: \`$1'
10260 Try \`$0 --help' for more information.";;
10261   --help | --hel | -h )
10262     $as_echo "$ac_cs_usage"; exit ;;
10263   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10264   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10265     ac_cs_silent=: ;;
10266
10267   # This is an error.
10268   -*) as_fn_error $? "unrecognized option: \`$1'
10269 Try \`$0 --help' for more information." ;;
10270
10271   *) as_fn_append ac_config_targets " $1"
10272      ac_need_defaults=false ;;
10273
10274   esac
10275   shift
10276 done
10277
10278 ac_configure_extra_args=
10279
10280 if $ac_cs_silent; then
10281   exec 6>/dev/null
10282   ac_configure_extra_args="$ac_configure_extra_args --silent"
10283 fi
10284
10285 _ACEOF
10286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10287 if \$ac_cs_recheck; then
10288   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10289   shift
10290   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10291   CONFIG_SHELL='$SHELL'
10292   export CONFIG_SHELL
10293   exec "\$@"
10294 fi
10295
10296 _ACEOF
10297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10298 exec 5>>config.log
10299 {
10300   echo
10301   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10302 ## Running $as_me. ##
10303 _ASBOX
10304   $as_echo "$ac_log"
10305 } >&5
10306
10307 _ACEOF
10308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10309 #
10310 # INIT-COMMANDS
10311 #
10312 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10313 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10314     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10315     # from automake < 1.5.
10316     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10317     # Capture the value of LINGUAS because we need it to compute CATALOGS.
10318     LINGUAS="${LINGUAS-%UNSET%}"
10319
10320
10321 _ACEOF
10322
10323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10324
10325 # Handling of arguments.
10326 for ac_config_target in $ac_config_targets
10327 do
10328   case $ac_config_target in
10329     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10330     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10331     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10332     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10333     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10334     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10335     "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
10336     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10337     "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
10338     "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
10339     "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
10340     "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
10341     "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
10342     "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
10343     "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
10344     "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
10345     "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
10346     "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
10347     "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
10348     "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
10349     "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
10350     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10351     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10352
10353   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10354   esac
10355 done
10356
10357
10358 # If the user did not use the arguments to specify the items to instantiate,
10359 # then the envvar interface is used.  Set only those that are not.
10360 # We use the long form for the default assignment because of an extremely
10361 # bizarre bug on SunOS 4.1.3.
10362 if $ac_need_defaults; then
10363   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10364   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10365   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10366 fi
10367
10368 # Have a temporary directory for convenience.  Make it in the build tree
10369 # simply because there is no reason against having it here, and in addition,
10370 # creating and moving files from /tmp can sometimes cause problems.
10371 # Hook for its removal unless debugging.
10372 # Note that there is a small window in which the directory will not be cleaned:
10373 # after its creation but before its name has been assigned to `$tmp'.
10374 $debug ||
10375 {
10376   tmp= ac_tmp=
10377   trap 'exit_status=$?
10378   : "${ac_tmp:=$tmp}"
10379   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10380 ' 0
10381   trap 'as_fn_exit 1' 1 2 13 15
10382 }
10383 # Create a (secure) tmp directory for tmp files.
10384
10385 {
10386   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10387   test -d "$tmp"
10388 }  ||
10389 {
10390   tmp=./conf$$-$RANDOM
10391   (umask 077 && mkdir "$tmp")
10392 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10393 ac_tmp=$tmp
10394
10395 # Set up the scripts for CONFIG_FILES section.
10396 # No need to generate them if there are no CONFIG_FILES.
10397 # This happens for instance with `./config.status config.h'.
10398 if test -n "$CONFIG_FILES"; then
10399
10400
10401 ac_cr=`echo X | tr X '\015'`
10402 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10403 # But we know of no other shell where ac_cr would be empty at this
10404 # point, so we can use a bashism as a fallback.
10405 if test "x$ac_cr" = x; then
10406   eval ac_cr=\$\'\\r\'
10407 fi
10408 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10409 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10410   ac_cs_awk_cr='\\r'
10411 else
10412   ac_cs_awk_cr=$ac_cr
10413 fi
10414
10415 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10416 _ACEOF
10417
10418
10419 {
10420   echo "cat >conf$$subs.awk <<_ACEOF" &&
10421   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10422   echo "_ACEOF"
10423 } >conf$$subs.sh ||
10424   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10425 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10426 ac_delim='%!_!# '
10427 for ac_last_try in false false false false false :; do
10428   . ./conf$$subs.sh ||
10429     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10430
10431   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10432   if test $ac_delim_n = $ac_delim_num; then
10433     break
10434   elif $ac_last_try; then
10435     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10436   else
10437     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10438   fi
10439 done
10440 rm -f conf$$subs.sh
10441
10442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10443 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10444 _ACEOF
10445 sed -n '
10446 h
10447 s/^/S["/; s/!.*/"]=/
10448 p
10449 g
10450 s/^[^!]*!//
10451 :repl
10452 t repl
10453 s/'"$ac_delim"'$//
10454 t delim
10455 :nl
10456 h
10457 s/\(.\{148\}\)..*/\1/
10458 t more1
10459 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10460 p
10461 n
10462 b repl
10463 :more1
10464 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10465 p
10466 g
10467 s/.\{148\}//
10468 t nl
10469 :delim
10470 h
10471 s/\(.\{148\}\)..*/\1/
10472 t more2
10473 s/["\\]/\\&/g; s/^/"/; s/$/"/
10474 p
10475 b
10476 :more2
10477 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10478 p
10479 g
10480 s/.\{148\}//
10481 t delim
10482 ' <conf$$subs.awk | sed '
10483 /^[^""]/{
10484   N
10485   s/\n//
10486 }
10487 ' >>$CONFIG_STATUS || ac_write_fail=1
10488 rm -f conf$$subs.awk
10489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10490 _ACAWK
10491 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10492   for (key in S) S_is_set[key] = 1
10493   FS = "\a"
10494
10495 }
10496 {
10497   line = $ 0
10498   nfields = split(line, field, "@")
10499   substed = 0
10500   len = length(field[1])
10501   for (i = 2; i < nfields; i++) {
10502     key = field[i]
10503     keylen = length(key)
10504     if (S_is_set[key]) {
10505       value = S[key]
10506       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10507       len += length(value) + length(field[++i])
10508       substed = 1
10509     } else
10510       len += 1 + keylen
10511   }
10512
10513   print line
10514 }
10515
10516 _ACAWK
10517 _ACEOF
10518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10519 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10520   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10521 else
10522   cat
10523 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10524   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10525 _ACEOF
10526
10527 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10528 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10529 # trailing colons and then remove the whole line if VPATH becomes empty
10530 # (actually we leave an empty line to preserve line numbers).
10531 if test "x$srcdir" = x.; then
10532   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
10533 h
10534 s///
10535 s/^/:/
10536 s/[      ]*$/:/
10537 s/:\$(srcdir):/:/g
10538 s/:\${srcdir}:/:/g
10539 s/:@srcdir@:/:/g
10540 s/^:*//
10541 s/:*$//
10542 x
10543 s/\(=[   ]*\).*/\1/
10544 G
10545 s/\n//
10546 s/^[^=]*=[       ]*$//
10547 }'
10548 fi
10549
10550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10551 fi # test -n "$CONFIG_FILES"
10552
10553 # Set up the scripts for CONFIG_HEADERS section.
10554 # No need to generate them if there are no CONFIG_HEADERS.
10555 # This happens for instance with `./config.status Makefile'.
10556 if test -n "$CONFIG_HEADERS"; then
10557 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10558 BEGIN {
10559 _ACEOF
10560
10561 # Transform confdefs.h into an awk script `defines.awk', embedded as
10562 # here-document in config.status, that substitutes the proper values into
10563 # config.h.in to produce config.h.
10564
10565 # Create a delimiter string that does not exist in confdefs.h, to ease
10566 # handling of long lines.
10567 ac_delim='%!_!# '
10568 for ac_last_try in false false :; do
10569   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10570   if test -z "$ac_tt"; then
10571     break
10572   elif $ac_last_try; then
10573     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10574   else
10575     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10576   fi
10577 done
10578
10579 # For the awk script, D is an array of macro values keyed by name,
10580 # likewise P contains macro parameters if any.  Preserve backslash
10581 # newline sequences.
10582
10583 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10584 sed -n '
10585 s/.\{148\}/&'"$ac_delim"'/g
10586 t rset
10587 :rset
10588 s/^[     ]*#[    ]*define[       ][      ]*/ /
10589 t def
10590 d
10591 :def
10592 s/\\$//
10593 t bsnl
10594 s/["\\]/\\&/g
10595 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10596 D["\1"]=" \3"/p
10597 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10598 d
10599 :bsnl
10600 s/["\\]/\\&/g
10601 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10602 D["\1"]=" \3\\\\\\n"\\/p
10603 t cont
10604 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10605 t cont
10606 d
10607 :cont
10608 n
10609 s/.\{148\}/&'"$ac_delim"'/g
10610 t clear
10611 :clear
10612 s/\\$//
10613 t bsnlc
10614 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10615 d
10616 :bsnlc
10617 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10618 b cont
10619 ' <confdefs.h | sed '
10620 s/'"$ac_delim"'/"\\\
10621 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10622
10623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10624   for (key in D) D_is_set[key] = 1
10625   FS = "\a"
10626 }
10627 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10628   line = \$ 0
10629   split(line, arg, " ")
10630   if (arg[1] == "#") {
10631     defundef = arg[2]
10632     mac1 = arg[3]
10633   } else {
10634     defundef = substr(arg[1], 2)
10635     mac1 = arg[2]
10636   }
10637   split(mac1, mac2, "(") #)
10638   macro = mac2[1]
10639   prefix = substr(line, 1, index(line, defundef) - 1)
10640   if (D_is_set[macro]) {
10641     # Preserve the white space surrounding the "#".
10642     print prefix "define", macro P[macro] D[macro]
10643     next
10644   } else {
10645     # Replace #undef with comments.  This is necessary, for example,
10646     # in the case of _POSIX_SOURCE, which is predefined and required
10647     # on some systems where configure will not decide to define it.
10648     if (defundef == "undef") {
10649       print "/*", prefix defundef, macro, "*/"
10650       next
10651     }
10652   }
10653 }
10654 { print }
10655 _ACAWK
10656 _ACEOF
10657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10658   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10659 fi # test -n "$CONFIG_HEADERS"
10660
10661
10662 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10663 shift
10664 for ac_tag
10665 do
10666   case $ac_tag in
10667   :[FHLC]) ac_mode=$ac_tag; continue;;
10668   esac
10669   case $ac_mode$ac_tag in
10670   :[FHL]*:*);;
10671   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10672   :[FH]-) ac_tag=-:-;;
10673   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10674   esac
10675   ac_save_IFS=$IFS
10676   IFS=:
10677   set x $ac_tag
10678   IFS=$ac_save_IFS
10679   shift
10680   ac_file=$1
10681   shift
10682
10683   case $ac_mode in
10684   :L) ac_source=$1;;
10685   :[FH])
10686     ac_file_inputs=
10687     for ac_f
10688     do
10689       case $ac_f in
10690       -) ac_f="$ac_tmp/stdin";;
10691       *) # Look for the file first in the build tree, then in the source tree
10692          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10693          # because $ac_f cannot contain `:'.
10694          test -f "$ac_f" ||
10695            case $ac_f in
10696            [\\/$]*) false;;
10697            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10698            esac ||
10699            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10700       esac
10701       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10702       as_fn_append ac_file_inputs " '$ac_f'"
10703     done
10704
10705     # Let's still pretend it is `configure' which instantiates (i.e., don't
10706     # use $as_me), people would be surprised to read:
10707     #    /* config.h.  Generated by config.status.  */
10708     configure_input='Generated from '`
10709           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10710         `' by configure.'
10711     if test x"$ac_file" != x-; then
10712       configure_input="$ac_file.  $configure_input"
10713       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10714 $as_echo "$as_me: creating $ac_file" >&6;}
10715     fi
10716     # Neutralize special characters interpreted by sed in replacement strings.
10717     case $configure_input in #(
10718     *\&* | *\|* | *\\* )
10719        ac_sed_conf_input=`$as_echo "$configure_input" |
10720        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10721     *) ac_sed_conf_input=$configure_input;;
10722     esac
10723
10724     case $ac_tag in
10725     *:-:* | *:-) cat >"$ac_tmp/stdin" \
10726       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10727     esac
10728     ;;
10729   esac
10730
10731   ac_dir=`$as_dirname -- "$ac_file" ||
10732 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10733          X"$ac_file" : 'X\(//\)[^/]' \| \
10734          X"$ac_file" : 'X\(//\)$' \| \
10735          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10736 $as_echo X"$ac_file" |
10737     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10738             s//\1/
10739             q
10740           }
10741           /^X\(\/\/\)[^/].*/{
10742             s//\1/
10743             q
10744           }
10745           /^X\(\/\/\)$/{
10746             s//\1/
10747             q
10748           }
10749           /^X\(\/\).*/{
10750             s//\1/
10751             q
10752           }
10753           s/.*/./; q'`
10754   as_dir="$ac_dir"; as_fn_mkdir_p
10755   ac_builddir=.
10756
10757 case "$ac_dir" in
10758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10759 *)
10760   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10761   # A ".." for each directory in $ac_dir_suffix.
10762   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10763   case $ac_top_builddir_sub in
10764   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10765   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10766   esac ;;
10767 esac
10768 ac_abs_top_builddir=$ac_pwd
10769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10770 # for backward compatibility:
10771 ac_top_builddir=$ac_top_build_prefix
10772
10773 case $srcdir in
10774   .)  # We are building in place.
10775     ac_srcdir=.
10776     ac_top_srcdir=$ac_top_builddir_sub
10777     ac_abs_top_srcdir=$ac_pwd ;;
10778   [\\/]* | ?:[\\/]* )  # Absolute name.
10779     ac_srcdir=$srcdir$ac_dir_suffix;
10780     ac_top_srcdir=$srcdir
10781     ac_abs_top_srcdir=$srcdir ;;
10782   *) # Relative name.
10783     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10784     ac_top_srcdir=$ac_top_build_prefix$srcdir
10785     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10786 esac
10787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10788
10789
10790   case $ac_mode in
10791   :F)
10792   #
10793   # CONFIG_FILE
10794   #
10795
10796   case $INSTALL in
10797   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10798   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10799   esac
10800   ac_MKDIR_P=$MKDIR_P
10801   case $MKDIR_P in
10802   [\\/$]* | ?:[\\/]* ) ;;
10803   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10804   esac
10805 _ACEOF
10806
10807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10808 # If the template does not know about datarootdir, expand it.
10809 # FIXME: This hack should be removed a few years after 2.60.
10810 ac_datarootdir_hack=; ac_datarootdir_seen=
10811 ac_sed_dataroot='
10812 /datarootdir/ {
10813   p
10814   q
10815 }
10816 /@datadir@/p
10817 /@docdir@/p
10818 /@infodir@/p
10819 /@localedir@/p
10820 /@mandir@/p'
10821 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10822 *datarootdir*) ac_datarootdir_seen=yes;;
10823 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10824   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10825 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10826 _ACEOF
10827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10828   ac_datarootdir_hack='
10829   s&@datadir@&$datadir&g
10830   s&@docdir@&$docdir&g
10831   s&@infodir@&$infodir&g
10832   s&@localedir@&$localedir&g
10833   s&@mandir@&$mandir&g
10834   s&\\\${datarootdir}&$datarootdir&g' ;;
10835 esac
10836 _ACEOF
10837
10838 # Neutralize VPATH when `$srcdir' = `.'.
10839 # Shell code in configure.ac might set extrasub.
10840 # FIXME: do we really want to maintain this feature?
10841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10842 ac_sed_extra="$ac_vpsub
10843 $extrasub
10844 _ACEOF
10845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10846 :t
10847 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10848 s|@configure_input@|$ac_sed_conf_input|;t t
10849 s&@top_builddir@&$ac_top_builddir_sub&;t t
10850 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10851 s&@srcdir@&$ac_srcdir&;t t
10852 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10853 s&@top_srcdir@&$ac_top_srcdir&;t t
10854 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10855 s&@builddir@&$ac_builddir&;t t
10856 s&@abs_builddir@&$ac_abs_builddir&;t t
10857 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10858 s&@INSTALL@&$ac_INSTALL&;t t
10859 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10860 $ac_datarootdir_hack
10861 "
10862 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10863   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10864
10865 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10866   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10867   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10868       "$ac_tmp/out"`; test -z "$ac_out"; } &&
10869   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10870 which seems to be undefined.  Please make sure it is defined" >&5
10871 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10872 which seems to be undefined.  Please make sure it is defined" >&2;}
10873
10874   rm -f "$ac_tmp/stdin"
10875   case $ac_file in
10876   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10877   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10878   esac \
10879   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10880  ;;
10881   :H)
10882   #
10883   # CONFIG_HEADER
10884   #
10885   if test x"$ac_file" != x-; then
10886     {
10887       $as_echo "/* $configure_input  */" \
10888       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10889     } >"$ac_tmp/config.h" \
10890       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10891     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10892       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10893 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10894     else
10895       rm -f "$ac_file"
10896       mv "$ac_tmp/config.h" "$ac_file" \
10897         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10898     fi
10899   else
10900     $as_echo "/* $configure_input  */" \
10901       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10902       || as_fn_error $? "could not create -" "$LINENO" 5
10903   fi
10904 # Compute "$ac_file"'s index in $config_headers.
10905 _am_arg="$ac_file"
10906 _am_stamp_count=1
10907 for _am_header in $config_headers :; do
10908   case $_am_header in
10909     $_am_arg | $_am_arg:* )
10910       break ;;
10911     * )
10912       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10913   esac
10914 done
10915 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10916 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10917          X"$_am_arg" : 'X\(//\)[^/]' \| \
10918          X"$_am_arg" : 'X\(//\)$' \| \
10919          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10920 $as_echo X"$_am_arg" |
10921     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10922             s//\1/
10923             q
10924           }
10925           /^X\(\/\/\)[^/].*/{
10926             s//\1/
10927             q
10928           }
10929           /^X\(\/\/\)$/{
10930             s//\1/
10931             q
10932           }
10933           /^X\(\/\).*/{
10934             s//\1/
10935             q
10936           }
10937           s/.*/./; q'`/stamp-h$_am_stamp_count
10938  ;;
10939
10940   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10941 $as_echo "$as_me: executing $ac_file commands" >&6;}
10942  ;;
10943   esac
10944
10945
10946   case $ac_file$ac_mode in
10947     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10948   # Autoconf 2.62 quotes --file arguments for eval, but not when files
10949   # are listed without --file.  Let's play safe and only enable the eval
10950   # if we detect the quoting.
10951   case $CONFIG_FILES in
10952   *\'*) eval set x "$CONFIG_FILES" ;;
10953   *)   set x $CONFIG_FILES ;;
10954   esac
10955   shift
10956   for mf
10957   do
10958     # Strip MF so we end up with the name of the file.
10959     mf=`echo "$mf" | sed -e 's/:.*$//'`
10960     # Check whether this is an Automake generated Makefile or not.
10961     # We used to match only the files named `Makefile.in', but
10962     # some people rename them; so instead we look at the file content.
10963     # Grep'ing the first line is not enough: some people post-process
10964     # each Makefile.in and add a new line on top of each file to say so.
10965     # Grep'ing the whole file is not good either: AIX grep has a line
10966     # limit of 2048, but all sed's we know have understand at least 4000.
10967     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10968       dirpart=`$as_dirname -- "$mf" ||
10969 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10970          X"$mf" : 'X\(//\)[^/]' \| \
10971          X"$mf" : 'X\(//\)$' \| \
10972          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10973 $as_echo X"$mf" |
10974     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10975             s//\1/
10976             q
10977           }
10978           /^X\(\/\/\)[^/].*/{
10979             s//\1/
10980             q
10981           }
10982           /^X\(\/\/\)$/{
10983             s//\1/
10984             q
10985           }
10986           /^X\(\/\).*/{
10987             s//\1/
10988             q
10989           }
10990           s/.*/./; q'`
10991     else
10992       continue
10993     fi
10994     # Extract the definition of DEPDIR, am__include, and am__quote
10995     # from the Makefile without running `make'.
10996     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10997     test -z "$DEPDIR" && continue
10998     am__include=`sed -n 's/^am__include = //p' < "$mf"`
10999     test -z "am__include" && continue
11000     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11001     # When using ansi2knr, U may be empty or an underscore; expand it
11002     U=`sed -n 's/^U = //p' < "$mf"`
11003     # Find all dependency output files, they are included files with
11004     # $(DEPDIR) in their names.  We invoke sed twice because it is the
11005     # simplest approach to changing $(DEPDIR) to its actual value in the
11006     # expansion.
11007     for file in `sed -n "
11008       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11009          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11010       # Make sure the directory exists.
11011       test -f "$dirpart/$file" && continue
11012       fdir=`$as_dirname -- "$file" ||
11013 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11014          X"$file" : 'X\(//\)[^/]' \| \
11015          X"$file" : 'X\(//\)$' \| \
11016          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11017 $as_echo X"$file" |
11018     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11019             s//\1/
11020             q
11021           }
11022           /^X\(\/\/\)[^/].*/{
11023             s//\1/
11024             q
11025           }
11026           /^X\(\/\/\)$/{
11027             s//\1/
11028             q
11029           }
11030           /^X\(\/\).*/{
11031             s//\1/
11032             q
11033           }
11034           s/.*/./; q'`
11035       as_dir=$dirpart/$fdir; as_fn_mkdir_p
11036       # echo "creating $dirpart/$file"
11037       echo '# dummy' > "$dirpart/$file"
11038     done
11039   done
11040 }
11041  ;;
11042     "po-directories":C)
11043     for ac_file in $CONFIG_FILES; do
11044       # Support "outfile[:infile[:infile...]]"
11045       case "$ac_file" in
11046         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11047       esac
11048       # PO directories have a Makefile.in generated from Makefile.in.in.
11049       case "$ac_file" in */Makefile.in)
11050         # Adjust a relative srcdir.
11051         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11052         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
11053         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11054         # In autoconf-2.13 it is called $ac_given_srcdir.
11055         # In autoconf-2.50 it is called $srcdir.
11056         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11057         case "$ac_given_srcdir" in
11058           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11059           /*) top_srcdir="$ac_given_srcdir" ;;
11060           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
11061         esac
11062         # Treat a directory as a PO directory if and only if it has a
11063         # POTFILES.in file. This allows packages to have multiple PO
11064         # directories under different names or in different locations.
11065         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11066           rm -f "$ac_dir/POTFILES"
11067           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11068           gt_tab=`printf '\t'`
11069           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11070           POMAKEFILEDEPS="POTFILES.in"
11071           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
11072           # on $ac_dir but don't depend on user-specified configuration
11073           # parameters.
11074           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11075             # The LINGUAS file contains the set of available languages.
11076             if test -n "$OBSOLETE_ALL_LINGUAS"; then
11077               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11078             fi
11079             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11080             # Hide the ALL_LINGUAS assignment from automake < 1.5.
11081             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11082             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11083           else
11084             # The set of available languages was given in configure.in.
11085             # Hide the ALL_LINGUAS assignment from automake < 1.5.
11086             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11087           fi
11088           # Compute POFILES
11089           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11090           # Compute UPDATEPOFILES
11091           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11092           # Compute DUMMYPOFILES
11093           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11094           # Compute GMOFILES
11095           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11096           case "$ac_given_srcdir" in
11097             .) srcdirpre= ;;
11098             *) srcdirpre='$(srcdir)/' ;;
11099           esac
11100           POFILES=
11101           UPDATEPOFILES=
11102           DUMMYPOFILES=
11103           GMOFILES=
11104           for lang in $ALL_LINGUAS; do
11105             POFILES="$POFILES $srcdirpre$lang.po"
11106             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11107             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11108             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11109           done
11110           # CATALOGS depends on both $ac_dir and the user's LINGUAS
11111           # environment variable.
11112           INST_LINGUAS=
11113           if test -n "$ALL_LINGUAS"; then
11114             for presentlang in $ALL_LINGUAS; do
11115               useit=no
11116               if test "%UNSET%" != "$LINGUAS"; then
11117                 desiredlanguages="$LINGUAS"
11118               else
11119                 desiredlanguages="$ALL_LINGUAS"
11120               fi
11121               for desiredlang in $desiredlanguages; do
11122                 # Use the presentlang catalog if desiredlang is
11123                 #   a. equal to presentlang, or
11124                 #   b. a variant of presentlang (because in this case,
11125                 #      presentlang can be used as a fallback for messages
11126                 #      which are not translated in the desiredlang catalog).
11127                 case "$desiredlang" in
11128                   "$presentlang"*) useit=yes;;
11129                 esac
11130               done
11131               if test $useit = yes; then
11132                 INST_LINGUAS="$INST_LINGUAS $presentlang"
11133               fi
11134             done
11135           fi
11136           CATALOGS=
11137           if test -n "$INST_LINGUAS"; then
11138             for lang in $INST_LINGUAS; do
11139               CATALOGS="$CATALOGS $lang.gmo"
11140             done
11141           fi
11142           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11143           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"
11144           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11145             if test -f "$f"; then
11146               case "$f" in
11147                 *.orig | *.bak | *~) ;;
11148                 *) cat "$f" >> "$ac_dir/Makefile" ;;
11149               esac
11150             fi
11151           done
11152         fi
11153         ;;
11154       esac
11155     done ;;
11156
11157   esac
11158 done # for ac_tag
11159
11160
11161 as_fn_exit 0
11162 _ACEOF
11163 ac_clean_files=$ac_clean_files_save
11164
11165 test $ac_write_fail = 0 ||
11166   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11167
11168
11169 # configure is writing to config.log, and then calls config.status.
11170 # config.status does its own redirection, appending to config.log.
11171 # Unfortunately, on DOS this fails, as config.log is still kept open
11172 # by configure, so config.status won't be able to write to it; its
11173 # output is simply discarded.  So we exec the FD to /dev/null,
11174 # effectively closing config.log, so it can be properly (re)opened and
11175 # appended to by config.status.  When coming back to configure, we
11176 # need to make the FD available again.
11177 if test "$no_create" != yes; then
11178   ac_cs_success=:
11179   ac_config_status_args=
11180   test "$silent" = yes &&
11181     ac_config_status_args="$ac_config_status_args --quiet"
11182   exec 5>/dev/null
11183   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11184   exec 5>>config.log
11185   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11186   # would make configure fail if this is the last instruction.
11187   $ac_cs_success || as_fn_exit 1
11188 fi
11189 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11190   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11191 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11192 fi
11193