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