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