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