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