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