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