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