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