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