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