(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 gt_needs=
590 ac_subst_vars='am__EXEEXT_FALSE
591 am__EXEEXT_TRUE
592 LTLIBOBJS
593 LIBOBJS
594 CPPCHECK_FALSE
595 CPPCHECK_TRUE
596 HAVE_CPPCHECK
597 HELP2MAN
598 JSON_FALSE
599 JSON_TRUE
600 JSON_LIBS
601 JSON_CFLAGS
602 GTK_LIBS
603 GTK_CFLAGS
604 XEXT_LIBS
605 XEXT_CFLAGS
606 X11_LIBS
607 X11_CFLAGS
608 PKG_CONFIG_LIBDIR
609 PKG_CONFIG_PATH
610 PKG_CONFIG
611 POSUB
612 LTLIBINTL
613 LIBINTL
614 INTLLIBS
615 LTLIBICONV
616 LIBICONV
617 INTL_MACOSX_LIBS
618 EGREP
619 GREP
620 host_os
621 host_vendor
622 host_cpu
623 host
624 build_os
625 build_vendor
626 build_cpu
627 build
628 XGETTEXT_EXTRA_OPTIONS
629 MSGMERGE
630 XGETTEXT_015
631 XGETTEXT
632 GMSGFMT_015
633 MSGFMT_015
634 GMSGFMT
635 MSGFMT
636 GETTEXT_MACRO_VERSION
637 USE_NLS
638 CPP
639 XMKMF
640 am__fastdepCC_FALSE
641 am__fastdepCC_TRUE
642 CCDEPMODE
643 am__nodep
644 AMDEPBACKSLASH
645 AMDEP_FALSE
646 AMDEP_TRUE
647 am__quote
648 am__include
649 DEPDIR
650 OBJEXT
651 EXEEXT
652 ac_ct_CC
653 CPPFLAGS
654 LDFLAGS
655 CFLAGS
656 CC
657 am__untar
658 am__tar
659 AMTAR
660 am__leading_dot
661 SET_MAKE
662 AWK
663 mkdir_p
664 MKDIR_P
665 INSTALL_STRIP_PROGRAM
666 STRIP
667 install_sh
668 MAKEINFO
669 AUTOHEADER
670 AUTOMAKE
671 AUTOCONF
672 ACLOCAL
673 VERSION
674 PACKAGE
675 CYGPATH_W
676 am__isrc
677 INSTALL_DATA
678 INSTALL_SCRIPT
679 INSTALL_PROGRAM
680 target_alias
681 host_alias
682 build_alias
683 LIBS
684 ECHO_T
685 ECHO_N
686 ECHO_C
687 DEFS
688 mandir
689 localedir
690 libdir
691 psdir
692 pdfdir
693 dvidir
694 htmldir
695 infodir
696 docdir
697 oldincludedir
698 includedir
699 localstatedir
700 sharedstatedir
701 sysconfdir
702 datadir
703 datarootdir
704 libexecdir
705 sbindir
706 bindir
707 program_transform_name
708 prefix
709 exec_prefix
710 PACKAGE_URL
711 PACKAGE_BUGREPORT
712 PACKAGE_STRING
713 PACKAGE_VERSION
714 PACKAGE_TARNAME
715 PACKAGE_NAME
716 PATH_SEPARATOR
717 SHELL'
718 ac_subst_files=''
719 ac_user_opts='
720 enable_option_checking
721 enable_dependency_tracking
722 with_x
723 enable_nls
724 with_gnu_ld
725 enable_rpath
726 with_libiconv_prefix
727 with_libintl_prefix
728 '
729       ac_precious_vars='build_alias
730 host_alias
731 target_alias
732 CC
733 CFLAGS
734 LDFLAGS
735 LIBS
736 CPPFLAGS
737 XMKMF
738 CPP
739 PKG_CONFIG
740 PKG_CONFIG_PATH
741 PKG_CONFIG_LIBDIR
742 X11_CFLAGS
743 X11_LIBS
744 XEXT_CFLAGS
745 XEXT_LIBS
746 GTK_CFLAGS
747 GTK_LIBS
748 JSON_CFLAGS
749 JSON_LIBS'
750
751
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 ac_unrecognized_opts=
756 ac_unrecognized_sep=
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
759 cache_file=/dev/null
760 exec_prefix=NONE
761 no_create=
762 no_recursion=
763 prefix=NONE
764 program_prefix=NONE
765 program_suffix=NONE
766 program_transform_name=s,x,x,
767 silent=
768 site=
769 srcdir=
770 verbose=
771 x_includes=NONE
772 x_libraries=NONE
773
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
799
800 ac_prev=
801 ac_dashdash=
802 for ac_option
803 do
804   # If the previous option needs an argument, assign it.
805   if test -n "$ac_prev"; then
806     eval $ac_prev=\$ac_option
807     ac_prev=
808     continue
809   fi
810
811   case $ac_option in
812   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813   *=)   ac_optarg= ;;
814   *)    ac_optarg=yes ;;
815   esac
816
817   # Accept the important Cygnus configure options, so we can diagnose typos.
818
819   case $ac_dashdash$ac_option in
820   --)
821     ac_dashdash=yes ;;
822
823   -bindir | --bindir | --bindi | --bind | --bin | --bi)
824     ac_prev=bindir ;;
825   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826     bindir=$ac_optarg ;;
827
828   -build | --build | --buil | --bui | --bu)
829     ac_prev=build_alias ;;
830   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831     build_alias=$ac_optarg ;;
832
833   -cache-file | --cache-file | --cache-fil | --cache-fi \
834   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835     ac_prev=cache_file ;;
836   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838     cache_file=$ac_optarg ;;
839
840   --config-cache | -C)
841     cache_file=config.cache ;;
842
843   -datadir | --datadir | --datadi | --datad)
844     ac_prev=datadir ;;
845   -datadir=* | --datadir=* | --datadi=* | --datad=*)
846     datadir=$ac_optarg ;;
847
848   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849   | --dataroo | --dataro | --datar)
850     ac_prev=datarootdir ;;
851   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853     datarootdir=$ac_optarg ;;
854
855   -disable-* | --disable-*)
856     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857     # Reject names that are not valid shell variable names.
858     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859       as_fn_error $? "invalid feature name: $ac_useropt"
860     ac_useropt_orig=$ac_useropt
861     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862     case $ac_user_opts in
863       *"
864 "enable_$ac_useropt"
865 "*) ;;
866       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867          ac_unrecognized_sep=', ';;
868     esac
869     eval enable_$ac_useropt=no ;;
870
871   -docdir | --docdir | --docdi | --doc | --do)
872     ac_prev=docdir ;;
873   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874     docdir=$ac_optarg ;;
875
876   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877     ac_prev=dvidir ;;
878   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879     dvidir=$ac_optarg ;;
880
881   -enable-* | --enable-*)
882     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883     # Reject names that are not valid shell variable names.
884     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885       as_fn_error $? "invalid feature name: $ac_useropt"
886     ac_useropt_orig=$ac_useropt
887     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888     case $ac_user_opts in
889       *"
890 "enable_$ac_useropt"
891 "*) ;;
892       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893          ac_unrecognized_sep=', ';;
894     esac
895     eval enable_$ac_useropt=\$ac_optarg ;;
896
897   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899   | --exec | --exe | --ex)
900     ac_prev=exec_prefix ;;
901   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903   | --exec=* | --exe=* | --ex=*)
904     exec_prefix=$ac_optarg ;;
905
906   -gas | --gas | --ga | --g)
907     # Obsolete; use --with-gas.
908     with_gas=yes ;;
909
910   -help | --help | --hel | --he | -h)
911     ac_init_help=long ;;
912   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913     ac_init_help=recursive ;;
914   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915     ac_init_help=short ;;
916
917   -host | --host | --hos | --ho)
918     ac_prev=host_alias ;;
919   -host=* | --host=* | --hos=* | --ho=*)
920     host_alias=$ac_optarg ;;
921
922   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923     ac_prev=htmldir ;;
924   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925   | --ht=*)
926     htmldir=$ac_optarg ;;
927
928   -includedir | --includedir | --includedi | --included | --include \
929   | --includ | --inclu | --incl | --inc)
930     ac_prev=includedir ;;
931   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932   | --includ=* | --inclu=* | --incl=* | --inc=*)
933     includedir=$ac_optarg ;;
934
935   -infodir | --infodir | --infodi | --infod | --info | --inf)
936     ac_prev=infodir ;;
937   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938     infodir=$ac_optarg ;;
939
940   -libdir | --libdir | --libdi | --libd)
941     ac_prev=libdir ;;
942   -libdir=* | --libdir=* | --libdi=* | --libd=*)
943     libdir=$ac_optarg ;;
944
945   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946   | --libexe | --libex | --libe)
947     ac_prev=libexecdir ;;
948   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949   | --libexe=* | --libex=* | --libe=*)
950     libexecdir=$ac_optarg ;;
951
952   -localedir | --localedir | --localedi | --localed | --locale)
953     ac_prev=localedir ;;
954   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955     localedir=$ac_optarg ;;
956
957   -localstatedir | --localstatedir | --localstatedi | --localstated \
958   | --localstate | --localstat | --localsta | --localst | --locals)
959     ac_prev=localstatedir ;;
960   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962     localstatedir=$ac_optarg ;;
963
964   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965     ac_prev=mandir ;;
966   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967     mandir=$ac_optarg ;;
968
969   -nfp | --nfp | --nf)
970     # Obsolete; use --without-fp.
971     with_fp=no ;;
972
973   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974   | --no-cr | --no-c | -n)
975     no_create=yes ;;
976
977   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979     no_recursion=yes ;;
980
981   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983   | --oldin | --oldi | --old | --ol | --o)
984     ac_prev=oldincludedir ;;
985   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988     oldincludedir=$ac_optarg ;;
989
990   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991     ac_prev=prefix ;;
992   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993     prefix=$ac_optarg ;;
994
995   -program-prefix | --program-prefix | --program-prefi | --program-pref \
996   | --program-pre | --program-pr | --program-p)
997     ac_prev=program_prefix ;;
998   -program-prefix=* | --program-prefix=* | --program-prefi=* \
999   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000     program_prefix=$ac_optarg ;;
1001
1002   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003   | --program-suf | --program-su | --program-s)
1004     ac_prev=program_suffix ;;
1005   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007     program_suffix=$ac_optarg ;;
1008
1009   -program-transform-name | --program-transform-name \
1010   | --program-transform-nam | --program-transform-na \
1011   | --program-transform-n | --program-transform- \
1012   | --program-transform | --program-transfor \
1013   | --program-transfo | --program-transf \
1014   | --program-trans | --program-tran \
1015   | --progr-tra | --program-tr | --program-t)
1016     ac_prev=program_transform_name ;;
1017   -program-transform-name=* | --program-transform-name=* \
1018   | --program-transform-nam=* | --program-transform-na=* \
1019   | --program-transform-n=* | --program-transform-=* \
1020   | --program-transform=* | --program-transfor=* \
1021   | --program-transfo=* | --program-transf=* \
1022   | --program-trans=* | --program-tran=* \
1023   | --progr-tra=* | --program-tr=* | --program-t=*)
1024     program_transform_name=$ac_optarg ;;
1025
1026   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027     ac_prev=pdfdir ;;
1028   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029     pdfdir=$ac_optarg ;;
1030
1031   -psdir | --psdir | --psdi | --psd | --ps)
1032     ac_prev=psdir ;;
1033   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034     psdir=$ac_optarg ;;
1035
1036   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037   | -silent | --silent | --silen | --sile | --sil)
1038     silent=yes ;;
1039
1040   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041     ac_prev=sbindir ;;
1042   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043   | --sbi=* | --sb=*)
1044     sbindir=$ac_optarg ;;
1045
1046   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048   | --sharedst | --shareds | --shared | --share | --shar \
1049   | --sha | --sh)
1050     ac_prev=sharedstatedir ;;
1051   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054   | --sha=* | --sh=*)
1055     sharedstatedir=$ac_optarg ;;
1056
1057   -site | --site | --sit)
1058     ac_prev=site ;;
1059   -site=* | --site=* | --sit=*)
1060     site=$ac_optarg ;;
1061
1062   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063     ac_prev=srcdir ;;
1064   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065     srcdir=$ac_optarg ;;
1066
1067   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068   | --syscon | --sysco | --sysc | --sys | --sy)
1069     ac_prev=sysconfdir ;;
1070   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072     sysconfdir=$ac_optarg ;;
1073
1074   -target | --target | --targe | --targ | --tar | --ta | --t)
1075     ac_prev=target_alias ;;
1076   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077     target_alias=$ac_optarg ;;
1078
1079   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080     verbose=yes ;;
1081
1082   -version | --version | --versio | --versi | --vers | -V)
1083     ac_init_version=: ;;
1084
1085   -with-* | --with-*)
1086     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087     # Reject names that are not valid shell variable names.
1088     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089       as_fn_error $? "invalid package name: $ac_useropt"
1090     ac_useropt_orig=$ac_useropt
1091     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092     case $ac_user_opts in
1093       *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097          ac_unrecognized_sep=', ';;
1098     esac
1099     eval with_$ac_useropt=\$ac_optarg ;;
1100
1101   -without-* | --without-*)
1102     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105       as_fn_error $? "invalid package name: $ac_useropt"
1106     ac_useropt_orig=$ac_useropt
1107     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108     case $ac_user_opts in
1109       *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113          ac_unrecognized_sep=', ';;
1114     esac
1115     eval with_$ac_useropt=no ;;
1116
1117   --x)
1118     # Obsolete; use --with-x.
1119     with_x=yes ;;
1120
1121   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122   | --x-incl | --x-inc | --x-in | --x-i)
1123     ac_prev=x_includes ;;
1124   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126     x_includes=$ac_optarg ;;
1127
1128   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130     ac_prev=x_libraries ;;
1131   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133     x_libraries=$ac_optarg ;;
1134
1135   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1136 Try \`$0 --help' for more information"
1137     ;;
1138
1139   *=*)
1140     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141     # Reject names that are not valid shell variable names.
1142     case $ac_envvar in #(
1143       '' | [0-9]* | *[!_$as_cr_alnum]* )
1144       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145     esac
1146     eval $ac_envvar=\$ac_optarg
1147     export $ac_envvar ;;
1148
1149   *)
1150     # FIXME: should be removed in autoconf 3.0.
1151     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1155     ;;
1156
1157   esac
1158 done
1159
1160 if test -n "$ac_prev"; then
1161   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162   as_fn_error $? "missing argument to $ac_option"
1163 fi
1164
1165 if test -n "$ac_unrecognized_opts"; then
1166   case $enable_option_checking in
1167     no) ;;
1168     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1169     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170   esac
1171 fi
1172
1173 # Check all directory arguments for consistency.
1174 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175                 datadir sysconfdir sharedstatedir localstatedir includedir \
1176                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177                 libdir localedir mandir
1178 do
1179   eval ac_val=\$$ac_var
1180   # Remove trailing slashes.
1181   case $ac_val in
1182     */ )
1183       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184       eval $ac_var=\$ac_val;;
1185   esac
1186   # Be sure to have absolute directory names.
1187   case $ac_val in
1188     [\\/$]* | ?:[\\/]* )  continue;;
1189     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190   esac
1191   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1192 done
1193
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1200
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203   if test "x$build_alias" = x; then
1204     cross_compiling=maybe
1205   elif test "x$build_alias" != "x$host_alias"; then
1206     cross_compiling=yes
1207   fi
1208 fi
1209
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213 test "$silent" = yes && exec 6>/dev/null
1214
1215
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219   as_fn_error $? "working directory cannot be determined"
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221   as_fn_error $? "pwd does not report name of working directory"
1222
1223
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226   ac_srcdir_defaulted=yes
1227   # Try the directory containing this script, then the parent directory.
1228   ac_confdir=`$as_dirname -- "$as_myself" ||
1229 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230          X"$as_myself" : 'X\(//\)[^/]' \| \
1231          X"$as_myself" : 'X\(//\)$' \| \
1232          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233 $as_echo X"$as_myself" |
1234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235             s//\1/
1236             q
1237           }
1238           /^X\(\/\/\)[^/].*/{
1239             s//\1/
1240             q
1241           }
1242           /^X\(\/\/\)$/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\).*/{
1247             s//\1/
1248             q
1249           }
1250           s/.*/./; q'`
1251   srcdir=$ac_confdir
1252   if test ! -r "$srcdir/$ac_unique_file"; then
1253     srcdir=..
1254   fi
1255 else
1256   ac_srcdir_defaulted=no
1257 fi
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1261 fi
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 ac_abs_confdir=`(
1264         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1265         pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268   srcdir=.
1269 fi
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278   eval ac_env_${ac_var}_value=\$${ac_var}
1279   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1282
1283 #
1284 # Report the --help message.
1285 #
1286 if test "$ac_init_help" = "long"; then
1287   # Omit some internal or obsolete options to make the list less imposing.
1288   # This message is too long to be a string in the A/UX 3.1 sh.
1289   cat <<_ACEOF
1290 \`configure' configures gtask 0.0.x to adapt to many kinds of systems.
1291
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE.  See below for descriptions of some of the useful variables.
1296
1297 Defaults for the options are specified in brackets.
1298
1299 Configuration:
1300   -h, --help              display this help and exit
1301       --help=short        display options specific to this package
1302       --help=recursive    display the short help of all the included packages
1303   -V, --version           display version information and exit
1304   -q, --quiet, --silent   do not print \`checking ...' messages
1305       --cache-file=FILE   cache test results in FILE [disabled]
1306   -C, --config-cache      alias for \`--cache-file=config.cache'
1307   -n, --no-create         do not create output files
1308       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1309
1310 Installation directories:
1311   --prefix=PREFIX         install architecture-independent files in PREFIX
1312                           [$ac_default_prefix]
1313   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1314                           [PREFIX]
1315
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1320
1321 For better control, use the options below.
1322
1323 Fine tuning of the installation directories:
1324   --bindir=DIR            user executables [EPREFIX/bin]
1325   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1326   --libexecdir=DIR        program executables [EPREFIX/libexec]
1327   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1328   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1329   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1330   --libdir=DIR            object code libraries [EPREFIX/lib]
1331   --includedir=DIR        C header files [PREFIX/include]
1332   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1333   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1334   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1335   --infodir=DIR           info documentation [DATAROOTDIR/info]
1336   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1337   --mandir=DIR            man documentation [DATAROOTDIR/man]
1338   --docdir=DIR            documentation root [DATAROOTDIR/doc/gtask]
1339   --htmldir=DIR           html documentation [DOCDIR]
1340   --dvidir=DIR            dvi documentation [DOCDIR]
1341   --pdfdir=DIR            pdf documentation [DOCDIR]
1342   --psdir=DIR             ps documentation [DOCDIR]
1343 _ACEOF
1344
1345   cat <<\_ACEOF
1346
1347 Program names:
1348   --program-prefix=PREFIX            prepend PREFIX to installed program names
1349   --program-suffix=SUFFIX            append SUFFIX to installed program names
1350   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1351
1352 X features:
1353   --x-includes=DIR    X include files are in DIR
1354   --x-libraries=DIR   X library files are in DIR
1355
1356 System types:
1357   --build=BUILD     configure for building on BUILD [guessed]
1358   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1359 _ACEOF
1360 fi
1361
1362 if test -n "$ac_init_help"; then
1363   case $ac_init_help in
1364      short | recursive ) echo "Configuration of gtask 0.0.x:";;
1365    esac
1366   cat <<\_ACEOF
1367
1368 Optional Features:
1369   --disable-option-checking  ignore unrecognized --enable/--with options
1370   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1371   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1372   --disable-dependency-tracking  speeds up one-time build
1373   --enable-dependency-tracking   do not reject slow dependency extractors
1374   --disable-nls           do not use Native Language Support
1375   --disable-rpath         do not hardcode runtime library paths
1376
1377 Optional Packages:
1378   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1379   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1380   --with-x                use the X Window System
1381   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1382   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1383   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1384   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1385   --without-libintl-prefix     don't search for libintl in includedir and libdir
1386
1387 Some influential environment variables:
1388   CC          C compiler command
1389   CFLAGS      C compiler flags
1390   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1391               nonstandard directory <lib dir>
1392   LIBS        libraries to pass to the linker, e.g. -l<library>
1393   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1394               you have headers in a nonstandard directory <include dir>
1395   XMKMF       Path to xmkmf, Makefile generator for X Window System
1396   CPP         C preprocessor
1397   PKG_CONFIG  path to pkg-config utility
1398   PKG_CONFIG_PATH
1399               directories to add to pkg-config's search path
1400   PKG_CONFIG_LIBDIR
1401               path overriding pkg-config's built-in search path
1402   X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1403   X11_LIBS    linker flags for X11, overriding pkg-config
1404   XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1405   XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1406   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1407   GTK_LIBS    linker flags for GTK, overriding pkg-config
1408   JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1409   JSON_LIBS   linker flags for JSON, overriding pkg-config
1410
1411 Use these variables to override the choices made by `configure' or to help
1412 it to find libraries and programs with nonstandard names/locations.
1413
1414 Report bugs to <jeanfi@gmail.com>.
1415 gtask home page: <http://wpitchoune.net/gtask>.
1416 _ACEOF
1417 ac_status=$?
1418 fi
1419
1420 if test "$ac_init_help" = "recursive"; then
1421   # If there are subdirs, report their specific --help.
1422   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423     test -d "$ac_dir" ||
1424       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425       continue
1426     ac_builddir=.
1427
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *)
1431   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432   # A ".." for each directory in $ac_dir_suffix.
1433   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434   case $ac_top_builddir_sub in
1435   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437   esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1443
1444 case $srcdir in
1445   .)  # We are building in place.
1446     ac_srcdir=.
1447     ac_top_srcdir=$ac_top_builddir_sub
1448     ac_abs_top_srcdir=$ac_pwd ;;
1449   [\\/]* | ?:[\\/]* )  # Absolute name.
1450     ac_srcdir=$srcdir$ac_dir_suffix;
1451     ac_top_srcdir=$srcdir
1452     ac_abs_top_srcdir=$srcdir ;;
1453   *) # Relative name.
1454     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455     ac_top_srcdir=$ac_top_build_prefix$srcdir
1456     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460     cd "$ac_dir" || { ac_status=$?; continue; }
1461     # Check for guested configure.
1462     if test -f "$ac_srcdir/configure.gnu"; then
1463       echo &&
1464       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465     elif test -f "$ac_srcdir/configure"; then
1466       echo &&
1467       $SHELL "$ac_srcdir/configure" --help=recursive
1468     else
1469       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470     fi || ac_status=$?
1471     cd "$ac_pwd" || { ac_status=$?; break; }
1472   done
1473 fi
1474
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477   cat <<\_ACEOF
1478 gtask configure 0.0.x
1479 generated by GNU Autoconf 2.69
1480
1481 Copyright (C) 2012 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485   exit
1486 fi
1487
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1491
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1496 {
1497   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498   rm -f conftest.$ac_objext
1499   if { { ac_try="$ac_compile"
1500 case "(($ac_try" in
1501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502   *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506   (eval "$ac_compile") 2>conftest.err
1507   ac_status=$?
1508   if test -s conftest.err; then
1509     grep -v '^ *+' conftest.err >conftest.er1
1510     cat conftest.er1 >&5
1511     mv -f conftest.er1 conftest.err
1512   fi
1513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514   test $ac_status = 0; } && {
1515          test -z "$ac_c_werror_flag" ||
1516          test ! -s conftest.err
1517        } && test -s conftest.$ac_objext; then :
1518   ac_retval=0
1519 else
1520   $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1522
1523         ac_retval=1
1524 fi
1525   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526   as_fn_set_status $ac_retval
1527
1528 } # ac_fn_c_try_compile
1529
1530 # ac_fn_c_try_cpp LINENO
1531 # ----------------------
1532 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_cpp ()
1534 {
1535   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536   if { { ac_try="$ac_cpp conftest.$ac_ext"
1537 case "(($ac_try" in
1538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539   *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1544   ac_status=$?
1545   if test -s conftest.err; then
1546     grep -v '^ *+' conftest.err >conftest.er1
1547     cat conftest.er1 >&5
1548     mv -f conftest.er1 conftest.err
1549   fi
1550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551   test $ac_status = 0; } > conftest.i && {
1552          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1553          test ! -s conftest.err
1554        }; then :
1555   ac_retval=0
1556 else
1557   $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560     ac_retval=1
1561 fi
1562   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563   as_fn_set_status $ac_retval
1564
1565 } # ac_fn_c_try_cpp
1566
1567 # ac_fn_c_try_link LINENO
1568 # -----------------------
1569 # Try to link conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_link ()
1571 {
1572   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573   rm -f conftest.$ac_objext conftest$ac_exeext
1574   if { { ac_try="$ac_link"
1575 case "(($ac_try" in
1576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577   *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581   (eval "$ac_link") 2>conftest.err
1582   ac_status=$?
1583   if test -s conftest.err; then
1584     grep -v '^ *+' conftest.err >conftest.er1
1585     cat conftest.er1 >&5
1586     mv -f conftest.er1 conftest.err
1587   fi
1588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589   test $ac_status = 0; } && {
1590          test -z "$ac_c_werror_flag" ||
1591          test ! -s conftest.err
1592        } && test -s conftest$ac_exeext && {
1593          test "$cross_compiling" = yes ||
1594          test -x conftest$ac_exeext
1595        }; then :
1596   ac_retval=0
1597 else
1598   $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601         ac_retval=1
1602 fi
1603   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1604   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1605   # interfere with the next link command; also delete a directory that is
1606   # left behind by Apple's compiler.  We do this before executing the actions.
1607   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1608   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609   as_fn_set_status $ac_retval
1610
1611 } # ac_fn_c_try_link
1612
1613 # ac_fn_c_try_run LINENO
1614 # ----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616 # that executables *can* be run.
1617 ac_fn_c_try_run ()
1618 {
1619   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620   if { { ac_try="$ac_link"
1621 case "(($ac_try" in
1622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623   *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627   (eval "$ac_link") 2>&5
1628   ac_status=$?
1629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1631   { { case "(($ac_try" in
1632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633   *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637   (eval "$ac_try") 2>&5
1638   ac_status=$?
1639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640   test $ac_status = 0; }; }; then :
1641   ac_retval=0
1642 else
1643   $as_echo "$as_me: program exited with status $ac_status" >&5
1644        $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647        ac_retval=$ac_status
1648 fi
1649   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651   as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_run
1654 cat >config.log <<_ACEOF
1655 This file contains any messages produced by compilers while
1656 running configure, to aid debugging if configure makes a mistake.
1657
1658 It was created by gtask $as_me 0.0.x, which was
1659 generated by GNU Autoconf 2.69.  Invocation command line was
1660
1661   $ $0 $@
1662
1663 _ACEOF
1664 exec 5>>config.log
1665 {
1666 cat <<_ASUNAME
1667 ## --------- ##
1668 ## Platform. ##
1669 ## --------- ##
1670
1671 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1672 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1673 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1674 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1675 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1676
1677 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1678 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1679
1680 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1681 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1682 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1683 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1684 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1685 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1686 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1687
1688 _ASUNAME
1689
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1692 do
1693   IFS=$as_save_IFS
1694   test -z "$as_dir" && as_dir=.
1695     $as_echo "PATH: $as_dir"
1696   done
1697 IFS=$as_save_IFS
1698
1699 } >&5
1700
1701 cat >&5 <<_ACEOF
1702
1703
1704 ## ----------- ##
1705 ## Core tests. ##
1706 ## ----------- ##
1707
1708 _ACEOF
1709
1710
1711 # Keep a trace of the command line.
1712 # Strip out --no-create and --no-recursion so they do not pile up.
1713 # Strip out --silent because we don't want to record it for future runs.
1714 # Also quote any args containing shell meta-characters.
1715 # Make two passes to allow for proper duplicate-argument suppression.
1716 ac_configure_args=
1717 ac_configure_args0=
1718 ac_configure_args1=
1719 ac_must_keep_next=false
1720 for ac_pass in 1 2
1721 do
1722   for ac_arg
1723   do
1724     case $ac_arg in
1725     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1726     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1727     | -silent | --silent | --silen | --sile | --sil)
1728       continue ;;
1729     *\'*)
1730       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1731     esac
1732     case $ac_pass in
1733     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1734     2)
1735       as_fn_append ac_configure_args1 " '$ac_arg'"
1736       if test $ac_must_keep_next = true; then
1737         ac_must_keep_next=false # Got value, back to normal.
1738       else
1739         case $ac_arg in
1740           *=* | --config-cache | -C | -disable-* | --disable-* \
1741           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1742           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1743           | -with-* | --with-* | -without-* | --without-* | --x)
1744             case "$ac_configure_args0 " in
1745               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1746             esac
1747             ;;
1748           -* ) ac_must_keep_next=true ;;
1749         esac
1750       fi
1751       as_fn_append ac_configure_args " '$ac_arg'"
1752       ;;
1753     esac
1754   done
1755 done
1756 { ac_configure_args0=; unset ac_configure_args0;}
1757 { ac_configure_args1=; unset ac_configure_args1;}
1758
1759 # When interrupted or exit'd, cleanup temporary files, and complete
1760 # config.log.  We remove comments because anyway the quotes in there
1761 # would cause problems or look ugly.
1762 # WARNING: Use '\'' to represent an apostrophe within the trap.
1763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1764 trap 'exit_status=$?
1765   # Save into config.log some information that might help in debugging.
1766   {
1767     echo
1768
1769     $as_echo "## ---------------- ##
1770 ## Cache variables. ##
1771 ## ---------------- ##"
1772     echo
1773     # The following way of writing the cache mishandles newlines in values,
1774 (
1775   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776     eval ac_val=\$$ac_var
1777     case $ac_val in #(
1778     *${as_nl}*)
1779       case $ac_var in #(
1780       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1781 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1782       esac
1783       case $ac_var in #(
1784       _ | IFS | as_nl) ;; #(
1785       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1786       *) { eval $ac_var=; unset $ac_var;} ;;
1787       esac ;;
1788     esac
1789   done
1790   (set) 2>&1 |
1791     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1792     *${as_nl}ac_space=\ *)
1793       sed -n \
1794         "s/'\''/'\''\\\\'\'''\''/g;
1795           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796       ;; #(
1797     *)
1798       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1799       ;;
1800     esac |
1801     sort
1802 )
1803     echo
1804
1805     $as_echo "## ----------------- ##
1806 ## Output variables. ##
1807 ## ----------------- ##"
1808     echo
1809     for ac_var in $ac_subst_vars
1810     do
1811       eval ac_val=\$$ac_var
1812       case $ac_val in
1813       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814       esac
1815       $as_echo "$ac_var='\''$ac_val'\''"
1816     done | sort
1817     echo
1818
1819     if test -n "$ac_subst_files"; then
1820       $as_echo "## ------------------- ##
1821 ## File substitutions. ##
1822 ## ------------------- ##"
1823       echo
1824       for ac_var in $ac_subst_files
1825       do
1826         eval ac_val=\$$ac_var
1827         case $ac_val in
1828         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829         esac
1830         $as_echo "$ac_var='\''$ac_val'\''"
1831       done | sort
1832       echo
1833     fi
1834
1835     if test -s confdefs.h; then
1836       $as_echo "## ----------- ##
1837 ## confdefs.h. ##
1838 ## ----------- ##"
1839       echo
1840       cat confdefs.h
1841       echo
1842     fi
1843     test "$ac_signal" != 0 &&
1844       $as_echo "$as_me: caught signal $ac_signal"
1845     $as_echo "$as_me: exit $exit_status"
1846   } >&5
1847   rm -f core *.core core.conftest.* &&
1848     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1849     exit $exit_status
1850 ' 0
1851 for ac_signal in 1 2 13 15; do
1852   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1853 done
1854 ac_signal=0
1855
1856 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1857 rm -f -r conftest* confdefs.h
1858
1859 $as_echo "/* confdefs.h */" > confdefs.h
1860
1861 # Predefined preprocessor variables.
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1865 _ACEOF
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 _ACEOF
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 _ACEOF
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 _ACEOF
1878
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1881 _ACEOF
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_URL "$PACKAGE_URL"
1885 _ACEOF
1886
1887
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer an explicitly selected file to automatically selected ones.
1890 ac_site_file1=NONE
1891 ac_site_file2=NONE
1892 if test -n "$CONFIG_SITE"; then
1893   # We do not want a PATH search for config.site.
1894   case $CONFIG_SITE in #((
1895     -*)  ac_site_file1=./$CONFIG_SITE;;
1896     */*) ac_site_file1=$CONFIG_SITE;;
1897     *)   ac_site_file1=./$CONFIG_SITE;;
1898   esac
1899 elif test "x$prefix" != xNONE; then
1900   ac_site_file1=$prefix/share/config.site
1901   ac_site_file2=$prefix/etc/config.site
1902 else
1903   ac_site_file1=$ac_default_prefix/share/config.site
1904   ac_site_file2=$ac_default_prefix/etc/config.site
1905 fi
1906 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1907 do
1908   test "x$ac_site_file" = xNONE && continue
1909   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1910     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1911 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1912     sed 's/^/| /' "$ac_site_file" >&5
1913     . "$ac_site_file" \
1914       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1916 as_fn_error $? "failed to load site script $ac_site_file
1917 See \`config.log' for more details" "$LINENO" 5; }
1918   fi
1919 done
1920
1921 if test -r "$cache_file"; then
1922   # Some versions of bash will fail to source /dev/null (special files
1923   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1924   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1925     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1926 $as_echo "$as_me: loading cache $cache_file" >&6;}
1927     case $cache_file in
1928       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1929       *)                      . "./$cache_file";;
1930     esac
1931   fi
1932 else
1933   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1934 $as_echo "$as_me: creating cache $cache_file" >&6;}
1935   >$cache_file
1936 fi
1937
1938 gt_needs="$gt_needs "
1939 # Check that the precious variables saved in the cache have kept the same
1940 # value.
1941 ac_cache_corrupted=false
1942 for ac_var in $ac_precious_vars; do
1943   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1944   eval ac_new_set=\$ac_env_${ac_var}_set
1945   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1946   eval ac_new_val=\$ac_env_${ac_var}_value
1947   case $ac_old_set,$ac_new_set in
1948     set,)
1949       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1950 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1951       ac_cache_corrupted=: ;;
1952     ,set)
1953       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1954 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1955       ac_cache_corrupted=: ;;
1956     ,);;
1957     *)
1958       if test "x$ac_old_val" != "x$ac_new_val"; then
1959         # differences in whitespace do not lead to failure.
1960         ac_old_val_w=`echo x $ac_old_val`
1961         ac_new_val_w=`echo x $ac_new_val`
1962         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1963           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1964 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1965           ac_cache_corrupted=:
1966         else
1967           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1968 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1969           eval $ac_var=\$ac_old_val
1970         fi
1971         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1972 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1973         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1974 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1975       fi;;
1976   esac
1977   # Pass precious variables to config.status.
1978   if test "$ac_new_set" = set; then
1979     case $ac_new_val in
1980     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1981     *) ac_arg=$ac_var=$ac_new_val ;;
1982     esac
1983     case " $ac_configure_args " in
1984       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1985       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1986     esac
1987   fi
1988 done
1989 if $ac_cache_corrupted; then
1990   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1992   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1993 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1994   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1995 fi
1996 ## -------------------- ##
1997 ## Main body of script. ##
1998 ## -------------------- ##
1999
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005
2006
2007
2008 am__api_version='1.11'
2009
2010 ac_aux_dir=
2011 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2012   if test -f "$ac_dir/install-sh"; then
2013     ac_aux_dir=$ac_dir
2014     ac_install_sh="$ac_aux_dir/install-sh -c"
2015     break
2016   elif test -f "$ac_dir/install.sh"; then
2017     ac_aux_dir=$ac_dir
2018     ac_install_sh="$ac_aux_dir/install.sh -c"
2019     break
2020   elif test -f "$ac_dir/shtool"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/shtool install -c"
2023     break
2024   fi
2025 done
2026 if test -z "$ac_aux_dir"; then
2027   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2028 fi
2029
2030 # These three variables are undocumented and unsupported,
2031 # and are intended to be withdrawn in a future Autoconf release.
2032 # They can cause serious problems if a builder's source tree is in a directory
2033 # whose full name contains unusual characters.
2034 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2035 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2036 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2037
2038
2039 # Find a good install program.  We prefer a C program (faster),
2040 # so one script is as good as another.  But avoid the broken or
2041 # incompatible versions:
2042 # SysV /etc/install, /usr/sbin/install
2043 # SunOS /usr/etc/install
2044 # IRIX /sbin/install
2045 # AIX /bin/install
2046 # AmigaOS /C/install, which installs bootblocks on floppy discs
2047 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2048 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2049 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2050 # OS/2's system install, which has a completely different semantic
2051 # ./install, which can be erroneously created by make from ./install.sh.
2052 # Reject install programs that cannot install multiple files.
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2054 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2055 if test -z "$INSTALL"; then
2056 if ${ac_cv_path_install+:} false; then :
2057   $as_echo_n "(cached) " >&6
2058 else
2059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064     # Account for people who put trailing slashes in PATH elements.
2065 case $as_dir/ in #((
2066   ./ | .// | /[cC]/* | \
2067   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2068   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2069   /usr/ucb/* ) ;;
2070   *)
2071     # OSF1 and SCO ODT 3.0 have their own names for install.
2072     # Don't use installbsd from OSF since it installs stuff as root
2073     # by default.
2074     for ac_prog in ginstall scoinst install; do
2075       for ac_exec_ext in '' $ac_executable_extensions; do
2076         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2077           if test $ac_prog = install &&
2078             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2079             # AIX install.  It has an incompatible calling convention.
2080             :
2081           elif test $ac_prog = install &&
2082             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2083             # program-specific install script used by HP pwplus--don't use.
2084             :
2085           else
2086             rm -rf conftest.one conftest.two conftest.dir
2087             echo one > conftest.one
2088             echo two > conftest.two
2089             mkdir conftest.dir
2090             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2091               test -s conftest.one && test -s conftest.two &&
2092               test -s conftest.dir/conftest.one &&
2093               test -s conftest.dir/conftest.two
2094             then
2095               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2096               break 3
2097             fi
2098           fi
2099         fi
2100       done
2101     done
2102     ;;
2103 esac
2104
2105   done
2106 IFS=$as_save_IFS
2107
2108 rm -rf conftest.one conftest.two conftest.dir
2109
2110 fi
2111   if test "${ac_cv_path_install+set}" = set; then
2112     INSTALL=$ac_cv_path_install
2113   else
2114     # As a last resort, use the slow shell script.  Don't cache a
2115     # value for INSTALL within a source directory, because that will
2116     # break other packages using the cache if that directory is
2117     # removed, or if the value is a relative name.
2118     INSTALL=$ac_install_sh
2119   fi
2120 fi
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2122 $as_echo "$INSTALL" >&6; }
2123
2124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2125 # It thinks the first close brace ends the variable substitution.
2126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2127
2128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2129
2130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2131
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2133 $as_echo_n "checking whether build environment is sane... " >&6; }
2134 # Just in case
2135 sleep 1
2136 echo timestamp > conftest.file
2137 # Reject unsafe characters in $srcdir or the absolute working directory
2138 # name.  Accept space and tab only in the latter.
2139 am_lf='
2140 '
2141 case `pwd` in
2142   *[\\\"\#\$\&\'\`$am_lf]*)
2143     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2144 esac
2145 case $srcdir in
2146   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2147     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2148 esac
2149
2150 # Do `set' in a subshell so we don't clobber the current shell's
2151 # arguments.  Must try -L first in case configure is actually a
2152 # symlink; some systems play weird games with the mod time of symlinks
2153 # (eg FreeBSD returns the mod time of the symlink's containing
2154 # directory).
2155 if (
2156    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2157    if test "$*" = "X"; then
2158       # -L didn't work.
2159       set X `ls -t "$srcdir/configure" conftest.file`
2160    fi
2161    rm -f conftest.file
2162    if test "$*" != "X $srcdir/configure conftest.file" \
2163       && test "$*" != "X conftest.file $srcdir/configure"; then
2164
2165       # If neither matched, then we have a broken ls.  This can happen
2166       # if, for instance, CONFIG_SHELL is bash and it inherits a
2167       # broken ls alias from the environment.  This has actually
2168       # happened.  Such a system could not be considered "sane".
2169       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2170 alias in your environment" "$LINENO" 5
2171    fi
2172
2173    test "$2" = conftest.file
2174    )
2175 then
2176    # Ok.
2177    :
2178 else
2179    as_fn_error $? "newly created file is older than distributed files!
2180 Check your system clock" "$LINENO" 5
2181 fi
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2183 $as_echo "yes" >&6; }
2184 test "$program_prefix" != NONE &&
2185   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2186 # Use a double $ so make ignores it.
2187 test "$program_suffix" != NONE &&
2188   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2189 # Double any \ or $.
2190 # By default was `s,x,x', remove it if useless.
2191 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2192 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2193
2194 # expand $ac_aux_dir to an absolute path
2195 am_aux_dir=`cd $ac_aux_dir && pwd`
2196
2197 if test x"${MISSING+set}" != xset; then
2198   case $am_aux_dir in
2199   *\ * | *\     *)
2200     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2201   *)
2202     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2203   esac
2204 fi
2205 # Use eval to expand $SHELL
2206 if eval "$MISSING --run true"; then
2207   am_missing_run="$MISSING --run "
2208 else
2209   am_missing_run=
2210   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2211 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2212 fi
2213
2214 if test x"${install_sh}" != xset; then
2215   case $am_aux_dir in
2216   *\ * | *\     *)
2217     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2218   *)
2219     install_sh="\${SHELL} $am_aux_dir/install-sh"
2220   esac
2221 fi
2222
2223 # Installed binaries are usually stripped using `strip' when the user
2224 # run `make install-strip'.  However `strip' might not be the right
2225 # tool to use in cross-compilation environments, therefore Automake
2226 # will honor the `STRIP' environment variable to overrule this program.
2227 if test "$cross_compiling" != no; then
2228   if test -n "$ac_tool_prefix"; then
2229   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2230 set dummy ${ac_tool_prefix}strip; ac_word=$2
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2232 $as_echo_n "checking for $ac_word... " >&6; }
2233 if ${ac_cv_prog_STRIP+:} false; then :
2234   $as_echo_n "(cached) " >&6
2235 else
2236   if test -n "$STRIP"; then
2237   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244     for ac_exec_ext in '' $ac_executable_extensions; do
2245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2248     break 2
2249   fi
2250 done
2251   done
2252 IFS=$as_save_IFS
2253
2254 fi
2255 fi
2256 STRIP=$ac_cv_prog_STRIP
2257 if test -n "$STRIP"; then
2258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2259 $as_echo "$STRIP" >&6; }
2260 else
2261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2262 $as_echo "no" >&6; }
2263 fi
2264
2265
2266 fi
2267 if test -z "$ac_cv_prog_STRIP"; then
2268   ac_ct_STRIP=$STRIP
2269   # Extract the first word of "strip", so it can be a program name with args.
2270 set dummy strip; ac_word=$2
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2272 $as_echo_n "checking for $ac_word... " >&6; }
2273 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2274   $as_echo_n "(cached) " >&6
2275 else
2276   if test -n "$ac_ct_STRIP"; then
2277   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284     for ac_exec_ext in '' $ac_executable_extensions; do
2285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286     ac_cv_prog_ac_ct_STRIP="strip"
2287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2288     break 2
2289   fi
2290 done
2291   done
2292 IFS=$as_save_IFS
2293
2294 fi
2295 fi
2296 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2297 if test -n "$ac_ct_STRIP"; then
2298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2299 $as_echo "$ac_ct_STRIP" >&6; }
2300 else
2301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2302 $as_echo "no" >&6; }
2303 fi
2304
2305   if test "x$ac_ct_STRIP" = x; then
2306     STRIP=":"
2307   else
2308     case $cross_compiling:$ac_tool_warned in
2309 yes:)
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2312 ac_tool_warned=yes ;;
2313 esac
2314     STRIP=$ac_ct_STRIP
2315   fi
2316 else
2317   STRIP="$ac_cv_prog_STRIP"
2318 fi
2319
2320 fi
2321 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2322
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2324 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2325 if test -z "$MKDIR_P"; then
2326   if ${ac_cv_path_mkdir+:} false; then :
2327   $as_echo_n "(cached) " >&6
2328 else
2329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2331 do
2332   IFS=$as_save_IFS
2333   test -z "$as_dir" && as_dir=.
2334     for ac_prog in mkdir gmkdir; do
2335          for ac_exec_ext in '' $ac_executable_extensions; do
2336            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2337            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2338              'mkdir (GNU coreutils) '* | \
2339              'mkdir (coreutils) '* | \
2340              'mkdir (fileutils) '4.1*)
2341                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2342                break 3;;
2343            esac
2344          done
2345        done
2346   done
2347 IFS=$as_save_IFS
2348
2349 fi
2350
2351   test -d ./--version && rmdir ./--version
2352   if test "${ac_cv_path_mkdir+set}" = set; then
2353     MKDIR_P="$ac_cv_path_mkdir -p"
2354   else
2355     # As a last resort, use the slow shell script.  Don't cache a
2356     # value for MKDIR_P within a source directory, because that will
2357     # break other packages using the cache if that directory is
2358     # removed, or if the value is a relative name.
2359     MKDIR_P="$ac_install_sh -d"
2360   fi
2361 fi
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2363 $as_echo "$MKDIR_P" >&6; }
2364
2365 mkdir_p="$MKDIR_P"
2366 case $mkdir_p in
2367   [\\/$]* | ?:[\\/]*) ;;
2368   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2369 esac
2370
2371 for ac_prog in gawk mawk nawk awk
2372 do
2373   # Extract the first word of "$ac_prog", so it can be a program name with args.
2374 set dummy $ac_prog; ac_word=$2
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2376 $as_echo_n "checking for $ac_word... " >&6; }
2377 if ${ac_cv_prog_AWK+:} false; then :
2378   $as_echo_n "(cached) " >&6
2379 else
2380   if test -n "$AWK"; then
2381   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386   IFS=$as_save_IFS
2387   test -z "$as_dir" && as_dir=.
2388     for ac_exec_ext in '' $ac_executable_extensions; do
2389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390     ac_cv_prog_AWK="$ac_prog"
2391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2392     break 2
2393   fi
2394 done
2395   done
2396 IFS=$as_save_IFS
2397
2398 fi
2399 fi
2400 AWK=$ac_cv_prog_AWK
2401 if test -n "$AWK"; then
2402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2403 $as_echo "$AWK" >&6; }
2404 else
2405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2406 $as_echo "no" >&6; }
2407 fi
2408
2409
2410   test -n "$AWK" && break
2411 done
2412
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2414 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2415 set x ${MAKE-make}
2416 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2417 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2418   $as_echo_n "(cached) " >&6
2419 else
2420   cat >conftest.make <<\_ACEOF
2421 SHELL = /bin/sh
2422 all:
2423         @echo '@@@%%%=$(MAKE)=@@@%%%'
2424 _ACEOF
2425 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2426 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2427   *@@@%%%=?*=@@@%%%*)
2428     eval ac_cv_prog_make_${ac_make}_set=yes;;
2429   *)
2430     eval ac_cv_prog_make_${ac_make}_set=no;;
2431 esac
2432 rm -f conftest.make
2433 fi
2434 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2436 $as_echo "yes" >&6; }
2437   SET_MAKE=
2438 else
2439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2440 $as_echo "no" >&6; }
2441   SET_MAKE="MAKE=${MAKE-make}"
2442 fi
2443
2444 rm -rf .tst 2>/dev/null
2445 mkdir .tst 2>/dev/null
2446 if test -d .tst; then
2447   am__leading_dot=.
2448 else
2449   am__leading_dot=_
2450 fi
2451 rmdir .tst 2>/dev/null
2452
2453 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2454   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2455   # is not polluted with repeated "-I."
2456   am__isrc=' -I$(srcdir)'
2457   # test to see if srcdir already configured
2458   if test -f $srcdir/config.status; then
2459     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2460   fi
2461 fi
2462
2463 # test whether we have cygpath
2464 if test -z "$CYGPATH_W"; then
2465   if (cygpath --version) >/dev/null 2>/dev/null; then
2466     CYGPATH_W='cygpath -w'
2467   else
2468     CYGPATH_W=echo
2469   fi
2470 fi
2471
2472
2473 # Define the identity of the package.
2474  PACKAGE='gtask'
2475  VERSION='0.0.x'
2476
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE "$PACKAGE"
2480 _ACEOF
2481
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define VERSION "$VERSION"
2485 _ACEOF
2486
2487 # Some tools Automake needs.
2488
2489 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2490
2491
2492 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2493
2494
2495 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2496
2497
2498 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2499
2500
2501 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2502
2503 # We need awk for the "check" target.  The system "awk" is bad on
2504 # some platforms.
2505 # Always define AMTAR for backward compatibility.  Yes, it's still used
2506 # in the wild :-(  We should find a proper way to deprecate it ...
2507 AMTAR='$${TAR-tar}'
2508
2509 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2510
2511
2512
2513
2514
2515
2516
2517
2518 # Checks for programs.
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 if test -n "$ac_tool_prefix"; then
2525   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if ${ac_cv_prog_CC+:} false; then :
2530   $as_echo_n "(cached) " >&6
2531 else
2532   if test -n "$CC"; then
2533   ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540     for ac_exec_ext in '' $ac_executable_extensions; do
2541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547   done
2548 IFS=$as_save_IFS
2549
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2555 $as_echo "$CC" >&6; }
2556 else
2557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2559 fi
2560
2561
2562 fi
2563 if test -z "$ac_cv_prog_CC"; then
2564   ac_ct_CC=$CC
2565   # Extract the first word of "gcc", so it can be a program name with args.
2566 set dummy gcc; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2570   $as_echo_n "(cached) " >&6
2571 else
2572   if test -n "$ac_ct_CC"; then
2573   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578   IFS=$as_save_IFS
2579   test -z "$as_dir" && as_dir=.
2580     for ac_exec_ext in '' $ac_executable_extensions; do
2581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582     ac_cv_prog_ac_ct_CC="gcc"
2583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584     break 2
2585   fi
2586 done
2587   done
2588 IFS=$as_save_IFS
2589
2590 fi
2591 fi
2592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2593 if test -n "$ac_ct_CC"; then
2594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2595 $as_echo "$ac_ct_CC" >&6; }
2596 else
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2599 fi
2600
2601   if test "x$ac_ct_CC" = x; then
2602     CC=""
2603   else
2604     case $cross_compiling:$ac_tool_warned in
2605 yes:)
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2608 ac_tool_warned=yes ;;
2609 esac
2610     CC=$ac_ct_CC
2611   fi
2612 else
2613   CC="$ac_cv_prog_CC"
2614 fi
2615
2616 if test -z "$CC"; then
2617           if test -n "$ac_tool_prefix"; then
2618     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2619 set dummy ${ac_tool_prefix}cc; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if ${ac_cv_prog_CC+:} false; then :
2623   $as_echo_n "(cached) " >&6
2624 else
2625   if test -n "$CC"; then
2626   ac_cv_prog_CC="$CC" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631   IFS=$as_save_IFS
2632   test -z "$as_dir" && as_dir=.
2633     for ac_exec_ext in '' $ac_executable_extensions; do
2634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635     ac_cv_prog_CC="${ac_tool_prefix}cc"
2636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637     break 2
2638   fi
2639 done
2640   done
2641 IFS=$as_save_IFS
2642
2643 fi
2644 fi
2645 CC=$ac_cv_prog_CC
2646 if test -n "$CC"; then
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2648 $as_echo "$CC" >&6; }
2649 else
2650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2652 fi
2653
2654
2655   fi
2656 fi
2657 if test -z "$CC"; then
2658   # Extract the first word of "cc", so it can be a program name with args.
2659 set dummy cc; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if ${ac_cv_prog_CC+:} false; then :
2663   $as_echo_n "(cached) " >&6
2664 else
2665   if test -n "$CC"; then
2666   ac_cv_prog_CC="$CC" # Let the user override the test.
2667 else
2668   ac_prog_rejected=no
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674     for ac_exec_ext in '' $ac_executable_extensions; do
2675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2677        ac_prog_rejected=yes
2678        continue
2679      fi
2680     ac_cv_prog_CC="cc"
2681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682     break 2
2683   fi
2684 done
2685   done
2686 IFS=$as_save_IFS
2687
2688 if test $ac_prog_rejected = yes; then
2689   # We found a bogon in the path, so make sure we never use it.
2690   set dummy $ac_cv_prog_CC
2691   shift
2692   if test $# != 0; then
2693     # We chose a different compiler from the bogus one.
2694     # However, it has the same basename, so the bogon will be chosen
2695     # first if we set CC to just the basename; use the full file name.
2696     shift
2697     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2698   fi
2699 fi
2700 fi
2701 fi
2702 CC=$ac_cv_prog_CC
2703 if test -n "$CC"; then
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2705 $as_echo "$CC" >&6; }
2706 else
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2709 fi
2710
2711
2712 fi
2713 if test -z "$CC"; then
2714   if test -n "$ac_tool_prefix"; then
2715   for ac_prog in cl.exe
2716   do
2717     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_CC+:} false; then :
2722   $as_echo_n "(cached) " >&6
2723 else
2724   if test -n "$CC"; then
2725   ac_cv_prog_CC="$CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732     for ac_exec_ext in '' $ac_executable_extensions; do
2733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739   done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2747 $as_echo "$CC" >&6; }
2748 else
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754     test -n "$CC" && break
2755   done
2756 fi
2757 if test -z "$CC"; then
2758   ac_ct_CC=$CC
2759   for ac_prog in cl.exe
2760 do
2761   # Extract the first word of "$ac_prog", so it can be a program name with args.
2762 set dummy $ac_prog; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2766   $as_echo_n "(cached) " >&6
2767 else
2768   if test -n "$ac_ct_CC"; then
2769   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774   IFS=$as_save_IFS
2775   test -z "$as_dir" && as_dir=.
2776     for ac_exec_ext in '' $ac_executable_extensions; do
2777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778     ac_cv_prog_ac_ct_CC="$ac_prog"
2779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783   done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2791 $as_echo "$ac_ct_CC" >&6; }
2792 else
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797
2798   test -n "$ac_ct_CC" && break
2799 done
2800
2801   if test "x$ac_ct_CC" = x; then
2802     CC=""
2803   else
2804     case $cross_compiling:$ac_tool_warned in
2805 yes:)
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2808 ac_tool_warned=yes ;;
2809 esac
2810     CC=$ac_ct_CC
2811   fi
2812 fi
2813
2814 fi
2815
2816
2817 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 as_fn_error $? "no acceptable C compiler found in \$PATH
2820 See \`config.log' for more details" "$LINENO" 5; }
2821
2822 # Provide some information about the compiler.
2823 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2824 set X $ac_compile
2825 ac_compiler=$2
2826 for ac_option in --version -v -V -qversion; do
2827   { { ac_try="$ac_compiler $ac_option >&5"
2828 case "(($ac_try" in
2829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830   *) ac_try_echo=$ac_try;;
2831 esac
2832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2833 $as_echo "$ac_try_echo"; } >&5
2834   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2835   ac_status=$?
2836   if test -s conftest.err; then
2837     sed '10a\
2838 ... rest of stderr output deleted ...
2839          10q' conftest.err >conftest.er1
2840     cat conftest.er1 >&5
2841   fi
2842   rm -f conftest.er1 conftest.err
2843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844   test $ac_status = 0; }
2845 done
2846
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h.  */
2849
2850 int
2851 main ()
2852 {
2853
2854   ;
2855   return 0;
2856 }
2857 _ACEOF
2858 ac_clean_files_save=$ac_clean_files
2859 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2860 # Try to create an executable without -o first, disregard a.out.
2861 # It will help us diagnose broken compilers, and finding out an intuition
2862 # of exeext.
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2864 $as_echo_n "checking whether the C compiler works... " >&6; }
2865 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2866
2867 # The possible output files:
2868 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2869
2870 ac_rmfiles=
2871 for ac_file in $ac_files
2872 do
2873   case $ac_file in
2874     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2875     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2876   esac
2877 done
2878 rm -f $ac_rmfiles
2879
2880 if { { ac_try="$ac_link_default"
2881 case "(($ac_try" in
2882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883   *) ac_try_echo=$ac_try;;
2884 esac
2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886 $as_echo "$ac_try_echo"; } >&5
2887   (eval "$ac_link_default") 2>&5
2888   ac_status=$?
2889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890   test $ac_status = 0; }; then :
2891   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2892 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2893 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2894 # so that the user can short-circuit this test for compilers unknown to
2895 # Autoconf.
2896 for ac_file in $ac_files ''
2897 do
2898   test -f "$ac_file" || continue
2899   case $ac_file in
2900     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2901         ;;
2902     [ab].out )
2903         # We found the default executable, but exeext='' is most
2904         # certainly right.
2905         break;;
2906     *.* )
2907         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2908         then :; else
2909            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2910         fi
2911         # We set ac_cv_exeext here because the later test for it is not
2912         # safe: cross compilers may not add the suffix if given an `-o'
2913         # argument, so we may need to know it at that point already.
2914         # Even if this section looks crufty: it has the advantage of
2915         # actually working.
2916         break;;
2917     * )
2918         break;;
2919   esac
2920 done
2921 test "$ac_cv_exeext" = no && ac_cv_exeext=
2922
2923 else
2924   ac_file=''
2925 fi
2926 if test -z "$ac_file"; then :
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 $as_echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 as_fn_error 77 "C compiler cannot create executables
2935 See \`config.log' for more details" "$LINENO" 5; }
2936 else
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2938 $as_echo "yes" >&6; }
2939 fi
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2941 $as_echo_n "checking for C compiler default output file name... " >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2943 $as_echo "$ac_file" >&6; }
2944 ac_exeext=$ac_cv_exeext
2945
2946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2947 ac_clean_files=$ac_clean_files_save
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2949 $as_echo_n "checking for suffix of executables... " >&6; }
2950 if { { ac_try="$ac_link"
2951 case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2956 $as_echo "$ac_try_echo"; } >&5
2957   (eval "$ac_link") 2>&5
2958   ac_status=$?
2959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960   test $ac_status = 0; }; then :
2961   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2962 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2963 # work properly (i.e., refer to `conftest.exe'), while it won't with
2964 # `rm'.
2965 for ac_file in conftest.exe conftest conftest.*; do
2966   test -f "$ac_file" || continue
2967   case $ac_file in
2968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2970           break;;
2971     * ) break;;
2972   esac
2973 done
2974 else
2975   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2978 See \`config.log' for more details" "$LINENO" 5; }
2979 fi
2980 rm -f conftest conftest$ac_cv_exeext
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2982 $as_echo "$ac_cv_exeext" >&6; }
2983
2984 rm -f conftest.$ac_ext
2985 EXEEXT=$ac_cv_exeext
2986 ac_exeext=$EXEEXT
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h.  */
2989 #include <stdio.h>
2990 int
2991 main ()
2992 {
2993 FILE *f = fopen ("conftest.out", "w");
2994  return ferror (f) || fclose (f) != 0;
2995
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 ac_clean_files="$ac_clean_files conftest.out"
3001 # Check that the compiler produces executables we can run.  If not, either
3002 # the compiler is broken, or we cross compile.
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3004 $as_echo_n "checking whether we are cross compiling... " >&6; }
3005 if test "$cross_compiling" != yes; then
3006   { { ac_try="$ac_link"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013   (eval "$ac_link") 2>&5
3014   ac_status=$?
3015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016   test $ac_status = 0; }
3017   if { ac_try='./conftest$ac_cv_exeext'
3018   { { case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024   (eval "$ac_try") 2>&5
3025   ac_status=$?
3026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027   test $ac_status = 0; }; }; then
3028     cross_compiling=no
3029   else
3030     if test "$cross_compiling" = maybe; then
3031         cross_compiling=yes
3032     else
3033         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 as_fn_error $? "cannot run C compiled programs.
3036 If you meant to cross compile, use \`--host'.
3037 See \`config.log' for more details" "$LINENO" 5; }
3038     fi
3039   fi
3040 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3042 $as_echo "$cross_compiling" >&6; }
3043
3044 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3045 ac_clean_files=$ac_clean_files_save
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3047 $as_echo_n "checking for suffix of object files... " >&6; }
3048 if ${ac_cv_objext+:} false; then :
3049   $as_echo_n "(cached) " >&6
3050 else
3051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h.  */
3053
3054 int
3055 main ()
3056 {
3057
3058   ;
3059   return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.o conftest.obj
3063 if { { ac_try="$ac_compile"
3064 case "(($ac_try" in
3065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066   *) ac_try_echo=$ac_try;;
3067 esac
3068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070   (eval "$ac_compile") 2>&5
3071   ac_status=$?
3072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073   test $ac_status = 0; }; then :
3074   for ac_file in conftest.o conftest.obj conftest.*; do
3075   test -f "$ac_file" || continue;
3076   case $ac_file in
3077     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3078     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3079        break;;
3080   esac
3081 done
3082 else
3083   $as_echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error $? "cannot compute suffix of object files: cannot compile
3089 See \`config.log' for more details" "$LINENO" 5; }
3090 fi
3091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3094 $as_echo "$ac_cv_objext" >&6; }
3095 OBJEXT=$ac_cv_objext
3096 ac_objext=$OBJEXT
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3098 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3099 if ${ac_cv_c_compiler_gnu+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108 #ifndef __GNUC__
3109        choke me
3110 #endif
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 if ac_fn_c_try_compile "$LINENO"; then :
3117   ac_compiler_gnu=yes
3118 else
3119   ac_compiler_gnu=no
3120 fi
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3123
3124 fi
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3126 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3127 if test $ac_compiler_gnu = yes; then
3128   GCC=yes
3129 else
3130   GCC=
3131 fi
3132 ac_test_CFLAGS=${CFLAGS+set}
3133 ac_save_CFLAGS=$CFLAGS
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3135 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3136 if ${ac_cv_prog_cc_g+:} false; then :
3137   $as_echo_n "(cached) " >&6
3138 else
3139   ac_save_c_werror_flag=$ac_c_werror_flag
3140    ac_c_werror_flag=yes
3141    ac_cv_prog_cc_g=no
3142    CFLAGS="-g"
3143    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h.  */
3145
3146 int
3147 main ()
3148 {
3149
3150   ;
3151   return 0;
3152 }
3153 _ACEOF
3154 if ac_fn_c_try_compile "$LINENO"; then :
3155   ac_cv_prog_cc_g=yes
3156 else
3157   CFLAGS=""
3158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 if ac_fn_c_try_compile "$LINENO"; then :
3170
3171 else
3172   ac_c_werror_flag=$ac_save_c_werror_flag
3173          CFLAGS="-g"
3174          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h.  */
3176
3177 int
3178 main ()
3179 {
3180
3181   ;
3182   return 0;
3183 }
3184 _ACEOF
3185 if ac_fn_c_try_compile "$LINENO"; then :
3186   ac_cv_prog_cc_g=yes
3187 fi
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 fi
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193    ac_c_werror_flag=$ac_save_c_werror_flag
3194 fi
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3196 $as_echo "$ac_cv_prog_cc_g" >&6; }
3197 if test "$ac_test_CFLAGS" = set; then
3198   CFLAGS=$ac_save_CFLAGS
3199 elif test $ac_cv_prog_cc_g = yes; then
3200   if test "$GCC" = yes; then
3201     CFLAGS="-g -O2"
3202   else
3203     CFLAGS="-g"
3204   fi
3205 else
3206   if test "$GCC" = yes; then
3207     CFLAGS="-O2"
3208   else
3209     CFLAGS=
3210   fi
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3213 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3214 if ${ac_cv_prog_cc_c89+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   ac_cv_prog_cc_c89=no
3218 ac_save_CC=$CC
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h.  */
3221 #include <stdarg.h>
3222 #include <stdio.h>
3223 struct stat;
3224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3225 struct buf { int x; };
3226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3227 static char *e (p, i)
3228      char **p;
3229      int i;
3230 {
3231   return p[i];
3232 }
3233 static char *f (char * (*g) (char **, int), char **p, ...)
3234 {
3235   char *s;
3236   va_list v;
3237   va_start (v,p);
3238   s = g (p, va_arg (v,int));
3239   va_end (v);
3240   return s;
3241 }
3242
3243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3244    function prototypes and stuff, but not '\xHH' hex character constants.
3245    These don't provoke an error unfortunately, instead are silently treated
3246    as 'x'.  The following induces an error, until -std is added to get
3247    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3248    array size at least.  It's necessary to write '\x00'==0 to get something
3249    that's true only with -std.  */
3250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3251
3252 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3253    inside strings and character constants.  */
3254 #define FOO(x) 'x'
3255 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3256
3257 int test (int i, double x);
3258 struct s1 {int (*f) (int a);};
3259 struct s2 {int (*f) (double a);};
3260 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3261 int argc;
3262 char **argv;
3263 int
3264 main ()
3265 {
3266 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3267   ;
3268   return 0;
3269 }
3270 _ACEOF
3271 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3272         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3273 do
3274   CC="$ac_save_CC $ac_arg"
3275   if ac_fn_c_try_compile "$LINENO"; then :
3276   ac_cv_prog_cc_c89=$ac_arg
3277 fi
3278 rm -f core conftest.err conftest.$ac_objext
3279   test "x$ac_cv_prog_cc_c89" != "xno" && break
3280 done
3281 rm -f conftest.$ac_ext
3282 CC=$ac_save_CC
3283
3284 fi
3285 # AC_CACHE_VAL
3286 case "x$ac_cv_prog_cc_c89" in
3287   x)
3288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3289 $as_echo "none needed" >&6; } ;;
3290   xno)
3291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3292 $as_echo "unsupported" >&6; } ;;
3293   *)
3294     CC="$CC $ac_cv_prog_cc_c89"
3295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3296 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3297 esac
3298 if test "x$ac_cv_prog_cc_c89" != xno; then :
3299
3300 fi
3301
3302 ac_ext=c
3303 ac_cpp='$CPP $CPPFLAGS'
3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307 DEPDIR="${am__leading_dot}deps"
3308
3309 ac_config_commands="$ac_config_commands depfiles"
3310
3311
3312 am_make=${MAKE-make}
3313 cat > confinc << 'END'
3314 am__doit:
3315         @echo this is the am__doit target
3316 .PHONY: am__doit
3317 END
3318 # If we don't find an include directive, just comment out the code.
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3320 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3321 am__include="#"
3322 am__quote=
3323 _am_result=none
3324 # First try GNU make style include.
3325 echo "include confinc" > confmf
3326 # Ignore all kinds of additional output from `make'.
3327 case `$am_make -s -f confmf 2> /dev/null` in #(
3328 *the\ am__doit\ target*)
3329   am__include=include
3330   am__quote=
3331   _am_result=GNU
3332   ;;
3333 esac
3334 # Now try BSD make style include.
3335 if test "$am__include" = "#"; then
3336    echo '.include "confinc"' > confmf
3337    case `$am_make -s -f confmf 2> /dev/null` in #(
3338    *the\ am__doit\ target*)
3339      am__include=.include
3340      am__quote="\""
3341      _am_result=BSD
3342      ;;
3343    esac
3344 fi
3345
3346
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3348 $as_echo "$_am_result" >&6; }
3349 rm -f confinc confmf
3350
3351 # Check whether --enable-dependency-tracking was given.
3352 if test "${enable_dependency_tracking+set}" = set; then :
3353   enableval=$enable_dependency_tracking;
3354 fi
3355
3356 if test "x$enable_dependency_tracking" != xno; then
3357   am_depcomp="$ac_aux_dir/depcomp"
3358   AMDEPBACKSLASH='\'
3359   am__nodep='_no'
3360 fi
3361  if test "x$enable_dependency_tracking" != xno; then
3362   AMDEP_TRUE=
3363   AMDEP_FALSE='#'
3364 else
3365   AMDEP_TRUE='#'
3366   AMDEP_FALSE=
3367 fi
3368
3369
3370
3371 depcc="$CC"   am_compiler_list=
3372
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3374 $as_echo_n "checking dependency style of $depcc... " >&6; }
3375 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3376   $as_echo_n "(cached) " >&6
3377 else
3378   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3379   # We make a subdir and do the tests there.  Otherwise we can end up
3380   # making bogus files that we don't know about and never remove.  For
3381   # instance it was reported that on HP-UX the gcc test will end up
3382   # making a dummy file named `D' -- because `-MD' means `put the output
3383   # in D'.
3384   rm -rf conftest.dir
3385   mkdir conftest.dir
3386   # Copy depcomp to subdir because otherwise we won't find it if we're
3387   # using a relative directory.
3388   cp "$am_depcomp" conftest.dir
3389   cd conftest.dir
3390   # We will build objects and dependencies in a subdirectory because
3391   # it helps to detect inapplicable dependency modes.  For instance
3392   # both Tru64's cc and ICC support -MD to output dependencies as a
3393   # side effect of compilation, but ICC will put the dependencies in
3394   # the current directory while Tru64 will put them in the object
3395   # directory.
3396   mkdir sub
3397
3398   am_cv_CC_dependencies_compiler_type=none
3399   if test "$am_compiler_list" = ""; then
3400      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3401   fi
3402   am__universal=false
3403   case " $depcc " in #(
3404      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3405      esac
3406
3407   for depmode in $am_compiler_list; do
3408     # Setup a source with many dependencies, because some compilers
3409     # like to wrap large dependency lists on column 80 (with \), and
3410     # we should not choose a depcomp mode which is confused by this.
3411     #
3412     # We need to recreate these files for each test, as the compiler may
3413     # overwrite some of them when testing with obscure command lines.
3414     # This happens at least with the AIX C compiler.
3415     : > sub/conftest.c
3416     for i in 1 2 3 4 5 6; do
3417       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3418       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3419       # Solaris 8's {/usr,}/bin/sh.
3420       touch sub/conftst$i.h
3421     done
3422     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3423
3424     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3425     # mode.  It turns out that the SunPro C++ compiler does not properly
3426     # handle `-M -o', and we need to detect this.  Also, some Intel
3427     # versions had trouble with output in subdirs
3428     am__obj=sub/conftest.${OBJEXT-o}
3429     am__minus_obj="-o $am__obj"
3430     case $depmode in
3431     gcc)
3432       # This depmode causes a compiler race in universal mode.
3433       test "$am__universal" = false || continue
3434       ;;
3435     nosideeffect)
3436       # after this tag, mechanisms are not by side-effect, so they'll
3437       # only be used when explicitly requested
3438       if test "x$enable_dependency_tracking" = xyes; then
3439         continue
3440       else
3441         break
3442       fi
3443       ;;
3444     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3445       # This compiler won't grok `-c -o', but also, the minuso test has
3446       # not run yet.  These depmodes are late enough in the game, and
3447       # so weak that their functioning should not be impacted.
3448       am__obj=conftest.${OBJEXT-o}
3449       am__minus_obj=
3450       ;;
3451     none) break ;;
3452     esac
3453     if depmode=$depmode \
3454        source=sub/conftest.c object=$am__obj \
3455        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3456        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3457          >/dev/null 2>conftest.err &&
3458        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3459        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3460        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3461        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3462       # icc doesn't choke on unknown options, it will just issue warnings
3463       # or remarks (even with -Werror).  So we grep stderr for any message
3464       # that says an option was ignored or not supported.
3465       # When given -MP, icc 7.0 and 7.1 complain thusly:
3466       #   icc: Command line warning: ignoring option '-M'; no argument required
3467       # The diagnosis changed in icc 8.0:
3468       #   icc: Command line remark: option '-MP' not supported
3469       if (grep 'ignoring option' conftest.err ||
3470           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3471         am_cv_CC_dependencies_compiler_type=$depmode
3472         break
3473       fi
3474     fi
3475   done
3476
3477   cd ..
3478   rm -rf conftest.dir
3479 else
3480   am_cv_CC_dependencies_compiler_type=none
3481 fi
3482
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3485 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3486 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3487
3488  if
3489   test "x$enable_dependency_tracking" != xno \
3490   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3491   am__fastdepCC_TRUE=
3492   am__fastdepCC_FALSE='#'
3493 else
3494   am__fastdepCC_TRUE='#'
3495   am__fastdepCC_FALSE=
3496 fi
3497
3498
3499 if test "x$CC" != xcc; then
3500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3501 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3502 else
3503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3504 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3505 fi
3506 set dummy $CC; ac_cc=`$as_echo "$2" |
3507                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3508 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3509   $as_echo_n "(cached) " >&6
3510 else
3511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h.  */
3513
3514 int
3515 main ()
3516 {
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 # Make sure it works both with $CC and with simple cc.
3523 # We do the test twice because some compilers refuse to overwrite an
3524 # existing .o file with -o, though they will create one.
3525 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3526 rm -f conftest2.*
3527 if { { case "(($ac_try" in
3528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529   *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533   (eval "$ac_try") 2>&5
3534   ac_status=$?
3535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536   test $ac_status = 0; } &&
3537    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543   (eval "$ac_try") 2>&5
3544   ac_status=$?
3545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546   test $ac_status = 0; };
3547 then
3548   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3549   if test "x$CC" != xcc; then
3550     # Test first that cc exists at all.
3551     if { ac_try='cc -c conftest.$ac_ext >&5'
3552   { { case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558   (eval "$ac_try") 2>&5
3559   ac_status=$?
3560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561   test $ac_status = 0; }; }; then
3562       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3563       rm -f conftest2.*
3564       if { { case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570   (eval "$ac_try") 2>&5
3571   ac_status=$?
3572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573   test $ac_status = 0; } &&
3574          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580   (eval "$ac_try") 2>&5
3581   ac_status=$?
3582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583   test $ac_status = 0; };
3584       then
3585         # cc works too.
3586         :
3587       else
3588         # cc exists but doesn't like -o.
3589         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3590       fi
3591     fi
3592   fi
3593 else
3594   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3595 fi
3596 rm -f core conftest*
3597
3598 fi
3599 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3601 $as_echo "yes" >&6; }
3602 else
3603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3605
3606 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3607
3608 fi
3609
3610 # FIXME: we rely on the cache variable name because
3611 # there is no other way.
3612 set dummy $CC
3613 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3614 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3615 if test "$am_t" != yes; then
3616    # Losing compiler, so override with the script.
3617    # FIXME: It is wrong to rewrite CC.
3618    # But if we don't then we get into trouble of one sort or another.
3619    # A longer-term fix would be to have automake use am__CC in this case,
3620    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3621    CC="$am_aux_dir/compile $CC"
3622 fi
3623
3624
3625
3626 # Checks for header files.
3627
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3634 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3635 # On Suns, sometimes $CPP names a directory.
3636 if test -n "$CPP" && test -d "$CPP"; then
3637   CPP=
3638 fi
3639 if test -z "$CPP"; then
3640   if ${ac_cv_prog_CPP+:} false; then :
3641   $as_echo_n "(cached) " >&6
3642 else
3643       # Double quotes because CPP needs to be expanded
3644     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3645     do
3646       ac_preproc_ok=false
3647 for ac_c_preproc_warn_flag in '' yes
3648 do
3649   # Use a header file that comes with gcc, so configuring glibc
3650   # with a fresh cross-compiler works.
3651   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652   # <limits.h> exists even on freestanding compilers.
3653   # On the NeXT, cc -E runs the code through the compiler's parser,
3654   # not just through cpp. "Syntax error" is here to catch this case.
3655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h.  */
3657 #ifdef __STDC__
3658 # include <limits.h>
3659 #else
3660 # include <assert.h>
3661 #endif
3662                      Syntax error
3663 _ACEOF
3664 if ac_fn_c_try_cpp "$LINENO"; then :
3665
3666 else
3667   # Broken: fails on valid input.
3668 continue
3669 fi
3670 rm -f conftest.err conftest.i conftest.$ac_ext
3671
3672   # OK, works on sane cases.  Now check whether nonexistent headers
3673   # can be detected and how.
3674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h.  */
3676 #include <ac_nonexistent.h>
3677 _ACEOF
3678 if ac_fn_c_try_cpp "$LINENO"; then :
3679   # Broken: success on invalid input.
3680 continue
3681 else
3682   # Passes both tests.
3683 ac_preproc_ok=:
3684 break
3685 fi
3686 rm -f conftest.err conftest.i conftest.$ac_ext
3687
3688 done
3689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3690 rm -f conftest.i conftest.err conftest.$ac_ext
3691 if $ac_preproc_ok; then :
3692   break
3693 fi
3694
3695     done
3696     ac_cv_prog_CPP=$CPP
3697
3698 fi
3699   CPP=$ac_cv_prog_CPP
3700 else
3701   ac_cv_prog_CPP=$CPP
3702 fi
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3704 $as_echo "$CPP" >&6; }
3705 ac_preproc_ok=false
3706 for ac_c_preproc_warn_flag in '' yes
3707 do
3708   # Use a header file that comes with gcc, so configuring glibc
3709   # with a fresh cross-compiler works.
3710   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3711   # <limits.h> exists even on freestanding compilers.
3712   # On the NeXT, cc -E runs the code through the compiler's parser,
3713   # not just through cpp. "Syntax error" is here to catch this case.
3714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h.  */
3716 #ifdef __STDC__
3717 # include <limits.h>
3718 #else
3719 # include <assert.h>
3720 #endif
3721                      Syntax error
3722 _ACEOF
3723 if ac_fn_c_try_cpp "$LINENO"; then :
3724
3725 else
3726   # Broken: fails on valid input.
3727 continue
3728 fi
3729 rm -f conftest.err conftest.i conftest.$ac_ext
3730
3731   # OK, works on sane cases.  Now check whether nonexistent headers
3732   # can be detected and how.
3733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h.  */
3735 #include <ac_nonexistent.h>
3736 _ACEOF
3737 if ac_fn_c_try_cpp "$LINENO"; then :
3738   # Broken: success on invalid input.
3739 continue
3740 else
3741   # Passes both tests.
3742 ac_preproc_ok=:
3743 break
3744 fi
3745 rm -f conftest.err conftest.i conftest.$ac_ext
3746
3747 done
3748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3749 rm -f conftest.i conftest.err conftest.$ac_ext
3750 if $ac_preproc_ok; then :
3751
3752 else
3753   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3756 See \`config.log' for more details" "$LINENO" 5; }
3757 fi
3758
3759 ac_ext=c
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764
3765
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
3767 $as_echo_n "checking for X... " >&6; }
3768
3769
3770 # Check whether --with-x was given.
3771 if test "${with_x+set}" = set; then :
3772   withval=$with_x;
3773 fi
3774
3775 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3776 if test "x$with_x" = xno; then
3777   # The user explicitly disabled X.
3778   have_x=disabled
3779 else
3780   case $x_includes,$x_libraries in #(
3781     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
3782     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   # One or both of the vars are not set, and there is no cached value.
3786 ac_x_includes=no ac_x_libraries=no
3787 rm -f -r conftest.dir
3788 if mkdir conftest.dir; then
3789   cd conftest.dir
3790   cat >Imakefile <<'_ACEOF'
3791 incroot:
3792         @echo incroot='${INCROOT}'
3793 usrlibdir:
3794         @echo usrlibdir='${USRLIBDIR}'
3795 libdir:
3796         @echo libdir='${LIBDIR}'
3797 _ACEOF
3798   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3799     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3800     for ac_var in incroot usrlibdir libdir; do
3801       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3802     done
3803     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3804     for ac_extension in a so sl dylib la dll; do
3805       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3806          test -f "$ac_im_libdir/libX11.$ac_extension"; then
3807         ac_im_usrlibdir=$ac_im_libdir; break
3808       fi
3809     done
3810     # Screen out bogus values from the imake configuration.  They are
3811     # bogus both because they are the default anyway, and because
3812     # using them would break gcc on systems where it needs fixed includes.
3813     case $ac_im_incroot in
3814         /usr/include) ac_x_includes= ;;
3815         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3816     esac
3817     case $ac_im_usrlibdir in
3818         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
3819         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3820     esac
3821   fi
3822   cd ..
3823   rm -f -r conftest.dir
3824 fi
3825
3826 # Standard set of common directories for X headers.
3827 # Check X11 before X11Rn because it is often a symlink to the current release.
3828 ac_x_header_dirs='
3829 /usr/X11/include
3830 /usr/X11R7/include
3831 /usr/X11R6/include
3832 /usr/X11R5/include
3833 /usr/X11R4/include
3834
3835 /usr/include/X11
3836 /usr/include/X11R7
3837 /usr/include/X11R6
3838 /usr/include/X11R5
3839 /usr/include/X11R4
3840
3841 /usr/local/X11/include
3842 /usr/local/X11R7/include
3843 /usr/local/X11R6/include
3844 /usr/local/X11R5/include
3845 /usr/local/X11R4/include
3846
3847 /usr/local/include/X11
3848 /usr/local/include/X11R7
3849 /usr/local/include/X11R6
3850 /usr/local/include/X11R5
3851 /usr/local/include/X11R4
3852
3853 /usr/X386/include
3854 /usr/x386/include
3855 /usr/XFree86/include/X11
3856
3857 /usr/include
3858 /usr/local/include
3859 /usr/unsupported/include
3860 /usr/athena/include
3861 /usr/local/x11r5/include
3862 /usr/lpp/Xamples/include
3863
3864 /usr/openwin/include
3865 /usr/openwin/share/include'
3866
3867 if test "$ac_x_includes" = no; then
3868   # Guess where to find include files, by looking for Xlib.h.
3869   # First, try using that file with no special directory specified.
3870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h.  */
3872 #include <X11/Xlib.h>
3873 _ACEOF
3874 if ac_fn_c_try_cpp "$LINENO"; then :
3875   # We can compile using X headers with no special include directory.
3876 ac_x_includes=
3877 else
3878   for ac_dir in $ac_x_header_dirs; do
3879   if test -r "$ac_dir/X11/Xlib.h"; then
3880     ac_x_includes=$ac_dir
3881     break
3882   fi
3883 done
3884 fi
3885 rm -f conftest.err conftest.i conftest.$ac_ext
3886 fi # $ac_x_includes = no
3887
3888 if test "$ac_x_libraries" = no; then
3889   # Check for the libraries.
3890   # See if we find them without any special options.
3891   # Don't add to $LIBS permanently.
3892   ac_save_LIBS=$LIBS
3893   LIBS="-lX11 $LIBS"
3894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h.  */
3896 #include <X11/Xlib.h>
3897 int
3898 main ()
3899 {
3900 XrmInitialize ()
3901   ;
3902   return 0;
3903 }
3904 _ACEOF
3905 if ac_fn_c_try_link "$LINENO"; then :
3906   LIBS=$ac_save_LIBS
3907 # We can link X programs with no special library path.
3908 ac_x_libraries=
3909 else
3910   LIBS=$ac_save_LIBS
3911 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3912 do
3913   # Don't even attempt the hair of trying to link an X program!
3914   for ac_extension in a so sl dylib la dll; do
3915     if test -r "$ac_dir/libX11.$ac_extension"; then
3916       ac_x_libraries=$ac_dir
3917       break 2
3918     fi
3919   done
3920 done
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext \
3923     conftest$ac_exeext conftest.$ac_ext
3924 fi # $ac_x_libraries = no
3925
3926 case $ac_x_includes,$ac_x_libraries in #(
3927   no,* | *,no | *\'*)
3928     # Didn't find X, or a directory has "'" in its name.
3929     ac_cv_have_x="have_x=no";; #(
3930   *)
3931     # Record where we found X for the cache.
3932     ac_cv_have_x="have_x=yes\
3933         ac_x_includes='$ac_x_includes'\
3934         ac_x_libraries='$ac_x_libraries'"
3935 esac
3936 fi
3937 ;; #(
3938     *) have_x=yes;;
3939   esac
3940   eval "$ac_cv_have_x"
3941 fi # $with_x != no
3942
3943 if test "$have_x" != yes; then
3944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
3945 $as_echo "$have_x" >&6; }
3946   no_x=yes
3947 else
3948   # If each of the values was on the command line, it overrides each guess.
3949   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3950   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3951   # Update the cache value to reflect the command line values.
3952   ac_cv_have_x="have_x=yes\
3953         ac_x_includes='$x_includes'\
3954         ac_x_libraries='$x_libraries'"
3955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
3956 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
3957 fi
3958
3959
3960
3961
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3963 $as_echo_n "checking whether NLS is requested... " >&6; }
3964     # Check whether --enable-nls was given.
3965 if test "${enable_nls+set}" = set; then :
3966   enableval=$enable_nls; USE_NLS=$enableval
3967 else
3968   USE_NLS=yes
3969 fi
3970
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3972 $as_echo "$USE_NLS" >&6; }
3973
3974
3975
3976
3977       GETTEXT_MACRO_VERSION=0.18
3978
3979
3980
3981
3982 # Prepare PATH_SEPARATOR.
3983 # The user is always right.
3984 if test "${PATH_SEPARATOR+set}" != set; then
3985   echo "#! /bin/sh" >conf$$.sh
3986   echo  "exit 0"   >>conf$$.sh
3987   chmod +x conf$$.sh
3988   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3989     PATH_SEPARATOR=';'
3990   else
3991     PATH_SEPARATOR=:
3992   fi
3993   rm -f conf$$.sh
3994 fi
3995
3996 # Find out how to test for executable files. Don't use a zero-byte file,
3997 # as systems may use methods other than mode bits to determine executability.
3998 cat >conf$$.file <<_ASEOF
3999 #! /bin/sh
4000 exit 0
4001 _ASEOF
4002 chmod +x conf$$.file
4003 if test -x conf$$.file >/dev/null 2>&1; then
4004   ac_executable_p="test -x"
4005 else
4006   ac_executable_p="test -f"
4007 fi
4008 rm -f conf$$.file
4009
4010 # Extract the first word of "msgfmt", so it can be a program name with args.
4011 set dummy msgfmt; ac_word=$2
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013 $as_echo_n "checking for $ac_word... " >&6; }
4014 if ${ac_cv_path_MSGFMT+:} false; then :
4015   $as_echo_n "(cached) " >&6
4016 else
4017   case "$MSGFMT" in
4018   [\\/]* | ?:[\\/]*)
4019     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4020     ;;
4021   *)
4022     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4023     for ac_dir in $PATH; do
4024       IFS="$ac_save_IFS"
4025       test -z "$ac_dir" && ac_dir=.
4026       for ac_exec_ext in '' $ac_executable_extensions; do
4027         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4028           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4029           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4030      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4031             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4032             break 2
4033           fi
4034         fi
4035       done
4036     done
4037     IFS="$ac_save_IFS"
4038   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4039     ;;
4040 esac
4041 fi
4042 MSGFMT="$ac_cv_path_MSGFMT"
4043 if test "$MSGFMT" != ":"; then
4044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4045 $as_echo "$MSGFMT" >&6; }
4046 else
4047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4049 fi
4050
4051   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4052 set dummy gmsgfmt; ac_word=$2
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054 $as_echo_n "checking for $ac_word... " >&6; }
4055 if ${ac_cv_path_GMSGFMT+:} false; then :
4056   $as_echo_n "(cached) " >&6
4057 else
4058   case $GMSGFMT in
4059   [\\/]* | ?:[\\/]*)
4060   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4061   ;;
4062   *)
4063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066   IFS=$as_save_IFS
4067   test -z "$as_dir" && as_dir=.
4068     for ac_exec_ext in '' $ac_executable_extensions; do
4069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072     break 2
4073   fi
4074 done
4075   done
4076 IFS=$as_save_IFS
4077
4078   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4079   ;;
4080 esac
4081 fi
4082 GMSGFMT=$ac_cv_path_GMSGFMT
4083 if test -n "$GMSGFMT"; then
4084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4085 $as_echo "$GMSGFMT" >&6; }
4086 else
4087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4089 fi
4090
4091
4092
4093     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4094     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4095     *) MSGFMT_015=$MSGFMT ;;
4096   esac
4097
4098   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4099     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4100     *) GMSGFMT_015=$GMSGFMT ;;
4101   esac
4102
4103
4104
4105 # Prepare PATH_SEPARATOR.
4106 # The user is always right.
4107 if test "${PATH_SEPARATOR+set}" != set; then
4108   echo "#! /bin/sh" >conf$$.sh
4109   echo  "exit 0"   >>conf$$.sh
4110   chmod +x conf$$.sh
4111   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4112     PATH_SEPARATOR=';'
4113   else
4114     PATH_SEPARATOR=:
4115   fi
4116   rm -f conf$$.sh
4117 fi
4118
4119 # Find out how to test for executable files. Don't use a zero-byte file,
4120 # as systems may use methods other than mode bits to determine executability.
4121 cat >conf$$.file <<_ASEOF
4122 #! /bin/sh
4123 exit 0
4124 _ASEOF
4125 chmod +x conf$$.file
4126 if test -x conf$$.file >/dev/null 2>&1; then
4127   ac_executable_p="test -x"
4128 else
4129   ac_executable_p="test -f"
4130 fi
4131 rm -f conf$$.file
4132
4133 # Extract the first word of "xgettext", so it can be a program name with args.
4134 set dummy xgettext; ac_word=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if ${ac_cv_path_XGETTEXT+:} false; then :
4138   $as_echo_n "(cached) " >&6
4139 else
4140   case "$XGETTEXT" in
4141   [\\/]* | ?:[\\/]*)
4142     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4143     ;;
4144   *)
4145     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4146     for ac_dir in $PATH; do
4147       IFS="$ac_save_IFS"
4148       test -z "$ac_dir" && ac_dir=.
4149       for ac_exec_ext in '' $ac_executable_extensions; do
4150         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4151           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4152           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4153      (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
4154             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4155             break 2
4156           fi
4157         fi
4158       done
4159     done
4160     IFS="$ac_save_IFS"
4161   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4162     ;;
4163 esac
4164 fi
4165 XGETTEXT="$ac_cv_path_XGETTEXT"
4166 if test "$XGETTEXT" != ":"; then
4167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4168 $as_echo "$XGETTEXT" >&6; }
4169 else
4170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4172 fi
4173
4174     rm -f messages.po
4175
4176     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4177     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4178     *) XGETTEXT_015=$XGETTEXT ;;
4179   esac
4180
4181
4182
4183 # Prepare PATH_SEPARATOR.
4184 # The user is always right.
4185 if test "${PATH_SEPARATOR+set}" != set; then
4186   echo "#! /bin/sh" >conf$$.sh
4187   echo  "exit 0"   >>conf$$.sh
4188   chmod +x conf$$.sh
4189   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4190     PATH_SEPARATOR=';'
4191   else
4192     PATH_SEPARATOR=:
4193   fi
4194   rm -f conf$$.sh
4195 fi
4196
4197 # Find out how to test for executable files. Don't use a zero-byte file,
4198 # as systems may use methods other than mode bits to determine executability.
4199 cat >conf$$.file <<_ASEOF
4200 #! /bin/sh
4201 exit 0
4202 _ASEOF
4203 chmod +x conf$$.file
4204 if test -x conf$$.file >/dev/null 2>&1; then
4205   ac_executable_p="test -x"
4206 else
4207   ac_executable_p="test -f"
4208 fi
4209 rm -f conf$$.file
4210
4211 # Extract the first word of "msgmerge", so it can be a program name with args.
4212 set dummy msgmerge; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_path_MSGMERGE+:} false; then :
4216   $as_echo_n "(cached) " >&6
4217 else
4218   case "$MSGMERGE" in
4219   [\\/]* | ?:[\\/]*)
4220     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4221     ;;
4222   *)
4223     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4224     for ac_dir in $PATH; do
4225       IFS="$ac_save_IFS"
4226       test -z "$ac_dir" && ac_dir=.
4227       for ac_exec_ext in '' $ac_executable_extensions; do
4228         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4229           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4230           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4231             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4232             break 2
4233           fi
4234         fi
4235       done
4236     done
4237     IFS="$ac_save_IFS"
4238   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4239     ;;
4240 esac
4241 fi
4242 MSGMERGE="$ac_cv_path_MSGMERGE"
4243 if test "$MSGMERGE" != ":"; then
4244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4245 $as_echo "$MSGMERGE" >&6; }
4246 else
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251
4252         test -n "$localedir" || localedir='${datadir}/locale'
4253
4254
4255     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4256
4257
4258   ac_config_commands="$ac_config_commands po-directories"
4259
4260
4261
4262       if test "X$prefix" = "XNONE"; then
4263     acl_final_prefix="$ac_default_prefix"
4264   else
4265     acl_final_prefix="$prefix"
4266   fi
4267   if test "X$exec_prefix" = "XNONE"; then
4268     acl_final_exec_prefix='${prefix}'
4269   else
4270     acl_final_exec_prefix="$exec_prefix"
4271   fi
4272   acl_save_prefix="$prefix"
4273   prefix="$acl_final_prefix"
4274   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4275   prefix="$acl_save_prefix"
4276
4277 # Make sure we can run config.sub.
4278 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4279   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4280
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4282 $as_echo_n "checking build system type... " >&6; }
4283 if ${ac_cv_build+:} false; then :
4284   $as_echo_n "(cached) " >&6
4285 else
4286   ac_build_alias=$build_alias
4287 test "x$ac_build_alias" = x &&
4288   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4289 test "x$ac_build_alias" = x &&
4290   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4291 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4292   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4293
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4296 $as_echo "$ac_cv_build" >&6; }
4297 case $ac_cv_build in
4298 *-*-*) ;;
4299 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4300 esac
4301 build=$ac_cv_build
4302 ac_save_IFS=$IFS; IFS='-'
4303 set x $ac_cv_build
4304 shift
4305 build_cpu=$1
4306 build_vendor=$2
4307 shift; shift
4308 # Remember, the first character of IFS is used to create $*,
4309 # except with old shells:
4310 build_os=$*
4311 IFS=$ac_save_IFS
4312 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4313
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4316 $as_echo_n "checking host system type... " >&6; }
4317 if ${ac_cv_host+:} false; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320   if test "x$host_alias" = x; then
4321   ac_cv_host=$ac_cv_build
4322 else
4323   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4324     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4325 fi
4326
4327 fi
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4329 $as_echo "$ac_cv_host" >&6; }
4330 case $ac_cv_host in
4331 *-*-*) ;;
4332 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4333 esac
4334 host=$ac_cv_host
4335 ac_save_IFS=$IFS; IFS='-'
4336 set x $ac_cv_host
4337 shift
4338 host_cpu=$1
4339 host_vendor=$2
4340 shift; shift
4341 # Remember, the first character of IFS is used to create $*,
4342 # except with old shells:
4343 host_os=$*
4344 IFS=$ac_save_IFS
4345 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4346
4347
4348
4349 # Check whether --with-gnu-ld was given.
4350 if test "${with_gnu_ld+set}" = set; then :
4351   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4352 else
4353   with_gnu_ld=no
4354 fi
4355
4356 # Prepare PATH_SEPARATOR.
4357 # The user is always right.
4358 if test "${PATH_SEPARATOR+set}" != set; then
4359   echo "#! /bin/sh" >conf$$.sh
4360   echo  "exit 0"   >>conf$$.sh
4361   chmod +x conf$$.sh
4362   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4363     PATH_SEPARATOR=';'
4364   else
4365     PATH_SEPARATOR=:
4366   fi
4367   rm -f conf$$.sh
4368 fi
4369 ac_prog=ld
4370 if test "$GCC" = yes; then
4371   # Check if gcc -print-prog-name=ld gives a path.
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4373 $as_echo_n "checking for ld used by GCC... " >&6; }
4374   case $host in
4375   *-*-mingw*)
4376     # gcc leaves a trailing carriage return which upsets mingw
4377     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4378   *)
4379     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4380   esac
4381   case $ac_prog in
4382     # Accept absolute paths.
4383     [\\/]* | [A-Za-z]:[\\/]*)
4384       re_direlt='/[^/][^/]*/\.\./'
4385       # Canonicalize the path of ld
4386       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4387       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4388         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4389       done
4390       test -z "$LD" && LD="$ac_prog"
4391       ;;
4392   "")
4393     # If it fails, then pretend we aren't using GCC.
4394     ac_prog=ld
4395     ;;
4396   *)
4397     # If it is relative, then search for the first ld in PATH.
4398     with_gnu_ld=unknown
4399     ;;
4400   esac
4401 elif test "$with_gnu_ld" = yes; then
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4403 $as_echo_n "checking for GNU ld... " >&6; }
4404 else
4405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4406 $as_echo_n "checking for non-GNU ld... " >&6; }
4407 fi
4408 if ${acl_cv_path_LD+:} false; then :
4409   $as_echo_n "(cached) " >&6
4410 else
4411   if test -z "$LD"; then
4412   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4413   for ac_dir in $PATH; do
4414     test -z "$ac_dir" && ac_dir=.
4415     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4416       acl_cv_path_LD="$ac_dir/$ac_prog"
4417       # Check to see if the program is GNU ld.  I'd rather use --version,
4418       # but apparently some GNU ld's only accept -v.
4419       # Break only if it was the GNU/non-GNU ld that we prefer.
4420       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4421       *GNU* | *'with BFD'*)
4422         test "$with_gnu_ld" != no && break ;;
4423       *)
4424         test "$with_gnu_ld" != yes && break ;;
4425       esac
4426     fi
4427   done
4428   IFS="$ac_save_ifs"
4429 else
4430   acl_cv_path_LD="$LD" # Let the user override the test with a path.
4431 fi
4432 fi
4433
4434 LD="$acl_cv_path_LD"
4435 if test -n "$LD"; then
4436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4437 $as_echo "$LD" >&6; }
4438 else
4439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4441 fi
4442 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4444 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4445 if ${acl_cv_prog_gnu_ld+:} false; then :
4446   $as_echo_n "(cached) " >&6
4447 else
4448   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4449 case `$LD -v 2>&1 </dev/null` in
4450 *GNU* | *'with BFD'*)
4451   acl_cv_prog_gnu_ld=yes ;;
4452 *)
4453   acl_cv_prog_gnu_ld=no ;;
4454 esac
4455 fi
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4457 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4458 with_gnu_ld=$acl_cv_prog_gnu_ld
4459
4460
4461
4462
4463                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4464 $as_echo_n "checking for shared library run path origin... " >&6; }
4465 if ${acl_cv_rpath+:} false; then :
4466   $as_echo_n "(cached) " >&6
4467 else
4468
4469     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4470     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4471     . ./conftest.sh
4472     rm -f ./conftest.sh
4473     acl_cv_rpath=done
4474
4475 fi
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4477 $as_echo "$acl_cv_rpath" >&6; }
4478   wl="$acl_cv_wl"
4479   acl_libext="$acl_cv_libext"
4480   acl_shlibext="$acl_cv_shlibext"
4481   acl_libname_spec="$acl_cv_libname_spec"
4482   acl_library_names_spec="$acl_cv_library_names_spec"
4483   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4484   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4485   acl_hardcode_direct="$acl_cv_hardcode_direct"
4486   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4487     # Check whether --enable-rpath was given.
4488 if test "${enable_rpath+set}" = set; then :
4489   enableval=$enable_rpath; :
4490 else
4491   enable_rpath=yes
4492 fi
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4496 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4497 if ${ac_cv_path_GREP+:} false; then :
4498   $as_echo_n "(cached) " >&6
4499 else
4500   if test -z "$GREP"; then
4501   ac_path_GREP_found=false
4502   # Loop through the user's path and test for each of PROGNAME-LIST
4503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508     for ac_prog in grep ggrep; do
4509     for ac_exec_ext in '' $ac_executable_extensions; do
4510       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4511       as_fn_executable_p "$ac_path_GREP" || continue
4512 # Check for GNU ac_path_GREP and select it if it is found.
4513   # Check for GNU $ac_path_GREP
4514 case `"$ac_path_GREP" --version 2>&1` in
4515 *GNU*)
4516   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4517 *)
4518   ac_count=0
4519   $as_echo_n 0123456789 >"conftest.in"
4520   while :
4521   do
4522     cat "conftest.in" "conftest.in" >"conftest.tmp"
4523     mv "conftest.tmp" "conftest.in"
4524     cp "conftest.in" "conftest.nl"
4525     $as_echo 'GREP' >> "conftest.nl"
4526     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4527     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4528     as_fn_arith $ac_count + 1 && ac_count=$as_val
4529     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4530       # Best one so far, save it but keep looking for a better one
4531       ac_cv_path_GREP="$ac_path_GREP"
4532       ac_path_GREP_max=$ac_count
4533     fi
4534     # 10*(2^10) chars as input seems more than enough
4535     test $ac_count -gt 10 && break
4536   done
4537   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4538 esac
4539
4540       $ac_path_GREP_found && break 3
4541     done
4542   done
4543   done
4544 IFS=$as_save_IFS
4545   if test -z "$ac_cv_path_GREP"; then
4546     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4547   fi
4548 else
4549   ac_cv_path_GREP=$GREP
4550 fi
4551
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4554 $as_echo "$ac_cv_path_GREP" >&6; }
4555  GREP="$ac_cv_path_GREP"
4556
4557
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4559 $as_echo_n "checking for egrep... " >&6; }
4560 if ${ac_cv_path_EGREP+:} false; then :
4561   $as_echo_n "(cached) " >&6
4562 else
4563   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4564    then ac_cv_path_EGREP="$GREP -E"
4565    else
4566      if test -z "$EGREP"; then
4567   ac_path_EGREP_found=false
4568   # Loop through the user's path and test for each of PROGNAME-LIST
4569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4571 do
4572   IFS=$as_save_IFS
4573   test -z "$as_dir" && as_dir=.
4574     for ac_prog in egrep; do
4575     for ac_exec_ext in '' $ac_executable_extensions; do
4576       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4577       as_fn_executable_p "$ac_path_EGREP" || continue
4578 # Check for GNU ac_path_EGREP and select it if it is found.
4579   # Check for GNU $ac_path_EGREP
4580 case `"$ac_path_EGREP" --version 2>&1` in
4581 *GNU*)
4582   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4583 *)
4584   ac_count=0
4585   $as_echo_n 0123456789 >"conftest.in"
4586   while :
4587   do
4588     cat "conftest.in" "conftest.in" >"conftest.tmp"
4589     mv "conftest.tmp" "conftest.in"
4590     cp "conftest.in" "conftest.nl"
4591     $as_echo 'EGREP' >> "conftest.nl"
4592     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594     as_fn_arith $ac_count + 1 && ac_count=$as_val
4595     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4596       # Best one so far, save it but keep looking for a better one
4597       ac_cv_path_EGREP="$ac_path_EGREP"
4598       ac_path_EGREP_max=$ac_count
4599     fi
4600     # 10*(2^10) chars as input seems more than enough
4601     test $ac_count -gt 10 && break
4602   done
4603   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 esac
4605
4606       $ac_path_EGREP_found && break 3
4607     done
4608   done
4609   done
4610 IFS=$as_save_IFS
4611   if test -z "$ac_cv_path_EGREP"; then
4612     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4613   fi
4614 else
4615   ac_cv_path_EGREP=$EGREP
4616 fi
4617
4618    fi
4619 fi
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4621 $as_echo "$ac_cv_path_EGREP" >&6; }
4622  EGREP="$ac_cv_path_EGREP"
4623
4624
4625
4626
4627   acl_libdirstem=lib
4628   acl_libdirstem2=
4629   case "$host_os" in
4630     solaris*)
4631                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4632 $as_echo_n "checking for 64-bit host... " >&6; }
4633 if ${gl_cv_solaris_64bit+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638
4639 #ifdef _LP64
4640 sixtyfour bits
4641 #endif
4642
4643 _ACEOF
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4646   gl_cv_solaris_64bit=yes
4647 else
4648   gl_cv_solaris_64bit=no
4649 fi
4650 rm -f conftest*
4651
4652
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4655 $as_echo "$gl_cv_solaris_64bit" >&6; }
4656       if test $gl_cv_solaris_64bit = yes; then
4657         acl_libdirstem=lib/64
4658         case "$host_cpu" in
4659           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
4660           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4661         esac
4662       fi
4663       ;;
4664     *)
4665       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4666       if test -n "$searchpath"; then
4667         acl_save_IFS="${IFS=    }"; IFS=":"
4668         for searchdir in $searchpath; do
4669           if test -d "$searchdir"; then
4670             case "$searchdir" in
4671               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4672               */../ | */.. )
4673                 # Better ignore directories of this form. They are misleading.
4674                 ;;
4675               *) searchdir=`cd "$searchdir" && pwd`
4676                  case "$searchdir" in
4677                    */lib64 ) acl_libdirstem=lib64 ;;
4678                  esac ;;
4679             esac
4680           fi
4681         done
4682         IFS="$acl_save_IFS"
4683       fi
4684       ;;
4685   esac
4686   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699     use_additional=yes
4700
4701   acl_save_prefix="$prefix"
4702   prefix="$acl_final_prefix"
4703   acl_save_exec_prefix="$exec_prefix"
4704   exec_prefix="$acl_final_exec_prefix"
4705
4706     eval additional_includedir=\"$includedir\"
4707     eval additional_libdir=\"$libdir\"
4708
4709   exec_prefix="$acl_save_exec_prefix"
4710   prefix="$acl_save_prefix"
4711
4712
4713 # Check whether --with-libiconv-prefix was given.
4714 if test "${with_libiconv_prefix+set}" = set; then :
4715   withval=$with_libiconv_prefix;
4716     if test "X$withval" = "Xno"; then
4717       use_additional=no
4718     else
4719       if test "X$withval" = "X"; then
4720
4721   acl_save_prefix="$prefix"
4722   prefix="$acl_final_prefix"
4723   acl_save_exec_prefix="$exec_prefix"
4724   exec_prefix="$acl_final_exec_prefix"
4725
4726           eval additional_includedir=\"$includedir\"
4727           eval additional_libdir=\"$libdir\"
4728
4729   exec_prefix="$acl_save_exec_prefix"
4730   prefix="$acl_save_prefix"
4731
4732       else
4733         additional_includedir="$withval/include"
4734         additional_libdir="$withval/$acl_libdirstem"
4735         if test "$acl_libdirstem2" != "$acl_libdirstem" \
4736            && ! test -d "$withval/$acl_libdirstem"; then
4737           additional_libdir="$withval/$acl_libdirstem2"
4738         fi
4739       fi
4740     fi
4741
4742 fi
4743
4744       LIBICONV=
4745   LTLIBICONV=
4746   INCICONV=
4747   LIBICONV_PREFIX=
4748       HAVE_LIBICONV=
4749   rpathdirs=
4750   ltrpathdirs=
4751   names_already_handled=
4752   names_next_round='iconv '
4753   while test -n "$names_next_round"; do
4754     names_this_round="$names_next_round"
4755     names_next_round=
4756     for name in $names_this_round; do
4757       already_handled=
4758       for n in $names_already_handled; do
4759         if test "$n" = "$name"; then
4760           already_handled=yes
4761           break
4762         fi
4763       done
4764       if test -z "$already_handled"; then
4765         names_already_handled="$names_already_handled $name"
4766                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4767         eval value=\"\$HAVE_LIB$uppername\"
4768         if test -n "$value"; then
4769           if test "$value" = yes; then
4770             eval value=\"\$LIB$uppername\"
4771             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4772             eval value=\"\$LTLIB$uppername\"
4773             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4774           else
4775                                     :
4776           fi
4777         else
4778                               found_dir=
4779           found_la=
4780           found_so=
4781           found_a=
4782           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
4783           if test -n "$acl_shlibext"; then
4784             shrext=".$acl_shlibext"             # typically: shrext=.so
4785           else
4786             shrext=
4787           fi
4788           if test $use_additional = yes; then
4789             dir="$additional_libdir"
4790                                     if test -n "$acl_shlibext"; then
4791               if test -f "$dir/$libname$shrext"; then
4792                 found_dir="$dir"
4793                 found_so="$dir/$libname$shrext"
4794               else
4795                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4796                   ver=`(cd "$dir" && \
4797                         for f in "$libname$shrext".*; do echo "$f"; done \
4798                         | sed -e "s,^$libname$shrext\\\\.,," \
4799                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4800                         | sed 1q ) 2>/dev/null`
4801                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4802                     found_dir="$dir"
4803                     found_so="$dir/$libname$shrext.$ver"
4804                   fi
4805                 else
4806                   eval library_names=\"$acl_library_names_spec\"
4807                   for f in $library_names; do
4808                     if test -f "$dir/$f"; then
4809                       found_dir="$dir"
4810                       found_so="$dir/$f"
4811                       break
4812                     fi
4813                   done
4814                 fi
4815               fi
4816             fi
4817                         if test "X$found_dir" = "X"; then
4818               if test -f "$dir/$libname.$acl_libext"; then
4819                 found_dir="$dir"
4820                 found_a="$dir/$libname.$acl_libext"
4821               fi
4822             fi
4823             if test "X$found_dir" != "X"; then
4824               if test -f "$dir/$libname.la"; then
4825                 found_la="$dir/$libname.la"
4826               fi
4827             fi
4828           fi
4829           if test "X$found_dir" = "X"; then
4830             for x in $LDFLAGS $LTLIBICONV; do
4831
4832   acl_save_prefix="$prefix"
4833   prefix="$acl_final_prefix"
4834   acl_save_exec_prefix="$exec_prefix"
4835   exec_prefix="$acl_final_exec_prefix"
4836   eval x=\"$x\"
4837   exec_prefix="$acl_save_exec_prefix"
4838   prefix="$acl_save_prefix"
4839
4840               case "$x" in
4841                 -L*)
4842                   dir=`echo "X$x" | sed -e 's/^X-L//'`
4843                                     if test -n "$acl_shlibext"; then
4844                     if test -f "$dir/$libname$shrext"; then
4845                       found_dir="$dir"
4846                       found_so="$dir/$libname$shrext"
4847                     else
4848                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4849                         ver=`(cd "$dir" && \
4850                               for f in "$libname$shrext".*; do echo "$f"; done \
4851                               | sed -e "s,^$libname$shrext\\\\.,," \
4852                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4853                               | sed 1q ) 2>/dev/null`
4854                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4855                           found_dir="$dir"
4856                           found_so="$dir/$libname$shrext.$ver"
4857                         fi
4858                       else
4859                         eval library_names=\"$acl_library_names_spec\"
4860                         for f in $library_names; do
4861                           if test -f "$dir/$f"; then
4862                             found_dir="$dir"
4863                             found_so="$dir/$f"
4864                             break
4865                           fi
4866                         done
4867                       fi
4868                     fi
4869                   fi
4870                                     if test "X$found_dir" = "X"; then
4871                     if test -f "$dir/$libname.$acl_libext"; then
4872                       found_dir="$dir"
4873                       found_a="$dir/$libname.$acl_libext"
4874                     fi
4875                   fi
4876                   if test "X$found_dir" != "X"; then
4877                     if test -f "$dir/$libname.la"; then
4878                       found_la="$dir/$libname.la"
4879                     fi
4880                   fi
4881                   ;;
4882               esac
4883               if test "X$found_dir" != "X"; then
4884                 break
4885               fi
4886             done
4887           fi
4888           if test "X$found_dir" != "X"; then
4889                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4890             if test "X$found_so" != "X"; then
4891                                                         if test "$enable_rpath" = no \
4892                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
4893                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
4894                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4895               else
4896                                                                                 haveit=
4897                 for x in $ltrpathdirs; do
4898                   if test "X$x" = "X$found_dir"; then
4899                     haveit=yes
4900                     break
4901                   fi
4902                 done
4903                 if test -z "$haveit"; then
4904                   ltrpathdirs="$ltrpathdirs $found_dir"
4905                 fi
4906                                 if test "$acl_hardcode_direct" = yes; then
4907                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4908                 else
4909                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4910                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4911                                                             haveit=
4912                     for x in $rpathdirs; do
4913                       if test "X$x" = "X$found_dir"; then
4914                         haveit=yes
4915                         break
4916                       fi
4917                     done
4918                     if test -z "$haveit"; then
4919                       rpathdirs="$rpathdirs $found_dir"
4920                     fi
4921                   else
4922                                                                                 haveit=
4923                     for x in $LDFLAGS $LIBICONV; do
4924
4925   acl_save_prefix="$prefix"
4926   prefix="$acl_final_prefix"
4927   acl_save_exec_prefix="$exec_prefix"
4928   exec_prefix="$acl_final_exec_prefix"
4929   eval x=\"$x\"
4930   exec_prefix="$acl_save_exec_prefix"
4931   prefix="$acl_save_prefix"
4932
4933                       if test "X$x" = "X-L$found_dir"; then
4934                         haveit=yes
4935                         break
4936                       fi
4937                     done
4938                     if test -z "$haveit"; then
4939                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4940                     fi
4941                     if test "$acl_hardcode_minus_L" != no; then
4942                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4943                     else
4944                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4945                     fi
4946                   fi
4947                 fi
4948               fi
4949             else
4950               if test "X$found_a" != "X"; then
4951                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4952               else
4953                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4954               fi
4955             fi
4956                         additional_includedir=
4957             case "$found_dir" in
4958               */$acl_libdirstem | */$acl_libdirstem/)
4959                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4960                 if test "$name" = 'iconv'; then
4961                   LIBICONV_PREFIX="$basedir"
4962                 fi
4963                 additional_includedir="$basedir/include"
4964                 ;;
4965               */$acl_libdirstem2 | */$acl_libdirstem2/)
4966                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
4967                 if test "$name" = 'iconv'; then
4968                   LIBICONV_PREFIX="$basedir"
4969                 fi
4970                 additional_includedir="$basedir/include"
4971                 ;;
4972             esac
4973             if test "X$additional_includedir" != "X"; then
4974                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
4975                 haveit=
4976                 if test "X$additional_includedir" = "X/usr/local/include"; then
4977                   if test -n "$GCC"; then
4978                     case $host_os in
4979                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4980                     esac
4981                   fi
4982                 fi
4983                 if test -z "$haveit"; then
4984                   for x in $CPPFLAGS $INCICONV; do
4985
4986   acl_save_prefix="$prefix"
4987   prefix="$acl_final_prefix"
4988   acl_save_exec_prefix="$exec_prefix"
4989   exec_prefix="$acl_final_exec_prefix"
4990   eval x=\"$x\"
4991   exec_prefix="$acl_save_exec_prefix"
4992   prefix="$acl_save_prefix"
4993
4994                     if test "X$x" = "X-I$additional_includedir"; then
4995                       haveit=yes
4996                       break
4997                     fi
4998                   done
4999                   if test -z "$haveit"; then
5000                     if test -d "$additional_includedir"; then
5001                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5002                     fi
5003                   fi
5004                 fi
5005               fi
5006             fi
5007                         if test -n "$found_la"; then
5008                                                         save_libdir="$libdir"
5009               case "$found_la" in
5010                 */* | *\\*) . "$found_la" ;;
5011                 *) . "./$found_la" ;;
5012               esac
5013               libdir="$save_libdir"
5014                             for dep in $dependency_libs; do
5015                 case "$dep" in
5016                   -L*)
5017                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5018                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5019                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5020                       haveit=
5021                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5022                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5023                         if test -n "$GCC"; then
5024                           case $host_os in
5025                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5026                           esac
5027                         fi
5028                       fi
5029                       if test -z "$haveit"; then
5030                         haveit=
5031                         for x in $LDFLAGS $LIBICONV; do
5032
5033   acl_save_prefix="$prefix"
5034   prefix="$acl_final_prefix"
5035   acl_save_exec_prefix="$exec_prefix"
5036   exec_prefix="$acl_final_exec_prefix"
5037   eval x=\"$x\"
5038   exec_prefix="$acl_save_exec_prefix"
5039   prefix="$acl_save_prefix"
5040
5041                           if test "X$x" = "X-L$additional_libdir"; then
5042                             haveit=yes
5043                             break
5044                           fi
5045                         done
5046                         if test -z "$haveit"; then
5047                           if test -d "$additional_libdir"; then
5048                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5049                           fi
5050                         fi
5051                         haveit=
5052                         for x in $LDFLAGS $LTLIBICONV; do
5053
5054   acl_save_prefix="$prefix"
5055   prefix="$acl_final_prefix"
5056   acl_save_exec_prefix="$exec_prefix"
5057   exec_prefix="$acl_final_exec_prefix"
5058   eval x=\"$x\"
5059   exec_prefix="$acl_save_exec_prefix"
5060   prefix="$acl_save_prefix"
5061
5062                           if test "X$x" = "X-L$additional_libdir"; then
5063                             haveit=yes
5064                             break
5065                           fi
5066                         done
5067                         if test -z "$haveit"; then
5068                           if test -d "$additional_libdir"; then
5069                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5070                           fi
5071                         fi
5072                       fi
5073                     fi
5074                     ;;
5075                   -R*)
5076                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5077                     if test "$enable_rpath" != no; then
5078                                                                   haveit=
5079                       for x in $rpathdirs; do
5080                         if test "X$x" = "X$dir"; then
5081                           haveit=yes
5082                           break
5083                         fi
5084                       done
5085                       if test -z "$haveit"; then
5086                         rpathdirs="$rpathdirs $dir"
5087                       fi
5088                                                                   haveit=
5089                       for x in $ltrpathdirs; do
5090                         if test "X$x" = "X$dir"; then
5091                           haveit=yes
5092                           break
5093                         fi
5094                       done
5095                       if test -z "$haveit"; then
5096                         ltrpathdirs="$ltrpathdirs $dir"
5097                       fi
5098                     fi
5099                     ;;
5100                   -l*)
5101                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5102                     ;;
5103                   *.la)
5104                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5105                     ;;
5106                   *)
5107                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5108                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5109                     ;;
5110                 esac
5111               done
5112             fi
5113           else
5114                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5115             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5116           fi
5117         fi
5118       fi
5119     done
5120   done
5121   if test "X$rpathdirs" != "X"; then
5122     if test -n "$acl_hardcode_libdir_separator"; then
5123                         alldirs=
5124       for found_dir in $rpathdirs; do
5125         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5126       done
5127             acl_save_libdir="$libdir"
5128       libdir="$alldirs"
5129       eval flag=\"$acl_hardcode_libdir_flag_spec\"
5130       libdir="$acl_save_libdir"
5131       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5132     else
5133             for found_dir in $rpathdirs; do
5134         acl_save_libdir="$libdir"
5135         libdir="$found_dir"
5136         eval flag=\"$acl_hardcode_libdir_flag_spec\"
5137         libdir="$acl_save_libdir"
5138         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5139       done
5140     fi
5141   fi
5142   if test "X$ltrpathdirs" != "X"; then
5143             for found_dir in $ltrpathdirs; do
5144       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5145     done
5146   fi
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5179 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5180 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   gt_save_LIBS="$LIBS"
5184      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5185      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h.  */
5187 #include <CoreFoundation/CFPreferences.h>
5188 int
5189 main ()
5190 {
5191 CFPreferencesCopyAppValue(NULL, NULL)
5192   ;
5193   return 0;
5194 }
5195 _ACEOF
5196 if ac_fn_c_try_link "$LINENO"; then :
5197   gt_cv_func_CFPreferencesCopyAppValue=yes
5198 else
5199   gt_cv_func_CFPreferencesCopyAppValue=no
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext \
5202     conftest$ac_exeext conftest.$ac_ext
5203      LIBS="$gt_save_LIBS"
5204 fi
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5206 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5207   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5208
5209 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5210
5211   fi
5212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5213 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5214 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217   gt_save_LIBS="$LIBS"
5218      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5219      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h.  */
5221 #include <CoreFoundation/CFLocale.h>
5222 int
5223 main ()
5224 {
5225 CFLocaleCopyCurrent();
5226   ;
5227   return 0;
5228 }
5229 _ACEOF
5230 if ac_fn_c_try_link "$LINENO"; then :
5231   gt_cv_func_CFLocaleCopyCurrent=yes
5232 else
5233   gt_cv_func_CFLocaleCopyCurrent=no
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext \
5236     conftest$ac_exeext conftest.$ac_ext
5237      LIBS="$gt_save_LIBS"
5238 fi
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5240 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5241   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5242
5243 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5244
5245   fi
5246   INTL_MACOSX_LIBS=
5247   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5248     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5249   fi
5250
5251
5252
5253
5254
5255
5256   LIBINTL=
5257   LTLIBINTL=
5258   POSUB=
5259
5260     case " $gt_needs " in
5261     *" need-formatstring-macros "*) gt_api_version=3 ;;
5262     *" need-ngettext "*) gt_api_version=2 ;;
5263     *) gt_api_version=1 ;;
5264   esac
5265   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5266   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5267
5268     if test "$USE_NLS" = "yes"; then
5269     gt_use_preinstalled_gnugettext=no
5270
5271
5272         if test $gt_api_version -ge 3; then
5273           gt_revision_test_code='
5274 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5275 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5276 #endif
5277 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5278 '
5279         else
5280           gt_revision_test_code=
5281         fi
5282         if test $gt_api_version -ge 2; then
5283           gt_expression_test_code=' + * ngettext ("", "", 0)'
5284         else
5285           gt_expression_test_code=
5286         fi
5287
5288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5289 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5290 if eval \${$gt_func_gnugettext_libc+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h.  */
5295 #include <libintl.h>
5296 $gt_revision_test_code
5297 extern int _nl_msg_cat_cntr;
5298 extern int *_nl_domain_bindings;
5299 int
5300 main ()
5301 {
5302 bindtextdomain ("", "");
5303 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 if ac_fn_c_try_link "$LINENO"; then :
5309   eval "$gt_func_gnugettext_libc=yes"
5310 else
5311   eval "$gt_func_gnugettext_libc=no"
5312 fi
5313 rm -f core conftest.err conftest.$ac_objext \
5314     conftest$ac_exeext conftest.$ac_ext
5315 fi
5316 eval ac_res=\$$gt_func_gnugettext_libc
5317                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5318 $as_echo "$ac_res" >&6; }
5319
5320         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5321
5322
5323
5324
5325
5326           am_save_CPPFLAGS="$CPPFLAGS"
5327
5328   for element in $INCICONV; do
5329     haveit=
5330     for x in $CPPFLAGS; do
5331
5332   acl_save_prefix="$prefix"
5333   prefix="$acl_final_prefix"
5334   acl_save_exec_prefix="$exec_prefix"
5335   exec_prefix="$acl_final_exec_prefix"
5336   eval x=\"$x\"
5337   exec_prefix="$acl_save_exec_prefix"
5338   prefix="$acl_save_prefix"
5339
5340       if test "X$x" = "X$element"; then
5341         haveit=yes
5342         break
5343       fi
5344     done
5345     if test -z "$haveit"; then
5346       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5347     fi
5348   done
5349
5350
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5352 $as_echo_n "checking for iconv... " >&6; }
5353 if ${am_cv_func_iconv+:} false; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356
5357     am_cv_func_iconv="no, consider installing GNU libiconv"
5358     am_cv_lib_iconv=no
5359     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h.  */
5361 #include <stdlib.h>
5362 #include <iconv.h>
5363 int
5364 main ()
5365 {
5366 iconv_t cd = iconv_open("","");
5367        iconv(cd,NULL,NULL,NULL,NULL);
5368        iconv_close(cd);
5369   ;
5370   return 0;
5371 }
5372 _ACEOF
5373 if ac_fn_c_try_link "$LINENO"; then :
5374   am_cv_func_iconv=yes
5375 fi
5376 rm -f core conftest.err conftest.$ac_objext \
5377     conftest$ac_exeext conftest.$ac_ext
5378     if test "$am_cv_func_iconv" != yes; then
5379       am_save_LIBS="$LIBS"
5380       LIBS="$LIBS $LIBICONV"
5381       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h.  */
5383 #include <stdlib.h>
5384 #include <iconv.h>
5385 int
5386 main ()
5387 {
5388 iconv_t cd = iconv_open("","");
5389          iconv(cd,NULL,NULL,NULL,NULL);
5390          iconv_close(cd);
5391   ;
5392   return 0;
5393 }
5394 _ACEOF
5395 if ac_fn_c_try_link "$LINENO"; then :
5396   am_cv_lib_iconv=yes
5397         am_cv_func_iconv=yes
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext \
5400     conftest$ac_exeext conftest.$ac_ext
5401       LIBS="$am_save_LIBS"
5402     fi
5403
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5406 $as_echo "$am_cv_func_iconv" >&6; }
5407   if test "$am_cv_func_iconv" = yes; then
5408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5409 $as_echo_n "checking for working iconv... " >&6; }
5410 if ${am_cv_func_iconv_works+:} false; then :
5411   $as_echo_n "(cached) " >&6
5412 else
5413
5414             am_save_LIBS="$LIBS"
5415       if test $am_cv_lib_iconv = yes; then
5416         LIBS="$LIBS $LIBICONV"
5417       fi
5418       if test "$cross_compiling" = yes; then :
5419   case "$host_os" in
5420            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5421            *)            am_cv_func_iconv_works="guessing yes" ;;
5422          esac
5423 else
5424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h.  */
5426
5427 #include <iconv.h>
5428 #include <string.h>
5429 int main ()
5430 {
5431   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5432      returns.  */
5433   {
5434     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5435     if (cd_utf8_to_88591 != (iconv_t)(-1))
5436       {
5437         static const char input[] = "\342\202\254"; /* EURO SIGN */
5438         char buf[10];
5439         const char *inptr = input;
5440         size_t inbytesleft = strlen (input);
5441         char *outptr = buf;
5442         size_t outbytesleft = sizeof (buf);
5443         size_t res = iconv (cd_utf8_to_88591,
5444                             (char **) &inptr, &inbytesleft,
5445                             &outptr, &outbytesleft);
5446         if (res == 0)
5447           return 1;
5448       }
5449   }
5450   /* Test against Solaris 10 bug: Failures are not distinguishable from
5451      successful returns.  */
5452   {
5453     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5454     if (cd_ascii_to_88591 != (iconv_t)(-1))
5455       {
5456         static const char input[] = "\263";
5457         char buf[10];
5458         const char *inptr = input;
5459         size_t inbytesleft = strlen (input);
5460         char *outptr = buf;
5461         size_t outbytesleft = sizeof (buf);
5462         size_t res = iconv (cd_ascii_to_88591,
5463                             (char **) &inptr, &inbytesleft,
5464                             &outptr, &outbytesleft);
5465         if (res == 0)
5466           return 1;
5467       }
5468   }
5469 #if 0 /* This bug could be worked around by the caller.  */
5470   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
5471   {
5472     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5473     if (cd_88591_to_utf8 != (iconv_t)(-1))
5474       {
5475         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5476         char buf[50];
5477         const char *inptr = input;
5478         size_t inbytesleft = strlen (input);
5479         char *outptr = buf;
5480         size_t outbytesleft = sizeof (buf);
5481         size_t res = iconv (cd_88591_to_utf8,
5482                             (char **) &inptr, &inbytesleft,
5483                             &outptr, &outbytesleft);
5484         if ((int)res > 0)
5485           return 1;
5486       }
5487   }
5488 #endif
5489   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5490      provided.  */
5491   if (/* Try standardized names.  */
5492       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5493       /* Try IRIX, OSF/1 names.  */
5494       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5495       /* Try AIX names.  */
5496       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5497       /* Try HP-UX names.  */
5498       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5499     return 1;
5500   return 0;
5501 }
5502 _ACEOF
5503 if ac_fn_c_try_run "$LINENO"; then :
5504   am_cv_func_iconv_works=yes
5505 else
5506   am_cv_func_iconv_works=no
5507 fi
5508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5509   conftest.$ac_objext conftest.beam conftest.$ac_ext
5510 fi
5511
5512       LIBS="$am_save_LIBS"
5513
5514 fi
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5516 $as_echo "$am_cv_func_iconv_works" >&6; }
5517     case "$am_cv_func_iconv_works" in
5518       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5519       *)   am_func_iconv=yes ;;
5520     esac
5521   else
5522     am_func_iconv=no am_cv_lib_iconv=no
5523   fi
5524   if test "$am_func_iconv" = yes; then
5525
5526 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5527
5528   fi
5529   if test "$am_cv_lib_iconv" = yes; then
5530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5531 $as_echo_n "checking how to link with libiconv... " >&6; }
5532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5533 $as_echo "$LIBICONV" >&6; }
5534   else
5535             CPPFLAGS="$am_save_CPPFLAGS"
5536     LIBICONV=
5537     LTLIBICONV=
5538   fi
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550     use_additional=yes
5551
5552   acl_save_prefix="$prefix"
5553   prefix="$acl_final_prefix"
5554   acl_save_exec_prefix="$exec_prefix"
5555   exec_prefix="$acl_final_exec_prefix"
5556
5557     eval additional_includedir=\"$includedir\"
5558     eval additional_libdir=\"$libdir\"
5559
5560   exec_prefix="$acl_save_exec_prefix"
5561   prefix="$acl_save_prefix"
5562
5563
5564 # Check whether --with-libintl-prefix was given.
5565 if test "${with_libintl_prefix+set}" = set; then :
5566   withval=$with_libintl_prefix;
5567     if test "X$withval" = "Xno"; then
5568       use_additional=no
5569     else
5570       if test "X$withval" = "X"; then
5571
5572   acl_save_prefix="$prefix"
5573   prefix="$acl_final_prefix"
5574   acl_save_exec_prefix="$exec_prefix"
5575   exec_prefix="$acl_final_exec_prefix"
5576
5577           eval additional_includedir=\"$includedir\"
5578           eval additional_libdir=\"$libdir\"
5579
5580   exec_prefix="$acl_save_exec_prefix"
5581   prefix="$acl_save_prefix"
5582
5583       else
5584         additional_includedir="$withval/include"
5585         additional_libdir="$withval/$acl_libdirstem"
5586         if test "$acl_libdirstem2" != "$acl_libdirstem" \
5587            && ! test -d "$withval/$acl_libdirstem"; then
5588           additional_libdir="$withval/$acl_libdirstem2"
5589         fi
5590       fi
5591     fi
5592
5593 fi
5594
5595       LIBINTL=
5596   LTLIBINTL=
5597   INCINTL=
5598   LIBINTL_PREFIX=
5599       HAVE_LIBINTL=
5600   rpathdirs=
5601   ltrpathdirs=
5602   names_already_handled=
5603   names_next_round='intl '
5604   while test -n "$names_next_round"; do
5605     names_this_round="$names_next_round"
5606     names_next_round=
5607     for name in $names_this_round; do
5608       already_handled=
5609       for n in $names_already_handled; do
5610         if test "$n" = "$name"; then
5611           already_handled=yes
5612           break
5613         fi
5614       done
5615       if test -z "$already_handled"; then
5616         names_already_handled="$names_already_handled $name"
5617                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5618         eval value=\"\$HAVE_LIB$uppername\"
5619         if test -n "$value"; then
5620           if test "$value" = yes; then
5621             eval value=\"\$LIB$uppername\"
5622             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5623             eval value=\"\$LTLIB$uppername\"
5624             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5625           else
5626                                     :
5627           fi
5628         else
5629                               found_dir=
5630           found_la=
5631           found_so=
5632           found_a=
5633           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5634           if test -n "$acl_shlibext"; then
5635             shrext=".$acl_shlibext"             # typically: shrext=.so
5636           else
5637             shrext=
5638           fi
5639           if test $use_additional = yes; then
5640             dir="$additional_libdir"
5641                                     if test -n "$acl_shlibext"; then
5642               if test -f "$dir/$libname$shrext"; then
5643                 found_dir="$dir"
5644                 found_so="$dir/$libname$shrext"
5645               else
5646                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5647                   ver=`(cd "$dir" && \
5648                         for f in "$libname$shrext".*; do echo "$f"; done \
5649                         | sed -e "s,^$libname$shrext\\\\.,," \
5650                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5651                         | sed 1q ) 2>/dev/null`
5652                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5653                     found_dir="$dir"
5654                     found_so="$dir/$libname$shrext.$ver"
5655                   fi
5656                 else
5657                   eval library_names=\"$acl_library_names_spec\"
5658                   for f in $library_names; do
5659                     if test -f "$dir/$f"; then
5660                       found_dir="$dir"
5661                       found_so="$dir/$f"
5662                       break
5663                     fi
5664                   done
5665                 fi
5666               fi
5667             fi
5668                         if test "X$found_dir" = "X"; then
5669               if test -f "$dir/$libname.$acl_libext"; then
5670                 found_dir="$dir"
5671                 found_a="$dir/$libname.$acl_libext"
5672               fi
5673             fi
5674             if test "X$found_dir" != "X"; then
5675               if test -f "$dir/$libname.la"; then
5676                 found_la="$dir/$libname.la"
5677               fi
5678             fi
5679           fi
5680           if test "X$found_dir" = "X"; then
5681             for x in $LDFLAGS $LTLIBINTL; do
5682
5683   acl_save_prefix="$prefix"
5684   prefix="$acl_final_prefix"
5685   acl_save_exec_prefix="$exec_prefix"
5686   exec_prefix="$acl_final_exec_prefix"
5687   eval x=\"$x\"
5688   exec_prefix="$acl_save_exec_prefix"
5689   prefix="$acl_save_prefix"
5690
5691               case "$x" in
5692                 -L*)
5693                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5694                                     if test -n "$acl_shlibext"; then
5695                     if test -f "$dir/$libname$shrext"; then
5696                       found_dir="$dir"
5697                       found_so="$dir/$libname$shrext"
5698                     else
5699                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5700                         ver=`(cd "$dir" && \
5701                               for f in "$libname$shrext".*; do echo "$f"; done \
5702                               | sed -e "s,^$libname$shrext\\\\.,," \
5703                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5704                               | sed 1q ) 2>/dev/null`
5705                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5706                           found_dir="$dir"
5707                           found_so="$dir/$libname$shrext.$ver"
5708                         fi
5709                       else
5710                         eval library_names=\"$acl_library_names_spec\"
5711                         for f in $library_names; do
5712                           if test -f "$dir/$f"; then
5713                             found_dir="$dir"
5714                             found_so="$dir/$f"
5715                             break
5716                           fi
5717                         done
5718                       fi
5719                     fi
5720                   fi
5721                                     if test "X$found_dir" = "X"; then
5722                     if test -f "$dir/$libname.$acl_libext"; then
5723                       found_dir="$dir"
5724                       found_a="$dir/$libname.$acl_libext"
5725                     fi
5726                   fi
5727                   if test "X$found_dir" != "X"; then
5728                     if test -f "$dir/$libname.la"; then
5729                       found_la="$dir/$libname.la"
5730                     fi
5731                   fi
5732                   ;;
5733               esac
5734               if test "X$found_dir" != "X"; then
5735                 break
5736               fi
5737             done
5738           fi
5739           if test "X$found_dir" != "X"; then
5740                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5741             if test "X$found_so" != "X"; then
5742                                                         if test "$enable_rpath" = no \
5743                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5744                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5745                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5746               else
5747                                                                                 haveit=
5748                 for x in $ltrpathdirs; do
5749                   if test "X$x" = "X$found_dir"; then
5750                     haveit=yes
5751                     break
5752                   fi
5753                 done
5754                 if test -z "$haveit"; then
5755                   ltrpathdirs="$ltrpathdirs $found_dir"
5756                 fi
5757                                 if test "$acl_hardcode_direct" = yes; then
5758                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5759                 else
5760                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5761                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5762                                                             haveit=
5763                     for x in $rpathdirs; do
5764                       if test "X$x" = "X$found_dir"; then
5765                         haveit=yes
5766                         break
5767                       fi
5768                     done
5769                     if test -z "$haveit"; then
5770                       rpathdirs="$rpathdirs $found_dir"
5771                     fi
5772                   else
5773                                                                                 haveit=
5774                     for x in $LDFLAGS $LIBINTL; do
5775
5776   acl_save_prefix="$prefix"
5777   prefix="$acl_final_prefix"
5778   acl_save_exec_prefix="$exec_prefix"
5779   exec_prefix="$acl_final_exec_prefix"
5780   eval x=\"$x\"
5781   exec_prefix="$acl_save_exec_prefix"
5782   prefix="$acl_save_prefix"
5783
5784                       if test "X$x" = "X-L$found_dir"; then
5785                         haveit=yes
5786                         break
5787                       fi
5788                     done
5789                     if test -z "$haveit"; then
5790                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5791                     fi
5792                     if test "$acl_hardcode_minus_L" != no; then
5793                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5794                     else
5795                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5796                     fi
5797                   fi
5798                 fi
5799               fi
5800             else
5801               if test "X$found_a" != "X"; then
5802                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5803               else
5804                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5805               fi
5806             fi
5807                         additional_includedir=
5808             case "$found_dir" in
5809               */$acl_libdirstem | */$acl_libdirstem/)
5810                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5811                 if test "$name" = 'intl'; then
5812                   LIBINTL_PREFIX="$basedir"
5813                 fi
5814                 additional_includedir="$basedir/include"
5815                 ;;
5816               */$acl_libdirstem2 | */$acl_libdirstem2/)
5817                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5818                 if test "$name" = 'intl'; then
5819                   LIBINTL_PREFIX="$basedir"
5820                 fi
5821                 additional_includedir="$basedir/include"
5822                 ;;
5823             esac
5824             if test "X$additional_includedir" != "X"; then
5825                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5826                 haveit=
5827                 if test "X$additional_includedir" = "X/usr/local/include"; then
5828                   if test -n "$GCC"; then
5829                     case $host_os in
5830                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5831                     esac
5832                   fi
5833                 fi
5834                 if test -z "$haveit"; then
5835                   for x in $CPPFLAGS $INCINTL; do
5836
5837   acl_save_prefix="$prefix"
5838   prefix="$acl_final_prefix"
5839   acl_save_exec_prefix="$exec_prefix"
5840   exec_prefix="$acl_final_exec_prefix"
5841   eval x=\"$x\"
5842   exec_prefix="$acl_save_exec_prefix"
5843   prefix="$acl_save_prefix"
5844
5845                     if test "X$x" = "X-I$additional_includedir"; then
5846                       haveit=yes
5847                       break
5848                     fi
5849                   done
5850                   if test -z "$haveit"; then
5851                     if test -d "$additional_includedir"; then
5852                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5853                     fi
5854                   fi
5855                 fi
5856               fi
5857             fi
5858                         if test -n "$found_la"; then
5859                                                         save_libdir="$libdir"
5860               case "$found_la" in
5861                 */* | *\\*) . "$found_la" ;;
5862                 *) . "./$found_la" ;;
5863               esac
5864               libdir="$save_libdir"
5865                             for dep in $dependency_libs; do
5866                 case "$dep" in
5867                   -L*)
5868                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5869                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5870                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5871                       haveit=
5872                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5873                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5874                         if test -n "$GCC"; then
5875                           case $host_os in
5876                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5877                           esac
5878                         fi
5879                       fi
5880                       if test -z "$haveit"; then
5881                         haveit=
5882                         for x in $LDFLAGS $LIBINTL; do
5883
5884   acl_save_prefix="$prefix"
5885   prefix="$acl_final_prefix"
5886   acl_save_exec_prefix="$exec_prefix"
5887   exec_prefix="$acl_final_exec_prefix"
5888   eval x=\"$x\"
5889   exec_prefix="$acl_save_exec_prefix"
5890   prefix="$acl_save_prefix"
5891
5892                           if test "X$x" = "X-L$additional_libdir"; then
5893                             haveit=yes
5894                             break
5895                           fi
5896                         done
5897                         if test -z "$haveit"; then
5898                           if test -d "$additional_libdir"; then
5899                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5900                           fi
5901                         fi
5902                         haveit=
5903                         for x in $LDFLAGS $LTLIBINTL; do
5904
5905   acl_save_prefix="$prefix"
5906   prefix="$acl_final_prefix"
5907   acl_save_exec_prefix="$exec_prefix"
5908   exec_prefix="$acl_final_exec_prefix"
5909   eval x=\"$x\"
5910   exec_prefix="$acl_save_exec_prefix"
5911   prefix="$acl_save_prefix"
5912
5913                           if test "X$x" = "X-L$additional_libdir"; then
5914                             haveit=yes
5915                             break
5916                           fi
5917                         done
5918                         if test -z "$haveit"; then
5919                           if test -d "$additional_libdir"; then
5920                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5921                           fi
5922                         fi
5923                       fi
5924                     fi
5925                     ;;
5926                   -R*)
5927                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5928                     if test "$enable_rpath" != no; then
5929                                                                   haveit=
5930                       for x in $rpathdirs; do
5931                         if test "X$x" = "X$dir"; then
5932                           haveit=yes
5933                           break
5934                         fi
5935                       done
5936                       if test -z "$haveit"; then
5937                         rpathdirs="$rpathdirs $dir"
5938                       fi
5939                                                                   haveit=
5940                       for x in $ltrpathdirs; do
5941                         if test "X$x" = "X$dir"; then
5942                           haveit=yes
5943                           break
5944                         fi
5945                       done
5946                       if test -z "$haveit"; then
5947                         ltrpathdirs="$ltrpathdirs $dir"
5948                       fi
5949                     fi
5950                     ;;
5951                   -l*)
5952                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5953                     ;;
5954                   *.la)
5955                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5956                     ;;
5957                   *)
5958                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5959                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5960                     ;;
5961                 esac
5962               done
5963             fi
5964           else
5965                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5966             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5967           fi
5968         fi
5969       fi
5970     done
5971   done
5972   if test "X$rpathdirs" != "X"; then
5973     if test -n "$acl_hardcode_libdir_separator"; then
5974                         alldirs=
5975       for found_dir in $rpathdirs; do
5976         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5977       done
5978             acl_save_libdir="$libdir"
5979       libdir="$alldirs"
5980       eval flag=\"$acl_hardcode_libdir_flag_spec\"
5981       libdir="$acl_save_libdir"
5982       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5983     else
5984             for found_dir in $rpathdirs; do
5985         acl_save_libdir="$libdir"
5986         libdir="$found_dir"
5987         eval flag=\"$acl_hardcode_libdir_flag_spec\"
5988         libdir="$acl_save_libdir"
5989         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5990       done
5991     fi
5992   fi
5993   if test "X$ltrpathdirs" != "X"; then
5994             for found_dir in $ltrpathdirs; do
5995       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5996     done
5997   fi
5998
5999
6000
6001
6002
6003
6004           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6005 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6006 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6007   $as_echo_n "(cached) " >&6
6008 else
6009   gt_save_CPPFLAGS="$CPPFLAGS"
6010             CPPFLAGS="$CPPFLAGS $INCINTL"
6011             gt_save_LIBS="$LIBS"
6012             LIBS="$LIBS $LIBINTL"
6013                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h.  */
6015 #include <libintl.h>
6016 $gt_revision_test_code
6017 extern int _nl_msg_cat_cntr;
6018 extern
6019 #ifdef __cplusplus
6020 "C"
6021 #endif
6022 const char *_nl_expand_alias (const char *);
6023 int
6024 main ()
6025 {
6026 bindtextdomain ("", "");
6027 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6028   ;
6029   return 0;
6030 }
6031 _ACEOF
6032 if ac_fn_c_try_link "$LINENO"; then :
6033   eval "$gt_func_gnugettext_libintl=yes"
6034 else
6035   eval "$gt_func_gnugettext_libintl=no"
6036 fi
6037 rm -f core conftest.err conftest.$ac_objext \
6038     conftest$ac_exeext conftest.$ac_ext
6039                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6040               LIBS="$LIBS $LIBICONV"
6041               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h.  */
6043 #include <libintl.h>
6044 $gt_revision_test_code
6045 extern int _nl_msg_cat_cntr;
6046 extern
6047 #ifdef __cplusplus
6048 "C"
6049 #endif
6050 const char *_nl_expand_alias (const char *);
6051 int
6052 main ()
6053 {
6054 bindtextdomain ("", "");
6055 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6056   ;
6057   return 0;
6058 }
6059 _ACEOF
6060 if ac_fn_c_try_link "$LINENO"; then :
6061   LIBINTL="$LIBINTL $LIBICONV"
6062                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6063                 eval "$gt_func_gnugettext_libintl=yes"
6064
6065 fi
6066 rm -f core conftest.err conftest.$ac_objext \
6067     conftest$ac_exeext conftest.$ac_ext
6068             fi
6069             CPPFLAGS="$gt_save_CPPFLAGS"
6070             LIBS="$gt_save_LIBS"
6071 fi
6072 eval ac_res=\$$gt_func_gnugettext_libintl
6073                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6074 $as_echo "$ac_res" >&6; }
6075         fi
6076
6077                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6078            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6079                 && test "$PACKAGE" != gettext-runtime \
6080                 && test "$PACKAGE" != gettext-tools; }; then
6081           gt_use_preinstalled_gnugettext=yes
6082         else
6083                     LIBINTL=
6084           LTLIBINTL=
6085           INCINTL=
6086         fi
6087
6088
6089
6090     if test -n "$INTL_MACOSX_LIBS"; then
6091       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6092          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6093                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6094         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6095       fi
6096     fi
6097
6098     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6099        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6100
6101 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6102
6103     else
6104       USE_NLS=no
6105     fi
6106   fi
6107
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6109 $as_echo_n "checking whether to use NLS... " >&6; }
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6111 $as_echo "$USE_NLS" >&6; }
6112   if test "$USE_NLS" = "yes"; then
6113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6114 $as_echo_n "checking where the gettext function comes from... " >&6; }
6115     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6116       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6117         gt_source="external libintl"
6118       else
6119         gt_source="libc"
6120       fi
6121     else
6122       gt_source="included intl directory"
6123     fi
6124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6125 $as_echo "$gt_source" >&6; }
6126   fi
6127
6128   if test "$USE_NLS" = "yes"; then
6129
6130     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6131       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6132         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6133 $as_echo_n "checking how to link with libintl... " >&6; }
6134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6135 $as_echo "$LIBINTL" >&6; }
6136
6137   for element in $INCINTL; do
6138     haveit=
6139     for x in $CPPFLAGS; do
6140
6141   acl_save_prefix="$prefix"
6142   prefix="$acl_final_prefix"
6143   acl_save_exec_prefix="$exec_prefix"
6144   exec_prefix="$acl_final_exec_prefix"
6145   eval x=\"$x\"
6146   exec_prefix="$acl_save_exec_prefix"
6147   prefix="$acl_save_prefix"
6148
6149       if test "X$x" = "X$element"; then
6150         haveit=yes
6151         break
6152       fi
6153     done
6154     if test -z "$haveit"; then
6155       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6156     fi
6157   done
6158
6159       fi
6160
6161
6162 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6163
6164
6165 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6166
6167     fi
6168
6169         POSUB=po
6170   fi
6171
6172
6173
6174     INTLLIBS="$LIBINTL"
6175
6176
6177
6178
6179
6180
6181
6182 ############### common
6183
6184
6185
6186
6187
6188
6189
6190
6191 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6192         if test -n "$ac_tool_prefix"; then
6193   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6198   $as_echo_n "(cached) " >&6
6199 else
6200   case $PKG_CONFIG in
6201   [\\/]* | ?:[\\/]*)
6202   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6203   ;;
6204   *)
6205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208   IFS=$as_save_IFS
6209   test -z "$as_dir" && as_dir=.
6210     for ac_exec_ext in '' $ac_executable_extensions; do
6211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214     break 2
6215   fi
6216 done
6217   done
6218 IFS=$as_save_IFS
6219
6220   ;;
6221 esac
6222 fi
6223 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6224 if test -n "$PKG_CONFIG"; then
6225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6226 $as_echo "$PKG_CONFIG" >&6; }
6227 else
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6230 fi
6231
6232
6233 fi
6234 if test -z "$ac_cv_path_PKG_CONFIG"; then
6235   ac_pt_PKG_CONFIG=$PKG_CONFIG
6236   # Extract the first word of "pkg-config", so it can be a program name with args.
6237 set dummy pkg-config; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6241   $as_echo_n "(cached) " >&6
6242 else
6243   case $ac_pt_PKG_CONFIG in
6244   [\\/]* | ?:[\\/]*)
6245   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6246   ;;
6247   *)
6248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251   IFS=$as_save_IFS
6252   test -z "$as_dir" && as_dir=.
6253     for ac_exec_ext in '' $ac_executable_extensions; do
6254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257     break 2
6258   fi
6259 done
6260   done
6261 IFS=$as_save_IFS
6262
6263   ;;
6264 esac
6265 fi
6266 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6267 if test -n "$ac_pt_PKG_CONFIG"; then
6268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6269 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6270 else
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6273 fi
6274
6275   if test "x$ac_pt_PKG_CONFIG" = x; then
6276     PKG_CONFIG=""
6277   else
6278     case $cross_compiling:$ac_tool_warned in
6279 yes:)
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282 ac_tool_warned=yes ;;
6283 esac
6284     PKG_CONFIG=$ac_pt_PKG_CONFIG
6285   fi
6286 else
6287   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6288 fi
6289
6290 fi
6291 if test -n "$PKG_CONFIG"; then
6292         _pkg_min_version=0.9.0
6293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6294 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6295         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6296                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6297 $as_echo "yes" >&6; }
6298         else
6299                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301                 PKG_CONFIG=""
6302         fi
6303 fi
6304
6305 pkg_failed=no
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
6307 $as_echo_n "checking for X11... " >&6; }
6308
6309 if test -n "$X11_CFLAGS"; then
6310     pkg_cv_X11_CFLAGS="$X11_CFLAGS"
6311  elif test -n "$PKG_CONFIG"; then
6312     if test -n "$PKG_CONFIG" && \
6313     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6314   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6315   ac_status=$?
6316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317   test $ac_status = 0; }; then
6318   pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
6319                       test "x$?" != "x0" && pkg_failed=yes
6320 else
6321   pkg_failed=yes
6322 fi
6323  else
6324     pkg_failed=untried
6325 fi
6326 if test -n "$X11_LIBS"; then
6327     pkg_cv_X11_LIBS="$X11_LIBS"
6328  elif test -n "$PKG_CONFIG"; then
6329     if test -n "$PKG_CONFIG" && \
6330     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6331   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6332   ac_status=$?
6333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6334   test $ac_status = 0; }; then
6335   pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
6336                       test "x$?" != "x0" && pkg_failed=yes
6337 else
6338   pkg_failed=yes
6339 fi
6340  else
6341     pkg_failed=untried
6342 fi
6343
6344
6345
6346 if test $pkg_failed = yes; then
6347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6349
6350 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6351         _pkg_short_errors_supported=yes
6352 else
6353         _pkg_short_errors_supported=no
6354 fi
6355         if test $_pkg_short_errors_supported = yes; then
6356                 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
6357         else
6358                 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
6359         fi
6360         # Put the nasty error message in config.log where it belongs
6361         echo "$X11_PKG_ERRORS" >&5
6362
6363         as_fn_error $? "Package requirements (x11) were not met:
6364
6365 $X11_PKG_ERRORS
6366
6367 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6368 installed software in a non-standard prefix.
6369
6370 Alternatively, you may set the environment variables X11_CFLAGS
6371 and X11_LIBS to avoid the need to call pkg-config.
6372 See the pkg-config man page for more details." "$LINENO" 5
6373 elif test $pkg_failed = untried; then
6374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6378 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6379 is in your PATH or set the PKG_CONFIG environment variable to the full
6380 path to pkg-config.
6381
6382 Alternatively, you may set the environment variables X11_CFLAGS
6383 and X11_LIBS to avoid the need to call pkg-config.
6384 See the pkg-config man page for more details.
6385
6386 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6387 See \`config.log' for more details" "$LINENO" 5; }
6388 else
6389         X11_CFLAGS=$pkg_cv_X11_CFLAGS
6390         X11_LIBS=$pkg_cv_X11_LIBS
6391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6392 $as_echo "yes" >&6; }
6393
6394 fi
6395
6396
6397
6398
6399 pkg_failed=no
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
6401 $as_echo_n "checking for XEXT... " >&6; }
6402
6403 if test -n "$XEXT_CFLAGS"; then
6404     pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
6405  elif test -n "$PKG_CONFIG"; then
6406     if test -n "$PKG_CONFIG" && \
6407     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
6408   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
6409   ac_status=$?
6410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411   test $ac_status = 0; }; then
6412   pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
6413                       test "x$?" != "x0" && pkg_failed=yes
6414 else
6415   pkg_failed=yes
6416 fi
6417  else
6418     pkg_failed=untried
6419 fi
6420 if test -n "$XEXT_LIBS"; then
6421     pkg_cv_XEXT_LIBS="$XEXT_LIBS"
6422  elif test -n "$PKG_CONFIG"; then
6423     if test -n "$PKG_CONFIG" && \
6424     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
6425   ($PKG_CONFIG --exists --print-errors "xext") 2>&5
6426   ac_status=$?
6427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6428   test $ac_status = 0; }; then
6429   pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
6430                       test "x$?" != "x0" && pkg_failed=yes
6431 else
6432   pkg_failed=yes
6433 fi
6434  else
6435     pkg_failed=untried
6436 fi
6437
6438
6439
6440 if test $pkg_failed = yes; then
6441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6443
6444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6445         _pkg_short_errors_supported=yes
6446 else
6447         _pkg_short_errors_supported=no
6448 fi
6449         if test $_pkg_short_errors_supported = yes; then
6450                 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
6451         else
6452                 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
6453         fi
6454         # Put the nasty error message in config.log where it belongs
6455         echo "$XEXT_PKG_ERRORS" >&5
6456
6457         as_fn_error $? "Package requirements (xext) were not met:
6458
6459 $XEXT_PKG_ERRORS
6460
6461 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6462 installed software in a non-standard prefix.
6463
6464 Alternatively, you may set the environment variables XEXT_CFLAGS
6465 and XEXT_LIBS to avoid the need to call pkg-config.
6466 See the pkg-config man page for more details." "$LINENO" 5
6467 elif test $pkg_failed = untried; then
6468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6472 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6473 is in your PATH or set the PKG_CONFIG environment variable to the full
6474 path to pkg-config.
6475
6476 Alternatively, you may set the environment variables XEXT_CFLAGS
6477 and XEXT_LIBS to avoid the need to call pkg-config.
6478 See the pkg-config man page for more details.
6479
6480 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6481 See \`config.log' for more details" "$LINENO" 5; }
6482 else
6483         XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
6484         XEXT_LIBS=$pkg_cv_XEXT_LIBS
6485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6486 $as_echo "yes" >&6; }
6487
6488 fi
6489
6490
6491
6492 # Checks GTK+ 3.0
6493
6494 pkg_failed=no
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
6496 $as_echo_n "checking for GTK... " >&6; }
6497
6498 if test -n "$GTK_CFLAGS"; then
6499     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6500  elif test -n "$PKG_CONFIG"; then
6501     if test -n "$PKG_CONFIG" && \
6502     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
6503   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
6504   ac_status=$?
6505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506   test $ac_status = 0; }; then
6507   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
6508                       test "x$?" != "x0" && pkg_failed=yes
6509 else
6510   pkg_failed=yes
6511 fi
6512  else
6513     pkg_failed=untried
6514 fi
6515 if test -n "$GTK_LIBS"; then
6516     pkg_cv_GTK_LIBS="$GTK_LIBS"
6517  elif test -n "$PKG_CONFIG"; then
6518     if test -n "$PKG_CONFIG" && \
6519     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
6520   ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
6521   ac_status=$?
6522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523   test $ac_status = 0; }; then
6524   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
6525                       test "x$?" != "x0" && pkg_failed=yes
6526 else
6527   pkg_failed=yes
6528 fi
6529  else
6530     pkg_failed=untried
6531 fi
6532
6533
6534
6535 if test $pkg_failed = yes; then
6536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6538
6539 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6540         _pkg_short_errors_supported=yes
6541 else
6542         _pkg_short_errors_supported=no
6543 fi
6544         if test $_pkg_short_errors_supported = yes; then
6545                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
6546         else
6547                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
6548         fi
6549         # Put the nasty error message in config.log where it belongs
6550         echo "$GTK_PKG_ERRORS" >&5
6551
6552         as_fn_error $? "Package requirements (gtk+-3.0) were not met:
6553
6554 $GTK_PKG_ERRORS
6555
6556 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6557 installed software in a non-standard prefix.
6558
6559 Alternatively, you may set the environment variables GTK_CFLAGS
6560 and GTK_LIBS to avoid the need to call pkg-config.
6561 See the pkg-config man page for more details." "$LINENO" 5
6562 elif test $pkg_failed = untried; then
6563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6565         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6567 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6568 is in your PATH or set the PKG_CONFIG environment variable to the full
6569 path to pkg-config.
6570
6571 Alternatively, you may set the environment variables GTK_CFLAGS
6572 and GTK_LIBS to avoid the need to call pkg-config.
6573 See the pkg-config man page for more details.
6574
6575 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6576 See \`config.log' for more details" "$LINENO" 5; }
6577 else
6578         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6579         GTK_LIBS=$pkg_cv_GTK_LIBS
6580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6581 $as_echo "yes" >&6; }
6582
6583 fi
6584 # ensure that only allowed headers are included
6585 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
6586 # ensure that no gtk deprecated symbols are used
6587 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
6588 GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
6589 # ensure use of accessors
6590 GTK_CFLAGS+=" -DGSEAL_ENABLE "
6591
6592
6593
6594 # Check JSON
6595 JSON_LIBS=
6596
6597 pkg_failed=no
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
6599 $as_echo_n "checking for JSON... " >&6; }
6600
6601 if test -n "$JSON_CFLAGS"; then
6602     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
6603  elif test -n "$PKG_CONFIG"; then
6604     if test -n "$PKG_CONFIG" && \
6605     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
6606   ($PKG_CONFIG --exists --print-errors "json") 2>&5
6607   ac_status=$?
6608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609   test $ac_status = 0; }; then
6610   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
6611                       test "x$?" != "x0" && pkg_failed=yes
6612 else
6613   pkg_failed=yes
6614 fi
6615  else
6616     pkg_failed=untried
6617 fi
6618 if test -n "$JSON_LIBS"; then
6619     pkg_cv_JSON_LIBS="$JSON_LIBS"
6620  elif test -n "$PKG_CONFIG"; then
6621     if test -n "$PKG_CONFIG" && \
6622     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
6623   ($PKG_CONFIG --exists --print-errors "json") 2>&5
6624   ac_status=$?
6625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626   test $ac_status = 0; }; then
6627   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
6628                       test "x$?" != "x0" && pkg_failed=yes
6629 else
6630   pkg_failed=yes
6631 fi
6632  else
6633     pkg_failed=untried
6634 fi
6635
6636
6637
6638 if test $pkg_failed = yes; then
6639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6641
6642 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6643         _pkg_short_errors_supported=yes
6644 else
6645         _pkg_short_errors_supported=no
6646 fi
6647         if test $_pkg_short_errors_supported = yes; then
6648                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
6649         else
6650                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
6651         fi
6652         # Put the nasty error message in config.log where it belongs
6653         echo "$JSON_PKG_ERRORS" >&5
6654
6655         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
6656 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
6657 elif test $pkg_failed = untried; then
6658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6660         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Remote monitoring disabled" >&5
6661 $as_echo "$as_me: WARNING: \"Remote monitoring disabled" >&2;}
6662 else
6663         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
6664         JSON_LIBS=$pkg_cv_JSON_LIBS
6665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6666 $as_echo "yes" >&6; }
6667
6668 $as_echo "#define HAVE_JSON 1" >>confdefs.h
6669
6670 fi
6671  if test -n "$JSON_LIBS"; then
6672   JSON_TRUE=
6673   JSON_FALSE='#'
6674 else
6675   JSON_TRUE='#'
6676   JSON_FALSE=
6677 fi
6678
6679
6680
6681
6682 ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile tests/Makefile"
6683
6684
6685 for ac_prog in help2man
6686 do
6687   # Extract the first word of "$ac_prog", so it can be a program name with args.
6688 set dummy $ac_prog; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if ${ac_cv_prog_HELP2MAN+:} false; then :
6692   $as_echo_n "(cached) " >&6
6693 else
6694   if test -n "$HELP2MAN"; then
6695   ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700   IFS=$as_save_IFS
6701   test -z "$as_dir" && as_dir=.
6702     for ac_exec_ext in '' $ac_executable_extensions; do
6703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704     ac_cv_prog_HELP2MAN="$ac_prog"
6705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706     break 2
6707   fi
6708 done
6709   done
6710 IFS=$as_save_IFS
6711
6712 fi
6713 fi
6714 HELP2MAN=$ac_cv_prog_HELP2MAN
6715 if test -n "$HELP2MAN"; then
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
6717 $as_echo "$HELP2MAN" >&6; }
6718 else
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721 fi
6722
6723
6724   test -n "$HELP2MAN" && break
6725 done
6726
6727
6728 # Extract the first word of "cppcheck", so it can be a program name with args.
6729 set dummy cppcheck; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
6733   $as_echo_n "(cached) " >&6
6734 else
6735   if test -n "$HAVE_CPPCHECK"; then
6736   ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743     for ac_exec_ext in '' $ac_executable_extensions; do
6744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745     ac_cv_prog_HAVE_CPPCHECK="yes"
6746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750   done
6751 IFS=$as_save_IFS
6752
6753 fi
6754 fi
6755 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
6756 if test -n "$HAVE_CPPCHECK"; then
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
6758 $as_echo "$HAVE_CPPCHECK" >&6; }
6759 else
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763
6764
6765  if test -n "$HAVE_CPPCHECK"; then
6766   CPPCHECK_TRUE=
6767   CPPCHECK_FALSE='#'
6768 else
6769   CPPCHECK_TRUE='#'
6770   CPPCHECK_FALSE=
6771 fi
6772
6773
6774 cat >confcache <<\_ACEOF
6775 # This file is a shell script that caches the results of configure
6776 # tests run on this system so they can be shared between configure
6777 # scripts and configure runs, see configure's option --config-cache.
6778 # It is not useful on other systems.  If it contains results you don't
6779 # want to keep, you may remove or edit it.
6780 #
6781 # config.status only pays attention to the cache file if you give it
6782 # the --recheck option to rerun configure.
6783 #
6784 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6785 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6786 # following values.
6787
6788 _ACEOF
6789
6790 # The following way of writing the cache mishandles newlines in values,
6791 # but we know of no workaround that is simple, portable, and efficient.
6792 # So, we kill variables containing newlines.
6793 # Ultrix sh set writes to stderr and can't be redirected directly,
6794 # and sets the high bit in the cache file unless we assign to the vars.
6795 (
6796   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6797     eval ac_val=\$$ac_var
6798     case $ac_val in #(
6799     *${as_nl}*)
6800       case $ac_var in #(
6801       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6802 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6803       esac
6804       case $ac_var in #(
6805       _ | IFS | as_nl) ;; #(
6806       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6807       *) { eval $ac_var=; unset $ac_var;} ;;
6808       esac ;;
6809     esac
6810   done
6811
6812   (set) 2>&1 |
6813     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6814     *${as_nl}ac_space=\ *)
6815       # `set' does not quote correctly, so add quotes: double-quote
6816       # substitution turns \\\\ into \\, and sed turns \\ into \.
6817       sed -n \
6818         "s/'/'\\\\''/g;
6819           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6820       ;; #(
6821     *)
6822       # `set' quotes correctly as required by POSIX, so do not add quotes.
6823       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6824       ;;
6825     esac |
6826     sort
6827 ) |
6828   sed '
6829      /^ac_cv_env_/b end
6830      t clear
6831      :clear
6832      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6833      t end
6834      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6835      :end' >>confcache
6836 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6837   if test -w "$cache_file"; then
6838     if test "x$cache_file" != "x/dev/null"; then
6839       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6840 $as_echo "$as_me: updating cache $cache_file" >&6;}
6841       if test ! -f "$cache_file" || test -h "$cache_file"; then
6842         cat confcache >"$cache_file"
6843       else
6844         case $cache_file in #(
6845         */* | ?:*)
6846           mv -f confcache "$cache_file"$$ &&
6847           mv -f "$cache_file"$$ "$cache_file" ;; #(
6848         *)
6849           mv -f confcache "$cache_file" ;;
6850         esac
6851       fi
6852     fi
6853   else
6854     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6855 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6856   fi
6857 fi
6858 rm -f confcache
6859
6860 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6861 # Let make expand exec_prefix.
6862 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6863
6864 # Transform confdefs.h into DEFS.
6865 # Protect against shell expansion while executing Makefile rules.
6866 # Protect against Makefile macro expansion.
6867 #
6868 # If the first sed substitution is executed (which looks for macros that
6869 # take arguments), then branch to the quote section.  Otherwise,
6870 # look for a macro that doesn't take arguments.
6871 ac_script='
6872 :mline
6873 /\\$/{
6874  N
6875  s,\\\n,,
6876  b mline
6877 }
6878 t clear
6879 :clear
6880 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
6881 t quote
6882 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
6883 t quote
6884 b any
6885 :quote
6886 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6887 s/\[/\\&/g
6888 s/\]/\\&/g
6889 s/\$/$$/g
6890 H
6891 :any
6892 ${
6893         g
6894         s/^\n//
6895         s/\n/ /g
6896         p
6897 }
6898 '
6899 DEFS=`sed -n "$ac_script" confdefs.h`
6900
6901
6902 ac_libobjs=
6903 ac_ltlibobjs=
6904 U=
6905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6906   # 1. Remove the extension, and $U if already installed.
6907   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6908   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6909   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6910   #    will be set to the directory where LIBOBJS objects are built.
6911   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6912   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6913 done
6914 LIBOBJS=$ac_libobjs
6915
6916 LTLIBOBJS=$ac_ltlibobjs
6917
6918
6919  if test -n "$EXEEXT"; then
6920   am__EXEEXT_TRUE=
6921   am__EXEEXT_FALSE='#'
6922 else
6923   am__EXEEXT_TRUE='#'
6924   am__EXEEXT_FALSE=
6925 fi
6926
6927 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6928   as_fn_error $? "conditional \"AMDEP\" was never defined.
6929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6930 fi
6931 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6932   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6934 fi
6935 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
6936   as_fn_error $? "conditional \"JSON\" was never defined.
6937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6938 fi
6939 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
6940   as_fn_error $? "conditional \"CPPCHECK\" was never defined.
6941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6942 fi
6943
6944 : "${CONFIG_STATUS=./config.status}"
6945 ac_write_fail=0
6946 ac_clean_files_save=$ac_clean_files
6947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6949 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6950 as_write_fail=0
6951 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6952 #! $SHELL
6953 # Generated by $as_me.
6954 # Run this file to recreate the current configuration.
6955 # Compiler output produced by configure, useful for debugging
6956 # configure, is in config.log if it exists.
6957
6958 debug=false
6959 ac_cs_recheck=false
6960 ac_cs_silent=false
6961
6962 SHELL=\${CONFIG_SHELL-$SHELL}
6963 export SHELL
6964 _ASEOF
6965 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6966 ## -------------------- ##
6967 ## M4sh Initialization. ##
6968 ## -------------------- ##
6969
6970 # Be more Bourne compatible
6971 DUALCASE=1; export DUALCASE # for MKS sh
6972 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6973   emulate sh
6974   NULLCMD=:
6975   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6976   # is contrary to our usage.  Disable this feature.
6977   alias -g '${1+"$@"}'='"$@"'
6978   setopt NO_GLOB_SUBST
6979 else
6980   case `(set -o) 2>/dev/null` in #(
6981   *posix*) :
6982     set -o posix ;; #(
6983   *) :
6984      ;;
6985 esac
6986 fi
6987
6988
6989 as_nl='
6990 '
6991 export as_nl
6992 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6993 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6994 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6995 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6996 # Prefer a ksh shell builtin over an external printf program on Solaris,
6997 # but without wasting forks for bash or zsh.
6998 if test -z "$BASH_VERSION$ZSH_VERSION" \
6999     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7000   as_echo='print -r --'
7001   as_echo_n='print -rn --'
7002 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7003   as_echo='printf %s\n'
7004   as_echo_n='printf %s'
7005 else
7006   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7007     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7008     as_echo_n='/usr/ucb/echo -n'
7009   else
7010     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7011     as_echo_n_body='eval
7012       arg=$1;
7013       case $arg in #(
7014       *"$as_nl"*)
7015         expr "X$arg" : "X\\(.*\\)$as_nl";
7016         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7017       esac;
7018       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7019     '
7020     export as_echo_n_body
7021     as_echo_n='sh -c $as_echo_n_body as_echo'
7022   fi
7023   export as_echo_body
7024   as_echo='sh -c $as_echo_body as_echo'
7025 fi
7026
7027 # The user is always right.
7028 if test "${PATH_SEPARATOR+set}" != set; then
7029   PATH_SEPARATOR=:
7030   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7031     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7032       PATH_SEPARATOR=';'
7033   }
7034 fi
7035
7036
7037 # IFS
7038 # We need space, tab and new line, in precisely that order.  Quoting is
7039 # there to prevent editors from complaining about space-tab.
7040 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7041 # splitting by setting IFS to empty value.)
7042 IFS=" ""        $as_nl"
7043
7044 # Find who we are.  Look in the path if we contain no directory separator.
7045 as_myself=
7046 case $0 in #((
7047   *[\\/]* ) as_myself=$0 ;;
7048   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051   IFS=$as_save_IFS
7052   test -z "$as_dir" && as_dir=.
7053     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7054   done
7055 IFS=$as_save_IFS
7056
7057      ;;
7058 esac
7059 # We did not find ourselves, most probably we were run as `sh COMMAND'
7060 # in which case we are not to be found in the path.
7061 if test "x$as_myself" = x; then
7062   as_myself=$0
7063 fi
7064 if test ! -f "$as_myself"; then
7065   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7066   exit 1
7067 fi
7068
7069 # Unset variables that we do not need and which cause bugs (e.g. in
7070 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7071 # suppresses any "Segmentation fault" message there.  '((' could
7072 # trigger a bug in pdksh 5.2.14.
7073 for as_var in BASH_ENV ENV MAIL MAILPATH
7074 do eval test x\${$as_var+set} = xset \
7075   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7076 done
7077 PS1='$ '
7078 PS2='> '
7079 PS4='+ '
7080
7081 # NLS nuisances.
7082 LC_ALL=C
7083 export LC_ALL
7084 LANGUAGE=C
7085 export LANGUAGE
7086
7087 # CDPATH.
7088 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7089
7090
7091 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7092 # ----------------------------------------
7093 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7094 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7095 # script with STATUS, using 1 if that was 0.
7096 as_fn_error ()
7097 {
7098   as_status=$1; test $as_status -eq 0 && as_status=1
7099   if test "$4"; then
7100     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7101     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7102   fi
7103   $as_echo "$as_me: error: $2" >&2
7104   as_fn_exit $as_status
7105 } # as_fn_error
7106
7107
7108 # as_fn_set_status STATUS
7109 # -----------------------
7110 # Set $? to STATUS, without forking.
7111 as_fn_set_status ()
7112 {
7113   return $1
7114 } # as_fn_set_status
7115
7116 # as_fn_exit STATUS
7117 # -----------------
7118 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7119 as_fn_exit ()
7120 {
7121   set +e
7122   as_fn_set_status $1
7123   exit $1
7124 } # as_fn_exit
7125
7126 # as_fn_unset VAR
7127 # ---------------
7128 # Portably unset VAR.
7129 as_fn_unset ()
7130 {
7131   { eval $1=; unset $1;}
7132 }
7133 as_unset=as_fn_unset
7134 # as_fn_append VAR VALUE
7135 # ----------------------
7136 # Append the text in VALUE to the end of the definition contained in VAR. Take
7137 # advantage of any shell optimizations that allow amortized linear growth over
7138 # repeated appends, instead of the typical quadratic growth present in naive
7139 # implementations.
7140 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7141   eval 'as_fn_append ()
7142   {
7143     eval $1+=\$2
7144   }'
7145 else
7146   as_fn_append ()
7147   {
7148     eval $1=\$$1\$2
7149   }
7150 fi # as_fn_append
7151
7152 # as_fn_arith ARG...
7153 # ------------------
7154 # Perform arithmetic evaluation on the ARGs, and store the result in the
7155 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7156 # must be portable across $(()) and expr.
7157 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7158   eval 'as_fn_arith ()
7159   {
7160     as_val=$(( $* ))
7161   }'
7162 else
7163   as_fn_arith ()
7164   {
7165     as_val=`expr "$@" || test $? -eq 1`
7166   }
7167 fi # as_fn_arith
7168
7169
7170 if expr a : '\(a\)' >/dev/null 2>&1 &&
7171    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7172   as_expr=expr
7173 else
7174   as_expr=false
7175 fi
7176
7177 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7178   as_basename=basename
7179 else
7180   as_basename=false
7181 fi
7182
7183 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7184   as_dirname=dirname
7185 else
7186   as_dirname=false
7187 fi
7188
7189 as_me=`$as_basename -- "$0" ||
7190 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7191          X"$0" : 'X\(//\)$' \| \
7192          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7193 $as_echo X/"$0" |
7194     sed '/^.*\/\([^/][^/]*\)\/*$/{
7195             s//\1/
7196             q
7197           }
7198           /^X\/\(\/\/\)$/{
7199             s//\1/
7200             q
7201           }
7202           /^X\/\(\/\).*/{
7203             s//\1/
7204             q
7205           }
7206           s/.*/./; q'`
7207
7208 # Avoid depending upon Character Ranges.
7209 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7210 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7211 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7212 as_cr_digits='0123456789'
7213 as_cr_alnum=$as_cr_Letters$as_cr_digits
7214
7215 ECHO_C= ECHO_N= ECHO_T=
7216 case `echo -n x` in #(((((
7217 -n*)
7218   case `echo 'xy\c'` in
7219   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7220   xy)  ECHO_C='\c';;
7221   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7222        ECHO_T=' ';;
7223   esac;;
7224 *)
7225   ECHO_N='-n';;
7226 esac
7227
7228 rm -f conf$$ conf$$.exe conf$$.file
7229 if test -d conf$$.dir; then
7230   rm -f conf$$.dir/conf$$.file
7231 else
7232   rm -f conf$$.dir
7233   mkdir conf$$.dir 2>/dev/null
7234 fi
7235 if (echo >conf$$.file) 2>/dev/null; then
7236   if ln -s conf$$.file conf$$ 2>/dev/null; then
7237     as_ln_s='ln -s'
7238     # ... but there are two gotchas:
7239     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7240     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7241     # In both cases, we have to default to `cp -pR'.
7242     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7243       as_ln_s='cp -pR'
7244   elif ln conf$$.file conf$$ 2>/dev/null; then
7245     as_ln_s=ln
7246   else
7247     as_ln_s='cp -pR'
7248   fi
7249 else
7250   as_ln_s='cp -pR'
7251 fi
7252 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7253 rmdir conf$$.dir 2>/dev/null
7254
7255
7256 # as_fn_mkdir_p
7257 # -------------
7258 # Create "$as_dir" as a directory, including parents if necessary.
7259 as_fn_mkdir_p ()
7260 {
7261
7262   case $as_dir in #(
7263   -*) as_dir=./$as_dir;;
7264   esac
7265   test -d "$as_dir" || eval $as_mkdir_p || {
7266     as_dirs=
7267     while :; do
7268       case $as_dir in #(
7269       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7270       *) as_qdir=$as_dir;;
7271       esac
7272       as_dirs="'$as_qdir' $as_dirs"
7273       as_dir=`$as_dirname -- "$as_dir" ||
7274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7275          X"$as_dir" : 'X\(//\)[^/]' \| \
7276          X"$as_dir" : 'X\(//\)$' \| \
7277          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7278 $as_echo X"$as_dir" |
7279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7280             s//\1/
7281             q
7282           }
7283           /^X\(\/\/\)[^/].*/{
7284             s//\1/
7285             q
7286           }
7287           /^X\(\/\/\)$/{
7288             s//\1/
7289             q
7290           }
7291           /^X\(\/\).*/{
7292             s//\1/
7293             q
7294           }
7295           s/.*/./; q'`
7296       test -d "$as_dir" && break
7297     done
7298     test -z "$as_dirs" || eval "mkdir $as_dirs"
7299   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7300
7301
7302 } # as_fn_mkdir_p
7303 if mkdir -p . 2>/dev/null; then
7304   as_mkdir_p='mkdir -p "$as_dir"'
7305 else
7306   test -d ./-p && rmdir ./-p
7307   as_mkdir_p=false
7308 fi
7309
7310
7311 # as_fn_executable_p FILE
7312 # -----------------------
7313 # Test if FILE is an executable regular file.
7314 as_fn_executable_p ()
7315 {
7316   test -f "$1" && test -x "$1"
7317 } # as_fn_executable_p
7318 as_test_x='test -x'
7319 as_executable_p=as_fn_executable_p
7320
7321 # Sed expression to map a string onto a valid CPP name.
7322 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7323
7324 # Sed expression to map a string onto a valid variable name.
7325 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7326
7327
7328 exec 6>&1
7329 ## ----------------------------------- ##
7330 ## Main body of $CONFIG_STATUS script. ##
7331 ## ----------------------------------- ##
7332 _ASEOF
7333 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7334
7335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7336 # Save the log message, to keep $0 and so on meaningful, and to
7337 # report actual input values of CONFIG_FILES etc. instead of their
7338 # values after options handling.
7339 ac_log="
7340 This file was extended by gtask $as_me 0.0.x, which was
7341 generated by GNU Autoconf 2.69.  Invocation command line was
7342
7343   CONFIG_FILES    = $CONFIG_FILES
7344   CONFIG_HEADERS  = $CONFIG_HEADERS
7345   CONFIG_LINKS    = $CONFIG_LINKS
7346   CONFIG_COMMANDS = $CONFIG_COMMANDS
7347   $ $0 $@
7348
7349 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7350 "
7351
7352 _ACEOF
7353
7354 case $ac_config_files in *"
7355 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7356 esac
7357
7358
7359
7360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7361 # Files that config.status was made for.
7362 config_files="$ac_config_files"
7363 config_commands="$ac_config_commands"
7364
7365 _ACEOF
7366
7367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7368 ac_cs_usage="\
7369 \`$as_me' instantiates files and other configuration actions
7370 from templates according to the current configuration.  Unless the files
7371 and actions are specified as TAGs, all are instantiated by default.
7372
7373 Usage: $0 [OPTION]... [TAG]...
7374
7375   -h, --help       print this help, then exit
7376   -V, --version    print version number and configuration settings, then exit
7377       --config     print configuration, then exit
7378   -q, --quiet, --silent
7379                    do not print progress messages
7380   -d, --debug      don't remove temporary files
7381       --recheck    update $as_me by reconfiguring in the same conditions
7382       --file=FILE[:TEMPLATE]
7383                    instantiate the configuration file FILE
7384
7385 Configuration files:
7386 $config_files
7387
7388 Configuration commands:
7389 $config_commands
7390
7391 Report bugs to <jeanfi@gmail.com>.
7392 gtask home page: <http://wpitchoune.net/gtask>."
7393
7394 _ACEOF
7395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7396 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7397 ac_cs_version="\\
7398 gtask config.status 0.0.x
7399 configured by $0, generated by GNU Autoconf 2.69,
7400   with options \\"\$ac_cs_config\\"
7401
7402 Copyright (C) 2012 Free Software Foundation, Inc.
7403 This config.status script is free software; the Free Software Foundation
7404 gives unlimited permission to copy, distribute and modify it."
7405
7406 ac_pwd='$ac_pwd'
7407 srcdir='$srcdir'
7408 INSTALL='$INSTALL'
7409 MKDIR_P='$MKDIR_P'
7410 AWK='$AWK'
7411 test -n "\$AWK" || AWK=awk
7412 _ACEOF
7413
7414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7415 # The default lists apply if the user does not specify any file.
7416 ac_need_defaults=:
7417 while test $# != 0
7418 do
7419   case $1 in
7420   --*=?*)
7421     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7422     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7423     ac_shift=:
7424     ;;
7425   --*=)
7426     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7427     ac_optarg=
7428     ac_shift=:
7429     ;;
7430   *)
7431     ac_option=$1
7432     ac_optarg=$2
7433     ac_shift=shift
7434     ;;
7435   esac
7436
7437   case $ac_option in
7438   # Handling of the options.
7439   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7440     ac_cs_recheck=: ;;
7441   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7442     $as_echo "$ac_cs_version"; exit ;;
7443   --config | --confi | --conf | --con | --co | --c )
7444     $as_echo "$ac_cs_config"; exit ;;
7445   --debug | --debu | --deb | --de | --d | -d )
7446     debug=: ;;
7447   --file | --fil | --fi | --f )
7448     $ac_shift
7449     case $ac_optarg in
7450     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7451     '') as_fn_error $? "missing file argument" ;;
7452     esac
7453     as_fn_append CONFIG_FILES " '$ac_optarg'"
7454     ac_need_defaults=false;;
7455   --he | --h |  --help | --hel | -h )
7456     $as_echo "$ac_cs_usage"; exit ;;
7457   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7458   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7459     ac_cs_silent=: ;;
7460
7461   # This is an error.
7462   -*) as_fn_error $? "unrecognized option: \`$1'
7463 Try \`$0 --help' for more information." ;;
7464
7465   *) as_fn_append ac_config_targets " $1"
7466      ac_need_defaults=false ;;
7467
7468   esac
7469   shift
7470 done
7471
7472 ac_configure_extra_args=
7473
7474 if $ac_cs_silent; then
7475   exec 6>/dev/null
7476   ac_configure_extra_args="$ac_configure_extra_args --silent"
7477 fi
7478
7479 _ACEOF
7480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7481 if \$ac_cs_recheck; then
7482   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7483   shift
7484   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7485   CONFIG_SHELL='$SHELL'
7486   export CONFIG_SHELL
7487   exec "\$@"
7488 fi
7489
7490 _ACEOF
7491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7492 exec 5>>config.log
7493 {
7494   echo
7495   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7496 ## Running $as_me. ##
7497 _ASBOX
7498   $as_echo "$ac_log"
7499 } >&5
7500
7501 _ACEOF
7502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7503 #
7504 # INIT-COMMANDS
7505 #
7506 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7507 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7508     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
7509     # from automake < 1.5.
7510     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7511     # Capture the value of LINGUAS because we need it to compute CATALOGS.
7512     LINGUAS="${LINGUAS-%UNSET%}"
7513
7514
7515 _ACEOF
7516
7517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7518
7519 # Handling of arguments.
7520 for ac_config_target in $ac_config_targets
7521 do
7522   case $ac_config_target in
7523     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7524     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
7525     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7526     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
7527     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7528     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
7529
7530   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7531   esac
7532 done
7533
7534
7535 # If the user did not use the arguments to specify the items to instantiate,
7536 # then the envvar interface is used.  Set only those that are not.
7537 # We use the long form for the default assignment because of an extremely
7538 # bizarre bug on SunOS 4.1.3.
7539 if $ac_need_defaults; then
7540   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7541   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7542 fi
7543
7544 # Have a temporary directory for convenience.  Make it in the build tree
7545 # simply because there is no reason against having it here, and in addition,
7546 # creating and moving files from /tmp can sometimes cause problems.
7547 # Hook for its removal unless debugging.
7548 # Note that there is a small window in which the directory will not be cleaned:
7549 # after its creation but before its name has been assigned to `$tmp'.
7550 $debug ||
7551 {
7552   tmp= ac_tmp=
7553   trap 'exit_status=$?
7554   : "${ac_tmp:=$tmp}"
7555   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7556 ' 0
7557   trap 'as_fn_exit 1' 1 2 13 15
7558 }
7559 # Create a (secure) tmp directory for tmp files.
7560
7561 {
7562   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7563   test -d "$tmp"
7564 }  ||
7565 {
7566   tmp=./conf$$-$RANDOM
7567   (umask 077 && mkdir "$tmp")
7568 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7569 ac_tmp=$tmp
7570
7571 # Set up the scripts for CONFIG_FILES section.
7572 # No need to generate them if there are no CONFIG_FILES.
7573 # This happens for instance with `./config.status config.h'.
7574 if test -n "$CONFIG_FILES"; then
7575
7576
7577 ac_cr=`echo X | tr X '\015'`
7578 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7579 # But we know of no other shell where ac_cr would be empty at this
7580 # point, so we can use a bashism as a fallback.
7581 if test "x$ac_cr" = x; then
7582   eval ac_cr=\$\'\\r\'
7583 fi
7584 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7585 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7586   ac_cs_awk_cr='\\r'
7587 else
7588   ac_cs_awk_cr=$ac_cr
7589 fi
7590
7591 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7592 _ACEOF
7593
7594
7595 {
7596   echo "cat >conf$$subs.awk <<_ACEOF" &&
7597   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7598   echo "_ACEOF"
7599 } >conf$$subs.sh ||
7600   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7601 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7602 ac_delim='%!_!# '
7603 for ac_last_try in false false false false false :; do
7604   . ./conf$$subs.sh ||
7605     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7606
7607   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7608   if test $ac_delim_n = $ac_delim_num; then
7609     break
7610   elif $ac_last_try; then
7611     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7612   else
7613     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7614   fi
7615 done
7616 rm -f conf$$subs.sh
7617
7618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7619 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7620 _ACEOF
7621 sed -n '
7622 h
7623 s/^/S["/; s/!.*/"]=/
7624 p
7625 g
7626 s/^[^!]*!//
7627 :repl
7628 t repl
7629 s/'"$ac_delim"'$//
7630 t delim
7631 :nl
7632 h
7633 s/\(.\{148\}\)..*/\1/
7634 t more1
7635 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7636 p
7637 n
7638 b repl
7639 :more1
7640 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7641 p
7642 g
7643 s/.\{148\}//
7644 t nl
7645 :delim
7646 h
7647 s/\(.\{148\}\)..*/\1/
7648 t more2
7649 s/["\\]/\\&/g; s/^/"/; s/$/"/
7650 p
7651 b
7652 :more2
7653 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7654 p
7655 g
7656 s/.\{148\}//
7657 t delim
7658 ' <conf$$subs.awk | sed '
7659 /^[^""]/{
7660   N
7661   s/\n//
7662 }
7663 ' >>$CONFIG_STATUS || ac_write_fail=1
7664 rm -f conf$$subs.awk
7665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7666 _ACAWK
7667 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7668   for (key in S) S_is_set[key] = 1
7669   FS = "\a"
7670
7671 }
7672 {
7673   line = $ 0
7674   nfields = split(line, field, "@")
7675   substed = 0
7676   len = length(field[1])
7677   for (i = 2; i < nfields; i++) {
7678     key = field[i]
7679     keylen = length(key)
7680     if (S_is_set[key]) {
7681       value = S[key]
7682       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7683       len += length(value) + length(field[++i])
7684       substed = 1
7685     } else
7686       len += 1 + keylen
7687   }
7688
7689   print line
7690 }
7691
7692 _ACAWK
7693 _ACEOF
7694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7695 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7696   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7697 else
7698   cat
7699 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7700   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7701 _ACEOF
7702
7703 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7704 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7705 # trailing colons and then remove the whole line if VPATH becomes empty
7706 # (actually we leave an empty line to preserve line numbers).
7707 if test "x$srcdir" = x.; then
7708   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7709 h
7710 s///
7711 s/^/:/
7712 s/[      ]*$/:/
7713 s/:\$(srcdir):/:/g
7714 s/:\${srcdir}:/:/g
7715 s/:@srcdir@:/:/g
7716 s/^:*//
7717 s/:*$//
7718 x
7719 s/\(=[   ]*\).*/\1/
7720 G
7721 s/\n//
7722 s/^[^=]*=[       ]*$//
7723 }'
7724 fi
7725
7726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7727 fi # test -n "$CONFIG_FILES"
7728
7729
7730 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
7731 shift
7732 for ac_tag
7733 do
7734   case $ac_tag in
7735   :[FHLC]) ac_mode=$ac_tag; continue;;
7736   esac
7737   case $ac_mode$ac_tag in
7738   :[FHL]*:*);;
7739   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7740   :[FH]-) ac_tag=-:-;;
7741   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7742   esac
7743   ac_save_IFS=$IFS
7744   IFS=:
7745   set x $ac_tag
7746   IFS=$ac_save_IFS
7747   shift
7748   ac_file=$1
7749   shift
7750
7751   case $ac_mode in
7752   :L) ac_source=$1;;
7753   :[FH])
7754     ac_file_inputs=
7755     for ac_f
7756     do
7757       case $ac_f in
7758       -) ac_f="$ac_tmp/stdin";;
7759       *) # Look for the file first in the build tree, then in the source tree
7760          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7761          # because $ac_f cannot contain `:'.
7762          test -f "$ac_f" ||
7763            case $ac_f in
7764            [\\/$]*) false;;
7765            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7766            esac ||
7767            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7768       esac
7769       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7770       as_fn_append ac_file_inputs " '$ac_f'"
7771     done
7772
7773     # Let's still pretend it is `configure' which instantiates (i.e., don't
7774     # use $as_me), people would be surprised to read:
7775     #    /* config.h.  Generated by config.status.  */
7776     configure_input='Generated from '`
7777           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7778         `' by configure.'
7779     if test x"$ac_file" != x-; then
7780       configure_input="$ac_file.  $configure_input"
7781       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7782 $as_echo "$as_me: creating $ac_file" >&6;}
7783     fi
7784     # Neutralize special characters interpreted by sed in replacement strings.
7785     case $configure_input in #(
7786     *\&* | *\|* | *\\* )
7787        ac_sed_conf_input=`$as_echo "$configure_input" |
7788        sed 's/[\\\\&|]/\\\\&/g'`;; #(
7789     *) ac_sed_conf_input=$configure_input;;
7790     esac
7791
7792     case $ac_tag in
7793     *:-:* | *:-) cat >"$ac_tmp/stdin" \
7794       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7795     esac
7796     ;;
7797   esac
7798
7799   ac_dir=`$as_dirname -- "$ac_file" ||
7800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7801          X"$ac_file" : 'X\(//\)[^/]' \| \
7802          X"$ac_file" : 'X\(//\)$' \| \
7803          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7804 $as_echo X"$ac_file" |
7805     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7806             s//\1/
7807             q
7808           }
7809           /^X\(\/\/\)[^/].*/{
7810             s//\1/
7811             q
7812           }
7813           /^X\(\/\/\)$/{
7814             s//\1/
7815             q
7816           }
7817           /^X\(\/\).*/{
7818             s//\1/
7819             q
7820           }
7821           s/.*/./; q'`
7822   as_dir="$ac_dir"; as_fn_mkdir_p
7823   ac_builddir=.
7824
7825 case "$ac_dir" in
7826 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7827 *)
7828   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7829   # A ".." for each directory in $ac_dir_suffix.
7830   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7831   case $ac_top_builddir_sub in
7832   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7833   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7834   esac ;;
7835 esac
7836 ac_abs_top_builddir=$ac_pwd
7837 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7838 # for backward compatibility:
7839 ac_top_builddir=$ac_top_build_prefix
7840
7841 case $srcdir in
7842   .)  # We are building in place.
7843     ac_srcdir=.
7844     ac_top_srcdir=$ac_top_builddir_sub
7845     ac_abs_top_srcdir=$ac_pwd ;;
7846   [\\/]* | ?:[\\/]* )  # Absolute name.
7847     ac_srcdir=$srcdir$ac_dir_suffix;
7848     ac_top_srcdir=$srcdir
7849     ac_abs_top_srcdir=$srcdir ;;
7850   *) # Relative name.
7851     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7852     ac_top_srcdir=$ac_top_build_prefix$srcdir
7853     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7854 esac
7855 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7856
7857
7858   case $ac_mode in
7859   :F)
7860   #
7861   # CONFIG_FILE
7862   #
7863
7864   case $INSTALL in
7865   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7866   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7867   esac
7868   ac_MKDIR_P=$MKDIR_P
7869   case $MKDIR_P in
7870   [\\/$]* | ?:[\\/]* ) ;;
7871   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7872   esac
7873 _ACEOF
7874
7875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7876 # If the template does not know about datarootdir, expand it.
7877 # FIXME: This hack should be removed a few years after 2.60.
7878 ac_datarootdir_hack=; ac_datarootdir_seen=
7879 ac_sed_dataroot='
7880 /datarootdir/ {
7881   p
7882   q
7883 }
7884 /@datadir@/p
7885 /@docdir@/p
7886 /@infodir@/p
7887 /@localedir@/p
7888 /@mandir@/p'
7889 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7890 *datarootdir*) ac_datarootdir_seen=yes;;
7891 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7892   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7893 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7894 _ACEOF
7895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7896   ac_datarootdir_hack='
7897   s&@datadir@&$datadir&g
7898   s&@docdir@&$docdir&g
7899   s&@infodir@&$infodir&g
7900   s&@localedir@&$localedir&g
7901   s&@mandir@&$mandir&g
7902   s&\\\${datarootdir}&$datarootdir&g' ;;
7903 esac
7904 _ACEOF
7905
7906 # Neutralize VPATH when `$srcdir' = `.'.
7907 # Shell code in configure.ac might set extrasub.
7908 # FIXME: do we really want to maintain this feature?
7909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7910 ac_sed_extra="$ac_vpsub
7911 $extrasub
7912 _ACEOF
7913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7914 :t
7915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7916 s|@configure_input@|$ac_sed_conf_input|;t t
7917 s&@top_builddir@&$ac_top_builddir_sub&;t t
7918 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7919 s&@srcdir@&$ac_srcdir&;t t
7920 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7921 s&@top_srcdir@&$ac_top_srcdir&;t t
7922 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7923 s&@builddir@&$ac_builddir&;t t
7924 s&@abs_builddir@&$ac_abs_builddir&;t t
7925 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7926 s&@INSTALL@&$ac_INSTALL&;t t
7927 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7928 $ac_datarootdir_hack
7929 "
7930 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7931   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7932
7933 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7934   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7935   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
7936       "$ac_tmp/out"`; test -z "$ac_out"; } &&
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7938 which seems to be undefined.  Please make sure it is defined" >&5
7939 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7940 which seems to be undefined.  Please make sure it is defined" >&2;}
7941
7942   rm -f "$ac_tmp/stdin"
7943   case $ac_file in
7944   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7945   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7946   esac \
7947   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7948  ;;
7949
7950
7951   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7952 $as_echo "$as_me: executing $ac_file commands" >&6;}
7953  ;;
7954   esac
7955
7956
7957   case $ac_file$ac_mode in
7958     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7959   # Autoconf 2.62 quotes --file arguments for eval, but not when files
7960   # are listed without --file.  Let's play safe and only enable the eval
7961   # if we detect the quoting.
7962   case $CONFIG_FILES in
7963   *\'*) eval set x "$CONFIG_FILES" ;;
7964   *)   set x $CONFIG_FILES ;;
7965   esac
7966   shift
7967   for mf
7968   do
7969     # Strip MF so we end up with the name of the file.
7970     mf=`echo "$mf" | sed -e 's/:.*$//'`
7971     # Check whether this is an Automake generated Makefile or not.
7972     # We used to match only the files named `Makefile.in', but
7973     # some people rename them; so instead we look at the file content.
7974     # Grep'ing the first line is not enough: some people post-process
7975     # each Makefile.in and add a new line on top of each file to say so.
7976     # Grep'ing the whole file is not good either: AIX grep has a line
7977     # limit of 2048, but all sed's we know have understand at least 4000.
7978     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7979       dirpart=`$as_dirname -- "$mf" ||
7980 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7981          X"$mf" : 'X\(//\)[^/]' \| \
7982          X"$mf" : 'X\(//\)$' \| \
7983          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7984 $as_echo X"$mf" |
7985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7986             s//\1/
7987             q
7988           }
7989           /^X\(\/\/\)[^/].*/{
7990             s//\1/
7991             q
7992           }
7993           /^X\(\/\/\)$/{
7994             s//\1/
7995             q
7996           }
7997           /^X\(\/\).*/{
7998             s//\1/
7999             q
8000           }
8001           s/.*/./; q'`
8002     else
8003       continue
8004     fi
8005     # Extract the definition of DEPDIR, am__include, and am__quote
8006     # from the Makefile without running `make'.
8007     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8008     test -z "$DEPDIR" && continue
8009     am__include=`sed -n 's/^am__include = //p' < "$mf"`
8010     test -z "am__include" && continue
8011     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8012     # When using ansi2knr, U may be empty or an underscore; expand it
8013     U=`sed -n 's/^U = //p' < "$mf"`
8014     # Find all dependency output files, they are included files with
8015     # $(DEPDIR) in their names.  We invoke sed twice because it is the
8016     # simplest approach to changing $(DEPDIR) to its actual value in the
8017     # expansion.
8018     for file in `sed -n "
8019       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8020          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8021       # Make sure the directory exists.
8022       test -f "$dirpart/$file" && continue
8023       fdir=`$as_dirname -- "$file" ||
8024 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8025          X"$file" : 'X\(//\)[^/]' \| \
8026          X"$file" : 'X\(//\)$' \| \
8027          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8028 $as_echo X"$file" |
8029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8030             s//\1/
8031             q
8032           }
8033           /^X\(\/\/\)[^/].*/{
8034             s//\1/
8035             q
8036           }
8037           /^X\(\/\/\)$/{
8038             s//\1/
8039             q
8040           }
8041           /^X\(\/\).*/{
8042             s//\1/
8043             q
8044           }
8045           s/.*/./; q'`
8046       as_dir=$dirpart/$fdir; as_fn_mkdir_p
8047       # echo "creating $dirpart/$file"
8048       echo '# dummy' > "$dirpart/$file"
8049     done
8050   done
8051 }
8052  ;;
8053     "po-directories":C)
8054     for ac_file in $CONFIG_FILES; do
8055       # Support "outfile[:infile[:infile...]]"
8056       case "$ac_file" in
8057         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8058       esac
8059       # PO directories have a Makefile.in generated from Makefile.in.in.
8060       case "$ac_file" in */Makefile.in)
8061         # Adjust a relative srcdir.
8062         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8063         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8064         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8065         # In autoconf-2.13 it is called $ac_given_srcdir.
8066         # In autoconf-2.50 it is called $srcdir.
8067         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8068         case "$ac_given_srcdir" in
8069           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8070           /*) top_srcdir="$ac_given_srcdir" ;;
8071           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
8072         esac
8073         # Treat a directory as a PO directory if and only if it has a
8074         # POTFILES.in file. This allows packages to have multiple PO
8075         # directories under different names or in different locations.
8076         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8077           rm -f "$ac_dir/POTFILES"
8078           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8079           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8080           POMAKEFILEDEPS="POTFILES.in"
8081           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
8082           # on $ac_dir but don't depend on user-specified configuration
8083           # parameters.
8084           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8085             # The LINGUAS file contains the set of available languages.
8086             if test -n "$OBSOLETE_ALL_LINGUAS"; then
8087               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8088             fi
8089             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8090             # Hide the ALL_LINGUAS assigment from automake < 1.5.
8091             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8092             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8093           else
8094             # The set of available languages was given in configure.in.
8095             # Hide the ALL_LINGUAS assigment from automake < 1.5.
8096             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8097           fi
8098           # Compute POFILES
8099           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
8100           # Compute UPDATEPOFILES
8101           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
8102           # Compute DUMMYPOFILES
8103           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
8104           # Compute GMOFILES
8105           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
8106           case "$ac_given_srcdir" in
8107             .) srcdirpre= ;;
8108             *) srcdirpre='$(srcdir)/' ;;
8109           esac
8110           POFILES=
8111           UPDATEPOFILES=
8112           DUMMYPOFILES=
8113           GMOFILES=
8114           for lang in $ALL_LINGUAS; do
8115             POFILES="$POFILES $srcdirpre$lang.po"
8116             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8117             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8118             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8119           done
8120           # CATALOGS depends on both $ac_dir and the user's LINGUAS
8121           # environment variable.
8122           INST_LINGUAS=
8123           if test -n "$ALL_LINGUAS"; then
8124             for presentlang in $ALL_LINGUAS; do
8125               useit=no
8126               if test "%UNSET%" != "$LINGUAS"; then
8127                 desiredlanguages="$LINGUAS"
8128               else
8129                 desiredlanguages="$ALL_LINGUAS"
8130               fi
8131               for desiredlang in $desiredlanguages; do
8132                 # Use the presentlang catalog if desiredlang is
8133                 #   a. equal to presentlang, or
8134                 #   b. a variant of presentlang (because in this case,
8135                 #      presentlang can be used as a fallback for messages
8136                 #      which are not translated in the desiredlang catalog).
8137                 case "$desiredlang" in
8138                   "$presentlang"*) useit=yes;;
8139                 esac
8140               done
8141               if test $useit = yes; then
8142                 INST_LINGUAS="$INST_LINGUAS $presentlang"
8143               fi
8144             done
8145           fi
8146           CATALOGS=
8147           if test -n "$INST_LINGUAS"; then
8148             for lang in $INST_LINGUAS; do
8149               CATALOGS="$CATALOGS $lang.gmo"
8150             done
8151           fi
8152           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8153           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"
8154           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8155             if test -f "$f"; then
8156               case "$f" in
8157                 *.orig | *.bak | *~) ;;
8158                 *) cat "$f" >> "$ac_dir/Makefile" ;;
8159               esac
8160             fi
8161           done
8162         fi
8163         ;;
8164       esac
8165     done ;;
8166
8167   esac
8168 done # for ac_tag
8169
8170
8171 as_fn_exit 0
8172 _ACEOF
8173 ac_clean_files=$ac_clean_files_save
8174
8175 test $ac_write_fail = 0 ||
8176   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8177
8178
8179 # configure is writing to config.log, and then calls config.status.
8180 # config.status does its own redirection, appending to config.log.
8181 # Unfortunately, on DOS this fails, as config.log is still kept open
8182 # by configure, so config.status won't be able to write to it; its
8183 # output is simply discarded.  So we exec the FD to /dev/null,
8184 # effectively closing config.log, so it can be properly (re)opened and
8185 # appended to by config.status.  When coming back to configure, we
8186 # need to make the FD available again.
8187 if test "$no_create" != yes; then
8188   ac_cs_success=:
8189   ac_config_status_args=
8190   test "$silent" = yes &&
8191     ac_config_status_args="$ac_config_status_args --quiet"
8192   exec 5>/dev/null
8193   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8194   exec 5>>config.log
8195   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8196   # would make configure fail if this is the last instruction.
8197   $ac_cs_success || as_fn_exit 1
8198 fi
8199 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8201 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8202 fi
8203