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