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