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