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