updated build files
[psensor.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for psensor 0.8.0.x.
4 #
5 # Report bugs to <jeanfi@gmail.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='psensor'
582 PACKAGE_TARNAME='psensor'
583 PACKAGE_VERSION='0.8.0.x'
584 PACKAGE_STRING='psensor 0.8.0.x'
585 PACKAGE_BUGREPORT='jeanfi@gmail.com'
586 PACKAGE_URL='http://wpitchoune.net/psensor'
587
588 ac_unique_file="src/ui.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 gt_needs=
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 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 XMKMF
726 ac_ct_AR
727 AR
728 RANLIB
729 EGREP
730 GREP
731 CPP
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 CC
748 CFLAGS
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 CPP
836 XMKMF
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.x 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.x:";;
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   CPP         C preprocessor
1519   XMKMF       Path to xmkmf, Makefile generator for X Window System
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.x
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_check_type LINENO TYPE VAR INCLUDES
1680 # -------------------------------------------
1681 # Tests whether TYPE exists after having included INCLUDES, setting cache
1682 # variable VAR accordingly.
1683 ac_fn_c_check_type ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689   $as_echo_n "(cached) " >&6
1690 else
1691   eval "$3=no"
1692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h.  */
1694 $4
1695 int
1696 main ()
1697 {
1698 if (sizeof ($2))
1699          return 0;
1700   ;
1701   return 0;
1702 }
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h.  */
1707 $4
1708 int
1709 main ()
1710 {
1711 if (sizeof (($2)))
1712             return 0;
1713   ;
1714   return 0;
1715 }
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"; then :
1718
1719 else
1720   eval "$3=yes"
1721 fi
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 fi
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 fi
1726 eval ac_res=\$$3
1727                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730
1731 } # ac_fn_c_check_type
1732
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_cpp ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   if { { ac_try="$ac_cpp conftest.$ac_ext"
1740 case "(($ac_try" in
1741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742   *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747   ac_status=$?
1748   if test -s conftest.err; then
1749     grep -v '^ *+' conftest.err >conftest.er1
1750     cat conftest.er1 >&5
1751     mv -f conftest.er1 conftest.err
1752   fi
1753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754   test $ac_status = 0; } > conftest.i && {
1755          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756          test ! -s conftest.err
1757        }; then :
1758   ac_retval=0
1759 else
1760   $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763     ac_retval=1
1764 fi
1765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766   as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_cpp
1769
1770 # ac_fn_c_try_run LINENO
1771 # ----------------------
1772 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1773 # that executables *can* be run.
1774 ac_fn_c_try_run ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   if { { ac_try="$ac_link"
1778 case "(($ac_try" in
1779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780   *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784   (eval "$ac_link") 2>&5
1785   ac_status=$?
1786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1788   { { case "(($ac_try" in
1789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790   *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794   (eval "$ac_try") 2>&5
1795   ac_status=$?
1796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797   test $ac_status = 0; }; }; then :
1798   ac_retval=0
1799 else
1800   $as_echo "$as_me: program exited with status $ac_status" >&5
1801        $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804        ac_retval=$ac_status
1805 fi
1806   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808   as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_run
1811
1812 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1813 # -------------------------------------------------------
1814 # Tests whether HEADER exists and can be compiled using the include files in
1815 # INCLUDES, setting the cache variable VAR accordingly.
1816 ac_fn_c_check_header_compile ()
1817 {
1818   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822   $as_echo_n "(cached) " >&6
1823 else
1824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h.  */
1826 $4
1827 #include <$2>
1828 _ACEOF
1829 if ac_fn_c_try_compile "$LINENO"; then :
1830   eval "$3=yes"
1831 else
1832   eval "$3=no"
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 fi
1836 eval ac_res=\$$3
1837                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841 } # ac_fn_c_check_header_compile
1842
1843 # ac_fn_c_try_link LINENO
1844 # -----------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_link ()
1847 {
1848   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849   rm -f conftest.$ac_objext conftest$ac_exeext
1850   if { { ac_try="$ac_link"
1851 case "(($ac_try" in
1852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853   *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857   (eval "$ac_link") 2>conftest.err
1858   ac_status=$?
1859   if test -s conftest.err; then
1860     grep -v '^ *+' conftest.err >conftest.er1
1861     cat conftest.er1 >&5
1862     mv -f conftest.er1 conftest.err
1863   fi
1864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865   test $ac_status = 0; } && {
1866          test -z "$ac_c_werror_flag" ||
1867          test ! -s conftest.err
1868        } && test -s conftest$ac_exeext && {
1869          test "$cross_compiling" = yes ||
1870          test -x conftest$ac_exeext
1871        }; then :
1872   ac_retval=0
1873 else
1874   $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877         ac_retval=1
1878 fi
1879   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1880   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1881   # interfere with the next link command; also delete a directory that is
1882   # left behind by Apple's compiler.  We do this before executing the actions.
1883   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885   as_fn_set_status $ac_retval
1886
1887 } # ac_fn_c_try_link
1888
1889 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1890 # -------------------------------------------------------
1891 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1892 # the include files in INCLUDES and setting the cache variable VAR
1893 # accordingly.
1894 ac_fn_c_check_header_mongrel ()
1895 {
1896   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897   if eval \${$3+:} false; then :
1898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901   $as_echo_n "(cached) " >&6
1902 fi
1903 eval ac_res=\$$3
1904                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 else
1907   # Is the header compilable?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1909 $as_echo_n "checking $2 usability... " >&6; }
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h.  */
1912 $4
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916   ac_header_compiler=yes
1917 else
1918   ac_header_compiler=no
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1922 $as_echo "$ac_header_compiler" >&6; }
1923
1924 # Is the header present?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1926 $as_echo_n "checking $2 presence... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h.  */
1929 #include <$2>
1930 _ACEOF
1931 if ac_fn_c_try_cpp "$LINENO"; then :
1932   ac_header_preproc=yes
1933 else
1934   ac_header_preproc=no
1935 fi
1936 rm -f conftest.err conftest.i conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1938 $as_echo "$ac_header_preproc" >&6; }
1939
1940 # So?  What about this header?
1941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1942   yes:no: )
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1944 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947     ;;
1948   no:yes:* )
1949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1950 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1951     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1952 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1954 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1956 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 ( $as_echo "## ------------------------------- ##
1960 ## Report this to jeanfi@gmail.com ##
1961 ## ------------------------------- ##"
1962      ) | sed "s/^/$as_me: WARNING:     /" >&2
1963     ;;
1964 esac
1965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if eval \${$3+:} false; then :
1968   $as_echo_n "(cached) " >&6
1969 else
1970   eval "$3=\$ac_header_compiler"
1971 fi
1972 eval ac_res=\$$3
1973                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 fi
1976   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977
1978 } # ac_fn_c_check_header_mongrel
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.x, 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.x'
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
2913
2914
2915 # m4
2916
2917
2918 # Checks for programs.
2919 ac_ext=c
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 if test -n "$ac_tool_prefix"; then
2925   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2926 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if ${ac_cv_prog_CC+:} false; then :
2930   $as_echo_n "(cached) " >&6
2931 else
2932   if test -n "$CC"; then
2933   ac_cv_prog_CC="$CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938   IFS=$as_save_IFS
2939   test -z "$as_dir" && as_dir=.
2940     for ac_exec_ext in '' $ac_executable_extensions; do
2941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944     break 2
2945   fi
2946 done
2947   done
2948 IFS=$as_save_IFS
2949
2950 fi
2951 fi
2952 CC=$ac_cv_prog_CC
2953 if test -n "$CC"; then
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955 $as_echo "$CC" >&6; }
2956 else
2957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2959 fi
2960
2961
2962 fi
2963 if test -z "$ac_cv_prog_CC"; then
2964   ac_ct_CC=$CC
2965   # Extract the first word of "gcc", so it can be a program name with args.
2966 set dummy gcc; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2970   $as_echo_n "(cached) " >&6
2971 else
2972   if test -n "$ac_ct_CC"; then
2973   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978   IFS=$as_save_IFS
2979   test -z "$as_dir" && as_dir=.
2980     for ac_exec_ext in '' $ac_executable_extensions; do
2981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982     ac_cv_prog_ac_ct_CC="gcc"
2983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984     break 2
2985   fi
2986 done
2987   done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993 if test -n "$ac_ct_CC"; then
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2995 $as_echo "$ac_ct_CC" >&6; }
2996 else
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001   if test "x$ac_ct_CC" = x; then
3002     CC=""
3003   else
3004     case $cross_compiling:$ac_tool_warned in
3005 yes:)
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3009 esac
3010     CC=$ac_ct_CC
3011   fi
3012 else
3013   CC="$ac_cv_prog_CC"
3014 fi
3015
3016 if test -z "$CC"; then
3017           if test -n "$ac_tool_prefix"; then
3018     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3019 set dummy ${ac_tool_prefix}cc; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_CC+:} false; then :
3023   $as_echo_n "(cached) " >&6
3024 else
3025   if test -n "$CC"; then
3026   ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031   IFS=$as_save_IFS
3032   test -z "$as_dir" && as_dir=.
3033     for ac_exec_ext in '' $ac_executable_extensions; do
3034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035     ac_cv_prog_CC="${ac_tool_prefix}cc"
3036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037     break 2
3038   fi
3039 done
3040   done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055   fi
3056 fi
3057 if test -z "$CC"; then
3058   # Extract the first word of "cc", so it can be a program name with args.
3059 set dummy cc; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if ${ac_cv_prog_CC+:} false; then :
3063   $as_echo_n "(cached) " >&6
3064 else
3065   if test -n "$CC"; then
3066   ac_cv_prog_CC="$CC" # Let the user override the test.
3067 else
3068   ac_prog_rejected=no
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072   IFS=$as_save_IFS
3073   test -z "$as_dir" && as_dir=.
3074     for ac_exec_ext in '' $ac_executable_extensions; do
3075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3077        ac_prog_rejected=yes
3078        continue
3079      fi
3080     ac_cv_prog_CC="cc"
3081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082     break 2
3083   fi
3084 done
3085   done
3086 IFS=$as_save_IFS
3087
3088 if test $ac_prog_rejected = yes; then
3089   # We found a bogon in the path, so make sure we never use it.
3090   set dummy $ac_cv_prog_CC
3091   shift
3092   if test $# != 0; then
3093     # We chose a different compiler from the bogus one.
3094     # However, it has the same basename, so the bogon will be chosen
3095     # first if we set CC to just the basename; use the full file name.
3096     shift
3097     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3098   fi
3099 fi
3100 fi
3101 fi
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 fi
3113 if test -z "$CC"; then
3114   if test -n "$ac_tool_prefix"; then
3115   for ac_prog in cl.exe
3116   do
3117     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_CC+:} false; then :
3122   $as_echo_n "(cached) " >&6
3123 else
3124   if test -n "$CC"; then
3125   ac_cv_prog_CC="$CC" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130   IFS=$as_save_IFS
3131   test -z "$as_dir" && as_dir=.
3132     for ac_exec_ext in '' $ac_executable_extensions; do
3133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136     break 2
3137   fi
3138 done
3139   done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3148 else
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151 fi
3152
3153
3154     test -n "$CC" && break
3155   done
3156 fi
3157 if test -z "$CC"; then
3158   ac_ct_CC=$CC
3159   for ac_prog in cl.exe
3160 do
3161   # Extract the first word of "$ac_prog", so it can be a program name with args.
3162 set dummy $ac_prog; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3166   $as_echo_n "(cached) " >&6
3167 else
3168   if test -n "$ac_ct_CC"; then
3169   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176     for ac_exec_ext in '' $ac_executable_extensions; do
3177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178     ac_cv_prog_ac_ct_CC="$ac_prog"
3179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180     break 2
3181   fi
3182 done
3183   done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3189 if test -n "$ac_ct_CC"; then
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3191 $as_echo "$ac_ct_CC" >&6; }
3192 else
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198   test -n "$ac_ct_CC" && break
3199 done
3200
3201   if test "x$ac_ct_CC" = x; then
3202     CC=""
3203   else
3204     case $cross_compiling:$ac_tool_warned in
3205 yes:)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208 ac_tool_warned=yes ;;
3209 esac
3210     CC=$ac_ct_CC
3211   fi
3212 fi
3213
3214 fi
3215
3216
3217 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error $? "no acceptable C compiler found in \$PATH
3220 See \`config.log' for more details" "$LINENO" 5; }
3221
3222 # Provide some information about the compiler.
3223 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3224 set X $ac_compile
3225 ac_compiler=$2
3226 for ac_option in --version -v -V -qversion; do
3227   { { ac_try="$ac_compiler $ac_option >&5"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3235   ac_status=$?
3236   if test -s conftest.err; then
3237     sed '10a\
3238 ... rest of stderr output deleted ...
3239          10q' conftest.err >conftest.er1
3240     cat conftest.er1 >&5
3241   fi
3242   rm -f conftest.er1 conftest.err
3243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244   test $ac_status = 0; }
3245 done
3246
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h.  */
3249
3250 int
3251 main ()
3252 {
3253
3254   ;
3255   return 0;
3256 }
3257 _ACEOF
3258 ac_clean_files_save=$ac_clean_files
3259 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3260 # Try to create an executable without -o first, disregard a.out.
3261 # It will help us diagnose broken compilers, and finding out an intuition
3262 # of exeext.
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3264 $as_echo_n "checking whether the C compiler works... " >&6; }
3265 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3266
3267 # The possible output files:
3268 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3269
3270 ac_rmfiles=
3271 for ac_file in $ac_files
3272 do
3273   case $ac_file in
3274     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3275     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3276   esac
3277 done
3278 rm -f $ac_rmfiles
3279
3280 if { { ac_try="$ac_link_default"
3281 case "(($ac_try" in
3282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283   *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287   (eval "$ac_link_default") 2>&5
3288   ac_status=$?
3289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290   test $ac_status = 0; }; then :
3291   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3292 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3293 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3294 # so that the user can short-circuit this test for compilers unknown to
3295 # Autoconf.
3296 for ac_file in $ac_files ''
3297 do
3298   test -f "$ac_file" || continue
3299   case $ac_file in
3300     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3301         ;;
3302     [ab].out )
3303         # We found the default executable, but exeext='' is most
3304         # certainly right.
3305         break;;
3306     *.* )
3307         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3308         then :; else
3309            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3310         fi
3311         # We set ac_cv_exeext here because the later test for it is not
3312         # safe: cross compilers may not add the suffix if given an `-o'
3313         # argument, so we may need to know it at that point already.
3314         # Even if this section looks crufty: it has the advantage of
3315         # actually working.
3316         break;;
3317     * )
3318         break;;
3319   esac
3320 done
3321 test "$ac_cv_exeext" = no && ac_cv_exeext=
3322
3323 else
3324   ac_file=''
3325 fi
3326 if test -z "$ac_file"; then :
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3329 $as_echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error 77 "C compiler cannot create executables
3335 See \`config.log' for more details" "$LINENO" 5; }
3336 else
3337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338 $as_echo "yes" >&6; }
3339 fi
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3341 $as_echo_n "checking for C compiler default output file name... " >&6; }
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3343 $as_echo "$ac_file" >&6; }
3344 ac_exeext=$ac_cv_exeext
3345
3346 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3347 ac_clean_files=$ac_clean_files_save
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3349 $as_echo_n "checking for suffix of executables... " >&6; }
3350 if { { ac_try="$ac_link"
3351 case "(($ac_try" in
3352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353   *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357   (eval "$ac_link") 2>&5
3358   ac_status=$?
3359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360   test $ac_status = 0; }; then :
3361   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3362 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3363 # work properly (i.e., refer to `conftest.exe'), while it won't with
3364 # `rm'.
3365 for ac_file in conftest.exe conftest conftest.*; do
3366   test -f "$ac_file" || continue
3367   case $ac_file in
3368     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3369     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3370           break;;
3371     * ) break;;
3372   esac
3373 done
3374 else
3375   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3378 See \`config.log' for more details" "$LINENO" 5; }
3379 fi
3380 rm -f conftest conftest$ac_cv_exeext
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3382 $as_echo "$ac_cv_exeext" >&6; }
3383
3384 rm -f conftest.$ac_ext
3385 EXEEXT=$ac_cv_exeext
3386 ac_exeext=$EXEEXT
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h.  */
3389 #include <stdio.h>
3390 int
3391 main ()
3392 {
3393 FILE *f = fopen ("conftest.out", "w");
3394  return ferror (f) || fclose (f) != 0;
3395
3396   ;
3397   return 0;
3398 }
3399 _ACEOF
3400 ac_clean_files="$ac_clean_files conftest.out"
3401 # Check that the compiler produces executables we can run.  If not, either
3402 # the compiler is broken, or we cross compile.
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3404 $as_echo_n "checking whether we are cross compiling... " >&6; }
3405 if test "$cross_compiling" != yes; then
3406   { { ac_try="$ac_link"
3407 case "(($ac_try" in
3408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409   *) ac_try_echo=$ac_try;;
3410 esac
3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412 $as_echo "$ac_try_echo"; } >&5
3413   (eval "$ac_link") 2>&5
3414   ac_status=$?
3415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416   test $ac_status = 0; }
3417   if { ac_try='./conftest$ac_cv_exeext'
3418   { { case "(($ac_try" in
3419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420   *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424   (eval "$ac_try") 2>&5
3425   ac_status=$?
3426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427   test $ac_status = 0; }; }; then
3428     cross_compiling=no
3429   else
3430     if test "$cross_compiling" = maybe; then
3431         cross_compiling=yes
3432     else
3433         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error $? "cannot run C compiled programs.
3436 If you meant to cross compile, use \`--host'.
3437 See \`config.log' for more details" "$LINENO" 5; }
3438     fi
3439   fi
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3442 $as_echo "$cross_compiling" >&6; }
3443
3444 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3445 ac_clean_files=$ac_clean_files_save
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3447 $as_echo_n "checking for suffix of object files... " >&6; }
3448 if ${ac_cv_objext+:} false; then :
3449   $as_echo_n "(cached) " >&6
3450 else
3451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h.  */
3453
3454 int
3455 main ()
3456 {
3457
3458   ;
3459   return 0;
3460 }
3461 _ACEOF
3462 rm -f conftest.o conftest.obj
3463 if { { ac_try="$ac_compile"
3464 case "(($ac_try" in
3465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466   *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470   (eval "$ac_compile") 2>&5
3471   ac_status=$?
3472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473   test $ac_status = 0; }; then :
3474   for ac_file in conftest.o conftest.obj conftest.*; do
3475   test -f "$ac_file" || continue;
3476   case $ac_file in
3477     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3478     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3479        break;;
3480   esac
3481 done
3482 else
3483   $as_echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error $? "cannot compute suffix of object files: cannot compile
3489 See \`config.log' for more details" "$LINENO" 5; }
3490 fi
3491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3494 $as_echo "$ac_cv_objext" >&6; }
3495 OBJEXT=$ac_cv_objext
3496 ac_objext=$OBJEXT
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3498 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3499 if ${ac_cv_c_compiler_gnu+:} false; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h.  */
3504
3505 int
3506 main ()
3507 {
3508 #ifndef __GNUC__
3509        choke me
3510 #endif
3511
3512   ;
3513   return 0;
3514 }
3515 _ACEOF
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517   ac_compiler_gnu=yes
3518 else
3519   ac_compiler_gnu=no
3520 fi
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3523
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3526 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3527 if test $ac_compiler_gnu = yes; then
3528   GCC=yes
3529 else
3530   GCC=
3531 fi
3532 ac_test_CFLAGS=${CFLAGS+set}
3533 ac_save_CFLAGS=$CFLAGS
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3535 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3536 if ${ac_cv_prog_cc_g+:} false; then :
3537   $as_echo_n "(cached) " >&6
3538 else
3539   ac_save_c_werror_flag=$ac_c_werror_flag
3540    ac_c_werror_flag=yes
3541    ac_cv_prog_cc_g=no
3542    CFLAGS="-g"
3543    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545
3546 int
3547 main ()
3548 {
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555   ac_cv_prog_cc_g=yes
3556 else
3557   CFLAGS=""
3558       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h.  */
3560
3561 int
3562 main ()
3563 {
3564
3565   ;
3566   return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570
3571 else
3572   ac_c_werror_flag=$ac_save_c_werror_flag
3573          CFLAGS="-g"
3574          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h.  */
3576
3577 int
3578 main ()
3579 {
3580
3581   ;
3582   return 0;
3583 }
3584 _ACEOF
3585 if ac_fn_c_try_compile "$LINENO"; then :
3586   ac_cv_prog_cc_g=yes
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 fi
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593    ac_c_werror_flag=$ac_save_c_werror_flag
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3596 $as_echo "$ac_cv_prog_cc_g" >&6; }
3597 if test "$ac_test_CFLAGS" = set; then
3598   CFLAGS=$ac_save_CFLAGS
3599 elif test $ac_cv_prog_cc_g = yes; then
3600   if test "$GCC" = yes; then
3601     CFLAGS="-g -O2"
3602   else
3603     CFLAGS="-g"
3604   fi
3605 else
3606   if test "$GCC" = yes; then
3607     CFLAGS="-O2"
3608   else
3609     CFLAGS=
3610   fi
3611 fi
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3613 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3614 if ${ac_cv_prog_cc_c89+:} false; then :
3615   $as_echo_n "(cached) " >&6
3616 else
3617   ac_cv_prog_cc_c89=no
3618 ac_save_CC=$CC
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h.  */
3621 #include <stdarg.h>
3622 #include <stdio.h>
3623 struct stat;
3624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3625 struct buf { int x; };
3626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3627 static char *e (p, i)
3628      char **p;
3629      int i;
3630 {
3631   return p[i];
3632 }
3633 static char *f (char * (*g) (char **, int), char **p, ...)
3634 {
3635   char *s;
3636   va_list v;
3637   va_start (v,p);
3638   s = g (p, va_arg (v,int));
3639   va_end (v);
3640   return s;
3641 }
3642
3643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3644    function prototypes and stuff, but not '\xHH' hex character constants.
3645    These don't provoke an error unfortunately, instead are silently treated
3646    as 'x'.  The following induces an error, until -std is added to get
3647    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3648    array size at least.  It's necessary to write '\x00'==0 to get something
3649    that's true only with -std.  */
3650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651
3652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3653    inside strings and character constants.  */
3654 #define FOO(x) 'x'
3655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656
3657 int test (int i, double x);
3658 struct s1 {int (*f) (int a);};
3659 struct s2 {int (*f) (double a);};
3660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3661 int argc;
3662 char **argv;
3663 int
3664 main ()
3665 {
3666 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3667   ;
3668   return 0;
3669 }
3670 _ACEOF
3671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3672         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 do
3674   CC="$ac_save_CC $ac_arg"
3675   if ac_fn_c_try_compile "$LINENO"; then :
3676   ac_cv_prog_cc_c89=$ac_arg
3677 fi
3678 rm -f core conftest.err conftest.$ac_objext
3679   test "x$ac_cv_prog_cc_c89" != "xno" && break
3680 done
3681 rm -f conftest.$ac_ext
3682 CC=$ac_save_CC
3683
3684 fi
3685 # AC_CACHE_VAL
3686 case "x$ac_cv_prog_cc_c89" in
3687   x)
3688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3689 $as_echo "none needed" >&6; } ;;
3690   xno)
3691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3692 $as_echo "unsupported" >&6; } ;;
3693   *)
3694     CC="$CC $ac_cv_prog_cc_c89"
3695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3696 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3697 esac
3698 if test "x$ac_cv_prog_cc_c89" != xno; then :
3699
3700 fi
3701
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 DEPDIR="${am__leading_dot}deps"
3708
3709 ac_config_commands="$ac_config_commands depfiles"
3710
3711
3712 am_make=${MAKE-make}
3713 cat > confinc << 'END'
3714 am__doit:
3715         @echo this is the am__doit target
3716 .PHONY: am__doit
3717 END
3718 # If we don't find an include directive, just comment out the code.
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3720 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3721 am__include="#"
3722 am__quote=
3723 _am_result=none
3724 # First try GNU make style include.
3725 echo "include confinc" > confmf
3726 # Ignore all kinds of additional output from `make'.
3727 case `$am_make -s -f confmf 2> /dev/null` in #(
3728 *the\ am__doit\ target*)
3729   am__include=include
3730   am__quote=
3731   _am_result=GNU
3732   ;;
3733 esac
3734 # Now try BSD make style include.
3735 if test "$am__include" = "#"; then
3736    echo '.include "confinc"' > confmf
3737    case `$am_make -s -f confmf 2> /dev/null` in #(
3738    *the\ am__doit\ target*)
3739      am__include=.include
3740      am__quote="\""
3741      _am_result=BSD
3742      ;;
3743    esac
3744 fi
3745
3746
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3748 $as_echo "$_am_result" >&6; }
3749 rm -f confinc confmf
3750
3751 # Check whether --enable-dependency-tracking was given.
3752 if test "${enable_dependency_tracking+set}" = set; then :
3753   enableval=$enable_dependency_tracking;
3754 fi
3755
3756 if test "x$enable_dependency_tracking" != xno; then
3757   am_depcomp="$ac_aux_dir/depcomp"
3758   AMDEPBACKSLASH='\'
3759   am__nodep='_no'
3760 fi
3761  if test "x$enable_dependency_tracking" != xno; then
3762   AMDEP_TRUE=
3763   AMDEP_FALSE='#'
3764 else
3765   AMDEP_TRUE='#'
3766   AMDEP_FALSE=
3767 fi
3768
3769
3770
3771 depcc="$CC"   am_compiler_list=
3772
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3774 $as_echo_n "checking dependency style of $depcc... " >&6; }
3775 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3776   $as_echo_n "(cached) " >&6
3777 else
3778   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3779   # We make a subdir and do the tests there.  Otherwise we can end up
3780   # making bogus files that we don't know about and never remove.  For
3781   # instance it was reported that on HP-UX the gcc test will end up
3782   # making a dummy file named `D' -- because `-MD' means `put the output
3783   # in D'.
3784   rm -rf conftest.dir
3785   mkdir conftest.dir
3786   # Copy depcomp to subdir because otherwise we won't find it if we're
3787   # using a relative directory.
3788   cp "$am_depcomp" conftest.dir
3789   cd conftest.dir
3790   # We will build objects and dependencies in a subdirectory because
3791   # it helps to detect inapplicable dependency modes.  For instance
3792   # both Tru64's cc and ICC support -MD to output dependencies as a
3793   # side effect of compilation, but ICC will put the dependencies in
3794   # the current directory while Tru64 will put them in the object
3795   # directory.
3796   mkdir sub
3797
3798   am_cv_CC_dependencies_compiler_type=none
3799   if test "$am_compiler_list" = ""; then
3800      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3801   fi
3802   am__universal=false
3803   case " $depcc " in #(
3804      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3805      esac
3806
3807   for depmode in $am_compiler_list; do
3808     # Setup a source with many dependencies, because some compilers
3809     # like to wrap large dependency lists on column 80 (with \), and
3810     # we should not choose a depcomp mode which is confused by this.
3811     #
3812     # We need to recreate these files for each test, as the compiler may
3813     # overwrite some of them when testing with obscure command lines.
3814     # This happens at least with the AIX C compiler.
3815     : > sub/conftest.c
3816     for i in 1 2 3 4 5 6; do
3817       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3818       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3819       # Solaris 8's {/usr,}/bin/sh.
3820       touch sub/conftst$i.h
3821     done
3822     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3823
3824     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3825     # mode.  It turns out that the SunPro C++ compiler does not properly
3826     # handle `-M -o', and we need to detect this.  Also, some Intel
3827     # versions had trouble with output in subdirs
3828     am__obj=sub/conftest.${OBJEXT-o}
3829     am__minus_obj="-o $am__obj"
3830     case $depmode in
3831     gcc)
3832       # This depmode causes a compiler race in universal mode.
3833       test "$am__universal" = false || continue
3834       ;;
3835     nosideeffect)
3836       # after this tag, mechanisms are not by side-effect, so they'll
3837       # only be used when explicitly requested
3838       if test "x$enable_dependency_tracking" = xyes; then
3839         continue
3840       else
3841         break
3842       fi
3843       ;;
3844     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3845       # This compiler won't grok `-c -o', but also, the minuso test has
3846       # not run yet.  These depmodes are late enough in the game, and
3847       # so weak that their functioning should not be impacted.
3848       am__obj=conftest.${OBJEXT-o}
3849       am__minus_obj=
3850       ;;
3851     none) break ;;
3852     esac
3853     if depmode=$depmode \
3854        source=sub/conftest.c object=$am__obj \
3855        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3856        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3857          >/dev/null 2>conftest.err &&
3858        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3859        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3860        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3861        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3862       # icc doesn't choke on unknown options, it will just issue warnings
3863       # or remarks (even with -Werror).  So we grep stderr for any message
3864       # that says an option was ignored or not supported.
3865       # When given -MP, icc 7.0 and 7.1 complain thusly:
3866       #   icc: Command line warning: ignoring option '-M'; no argument required
3867       # The diagnosis changed in icc 8.0:
3868       #   icc: Command line remark: option '-MP' not supported
3869       if (grep 'ignoring option' conftest.err ||
3870           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3871         am_cv_CC_dependencies_compiler_type=$depmode
3872         break
3873       fi
3874     fi
3875   done
3876
3877   cd ..
3878   rm -rf conftest.dir
3879 else
3880   am_cv_CC_dependencies_compiler_type=none
3881 fi
3882
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3885 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3886 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3887
3888  if
3889   test "x$enable_dependency_tracking" != xno \
3890   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3891   am__fastdepCC_TRUE=
3892   am__fastdepCC_FALSE='#'
3893 else
3894   am__fastdepCC_TRUE='#'
3895   am__fastdepCC_FALSE=
3896 fi
3897
3898
3899 if test "x$CC" != xcc; then
3900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3901 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3902 else
3903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3904 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3905 fi
3906 set dummy $CC; ac_cc=`$as_echo "$2" |
3907                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3908 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h.  */
3913
3914 int
3915 main ()
3916 {
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 # Make sure it works both with $CC and with simple cc.
3923 # We do the test twice because some compilers refuse to overwrite an
3924 # existing .o file with -o, though they will create one.
3925 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3926 rm -f conftest2.*
3927 if { { case "(($ac_try" in
3928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929   *) ac_try_echo=$ac_try;;
3930 esac
3931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932 $as_echo "$ac_try_echo"; } >&5
3933   (eval "$ac_try") 2>&5
3934   ac_status=$?
3935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936   test $ac_status = 0; } &&
3937    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939   *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943   (eval "$ac_try") 2>&5
3944   ac_status=$?
3945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946   test $ac_status = 0; };
3947 then
3948   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3949   if test "x$CC" != xcc; then
3950     # Test first that cc exists at all.
3951     if { ac_try='cc -c conftest.$ac_ext >&5'
3952   { { case "(($ac_try" in
3953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954   *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958   (eval "$ac_try") 2>&5
3959   ac_status=$?
3960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961   test $ac_status = 0; }; }; then
3962       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3963       rm -f conftest2.*
3964       if { { case "(($ac_try" in
3965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966   *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970   (eval "$ac_try") 2>&5
3971   ac_status=$?
3972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973   test $ac_status = 0; } &&
3974          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976   *) ac_try_echo=$ac_try;;
3977 esac
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980   (eval "$ac_try") 2>&5
3981   ac_status=$?
3982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983   test $ac_status = 0; };
3984       then
3985         # cc works too.
3986         :
3987       else
3988         # cc exists but doesn't like -o.
3989         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3990       fi
3991     fi
3992   fi
3993 else
3994   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3995 fi
3996 rm -f core conftest*
3997
3998 fi
3999 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4001 $as_echo "yes" >&6; }
4002 else
4003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4005
4006 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4007
4008 fi
4009
4010 # FIXME: we rely on the cache variable name because
4011 # there is no other way.
4012 set dummy $CC
4013 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4014 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4015 if test "$am_t" != yes; then
4016    # Losing compiler, so override with the script.
4017    # FIXME: It is wrong to rewrite CC.
4018    # But if we don't then we get into trouble of one sort or another.
4019    # A longer-term fix would be to have automake use am__CC in this case,
4020    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4021    CC="$am_aux_dir/compile $CC"
4022 fi
4023
4024
4025
4026
4027 # Check whether --enable-largefile was given.
4028 if test "${enable_largefile+set}" = set; then :
4029   enableval=$enable_largefile;
4030 fi
4031
4032 if test "$enable_largefile" != no; then
4033
4034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4035 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4036 if ${ac_cv_sys_largefile_CC+:} false; then :
4037   $as_echo_n "(cached) " >&6
4038 else
4039   ac_cv_sys_largefile_CC=no
4040      if test "$GCC" != yes; then
4041        ac_save_CC=$CC
4042        while :; do
4043          # IRIX 6.2 and later do not support large files by default,
4044          # so use the C compiler's -n32 option if that helps.
4045          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h.  */
4047 #include <sys/types.h>
4048  /* Check that off_t can represent 2**63 - 1 correctly.
4049     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4050     since some C++ compilers masquerading as C compilers
4051     incorrectly reject 9223372036854775807.  */
4052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4053   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4054                        && LARGE_OFF_T % 2147483647 == 1)
4055                       ? 1 : -1];
4056 int
4057 main ()
4058 {
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064          if ac_fn_c_try_compile "$LINENO"; then :
4065   break
4066 fi
4067 rm -f core conftest.err conftest.$ac_objext
4068          CC="$CC -n32"
4069          if ac_fn_c_try_compile "$LINENO"; then :
4070   ac_cv_sys_largefile_CC=' -n32'; break
4071 fi
4072 rm -f core conftest.err conftest.$ac_objext
4073          break
4074        done
4075        CC=$ac_save_CC
4076        rm -f conftest.$ac_ext
4077     fi
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4080 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4081   if test "$ac_cv_sys_largefile_CC" != no; then
4082     CC=$CC$ac_cv_sys_largefile_CC
4083   fi
4084
4085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4086 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4087 if ${ac_cv_sys_file_offset_bits+:} false; then :
4088   $as_echo_n "(cached) " >&6
4089 else
4090   while :; do
4091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h.  */
4093 #include <sys/types.h>
4094  /* Check that off_t can represent 2**63 - 1 correctly.
4095     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4096     since some C++ compilers masquerading as C compilers
4097     incorrectly reject 9223372036854775807.  */
4098 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4099   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4100                        && LARGE_OFF_T % 2147483647 == 1)
4101                       ? 1 : -1];
4102 int
4103 main ()
4104 {
4105
4106   ;
4107   return 0;
4108 }
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111   ac_cv_sys_file_offset_bits=no; break
4112 fi
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h.  */
4116 #define _FILE_OFFSET_BITS 64
4117 #include <sys/types.h>
4118  /* Check that off_t can represent 2**63 - 1 correctly.
4119     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4120     since some C++ compilers masquerading as C compilers
4121     incorrectly reject 9223372036854775807.  */
4122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4123   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4124                        && LARGE_OFF_T % 2147483647 == 1)
4125                       ? 1 : -1];
4126 int
4127 main ()
4128 {
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135   ac_cv_sys_file_offset_bits=64; break
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138   ac_cv_sys_file_offset_bits=unknown
4139   break
4140 done
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4143 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4144 case $ac_cv_sys_file_offset_bits in #(
4145   no | unknown) ;;
4146   *)
4147 cat >>confdefs.h <<_ACEOF
4148 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4149 _ACEOF
4150 ;;
4151 esac
4152 rm -rf conftest*
4153   if test $ac_cv_sys_file_offset_bits = unknown; then
4154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4155 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4156 if ${ac_cv_sys_large_files+:} false; then :
4157   $as_echo_n "(cached) " >&6
4158 else
4159   while :; do
4160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h.  */
4162 #include <sys/types.h>
4163  /* Check that off_t can represent 2**63 - 1 correctly.
4164     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4165     since some C++ compilers masquerading as C compilers
4166     incorrectly reject 9223372036854775807.  */
4167 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4168   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4169                        && LARGE_OFF_T % 2147483647 == 1)
4170                       ? 1 : -1];
4171 int
4172 main ()
4173 {
4174
4175   ;
4176   return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180   ac_cv_sys_large_files=no; break
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h.  */
4185 #define _LARGE_FILES 1
4186 #include <sys/types.h>
4187  /* Check that off_t can represent 2**63 - 1 correctly.
4188     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4189     since some C++ compilers masquerading as C compilers
4190     incorrectly reject 9223372036854775807.  */
4191 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4192   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4193                        && LARGE_OFF_T % 2147483647 == 1)
4194                       ? 1 : -1];
4195 int
4196 main ()
4197 {
4198
4199   ;
4200   return 0;
4201 }
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204   ac_cv_sys_large_files=1; break
4205 fi
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207   ac_cv_sys_large_files=unknown
4208   break
4209 done
4210 fi
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4212 $as_echo "$ac_cv_sys_large_files" >&6; }
4213 case $ac_cv_sys_large_files in #(
4214   no | unknown) ;;
4215   *)
4216 cat >>confdefs.h <<_ACEOF
4217 #define _LARGE_FILES $ac_cv_sys_large_files
4218 _ACEOF
4219 ;;
4220 esac
4221 rm -rf conftest*
4222   fi
4223
4224
4225 fi
4226
4227 ac_ext=c
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4233 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4234 # On Suns, sometimes $CPP names a directory.
4235 if test -n "$CPP" && test -d "$CPP"; then
4236   CPP=
4237 fi
4238 if test -z "$CPP"; then
4239   if ${ac_cv_prog_CPP+:} false; then :
4240   $as_echo_n "(cached) " >&6
4241 else
4242       # Double quotes because CPP needs to be expanded
4243     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4244     do
4245       ac_preproc_ok=false
4246 for ac_c_preproc_warn_flag in '' yes
4247 do
4248   # Use a header file that comes with gcc, so configuring glibc
4249   # with a fresh cross-compiler works.
4250   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4251   # <limits.h> exists even on freestanding compilers.
4252   # On the NeXT, cc -E runs the code through the compiler's parser,
4253   # not just through cpp. "Syntax error" is here to catch this case.
4254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256 #ifdef __STDC__
4257 # include <limits.h>
4258 #else
4259 # include <assert.h>
4260 #endif
4261                      Syntax error
4262 _ACEOF
4263 if ac_fn_c_try_cpp "$LINENO"; then :
4264
4265 else
4266   # Broken: fails on valid input.
4267 continue
4268 fi
4269 rm -f conftest.err conftest.i conftest.$ac_ext
4270
4271   # OK, works on sane cases.  Now check whether nonexistent headers
4272   # can be detected and how.
4273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h.  */
4275 #include <ac_nonexistent.h>
4276 _ACEOF
4277 if ac_fn_c_try_cpp "$LINENO"; then :
4278   # Broken: success on invalid input.
4279 continue
4280 else
4281   # Passes both tests.
4282 ac_preproc_ok=:
4283 break
4284 fi
4285 rm -f conftest.err conftest.i conftest.$ac_ext
4286
4287 done
4288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4289 rm -f conftest.i conftest.err conftest.$ac_ext
4290 if $ac_preproc_ok; then :
4291   break
4292 fi
4293
4294     done
4295     ac_cv_prog_CPP=$CPP
4296
4297 fi
4298   CPP=$ac_cv_prog_CPP
4299 else
4300   ac_cv_prog_CPP=$CPP
4301 fi
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4303 $as_echo "$CPP" >&6; }
4304 ac_preproc_ok=false
4305 for ac_c_preproc_warn_flag in '' yes
4306 do
4307   # Use a header file that comes with gcc, so configuring glibc
4308   # with a fresh cross-compiler works.
4309   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4310   # <limits.h> exists even on freestanding compilers.
4311   # On the NeXT, cc -E runs the code through the compiler's parser,
4312   # not just through cpp. "Syntax error" is here to catch this case.
4313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h.  */
4315 #ifdef __STDC__
4316 # include <limits.h>
4317 #else
4318 # include <assert.h>
4319 #endif
4320                      Syntax error
4321 _ACEOF
4322 if ac_fn_c_try_cpp "$LINENO"; then :
4323
4324 else
4325   # Broken: fails on valid input.
4326 continue
4327 fi
4328 rm -f conftest.err conftest.i conftest.$ac_ext
4329
4330   # OK, works on sane cases.  Now check whether nonexistent headers
4331   # can be detected and how.
4332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h.  */
4334 #include <ac_nonexistent.h>
4335 _ACEOF
4336 if ac_fn_c_try_cpp "$LINENO"; then :
4337   # Broken: success on invalid input.
4338 continue
4339 else
4340   # Passes both tests.
4341 ac_preproc_ok=:
4342 break
4343 fi
4344 rm -f conftest.err conftest.i conftest.$ac_ext
4345
4346 done
4347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4348 rm -f conftest.i conftest.err conftest.$ac_ext
4349 if $ac_preproc_ok; then :
4350
4351 else
4352   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4354 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4355 See \`config.log' for more details" "$LINENO" 5; }
4356 fi
4357
4358 ac_ext=c
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363
4364
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4366 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4367 if ${ac_cv_path_GREP+:} false; then :
4368   $as_echo_n "(cached) " >&6
4369 else
4370   if test -z "$GREP"; then
4371   ac_path_GREP_found=false
4372   # Loop through the user's path and test for each of PROGNAME-LIST
4373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4375 do
4376   IFS=$as_save_IFS
4377   test -z "$as_dir" && as_dir=.
4378     for ac_prog in grep ggrep; do
4379     for ac_exec_ext in '' $ac_executable_extensions; do
4380       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4381       as_fn_executable_p "$ac_path_GREP" || continue
4382 # Check for GNU ac_path_GREP and select it if it is found.
4383   # Check for GNU $ac_path_GREP
4384 case `"$ac_path_GREP" --version 2>&1` in
4385 *GNU*)
4386   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4387 *)
4388   ac_count=0
4389   $as_echo_n 0123456789 >"conftest.in"
4390   while :
4391   do
4392     cat "conftest.in" "conftest.in" >"conftest.tmp"
4393     mv "conftest.tmp" "conftest.in"
4394     cp "conftest.in" "conftest.nl"
4395     $as_echo 'GREP' >> "conftest.nl"
4396     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4397     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4398     as_fn_arith $ac_count + 1 && ac_count=$as_val
4399     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4400       # Best one so far, save it but keep looking for a better one
4401       ac_cv_path_GREP="$ac_path_GREP"
4402       ac_path_GREP_max=$ac_count
4403     fi
4404     # 10*(2^10) chars as input seems more than enough
4405     test $ac_count -gt 10 && break
4406   done
4407   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4408 esac
4409
4410       $ac_path_GREP_found && break 3
4411     done
4412   done
4413   done
4414 IFS=$as_save_IFS
4415   if test -z "$ac_cv_path_GREP"; then
4416     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4417   fi
4418 else
4419   ac_cv_path_GREP=$GREP
4420 fi
4421
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4424 $as_echo "$ac_cv_path_GREP" >&6; }
4425  GREP="$ac_cv_path_GREP"
4426
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4429 $as_echo_n "checking for egrep... " >&6; }
4430 if ${ac_cv_path_EGREP+:} false; then :
4431   $as_echo_n "(cached) " >&6
4432 else
4433   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4434    then ac_cv_path_EGREP="$GREP -E"
4435    else
4436      if test -z "$EGREP"; then
4437   ac_path_EGREP_found=false
4438   # Loop through the user's path and test for each of PROGNAME-LIST
4439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444     for ac_prog in egrep; do
4445     for ac_exec_ext in '' $ac_executable_extensions; do
4446       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4447       as_fn_executable_p "$ac_path_EGREP" || continue
4448 # Check for GNU ac_path_EGREP and select it if it is found.
4449   # Check for GNU $ac_path_EGREP
4450 case `"$ac_path_EGREP" --version 2>&1` in
4451 *GNU*)
4452   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4453 *)
4454   ac_count=0
4455   $as_echo_n 0123456789 >"conftest.in"
4456   while :
4457   do
4458     cat "conftest.in" "conftest.in" >"conftest.tmp"
4459     mv "conftest.tmp" "conftest.in"
4460     cp "conftest.in" "conftest.nl"
4461     $as_echo 'EGREP' >> "conftest.nl"
4462     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4463     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4464     as_fn_arith $ac_count + 1 && ac_count=$as_val
4465     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4466       # Best one so far, save it but keep looking for a better one
4467       ac_cv_path_EGREP="$ac_path_EGREP"
4468       ac_path_EGREP_max=$ac_count
4469     fi
4470     # 10*(2^10) chars as input seems more than enough
4471     test $ac_count -gt 10 && break
4472   done
4473   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4474 esac
4475
4476       $ac_path_EGREP_found && break 3
4477     done
4478   done
4479   done
4480 IFS=$as_save_IFS
4481   if test -z "$ac_cv_path_EGREP"; then
4482     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4483   fi
4484 else
4485   ac_cv_path_EGREP=$EGREP
4486 fi
4487
4488    fi
4489 fi
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4491 $as_echo "$ac_cv_path_EGREP" >&6; }
4492  EGREP="$ac_cv_path_EGREP"
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4496 $as_echo_n "checking for ANSI C header files... " >&6; }
4497 if ${ac_cv_header_stdc+:} false; then :
4498   $as_echo_n "(cached) " >&6
4499 else
4500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h.  */
4502 #include <stdlib.h>
4503 #include <stdarg.h>
4504 #include <string.h>
4505 #include <float.h>
4506
4507 int
4508 main ()
4509 {
4510
4511   ;
4512   return 0;
4513 }
4514 _ACEOF
4515 if ac_fn_c_try_compile "$LINENO"; then :
4516   ac_cv_header_stdc=yes
4517 else
4518   ac_cv_header_stdc=no
4519 fi
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521
4522 if test $ac_cv_header_stdc = yes; then
4523   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526 #include <string.h>
4527
4528 _ACEOF
4529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4530   $EGREP "memchr" >/dev/null 2>&1; then :
4531
4532 else
4533   ac_cv_header_stdc=no
4534 fi
4535 rm -f conftest*
4536
4537 fi
4538
4539 if test $ac_cv_header_stdc = yes; then
4540   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h.  */
4543 #include <stdlib.h>
4544
4545 _ACEOF
4546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4547   $EGREP "free" >/dev/null 2>&1; then :
4548
4549 else
4550   ac_cv_header_stdc=no
4551 fi
4552 rm -f conftest*
4553
4554 fi
4555
4556 if test $ac_cv_header_stdc = yes; then
4557   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4558   if test "$cross_compiling" = yes; then :
4559   :
4560 else
4561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h.  */
4563 #include <ctype.h>
4564 #include <stdlib.h>
4565 #if ((' ' & 0x0FF) == 0x020)
4566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4568 #else
4569 # define ISLOWER(c) \
4570                    (('a' <= (c) && (c) <= 'i') \
4571                      || ('j' <= (c) && (c) <= 'r') \
4572                      || ('s' <= (c) && (c) <= 'z'))
4573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4574 #endif
4575
4576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4577 int
4578 main ()
4579 {
4580   int i;
4581   for (i = 0; i < 256; i++)
4582     if (XOR (islower (i), ISLOWER (i))
4583         || toupper (i) != TOUPPER (i))
4584       return 2;
4585   return 0;
4586 }
4587 _ACEOF
4588 if ac_fn_c_try_run "$LINENO"; then :
4589
4590 else
4591   ac_cv_header_stdc=no
4592 fi
4593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4594   conftest.$ac_objext conftest.beam conftest.$ac_ext
4595 fi
4596
4597 fi
4598 fi
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4600 $as_echo "$ac_cv_header_stdc" >&6; }
4601 if test $ac_cv_header_stdc = yes; then
4602
4603 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4604
4605 fi
4606
4607 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4608 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4609                   inttypes.h stdint.h unistd.h
4610 do :
4611   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4612 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4613 "
4614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4615   cat >>confdefs.h <<_ACEOF
4616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4617 _ACEOF
4618
4619 fi
4620
4621 done
4622
4623
4624 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4625 if test "x$ac_cv_type_off_t" = xyes; then :
4626
4627 else
4628
4629 cat >>confdefs.h <<_ACEOF
4630 #define off_t long int
4631 _ACEOF
4632
4633 fi
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4636 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4637 if ${ac_cv_sys_largefile_source+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   while :; do
4641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h.  */
4643 #include <sys/types.h> /* for off_t */
4644      #include <stdio.h>
4645 int
4646 main ()
4647 {
4648 int (*fp) (FILE *, off_t, int) = fseeko;
4649      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 if ac_fn_c_try_link "$LINENO"; then :
4655   ac_cv_sys_largefile_source=no; break
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext \
4658     conftest$ac_exeext conftest.$ac_ext
4659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h.  */
4661 #define _LARGEFILE_SOURCE 1
4662 #include <sys/types.h> /* for off_t */
4663      #include <stdio.h>
4664 int
4665 main ()
4666 {
4667 int (*fp) (FILE *, off_t, int) = fseeko;
4668      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4669   ;
4670   return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_c_try_link "$LINENO"; then :
4674   ac_cv_sys_largefile_source=1; break
4675 fi
4676 rm -f core conftest.err conftest.$ac_objext \
4677     conftest$ac_exeext conftest.$ac_ext
4678   ac_cv_sys_largefile_source=unknown
4679   break
4680 done
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4683 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4684 case $ac_cv_sys_largefile_source in #(
4685   no | unknown) ;;
4686   *)
4687 cat >>confdefs.h <<_ACEOF
4688 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4689 _ACEOF
4690 ;;
4691 esac
4692 rm -rf conftest*
4693
4694 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4695 # in glibc 2.1.3, but that breaks too many other things.
4696 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4697 if test $ac_cv_sys_largefile_source != unknown; then
4698
4699 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4700
4701 fi
4702
4703
4704
4705 # Checks lib build
4706 if test -n "$ac_tool_prefix"; then
4707   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4708 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if ${ac_cv_prog_RANLIB+:} false; then :
4712   $as_echo_n "(cached) " >&6
4713 else
4714   if test -n "$RANLIB"; then
4715   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722     for ac_exec_ext in '' $ac_executable_extensions; do
4723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726     break 2
4727   fi
4728 done
4729   done
4730 IFS=$as_save_IFS
4731
4732 fi
4733 fi
4734 RANLIB=$ac_cv_prog_RANLIB
4735 if test -n "$RANLIB"; then
4736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4737 $as_echo "$RANLIB" >&6; }
4738 else
4739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4741 fi
4742
4743
4744 fi
4745 if test -z "$ac_cv_prog_RANLIB"; then
4746   ac_ct_RANLIB=$RANLIB
4747   # Extract the first word of "ranlib", so it can be a program name with args.
4748 set dummy ranlib; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   if test -n "$ac_ct_RANLIB"; then
4755   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762     for ac_exec_ext in '' $ac_executable_extensions; do
4763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764     ac_cv_prog_ac_ct_RANLIB="ranlib"
4765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769   done
4770 IFS=$as_save_IFS
4771
4772 fi
4773 fi
4774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4775 if test -n "$ac_ct_RANLIB"; then
4776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4777 $as_echo "$ac_ct_RANLIB" >&6; }
4778 else
4779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4781 fi
4782
4783   if test "x$ac_ct_RANLIB" = x; then
4784     RANLIB=":"
4785   else
4786     case $cross_compiling:$ac_tool_warned in
4787 yes:)
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4790 ac_tool_warned=yes ;;
4791 esac
4792     RANLIB=$ac_ct_RANLIB
4793   fi
4794 else
4795   RANLIB="$ac_cv_prog_RANLIB"
4796 fi
4797
4798 if test -n "$ac_tool_prefix"; then
4799   for ac_prog in ar lib "link -lib"
4800   do
4801     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_AR+:} false; then :
4806   $as_echo_n "(cached) " >&6
4807 else
4808   if test -n "$AR"; then
4809   ac_cv_prog_AR="$AR" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814   IFS=$as_save_IFS
4815   test -z "$as_dir" && as_dir=.
4816     for ac_exec_ext in '' $ac_executable_extensions; do
4817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820     break 2
4821   fi
4822 done
4823   done
4824 IFS=$as_save_IFS
4825
4826 fi
4827 fi
4828 AR=$ac_cv_prog_AR
4829 if test -n "$AR"; then
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4831 $as_echo "$AR" >&6; }
4832 else
4833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4835 fi
4836
4837
4838     test -n "$AR" && break
4839   done
4840 fi
4841 if test -z "$AR"; then
4842   ac_ct_AR=$AR
4843   for ac_prog in ar lib "link -lib"
4844 do
4845   # Extract the first word of "$ac_prog", so it can be a program name with args.
4846 set dummy $ac_prog; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4850   $as_echo_n "(cached) " >&6
4851 else
4852   if test -n "$ac_ct_AR"; then
4853   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858   IFS=$as_save_IFS
4859   test -z "$as_dir" && as_dir=.
4860     for ac_exec_ext in '' $ac_executable_extensions; do
4861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862     ac_cv_prog_ac_ct_AR="$ac_prog"
4863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864     break 2
4865   fi
4866 done
4867   done
4868 IFS=$as_save_IFS
4869
4870 fi
4871 fi
4872 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4873 if test -n "$ac_ct_AR"; then
4874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4875 $as_echo "$ac_ct_AR" >&6; }
4876 else
4877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4879 fi
4880
4881
4882   test -n "$ac_ct_AR" && break
4883 done
4884
4885   if test "x$ac_ct_AR" = x; then
4886     AR="false"
4887   else
4888     case $cross_compiling:$ac_tool_warned in
4889 yes:)
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892 ac_tool_warned=yes ;;
4893 esac
4894     AR=$ac_ct_AR
4895   fi
4896 fi
4897
4898 : ${AR=ar}
4899
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4901 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4902 if ${am_cv_ar_interface+:} false; then :
4903   $as_echo_n "(cached) " >&6
4904 else
4905   am_cv_ar_interface=ar
4906    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h.  */
4908 int some_variable = 0;
4909 _ACEOF
4910 if ac_fn_c_try_compile "$LINENO"; then :
4911   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4912       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4913   (eval $am_ar_try) 2>&5
4914   ac_status=$?
4915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4916   test $ac_status = 0; }
4917       if test "$ac_status" -eq 0; then
4918         am_cv_ar_interface=ar
4919       else
4920         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4921         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4922   (eval $am_ar_try) 2>&5
4923   ac_status=$?
4924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4925   test $ac_status = 0; }
4926         if test "$ac_status" -eq 0; then
4927           am_cv_ar_interface=lib
4928         else
4929           am_cv_ar_interface=unknown
4930         fi
4931       fi
4932       rm -f conftest.lib libconftest.a
4933
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4939 $as_echo "$am_cv_ar_interface" >&6; }
4940
4941 case $am_cv_ar_interface in
4942 ar)
4943   ;;
4944 lib)
4945   # Microsoft lib, so override with the ar-lib wrapper script.
4946   # FIXME: It is wrong to rewrite AR.
4947   # But if we don't then we get into trouble of one sort or another.
4948   # A longer-term fix would be to have automake use am__AR in this case,
4949   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4950   # similar.
4951   AR="$am_aux_dir/ar-lib $AR"
4952   ;;
4953 unknown)
4954   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4955   ;;
4956 esac
4957
4958
4959 # Checks for header files.
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4961 $as_echo_n "checking for X... " >&6; }
4962
4963
4964 # Check whether --with-x was given.
4965 if test "${with_x+set}" = set; then :
4966   withval=$with_x;
4967 fi
4968
4969 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4970 if test "x$with_x" = xno; then
4971   # The user explicitly disabled X.
4972   have_x=disabled
4973 else
4974   case $x_includes,$x_libraries in #(
4975     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4976     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979   # One or both of the vars are not set, and there is no cached value.
4980 ac_x_includes=no ac_x_libraries=no
4981 rm -f -r conftest.dir
4982 if mkdir conftest.dir; then
4983   cd conftest.dir
4984   cat >Imakefile <<'_ACEOF'
4985 incroot:
4986         @echo incroot='${INCROOT}'
4987 usrlibdir:
4988         @echo usrlibdir='${USRLIBDIR}'
4989 libdir:
4990         @echo libdir='${LIBDIR}'
4991 _ACEOF
4992   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4993     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4994     for ac_var in incroot usrlibdir libdir; do
4995       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4996     done
4997     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4998     for ac_extension in a so sl dylib la dll; do
4999       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5000          test -f "$ac_im_libdir/libX11.$ac_extension"; then
5001         ac_im_usrlibdir=$ac_im_libdir; break
5002       fi
5003     done
5004     # Screen out bogus values from the imake configuration.  They are
5005     # bogus both because they are the default anyway, and because
5006     # using them would break gcc on systems where it needs fixed includes.
5007     case $ac_im_incroot in
5008         /usr/include) ac_x_includes= ;;
5009         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5010     esac
5011     case $ac_im_usrlibdir in
5012         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5013         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5014     esac
5015   fi
5016   cd ..
5017   rm -f -r conftest.dir
5018 fi
5019
5020 # Standard set of common directories for X headers.
5021 # Check X11 before X11Rn because it is often a symlink to the current release.
5022 ac_x_header_dirs='
5023 /usr/X11/include
5024 /usr/X11R7/include
5025 /usr/X11R6/include
5026 /usr/X11R5/include
5027 /usr/X11R4/include
5028
5029 /usr/include/X11
5030 /usr/include/X11R7
5031 /usr/include/X11R6
5032 /usr/include/X11R5
5033 /usr/include/X11R4
5034
5035 /usr/local/X11/include
5036 /usr/local/X11R7/include
5037 /usr/local/X11R6/include
5038 /usr/local/X11R5/include
5039 /usr/local/X11R4/include
5040
5041 /usr/local/include/X11
5042 /usr/local/include/X11R7
5043 /usr/local/include/X11R6
5044 /usr/local/include/X11R5
5045 /usr/local/include/X11R4
5046
5047 /usr/X386/include
5048 /usr/x386/include
5049 /usr/XFree86/include/X11
5050
5051 /usr/include
5052 /usr/local/include
5053 /usr/unsupported/include
5054 /usr/athena/include
5055 /usr/local/x11r5/include
5056 /usr/lpp/Xamples/include
5057
5058 /usr/openwin/include
5059 /usr/openwin/share/include'
5060
5061 if test "$ac_x_includes" = no; then
5062   # Guess where to find include files, by looking for Xlib.h.
5063   # First, try using that file with no special directory specified.
5064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h.  */
5066 #include <X11/Xlib.h>
5067 _ACEOF
5068 if ac_fn_c_try_cpp "$LINENO"; then :
5069   # We can compile using X headers with no special include directory.
5070 ac_x_includes=
5071 else
5072   for ac_dir in $ac_x_header_dirs; do
5073   if test -r "$ac_dir/X11/Xlib.h"; then
5074     ac_x_includes=$ac_dir
5075     break
5076   fi
5077 done
5078 fi
5079 rm -f conftest.err conftest.i conftest.$ac_ext
5080 fi # $ac_x_includes = no
5081
5082 if test "$ac_x_libraries" = no; then
5083   # Check for the libraries.
5084   # See if we find them without any special options.
5085   # Don't add to $LIBS permanently.
5086   ac_save_LIBS=$LIBS
5087   LIBS="-lX11 $LIBS"
5088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h.  */
5090 #include <X11/Xlib.h>
5091 int
5092 main ()
5093 {
5094 XrmInitialize ()
5095   ;
5096   return 0;
5097 }
5098 _ACEOF
5099 if ac_fn_c_try_link "$LINENO"; then :
5100   LIBS=$ac_save_LIBS
5101 # We can link X programs with no special library path.
5102 ac_x_libraries=
5103 else
5104   LIBS=$ac_save_LIBS
5105 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5106 do
5107   # Don't even attempt the hair of trying to link an X program!
5108   for ac_extension in a so sl dylib la dll; do
5109     if test -r "$ac_dir/libX11.$ac_extension"; then
5110       ac_x_libraries=$ac_dir
5111       break 2
5112     fi
5113   done
5114 done
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext \
5117     conftest$ac_exeext conftest.$ac_ext
5118 fi # $ac_x_libraries = no
5119
5120 case $ac_x_includes,$ac_x_libraries in #(
5121   no,* | *,no | *\'*)
5122     # Didn't find X, or a directory has "'" in its name.
5123     ac_cv_have_x="have_x=no";; #(
5124   *)
5125     # Record where we found X for the cache.
5126     ac_cv_have_x="have_x=yes\
5127         ac_x_includes='$ac_x_includes'\
5128         ac_x_libraries='$ac_x_libraries'"
5129 esac
5130 fi
5131 ;; #(
5132     *) have_x=yes;;
5133   esac
5134   eval "$ac_cv_have_x"
5135 fi # $with_x != no
5136
5137 if test "$have_x" != yes; then
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5139 $as_echo "$have_x" >&6; }
5140   no_x=yes
5141 else
5142   # If each of the values was on the command line, it overrides each guess.
5143   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5144   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5145   # Update the cache value to reflect the command line values.
5146   ac_cv_have_x="have_x=yes\
5147         ac_x_includes='$x_includes'\
5148         ac_x_libraries='$x_libraries'"
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5150 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5151 fi
5152
5153 for ac_header in stdbool.h
5154 do :
5155   ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
5156 if test "x$ac_cv_header_stdbool_h" = xyes; then :
5157   cat >>confdefs.h <<_ACEOF
5158 #define HAVE_STDBOOL_H 1
5159 _ACEOF
5160
5161 fi
5162
5163 done
5164
5165
5166 # Checks for typedefs, structures, and compiler characteristics.
5167 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5168 if test "x$ac_cv_type_size_t" = xyes; then :
5169
5170 else
5171
5172 cat >>confdefs.h <<_ACEOF
5173 #define size_t unsigned int
5174 _ACEOF
5175
5176 fi
5177
5178 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5179 if test "x$ac_cv_type_ssize_t" = xyes; then :
5180
5181 else
5182
5183 cat >>confdefs.h <<_ACEOF
5184 #define ssize_t int
5185 _ACEOF
5186
5187 fi
5188
5189
5190 # Checks for library functions.
5191 for ac_header in stdlib.h
5192 do :
5193   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5194 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5195   cat >>confdefs.h <<_ACEOF
5196 #define HAVE_STDLIB_H 1
5197 _ACEOF
5198
5199 fi
5200
5201 done
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5204 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5205 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5206   $as_echo_n "(cached) " >&6
5207 else
5208   if test "$cross_compiling" = yes; then :
5209   ac_cv_func_malloc_0_nonnull=no
5210 else
5211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h.  */
5213 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5214 # include <stdlib.h>
5215 #else
5216 char *malloc ();
5217 #endif
5218
5219 int
5220 main ()
5221 {
5222 return ! malloc (0);
5223   ;
5224   return 0;
5225 }
5226 _ACEOF
5227 if ac_fn_c_try_run "$LINENO"; then :
5228   ac_cv_func_malloc_0_nonnull=yes
5229 else
5230   ac_cv_func_malloc_0_nonnull=no
5231 fi
5232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5233   conftest.$ac_objext conftest.beam conftest.$ac_ext
5234 fi
5235
5236 fi
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5238 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5239 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5240
5241 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5242
5243 else
5244   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5245
5246    case " $LIBOBJS " in
5247   *" malloc.$ac_objext "* ) ;;
5248   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5249  ;;
5250 esac
5251
5252
5253 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5254
5255 fi
5256
5257
5258 for ac_header in stdlib.h
5259 do :
5260   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5261 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5262   cat >>confdefs.h <<_ACEOF
5263 #define HAVE_STDLIB_H 1
5264 _ACEOF
5265
5266 fi
5267
5268 done
5269
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
5271 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5272 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
5273   $as_echo_n "(cached) " >&6
5274 else
5275   if test "$cross_compiling" = yes; then :
5276   ac_cv_func_realloc_0_nonnull=no
5277 else
5278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h.  */
5280 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5281 # include <stdlib.h>
5282 #else
5283 char *realloc ();
5284 #endif
5285
5286 int
5287 main ()
5288 {
5289 return ! realloc (0, 0);
5290   ;
5291   return 0;
5292 }
5293 _ACEOF
5294 if ac_fn_c_try_run "$LINENO"; then :
5295   ac_cv_func_realloc_0_nonnull=yes
5296 else
5297   ac_cv_func_realloc_0_nonnull=no
5298 fi
5299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5300   conftest.$ac_objext conftest.beam conftest.$ac_ext
5301 fi
5302
5303 fi
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
5305 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5306 if test $ac_cv_func_realloc_0_nonnull = yes; then :
5307
5308 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
5309
5310 else
5311   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
5312
5313    case " $LIBOBJS " in
5314   *" realloc.$ac_objext "* ) ;;
5315   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5316  ;;
5317 esac
5318
5319
5320 $as_echo "#define realloc rpl_realloc" >>confdefs.h
5321
5322 fi
5323
5324
5325 for ac_func in gettimeofday memmove socket strdup strtol
5326 do :
5327   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5328 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5329 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5330   cat >>confdefs.h <<_ACEOF
5331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5332 _ACEOF
5333
5334 fi
5335 done
5336
5337
5338
5339
5340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5341 $as_echo_n "checking whether NLS is requested... " >&6; }
5342     # Check whether --enable-nls was given.
5343 if test "${enable_nls+set}" = set; then :
5344   enableval=$enable_nls; USE_NLS=$enableval
5345 else
5346   USE_NLS=yes
5347 fi
5348
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5350 $as_echo "$USE_NLS" >&6; }
5351
5352
5353
5354
5355       GETTEXT_MACRO_VERSION=0.18
5356
5357
5358
5359
5360 # Prepare PATH_SEPARATOR.
5361 # The user is always right.
5362 if test "${PATH_SEPARATOR+set}" != set; then
5363   echo "#! /bin/sh" >conf$$.sh
5364   echo  "exit 0"   >>conf$$.sh
5365   chmod +x conf$$.sh
5366   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5367     PATH_SEPARATOR=';'
5368   else
5369     PATH_SEPARATOR=:
5370   fi
5371   rm -f conf$$.sh
5372 fi
5373
5374 # Find out how to test for executable files. Don't use a zero-byte file,
5375 # as systems may use methods other than mode bits to determine executability.
5376 cat >conf$$.file <<_ASEOF
5377 #! /bin/sh
5378 exit 0
5379 _ASEOF
5380 chmod +x conf$$.file
5381 if test -x conf$$.file >/dev/null 2>&1; then
5382   ac_executable_p="test -x"
5383 else
5384   ac_executable_p="test -f"
5385 fi
5386 rm -f conf$$.file
5387
5388 # Extract the first word of "msgfmt", so it can be a program name with args.
5389 set dummy msgfmt; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_path_MSGFMT+:} false; then :
5393   $as_echo_n "(cached) " >&6
5394 else
5395   case "$MSGFMT" in
5396   [\\/]* | ?:[\\/]*)
5397     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5398     ;;
5399   *)
5400     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5401     for ac_dir in $PATH; do
5402       IFS="$ac_save_IFS"
5403       test -z "$ac_dir" && ac_dir=.
5404       for ac_exec_ext in '' $ac_executable_extensions; do
5405         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5406           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5407           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5408      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5409             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5410             break 2
5411           fi
5412         fi
5413       done
5414     done
5415     IFS="$ac_save_IFS"
5416   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5417     ;;
5418 esac
5419 fi
5420 MSGFMT="$ac_cv_path_MSGFMT"
5421 if test "$MSGFMT" != ":"; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5423 $as_echo "$MSGFMT" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5430 set dummy gmsgfmt; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if ${ac_cv_path_GMSGFMT+:} false; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   case $GMSGFMT in
5437   [\\/]* | ?:[\\/]*)
5438   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5439   ;;
5440   *)
5441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444   IFS=$as_save_IFS
5445   test -z "$as_dir" && as_dir=.
5446     for ac_exec_ext in '' $ac_executable_extensions; do
5447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450     break 2
5451   fi
5452 done
5453   done
5454 IFS=$as_save_IFS
5455
5456   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5457   ;;
5458 esac
5459 fi
5460 GMSGFMT=$ac_cv_path_GMSGFMT
5461 if test -n "$GMSGFMT"; then
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5463 $as_echo "$GMSGFMT" >&6; }
5464 else
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468
5469
5470
5471     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5472     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5473     *) MSGFMT_015=$MSGFMT ;;
5474   esac
5475
5476   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5477     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5478     *) GMSGFMT_015=$GMSGFMT ;;
5479   esac
5480
5481
5482
5483 # Prepare PATH_SEPARATOR.
5484 # The user is always right.
5485 if test "${PATH_SEPARATOR+set}" != set; then
5486   echo "#! /bin/sh" >conf$$.sh
5487   echo  "exit 0"   >>conf$$.sh
5488   chmod +x conf$$.sh
5489   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5490     PATH_SEPARATOR=';'
5491   else
5492     PATH_SEPARATOR=:
5493   fi
5494   rm -f conf$$.sh
5495 fi
5496
5497 # Find out how to test for executable files. Don't use a zero-byte file,
5498 # as systems may use methods other than mode bits to determine executability.
5499 cat >conf$$.file <<_ASEOF
5500 #! /bin/sh
5501 exit 0
5502 _ASEOF
5503 chmod +x conf$$.file
5504 if test -x conf$$.file >/dev/null 2>&1; then
5505   ac_executable_p="test -x"
5506 else
5507   ac_executable_p="test -f"
5508 fi
5509 rm -f conf$$.file
5510
5511 # Extract the first word of "xgettext", so it can be a program name with args.
5512 set dummy xgettext; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_path_XGETTEXT+:} false; then :
5516   $as_echo_n "(cached) " >&6
5517 else
5518   case "$XGETTEXT" in
5519   [\\/]* | ?:[\\/]*)
5520     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5521     ;;
5522   *)
5523     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5524     for ac_dir in $PATH; do
5525       IFS="$ac_save_IFS"
5526       test -z "$ac_dir" && ac_dir=.
5527       for ac_exec_ext in '' $ac_executable_extensions; do
5528         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5529           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5530           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5531      (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
5532             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5533             break 2
5534           fi
5535         fi
5536       done
5537     done
5538     IFS="$ac_save_IFS"
5539   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5540     ;;
5541 esac
5542 fi
5543 XGETTEXT="$ac_cv_path_XGETTEXT"
5544 if test "$XGETTEXT" != ":"; then
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5546 $as_echo "$XGETTEXT" >&6; }
5547 else
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551
5552     rm -f messages.po
5553
5554     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5555     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5556     *) XGETTEXT_015=$XGETTEXT ;;
5557   esac
5558
5559
5560
5561 # Prepare PATH_SEPARATOR.
5562 # The user is always right.
5563 if test "${PATH_SEPARATOR+set}" != set; then
5564   echo "#! /bin/sh" >conf$$.sh
5565   echo  "exit 0"   >>conf$$.sh
5566   chmod +x conf$$.sh
5567   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5568     PATH_SEPARATOR=';'
5569   else
5570     PATH_SEPARATOR=:
5571   fi
5572   rm -f conf$$.sh
5573 fi
5574
5575 # Find out how to test for executable files. Don't use a zero-byte file,
5576 # as systems may use methods other than mode bits to determine executability.
5577 cat >conf$$.file <<_ASEOF
5578 #! /bin/sh
5579 exit 0
5580 _ASEOF
5581 chmod +x conf$$.file
5582 if test -x conf$$.file >/dev/null 2>&1; then
5583   ac_executable_p="test -x"
5584 else
5585   ac_executable_p="test -f"
5586 fi
5587 rm -f conf$$.file
5588
5589 # Extract the first word of "msgmerge", so it can be a program name with args.
5590 set dummy msgmerge; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_path_MSGMERGE+:} false; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   case "$MSGMERGE" in
5597   [\\/]* | ?:[\\/]*)
5598     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5599     ;;
5600   *)
5601     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5602     for ac_dir in $PATH; do
5603       IFS="$ac_save_IFS"
5604       test -z "$ac_dir" && ac_dir=.
5605       for ac_exec_ext in '' $ac_executable_extensions; do
5606         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5607           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5608           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5609             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5610             break 2
5611           fi
5612         fi
5613       done
5614     done
5615     IFS="$ac_save_IFS"
5616   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5617     ;;
5618 esac
5619 fi
5620 MSGMERGE="$ac_cv_path_MSGMERGE"
5621 if test "$MSGMERGE" != ":"; then
5622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5623 $as_echo "$MSGMERGE" >&6; }
5624 else
5625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 $as_echo "no" >&6; }
5627 fi
5628
5629
5630         test -n "$localedir" || localedir='${datadir}/locale'
5631
5632
5633     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5634
5635
5636   ac_config_commands="$ac_config_commands po-directories"
5637
5638
5639
5640       if test "X$prefix" = "XNONE"; then
5641     acl_final_prefix="$ac_default_prefix"
5642   else
5643     acl_final_prefix="$prefix"
5644   fi
5645   if test "X$exec_prefix" = "XNONE"; then
5646     acl_final_exec_prefix='${prefix}'
5647   else
5648     acl_final_exec_prefix="$exec_prefix"
5649   fi
5650   acl_save_prefix="$prefix"
5651   prefix="$acl_final_prefix"
5652   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5653   prefix="$acl_save_prefix"
5654
5655 # Make sure we can run config.sub.
5656 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5657   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5660 $as_echo_n "checking build system type... " >&6; }
5661 if ${ac_cv_build+:} false; then :
5662   $as_echo_n "(cached) " >&6
5663 else
5664   ac_build_alias=$build_alias
5665 test "x$ac_build_alias" = x &&
5666   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5667 test "x$ac_build_alias" = x &&
5668   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5669 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5670   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5671
5672 fi
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5674 $as_echo "$ac_cv_build" >&6; }
5675 case $ac_cv_build in
5676 *-*-*) ;;
5677 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5678 esac
5679 build=$ac_cv_build
5680 ac_save_IFS=$IFS; IFS='-'
5681 set x $ac_cv_build
5682 shift
5683 build_cpu=$1
5684 build_vendor=$2
5685 shift; shift
5686 # Remember, the first character of IFS is used to create $*,
5687 # except with old shells:
5688 build_os=$*
5689 IFS=$ac_save_IFS
5690 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5691
5692
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5694 $as_echo_n "checking host system type... " >&6; }
5695 if ${ac_cv_host+:} false; then :
5696   $as_echo_n "(cached) " >&6
5697 else
5698   if test "x$host_alias" = x; then
5699   ac_cv_host=$ac_cv_build
5700 else
5701   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5702     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5703 fi
5704
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5707 $as_echo "$ac_cv_host" >&6; }
5708 case $ac_cv_host in
5709 *-*-*) ;;
5710 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5711 esac
5712 host=$ac_cv_host
5713 ac_save_IFS=$IFS; IFS='-'
5714 set x $ac_cv_host
5715 shift
5716 host_cpu=$1
5717 host_vendor=$2
5718 shift; shift
5719 # Remember, the first character of IFS is used to create $*,
5720 # except with old shells:
5721 host_os=$*
5722 IFS=$ac_save_IFS
5723 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5724
5725
5726
5727 # Check whether --with-gnu-ld was given.
5728 if test "${with_gnu_ld+set}" = set; then :
5729   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5730 else
5731   with_gnu_ld=no
5732 fi
5733
5734 # Prepare PATH_SEPARATOR.
5735 # The user is always right.
5736 if test "${PATH_SEPARATOR+set}" != set; then
5737   echo "#! /bin/sh" >conf$$.sh
5738   echo  "exit 0"   >>conf$$.sh
5739   chmod +x conf$$.sh
5740   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5741     PATH_SEPARATOR=';'
5742   else
5743     PATH_SEPARATOR=:
5744   fi
5745   rm -f conf$$.sh
5746 fi
5747 ac_prog=ld
5748 if test "$GCC" = yes; then
5749   # Check if gcc -print-prog-name=ld gives a path.
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5751 $as_echo_n "checking for ld used by GCC... " >&6; }
5752   case $host in
5753   *-*-mingw*)
5754     # gcc leaves a trailing carriage return which upsets mingw
5755     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5756   *)
5757     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5758   esac
5759   case $ac_prog in
5760     # Accept absolute paths.
5761     [\\/]* | [A-Za-z]:[\\/]*)
5762       re_direlt='/[^/][^/]*/\.\./'
5763       # Canonicalize the path of ld
5764       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5765       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5766         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5767       done
5768       test -z "$LD" && LD="$ac_prog"
5769       ;;
5770   "")
5771     # If it fails, then pretend we aren't using GCC.
5772     ac_prog=ld
5773     ;;
5774   *)
5775     # If it is relative, then search for the first ld in PATH.
5776     with_gnu_ld=unknown
5777     ;;
5778   esac
5779 elif test "$with_gnu_ld" = yes; then
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5781 $as_echo_n "checking for GNU ld... " >&6; }
5782 else
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5784 $as_echo_n "checking for non-GNU ld... " >&6; }
5785 fi
5786 if ${acl_cv_path_LD+:} false; then :
5787   $as_echo_n "(cached) " >&6
5788 else
5789   if test -z "$LD"; then
5790   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5791   for ac_dir in $PATH; do
5792     test -z "$ac_dir" && ac_dir=.
5793     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5794       acl_cv_path_LD="$ac_dir/$ac_prog"
5795       # Check to see if the program is GNU ld.  I'd rather use --version,
5796       # but apparently some GNU ld's only accept -v.
5797       # Break only if it was the GNU/non-GNU ld that we prefer.
5798       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5799       *GNU* | *'with BFD'*)
5800         test "$with_gnu_ld" != no && break ;;
5801       *)
5802         test "$with_gnu_ld" != yes && break ;;
5803       esac
5804     fi
5805   done
5806   IFS="$ac_save_ifs"
5807 else
5808   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5809 fi
5810 fi
5811
5812 LD="$acl_cv_path_LD"
5813 if test -n "$LD"; then
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5815 $as_echo "$LD" >&6; }
5816 else
5817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5822 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5823 if ${acl_cv_prog_gnu_ld+:} false; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5827 case `$LD -v 2>&1 </dev/null` in
5828 *GNU* | *'with BFD'*)
5829   acl_cv_prog_gnu_ld=yes ;;
5830 *)
5831   acl_cv_prog_gnu_ld=no ;;
5832 esac
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5835 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5836 with_gnu_ld=$acl_cv_prog_gnu_ld
5837
5838
5839
5840
5841                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5842 $as_echo_n "checking for shared library run path origin... " >&6; }
5843 if ${acl_cv_rpath+:} false; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846
5847     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5848     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5849     . ./conftest.sh
5850     rm -f ./conftest.sh
5851     acl_cv_rpath=done
5852
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5855 $as_echo "$acl_cv_rpath" >&6; }
5856   wl="$acl_cv_wl"
5857   acl_libext="$acl_cv_libext"
5858   acl_shlibext="$acl_cv_shlibext"
5859   acl_libname_spec="$acl_cv_libname_spec"
5860   acl_library_names_spec="$acl_cv_library_names_spec"
5861   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5862   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5863   acl_hardcode_direct="$acl_cv_hardcode_direct"
5864   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5865     # Check whether --enable-rpath was given.
5866 if test "${enable_rpath+set}" = set; then :
5867   enableval=$enable_rpath; :
5868 else
5869   enable_rpath=yes
5870 fi
5871
5872
5873
5874
5875   acl_libdirstem=lib
5876   acl_libdirstem2=
5877   case "$host_os" in
5878     solaris*)
5879                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5880 $as_echo_n "checking for 64-bit host... " >&6; }
5881 if ${gl_cv_solaris_64bit+:} false; then :
5882   $as_echo_n "(cached) " >&6
5883 else
5884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h.  */
5886
5887 #ifdef _LP64
5888 sixtyfour bits
5889 #endif
5890
5891 _ACEOF
5892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5894   gl_cv_solaris_64bit=yes
5895 else
5896   gl_cv_solaris_64bit=no
5897 fi
5898 rm -f conftest*
5899
5900
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5903 $as_echo "$gl_cv_solaris_64bit" >&6; }
5904       if test $gl_cv_solaris_64bit = yes; then
5905         acl_libdirstem=lib/64
5906         case "$host_cpu" in
5907           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
5908           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5909         esac
5910       fi
5911       ;;
5912     *)
5913       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5914       if test -n "$searchpath"; then
5915         acl_save_IFS="${IFS=    }"; IFS=":"
5916         for searchdir in $searchpath; do
5917           if test -d "$searchdir"; then
5918             case "$searchdir" in
5919               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5920               */../ | */.. )
5921                 # Better ignore directories of this form. They are misleading.
5922                 ;;
5923               *) searchdir=`cd "$searchdir" && pwd`
5924                  case "$searchdir" in
5925                    */lib64 ) acl_libdirstem=lib64 ;;
5926                  esac ;;
5927             esac
5928           fi
5929         done
5930         IFS="$acl_save_IFS"
5931       fi
5932       ;;
5933   esac
5934   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947     use_additional=yes
5948
5949   acl_save_prefix="$prefix"
5950   prefix="$acl_final_prefix"
5951   acl_save_exec_prefix="$exec_prefix"
5952   exec_prefix="$acl_final_exec_prefix"
5953
5954     eval additional_includedir=\"$includedir\"
5955     eval additional_libdir=\"$libdir\"
5956
5957   exec_prefix="$acl_save_exec_prefix"
5958   prefix="$acl_save_prefix"
5959
5960
5961 # Check whether --with-libiconv-prefix was given.
5962 if test "${with_libiconv_prefix+set}" = set; then :
5963   withval=$with_libiconv_prefix;
5964     if test "X$withval" = "Xno"; then
5965       use_additional=no
5966     else
5967       if test "X$withval" = "X"; then
5968
5969   acl_save_prefix="$prefix"
5970   prefix="$acl_final_prefix"
5971   acl_save_exec_prefix="$exec_prefix"
5972   exec_prefix="$acl_final_exec_prefix"
5973
5974           eval additional_includedir=\"$includedir\"
5975           eval additional_libdir=\"$libdir\"
5976
5977   exec_prefix="$acl_save_exec_prefix"
5978   prefix="$acl_save_prefix"
5979
5980       else
5981         additional_includedir="$withval/include"
5982         additional_libdir="$withval/$acl_libdirstem"
5983         if test "$acl_libdirstem2" != "$acl_libdirstem" \
5984            && ! test -d "$withval/$acl_libdirstem"; then
5985           additional_libdir="$withval/$acl_libdirstem2"
5986         fi
5987       fi
5988     fi
5989
5990 fi
5991
5992       LIBICONV=
5993   LTLIBICONV=
5994   INCICONV=
5995   LIBICONV_PREFIX=
5996       HAVE_LIBICONV=
5997   rpathdirs=
5998   ltrpathdirs=
5999   names_already_handled=
6000   names_next_round='iconv '
6001   while test -n "$names_next_round"; do
6002     names_this_round="$names_next_round"
6003     names_next_round=
6004     for name in $names_this_round; do
6005       already_handled=
6006       for n in $names_already_handled; do
6007         if test "$n" = "$name"; then
6008           already_handled=yes
6009           break
6010         fi
6011       done
6012       if test -z "$already_handled"; then
6013         names_already_handled="$names_already_handled $name"
6014                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6015         eval value=\"\$HAVE_LIB$uppername\"
6016         if test -n "$value"; then
6017           if test "$value" = yes; then
6018             eval value=\"\$LIB$uppername\"
6019             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6020             eval value=\"\$LTLIB$uppername\"
6021             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6022           else
6023                                     :
6024           fi
6025         else
6026                               found_dir=
6027           found_la=
6028           found_so=
6029           found_a=
6030           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6031           if test -n "$acl_shlibext"; then
6032             shrext=".$acl_shlibext"             # typically: shrext=.so
6033           else
6034             shrext=
6035           fi
6036           if test $use_additional = yes; then
6037             dir="$additional_libdir"
6038                                     if test -n "$acl_shlibext"; then
6039               if test -f "$dir/$libname$shrext"; then
6040                 found_dir="$dir"
6041                 found_so="$dir/$libname$shrext"
6042               else
6043                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6044                   ver=`(cd "$dir" && \
6045                         for f in "$libname$shrext".*; do echo "$f"; done \
6046                         | sed -e "s,^$libname$shrext\\\\.,," \
6047                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6048                         | sed 1q ) 2>/dev/null`
6049                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6050                     found_dir="$dir"
6051                     found_so="$dir/$libname$shrext.$ver"
6052                   fi
6053                 else
6054                   eval library_names=\"$acl_library_names_spec\"
6055                   for f in $library_names; do
6056                     if test -f "$dir/$f"; then
6057                       found_dir="$dir"
6058                       found_so="$dir/$f"
6059                       break
6060                     fi
6061                   done
6062                 fi
6063               fi
6064             fi
6065                         if test "X$found_dir" = "X"; then
6066               if test -f "$dir/$libname.$acl_libext"; then
6067                 found_dir="$dir"
6068                 found_a="$dir/$libname.$acl_libext"
6069               fi
6070             fi
6071             if test "X$found_dir" != "X"; then
6072               if test -f "$dir/$libname.la"; then
6073                 found_la="$dir/$libname.la"
6074               fi
6075             fi
6076           fi
6077           if test "X$found_dir" = "X"; then
6078             for x in $LDFLAGS $LTLIBICONV; do
6079
6080   acl_save_prefix="$prefix"
6081   prefix="$acl_final_prefix"
6082   acl_save_exec_prefix="$exec_prefix"
6083   exec_prefix="$acl_final_exec_prefix"
6084   eval x=\"$x\"
6085   exec_prefix="$acl_save_exec_prefix"
6086   prefix="$acl_save_prefix"
6087
6088               case "$x" in
6089                 -L*)
6090                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6091                                     if test -n "$acl_shlibext"; then
6092                     if test -f "$dir/$libname$shrext"; then
6093                       found_dir="$dir"
6094                       found_so="$dir/$libname$shrext"
6095                     else
6096                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6097                         ver=`(cd "$dir" && \
6098                               for f in "$libname$shrext".*; do echo "$f"; done \
6099                               | sed -e "s,^$libname$shrext\\\\.,," \
6100                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6101                               | sed 1q ) 2>/dev/null`
6102                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6103                           found_dir="$dir"
6104                           found_so="$dir/$libname$shrext.$ver"
6105                         fi
6106                       else
6107                         eval library_names=\"$acl_library_names_spec\"
6108                         for f in $library_names; do
6109                           if test -f "$dir/$f"; then
6110                             found_dir="$dir"
6111                             found_so="$dir/$f"
6112                             break
6113                           fi
6114                         done
6115                       fi
6116                     fi
6117                   fi
6118                                     if test "X$found_dir" = "X"; then
6119                     if test -f "$dir/$libname.$acl_libext"; then
6120                       found_dir="$dir"
6121                       found_a="$dir/$libname.$acl_libext"
6122                     fi
6123                   fi
6124                   if test "X$found_dir" != "X"; then
6125                     if test -f "$dir/$libname.la"; then
6126                       found_la="$dir/$libname.la"
6127                     fi
6128                   fi
6129                   ;;
6130               esac
6131               if test "X$found_dir" != "X"; then
6132                 break
6133               fi
6134             done
6135           fi
6136           if test "X$found_dir" != "X"; then
6137                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6138             if test "X$found_so" != "X"; then
6139                                                         if test "$enable_rpath" = no \
6140                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6141                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6142                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6143               else
6144                                                                                 haveit=
6145                 for x in $ltrpathdirs; do
6146                   if test "X$x" = "X$found_dir"; then
6147                     haveit=yes
6148                     break
6149                   fi
6150                 done
6151                 if test -z "$haveit"; then
6152                   ltrpathdirs="$ltrpathdirs $found_dir"
6153                 fi
6154                                 if test "$acl_hardcode_direct" = yes; then
6155                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6156                 else
6157                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6158                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6159                                                             haveit=
6160                     for x in $rpathdirs; do
6161                       if test "X$x" = "X$found_dir"; then
6162                         haveit=yes
6163                         break
6164                       fi
6165                     done
6166                     if test -z "$haveit"; then
6167                       rpathdirs="$rpathdirs $found_dir"
6168                     fi
6169                   else
6170                                                                                 haveit=
6171                     for x in $LDFLAGS $LIBICONV; do
6172
6173   acl_save_prefix="$prefix"
6174   prefix="$acl_final_prefix"
6175   acl_save_exec_prefix="$exec_prefix"
6176   exec_prefix="$acl_final_exec_prefix"
6177   eval x=\"$x\"
6178   exec_prefix="$acl_save_exec_prefix"
6179   prefix="$acl_save_prefix"
6180
6181                       if test "X$x" = "X-L$found_dir"; then
6182                         haveit=yes
6183                         break
6184                       fi
6185                     done
6186                     if test -z "$haveit"; then
6187                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6188                     fi
6189                     if test "$acl_hardcode_minus_L" != no; then
6190                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6191                     else
6192                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6193                     fi
6194                   fi
6195                 fi
6196               fi
6197             else
6198               if test "X$found_a" != "X"; then
6199                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6200               else
6201                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6202               fi
6203             fi
6204                         additional_includedir=
6205             case "$found_dir" in
6206               */$acl_libdirstem | */$acl_libdirstem/)
6207                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6208                 if test "$name" = 'iconv'; then
6209                   LIBICONV_PREFIX="$basedir"
6210                 fi
6211                 additional_includedir="$basedir/include"
6212                 ;;
6213               */$acl_libdirstem2 | */$acl_libdirstem2/)
6214                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6215                 if test "$name" = 'iconv'; then
6216                   LIBICONV_PREFIX="$basedir"
6217                 fi
6218                 additional_includedir="$basedir/include"
6219                 ;;
6220             esac
6221             if test "X$additional_includedir" != "X"; then
6222                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6223                 haveit=
6224                 if test "X$additional_includedir" = "X/usr/local/include"; then
6225                   if test -n "$GCC"; then
6226                     case $host_os in
6227                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6228                     esac
6229                   fi
6230                 fi
6231                 if test -z "$haveit"; then
6232                   for x in $CPPFLAGS $INCICONV; do
6233
6234   acl_save_prefix="$prefix"
6235   prefix="$acl_final_prefix"
6236   acl_save_exec_prefix="$exec_prefix"
6237   exec_prefix="$acl_final_exec_prefix"
6238   eval x=\"$x\"
6239   exec_prefix="$acl_save_exec_prefix"
6240   prefix="$acl_save_prefix"
6241
6242                     if test "X$x" = "X-I$additional_includedir"; then
6243                       haveit=yes
6244                       break
6245                     fi
6246                   done
6247                   if test -z "$haveit"; then
6248                     if test -d "$additional_includedir"; then
6249                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6250                     fi
6251                   fi
6252                 fi
6253               fi
6254             fi
6255                         if test -n "$found_la"; then
6256                                                         save_libdir="$libdir"
6257               case "$found_la" in
6258                 */* | *\\*) . "$found_la" ;;
6259                 *) . "./$found_la" ;;
6260               esac
6261               libdir="$save_libdir"
6262                             for dep in $dependency_libs; do
6263                 case "$dep" in
6264                   -L*)
6265                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6266                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6267                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6268                       haveit=
6269                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6270                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6271                         if test -n "$GCC"; then
6272                           case $host_os in
6273                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6274                           esac
6275                         fi
6276                       fi
6277                       if test -z "$haveit"; then
6278                         haveit=
6279                         for x in $LDFLAGS $LIBICONV; do
6280
6281   acl_save_prefix="$prefix"
6282   prefix="$acl_final_prefix"
6283   acl_save_exec_prefix="$exec_prefix"
6284   exec_prefix="$acl_final_exec_prefix"
6285   eval x=\"$x\"
6286   exec_prefix="$acl_save_exec_prefix"
6287   prefix="$acl_save_prefix"
6288
6289                           if test "X$x" = "X-L$additional_libdir"; then
6290                             haveit=yes
6291                             break
6292                           fi
6293                         done
6294                         if test -z "$haveit"; then
6295                           if test -d "$additional_libdir"; then
6296                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6297                           fi
6298                         fi
6299                         haveit=
6300                         for x in $LDFLAGS $LTLIBICONV; do
6301
6302   acl_save_prefix="$prefix"
6303   prefix="$acl_final_prefix"
6304   acl_save_exec_prefix="$exec_prefix"
6305   exec_prefix="$acl_final_exec_prefix"
6306   eval x=\"$x\"
6307   exec_prefix="$acl_save_exec_prefix"
6308   prefix="$acl_save_prefix"
6309
6310                           if test "X$x" = "X-L$additional_libdir"; then
6311                             haveit=yes
6312                             break
6313                           fi
6314                         done
6315                         if test -z "$haveit"; then
6316                           if test -d "$additional_libdir"; then
6317                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6318                           fi
6319                         fi
6320                       fi
6321                     fi
6322                     ;;
6323                   -R*)
6324                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6325                     if test "$enable_rpath" != no; then
6326                                                                   haveit=
6327                       for x in $rpathdirs; do
6328                         if test "X$x" = "X$dir"; then
6329                           haveit=yes
6330                           break
6331                         fi
6332                       done
6333                       if test -z "$haveit"; then
6334                         rpathdirs="$rpathdirs $dir"
6335                       fi
6336                                                                   haveit=
6337                       for x in $ltrpathdirs; do
6338                         if test "X$x" = "X$dir"; then
6339                           haveit=yes
6340                           break
6341                         fi
6342                       done
6343                       if test -z "$haveit"; then
6344                         ltrpathdirs="$ltrpathdirs $dir"
6345                       fi
6346                     fi
6347                     ;;
6348                   -l*)
6349                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6350                     ;;
6351                   *.la)
6352                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6353                     ;;
6354                   *)
6355                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6356                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6357                     ;;
6358                 esac
6359               done
6360             fi
6361           else
6362                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6363             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6364           fi
6365         fi
6366       fi
6367     done
6368   done
6369   if test "X$rpathdirs" != "X"; then
6370     if test -n "$acl_hardcode_libdir_separator"; then
6371                         alldirs=
6372       for found_dir in $rpathdirs; do
6373         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6374       done
6375             acl_save_libdir="$libdir"
6376       libdir="$alldirs"
6377       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6378       libdir="$acl_save_libdir"
6379       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6380     else
6381             for found_dir in $rpathdirs; do
6382         acl_save_libdir="$libdir"
6383         libdir="$found_dir"
6384         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6385         libdir="$acl_save_libdir"
6386         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6387       done
6388     fi
6389   fi
6390   if test "X$ltrpathdirs" != "X"; then
6391             for found_dir in $ltrpathdirs; do
6392       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6393     done
6394   fi
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6427 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6428 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6429   $as_echo_n "(cached) " >&6
6430 else
6431   gt_save_LIBS="$LIBS"
6432      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6433      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h.  */
6435 #include <CoreFoundation/CFPreferences.h>
6436 int
6437 main ()
6438 {
6439 CFPreferencesCopyAppValue(NULL, NULL)
6440   ;
6441   return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_c_try_link "$LINENO"; then :
6445   gt_cv_func_CFPreferencesCopyAppValue=yes
6446 else
6447   gt_cv_func_CFPreferencesCopyAppValue=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext \
6450     conftest$ac_exeext conftest.$ac_ext
6451      LIBS="$gt_save_LIBS"
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6454 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6455   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6456
6457 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6458
6459   fi
6460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6461 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6462 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6463   $as_echo_n "(cached) " >&6
6464 else
6465   gt_save_LIBS="$LIBS"
6466      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6467      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h.  */
6469 #include <CoreFoundation/CFLocale.h>
6470 int
6471 main ()
6472 {
6473 CFLocaleCopyCurrent();
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_c_try_link "$LINENO"; then :
6479   gt_cv_func_CFLocaleCopyCurrent=yes
6480 else
6481   gt_cv_func_CFLocaleCopyCurrent=no
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext \
6484     conftest$ac_exeext conftest.$ac_ext
6485      LIBS="$gt_save_LIBS"
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6488 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6489   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6490
6491 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6492
6493   fi
6494   INTL_MACOSX_LIBS=
6495   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6496     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6497   fi
6498
6499
6500
6501
6502
6503
6504   LIBINTL=
6505   LTLIBINTL=
6506   POSUB=
6507
6508     case " $gt_needs " in
6509     *" need-formatstring-macros "*) gt_api_version=3 ;;
6510     *" need-ngettext "*) gt_api_version=2 ;;
6511     *) gt_api_version=1 ;;
6512   esac
6513   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6514   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6515
6516     if test "$USE_NLS" = "yes"; then
6517     gt_use_preinstalled_gnugettext=no
6518
6519
6520         if test $gt_api_version -ge 3; then
6521           gt_revision_test_code='
6522 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6523 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6524 #endif
6525 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6526 '
6527         else
6528           gt_revision_test_code=
6529         fi
6530         if test $gt_api_version -ge 2; then
6531           gt_expression_test_code=' + * ngettext ("", "", 0)'
6532         else
6533           gt_expression_test_code=
6534         fi
6535
6536         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6537 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6538 if eval \${$gt_func_gnugettext_libc+:} false; then :
6539   $as_echo_n "(cached) " >&6
6540 else
6541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h.  */
6543 #include <libintl.h>
6544 $gt_revision_test_code
6545 extern int _nl_msg_cat_cntr;
6546 extern int *_nl_domain_bindings;
6547 int
6548 main ()
6549 {
6550 bindtextdomain ("", "");
6551 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6552   ;
6553   return 0;
6554 }
6555 _ACEOF
6556 if ac_fn_c_try_link "$LINENO"; then :
6557   eval "$gt_func_gnugettext_libc=yes"
6558 else
6559   eval "$gt_func_gnugettext_libc=no"
6560 fi
6561 rm -f core conftest.err conftest.$ac_objext \
6562     conftest$ac_exeext conftest.$ac_ext
6563 fi
6564 eval ac_res=\$$gt_func_gnugettext_libc
6565                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6566 $as_echo "$ac_res" >&6; }
6567
6568         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6569
6570
6571
6572
6573
6574           am_save_CPPFLAGS="$CPPFLAGS"
6575
6576   for element in $INCICONV; do
6577     haveit=
6578     for x in $CPPFLAGS; do
6579
6580   acl_save_prefix="$prefix"
6581   prefix="$acl_final_prefix"
6582   acl_save_exec_prefix="$exec_prefix"
6583   exec_prefix="$acl_final_exec_prefix"
6584   eval x=\"$x\"
6585   exec_prefix="$acl_save_exec_prefix"
6586   prefix="$acl_save_prefix"
6587
6588       if test "X$x" = "X$element"; then
6589         haveit=yes
6590         break
6591       fi
6592     done
6593     if test -z "$haveit"; then
6594       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6595     fi
6596   done
6597
6598
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6600 $as_echo_n "checking for iconv... " >&6; }
6601 if ${am_cv_func_iconv+:} false; then :
6602   $as_echo_n "(cached) " >&6
6603 else
6604
6605     am_cv_func_iconv="no, consider installing GNU libiconv"
6606     am_cv_lib_iconv=no
6607     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h.  */
6609 #include <stdlib.h>
6610 #include <iconv.h>
6611 int
6612 main ()
6613 {
6614 iconv_t cd = iconv_open("","");
6615        iconv(cd,NULL,NULL,NULL,NULL);
6616        iconv_close(cd);
6617   ;
6618   return 0;
6619 }
6620 _ACEOF
6621 if ac_fn_c_try_link "$LINENO"; then :
6622   am_cv_func_iconv=yes
6623 fi
6624 rm -f core conftest.err conftest.$ac_objext \
6625     conftest$ac_exeext conftest.$ac_ext
6626     if test "$am_cv_func_iconv" != yes; then
6627       am_save_LIBS="$LIBS"
6628       LIBS="$LIBS $LIBICONV"
6629       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h.  */
6631 #include <stdlib.h>
6632 #include <iconv.h>
6633 int
6634 main ()
6635 {
6636 iconv_t cd = iconv_open("","");
6637          iconv(cd,NULL,NULL,NULL,NULL);
6638          iconv_close(cd);
6639   ;
6640   return 0;
6641 }
6642 _ACEOF
6643 if ac_fn_c_try_link "$LINENO"; then :
6644   am_cv_lib_iconv=yes
6645         am_cv_func_iconv=yes
6646 fi
6647 rm -f core conftest.err conftest.$ac_objext \
6648     conftest$ac_exeext conftest.$ac_ext
6649       LIBS="$am_save_LIBS"
6650     fi
6651
6652 fi
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6654 $as_echo "$am_cv_func_iconv" >&6; }
6655   if test "$am_cv_func_iconv" = yes; then
6656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6657 $as_echo_n "checking for working iconv... " >&6; }
6658 if ${am_cv_func_iconv_works+:} false; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661
6662             am_save_LIBS="$LIBS"
6663       if test $am_cv_lib_iconv = yes; then
6664         LIBS="$LIBS $LIBICONV"
6665       fi
6666       if test "$cross_compiling" = yes; then :
6667   case "$host_os" in
6668            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6669            *)            am_cv_func_iconv_works="guessing yes" ;;
6670          esac
6671 else
6672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h.  */
6674
6675 #include <iconv.h>
6676 #include <string.h>
6677 int main ()
6678 {
6679   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6680      returns.  */
6681   {
6682     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6683     if (cd_utf8_to_88591 != (iconv_t)(-1))
6684       {
6685         static const char input[] = "\342\202\254"; /* EURO SIGN */
6686         char buf[10];
6687         const char *inptr = input;
6688         size_t inbytesleft = strlen (input);
6689         char *outptr = buf;
6690         size_t outbytesleft = sizeof (buf);
6691         size_t res = iconv (cd_utf8_to_88591,
6692                             (char **) &inptr, &inbytesleft,
6693                             &outptr, &outbytesleft);
6694         if (res == 0)
6695           return 1;
6696       }
6697   }
6698   /* Test against Solaris 10 bug: Failures are not distinguishable from
6699      successful returns.  */
6700   {
6701     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6702     if (cd_ascii_to_88591 != (iconv_t)(-1))
6703       {
6704         static const char input[] = "\263";
6705         char buf[10];
6706         const char *inptr = input;
6707         size_t inbytesleft = strlen (input);
6708         char *outptr = buf;
6709         size_t outbytesleft = sizeof (buf);
6710         size_t res = iconv (cd_ascii_to_88591,
6711                             (char **) &inptr, &inbytesleft,
6712                             &outptr, &outbytesleft);
6713         if (res == 0)
6714           return 1;
6715       }
6716   }
6717 #if 0 /* This bug could be worked around by the caller.  */
6718   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6719   {
6720     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6721     if (cd_88591_to_utf8 != (iconv_t)(-1))
6722       {
6723         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6724         char buf[50];
6725         const char *inptr = input;
6726         size_t inbytesleft = strlen (input);
6727         char *outptr = buf;
6728         size_t outbytesleft = sizeof (buf);
6729         size_t res = iconv (cd_88591_to_utf8,
6730                             (char **) &inptr, &inbytesleft,
6731                             &outptr, &outbytesleft);
6732         if ((int)res > 0)
6733           return 1;
6734       }
6735   }
6736 #endif
6737   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6738      provided.  */
6739   if (/* Try standardized names.  */
6740       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6741       /* Try IRIX, OSF/1 names.  */
6742       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6743       /* Try AIX names.  */
6744       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6745       /* Try HP-UX names.  */
6746       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6747     return 1;
6748   return 0;
6749 }
6750 _ACEOF
6751 if ac_fn_c_try_run "$LINENO"; then :
6752   am_cv_func_iconv_works=yes
6753 else
6754   am_cv_func_iconv_works=no
6755 fi
6756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6757   conftest.$ac_objext conftest.beam conftest.$ac_ext
6758 fi
6759
6760       LIBS="$am_save_LIBS"
6761
6762 fi
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6764 $as_echo "$am_cv_func_iconv_works" >&6; }
6765     case "$am_cv_func_iconv_works" in
6766       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6767       *)   am_func_iconv=yes ;;
6768     esac
6769   else
6770     am_func_iconv=no am_cv_lib_iconv=no
6771   fi
6772   if test "$am_func_iconv" = yes; then
6773
6774 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6775
6776   fi
6777   if test "$am_cv_lib_iconv" = yes; then
6778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6779 $as_echo_n "checking how to link with libiconv... " >&6; }
6780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6781 $as_echo "$LIBICONV" >&6; }
6782   else
6783             CPPFLAGS="$am_save_CPPFLAGS"
6784     LIBICONV=
6785     LTLIBICONV=
6786   fi
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798     use_additional=yes
6799
6800   acl_save_prefix="$prefix"
6801   prefix="$acl_final_prefix"
6802   acl_save_exec_prefix="$exec_prefix"
6803   exec_prefix="$acl_final_exec_prefix"
6804
6805     eval additional_includedir=\"$includedir\"
6806     eval additional_libdir=\"$libdir\"
6807
6808   exec_prefix="$acl_save_exec_prefix"
6809   prefix="$acl_save_prefix"
6810
6811
6812 # Check whether --with-libintl-prefix was given.
6813 if test "${with_libintl_prefix+set}" = set; then :
6814   withval=$with_libintl_prefix;
6815     if test "X$withval" = "Xno"; then
6816       use_additional=no
6817     else
6818       if test "X$withval" = "X"; then
6819
6820   acl_save_prefix="$prefix"
6821   prefix="$acl_final_prefix"
6822   acl_save_exec_prefix="$exec_prefix"
6823   exec_prefix="$acl_final_exec_prefix"
6824
6825           eval additional_includedir=\"$includedir\"
6826           eval additional_libdir=\"$libdir\"
6827
6828   exec_prefix="$acl_save_exec_prefix"
6829   prefix="$acl_save_prefix"
6830
6831       else
6832         additional_includedir="$withval/include"
6833         additional_libdir="$withval/$acl_libdirstem"
6834         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6835            && ! test -d "$withval/$acl_libdirstem"; then
6836           additional_libdir="$withval/$acl_libdirstem2"
6837         fi
6838       fi
6839     fi
6840
6841 fi
6842
6843       LIBINTL=
6844   LTLIBINTL=
6845   INCINTL=
6846   LIBINTL_PREFIX=
6847       HAVE_LIBINTL=
6848   rpathdirs=
6849   ltrpathdirs=
6850   names_already_handled=
6851   names_next_round='intl '
6852   while test -n "$names_next_round"; do
6853     names_this_round="$names_next_round"
6854     names_next_round=
6855     for name in $names_this_round; do
6856       already_handled=
6857       for n in $names_already_handled; do
6858         if test "$n" = "$name"; then
6859           already_handled=yes
6860           break
6861         fi
6862       done
6863       if test -z "$already_handled"; then
6864         names_already_handled="$names_already_handled $name"
6865                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6866         eval value=\"\$HAVE_LIB$uppername\"
6867         if test -n "$value"; then
6868           if test "$value" = yes; then
6869             eval value=\"\$LIB$uppername\"
6870             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6871             eval value=\"\$LTLIB$uppername\"
6872             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6873           else
6874                                     :
6875           fi
6876         else
6877                               found_dir=
6878           found_la=
6879           found_so=
6880           found_a=
6881           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6882           if test -n "$acl_shlibext"; then
6883             shrext=".$acl_shlibext"             # typically: shrext=.so
6884           else
6885             shrext=
6886           fi
6887           if test $use_additional = yes; then
6888             dir="$additional_libdir"
6889                                     if test -n "$acl_shlibext"; then
6890               if test -f "$dir/$libname$shrext"; then
6891                 found_dir="$dir"
6892                 found_so="$dir/$libname$shrext"
6893               else
6894                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6895                   ver=`(cd "$dir" && \
6896                         for f in "$libname$shrext".*; do echo "$f"; done \
6897                         | sed -e "s,^$libname$shrext\\\\.,," \
6898                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6899                         | sed 1q ) 2>/dev/null`
6900                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6901                     found_dir="$dir"
6902                     found_so="$dir/$libname$shrext.$ver"
6903                   fi
6904                 else
6905                   eval library_names=\"$acl_library_names_spec\"
6906                   for f in $library_names; do
6907                     if test -f "$dir/$f"; then
6908                       found_dir="$dir"
6909                       found_so="$dir/$f"
6910                       break
6911                     fi
6912                   done
6913                 fi
6914               fi
6915             fi
6916                         if test "X$found_dir" = "X"; then
6917               if test -f "$dir/$libname.$acl_libext"; then
6918                 found_dir="$dir"
6919                 found_a="$dir/$libname.$acl_libext"
6920               fi
6921             fi
6922             if test "X$found_dir" != "X"; then
6923               if test -f "$dir/$libname.la"; then
6924                 found_la="$dir/$libname.la"
6925               fi
6926             fi
6927           fi
6928           if test "X$found_dir" = "X"; then
6929             for x in $LDFLAGS $LTLIBINTL; do
6930
6931   acl_save_prefix="$prefix"
6932   prefix="$acl_final_prefix"
6933   acl_save_exec_prefix="$exec_prefix"
6934   exec_prefix="$acl_final_exec_prefix"
6935   eval x=\"$x\"
6936   exec_prefix="$acl_save_exec_prefix"
6937   prefix="$acl_save_prefix"
6938
6939               case "$x" in
6940                 -L*)
6941                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6942                                     if test -n "$acl_shlibext"; then
6943                     if test -f "$dir/$libname$shrext"; then
6944                       found_dir="$dir"
6945                       found_so="$dir/$libname$shrext"
6946                     else
6947                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6948                         ver=`(cd "$dir" && \
6949                               for f in "$libname$shrext".*; do echo "$f"; done \
6950                               | sed -e "s,^$libname$shrext\\\\.,," \
6951                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6952                               | sed 1q ) 2>/dev/null`
6953                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6954                           found_dir="$dir"
6955                           found_so="$dir/$libname$shrext.$ver"
6956                         fi
6957                       else
6958                         eval library_names=\"$acl_library_names_spec\"
6959                         for f in $library_names; do
6960                           if test -f "$dir/$f"; then
6961                             found_dir="$dir"
6962                             found_so="$dir/$f"
6963                             break
6964                           fi
6965                         done
6966                       fi
6967                     fi
6968                   fi
6969                                     if test "X$found_dir" = "X"; then
6970                     if test -f "$dir/$libname.$acl_libext"; then
6971                       found_dir="$dir"
6972                       found_a="$dir/$libname.$acl_libext"
6973                     fi
6974                   fi
6975                   if test "X$found_dir" != "X"; then
6976                     if test -f "$dir/$libname.la"; then
6977                       found_la="$dir/$libname.la"
6978                     fi
6979                   fi
6980                   ;;
6981               esac
6982               if test "X$found_dir" != "X"; then
6983                 break
6984               fi
6985             done
6986           fi
6987           if test "X$found_dir" != "X"; then
6988                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6989             if test "X$found_so" != "X"; then
6990                                                         if test "$enable_rpath" = no \
6991                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6992                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6993                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6994               else
6995                                                                                 haveit=
6996                 for x in $ltrpathdirs; do
6997                   if test "X$x" = "X$found_dir"; then
6998                     haveit=yes
6999                     break
7000                   fi
7001                 done
7002                 if test -z "$haveit"; then
7003                   ltrpathdirs="$ltrpathdirs $found_dir"
7004                 fi
7005                                 if test "$acl_hardcode_direct" = yes; then
7006                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7007                 else
7008                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7009                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7010                                                             haveit=
7011                     for x in $rpathdirs; do
7012                       if test "X$x" = "X$found_dir"; then
7013                         haveit=yes
7014                         break
7015                       fi
7016                     done
7017                     if test -z "$haveit"; then
7018                       rpathdirs="$rpathdirs $found_dir"
7019                     fi
7020                   else
7021                                                                                 haveit=
7022                     for x in $LDFLAGS $LIBINTL; do
7023
7024   acl_save_prefix="$prefix"
7025   prefix="$acl_final_prefix"
7026   acl_save_exec_prefix="$exec_prefix"
7027   exec_prefix="$acl_final_exec_prefix"
7028   eval x=\"$x\"
7029   exec_prefix="$acl_save_exec_prefix"
7030   prefix="$acl_save_prefix"
7031
7032                       if test "X$x" = "X-L$found_dir"; then
7033                         haveit=yes
7034                         break
7035                       fi
7036                     done
7037                     if test -z "$haveit"; then
7038                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7039                     fi
7040                     if test "$acl_hardcode_minus_L" != no; then
7041                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7042                     else
7043                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7044                     fi
7045                   fi
7046                 fi
7047               fi
7048             else
7049               if test "X$found_a" != "X"; then
7050                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7051               else
7052                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7053               fi
7054             fi
7055                         additional_includedir=
7056             case "$found_dir" in
7057               */$acl_libdirstem | */$acl_libdirstem/)
7058                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7059                 if test "$name" = 'intl'; then
7060                   LIBINTL_PREFIX="$basedir"
7061                 fi
7062                 additional_includedir="$basedir/include"
7063                 ;;
7064               */$acl_libdirstem2 | */$acl_libdirstem2/)
7065                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7066                 if test "$name" = 'intl'; then
7067                   LIBINTL_PREFIX="$basedir"
7068                 fi
7069                 additional_includedir="$basedir/include"
7070                 ;;
7071             esac
7072             if test "X$additional_includedir" != "X"; then
7073                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7074                 haveit=
7075                 if test "X$additional_includedir" = "X/usr/local/include"; then
7076                   if test -n "$GCC"; then
7077                     case $host_os in
7078                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7079                     esac
7080                   fi
7081                 fi
7082                 if test -z "$haveit"; then
7083                   for x in $CPPFLAGS $INCINTL; do
7084
7085   acl_save_prefix="$prefix"
7086   prefix="$acl_final_prefix"
7087   acl_save_exec_prefix="$exec_prefix"
7088   exec_prefix="$acl_final_exec_prefix"
7089   eval x=\"$x\"
7090   exec_prefix="$acl_save_exec_prefix"
7091   prefix="$acl_save_prefix"
7092
7093                     if test "X$x" = "X-I$additional_includedir"; then
7094                       haveit=yes
7095                       break
7096                     fi
7097                   done
7098                   if test -z "$haveit"; then
7099                     if test -d "$additional_includedir"; then
7100                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7101                     fi
7102                   fi
7103                 fi
7104               fi
7105             fi
7106                         if test -n "$found_la"; then
7107                                                         save_libdir="$libdir"
7108               case "$found_la" in
7109                 */* | *\\*) . "$found_la" ;;
7110                 *) . "./$found_la" ;;
7111               esac
7112               libdir="$save_libdir"
7113                             for dep in $dependency_libs; do
7114                 case "$dep" in
7115                   -L*)
7116                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7117                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7118                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7119                       haveit=
7120                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7121                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7122                         if test -n "$GCC"; then
7123                           case $host_os in
7124                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7125                           esac
7126                         fi
7127                       fi
7128                       if test -z "$haveit"; then
7129                         haveit=
7130                         for x in $LDFLAGS $LIBINTL; do
7131
7132   acl_save_prefix="$prefix"
7133   prefix="$acl_final_prefix"
7134   acl_save_exec_prefix="$exec_prefix"
7135   exec_prefix="$acl_final_exec_prefix"
7136   eval x=\"$x\"
7137   exec_prefix="$acl_save_exec_prefix"
7138   prefix="$acl_save_prefix"
7139
7140                           if test "X$x" = "X-L$additional_libdir"; then
7141                             haveit=yes
7142                             break
7143                           fi
7144                         done
7145                         if test -z "$haveit"; then
7146                           if test -d "$additional_libdir"; then
7147                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7148                           fi
7149                         fi
7150                         haveit=
7151                         for x in $LDFLAGS $LTLIBINTL; do
7152
7153   acl_save_prefix="$prefix"
7154   prefix="$acl_final_prefix"
7155   acl_save_exec_prefix="$exec_prefix"
7156   exec_prefix="$acl_final_exec_prefix"
7157   eval x=\"$x\"
7158   exec_prefix="$acl_save_exec_prefix"
7159   prefix="$acl_save_prefix"
7160
7161                           if test "X$x" = "X-L$additional_libdir"; then
7162                             haveit=yes
7163                             break
7164                           fi
7165                         done
7166                         if test -z "$haveit"; then
7167                           if test -d "$additional_libdir"; then
7168                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7169                           fi
7170                         fi
7171                       fi
7172                     fi
7173                     ;;
7174                   -R*)
7175                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7176                     if test "$enable_rpath" != no; then
7177                                                                   haveit=
7178                       for x in $rpathdirs; do
7179                         if test "X$x" = "X$dir"; then
7180                           haveit=yes
7181                           break
7182                         fi
7183                       done
7184                       if test -z "$haveit"; then
7185                         rpathdirs="$rpathdirs $dir"
7186                       fi
7187                                                                   haveit=
7188                       for x in $ltrpathdirs; do
7189                         if test "X$x" = "X$dir"; then
7190                           haveit=yes
7191                           break
7192                         fi
7193                       done
7194                       if test -z "$haveit"; then
7195                         ltrpathdirs="$ltrpathdirs $dir"
7196                       fi
7197                     fi
7198                     ;;
7199                   -l*)
7200                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7201                     ;;
7202                   *.la)
7203                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7204                     ;;
7205                   *)
7206                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7207                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7208                     ;;
7209                 esac
7210               done
7211             fi
7212           else
7213                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7214             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7215           fi
7216         fi
7217       fi
7218     done
7219   done
7220   if test "X$rpathdirs" != "X"; then
7221     if test -n "$acl_hardcode_libdir_separator"; then
7222                         alldirs=
7223       for found_dir in $rpathdirs; do
7224         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7225       done
7226             acl_save_libdir="$libdir"
7227       libdir="$alldirs"
7228       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7229       libdir="$acl_save_libdir"
7230       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7231     else
7232             for found_dir in $rpathdirs; do
7233         acl_save_libdir="$libdir"
7234         libdir="$found_dir"
7235         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7236         libdir="$acl_save_libdir"
7237         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7238       done
7239     fi
7240   fi
7241   if test "X$ltrpathdirs" != "X"; then
7242             for found_dir in $ltrpathdirs; do
7243       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7244     done
7245   fi
7246
7247
7248
7249
7250
7251
7252           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7253 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7254 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7255   $as_echo_n "(cached) " >&6
7256 else
7257   gt_save_CPPFLAGS="$CPPFLAGS"
7258             CPPFLAGS="$CPPFLAGS $INCINTL"
7259             gt_save_LIBS="$LIBS"
7260             LIBS="$LIBS $LIBINTL"
7261                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h.  */
7263 #include <libintl.h>
7264 $gt_revision_test_code
7265 extern int _nl_msg_cat_cntr;
7266 extern
7267 #ifdef __cplusplus
7268 "C"
7269 #endif
7270 const char *_nl_expand_alias (const char *);
7271 int
7272 main ()
7273 {
7274 bindtextdomain ("", "");
7275 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7276   ;
7277   return 0;
7278 }
7279 _ACEOF
7280 if ac_fn_c_try_link "$LINENO"; then :
7281   eval "$gt_func_gnugettext_libintl=yes"
7282 else
7283   eval "$gt_func_gnugettext_libintl=no"
7284 fi
7285 rm -f core conftest.err conftest.$ac_objext \
7286     conftest$ac_exeext conftest.$ac_ext
7287                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7288               LIBS="$LIBS $LIBICONV"
7289               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h.  */
7291 #include <libintl.h>
7292 $gt_revision_test_code
7293 extern int _nl_msg_cat_cntr;
7294 extern
7295 #ifdef __cplusplus
7296 "C"
7297 #endif
7298 const char *_nl_expand_alias (const char *);
7299 int
7300 main ()
7301 {
7302 bindtextdomain ("", "");
7303 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7304   ;
7305   return 0;
7306 }
7307 _ACEOF
7308 if ac_fn_c_try_link "$LINENO"; then :
7309   LIBINTL="$LIBINTL $LIBICONV"
7310                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7311                 eval "$gt_func_gnugettext_libintl=yes"
7312
7313 fi
7314 rm -f core conftest.err conftest.$ac_objext \
7315     conftest$ac_exeext conftest.$ac_ext
7316             fi
7317             CPPFLAGS="$gt_save_CPPFLAGS"
7318             LIBS="$gt_save_LIBS"
7319 fi
7320 eval ac_res=\$$gt_func_gnugettext_libintl
7321                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7322 $as_echo "$ac_res" >&6; }
7323         fi
7324
7325                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7326            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7327                 && test "$PACKAGE" != gettext-runtime \
7328                 && test "$PACKAGE" != gettext-tools; }; then
7329           gt_use_preinstalled_gnugettext=yes
7330         else
7331                     LIBINTL=
7332           LTLIBINTL=
7333           INCINTL=
7334         fi
7335
7336
7337
7338     if test -n "$INTL_MACOSX_LIBS"; then
7339       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7340          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7341                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7342         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7343       fi
7344     fi
7345
7346     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7347        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7348
7349 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7350
7351     else
7352       USE_NLS=no
7353     fi
7354   fi
7355
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7357 $as_echo_n "checking whether to use NLS... " >&6; }
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7359 $as_echo "$USE_NLS" >&6; }
7360   if test "$USE_NLS" = "yes"; then
7361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7362 $as_echo_n "checking where the gettext function comes from... " >&6; }
7363     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7364       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7365         gt_source="external libintl"
7366       else
7367         gt_source="libc"
7368       fi
7369     else
7370       gt_source="included intl directory"
7371     fi
7372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7373 $as_echo "$gt_source" >&6; }
7374   fi
7375
7376   if test "$USE_NLS" = "yes"; then
7377
7378     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7379       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7380         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7381 $as_echo_n "checking how to link with libintl... " >&6; }
7382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7383 $as_echo "$LIBINTL" >&6; }
7384
7385   for element in $INCINTL; do
7386     haveit=
7387     for x in $CPPFLAGS; do
7388
7389   acl_save_prefix="$prefix"
7390   prefix="$acl_final_prefix"
7391   acl_save_exec_prefix="$exec_prefix"
7392   exec_prefix="$acl_final_exec_prefix"
7393   eval x=\"$x\"
7394   exec_prefix="$acl_save_exec_prefix"
7395   prefix="$acl_save_prefix"
7396
7397       if test "X$x" = "X$element"; then
7398         haveit=yes
7399         break
7400       fi
7401     done
7402     if test -z "$haveit"; then
7403       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7404     fi
7405   done
7406
7407       fi
7408
7409
7410 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7411
7412
7413 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7414
7415     fi
7416
7417         POSUB=po
7418   fi
7419
7420
7421
7422     INTLLIBS="$LIBINTL"
7423
7424
7425
7426
7427
7428
7429
7430 # Gconf
7431 # Extract the first word of "gconftool-2", so it can be a program name with args.
7432 set dummy gconftool-2; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if ${ac_cv_path_GCONFTOOL+:} false; then :
7436   $as_echo_n "(cached) " >&6
7437 else
7438   case $GCONFTOOL in
7439   [\\/]* | ?:[\\/]*)
7440   ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path.
7441   ;;
7442   *)
7443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448     for ac_exec_ext in '' $ac_executable_extensions; do
7449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450     ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext"
7451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455   done
7456 IFS=$as_save_IFS
7457
7458   test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no"
7459   ;;
7460 esac
7461 fi
7462 GCONFTOOL=$ac_cv_path_GCONFTOOL
7463 if test -n "$GCONFTOOL"; then
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONFTOOL" >&5
7465 $as_echo "$GCONFTOOL" >&6; }
7466 else
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470
7471
7472
7473   if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
7474     GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7475   else
7476     GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
7477   fi
7478
7479
7480 # Check whether --with-gconf-source was given.
7481 if test "${with_gconf_source+set}" = set; then :
7482   withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval"
7483 fi
7484
7485
7486
7487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
7488 $as_echo "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; }
7489
7490   if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
7491     GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
7492   fi
7493
7494
7495 # Check whether --with-gconf-schema-file-dir was given.
7496 if test "${with_gconf_schema_file_dir+set}" = set; then :
7497   withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval"
7498 fi
7499
7500
7501
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
7503 $as_echo "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; }
7504
7505   # Check whether --enable-schemas-install was given.
7506 if test "${enable_schemas_install+set}" = set; then :
7507   enableval=$enable_schemas_install; case ${enableval} in
7508        yes|no) ;;
7509        *) as_fn_error $? "bad value ${enableval} for --enable-schemas-install" "$LINENO" 5 ;;
7510       esac
7511 fi
7512
7513    if test "$enable_schemas_install" != no; then
7514   GCONF_SCHEMAS_INSTALL_TRUE=
7515   GCONF_SCHEMAS_INSTALL_FALSE='#'
7516 else
7517   GCONF_SCHEMAS_INSTALL_TRUE='#'
7518   GCONF_SCHEMAS_INSTALL_FALSE=
7519 fi
7520
7521
7522
7523 ############### common
7524
7525 # Checks pthread
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7527 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7528 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7529   $as_echo_n "(cached) " >&6
7530 else
7531   ac_check_lib_save_LIBS=$LIBS
7532 LIBS="-lpthread  $LIBS"
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h.  */
7535
7536 /* Override any GCC internal prototype to avoid an error.
7537    Use char because int might match the return type of a GCC
7538    builtin and then its argument prototype would still apply.  */
7539 #ifdef __cplusplus
7540 extern "C"
7541 #endif
7542 char pthread_create ();
7543 int
7544 main ()
7545 {
7546 return pthread_create ();
7547   ;
7548   return 0;
7549 }
7550 _ACEOF
7551 if ac_fn_c_try_link "$LINENO"; then :
7552   ac_cv_lib_pthread_pthread_create=yes
7553 else
7554   ac_cv_lib_pthread_pthread_create=no
7555 fi
7556 rm -f core conftest.err conftest.$ac_objext \
7557     conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7561 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7562 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7563   cat >>confdefs.h <<_ACEOF
7564 #define HAVE_LIBPTHREAD 1
7565 _ACEOF
7566
7567   LIBS="-lpthread $LIBS"
7568
7569 fi
7570
7571 PTHREAD_LIBS=-pthread
7572
7573
7574 # Checks sensors, required by psensor and psensor-server
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
7576 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
7577 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
7578   $as_echo_n "(cached) " >&6
7579 else
7580   ac_check_lib_save_LIBS=$LIBS
7581 LIBS="-lsensors  $LIBS"
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h.  */
7584
7585 /* Override any GCC internal prototype to avoid an error.
7586    Use char because int might match the return type of a GCC
7587    builtin and then its argument prototype would still apply.  */
7588 #ifdef __cplusplus
7589 extern "C"
7590 #endif
7591 char sensors_init ();
7592 int
7593 main ()
7594 {
7595 return sensors_init ();
7596   ;
7597   return 0;
7598 }
7599 _ACEOF
7600 if ac_fn_c_try_link "$LINENO"; then :
7601   ac_cv_lib_sensors_sensors_init=yes
7602 else
7603   ac_cv_lib_sensors_sensors_init=no
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext \
7606     conftest$ac_exeext conftest.$ac_ext
7607 LIBS=$ac_check_lib_save_LIBS
7608 fi
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
7610 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
7611 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
7612   cat >>confdefs.h <<_ACEOF
7613 #define HAVE_LIBSENSORS 1
7614 _ACEOF
7615
7616   LIBS="-lsensors $LIBS"
7617
7618 fi
7619
7620 for ac_header in sensors/sensors.h sensors/errors.h
7621 do :
7622   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7623 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7624 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7625   cat >>confdefs.h <<_ACEOF
7626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7627 _ACEOF
7628
7629 fi
7630
7631 done
7632
7633 SENSORS_LIBS=-lsensors
7634
7635
7636 ############### psensor
7637
7638 ### Required
7639
7640
7641
7642
7643
7644
7645
7646
7647 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7648         if test -n "$ac_tool_prefix"; then
7649   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7650 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7654   $as_echo_n "(cached) " >&6
7655 else
7656   case $PKG_CONFIG in
7657   [\\/]* | ?:[\\/]*)
7658   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7659   ;;
7660   *)
7661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7663 do
7664   IFS=$as_save_IFS
7665   test -z "$as_dir" && as_dir=.
7666     for ac_exec_ext in '' $ac_executable_extensions; do
7667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670     break 2
7671   fi
7672 done
7673   done
7674 IFS=$as_save_IFS
7675
7676   ;;
7677 esac
7678 fi
7679 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7680 if test -n "$PKG_CONFIG"; then
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7682 $as_echo "$PKG_CONFIG" >&6; }
7683 else
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687
7688
7689 fi
7690 if test -z "$ac_cv_path_PKG_CONFIG"; then
7691   ac_pt_PKG_CONFIG=$PKG_CONFIG
7692   # Extract the first word of "pkg-config", so it can be a program name with args.
7693 set dummy pkg-config; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   case $ac_pt_PKG_CONFIG in
7700   [\\/]* | ?:[\\/]*)
7701   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7702   ;;
7703   *)
7704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707   IFS=$as_save_IFS
7708   test -z "$as_dir" && as_dir=.
7709     for ac_exec_ext in '' $ac_executable_extensions; do
7710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713     break 2
7714   fi
7715 done
7716   done
7717 IFS=$as_save_IFS
7718
7719   ;;
7720 esac
7721 fi
7722 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7723 if test -n "$ac_pt_PKG_CONFIG"; then
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7725 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7726 else
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729 fi
7730
7731   if test "x$ac_pt_PKG_CONFIG" = x; then
7732     PKG_CONFIG=""
7733   else
7734     case $cross_compiling:$ac_tool_warned in
7735 yes:)
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738 ac_tool_warned=yes ;;
7739 esac
7740     PKG_CONFIG=$ac_pt_PKG_CONFIG
7741   fi
7742 else
7743   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7744 fi
7745
7746 fi
7747 if test -n "$PKG_CONFIG"; then
7748         _pkg_min_version=0.9.0
7749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7750 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7751         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7752                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7753 $as_echo "yes" >&6; }
7754         else
7755                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757                 PKG_CONFIG=""
7758         fi
7759 fi
7760
7761 pkg_failed=no
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
7763 $as_echo_n "checking for X11... " >&6; }
7764
7765 if test -n "$X11_CFLAGS"; then
7766     pkg_cv_X11_CFLAGS="$X11_CFLAGS"
7767  elif test -n "$PKG_CONFIG"; then
7768     if test -n "$PKG_CONFIG" && \
7769     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7770   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7771   ac_status=$?
7772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7773   test $ac_status = 0; }; then
7774   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
7775                       test "x$?" != "x0" && pkg_failed=yes
7776 else
7777   pkg_failed=yes
7778 fi
7779  else
7780     pkg_failed=untried
7781 fi
7782 if test -n "$X11_LIBS"; then
7783     pkg_cv_X11_LIBS="$X11_LIBS"
7784  elif test -n "$PKG_CONFIG"; then
7785     if test -n "$PKG_CONFIG" && \
7786     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
7787   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
7788   ac_status=$?
7789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7790   test $ac_status = 0; }; then
7791   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
7792                       test "x$?" != "x0" && pkg_failed=yes
7793 else
7794   pkg_failed=yes
7795 fi
7796  else
7797     pkg_failed=untried
7798 fi
7799
7800
7801
7802 if test $pkg_failed = yes; then
7803         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805
7806 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7807         _pkg_short_errors_supported=yes
7808 else
7809         _pkg_short_errors_supported=no
7810 fi
7811         if test $_pkg_short_errors_supported = yes; then
7812                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
7813         else
7814                 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
7815         fi
7816         # Put the nasty error message in config.log where it belongs
7817         echo "$X11_PKG_ERRORS" >&5
7818
7819         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7820 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7821 elif test $pkg_failed = untried; then
7822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"x11 missing psensor will not be built\"" >&5
7825 $as_echo "$as_me: WARNING: \"x11 missing psensor will not be built\"" >&2;}
7826 else
7827         X11_CFLAGS=$pkg_cv_X11_CFLAGS
7828         X11_LIBS=$pkg_cv_X11_LIBS
7829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7830 $as_echo "yes" >&6; }
7831
7832 fi
7833  if test -n "$X11_LIBS"; then
7834   X11_TRUE=
7835   X11_FALSE='#'
7836 else
7837   X11_TRUE='#'
7838   X11_FALSE=
7839 fi
7840
7841
7842
7843
7844
7845 pkg_failed=no
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
7847 $as_echo_n "checking for XEXT... " >&6; }
7848
7849 if test -n "$XEXT_CFLAGS"; then
7850     pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
7851  elif test -n "$PKG_CONFIG"; then
7852     if test -n "$PKG_CONFIG" && \
7853     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7854   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7855   ac_status=$?
7856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7857   test $ac_status = 0; }; then
7858   pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
7859                       test "x$?" != "x0" && pkg_failed=yes
7860 else
7861   pkg_failed=yes
7862 fi
7863  else
7864     pkg_failed=untried
7865 fi
7866 if test -n "$XEXT_LIBS"; then
7867     pkg_cv_XEXT_LIBS="$XEXT_LIBS"
7868  elif test -n "$PKG_CONFIG"; then
7869     if test -n "$PKG_CONFIG" && \
7870     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
7871   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
7872   ac_status=$?
7873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874   test $ac_status = 0; }; then
7875   pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
7876                       test "x$?" != "x0" && pkg_failed=yes
7877 else
7878   pkg_failed=yes
7879 fi
7880  else
7881     pkg_failed=untried
7882 fi
7883
7884
7885
7886 if test $pkg_failed = yes; then
7887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7889
7890 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7891         _pkg_short_errors_supported=yes
7892 else
7893         _pkg_short_errors_supported=no
7894 fi
7895         if test $_pkg_short_errors_supported = yes; then
7896                 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
7897         else
7898                 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
7899         fi
7900         # Put the nasty error message in config.log where it belongs
7901         echo "$XEXT_PKG_ERRORS" >&5
7902
7903         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
7904 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
7905 elif test $pkg_failed = untried; then
7906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"xext missing psensor will not be built\"" >&5
7909 $as_echo "$as_me: WARNING: \"xext missing psensor will not be built\"" >&2;}
7910 else
7911         XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
7912         XEXT_LIBS=$pkg_cv_XEXT_LIBS
7913         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914 $as_echo "yes" >&6; }
7915
7916 fi
7917  if test -n "$XEXT_LIBS"; then
7918   XEXT_TRUE=
7919   XEXT_FALSE='#'
7920 else
7921   XEXT_TRUE='#'
7922   XEXT_FALSE=
7923 fi
7924
7925
7926
7927
7928 # Checks GTK+ 3.0
7929
7930 pkg_failed=no
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7932 $as_echo_n "checking for GTK... " >&6; }
7933
7934 if test -n "$GTK_CFLAGS"; then
7935     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7936  elif test -n "$PKG_CONFIG"; then
7937     if test -n "$PKG_CONFIG" && \
7938     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7939   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7940   ac_status=$?
7941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942   test $ac_status = 0; }; then
7943   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
7944                       test "x$?" != "x0" && pkg_failed=yes
7945 else
7946   pkg_failed=yes
7947 fi
7948  else
7949     pkg_failed=untried
7950 fi
7951 if test -n "$GTK_LIBS"; then
7952     pkg_cv_GTK_LIBS="$GTK_LIBS"
7953  elif test -n "$PKG_CONFIG"; then
7954     if test -n "$PKG_CONFIG" && \
7955     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
7956   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
7957   ac_status=$?
7958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959   test $ac_status = 0; }; then
7960   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
7961                       test "x$?" != "x0" && pkg_failed=yes
7962 else
7963   pkg_failed=yes
7964 fi
7965  else
7966     pkg_failed=untried
7967 fi
7968
7969
7970
7971 if test $pkg_failed = yes; then
7972         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7974
7975 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7976         _pkg_short_errors_supported=yes
7977 else
7978         _pkg_short_errors_supported=no
7979 fi
7980         if test $_pkg_short_errors_supported = yes; then
7981                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7982         else
7983                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
7984         fi
7985         # Put the nasty error message in config.log where it belongs
7986         echo "$GTK_PKG_ERRORS" >&5
7987
7988         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
7989 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
7990 elif test $pkg_failed = untried; then
7991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7993         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtk missing psensor will not be built\"" >&5
7994 $as_echo "$as_me: WARNING: \"gtk missing psensor will not be built\"" >&2;}
7995 else
7996         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7997         GTK_LIBS=$pkg_cv_GTK_LIBS
7998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7999 $as_echo "yes" >&6; }
8000
8001 fi
8002  if test -n "$GTK_LIBS"; then
8003   GTK_TRUE=
8004   GTK_FALSE='#'
8005 else
8006   GTK_TRUE='#'
8007   GTK_FALSE=
8008 fi
8009
8010 # ensure that only allowed headers are included
8011 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
8012 # ensure that no gtk deprecated symbols are used
8013 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
8014 GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
8015 # ensure use of accessors
8016 GTK_CFLAGS+=" -DGSEAL_ENABLE "
8017
8018
8019
8020 # Check GCONF
8021
8022 pkg_failed=no
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
8024 $as_echo_n "checking for GCONF... " >&6; }
8025
8026 if test -n "$GCONF_CFLAGS"; then
8027     pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
8028  elif test -n "$PKG_CONFIG"; then
8029     if test -n "$PKG_CONFIG" && \
8030     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
8031   ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
8032   ac_status=$?
8033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8034   test $ac_status = 0; }; then
8035   pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0" 2>/dev/null`
8036                       test "x$?" != "x0" && pkg_failed=yes
8037 else
8038   pkg_failed=yes
8039 fi
8040  else
8041     pkg_failed=untried
8042 fi
8043 if test -n "$GCONF_LIBS"; then
8044     pkg_cv_GCONF_LIBS="$GCONF_LIBS"
8045  elif test -n "$PKG_CONFIG"; then
8046     if test -n "$PKG_CONFIG" && \
8047     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0\""; } >&5
8048   ($PKG_CONFIG --exists --print-errors "gconf-2.0") 2>&5
8049   ac_status=$?
8050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051   test $ac_status = 0; }; then
8052   pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0" 2>/dev/null`
8053                       test "x$?" != "x0" && pkg_failed=yes
8054 else
8055   pkg_failed=yes
8056 fi
8057  else
8058     pkg_failed=untried
8059 fi
8060
8061
8062
8063 if test $pkg_failed = yes; then
8064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066
8067 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8068         _pkg_short_errors_supported=yes
8069 else
8070         _pkg_short_errors_supported=no
8071 fi
8072         if test $_pkg_short_errors_supported = yes; then
8073                 GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gconf-2.0" 2>&1`
8074         else
8075                 GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gconf-2.0" 2>&1`
8076         fi
8077         # Put the nasty error message in config.log where it belongs
8078         echo "$GCONF_PKG_ERRORS" >&5
8079
8080         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gconf2 missing psensor will not be built\"" >&5
8081 $as_echo "$as_me: WARNING: \"gconf2 missing psensor will not be built\"" >&2;}
8082 elif test $pkg_failed = untried; then
8083         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8085         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gconf2 missing psensor will not be built\"" >&5
8086 $as_echo "$as_me: WARNING: \"gconf2 missing psensor will not be built\"" >&2;}
8087 else
8088         GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
8089         GCONF_LIBS=$pkg_cv_GCONF_LIBS
8090         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8091 $as_echo "yes" >&6; }
8092
8093 $as_echo "#define HAVE_GCONF2 1" >>confdefs.h
8094
8095 fi
8096  if test -n "$GCONF_LIBS"; then
8097   GCONF_TRUE=
8098   GCONF_FALSE='#'
8099 else
8100   GCONF_TRUE='#'
8101   GCONF_FALSE=
8102 fi
8103
8104
8105
8106
8107 ### Optional
8108
8109 # check libatasmart
8110
8111 pkg_failed=no
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATASMART" >&5
8113 $as_echo_n "checking for ATASMART... " >&6; }
8114
8115 if test -n "$ATASMART_CFLAGS"; then
8116     pkg_cv_ATASMART_CFLAGS="$ATASMART_CFLAGS"
8117  elif test -n "$PKG_CONFIG"; then
8118     if test -n "$PKG_CONFIG" && \
8119     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
8120   ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
8121   ac_status=$?
8122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8123   test $ac_status = 0; }; then
8124   pkg_cv_ATASMART_CFLAGS=`$PKG_CONFIG --cflags "libatasmart" 2>/dev/null`
8125                       test "x$?" != "x0" && pkg_failed=yes
8126 else
8127   pkg_failed=yes
8128 fi
8129  else
8130     pkg_failed=untried
8131 fi
8132 if test -n "$ATASMART_LIBS"; then
8133     pkg_cv_ATASMART_LIBS="$ATASMART_LIBS"
8134  elif test -n "$PKG_CONFIG"; then
8135     if test -n "$PKG_CONFIG" && \
8136     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libatasmart\""; } >&5
8137   ($PKG_CONFIG --exists --print-errors "libatasmart") 2>&5
8138   ac_status=$?
8139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140   test $ac_status = 0; }; then
8141   pkg_cv_ATASMART_LIBS=`$PKG_CONFIG --libs "libatasmart" 2>/dev/null`
8142                       test "x$?" != "x0" && pkg_failed=yes
8143 else
8144   pkg_failed=yes
8145 fi
8146  else
8147     pkg_failed=untried
8148 fi
8149
8150
8151
8152 if test $pkg_failed = yes; then
8153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8155
8156 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8157         _pkg_short_errors_supported=yes
8158 else
8159         _pkg_short_errors_supported=no
8160 fi
8161         if test $_pkg_short_errors_supported = yes; then
8162                 ATASMART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libatasmart" 2>&1`
8163         else
8164                 ATASMART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libatasmart" 2>&1`
8165         fi
8166         # Put the nasty error message in config.log where it belongs
8167         echo "$ATASMART_PKG_ERRORS" >&5
8168
8169         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
8170 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
8171 elif test $pkg_failed = untried; then
8172         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Library atasmart not present\"" >&5
8175 $as_echo "$as_me: WARNING: \"Library atasmart not present\"" >&2;}
8176 else
8177         ATASMART_CFLAGS=$pkg_cv_ATASMART_CFLAGS
8178         ATASMART_LIBS=$pkg_cv_ATASMART_LIBS
8179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8180 $as_echo "yes" >&6; }
8181
8182 $as_echo "#define HAVE_ATASMART 1" >>confdefs.h
8183
8184 fi
8185
8186  if test -n "$ATASMART_LIBS"; then
8187   ATASMART_TRUE=
8188   ATASMART_FALSE='#'
8189 else
8190   ATASMART_TRUE='#'
8191   ATASMART_FALSE=
8192 fi
8193
8194
8195
8196
8197 # Check libnotify
8198 LIBNOTIFY_LIBS=
8199
8200 pkg_failed=no
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
8202 $as_echo_n "checking for LIBNOTIFY... " >&6; }
8203
8204 if test -n "$LIBNOTIFY_CFLAGS"; then
8205     pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
8206  elif test -n "$PKG_CONFIG"; then
8207     if test -n "$PKG_CONFIG" && \
8208     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
8209   ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
8210   ac_status=$?
8211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8212   test $ac_status = 0; }; then
8213   pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
8214                       test "x$?" != "x0" && pkg_failed=yes
8215 else
8216   pkg_failed=yes
8217 fi
8218  else
8219     pkg_failed=untried
8220 fi
8221 if test -n "$LIBNOTIFY_LIBS"; then
8222     pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
8223  elif test -n "$PKG_CONFIG"; then
8224     if test -n "$PKG_CONFIG" && \
8225     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
8226   ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
8227   ac_status=$?
8228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8229   test $ac_status = 0; }; then
8230   pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
8231                       test "x$?" != "x0" && pkg_failed=yes
8232 else
8233   pkg_failed=yes
8234 fi
8235  else
8236     pkg_failed=untried
8237 fi
8238
8239
8240
8241 if test $pkg_failed = yes; then
8242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8244
8245 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8246         _pkg_short_errors_supported=yes
8247 else
8248         _pkg_short_errors_supported=no
8249 fi
8250         if test $_pkg_short_errors_supported = yes; then
8251                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
8252         else
8253                 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
8254         fi
8255         # Put the nasty error message in config.log where it belongs
8256         echo "$LIBNOTIFY_PKG_ERRORS" >&5
8257
8258         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
8259 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
8260 elif test $pkg_failed = untried; then
8261         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8263         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Desktop notification disabled\"" >&5
8264 $as_echo "$as_me: WARNING: \"Desktop notification disabled\"" >&2;}
8265 else
8266         LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
8267         LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
8268         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8269 $as_echo "yes" >&6; }
8270
8271 $as_echo "#define HAVE_LIBNOTIFY 1" >>confdefs.h
8272
8273 fi
8274  if test -n "$LIBNOTIFY_LIBS"; then
8275   LIBNOTIFY_TRUE=
8276   LIBNOTIFY_FALSE='#'
8277 else
8278   LIBNOTIFY_TRUE='#'
8279   LIBNOTIFY_FALSE=
8280 fi
8281
8282
8283
8284
8285 # Checks AppIndicator
8286 APPINDICATOR_LIBS=
8287
8288
8289 pkg_failed=no
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8291 $as_echo_n "checking for APPINDICATOR... " >&6; }
8292
8293 if test -n "$APPINDICATOR_CFLAGS"; then
8294     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8295  elif test -n "$PKG_CONFIG"; then
8296     if test -n "$PKG_CONFIG" && \
8297     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
8298   ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
8299   ac_status=$?
8300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8301   test $ac_status = 0; }; then
8302   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1" 2>/dev/null`
8303                       test "x$?" != "x0" && pkg_failed=yes
8304 else
8305   pkg_failed=yes
8306 fi
8307  else
8308     pkg_failed=untried
8309 fi
8310 if test -n "$APPINDICATOR_LIBS"; then
8311     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8312  elif test -n "$PKG_CONFIG"; then
8313     if test -n "$PKG_CONFIG" && \
8314     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1\""; } >&5
8315   ($PKG_CONFIG --exists --print-errors "appindicator3-0.1") 2>&5
8316   ac_status=$?
8317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8318   test $ac_status = 0; }; then
8319   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1" 2>/dev/null`
8320                       test "x$?" != "x0" && pkg_failed=yes
8321 else
8322   pkg_failed=yes
8323 fi
8324  else
8325     pkg_failed=untried
8326 fi
8327
8328
8329
8330 if test $pkg_failed = yes; then
8331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333
8334 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8335         _pkg_short_errors_supported=yes
8336 else
8337         _pkg_short_errors_supported=no
8338 fi
8339         if test $_pkg_short_errors_supported = yes; then
8340                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
8341         else
8342                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator3-0.1" 2>&1`
8343         fi
8344         # Put the nasty error message in config.log where it belongs
8345         echo "$APPINDICATOR_PKG_ERRORS" >&5
8346
8347         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
8348 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
8349 elif test $pkg_failed = untried; then
8350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8352         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 3-0.1 not present\"" >&5
8353 $as_echo "$as_me: WARNING: AppIndicator 3-0.1 not present\"" >&2;}
8354 else
8355         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8356         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8358 $as_echo "yes" >&6; }
8359
8360 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8361
8362 fi
8363
8364 if test "$APPINDICATOR_LIBS" == ""; then
8365
8366 pkg_failed=no
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8368 $as_echo_n "checking for APPINDICATOR... " >&6; }
8369
8370 if test -n "$APPINDICATOR_CFLAGS"; then
8371     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8372  elif test -n "$PKG_CONFIG"; then
8373     if test -n "$PKG_CONFIG" && \
8374     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
8375   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
8376   ac_status=$?
8377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8378   test $ac_status = 0; }; then
8379   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
8380                       test "x$?" != "x0" && pkg_failed=yes
8381 else
8382   pkg_failed=yes
8383 fi
8384  else
8385     pkg_failed=untried
8386 fi
8387 if test -n "$APPINDICATOR_LIBS"; then
8388     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8389  elif test -n "$PKG_CONFIG"; then
8390     if test -n "$PKG_CONFIG" && \
8391     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 <= 0.2.9 \""; } >&5
8392   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 <= 0.2.9 ") 2>&5
8393   ac_status=$?
8394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8395   test $ac_status = 0; }; then
8396   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 <= 0.2.9 " 2>/dev/null`
8397                       test "x$?" != "x0" && pkg_failed=yes
8398 else
8399   pkg_failed=yes
8400 fi
8401  else
8402     pkg_failed=untried
8403 fi
8404
8405
8406
8407 if test $pkg_failed = yes; then
8408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8410
8411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8412         _pkg_short_errors_supported=yes
8413 else
8414         _pkg_short_errors_supported=no
8415 fi
8416         if test $_pkg_short_errors_supported = yes; then
8417                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8418         else
8419                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 <= 0.2.9 " 2>&1`
8420         fi
8421         # Put the nasty error message in config.log where it belongs
8422         echo "$APPINDICATOR_PKG_ERRORS" >&5
8423
8424         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8425 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8426 elif test $pkg_failed = untried; then
8427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AppIndicator 0.2.9 not present\"" >&5
8430 $as_echo "$as_me: WARNING: AppIndicator 0.2.9 not present\"" >&2;}
8431 else
8432         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8433         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8435 $as_echo "yes" >&6; }
8436
8437 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8438
8439
8440 $as_echo "#define HAVE_APPINDICATOR_029 1" >>confdefs.h
8441
8442
8443 fi
8444 fi
8445
8446 if test "$APPINDICATOR_LIBS" == ""; then
8447
8448 pkg_failed=no
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR" >&5
8450 $as_echo_n "checking for APPINDICATOR... " >&6; }
8451
8452 if test -n "$APPINDICATOR_CFLAGS"; then
8453     pkg_cv_APPINDICATOR_CFLAGS="$APPINDICATOR_CFLAGS"
8454  elif test -n "$PKG_CONFIG"; then
8455     if test -n "$PKG_CONFIG" && \
8456     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8457   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8458   ac_status=$?
8459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8460   test $ac_status = 0; }; then
8461   pkg_cv_APPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 > 0.2.9" 2>/dev/null`
8462                       test "x$?" != "x0" && pkg_failed=yes
8463 else
8464   pkg_failed=yes
8465 fi
8466  else
8467     pkg_failed=untried
8468 fi
8469 if test -n "$APPINDICATOR_LIBS"; then
8470     pkg_cv_APPINDICATOR_LIBS="$APPINDICATOR_LIBS"
8471  elif test -n "$PKG_CONFIG"; then
8472     if test -n "$PKG_CONFIG" && \
8473     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 > 0.2.9\""; } >&5
8474   ($PKG_CONFIG --exists --print-errors "appindicator-0.1 > 0.2.9") 2>&5
8475   ac_status=$?
8476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8477   test $ac_status = 0; }; then
8478   pkg_cv_APPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 > 0.2.9" 2>/dev/null`
8479                       test "x$?" != "x0" && pkg_failed=yes
8480 else
8481   pkg_failed=yes
8482 fi
8483  else
8484     pkg_failed=untried
8485 fi
8486
8487
8488
8489 if test $pkg_failed = yes; then
8490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8492
8493 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8494         _pkg_short_errors_supported=yes
8495 else
8496         _pkg_short_errors_supported=no
8497 fi
8498         if test $_pkg_short_errors_supported = yes; then
8499                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8500         else
8501                 APPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "appindicator-0.1 > 0.2.9" 2>&1`
8502         fi
8503         # Put the nasty error message in config.log where it belongs
8504         echo "$APPINDICATOR_PKG_ERRORS" >&5
8505
8506         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8507 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8508 elif test $pkg_failed = untried; then
8509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8511         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"AppIndicator > 0.2.9 not present\"" >&5
8512 $as_echo "$as_me: WARNING: \"AppIndicator > 0.2.9 not present\"" >&2;}
8513 else
8514         APPINDICATOR_CFLAGS=$pkg_cv_APPINDICATOR_CFLAGS
8515         APPINDICATOR_LIBS=$pkg_cv_APPINDICATOR_LIBS
8516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8517 $as_echo "yes" >&6; }
8518
8519 $as_echo "#define HAVE_APPINDICATOR 1" >>confdefs.h
8520
8521 fi
8522 fi
8523  if test -n "$APPINDICATOR_LIBS"; then
8524   APPINDICATOR_TRUE=
8525   APPINDICATOR_FALSE='#'
8526 else
8527   APPINDICATOR_TRUE='#'
8528   APPINDICATOR_FALSE=
8529 fi
8530
8531
8532
8533
8534 # Check CURL, needed for remote monitoring
8535 CURL_LIBS=
8536
8537 pkg_failed=no
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
8539 $as_echo_n "checking for CURL... " >&6; }
8540
8541 if test -n "$CURL_CFLAGS"; then
8542     pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
8543  elif test -n "$PKG_CONFIG"; then
8544     if test -n "$PKG_CONFIG" && \
8545     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8546   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8547   ac_status=$?
8548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8549   test $ac_status = 0; }; then
8550   pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
8551                       test "x$?" != "x0" && pkg_failed=yes
8552 else
8553   pkg_failed=yes
8554 fi
8555  else
8556     pkg_failed=untried
8557 fi
8558 if test -n "$CURL_LIBS"; then
8559     pkg_cv_CURL_LIBS="$CURL_LIBS"
8560  elif test -n "$PKG_CONFIG"; then
8561     if test -n "$PKG_CONFIG" && \
8562     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
8563   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
8564   ac_status=$?
8565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8566   test $ac_status = 0; }; then
8567   pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
8568                       test "x$?" != "x0" && pkg_failed=yes
8569 else
8570   pkg_failed=yes
8571 fi
8572  else
8573     pkg_failed=untried
8574 fi
8575
8576
8577
8578 if test $pkg_failed = yes; then
8579         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8581
8582 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8583         _pkg_short_errors_supported=yes
8584 else
8585         _pkg_short_errors_supported=no
8586 fi
8587         if test $_pkg_short_errors_supported = yes; then
8588                 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
8589         else
8590                 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
8591         fi
8592         # Put the nasty error message in config.log where it belongs
8593         echo "$CURL_PKG_ERRORS" >&5
8594
8595         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8596 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8597 elif test $pkg_failed = untried; then
8598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8600         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
8601 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
8602 else
8603         CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
8604         CURL_LIBS=$pkg_cv_CURL_LIBS
8605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8606 $as_echo "yes" >&6; }
8607
8608 $as_echo "#define HAVE_CURL 1" >>confdefs.h
8609
8610 fi
8611  if test -n "$CURL_LIBS"; then
8612   CURL_TRUE=
8613   CURL_FALSE='#'
8614 else
8615   CURL_TRUE='#'
8616   CURL_FALSE=
8617 fi
8618
8619
8620
8621
8622 # Check JSON, needed for remote monitoring
8623 JSON_LIBS=
8624
8625 pkg_failed=no
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8627 $as_echo_n "checking for JSON... " >&6; }
8628
8629 if test -n "$JSON_CFLAGS"; then
8630     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8631  elif test -n "$PKG_CONFIG"; then
8632     if test -n "$PKG_CONFIG" && \
8633     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
8634   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
8635   ac_status=$?
8636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8637   test $ac_status = 0; }; then
8638   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
8639                       test "x$?" != "x0" && pkg_failed=yes
8640 else
8641   pkg_failed=yes
8642 fi
8643  else
8644     pkg_failed=untried
8645 fi
8646 if test -n "$JSON_LIBS"; then
8647     pkg_cv_JSON_LIBS="$JSON_LIBS"
8648  elif test -n "$PKG_CONFIG"; then
8649     if test -n "$PKG_CONFIG" && \
8650     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
8651   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
8652   ac_status=$?
8653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8654   test $ac_status = 0; }; then
8655   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
8656                       test "x$?" != "x0" && pkg_failed=yes
8657 else
8658   pkg_failed=yes
8659 fi
8660  else
8661     pkg_failed=untried
8662 fi
8663
8664
8665
8666 if test $pkg_failed = yes; then
8667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8669
8670 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8671         _pkg_short_errors_supported=yes
8672 else
8673         _pkg_short_errors_supported=no
8674 fi
8675         if test $_pkg_short_errors_supported = yes; then
8676                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
8677         else
8678                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
8679         fi
8680         # Put the nasty error message in config.log where it belongs
8681         echo "$JSON_PKG_ERRORS" >&5
8682
8683         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8684 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8685 elif test $pkg_failed = untried; then
8686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8688         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
8689 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
8690 else
8691         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8692         JSON_LIBS=$pkg_cv_JSON_LIBS
8693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8694 $as_echo "yes" >&6; }
8695
8696 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8697
8698 fi
8699
8700 if test "$JSON_LIBS" == ""; then
8701
8702 pkg_failed=no
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
8704 $as_echo_n "checking for JSON... " >&6; }
8705
8706 if test -n "$JSON_CFLAGS"; then
8707     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
8708  elif test -n "$PKG_CONFIG"; then
8709     if test -n "$PKG_CONFIG" && \
8710     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8711   ($PKG_CONFIG --exists --print-errors "json") 2>&5
8712   ac_status=$?
8713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8714   test $ac_status = 0; }; then
8715   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
8716                       test "x$?" != "x0" && pkg_failed=yes
8717 else
8718   pkg_failed=yes
8719 fi
8720  else
8721     pkg_failed=untried
8722 fi
8723 if test -n "$JSON_LIBS"; then
8724     pkg_cv_JSON_LIBS="$JSON_LIBS"
8725  elif test -n "$PKG_CONFIG"; then
8726     if test -n "$PKG_CONFIG" && \
8727     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
8728   ($PKG_CONFIG --exists --print-errors "json") 2>&5
8729   ac_status=$?
8730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8731   test $ac_status = 0; }; then
8732   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
8733                       test "x$?" != "x0" && pkg_failed=yes
8734 else
8735   pkg_failed=yes
8736 fi
8737  else
8738     pkg_failed=untried
8739 fi
8740
8741
8742
8743 if test $pkg_failed = yes; then
8744         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745 $as_echo "no" >&6; }
8746
8747 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8748         _pkg_short_errors_supported=yes
8749 else
8750         _pkg_short_errors_supported=no
8751 fi
8752         if test $_pkg_short_errors_supported = yes; then
8753                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
8754         else
8755                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
8756         fi
8757         # Put the nasty error message in config.log where it belongs
8758         echo "$JSON_PKG_ERRORS" >&5
8759
8760         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8761 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8762 elif test $pkg_failed = untried; then
8763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8765         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
8766 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
8767 else
8768         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
8769         JSON_LIBS=$pkg_cv_JSON_LIBS
8770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8771 $as_echo "yes" >&6; }
8772
8773 $as_echo "#define HAVE_JSON 1" >>confdefs.h
8774
8775
8776 $as_echo "#define HAVE_JSON_0 1" >>confdefs.h
8777
8778 fi
8779 fi
8780
8781  if test -n "$JSON_LIBS"; then
8782   JSON_TRUE=
8783   JSON_FALSE='#'
8784 else
8785   JSON_TRUE='#'
8786   JSON_FALSE=
8787 fi
8788
8789
8790
8791
8792 # Enables remote monitoring if JSON and CURL is present
8793 if test -n "$JSON_LIBS"; then
8794    if test -n "$CURL_LIBS"; then
8795
8796 $as_echo "#define HAVE_REMOTE_SUPPORT 1" >>confdefs.h
8797
8798    fi
8799 fi
8800
8801 # Checks NVIDIA
8802 # following code from sensors-applet
8803 # sensors-applet.sourceforge.net/
8804 for ac_header in NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h
8805 do :
8806   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8807 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8808                   #include <X11/Xlib.h>
8809
8810 "
8811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8812   cat >>confdefs.h <<_ACEOF
8813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8814 _ACEOF
8815   HAVE_NVIDIA=true
8816 fi
8817
8818 done
8819
8820 if test -n "${X11_LIBS}"; then
8821 LIBS="${LIBS} -lX11 -lXext"
8822
8823 if test "${HAVE_NVIDIA}" = "true"; then
8824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryExtension in -lXNVCtrl" >&5
8825 $as_echo_n "checking for XNVCTRLQueryExtension in -lXNVCtrl... " >&6; }
8826 if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension+:} false; then :
8827   $as_echo_n "(cached) " >&6
8828 else
8829   ac_check_lib_save_LIBS=$LIBS
8830 LIBS="-lXNVCtrl  $LIBS"
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h.  */
8833
8834 /* Override any GCC internal prototype to avoid an error.
8835    Use char because int might match the return type of a GCC
8836    builtin and then its argument prototype would still apply.  */
8837 #ifdef __cplusplus
8838 extern "C"
8839 #endif
8840 char XNVCTRLQueryExtension ();
8841 int
8842 main ()
8843 {
8844 return XNVCTRLQueryExtension ();
8845   ;
8846   return 0;
8847 }
8848 _ACEOF
8849 if ac_fn_c_try_link "$LINENO"; then :
8850   ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=yes
8851 else
8852   ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension=no
8853 fi
8854 rm -f core conftest.err conftest.$ac_objext \
8855     conftest$ac_exeext conftest.$ac_ext
8856 LIBS=$ac_check_lib_save_LIBS
8857 fi
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&5
8859 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" >&6; }
8860 if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryExtension" = xyes; then :
8861   NVIDIA_LIBS="-lXNVCtrl -lX11 -lXext"
8862
8863 $as_echo "#define HAVE_NVIDIA 1" >>confdefs.h
8864
8865
8866 fi
8867
8868 fi
8869 fi
8870  if test -n "$NVIDIA_LIBS"; then
8871   NVIDIA_TRUE=
8872   NVIDIA_FALSE='#'
8873 else
8874   NVIDIA_TRUE='#'
8875   NVIDIA_FALSE=
8876 fi
8877
8878
8879
8880
8881 # Checks Unity
8882
8883 pkg_failed=no
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5
8885 $as_echo_n "checking for UNITY... " >&6; }
8886
8887 if test -n "$UNITY_CFLAGS"; then
8888     pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
8889  elif test -n "$PKG_CONFIG"; then
8890     if test -n "$PKG_CONFIG" && \
8891     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8892   ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8893   ac_status=$?
8894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8895   test $ac_status = 0; }; then
8896   pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 3.4.2" 2>/dev/null`
8897                       test "x$?" != "x0" && pkg_failed=yes
8898 else
8899   pkg_failed=yes
8900 fi
8901  else
8902     pkg_failed=untried
8903 fi
8904 if test -n "$UNITY_LIBS"; then
8905     pkg_cv_UNITY_LIBS="$UNITY_LIBS"
8906  elif test -n "$PKG_CONFIG"; then
8907     if test -n "$PKG_CONFIG" && \
8908     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 3.4.2\""; } >&5
8909   ($PKG_CONFIG --exists --print-errors "unity >= 3.4.2") 2>&5
8910   ac_status=$?
8911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8912   test $ac_status = 0; }; then
8913   pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 3.4.2" 2>/dev/null`
8914                       test "x$?" != "x0" && pkg_failed=yes
8915 else
8916   pkg_failed=yes
8917 fi
8918  else
8919     pkg_failed=untried
8920 fi
8921
8922
8923
8924 if test $pkg_failed = yes; then
8925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8927
8928 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8929         _pkg_short_errors_supported=yes
8930 else
8931         _pkg_short_errors_supported=no
8932 fi
8933         if test $_pkg_short_errors_supported = yes; then
8934                 UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8935         else
8936                 UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 3.4.2" 2>&1`
8937         fi
8938         # Put the nasty error message in config.log where it belongs
8939         echo "$UNITY_PKG_ERRORS" >&5
8940
8941         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8942 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8943 elif test $pkg_failed = untried; then
8944         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8946         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unity not present" >&5
8947 $as_echo "$as_me: WARNING: Unity not present" >&2;}
8948 else
8949         UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
8950         UNITY_LIBS=$pkg_cv_UNITY_LIBS
8951         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8952 $as_echo "yes" >&6; }
8953
8954 $as_echo "#define HAVE_UNITY 1" >>confdefs.h
8955
8956 fi
8957
8958
8959  if test -n "$UNITY_LIBS"; then
8960   UNITY_TRUE=
8961   UNITY_FALSE='#'
8962 else
8963   UNITY_TRUE='#'
8964   UNITY_FALSE=
8965 fi
8966
8967
8968 # libatiadl
8969
8970 # Check whether --with-libatiadl was given.
8971 if test "${with_libatiadl+set}" = set; then :
8972   withval=$with_libatiadl;
8973                    ATIADL_DIR=${withval}
8974                    CPPFLAGS="${CPPFLAGS} -I${ATIADL_DIR}/include"
8975                    LIBS="$LIBS -L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst"
8976
8977
8978 fi
8979
8980
8981 for ac_header in adl_defines.h
8982 do :
8983   ac_fn_c_check_header_mongrel "$LINENO" "adl_defines.h" "ac_cv_header_adl_defines_h" "$ac_includes_default"
8984 if test "x$ac_cv_header_adl_defines_h" = xyes; then :
8985   cat >>confdefs.h <<_ACEOF
8986 #define HAVE_ADL_DEFINES_H 1
8987 _ACEOF
8988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ADL_Main_Control_Refresh in -latiadlxx" >&5
8989 $as_echo_n "checking for ADL_Main_Control_Refresh in -latiadlxx... " >&6; }
8990 if ${ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh+:} false; then :
8991   $as_echo_n "(cached) " >&6
8992 else
8993   ac_check_lib_save_LIBS=$LIBS
8994 LIBS="-latiadlxx  $LIBS"
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h.  */
8997
8998 /* Override any GCC internal prototype to avoid an error.
8999    Use char because int might match the return type of a GCC
9000    builtin and then its argument prototype would still apply.  */
9001 #ifdef __cplusplus
9002 extern "C"
9003 #endif
9004 char ADL_Main_Control_Refresh ();
9005 int
9006 main ()
9007 {
9008 return ADL_Main_Control_Refresh ();
9009   ;
9010   return 0;
9011 }
9012 _ACEOF
9013 if ac_fn_c_try_link "$LINENO"; then :
9014   ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=yes
9015 else
9016   ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh=no
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext \
9019     conftest$ac_exeext conftest.$ac_ext
9020 LIBS=$ac_check_lib_save_LIBS
9021 fi
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&5
9023 $as_echo "$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" >&6; }
9024 if test "x$ac_cv_lib_atiadlxx_ADL_Main_Control_Refresh" = xyes; then :
9025
9026
9027 $as_echo "#define HAVE_LIBATIADL 1" >>confdefs.h
9028
9029                         LIBATIADL_CFLAGS="-I${ATIADL_DIR}/include"
9030                         LIBATIADL_LIBS="-L/usr/lib/fglrx -L/usr/lib64/fglrx -L/usr/lib/catalyst -L/usr/lib64/catalyst -latiadlxx -ldl"
9031
9032 fi
9033
9034 fi
9035
9036 done
9037
9038
9039  if test -n "$LIBATIADL_LIBS"; then
9040   LIBATIADL_TRUE=
9041   LIBATIADL_FALSE='#'
9042 else
9043   LIBATIADL_TRUE='#'
9044   LIBATIADL_FALSE=
9045 fi
9046
9047
9048
9049
9050 ############### psensor-server
9051
9052 # libmicrohttpd, mandatory for psensor-server
9053 LIBMICROHTTPD_LIBS=
9054
9055 pkg_failed=no
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMICROHTTPD" >&5
9057 $as_echo_n "checking for LIBMICROHTTPD... " >&6; }
9058
9059 if test -n "$LIBMICROHTTPD_CFLAGS"; then
9060     pkg_cv_LIBMICROHTTPD_CFLAGS="$LIBMICROHTTPD_CFLAGS"
9061  elif test -n "$PKG_CONFIG"; then
9062     if test -n "$PKG_CONFIG" && \
9063     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
9064   ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
9065   ac_status=$?
9066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9067   test $ac_status = 0; }; then
9068   pkg_cv_LIBMICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
9069                       test "x$?" != "x0" && pkg_failed=yes
9070 else
9071   pkg_failed=yes
9072 fi
9073  else
9074     pkg_failed=untried
9075 fi
9076 if test -n "$LIBMICROHTTPD_LIBS"; then
9077     pkg_cv_LIBMICROHTTPD_LIBS="$LIBMICROHTTPD_LIBS"
9078  elif test -n "$PKG_CONFIG"; then
9079     if test -n "$PKG_CONFIG" && \
9080     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
9081   ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
9082   ac_status=$?
9083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9084   test $ac_status = 0; }; then
9085   pkg_cv_LIBMICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
9086                       test "x$?" != "x0" && pkg_failed=yes
9087 else
9088   pkg_failed=yes
9089 fi
9090  else
9091     pkg_failed=untried
9092 fi
9093
9094
9095
9096 if test $pkg_failed = yes; then
9097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9098 $as_echo "no" >&6; }
9099
9100 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9101         _pkg_short_errors_supported=yes
9102 else
9103         _pkg_short_errors_supported=no
9104 fi
9105         if test $_pkg_short_errors_supported = yes; then
9106                 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
9107         else
9108                 LIBMICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
9109         fi
9110         # Put the nasty error message in config.log where it belongs
9111         echo "$LIBMICROHTTPD_PKG_ERRORS" >&5
9112
9113         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
9114 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
9115 elif test $pkg_failed = untried; then
9116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9118         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmicrohttpd not present" >&5
9119 $as_echo "$as_me: WARNING: \"libmicrohttpd not present" >&2;}
9120 else
9121         LIBMICROHTTPD_CFLAGS=$pkg_cv_LIBMICROHTTPD_CFLAGS
9122         LIBMICROHTTPD_LIBS=$pkg_cv_LIBMICROHTTPD_LIBS
9123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9124 $as_echo "yes" >&6; }
9125
9126 $as_echo "#define HAVE_LIBMICROHTTPD 1" >>confdefs.h
9127
9128 fi
9129  if test -n "$LIBMICROHTTPD_LIBS"; then
9130   LIBMICROHTTPD_TRUE=
9131   LIBMICROHTTPD_FALSE='#'
9132 else
9133   LIBMICROHTTPD_TRUE='#'
9134   LIBMICROHTTPD_FALSE=
9135 fi
9136
9137
9138
9139
9140 # GTop, optional
9141
9142
9143 # Check whether --with-gtop was given.
9144 if test "${with_gtop+set}" = set; then :
9145   withval=$with_gtop;
9146         with_gtop=$withval
9147 else
9148
9149         with_gtop="yes"
9150
9151 fi
9152
9153
9154 GTOP_LIBS=
9155 if test "$with_gtop" = "yes"; then
9156
9157 pkg_failed=no
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTOP" >&5
9159 $as_echo_n "checking for GTOP... " >&6; }
9160
9161 if test -n "$GTOP_CFLAGS"; then
9162     pkg_cv_GTOP_CFLAGS="$GTOP_CFLAGS"
9163  elif test -n "$PKG_CONFIG"; then
9164     if test -n "$PKG_CONFIG" && \
9165     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
9166   ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
9167   ac_status=$?
9168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9169   test $ac_status = 0; }; then
9170   pkg_cv_GTOP_CFLAGS=`$PKG_CONFIG --cflags "libgtop-2.0" 2>/dev/null`
9171                       test "x$?" != "x0" && pkg_failed=yes
9172 else
9173   pkg_failed=yes
9174 fi
9175  else
9176     pkg_failed=untried
9177 fi
9178 if test -n "$GTOP_LIBS"; then
9179     pkg_cv_GTOP_LIBS="$GTOP_LIBS"
9180  elif test -n "$PKG_CONFIG"; then
9181     if test -n "$PKG_CONFIG" && \
9182     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgtop-2.0\""; } >&5
9183   ($PKG_CONFIG --exists --print-errors "libgtop-2.0") 2>&5
9184   ac_status=$?
9185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9186   test $ac_status = 0; }; then
9187   pkg_cv_GTOP_LIBS=`$PKG_CONFIG --libs "libgtop-2.0" 2>/dev/null`
9188                       test "x$?" != "x0" && pkg_failed=yes
9189 else
9190   pkg_failed=yes
9191 fi
9192  else
9193     pkg_failed=untried
9194 fi
9195
9196
9197
9198 if test $pkg_failed = yes; then
9199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9201
9202 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9203         _pkg_short_errors_supported=yes
9204 else
9205         _pkg_short_errors_supported=no
9206 fi
9207         if test $_pkg_short_errors_supported = yes; then
9208                 GTOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgtop-2.0" 2>&1`
9209         else
9210                 GTOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgtop-2.0" 2>&1`
9211         fi
9212         # Put the nasty error message in config.log where it belongs
9213         echo "$GTOP_PKG_ERRORS" >&5
9214
9215         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
9216 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
9217 elif test $pkg_failed = untried; then
9218         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9220         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"gtop not present" >&5
9221 $as_echo "$as_me: WARNING: \"gtop not present" >&2;}
9222 else
9223         GTOP_CFLAGS=$pkg_cv_GTOP_CFLAGS
9224         GTOP_LIBS=$pkg_cv_GTOP_LIBS
9225         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9226 $as_echo "yes" >&6; }
9227
9228 $as_echo "#define HAVE_GTOP 1" >>confdefs.h
9229
9230 fi
9231 fi
9232  if test -n "$GTOP_LIBS"; then
9233   GTOP_TRUE=
9234   GTOP_FALSE='#'
9235 else
9236   GTOP_TRUE='#'
9237   GTOP_FALSE=
9238 fi
9239
9240
9241
9242
9243 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"
9244
9245
9246 for ac_prog in help2man
9247 do
9248   # Extract the first word of "$ac_prog", so it can be a program name with args.
9249 set dummy $ac_prog; ac_word=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if ${ac_cv_prog_HELP2MAN+:} false; then :
9253   $as_echo_n "(cached) " >&6
9254 else
9255   if test -n "$HELP2MAN"; then
9256   ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
9257 else
9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9260 do
9261   IFS=$as_save_IFS
9262   test -z "$as_dir" && as_dir=.
9263     for ac_exec_ext in '' $ac_executable_extensions; do
9264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9265     ac_cv_prog_HELP2MAN="$ac_prog"
9266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267     break 2
9268   fi
9269 done
9270   done
9271 IFS=$as_save_IFS
9272
9273 fi
9274 fi
9275 HELP2MAN=$ac_cv_prog_HELP2MAN
9276 if test -n "$HELP2MAN"; then
9277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
9278 $as_echo "$HELP2MAN" >&6; }
9279 else
9280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9282 fi
9283
9284
9285   test -n "$HELP2MAN" && break
9286 done
9287
9288
9289 # Extract the first word of "cppcheck", so it can be a program name with args.
9290 set dummy cppcheck; ac_word=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
9294   $as_echo_n "(cached) " >&6
9295 else
9296   if test -n "$HAVE_CPPCHECK"; then
9297   ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
9298 else
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 for as_dir in $PATH
9301 do
9302   IFS=$as_save_IFS
9303   test -z "$as_dir" && as_dir=.
9304     for ac_exec_ext in '' $ac_executable_extensions; do
9305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9306     ac_cv_prog_HAVE_CPPCHECK="yes"
9307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9308     break 2
9309   fi
9310 done
9311   done
9312 IFS=$as_save_IFS
9313
9314 fi
9315 fi
9316 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
9317 if test -n "$HAVE_CPPCHECK"; then
9318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
9319 $as_echo "$HAVE_CPPCHECK" >&6; }
9320 else
9321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322 $as_echo "no" >&6; }
9323 fi
9324
9325
9326  if test -n "$HAVE_CPPCHECK"; then
9327   CPPCHECK_TRUE=
9328   CPPCHECK_FALSE='#'
9329 else
9330   CPPCHECK_TRUE='#'
9331   CPPCHECK_FALSE=
9332 fi
9333
9334
9335 cat >confcache <<\_ACEOF
9336 # This file is a shell script that caches the results of configure
9337 # tests run on this system so they can be shared between configure
9338 # scripts and configure runs, see configure's option --config-cache.
9339 # It is not useful on other systems.  If it contains results you don't
9340 # want to keep, you may remove or edit it.
9341 #
9342 # config.status only pays attention to the cache file if you give it
9343 # the --recheck option to rerun configure.
9344 #
9345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9347 # following values.
9348
9349 _ACEOF
9350
9351 # The following way of writing the cache mishandles newlines in values,
9352 # but we know of no workaround that is simple, portable, and efficient.
9353 # So, we kill variables containing newlines.
9354 # Ultrix sh set writes to stderr and can't be redirected directly,
9355 # and sets the high bit in the cache file unless we assign to the vars.
9356 (
9357   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9358     eval ac_val=\$$ac_var
9359     case $ac_val in #(
9360     *${as_nl}*)
9361       case $ac_var in #(
9362       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9364       esac
9365       case $ac_var in #(
9366       _ | IFS | as_nl) ;; #(
9367       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9368       *) { eval $ac_var=; unset $ac_var;} ;;
9369       esac ;;
9370     esac
9371   done
9372
9373   (set) 2>&1 |
9374     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9375     *${as_nl}ac_space=\ *)
9376       # `set' does not quote correctly, so add quotes: double-quote
9377       # substitution turns \\\\ into \\, and sed turns \\ into \.
9378       sed -n \
9379         "s/'/'\\\\''/g;
9380           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9381       ;; #(
9382     *)
9383       # `set' quotes correctly as required by POSIX, so do not add quotes.
9384       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9385       ;;
9386     esac |
9387     sort
9388 ) |
9389   sed '
9390      /^ac_cv_env_/b end
9391      t clear
9392      :clear
9393      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9394      t end
9395      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9396      :end' >>confcache
9397 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9398   if test -w "$cache_file"; then
9399     if test "x$cache_file" != "x/dev/null"; then
9400       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9401 $as_echo "$as_me: updating cache $cache_file" >&6;}
9402       if test ! -f "$cache_file" || test -h "$cache_file"; then
9403         cat confcache >"$cache_file"
9404       else
9405         case $cache_file in #(
9406         */* | ?:*)
9407           mv -f confcache "$cache_file"$$ &&
9408           mv -f "$cache_file"$$ "$cache_file" ;; #(
9409         *)
9410           mv -f confcache "$cache_file" ;;
9411         esac
9412       fi
9413     fi
9414   else
9415     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9416 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9417   fi
9418 fi
9419 rm -f confcache
9420
9421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9422 # Let make expand exec_prefix.
9423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9424
9425 DEFS=-DHAVE_CONFIG_H
9426
9427 ac_libobjs=
9428 ac_ltlibobjs=
9429 U=
9430 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9431   # 1. Remove the extension, and $U if already installed.
9432   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9433   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9434   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9435   #    will be set to the directory where LIBOBJS objects are built.
9436   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9437   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9438 done
9439 LIBOBJS=$ac_libobjs
9440
9441 LTLIBOBJS=$ac_ltlibobjs
9442
9443
9444  if test -n "$EXEEXT"; then
9445   am__EXEEXT_TRUE=
9446   am__EXEEXT_FALSE='#'
9447 else
9448   am__EXEEXT_TRUE='#'
9449   am__EXEEXT_FALSE=
9450 fi
9451
9452 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9453   as_fn_error $? "conditional \"AMDEP\" was never defined.
9454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9455 fi
9456 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9457   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9459 fi
9460 if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
9461   as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
9462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9463 fi
9464 if test -z "${X11_TRUE}" && test -z "${X11_FALSE}"; then
9465   as_fn_error $? "conditional \"X11\" was never defined.
9466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9467 fi
9468 if test -z "${XEXT_TRUE}" && test -z "${XEXT_FALSE}"; then
9469   as_fn_error $? "conditional \"XEXT\" was never defined.
9470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9471 fi
9472 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
9473   as_fn_error $? "conditional \"GTK\" was never defined.
9474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9475 fi
9476 if test -z "${GCONF_TRUE}" && test -z "${GCONF_FALSE}"; then
9477   as_fn_error $? "conditional \"GCONF\" was never defined.
9478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9479 fi
9480 if test -z "${ATASMART_TRUE}" && test -z "${ATASMART_FALSE}"; then
9481   as_fn_error $? "conditional \"ATASMART\" was never defined.
9482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9483 fi
9484 if test -z "${LIBNOTIFY_TRUE}" && test -z "${LIBNOTIFY_FALSE}"; then
9485   as_fn_error $? "conditional \"LIBNOTIFY\" was never defined.
9486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9487 fi
9488 if test -z "${APPINDICATOR_TRUE}" && test -z "${APPINDICATOR_FALSE}"; then
9489   as_fn_error $? "conditional \"APPINDICATOR\" was never defined.
9490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9491 fi
9492 if test -z "${CURL_TRUE}" && test -z "${CURL_FALSE}"; then
9493   as_fn_error $? "conditional \"CURL\" was never defined.
9494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9495 fi
9496 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
9497   as_fn_error $? "conditional \"JSON\" was never defined.
9498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9499 fi
9500 if test -z "${NVIDIA_TRUE}" && test -z "${NVIDIA_FALSE}"; then
9501   as_fn_error $? "conditional \"NVIDIA\" was never defined.
9502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9503 fi
9504 if test -z "${UNITY_TRUE}" && test -z "${UNITY_FALSE}"; then
9505   as_fn_error $? "conditional \"UNITY\" was never defined.
9506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9507 fi
9508 if test -z "${LIBATIADL_TRUE}" && test -z "${LIBATIADL_FALSE}"; then
9509   as_fn_error $? "conditional \"LIBATIADL\" was never defined.
9510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9511 fi
9512 if test -z "${LIBMICROHTTPD_TRUE}" && test -z "${LIBMICROHTTPD_FALSE}"; then
9513   as_fn_error $? "conditional \"LIBMICROHTTPD\" was never defined.
9514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9515 fi
9516 if test -z "${GTOP_TRUE}" && test -z "${GTOP_FALSE}"; then
9517   as_fn_error $? "conditional \"GTOP\" was never defined.
9518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9519 fi
9520 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
9521   as_fn_error $? "conditional \"CPPCHECK\" was never defined.
9522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9523 fi
9524
9525 : "${CONFIG_STATUS=./config.status}"
9526 ac_write_fail=0
9527 ac_clean_files_save=$ac_clean_files
9528 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9530 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9531 as_write_fail=0
9532 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9533 #! $SHELL
9534 # Generated by $as_me.
9535 # Run this file to recreate the current configuration.
9536 # Compiler output produced by configure, useful for debugging
9537 # configure, is in config.log if it exists.
9538
9539 debug=false
9540 ac_cs_recheck=false
9541 ac_cs_silent=false
9542
9543 SHELL=\${CONFIG_SHELL-$SHELL}
9544 export SHELL
9545 _ASEOF
9546 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9547 ## -------------------- ##
9548 ## M4sh Initialization. ##
9549 ## -------------------- ##
9550
9551 # Be more Bourne compatible
9552 DUALCASE=1; export DUALCASE # for MKS sh
9553 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9554   emulate sh
9555   NULLCMD=:
9556   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9557   # is contrary to our usage.  Disable this feature.
9558   alias -g '${1+"$@"}'='"$@"'
9559   setopt NO_GLOB_SUBST
9560 else
9561   case `(set -o) 2>/dev/null` in #(
9562   *posix*) :
9563     set -o posix ;; #(
9564   *) :
9565      ;;
9566 esac
9567 fi
9568
9569
9570 as_nl='
9571 '
9572 export as_nl
9573 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9574 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9575 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9576 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9577 # Prefer a ksh shell builtin over an external printf program on Solaris,
9578 # but without wasting forks for bash or zsh.
9579 if test -z "$BASH_VERSION$ZSH_VERSION" \
9580     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9581   as_echo='print -r --'
9582   as_echo_n='print -rn --'
9583 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9584   as_echo='printf %s\n'
9585   as_echo_n='printf %s'
9586 else
9587   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9588     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9589     as_echo_n='/usr/ucb/echo -n'
9590   else
9591     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9592     as_echo_n_body='eval
9593       arg=$1;
9594       case $arg in #(
9595       *"$as_nl"*)
9596         expr "X$arg" : "X\\(.*\\)$as_nl";
9597         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9598       esac;
9599       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9600     '
9601     export as_echo_n_body
9602     as_echo_n='sh -c $as_echo_n_body as_echo'
9603   fi
9604   export as_echo_body
9605   as_echo='sh -c $as_echo_body as_echo'
9606 fi
9607
9608 # The user is always right.
9609 if test "${PATH_SEPARATOR+set}" != set; then
9610   PATH_SEPARATOR=:
9611   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9612     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9613       PATH_SEPARATOR=';'
9614   }
9615 fi
9616
9617
9618 # IFS
9619 # We need space, tab and new line, in precisely that order.  Quoting is
9620 # there to prevent editors from complaining about space-tab.
9621 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9622 # splitting by setting IFS to empty value.)
9623 IFS=" ""        $as_nl"
9624
9625 # Find who we are.  Look in the path if we contain no directory separator.
9626 as_myself=
9627 case $0 in #((
9628   *[\\/]* ) as_myself=$0 ;;
9629   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630 for as_dir in $PATH
9631 do
9632   IFS=$as_save_IFS
9633   test -z "$as_dir" && as_dir=.
9634     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9635   done
9636 IFS=$as_save_IFS
9637
9638      ;;
9639 esac
9640 # We did not find ourselves, most probably we were run as `sh COMMAND'
9641 # in which case we are not to be found in the path.
9642 if test "x$as_myself" = x; then
9643   as_myself=$0
9644 fi
9645 if test ! -f "$as_myself"; then
9646   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9647   exit 1
9648 fi
9649
9650 # Unset variables that we do not need and which cause bugs (e.g. in
9651 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9652 # suppresses any "Segmentation fault" message there.  '((' could
9653 # trigger a bug in pdksh 5.2.14.
9654 for as_var in BASH_ENV ENV MAIL MAILPATH
9655 do eval test x\${$as_var+set} = xset \
9656   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9657 done
9658 PS1='$ '
9659 PS2='> '
9660 PS4='+ '
9661
9662 # NLS nuisances.
9663 LC_ALL=C
9664 export LC_ALL
9665 LANGUAGE=C
9666 export LANGUAGE
9667
9668 # CDPATH.
9669 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9670
9671
9672 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9673 # ----------------------------------------
9674 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9675 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9676 # script with STATUS, using 1 if that was 0.
9677 as_fn_error ()
9678 {
9679   as_status=$1; test $as_status -eq 0 && as_status=1
9680   if test "$4"; then
9681     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9682     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9683   fi
9684   $as_echo "$as_me: error: $2" >&2
9685   as_fn_exit $as_status
9686 } # as_fn_error
9687
9688
9689 # as_fn_set_status STATUS
9690 # -----------------------
9691 # Set $? to STATUS, without forking.
9692 as_fn_set_status ()
9693 {
9694   return $1
9695 } # as_fn_set_status
9696
9697 # as_fn_exit STATUS
9698 # -----------------
9699 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9700 as_fn_exit ()
9701 {
9702   set +e
9703   as_fn_set_status $1
9704   exit $1
9705 } # as_fn_exit
9706
9707 # as_fn_unset VAR
9708 # ---------------
9709 # Portably unset VAR.
9710 as_fn_unset ()
9711 {
9712   { eval $1=; unset $1;}
9713 }
9714 as_unset=as_fn_unset
9715 # as_fn_append VAR VALUE
9716 # ----------------------
9717 # Append the text in VALUE to the end of the definition contained in VAR. Take
9718 # advantage of any shell optimizations that allow amortized linear growth over
9719 # repeated appends, instead of the typical quadratic growth present in naive
9720 # implementations.
9721 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9722   eval 'as_fn_append ()
9723   {
9724     eval $1+=\$2
9725   }'
9726 else
9727   as_fn_append ()
9728   {
9729     eval $1=\$$1\$2
9730   }
9731 fi # as_fn_append
9732
9733 # as_fn_arith ARG...
9734 # ------------------
9735 # Perform arithmetic evaluation on the ARGs, and store the result in the
9736 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9737 # must be portable across $(()) and expr.
9738 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9739   eval 'as_fn_arith ()
9740   {
9741     as_val=$(( $* ))
9742   }'
9743 else
9744   as_fn_arith ()
9745   {
9746     as_val=`expr "$@" || test $? -eq 1`
9747   }
9748 fi # as_fn_arith
9749
9750
9751 if expr a : '\(a\)' >/dev/null 2>&1 &&
9752    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9753   as_expr=expr
9754 else
9755   as_expr=false
9756 fi
9757
9758 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9759   as_basename=basename
9760 else
9761   as_basename=false
9762 fi
9763
9764 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9765   as_dirname=dirname
9766 else
9767   as_dirname=false
9768 fi
9769
9770 as_me=`$as_basename -- "$0" ||
9771 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9772          X"$0" : 'X\(//\)$' \| \
9773          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9774 $as_echo X/"$0" |
9775     sed '/^.*\/\([^/][^/]*\)\/*$/{
9776             s//\1/
9777             q
9778           }
9779           /^X\/\(\/\/\)$/{
9780             s//\1/
9781             q
9782           }
9783           /^X\/\(\/\).*/{
9784             s//\1/
9785             q
9786           }
9787           s/.*/./; q'`
9788
9789 # Avoid depending upon Character Ranges.
9790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9793 as_cr_digits='0123456789'
9794 as_cr_alnum=$as_cr_Letters$as_cr_digits
9795
9796 ECHO_C= ECHO_N= ECHO_T=
9797 case `echo -n x` in #(((((
9798 -n*)
9799   case `echo 'xy\c'` in
9800   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9801   xy)  ECHO_C='\c';;
9802   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9803        ECHO_T=' ';;
9804   esac;;
9805 *)
9806   ECHO_N='-n';;
9807 esac
9808
9809 rm -f conf$$ conf$$.exe conf$$.file
9810 if test -d conf$$.dir; then
9811   rm -f conf$$.dir/conf$$.file
9812 else
9813   rm -f conf$$.dir
9814   mkdir conf$$.dir 2>/dev/null
9815 fi
9816 if (echo >conf$$.file) 2>/dev/null; then
9817   if ln -s conf$$.file conf$$ 2>/dev/null; then
9818     as_ln_s='ln -s'
9819     # ... but there are two gotchas:
9820     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9821     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9822     # In both cases, we have to default to `cp -pR'.
9823     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9824       as_ln_s='cp -pR'
9825   elif ln conf$$.file conf$$ 2>/dev/null; then
9826     as_ln_s=ln
9827   else
9828     as_ln_s='cp -pR'
9829   fi
9830 else
9831   as_ln_s='cp -pR'
9832 fi
9833 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9834 rmdir conf$$.dir 2>/dev/null
9835
9836
9837 # as_fn_mkdir_p
9838 # -------------
9839 # Create "$as_dir" as a directory, including parents if necessary.
9840 as_fn_mkdir_p ()
9841 {
9842
9843   case $as_dir in #(
9844   -*) as_dir=./$as_dir;;
9845   esac
9846   test -d "$as_dir" || eval $as_mkdir_p || {
9847     as_dirs=
9848     while :; do
9849       case $as_dir in #(
9850       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9851       *) as_qdir=$as_dir;;
9852       esac
9853       as_dirs="'$as_qdir' $as_dirs"
9854       as_dir=`$as_dirname -- "$as_dir" ||
9855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9856          X"$as_dir" : 'X\(//\)[^/]' \| \
9857          X"$as_dir" : 'X\(//\)$' \| \
9858          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9859 $as_echo X"$as_dir" |
9860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9861             s//\1/
9862             q
9863           }
9864           /^X\(\/\/\)[^/].*/{
9865             s//\1/
9866             q
9867           }
9868           /^X\(\/\/\)$/{
9869             s//\1/
9870             q
9871           }
9872           /^X\(\/\).*/{
9873             s//\1/
9874             q
9875           }
9876           s/.*/./; q'`
9877       test -d "$as_dir" && break
9878     done
9879     test -z "$as_dirs" || eval "mkdir $as_dirs"
9880   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9881
9882
9883 } # as_fn_mkdir_p
9884 if mkdir -p . 2>/dev/null; then
9885   as_mkdir_p='mkdir -p "$as_dir"'
9886 else
9887   test -d ./-p && rmdir ./-p
9888   as_mkdir_p=false
9889 fi
9890
9891
9892 # as_fn_executable_p FILE
9893 # -----------------------
9894 # Test if FILE is an executable regular file.
9895 as_fn_executable_p ()
9896 {
9897   test -f "$1" && test -x "$1"
9898 } # as_fn_executable_p
9899 as_test_x='test -x'
9900 as_executable_p=as_fn_executable_p
9901
9902 # Sed expression to map a string onto a valid CPP name.
9903 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9904
9905 # Sed expression to map a string onto a valid variable name.
9906 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9907
9908
9909 exec 6>&1
9910 ## ----------------------------------- ##
9911 ## Main body of $CONFIG_STATUS script. ##
9912 ## ----------------------------------- ##
9913 _ASEOF
9914 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9915
9916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9917 # Save the log message, to keep $0 and so on meaningful, and to
9918 # report actual input values of CONFIG_FILES etc. instead of their
9919 # values after options handling.
9920 ac_log="
9921 This file was extended by psensor $as_me 0.8.0.x, which was
9922 generated by GNU Autoconf 2.69.  Invocation command line was
9923
9924   CONFIG_FILES    = $CONFIG_FILES
9925   CONFIG_HEADERS  = $CONFIG_HEADERS
9926   CONFIG_LINKS    = $CONFIG_LINKS
9927   CONFIG_COMMANDS = $CONFIG_COMMANDS
9928   $ $0 $@
9929
9930 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9931 "
9932
9933 _ACEOF
9934
9935 case $ac_config_files in *"
9936 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9937 esac
9938
9939 case $ac_config_headers in *"
9940 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9941 esac
9942
9943
9944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9945 # Files that config.status was made for.
9946 config_files="$ac_config_files"
9947 config_headers="$ac_config_headers"
9948 config_commands="$ac_config_commands"
9949
9950 _ACEOF
9951
9952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9953 ac_cs_usage="\
9954 \`$as_me' instantiates files and other configuration actions
9955 from templates according to the current configuration.  Unless the files
9956 and actions are specified as TAGs, all are instantiated by default.
9957
9958 Usage: $0 [OPTION]... [TAG]...
9959
9960   -h, --help       print this help, then exit
9961   -V, --version    print version number and configuration settings, then exit
9962       --config     print configuration, then exit
9963   -q, --quiet, --silent
9964                    do not print progress messages
9965   -d, --debug      don't remove temporary files
9966       --recheck    update $as_me by reconfiguring in the same conditions
9967       --file=FILE[:TEMPLATE]
9968                    instantiate the configuration file FILE
9969       --header=FILE[:TEMPLATE]
9970                    instantiate the configuration header FILE
9971
9972 Configuration files:
9973 $config_files
9974
9975 Configuration headers:
9976 $config_headers
9977
9978 Configuration commands:
9979 $config_commands
9980
9981 Report bugs to <jeanfi@gmail.com>.
9982 psensor home page: <http://wpitchoune.net/psensor>."
9983
9984 _ACEOF
9985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9986 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9987 ac_cs_version="\\
9988 psensor config.status 0.8.0.x
9989 configured by $0, generated by GNU Autoconf 2.69,
9990   with options \\"\$ac_cs_config\\"
9991
9992 Copyright (C) 2012 Free Software Foundation, Inc.
9993 This config.status script is free software; the Free Software Foundation
9994 gives unlimited permission to copy, distribute and modify it."
9995
9996 ac_pwd='$ac_pwd'
9997 srcdir='$srcdir'
9998 INSTALL='$INSTALL'
9999 MKDIR_P='$MKDIR_P'
10000 AWK='$AWK'
10001 test -n "\$AWK" || AWK=awk
10002 _ACEOF
10003
10004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10005 # The default lists apply if the user does not specify any file.
10006 ac_need_defaults=:
10007 while test $# != 0
10008 do
10009   case $1 in
10010   --*=?*)
10011     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10012     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10013     ac_shift=:
10014     ;;
10015   --*=)
10016     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10017     ac_optarg=
10018     ac_shift=:
10019     ;;
10020   *)
10021     ac_option=$1
10022     ac_optarg=$2
10023     ac_shift=shift
10024     ;;
10025   esac
10026
10027   case $ac_option in
10028   # Handling of the options.
10029   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10030     ac_cs_recheck=: ;;
10031   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10032     $as_echo "$ac_cs_version"; exit ;;
10033   --config | --confi | --conf | --con | --co | --c )
10034     $as_echo "$ac_cs_config"; exit ;;
10035   --debug | --debu | --deb | --de | --d | -d )
10036     debug=: ;;
10037   --file | --fil | --fi | --f )
10038     $ac_shift
10039     case $ac_optarg in
10040     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10041     '') as_fn_error $? "missing file argument" ;;
10042     esac
10043     as_fn_append CONFIG_FILES " '$ac_optarg'"
10044     ac_need_defaults=false;;
10045   --header | --heade | --head | --hea )
10046     $ac_shift
10047     case $ac_optarg in
10048     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10049     esac
10050     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10051     ac_need_defaults=false;;
10052   --he | --h)
10053     # Conflict between --help and --header
10054     as_fn_error $? "ambiguous option: \`$1'
10055 Try \`$0 --help' for more information.";;
10056   --help | --hel | -h )
10057     $as_echo "$ac_cs_usage"; exit ;;
10058   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10059   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10060     ac_cs_silent=: ;;
10061
10062   # This is an error.
10063   -*) as_fn_error $? "unrecognized option: \`$1'
10064 Try \`$0 --help' for more information." ;;
10065
10066   *) as_fn_append ac_config_targets " $1"
10067      ac_need_defaults=false ;;
10068
10069   esac
10070   shift
10071 done
10072
10073 ac_configure_extra_args=
10074
10075 if $ac_cs_silent; then
10076   exec 6>/dev/null
10077   ac_configure_extra_args="$ac_configure_extra_args --silent"
10078 fi
10079
10080 _ACEOF
10081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10082 if \$ac_cs_recheck; then
10083   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10084   shift
10085   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10086   CONFIG_SHELL='$SHELL'
10087   export CONFIG_SHELL
10088   exec "\$@"
10089 fi
10090
10091 _ACEOF
10092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10093 exec 5>>config.log
10094 {
10095   echo
10096   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10097 ## Running $as_me. ##
10098 _ASBOX
10099   $as_echo "$ac_log"
10100 } >&5
10101
10102 _ACEOF
10103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10104 #
10105 # INIT-COMMANDS
10106 #
10107 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10108 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10109     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10110     # from automake < 1.5.
10111     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10112     # Capture the value of LINGUAS because we need it to compute CATALOGS.
10113     LINGUAS="${LINGUAS-%UNSET%}"
10114
10115
10116 _ACEOF
10117
10118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10119
10120 # Handling of arguments.
10121 for ac_config_target in $ac_config_targets
10122 do
10123   case $ac_config_target in
10124     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10125     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10126     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10127     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10128     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10129     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10130     "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
10131     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10132     "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
10133     "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
10134     "icons/hicolor/14x14/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/14x14/Makefile" ;;
10135     "icons/hicolor/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/16x16/Makefile" ;;
10136     "icons/hicolor/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/22x22/Makefile" ;;
10137     "icons/hicolor/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/24x24/Makefile" ;;
10138     "icons/hicolor/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/32x32/Makefile" ;;
10139     "icons/hicolor/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/48x48/Makefile" ;;
10140     "icons/hicolor/64x64/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/64x64/Makefile" ;;
10141     "icons/ubuntu-mono-dark/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/status/22/Makefile" ;;
10142     "icons/ubuntu-mono-light/status/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-light/status/22/Makefile" ;;
10143     "icons/ubuntu-mono-dark/apps/22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/ubuntu-mono-dark/apps/22/Makefile" ;;
10144     "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
10145     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10146     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10147
10148   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10149   esac
10150 done
10151
10152
10153 # If the user did not use the arguments to specify the items to instantiate,
10154 # then the envvar interface is used.  Set only those that are not.
10155 # We use the long form for the default assignment because of an extremely
10156 # bizarre bug on SunOS 4.1.3.
10157 if $ac_need_defaults; then
10158   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10159   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10160   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10161 fi
10162
10163 # Have a temporary directory for convenience.  Make it in the build tree
10164 # simply because there is no reason against having it here, and in addition,
10165 # creating and moving files from /tmp can sometimes cause problems.
10166 # Hook for its removal unless debugging.
10167 # Note that there is a small window in which the directory will not be cleaned:
10168 # after its creation but before its name has been assigned to `$tmp'.
10169 $debug ||
10170 {
10171   tmp= ac_tmp=
10172   trap 'exit_status=$?
10173   : "${ac_tmp:=$tmp}"
10174   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10175 ' 0
10176   trap 'as_fn_exit 1' 1 2 13 15
10177 }
10178 # Create a (secure) tmp directory for tmp files.
10179
10180 {
10181   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10182   test -d "$tmp"
10183 }  ||
10184 {
10185   tmp=./conf$$-$RANDOM
10186   (umask 077 && mkdir "$tmp")
10187 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10188 ac_tmp=$tmp
10189
10190 # Set up the scripts for CONFIG_FILES section.
10191 # No need to generate them if there are no CONFIG_FILES.
10192 # This happens for instance with `./config.status config.h'.
10193 if test -n "$CONFIG_FILES"; then
10194
10195
10196 ac_cr=`echo X | tr X '\015'`
10197 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10198 # But we know of no other shell where ac_cr would be empty at this
10199 # point, so we can use a bashism as a fallback.
10200 if test "x$ac_cr" = x; then
10201   eval ac_cr=\$\'\\r\'
10202 fi
10203 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10204 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10205   ac_cs_awk_cr='\\r'
10206 else
10207   ac_cs_awk_cr=$ac_cr
10208 fi
10209
10210 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10211 _ACEOF
10212
10213
10214 {
10215   echo "cat >conf$$subs.awk <<_ACEOF" &&
10216   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10217   echo "_ACEOF"
10218 } >conf$$subs.sh ||
10219   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10220 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10221 ac_delim='%!_!# '
10222 for ac_last_try in false false false false false :; do
10223   . ./conf$$subs.sh ||
10224     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10225
10226   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10227   if test $ac_delim_n = $ac_delim_num; then
10228     break
10229   elif $ac_last_try; then
10230     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10231   else
10232     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10233   fi
10234 done
10235 rm -f conf$$subs.sh
10236
10237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10238 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10239 _ACEOF
10240 sed -n '
10241 h
10242 s/^/S["/; s/!.*/"]=/
10243 p
10244 g
10245 s/^[^!]*!//
10246 :repl
10247 t repl
10248 s/'"$ac_delim"'$//
10249 t delim
10250 :nl
10251 h
10252 s/\(.\{148\}\)..*/\1/
10253 t more1
10254 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10255 p
10256 n
10257 b repl
10258 :more1
10259 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10260 p
10261 g
10262 s/.\{148\}//
10263 t nl
10264 :delim
10265 h
10266 s/\(.\{148\}\)..*/\1/
10267 t more2
10268 s/["\\]/\\&/g; s/^/"/; s/$/"/
10269 p
10270 b
10271 :more2
10272 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10273 p
10274 g
10275 s/.\{148\}//
10276 t delim
10277 ' <conf$$subs.awk | sed '
10278 /^[^""]/{
10279   N
10280   s/\n//
10281 }
10282 ' >>$CONFIG_STATUS || ac_write_fail=1
10283 rm -f conf$$subs.awk
10284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10285 _ACAWK
10286 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10287   for (key in S) S_is_set[key] = 1
10288   FS = "\a"
10289
10290 }
10291 {
10292   line = $ 0
10293   nfields = split(line, field, "@")
10294   substed = 0
10295   len = length(field[1])
10296   for (i = 2; i < nfields; i++) {
10297     key = field[i]
10298     keylen = length(key)
10299     if (S_is_set[key]) {
10300       value = S[key]
10301       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10302       len += length(value) + length(field[++i])
10303       substed = 1
10304     } else
10305       len += 1 + keylen
10306   }
10307
10308   print line
10309 }
10310
10311 _ACAWK
10312 _ACEOF
10313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10314 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10315   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10316 else
10317   cat
10318 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10319   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10320 _ACEOF
10321
10322 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10323 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10324 # trailing colons and then remove the whole line if VPATH becomes empty
10325 # (actually we leave an empty line to preserve line numbers).
10326 if test "x$srcdir" = x.; then
10327   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
10328 h
10329 s///
10330 s/^/:/
10331 s/[      ]*$/:/
10332 s/:\$(srcdir):/:/g
10333 s/:\${srcdir}:/:/g
10334 s/:@srcdir@:/:/g
10335 s/^:*//
10336 s/:*$//
10337 x
10338 s/\(=[   ]*\).*/\1/
10339 G
10340 s/\n//
10341 s/^[^=]*=[       ]*$//
10342 }'
10343 fi
10344
10345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10346 fi # test -n "$CONFIG_FILES"
10347
10348 # Set up the scripts for CONFIG_HEADERS section.
10349 # No need to generate them if there are no CONFIG_HEADERS.
10350 # This happens for instance with `./config.status Makefile'.
10351 if test -n "$CONFIG_HEADERS"; then
10352 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10353 BEGIN {
10354 _ACEOF
10355
10356 # Transform confdefs.h into an awk script `defines.awk', embedded as
10357 # here-document in config.status, that substitutes the proper values into
10358 # config.h.in to produce config.h.
10359
10360 # Create a delimiter string that does not exist in confdefs.h, to ease
10361 # handling of long lines.
10362 ac_delim='%!_!# '
10363 for ac_last_try in false false :; do
10364   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10365   if test -z "$ac_tt"; then
10366     break
10367   elif $ac_last_try; then
10368     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10369   else
10370     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10371   fi
10372 done
10373
10374 # For the awk script, D is an array of macro values keyed by name,
10375 # likewise P contains macro parameters if any.  Preserve backslash
10376 # newline sequences.
10377
10378 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10379 sed -n '
10380 s/.\{148\}/&'"$ac_delim"'/g
10381 t rset
10382 :rset
10383 s/^[     ]*#[    ]*define[       ][      ]*/ /
10384 t def
10385 d
10386 :def
10387 s/\\$//
10388 t bsnl
10389 s/["\\]/\\&/g
10390 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10391 D["\1"]=" \3"/p
10392 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10393 d
10394 :bsnl
10395 s/["\\]/\\&/g
10396 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10397 D["\1"]=" \3\\\\\\n"\\/p
10398 t cont
10399 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10400 t cont
10401 d
10402 :cont
10403 n
10404 s/.\{148\}/&'"$ac_delim"'/g
10405 t clear
10406 :clear
10407 s/\\$//
10408 t bsnlc
10409 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10410 d
10411 :bsnlc
10412 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10413 b cont
10414 ' <confdefs.h | sed '
10415 s/'"$ac_delim"'/"\\\
10416 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10417
10418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10419   for (key in D) D_is_set[key] = 1
10420   FS = "\a"
10421 }
10422 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10423   line = \$ 0
10424   split(line, arg, " ")
10425   if (arg[1] == "#") {
10426     defundef = arg[2]
10427     mac1 = arg[3]
10428   } else {
10429     defundef = substr(arg[1], 2)
10430     mac1 = arg[2]
10431   }
10432   split(mac1, mac2, "(") #)
10433   macro = mac2[1]
10434   prefix = substr(line, 1, index(line, defundef) - 1)
10435   if (D_is_set[macro]) {
10436     # Preserve the white space surrounding the "#".
10437     print prefix "define", macro P[macro] D[macro]
10438     next
10439   } else {
10440     # Replace #undef with comments.  This is necessary, for example,
10441     # in the case of _POSIX_SOURCE, which is predefined and required
10442     # on some systems where configure will not decide to define it.
10443     if (defundef == "undef") {
10444       print "/*", prefix defundef, macro, "*/"
10445       next
10446     }
10447   }
10448 }
10449 { print }
10450 _ACAWK
10451 _ACEOF
10452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10453   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10454 fi # test -n "$CONFIG_HEADERS"
10455
10456
10457 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10458 shift
10459 for ac_tag
10460 do
10461   case $ac_tag in
10462   :[FHLC]) ac_mode=$ac_tag; continue;;
10463   esac
10464   case $ac_mode$ac_tag in
10465   :[FHL]*:*);;
10466   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10467   :[FH]-) ac_tag=-:-;;
10468   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10469   esac
10470   ac_save_IFS=$IFS
10471   IFS=:
10472   set x $ac_tag
10473   IFS=$ac_save_IFS
10474   shift
10475   ac_file=$1
10476   shift
10477
10478   case $ac_mode in
10479   :L) ac_source=$1;;
10480   :[FH])
10481     ac_file_inputs=
10482     for ac_f
10483     do
10484       case $ac_f in
10485       -) ac_f="$ac_tmp/stdin";;
10486       *) # Look for the file first in the build tree, then in the source tree
10487          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10488          # because $ac_f cannot contain `:'.
10489          test -f "$ac_f" ||
10490            case $ac_f in
10491            [\\/$]*) false;;
10492            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10493            esac ||
10494            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10495       esac
10496       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10497       as_fn_append ac_file_inputs " '$ac_f'"
10498     done
10499
10500     # Let's still pretend it is `configure' which instantiates (i.e., don't
10501     # use $as_me), people would be surprised to read:
10502     #    /* config.h.  Generated by config.status.  */
10503     configure_input='Generated from '`
10504           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10505         `' by configure.'
10506     if test x"$ac_file" != x-; then
10507       configure_input="$ac_file.  $configure_input"
10508       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10509 $as_echo "$as_me: creating $ac_file" >&6;}
10510     fi
10511     # Neutralize special characters interpreted by sed in replacement strings.
10512     case $configure_input in #(
10513     *\&* | *\|* | *\\* )
10514        ac_sed_conf_input=`$as_echo "$configure_input" |
10515        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10516     *) ac_sed_conf_input=$configure_input;;
10517     esac
10518
10519     case $ac_tag in
10520     *:-:* | *:-) cat >"$ac_tmp/stdin" \
10521       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10522     esac
10523     ;;
10524   esac
10525
10526   ac_dir=`$as_dirname -- "$ac_file" ||
10527 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10528          X"$ac_file" : 'X\(//\)[^/]' \| \
10529          X"$ac_file" : 'X\(//\)$' \| \
10530          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10531 $as_echo X"$ac_file" |
10532     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10533             s//\1/
10534             q
10535           }
10536           /^X\(\/\/\)[^/].*/{
10537             s//\1/
10538             q
10539           }
10540           /^X\(\/\/\)$/{
10541             s//\1/
10542             q
10543           }
10544           /^X\(\/\).*/{
10545             s//\1/
10546             q
10547           }
10548           s/.*/./; q'`
10549   as_dir="$ac_dir"; as_fn_mkdir_p
10550   ac_builddir=.
10551
10552 case "$ac_dir" in
10553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10554 *)
10555   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10556   # A ".." for each directory in $ac_dir_suffix.
10557   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10558   case $ac_top_builddir_sub in
10559   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10560   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10561   esac ;;
10562 esac
10563 ac_abs_top_builddir=$ac_pwd
10564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10565 # for backward compatibility:
10566 ac_top_builddir=$ac_top_build_prefix
10567
10568 case $srcdir in
10569   .)  # We are building in place.
10570     ac_srcdir=.
10571     ac_top_srcdir=$ac_top_builddir_sub
10572     ac_abs_top_srcdir=$ac_pwd ;;
10573   [\\/]* | ?:[\\/]* )  # Absolute name.
10574     ac_srcdir=$srcdir$ac_dir_suffix;
10575     ac_top_srcdir=$srcdir
10576     ac_abs_top_srcdir=$srcdir ;;
10577   *) # Relative name.
10578     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10579     ac_top_srcdir=$ac_top_build_prefix$srcdir
10580     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10581 esac
10582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10583
10584
10585   case $ac_mode in
10586   :F)
10587   #
10588   # CONFIG_FILE
10589   #
10590
10591   case $INSTALL in
10592   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10593   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10594   esac
10595   ac_MKDIR_P=$MKDIR_P
10596   case $MKDIR_P in
10597   [\\/$]* | ?:[\\/]* ) ;;
10598   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10599   esac
10600 _ACEOF
10601
10602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10603 # If the template does not know about datarootdir, expand it.
10604 # FIXME: This hack should be removed a few years after 2.60.
10605 ac_datarootdir_hack=; ac_datarootdir_seen=
10606 ac_sed_dataroot='
10607 /datarootdir/ {
10608   p
10609   q
10610 }
10611 /@datadir@/p
10612 /@docdir@/p
10613 /@infodir@/p
10614 /@localedir@/p
10615 /@mandir@/p'
10616 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10617 *datarootdir*) ac_datarootdir_seen=yes;;
10618 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10619   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10620 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10621 _ACEOF
10622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10623   ac_datarootdir_hack='
10624   s&@datadir@&$datadir&g
10625   s&@docdir@&$docdir&g
10626   s&@infodir@&$infodir&g
10627   s&@localedir@&$localedir&g
10628   s&@mandir@&$mandir&g
10629   s&\\\${datarootdir}&$datarootdir&g' ;;
10630 esac
10631 _ACEOF
10632
10633 # Neutralize VPATH when `$srcdir' = `.'.
10634 # Shell code in configure.ac might set extrasub.
10635 # FIXME: do we really want to maintain this feature?
10636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10637 ac_sed_extra="$ac_vpsub
10638 $extrasub
10639 _ACEOF
10640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10641 :t
10642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10643 s|@configure_input@|$ac_sed_conf_input|;t t
10644 s&@top_builddir@&$ac_top_builddir_sub&;t t
10645 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10646 s&@srcdir@&$ac_srcdir&;t t
10647 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10648 s&@top_srcdir@&$ac_top_srcdir&;t t
10649 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10650 s&@builddir@&$ac_builddir&;t t
10651 s&@abs_builddir@&$ac_abs_builddir&;t t
10652 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10653 s&@INSTALL@&$ac_INSTALL&;t t
10654 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10655 $ac_datarootdir_hack
10656 "
10657 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10658   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10659
10660 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10661   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10662   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10663       "$ac_tmp/out"`; test -z "$ac_out"; } &&
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10665 which seems to be undefined.  Please make sure it is defined" >&5
10666 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10667 which seems to be undefined.  Please make sure it is defined" >&2;}
10668
10669   rm -f "$ac_tmp/stdin"
10670   case $ac_file in
10671   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10672   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10673   esac \
10674   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10675  ;;
10676   :H)
10677   #
10678   # CONFIG_HEADER
10679   #
10680   if test x"$ac_file" != x-; then
10681     {
10682       $as_echo "/* $configure_input  */" \
10683       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10684     } >"$ac_tmp/config.h" \
10685       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10686     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10687       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10688 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10689     else
10690       rm -f "$ac_file"
10691       mv "$ac_tmp/config.h" "$ac_file" \
10692         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10693     fi
10694   else
10695     $as_echo "/* $configure_input  */" \
10696       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10697       || as_fn_error $? "could not create -" "$LINENO" 5
10698   fi
10699 # Compute "$ac_file"'s index in $config_headers.
10700 _am_arg="$ac_file"
10701 _am_stamp_count=1
10702 for _am_header in $config_headers :; do
10703   case $_am_header in
10704     $_am_arg | $_am_arg:* )
10705       break ;;
10706     * )
10707       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10708   esac
10709 done
10710 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10711 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10712          X"$_am_arg" : 'X\(//\)[^/]' \| \
10713          X"$_am_arg" : 'X\(//\)$' \| \
10714          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10715 $as_echo X"$_am_arg" |
10716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10717             s//\1/
10718             q
10719           }
10720           /^X\(\/\/\)[^/].*/{
10721             s//\1/
10722             q
10723           }
10724           /^X\(\/\/\)$/{
10725             s//\1/
10726             q
10727           }
10728           /^X\(\/\).*/{
10729             s//\1/
10730             q
10731           }
10732           s/.*/./; q'`/stamp-h$_am_stamp_count
10733  ;;
10734
10735   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10736 $as_echo "$as_me: executing $ac_file commands" >&6;}
10737  ;;
10738   esac
10739
10740
10741   case $ac_file$ac_mode in
10742     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10743   # Autoconf 2.62 quotes --file arguments for eval, but not when files
10744   # are listed without --file.  Let's play safe and only enable the eval
10745   # if we detect the quoting.
10746   case $CONFIG_FILES in
10747   *\'*) eval set x "$CONFIG_FILES" ;;
10748   *)   set x $CONFIG_FILES ;;
10749   esac
10750   shift
10751   for mf
10752   do
10753     # Strip MF so we end up with the name of the file.
10754     mf=`echo "$mf" | sed -e 's/:.*$//'`
10755     # Check whether this is an Automake generated Makefile or not.
10756     # We used to match only the files named `Makefile.in', but
10757     # some people rename them; so instead we look at the file content.
10758     # Grep'ing the first line is not enough: some people post-process
10759     # each Makefile.in and add a new line on top of each file to say so.
10760     # Grep'ing the whole file is not good either: AIX grep has a line
10761     # limit of 2048, but all sed's we know have understand at least 4000.
10762     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10763       dirpart=`$as_dirname -- "$mf" ||
10764 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10765          X"$mf" : 'X\(//\)[^/]' \| \
10766          X"$mf" : 'X\(//\)$' \| \
10767          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10768 $as_echo X"$mf" |
10769     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10770             s//\1/
10771             q
10772           }
10773           /^X\(\/\/\)[^/].*/{
10774             s//\1/
10775             q
10776           }
10777           /^X\(\/\/\)$/{
10778             s//\1/
10779             q
10780           }
10781           /^X\(\/\).*/{
10782             s//\1/
10783             q
10784           }
10785           s/.*/./; q'`
10786     else
10787       continue
10788     fi
10789     # Extract the definition of DEPDIR, am__include, and am__quote
10790     # from the Makefile without running `make'.
10791     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10792     test -z "$DEPDIR" && continue
10793     am__include=`sed -n 's/^am__include = //p' < "$mf"`
10794     test -z "am__include" && continue
10795     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10796     # When using ansi2knr, U may be empty or an underscore; expand it
10797     U=`sed -n 's/^U = //p' < "$mf"`
10798     # Find all dependency output files, they are included files with
10799     # $(DEPDIR) in their names.  We invoke sed twice because it is the
10800     # simplest approach to changing $(DEPDIR) to its actual value in the
10801     # expansion.
10802     for file in `sed -n "
10803       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10804          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10805       # Make sure the directory exists.
10806       test -f "$dirpart/$file" && continue
10807       fdir=`$as_dirname -- "$file" ||
10808 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10809          X"$file" : 'X\(//\)[^/]' \| \
10810          X"$file" : 'X\(//\)$' \| \
10811          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10812 $as_echo X"$file" |
10813     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10814             s//\1/
10815             q
10816           }
10817           /^X\(\/\/\)[^/].*/{
10818             s//\1/
10819             q
10820           }
10821           /^X\(\/\/\)$/{
10822             s//\1/
10823             q
10824           }
10825           /^X\(\/\).*/{
10826             s//\1/
10827             q
10828           }
10829           s/.*/./; q'`
10830       as_dir=$dirpart/$fdir; as_fn_mkdir_p
10831       # echo "creating $dirpart/$file"
10832       echo '# dummy' > "$dirpart/$file"
10833     done
10834   done
10835 }
10836  ;;
10837     "po-directories":C)
10838     for ac_file in $CONFIG_FILES; do
10839       # Support "outfile[:infile[:infile...]]"
10840       case "$ac_file" in
10841         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10842       esac
10843       # PO directories have a Makefile.in generated from Makefile.in.in.
10844       case "$ac_file" in */Makefile.in)
10845         # Adjust a relative srcdir.
10846         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10847         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10848         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10849         # In autoconf-2.13 it is called $ac_given_srcdir.
10850         # In autoconf-2.50 it is called $srcdir.
10851         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10852         case "$ac_given_srcdir" in
10853           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10854           /*) top_srcdir="$ac_given_srcdir" ;;
10855           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10856         esac
10857         # Treat a directory as a PO directory if and only if it has a
10858         # POTFILES.in file. This allows packages to have multiple PO
10859         # directories under different names or in different locations.
10860         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10861           rm -f "$ac_dir/POTFILES"
10862           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10863           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10864           POMAKEFILEDEPS="POTFILES.in"
10865           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10866           # on $ac_dir but don't depend on user-specified configuration
10867           # parameters.
10868           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10869             # The LINGUAS file contains the set of available languages.
10870             if test -n "$OBSOLETE_ALL_LINGUAS"; then
10871               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10872             fi
10873             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10874             # Hide the ALL_LINGUAS assigment from automake < 1.5.
10875             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10876             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10877           else
10878             # The set of available languages was given in configure.in.
10879             # Hide the ALL_LINGUAS assigment from automake < 1.5.
10880             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10881           fi
10882           # Compute POFILES
10883           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10884           # Compute UPDATEPOFILES
10885           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10886           # Compute DUMMYPOFILES
10887           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10888           # Compute GMOFILES
10889           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10890           case "$ac_given_srcdir" in
10891             .) srcdirpre= ;;
10892             *) srcdirpre='$(srcdir)/' ;;
10893           esac
10894           POFILES=
10895           UPDATEPOFILES=
10896           DUMMYPOFILES=
10897           GMOFILES=
10898           for lang in $ALL_LINGUAS; do
10899             POFILES="$POFILES $srcdirpre$lang.po"
10900             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10901             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10902             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10903           done
10904           # CATALOGS depends on both $ac_dir and the user's LINGUAS
10905           # environment variable.
10906           INST_LINGUAS=
10907           if test -n "$ALL_LINGUAS"; then
10908             for presentlang in $ALL_LINGUAS; do
10909               useit=no
10910               if test "%UNSET%" != "$LINGUAS"; then
10911                 desiredlanguages="$LINGUAS"
10912               else
10913                 desiredlanguages="$ALL_LINGUAS"
10914               fi
10915               for desiredlang in $desiredlanguages; do
10916                 # Use the presentlang catalog if desiredlang is
10917                 #   a. equal to presentlang, or
10918                 #   b. a variant of presentlang (because in this case,
10919                 #      presentlang can be used as a fallback for messages
10920                 #      which are not translated in the desiredlang catalog).
10921                 case "$desiredlang" in
10922                   "$presentlang"*) useit=yes;;
10923                 esac
10924               done
10925               if test $useit = yes; then
10926                 INST_LINGUAS="$INST_LINGUAS $presentlang"
10927               fi
10928             done
10929           fi
10930           CATALOGS=
10931           if test -n "$INST_LINGUAS"; then
10932             for lang in $INST_LINGUAS; do
10933               CATALOGS="$CATALOGS $lang.gmo"
10934             done
10935           fi
10936           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10937           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"
10938           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10939             if test -f "$f"; then
10940               case "$f" in
10941                 *.orig | *.bak | *~) ;;
10942                 *) cat "$f" >> "$ac_dir/Makefile" ;;
10943               esac
10944             fi
10945           done
10946         fi
10947         ;;
10948       esac
10949     done ;;
10950
10951   esac
10952 done # for ac_tag
10953
10954
10955 as_fn_exit 0
10956 _ACEOF
10957 ac_clean_files=$ac_clean_files_save
10958
10959 test $ac_write_fail = 0 ||
10960   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10961
10962
10963 # configure is writing to config.log, and then calls config.status.
10964 # config.status does its own redirection, appending to config.log.
10965 # Unfortunately, on DOS this fails, as config.log is still kept open
10966 # by configure, so config.status won't be able to write to it; its
10967 # output is simply discarded.  So we exec the FD to /dev/null,
10968 # effectively closing config.log, so it can be properly (re)opened and
10969 # appended to by config.status.  When coming back to configure, we
10970 # need to make the FD available again.
10971 if test "$no_create" != yes; then
10972   ac_cs_success=:
10973   ac_config_status_args=
10974   test "$silent" = yes &&
10975     ac_config_status_args="$ac_config_status_args --quiet"
10976   exec 5>/dev/null
10977   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10978   exec 5>>config.log
10979   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10980   # would make configure fail if this is the last instruction.
10981   $ac_cs_success || as_fn_exit 1
10982 fi
10983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10984   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10986 fi
10987