OSDN Git Service

ソースコード登録
[tsparser/tsparser.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for tsparser 20110219.
4 #
5 # Report bugs to <koukou@users.sourceforge.jp>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: koukou@users.sourceforge.jp about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='tsparser'
554 PACKAGE_TARNAME='tsparser'
555 PACKAGE_VERSION='20110219'
556 PACKAGE_STRING='tsparser 20110219'
557 PACKAGE_BUGREPORT='koukou@users.sourceforge.jp'
558 PACKAGE_URL=''
559
560 ac_unique_file="src/tsparser.cpp"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_header_list=
598 ac_func_list=
599 ac_subst_vars='am__EXEEXT_FALSE
600 am__EXEEXT_TRUE
601 LTLIBOBJS
602 LIBOBJS
603 EGREP
604 GREP
605 CPP
606 RANLIB
607 am__fastdepCC_FALSE
608 am__fastdepCC_TRUE
609 CCDEPMODE
610 ac_ct_CC
611 CFLAGS
612 CC
613 am__fastdepCXX_FALSE
614 am__fastdepCXX_TRUE
615 CXXDEPMODE
616 AMDEPBACKSLASH
617 AMDEP_FALSE
618 AMDEP_TRUE
619 am__quote
620 am__include
621 DEPDIR
622 OBJEXT
623 EXEEXT
624 ac_ct_CXX
625 CPPFLAGS
626 LDFLAGS
627 CXXFLAGS
628 CXX
629 am__untar
630 am__tar
631 AMTAR
632 am__leading_dot
633 SET_MAKE
634 AWK
635 mkdir_p
636 MKDIR_P
637 INSTALL_STRIP_PROGRAM
638 STRIP
639 install_sh
640 MAKEINFO
641 AUTOHEADER
642 AUTOMAKE
643 AUTOCONF
644 ACLOCAL
645 VERSION
646 PACKAGE
647 CYGPATH_W
648 am__isrc
649 INSTALL_DATA
650 INSTALL_SCRIPT
651 INSTALL_PROGRAM
652 target_alias
653 host_alias
654 build_alias
655 LIBS
656 ECHO_T
657 ECHO_N
658 ECHO_C
659 DEFS
660 mandir
661 localedir
662 libdir
663 psdir
664 pdfdir
665 dvidir
666 htmldir
667 infodir
668 docdir
669 oldincludedir
670 includedir
671 localstatedir
672 sharedstatedir
673 sysconfdir
674 datadir
675 datarootdir
676 libexecdir
677 sbindir
678 bindir
679 program_transform_name
680 prefix
681 exec_prefix
682 PACKAGE_URL
683 PACKAGE_BUGREPORT
684 PACKAGE_STRING
685 PACKAGE_VERSION
686 PACKAGE_TARNAME
687 PACKAGE_NAME
688 PATH_SEPARATOR
689 SHELL'
690 ac_subst_files=''
691 ac_user_opts='
692 enable_option_checking
693 enable_dependency_tracking
694 '
695       ac_precious_vars='build_alias
696 host_alias
697 target_alias
698 CXX
699 CXXFLAGS
700 LDFLAGS
701 LIBS
702 CPPFLAGS
703 CCC
704 CC
705 CFLAGS
706 CPP'
707
708
709 # Initialize some variables set by options.
710 ac_init_help=
711 ac_init_version=false
712 ac_unrecognized_opts=
713 ac_unrecognized_sep=
714 # The variables have the same names as the options, with
715 # dashes changed to underlines.
716 cache_file=/dev/null
717 exec_prefix=NONE
718 no_create=
719 no_recursion=
720 prefix=NONE
721 program_prefix=NONE
722 program_suffix=NONE
723 program_transform_name=s,x,x,
724 silent=
725 site=
726 srcdir=
727 verbose=
728 x_includes=NONE
729 x_libraries=NONE
730
731 # Installation directory options.
732 # These are left unexpanded so users can "make install exec_prefix=/foo"
733 # and all the variables that are supposed to be based on exec_prefix
734 # by default will actually change.
735 # Use braces instead of parens because sh, perl, etc. also accept them.
736 # (The list follows the same order as the GNU Coding Standards.)
737 bindir='${exec_prefix}/bin'
738 sbindir='${exec_prefix}/sbin'
739 libexecdir='${exec_prefix}/libexec'
740 datarootdir='${prefix}/share'
741 datadir='${datarootdir}'
742 sysconfdir='${prefix}/etc'
743 sharedstatedir='${prefix}/com'
744 localstatedir='${prefix}/var'
745 includedir='${prefix}/include'
746 oldincludedir='/usr/include'
747 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
748 infodir='${datarootdir}/info'
749 htmldir='${docdir}'
750 dvidir='${docdir}'
751 pdfdir='${docdir}'
752 psdir='${docdir}'
753 libdir='${exec_prefix}/lib'
754 localedir='${datarootdir}/locale'
755 mandir='${datarootdir}/man'
756
757 ac_prev=
758 ac_dashdash=
759 for ac_option
760 do
761   # If the previous option needs an argument, assign it.
762   if test -n "$ac_prev"; then
763     eval $ac_prev=\$ac_option
764     ac_prev=
765     continue
766   fi
767
768   case $ac_option in
769   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
770   *)    ac_optarg=yes ;;
771   esac
772
773   # Accept the important Cygnus configure options, so we can diagnose typos.
774
775   case $ac_dashdash$ac_option in
776   --)
777     ac_dashdash=yes ;;
778
779   -bindir | --bindir | --bindi | --bind | --bin | --bi)
780     ac_prev=bindir ;;
781   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
782     bindir=$ac_optarg ;;
783
784   -build | --build | --buil | --bui | --bu)
785     ac_prev=build_alias ;;
786   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
787     build_alias=$ac_optarg ;;
788
789   -cache-file | --cache-file | --cache-fil | --cache-fi \
790   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
791     ac_prev=cache_file ;;
792   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
793   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
794     cache_file=$ac_optarg ;;
795
796   --config-cache | -C)
797     cache_file=config.cache ;;
798
799   -datadir | --datadir | --datadi | --datad)
800     ac_prev=datadir ;;
801   -datadir=* | --datadir=* | --datadi=* | --datad=*)
802     datadir=$ac_optarg ;;
803
804   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
805   | --dataroo | --dataro | --datar)
806     ac_prev=datarootdir ;;
807   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
808   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
809     datarootdir=$ac_optarg ;;
810
811   -disable-* | --disable-*)
812     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
813     # Reject names that are not valid shell variable names.
814     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
815       as_fn_error "invalid feature name: $ac_useropt"
816     ac_useropt_orig=$ac_useropt
817     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
818     case $ac_user_opts in
819       *"
820 "enable_$ac_useropt"
821 "*) ;;
822       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
823          ac_unrecognized_sep=', ';;
824     esac
825     eval enable_$ac_useropt=no ;;
826
827   -docdir | --docdir | --docdi | --doc | --do)
828     ac_prev=docdir ;;
829   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
830     docdir=$ac_optarg ;;
831
832   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
833     ac_prev=dvidir ;;
834   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
835     dvidir=$ac_optarg ;;
836
837   -enable-* | --enable-*)
838     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
839     # Reject names that are not valid shell variable names.
840     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
841       as_fn_error "invalid feature name: $ac_useropt"
842     ac_useropt_orig=$ac_useropt
843     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
844     case $ac_user_opts in
845       *"
846 "enable_$ac_useropt"
847 "*) ;;
848       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
849          ac_unrecognized_sep=', ';;
850     esac
851     eval enable_$ac_useropt=\$ac_optarg ;;
852
853   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
854   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
855   | --exec | --exe | --ex)
856     ac_prev=exec_prefix ;;
857   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
858   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
859   | --exec=* | --exe=* | --ex=*)
860     exec_prefix=$ac_optarg ;;
861
862   -gas | --gas | --ga | --g)
863     # Obsolete; use --with-gas.
864     with_gas=yes ;;
865
866   -help | --help | --hel | --he | -h)
867     ac_init_help=long ;;
868   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
869     ac_init_help=recursive ;;
870   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
871     ac_init_help=short ;;
872
873   -host | --host | --hos | --ho)
874     ac_prev=host_alias ;;
875   -host=* | --host=* | --hos=* | --ho=*)
876     host_alias=$ac_optarg ;;
877
878   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
879     ac_prev=htmldir ;;
880   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
881   | --ht=*)
882     htmldir=$ac_optarg ;;
883
884   -includedir | --includedir | --includedi | --included | --include \
885   | --includ | --inclu | --incl | --inc)
886     ac_prev=includedir ;;
887   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
888   | --includ=* | --inclu=* | --incl=* | --inc=*)
889     includedir=$ac_optarg ;;
890
891   -infodir | --infodir | --infodi | --infod | --info | --inf)
892     ac_prev=infodir ;;
893   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
894     infodir=$ac_optarg ;;
895
896   -libdir | --libdir | --libdi | --libd)
897     ac_prev=libdir ;;
898   -libdir=* | --libdir=* | --libdi=* | --libd=*)
899     libdir=$ac_optarg ;;
900
901   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
902   | --libexe | --libex | --libe)
903     ac_prev=libexecdir ;;
904   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
905   | --libexe=* | --libex=* | --libe=*)
906     libexecdir=$ac_optarg ;;
907
908   -localedir | --localedir | --localedi | --localed | --locale)
909     ac_prev=localedir ;;
910   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
911     localedir=$ac_optarg ;;
912
913   -localstatedir | --localstatedir | --localstatedi | --localstated \
914   | --localstate | --localstat | --localsta | --localst | --locals)
915     ac_prev=localstatedir ;;
916   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
917   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
918     localstatedir=$ac_optarg ;;
919
920   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
921     ac_prev=mandir ;;
922   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
923     mandir=$ac_optarg ;;
924
925   -nfp | --nfp | --nf)
926     # Obsolete; use --without-fp.
927     with_fp=no ;;
928
929   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
930   | --no-cr | --no-c | -n)
931     no_create=yes ;;
932
933   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
934   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
935     no_recursion=yes ;;
936
937   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
938   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
939   | --oldin | --oldi | --old | --ol | --o)
940     ac_prev=oldincludedir ;;
941   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
942   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
943   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
944     oldincludedir=$ac_optarg ;;
945
946   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
947     ac_prev=prefix ;;
948   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
949     prefix=$ac_optarg ;;
950
951   -program-prefix | --program-prefix | --program-prefi | --program-pref \
952   | --program-pre | --program-pr | --program-p)
953     ac_prev=program_prefix ;;
954   -program-prefix=* | --program-prefix=* | --program-prefi=* \
955   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
956     program_prefix=$ac_optarg ;;
957
958   -program-suffix | --program-suffix | --program-suffi | --program-suff \
959   | --program-suf | --program-su | --program-s)
960     ac_prev=program_suffix ;;
961   -program-suffix=* | --program-suffix=* | --program-suffi=* \
962   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
963     program_suffix=$ac_optarg ;;
964
965   -program-transform-name | --program-transform-name \
966   | --program-transform-nam | --program-transform-na \
967   | --program-transform-n | --program-transform- \
968   | --program-transform | --program-transfor \
969   | --program-transfo | --program-transf \
970   | --program-trans | --program-tran \
971   | --progr-tra | --program-tr | --program-t)
972     ac_prev=program_transform_name ;;
973   -program-transform-name=* | --program-transform-name=* \
974   | --program-transform-nam=* | --program-transform-na=* \
975   | --program-transform-n=* | --program-transform-=* \
976   | --program-transform=* | --program-transfor=* \
977   | --program-transfo=* | --program-transf=* \
978   | --program-trans=* | --program-tran=* \
979   | --progr-tra=* | --program-tr=* | --program-t=*)
980     program_transform_name=$ac_optarg ;;
981
982   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
983     ac_prev=pdfdir ;;
984   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
985     pdfdir=$ac_optarg ;;
986
987   -psdir | --psdir | --psdi | --psd | --ps)
988     ac_prev=psdir ;;
989   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
990     psdir=$ac_optarg ;;
991
992   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
993   | -silent | --silent | --silen | --sile | --sil)
994     silent=yes ;;
995
996   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997     ac_prev=sbindir ;;
998   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999   | --sbi=* | --sb=*)
1000     sbindir=$ac_optarg ;;
1001
1002   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1003   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1004   | --sharedst | --shareds | --shared | --share | --shar \
1005   | --sha | --sh)
1006     ac_prev=sharedstatedir ;;
1007   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1008   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1009   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010   | --sha=* | --sh=*)
1011     sharedstatedir=$ac_optarg ;;
1012
1013   -site | --site | --sit)
1014     ac_prev=site ;;
1015   -site=* | --site=* | --sit=*)
1016     site=$ac_optarg ;;
1017
1018   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019     ac_prev=srcdir ;;
1020   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1021     srcdir=$ac_optarg ;;
1022
1023   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1024   | --syscon | --sysco | --sysc | --sys | --sy)
1025     ac_prev=sysconfdir ;;
1026   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1027   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1028     sysconfdir=$ac_optarg ;;
1029
1030   -target | --target | --targe | --targ | --tar | --ta | --t)
1031     ac_prev=target_alias ;;
1032   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1033     target_alias=$ac_optarg ;;
1034
1035   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1036     verbose=yes ;;
1037
1038   -version | --version | --versio | --versi | --vers | -V)
1039     ac_init_version=: ;;
1040
1041   -with-* | --with-*)
1042     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1043     # Reject names that are not valid shell variable names.
1044     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045       as_fn_error "invalid package name: $ac_useropt"
1046     ac_useropt_orig=$ac_useropt
1047     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048     case $ac_user_opts in
1049       *"
1050 "with_$ac_useropt"
1051 "*) ;;
1052       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1053          ac_unrecognized_sep=', ';;
1054     esac
1055     eval with_$ac_useropt=\$ac_optarg ;;
1056
1057   -without-* | --without-*)
1058     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1059     # Reject names that are not valid shell variable names.
1060     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061       as_fn_error "invalid package name: $ac_useropt"
1062     ac_useropt_orig=$ac_useropt
1063     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064     case $ac_user_opts in
1065       *"
1066 "with_$ac_useropt"
1067 "*) ;;
1068       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1069          ac_unrecognized_sep=', ';;
1070     esac
1071     eval with_$ac_useropt=no ;;
1072
1073   --x)
1074     # Obsolete; use --with-x.
1075     with_x=yes ;;
1076
1077   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1078   | --x-incl | --x-inc | --x-in | --x-i)
1079     ac_prev=x_includes ;;
1080   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1081   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1082     x_includes=$ac_optarg ;;
1083
1084   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1085   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1086     ac_prev=x_libraries ;;
1087   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1088   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1089     x_libraries=$ac_optarg ;;
1090
1091   -*) as_fn_error "unrecognized option: \`$ac_option'
1092 Try \`$0 --help' for more information."
1093     ;;
1094
1095   *=*)
1096     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097     # Reject names that are not valid shell variable names.
1098     case $ac_envvar in #(
1099       '' | [0-9]* | *[!_$as_cr_alnum]* )
1100       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1101     esac
1102     eval $ac_envvar=\$ac_optarg
1103     export $ac_envvar ;;
1104
1105   *)
1106     # FIXME: should be removed in autoconf 3.0.
1107     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1108     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1110     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1111     ;;
1112
1113   esac
1114 done
1115
1116 if test -n "$ac_prev"; then
1117   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1118   as_fn_error "missing argument to $ac_option"
1119 fi
1120
1121 if test -n "$ac_unrecognized_opts"; then
1122   case $enable_option_checking in
1123     no) ;;
1124     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1125     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1126   esac
1127 fi
1128
1129 # Check all directory arguments for consistency.
1130 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1131                 datadir sysconfdir sharedstatedir localstatedir includedir \
1132                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1133                 libdir localedir mandir
1134 do
1135   eval ac_val=\$$ac_var
1136   # Remove trailing slashes.
1137   case $ac_val in
1138     */ )
1139       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1140       eval $ac_var=\$ac_val;;
1141   esac
1142   # Be sure to have absolute directory names.
1143   case $ac_val in
1144     [\\/$]* | ?:[\\/]* )  continue;;
1145     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1146   esac
1147   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1148 done
1149
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1153 build=$build_alias
1154 host=$host_alias
1155 target=$target_alias
1156
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x; then
1159   if test "x$build_alias" = x; then
1160     cross_compiling=maybe
1161     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162     If a cross compiler is detected then cross compile mode will be used." >&2
1163   elif test "x$build_alias" != "x$host_alias"; then
1164     cross_compiling=yes
1165   fi
1166 fi
1167
1168 ac_tool_prefix=
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170
1171 test "$silent" = yes && exec 6>/dev/null
1172
1173
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177   as_fn_error "working directory cannot be determined"
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179   as_fn_error "pwd does not report name of working directory"
1180
1181
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184   ac_srcdir_defaulted=yes
1185   # Try the directory containing this script, then the parent directory.
1186   ac_confdir=`$as_dirname -- "$as_myself" ||
1187 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188          X"$as_myself" : 'X\(//\)[^/]' \| \
1189          X"$as_myself" : 'X\(//\)$' \| \
1190          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1191 $as_echo X"$as_myself" |
1192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193             s//\1/
1194             q
1195           }
1196           /^X\(\/\/\)[^/].*/{
1197             s//\1/
1198             q
1199           }
1200           /^X\(\/\/\)$/{
1201             s//\1/
1202             q
1203           }
1204           /^X\(\/\).*/{
1205             s//\1/
1206             q
1207           }
1208           s/.*/./; q'`
1209   srcdir=$ac_confdir
1210   if test ! -r "$srcdir/$ac_unique_file"; then
1211     srcdir=..
1212   fi
1213 else
1214   ac_srcdir_defaulted=no
1215 fi
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1219 fi
1220 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221 ac_abs_confdir=`(
1222         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1223         pwd)`
1224 # When building in place, set srcdir=.
1225 if test "$ac_abs_confdir" = "$ac_pwd"; then
1226   srcdir=.
1227 fi
1228 # Remove unnecessary trailing slashes from srcdir.
1229 # Double slashes in file names in object file debugging info
1230 # mess up M-x gdb in Emacs.
1231 case $srcdir in
1232 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233 esac
1234 for ac_var in $ac_precious_vars; do
1235   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1236   eval ac_env_${ac_var}_value=\$${ac_var}
1237   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1238   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1239 done
1240
1241 #
1242 # Report the --help message.
1243 #
1244 if test "$ac_init_help" = "long"; then
1245   # Omit some internal or obsolete options to make the list less imposing.
1246   # This message is too long to be a string in the A/UX 3.1 sh.
1247   cat <<_ACEOF
1248 \`configure' configures tsparser 20110219 to adapt to many kinds of systems.
1249
1250 Usage: $0 [OPTION]... [VAR=VALUE]...
1251
1252 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253 VAR=VALUE.  See below for descriptions of some of the useful variables.
1254
1255 Defaults for the options are specified in brackets.
1256
1257 Configuration:
1258   -h, --help              display this help and exit
1259       --help=short        display options specific to this package
1260       --help=recursive    display the short help of all the included packages
1261   -V, --version           display version information and exit
1262   -q, --quiet, --silent   do not print \`checking...' messages
1263       --cache-file=FILE   cache test results in FILE [disabled]
1264   -C, --config-cache      alias for \`--cache-file=config.cache'
1265   -n, --no-create         do not create output files
1266       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1267
1268 Installation directories:
1269   --prefix=PREFIX         install architecture-independent files in PREFIX
1270                           [$ac_default_prefix]
1271   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1272                           [PREFIX]
1273
1274 By default, \`make install' will install all the files in
1275 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1276 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1277 for instance \`--prefix=\$HOME'.
1278
1279 For better control, use the options below.
1280
1281 Fine tuning of the installation directories:
1282   --bindir=DIR            user executables [EPREFIX/bin]
1283   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1284   --libexecdir=DIR        program executables [EPREFIX/libexec]
1285   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1286   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1287   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1288   --libdir=DIR            object code libraries [EPREFIX/lib]
1289   --includedir=DIR        C header files [PREFIX/include]
1290   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1291   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1292   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1293   --infodir=DIR           info documentation [DATAROOTDIR/info]
1294   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1295   --mandir=DIR            man documentation [DATAROOTDIR/man]
1296   --docdir=DIR            documentation root [DATAROOTDIR/doc/tsparser]
1297   --htmldir=DIR           html documentation [DOCDIR]
1298   --dvidir=DIR            dvi documentation [DOCDIR]
1299   --pdfdir=DIR            pdf documentation [DOCDIR]
1300   --psdir=DIR             ps documentation [DOCDIR]
1301 _ACEOF
1302
1303   cat <<\_ACEOF
1304
1305 Program names:
1306   --program-prefix=PREFIX            prepend PREFIX to installed program names
1307   --program-suffix=SUFFIX            append SUFFIX to installed program names
1308   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1309 _ACEOF
1310 fi
1311
1312 if test -n "$ac_init_help"; then
1313   case $ac_init_help in
1314      short | recursive ) echo "Configuration of tsparser 20110219:";;
1315    esac
1316   cat <<\_ACEOF
1317
1318 Optional Features:
1319   --disable-option-checking  ignore unrecognized --enable/--with options
1320   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1321   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1322   --disable-dependency-tracking  speeds up one-time build
1323   --enable-dependency-tracking   do not reject slow dependency extractors
1324
1325 Some influential environment variables:
1326   CXX         C++ compiler command
1327   CXXFLAGS    C++ compiler flags
1328   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1329               nonstandard directory <lib dir>
1330   LIBS        libraries to pass to the linker, e.g. -l<library>
1331   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1332               you have headers in a nonstandard directory <include dir>
1333   CC          C compiler command
1334   CFLAGS      C compiler flags
1335   CPP         C preprocessor
1336
1337 Use these variables to override the choices made by `configure' or to help
1338 it to find libraries and programs with nonstandard names/locations.
1339
1340 Report bugs to <koukou@users.sourceforge.jp>.
1341 _ACEOF
1342 ac_status=$?
1343 fi
1344
1345 if test "$ac_init_help" = "recursive"; then
1346   # If there are subdirs, report their specific --help.
1347   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348     test -d "$ac_dir" ||
1349       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1350       continue
1351     ac_builddir=.
1352
1353 case "$ac_dir" in
1354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355 *)
1356   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1357   # A ".." for each directory in $ac_dir_suffix.
1358   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1359   case $ac_top_builddir_sub in
1360   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1362   esac ;;
1363 esac
1364 ac_abs_top_builddir=$ac_pwd
1365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366 # for backward compatibility:
1367 ac_top_builddir=$ac_top_build_prefix
1368
1369 case $srcdir in
1370   .)  # We are building in place.
1371     ac_srcdir=.
1372     ac_top_srcdir=$ac_top_builddir_sub
1373     ac_abs_top_srcdir=$ac_pwd ;;
1374   [\\/]* | ?:[\\/]* )  # Absolute name.
1375     ac_srcdir=$srcdir$ac_dir_suffix;
1376     ac_top_srcdir=$srcdir
1377     ac_abs_top_srcdir=$srcdir ;;
1378   *) # Relative name.
1379     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380     ac_top_srcdir=$ac_top_build_prefix$srcdir
1381     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1382 esac
1383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1384
1385     cd "$ac_dir" || { ac_status=$?; continue; }
1386     # Check for guested configure.
1387     if test -f "$ac_srcdir/configure.gnu"; then
1388       echo &&
1389       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390     elif test -f "$ac_srcdir/configure"; then
1391       echo &&
1392       $SHELL "$ac_srcdir/configure" --help=recursive
1393     else
1394       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1395     fi || ac_status=$?
1396     cd "$ac_pwd" || { ac_status=$?; break; }
1397   done
1398 fi
1399
1400 test -n "$ac_init_help" && exit $ac_status
1401 if $ac_init_version; then
1402   cat <<\_ACEOF
1403 tsparser configure 20110219
1404 generated by GNU Autoconf 2.65
1405
1406 Copyright (C) 2009 Free Software Foundation, Inc.
1407 This configure script is free software; the Free Software Foundation
1408 gives unlimited permission to copy, distribute and modify it.
1409 _ACEOF
1410   exit
1411 fi
1412
1413 ## ------------------------ ##
1414 ## Autoconf initialization. ##
1415 ## ------------------------ ##
1416
1417 # ac_fn_cxx_try_compile LINENO
1418 # ----------------------------
1419 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1420 ac_fn_cxx_try_compile ()
1421 {
1422   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1423   rm -f conftest.$ac_objext
1424   if { { ac_try="$ac_compile"
1425 case "(($ac_try" in
1426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1427   *) ac_try_echo=$ac_try;;
1428 esac
1429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1430 $as_echo "$ac_try_echo"; } >&5
1431   (eval "$ac_compile") 2>conftest.err
1432   ac_status=$?
1433   if test -s conftest.err; then
1434     grep -v '^ *+' conftest.err >conftest.er1
1435     cat conftest.er1 >&5
1436     mv -f conftest.er1 conftest.err
1437   fi
1438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1439   test $ac_status = 0; } && {
1440          test -z "$ac_cxx_werror_flag" ||
1441          test ! -s conftest.err
1442        } && test -s conftest.$ac_objext; then :
1443   ac_retval=0
1444 else
1445   $as_echo "$as_me: failed program was:" >&5
1446 sed 's/^/| /' conftest.$ac_ext >&5
1447
1448         ac_retval=1
1449 fi
1450   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1451   as_fn_set_status $ac_retval
1452
1453 } # ac_fn_cxx_try_compile
1454
1455 # ac_fn_c_try_compile LINENO
1456 # --------------------------
1457 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1458 ac_fn_c_try_compile ()
1459 {
1460   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1461   rm -f conftest.$ac_objext
1462   if { { ac_try="$ac_compile"
1463 case "(($ac_try" in
1464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1465   *) ac_try_echo=$ac_try;;
1466 esac
1467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468 $as_echo "$ac_try_echo"; } >&5
1469   (eval "$ac_compile") 2>conftest.err
1470   ac_status=$?
1471   if test -s conftest.err; then
1472     grep -v '^ *+' conftest.err >conftest.er1
1473     cat conftest.er1 >&5
1474     mv -f conftest.er1 conftest.err
1475   fi
1476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477   test $ac_status = 0; } && {
1478          test -z "$ac_c_werror_flag" ||
1479          test ! -s conftest.err
1480        } && test -s conftest.$ac_objext; then :
1481   ac_retval=0
1482 else
1483   $as_echo "$as_me: failed program was:" >&5
1484 sed 's/^/| /' conftest.$ac_ext >&5
1485
1486         ac_retval=1
1487 fi
1488   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1489   as_fn_set_status $ac_retval
1490
1491 } # ac_fn_c_try_compile
1492
1493 # ac_fn_c_try_cpp LINENO
1494 # ----------------------
1495 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1496 ac_fn_c_try_cpp ()
1497 {
1498   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499   if { { ac_try="$ac_cpp conftest.$ac_ext"
1500 case "(($ac_try" in
1501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502   *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1507   ac_status=$?
1508   if test -s conftest.err; then
1509     grep -v '^ *+' conftest.err >conftest.er1
1510     cat conftest.er1 >&5
1511     mv -f conftest.er1 conftest.err
1512   fi
1513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514   test $ac_status = 0; } >/dev/null && {
1515          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1516          test ! -s conftest.err
1517        }; then :
1518   ac_retval=0
1519 else
1520   $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1522
1523     ac_retval=1
1524 fi
1525   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1526   as_fn_set_status $ac_retval
1527
1528 } # ac_fn_c_try_cpp
1529
1530 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1531 # -------------------------------------------------------
1532 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1533 # the include files in INCLUDES and setting the cache variable VAR
1534 # accordingly.
1535 ac_fn_c_check_header_mongrel ()
1536 {
1537   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1540 $as_echo_n "checking for $2... " >&6; }
1541 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1542   $as_echo_n "(cached) " >&6
1543 fi
1544 eval ac_res=\$$3
1545                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1546 $as_echo "$ac_res" >&6; }
1547 else
1548   # Is the header compilable?
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1550 $as_echo_n "checking $2 usability... " >&6; }
1551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552 /* end confdefs.h.  */
1553 $4
1554 #include <$2>
1555 _ACEOF
1556 if ac_fn_c_try_compile "$LINENO"; then :
1557   ac_header_compiler=yes
1558 else
1559   ac_header_compiler=no
1560 fi
1561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1563 $as_echo "$ac_header_compiler" >&6; }
1564
1565 # Is the header present?
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1567 $as_echo_n "checking $2 presence... " >&6; }
1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h.  */
1570 #include <$2>
1571 _ACEOF
1572 if ac_fn_c_try_cpp "$LINENO"; then :
1573   ac_header_preproc=yes
1574 else
1575   ac_header_preproc=no
1576 fi
1577 rm -f conftest.err conftest.$ac_ext
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1579 $as_echo "$ac_header_preproc" >&6; }
1580
1581 # So?  What about this header?
1582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1583   yes:no: )
1584     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1585 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1586     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1587 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1588     ;;
1589   no:yes:* )
1590     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1591 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1592     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1593 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1594     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1595 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1596     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1597 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1598     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1599 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1600 ( cat <<\_ASBOX
1601 ## ------------------------------------------ ##
1602 ## Report this to koukou@users.sourceforge.jp ##
1603 ## ------------------------------------------ ##
1604 _ASBOX
1605      ) | sed "s/^/$as_me: WARNING:     /" >&2
1606     ;;
1607 esac
1608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609 $as_echo_n "checking for $2... " >&6; }
1610 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1611   $as_echo_n "(cached) " >&6
1612 else
1613   eval "$3=\$ac_header_compiler"
1614 fi
1615 eval ac_res=\$$3
1616                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1617 $as_echo "$ac_res" >&6; }
1618 fi
1619   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1620
1621 } # ac_fn_c_check_header_mongrel
1622
1623 # ac_fn_c_try_run LINENO
1624 # ----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1626 # that executables *can* be run.
1627 ac_fn_c_try_run ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   if { { ac_try="$ac_link"
1631 case "(($ac_try" in
1632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633   *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637   (eval "$ac_link") 2>&5
1638   ac_status=$?
1639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1641   { { case "(($ac_try" in
1642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643   *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647   (eval "$ac_try") 2>&5
1648   ac_status=$?
1649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650   test $ac_status = 0; }; }; then :
1651   ac_retval=0
1652 else
1653   $as_echo "$as_me: program exited with status $ac_status" >&5
1654        $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657        ac_retval=$ac_status
1658 fi
1659   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661   as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_run
1664
1665 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists and can be compiled using the include files in
1668 # INCLUDES, setting the cache variable VAR accordingly.
1669 ac_fn_c_check_header_compile ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1675   $as_echo_n "(cached) " >&6
1676 else
1677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h.  */
1679 $4
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"; then :
1683   eval "$3=yes"
1684 else
1685   eval "$3=no"
1686 fi
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 fi
1689 eval ac_res=\$$3
1690                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693
1694 } # ac_fn_c_check_header_compile
1695
1696 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1697 # -------------------------------------------
1698 # Tests whether TYPE exists after having included INCLUDES, setting cache
1699 # variable VAR accordingly.
1700 ac_fn_c_check_type ()
1701 {
1702   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 $as_echo_n "checking for $2... " >&6; }
1705 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1706   $as_echo_n "(cached) " >&6
1707 else
1708   eval "$3=no"
1709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h.  */
1711 $4
1712 int
1713 main ()
1714 {
1715 if (sizeof ($2))
1716          return 0;
1717   ;
1718   return 0;
1719 }
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h.  */
1724 $4
1725 int
1726 main ()
1727 {
1728 if (sizeof (($2)))
1729             return 0;
1730   ;
1731   return 0;
1732 }
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"; then :
1735
1736 else
1737   eval "$3=yes"
1738 fi
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 fi
1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 fi
1743 eval ac_res=\$$3
1744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747
1748 } # ac_fn_c_check_type
1749
1750 # ac_fn_c_find_intX_t LINENO BITS VAR
1751 # -----------------------------------
1752 # Finds a signed integer type with width BITS, setting cache variable VAR
1753 # accordingly.
1754 ac_fn_c_find_intX_t ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1758 $as_echo_n "checking for int$2_t... " >&6; }
1759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760   $as_echo_n "(cached) " >&6
1761 else
1762   eval "$3=no"
1763      # Order is important - never check a type that is potentially smaller
1764      # than half of the expected target width.
1765      for ac_type in int$2_t 'int' 'long int' \
1766          'long long int' 'short int' 'signed char'; do
1767        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h.  */
1769 $ac_includes_default
1770              enum { N = $2 / 2 - 1 };
1771 int
1772 main ()
1773 {
1774 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1775 test_array [0] = 0
1776
1777   ;
1778   return 0;
1779 }
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h.  */
1784 $ac_includes_default
1785                 enum { N = $2 / 2 - 1 };
1786 int
1787 main ()
1788 {
1789 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1790                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1791 test_array [0] = 0
1792
1793   ;
1794   return 0;
1795 }
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798
1799 else
1800   case $ac_type in #(
1801   int$2_t) :
1802     eval "$3=yes" ;; #(
1803   *) :
1804     eval "$3=\$ac_type" ;;
1805 esac
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810        eval as_val=\$$3
1811    if test "x$as_val" = x""no; then :
1812
1813 else
1814   break
1815 fi
1816      done
1817 fi
1818 eval ac_res=\$$3
1819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822
1823 } # ac_fn_c_find_intX_t
1824
1825 # ac_fn_c_find_uintX_t LINENO BITS VAR
1826 # ------------------------------------
1827 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1828 # accordingly.
1829 ac_fn_c_find_uintX_t ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1833 $as_echo_n "checking for uint$2_t... " >&6; }
1834 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835   $as_echo_n "(cached) " >&6
1836 else
1837   eval "$3=no"
1838      # Order is important - never check a type that is potentially smaller
1839      # than half of the expected target width.
1840      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1841          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1842        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h.  */
1844 $ac_includes_default
1845 int
1846 main ()
1847 {
1848 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1849 test_array [0] = 0
1850
1851   ;
1852   return 0;
1853 }
1854 _ACEOF
1855 if ac_fn_c_try_compile "$LINENO"; then :
1856   case $ac_type in #(
1857   uint$2_t) :
1858     eval "$3=yes" ;; #(
1859   *) :
1860     eval "$3=\$ac_type" ;;
1861 esac
1862 fi
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864        eval as_val=\$$3
1865    if test "x$as_val" = x""no; then :
1866
1867 else
1868   break
1869 fi
1870      done
1871 fi
1872 eval ac_res=\$$3
1873                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876
1877 } # ac_fn_c_find_uintX_t
1878
1879 # ac_fn_c_try_link LINENO
1880 # -----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_c_try_link ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   rm -f conftest.$ac_objext conftest$ac_exeext
1886   if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889   *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893   (eval "$ac_link") 2>conftest.err
1894   ac_status=$?
1895   if test -s conftest.err; then
1896     grep -v '^ *+' conftest.err >conftest.er1
1897     cat conftest.er1 >&5
1898     mv -f conftest.er1 conftest.err
1899   fi
1900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901   test $ac_status = 0; } && {
1902          test -z "$ac_c_werror_flag" ||
1903          test ! -s conftest.err
1904        } && test -s conftest$ac_exeext && {
1905          test "$cross_compiling" = yes ||
1906          $as_test_x conftest$ac_exeext
1907        }; then :
1908   ac_retval=0
1909 else
1910   $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913         ac_retval=1
1914 fi
1915   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917   # interfere with the next link command; also delete a directory that is
1918   # left behind by Apple's compiler.  We do this before executing the actions.
1919   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921   as_fn_set_status $ac_retval
1922
1923 } # ac_fn_c_try_link
1924
1925 # ac_fn_c_check_func LINENO FUNC VAR
1926 # ----------------------------------
1927 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1928 ac_fn_c_check_func ()
1929 {
1930   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934   $as_echo_n "(cached) " >&6
1935 else
1936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h.  */
1938 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1940 #define $2 innocuous_$2
1941
1942 /* System header to define __stub macros and hopefully few prototypes,
1943     which can conflict with char $2 (); below.
1944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1945     <limits.h> exists even on freestanding compilers.  */
1946
1947 #ifdef __STDC__
1948 # include <limits.h>
1949 #else
1950 # include <assert.h>
1951 #endif
1952
1953 #undef $2
1954
1955 /* Override any GCC internal prototype to avoid an error.
1956    Use char because int might match the return type of a GCC
1957    builtin and then its argument prototype would still apply.  */
1958 #ifdef __cplusplus
1959 extern "C"
1960 #endif
1961 char $2 ();
1962 /* The GNU C library defines this for functions which it implements
1963     to always fail with ENOSYS.  Some functions are actually named
1964     something starting with __ and the normal name is an alias.  */
1965 #if defined __stub_$2 || defined __stub___$2
1966 choke me
1967 #endif
1968
1969 int
1970 main ()
1971 {
1972 return $2 ();
1973   ;
1974   return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_link "$LINENO"; then :
1978   eval "$3=yes"
1979 else
1980   eval "$3=no"
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext \
1983     conftest$ac_exeext conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$3
1986                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989
1990 } # ac_fn_c_check_func
1991 cat >config.log <<_ACEOF
1992 This file contains any messages produced by compilers while
1993 running configure, to aid debugging if configure makes a mistake.
1994
1995 It was created by tsparser $as_me 20110219, which was
1996 generated by GNU Autoconf 2.65.  Invocation command line was
1997
1998   $ $0 $@
1999
2000 _ACEOF
2001 exec 5>>config.log
2002 {
2003 cat <<_ASUNAME
2004 ## --------- ##
2005 ## Platform. ##
2006 ## --------- ##
2007
2008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2013
2014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2015 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2016
2017 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2018 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2020 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2021 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2022 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2023 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2024
2025 _ASUNAME
2026
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030   IFS=$as_save_IFS
2031   test -z "$as_dir" && as_dir=.
2032     $as_echo "PATH: $as_dir"
2033   done
2034 IFS=$as_save_IFS
2035
2036 } >&5
2037
2038 cat >&5 <<_ACEOF
2039
2040
2041 ## ----------- ##
2042 ## Core tests. ##
2043 ## ----------- ##
2044
2045 _ACEOF
2046
2047
2048 # Keep a trace of the command line.
2049 # Strip out --no-create and --no-recursion so they do not pile up.
2050 # Strip out --silent because we don't want to record it for future runs.
2051 # Also quote any args containing shell meta-characters.
2052 # Make two passes to allow for proper duplicate-argument suppression.
2053 ac_configure_args=
2054 ac_configure_args0=
2055 ac_configure_args1=
2056 ac_must_keep_next=false
2057 for ac_pass in 1 2
2058 do
2059   for ac_arg
2060   do
2061     case $ac_arg in
2062     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2063     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2064     | -silent | --silent | --silen | --sile | --sil)
2065       continue ;;
2066     *\'*)
2067       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2068     esac
2069     case $ac_pass in
2070     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2071     2)
2072       as_fn_append ac_configure_args1 " '$ac_arg'"
2073       if test $ac_must_keep_next = true; then
2074         ac_must_keep_next=false # Got value, back to normal.
2075       else
2076         case $ac_arg in
2077           *=* | --config-cache | -C | -disable-* | --disable-* \
2078           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2079           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2080           | -with-* | --with-* | -without-* | --without-* | --x)
2081             case "$ac_configure_args0 " in
2082               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2083             esac
2084             ;;
2085           -* ) ac_must_keep_next=true ;;
2086         esac
2087       fi
2088       as_fn_append ac_configure_args " '$ac_arg'"
2089       ;;
2090     esac
2091   done
2092 done
2093 { ac_configure_args0=; unset ac_configure_args0;}
2094 { ac_configure_args1=; unset ac_configure_args1;}
2095
2096 # When interrupted or exit'd, cleanup temporary files, and complete
2097 # config.log.  We remove comments because anyway the quotes in there
2098 # would cause problems or look ugly.
2099 # WARNING: Use '\'' to represent an apostrophe within the trap.
2100 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2101 trap 'exit_status=$?
2102   # Save into config.log some information that might help in debugging.
2103   {
2104     echo
2105
2106     cat <<\_ASBOX
2107 ## ---------------- ##
2108 ## Cache variables. ##
2109 ## ---------------- ##
2110 _ASBOX
2111     echo
2112     # The following way of writing the cache mishandles newlines in values,
2113 (
2114   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2115     eval ac_val=\$$ac_var
2116     case $ac_val in #(
2117     *${as_nl}*)
2118       case $ac_var in #(
2119       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2120 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2121       esac
2122       case $ac_var in #(
2123       _ | IFS | as_nl) ;; #(
2124       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2125       *) { eval $ac_var=; unset $ac_var;} ;;
2126       esac ;;
2127     esac
2128   done
2129   (set) 2>&1 |
2130     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2131     *${as_nl}ac_space=\ *)
2132       sed -n \
2133         "s/'\''/'\''\\\\'\'''\''/g;
2134           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2135       ;; #(
2136     *)
2137       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2138       ;;
2139     esac |
2140     sort
2141 )
2142     echo
2143
2144     cat <<\_ASBOX
2145 ## ----------------- ##
2146 ## Output variables. ##
2147 ## ----------------- ##
2148 _ASBOX
2149     echo
2150     for ac_var in $ac_subst_vars
2151     do
2152       eval ac_val=\$$ac_var
2153       case $ac_val in
2154       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155       esac
2156       $as_echo "$ac_var='\''$ac_val'\''"
2157     done | sort
2158     echo
2159
2160     if test -n "$ac_subst_files"; then
2161       cat <<\_ASBOX
2162 ## ------------------- ##
2163 ## File substitutions. ##
2164 ## ------------------- ##
2165 _ASBOX
2166       echo
2167       for ac_var in $ac_subst_files
2168       do
2169         eval ac_val=\$$ac_var
2170         case $ac_val in
2171         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172         esac
2173         $as_echo "$ac_var='\''$ac_val'\''"
2174       done | sort
2175       echo
2176     fi
2177
2178     if test -s confdefs.h; then
2179       cat <<\_ASBOX
2180 ## ----------- ##
2181 ## confdefs.h. ##
2182 ## ----------- ##
2183 _ASBOX
2184       echo
2185       cat confdefs.h
2186       echo
2187     fi
2188     test "$ac_signal" != 0 &&
2189       $as_echo "$as_me: caught signal $ac_signal"
2190     $as_echo "$as_me: exit $exit_status"
2191   } >&5
2192   rm -f core *.core core.conftest.* &&
2193     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2194     exit $exit_status
2195 ' 0
2196 for ac_signal in 1 2 13 15; do
2197   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2198 done
2199 ac_signal=0
2200
2201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2202 rm -f -r conftest* confdefs.h
2203
2204 $as_echo "/* confdefs.h */" > confdefs.h
2205
2206 # Predefined preprocessor variables.
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_NAME "$PACKAGE_NAME"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2214 _ACEOF
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2218 _ACEOF
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_STRING "$PACKAGE_STRING"
2222 _ACEOF
2223
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2226 _ACEOF
2227
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_URL "$PACKAGE_URL"
2230 _ACEOF
2231
2232
2233 # Let the site file select an alternate cache file if it wants to.
2234 # Prefer an explicitly selected file to automatically selected ones.
2235 ac_site_file1=NONE
2236 ac_site_file2=NONE
2237 if test -n "$CONFIG_SITE"; then
2238   ac_site_file1=$CONFIG_SITE
2239 elif test "x$prefix" != xNONE; then
2240   ac_site_file1=$prefix/share/config.site
2241   ac_site_file2=$prefix/etc/config.site
2242 else
2243   ac_site_file1=$ac_default_prefix/share/config.site
2244   ac_site_file2=$ac_default_prefix/etc/config.site
2245 fi
2246 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2247 do
2248   test "x$ac_site_file" = xNONE && continue
2249   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2250     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2251 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2252     sed 's/^/| /' "$ac_site_file" >&5
2253     . "$ac_site_file"
2254   fi
2255 done
2256
2257 if test -r "$cache_file"; then
2258   # Some versions of bash will fail to source /dev/null (special files
2259   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2260   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2261     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2262 $as_echo "$as_me: loading cache $cache_file" >&6;}
2263     case $cache_file in
2264       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2265       *)                      . "./$cache_file";;
2266     esac
2267   fi
2268 else
2269   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2270 $as_echo "$as_me: creating cache $cache_file" >&6;}
2271   >$cache_file
2272 fi
2273
2274 as_fn_append ac_header_list " sys/time.h"
2275 as_fn_append ac_header_list " unistd.h"
2276 as_fn_append ac_func_list " alarm"
2277 # Check that the precious variables saved in the cache have kept the same
2278 # value.
2279 ac_cache_corrupted=false
2280 for ac_var in $ac_precious_vars; do
2281   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2282   eval ac_new_set=\$ac_env_${ac_var}_set
2283   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2284   eval ac_new_val=\$ac_env_${ac_var}_value
2285   case $ac_old_set,$ac_new_set in
2286     set,)
2287       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2288 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2289       ac_cache_corrupted=: ;;
2290     ,set)
2291       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2292 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2293       ac_cache_corrupted=: ;;
2294     ,);;
2295     *)
2296       if test "x$ac_old_val" != "x$ac_new_val"; then
2297         # differences in whitespace do not lead to failure.
2298         ac_old_val_w=`echo x $ac_old_val`
2299         ac_new_val_w=`echo x $ac_new_val`
2300         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2301           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2302 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2303           ac_cache_corrupted=:
2304         else
2305           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2306 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2307           eval $ac_var=\$ac_old_val
2308         fi
2309         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2310 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2311         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2312 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2313       fi;;
2314   esac
2315   # Pass precious variables to config.status.
2316   if test "$ac_new_set" = set; then
2317     case $ac_new_val in
2318     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2319     *) ac_arg=$ac_var=$ac_new_val ;;
2320     esac
2321     case " $ac_configure_args " in
2322       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2323       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2324     esac
2325   fi
2326 done
2327 if $ac_cache_corrupted; then
2328   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2330   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2331 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2332   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2333 fi
2334 ## -------------------- ##
2335 ## Main body of script. ##
2336 ## -------------------- ##
2337
2338 ac_ext=c
2339 ac_cpp='$CPP $CPPFLAGS'
2340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343
2344
2345 am__api_version='1.11'
2346
2347 ac_aux_dir=
2348 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2349   for ac_t in install-sh install.sh shtool; do
2350     if test -f "$ac_dir/$ac_t"; then
2351       ac_aux_dir=$ac_dir
2352       ac_install_sh="$ac_aux_dir/$ac_t -c"
2353       break 2
2354     fi
2355   done
2356 done
2357 if test -z "$ac_aux_dir"; then
2358   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2359 fi
2360
2361 # These three variables are undocumented and unsupported,
2362 # and are intended to be withdrawn in a future Autoconf release.
2363 # They can cause serious problems if a builder's source tree is in a directory
2364 # whose full name contains unusual characters.
2365 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2366 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2367 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2368
2369
2370 # Find a good install program.  We prefer a C program (faster),
2371 # so one script is as good as another.  But avoid the broken or
2372 # incompatible versions:
2373 # SysV /etc/install, /usr/sbin/install
2374 # SunOS /usr/etc/install
2375 # IRIX /sbin/install
2376 # AIX /bin/install
2377 # AmigaOS /C/install, which installs bootblocks on floppy discs
2378 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2379 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2380 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2381 # OS/2's system install, which has a completely different semantic
2382 # ./install, which can be erroneously created by make from ./install.sh.
2383 # Reject install programs that cannot install multiple files.
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2385 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2386 if test -z "$INSTALL"; then
2387 if test "${ac_cv_path_install+set}" = set; then :
2388   $as_echo_n "(cached) " >&6
2389 else
2390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393   IFS=$as_save_IFS
2394   test -z "$as_dir" && as_dir=.
2395     # Account for people who put trailing slashes in PATH elements.
2396 case $as_dir/ in #((
2397   ./ | .// | /[cC]/* | \
2398   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2399   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2400   /usr/ucb/* ) ;;
2401   *)
2402     # OSF1 and SCO ODT 3.0 have their own names for install.
2403     # Don't use installbsd from OSF since it installs stuff as root
2404     # by default.
2405     for ac_prog in ginstall scoinst install; do
2406       for ac_exec_ext in '' $ac_executable_extensions; do
2407         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2408           if test $ac_prog = install &&
2409             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2410             # AIX install.  It has an incompatible calling convention.
2411             :
2412           elif test $ac_prog = install &&
2413             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414             # program-specific install script used by HP pwplus--don't use.
2415             :
2416           else
2417             rm -rf conftest.one conftest.two conftest.dir
2418             echo one > conftest.one
2419             echo two > conftest.two
2420             mkdir conftest.dir
2421             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2422               test -s conftest.one && test -s conftest.two &&
2423               test -s conftest.dir/conftest.one &&
2424               test -s conftest.dir/conftest.two
2425             then
2426               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2427               break 3
2428             fi
2429           fi
2430         fi
2431       done
2432     done
2433     ;;
2434 esac
2435
2436   done
2437 IFS=$as_save_IFS
2438
2439 rm -rf conftest.one conftest.two conftest.dir
2440
2441 fi
2442   if test "${ac_cv_path_install+set}" = set; then
2443     INSTALL=$ac_cv_path_install
2444   else
2445     # As a last resort, use the slow shell script.  Don't cache a
2446     # value for INSTALL within a source directory, because that will
2447     # break other packages using the cache if that directory is
2448     # removed, or if the value is a relative name.
2449     INSTALL=$ac_install_sh
2450   fi
2451 fi
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2453 $as_echo "$INSTALL" >&6; }
2454
2455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2456 # It thinks the first close brace ends the variable substitution.
2457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2458
2459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2460
2461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2462
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2464 $as_echo_n "checking whether build environment is sane... " >&6; }
2465 # Just in case
2466 sleep 1
2467 echo timestamp > conftest.file
2468 # Reject unsafe characters in $srcdir or the absolute working directory
2469 # name.  Accept space and tab only in the latter.
2470 am_lf='
2471 '
2472 case `pwd` in
2473   *[\\\"\#\$\&\'\`$am_lf]*)
2474     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2475 esac
2476 case $srcdir in
2477   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2478     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2479 esac
2480
2481 # Do `set' in a subshell so we don't clobber the current shell's
2482 # arguments.  Must try -L first in case configure is actually a
2483 # symlink; some systems play weird games with the mod time of symlinks
2484 # (eg FreeBSD returns the mod time of the symlink's containing
2485 # directory).
2486 if (
2487    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2488    if test "$*" = "X"; then
2489       # -L didn't work.
2490       set X `ls -t "$srcdir/configure" conftest.file`
2491    fi
2492    rm -f conftest.file
2493    if test "$*" != "X $srcdir/configure conftest.file" \
2494       && test "$*" != "X conftest.file $srcdir/configure"; then
2495
2496       # If neither matched, then we have a broken ls.  This can happen
2497       # if, for instance, CONFIG_SHELL is bash and it inherits a
2498       # broken ls alias from the environment.  This has actually
2499       # happened.  Such a system could not be considered "sane".
2500       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2501 alias in your environment" "$LINENO" 5
2502    fi
2503
2504    test "$2" = conftest.file
2505    )
2506 then
2507    # Ok.
2508    :
2509 else
2510    as_fn_error "newly created file is older than distributed files!
2511 Check your system clock" "$LINENO" 5
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2514 $as_echo "yes" >&6; }
2515 test "$program_prefix" != NONE &&
2516   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2517 # Use a double $ so make ignores it.
2518 test "$program_suffix" != NONE &&
2519   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2520 # Double any \ or $.
2521 # By default was `s,x,x', remove it if useless.
2522 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2523 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2524
2525 # expand $ac_aux_dir to an absolute path
2526 am_aux_dir=`cd $ac_aux_dir && pwd`
2527
2528 if test x"${MISSING+set}" != xset; then
2529   case $am_aux_dir in
2530   *\ * | *\     *)
2531     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2532   *)
2533     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2534   esac
2535 fi
2536 # Use eval to expand $SHELL
2537 if eval "$MISSING --run true"; then
2538   am_missing_run="$MISSING --run "
2539 else
2540   am_missing_run=
2541   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2542 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2543 fi
2544
2545 if test x"${install_sh}" != xset; then
2546   case $am_aux_dir in
2547   *\ * | *\     *)
2548     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2549   *)
2550     install_sh="\${SHELL} $am_aux_dir/install-sh"
2551   esac
2552 fi
2553
2554 # Installed binaries are usually stripped using `strip' when the user
2555 # run `make install-strip'.  However `strip' might not be the right
2556 # tool to use in cross-compilation environments, therefore Automake
2557 # will honor the `STRIP' environment variable to overrule this program.
2558 if test "$cross_compiling" != no; then
2559   if test -n "$ac_tool_prefix"; then
2560   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}strip; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if test "${ac_cv_prog_STRIP+set}" = set; then :
2565   $as_echo_n "(cached) " >&6
2566 else
2567   if test -n "$STRIP"; then
2568   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573   IFS=$as_save_IFS
2574   test -z "$as_dir" && as_dir=.
2575     for ac_exec_ext in '' $ac_executable_extensions; do
2576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579     break 2
2580   fi
2581 done
2582   done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 STRIP=$ac_cv_prog_STRIP
2588 if test -n "$STRIP"; then
2589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2590 $as_echo "$STRIP" >&6; }
2591 else
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2594 fi
2595
2596
2597 fi
2598 if test -z "$ac_cv_prog_STRIP"; then
2599   ac_ct_STRIP=$STRIP
2600   # Extract the first word of "strip", so it can be a program name with args.
2601 set dummy strip; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2605   $as_echo_n "(cached) " >&6
2606 else
2607   if test -n "$ac_ct_STRIP"; then
2608   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615     for ac_exec_ext in '' $ac_executable_extensions; do
2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617     ac_cv_prog_ac_ct_STRIP="strip"
2618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622   done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2628 if test -n "$ac_ct_STRIP"; then
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2630 $as_echo "$ac_ct_STRIP" >&6; }
2631 else
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636   if test "x$ac_ct_STRIP" = x; then
2637     STRIP=":"
2638   else
2639     case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643 ac_tool_warned=yes ;;
2644 esac
2645     STRIP=$ac_ct_STRIP
2646   fi
2647 else
2648   STRIP="$ac_cv_prog_STRIP"
2649 fi
2650
2651 fi
2652 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2655 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2656 if test -z "$MKDIR_P"; then
2657   if test "${ac_cv_path_mkdir+set}" = set; then :
2658   $as_echo_n "(cached) " >&6
2659 else
2660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2662 do
2663   IFS=$as_save_IFS
2664   test -z "$as_dir" && as_dir=.
2665     for ac_prog in mkdir gmkdir; do
2666          for ac_exec_ext in '' $ac_executable_extensions; do
2667            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2668            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2669              'mkdir (GNU coreutils) '* | \
2670              'mkdir (coreutils) '* | \
2671              'mkdir (fileutils) '4.1*)
2672                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2673                break 3;;
2674            esac
2675          done
2676        done
2677   done
2678 IFS=$as_save_IFS
2679
2680 fi
2681
2682   test -d ./--version && rmdir ./--version
2683   if test "${ac_cv_path_mkdir+set}" = set; then
2684     MKDIR_P="$ac_cv_path_mkdir -p"
2685   else
2686     # As a last resort, use the slow shell script.  Don't cache a
2687     # value for MKDIR_P within a source directory, because that will
2688     # break other packages using the cache if that directory is
2689     # removed, or if the value is a relative name.
2690     MKDIR_P="$ac_install_sh -d"
2691   fi
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2694 $as_echo "$MKDIR_P" >&6; }
2695
2696 mkdir_p="$MKDIR_P"
2697 case $mkdir_p in
2698   [\\/$]* | ?:[\\/]*) ;;
2699   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2700 esac
2701
2702 for ac_prog in gawk mawk nawk awk
2703 do
2704   # Extract the first word of "$ac_prog", so it can be a program name with args.
2705 set dummy $ac_prog; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if test "${ac_cv_prog_AWK+set}" = set; then :
2709   $as_echo_n "(cached) " >&6
2710 else
2711   if test -n "$AWK"; then
2712   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717   IFS=$as_save_IFS
2718   test -z "$as_dir" && as_dir=.
2719     for ac_exec_ext in '' $ac_executable_extensions; do
2720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721     ac_cv_prog_AWK="$ac_prog"
2722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723     break 2
2724   fi
2725 done
2726   done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 AWK=$ac_cv_prog_AWK
2732 if test -n "$AWK"; then
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2734 $as_echo "$AWK" >&6; }
2735 else
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2738 fi
2739
2740
2741   test -n "$AWK" && break
2742 done
2743
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2745 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2746 set x ${MAKE-make}
2747 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2748 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2749   $as_echo_n "(cached) " >&6
2750 else
2751   cat >conftest.make <<\_ACEOF
2752 SHELL = /bin/sh
2753 all:
2754         @echo '@@@%%%=$(MAKE)=@@@%%%'
2755 _ACEOF
2756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2757 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2758   *@@@%%%=?*=@@@%%%*)
2759     eval ac_cv_prog_make_${ac_make}_set=yes;;
2760   *)
2761     eval ac_cv_prog_make_${ac_make}_set=no;;
2762 esac
2763 rm -f conftest.make
2764 fi
2765 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767 $as_echo "yes" >&6; }
2768   SET_MAKE=
2769 else
2770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772   SET_MAKE="MAKE=${MAKE-make}"
2773 fi
2774
2775 rm -rf .tst 2>/dev/null
2776 mkdir .tst 2>/dev/null
2777 if test -d .tst; then
2778   am__leading_dot=.
2779 else
2780   am__leading_dot=_
2781 fi
2782 rmdir .tst 2>/dev/null
2783
2784 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2785   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2786   # is not polluted with repeated "-I."
2787   am__isrc=' -I$(srcdir)'
2788   # test to see if srcdir already configured
2789   if test -f $srcdir/config.status; then
2790     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2791   fi
2792 fi
2793
2794 # test whether we have cygpath
2795 if test -z "$CYGPATH_W"; then
2796   if (cygpath --version) >/dev/null 2>/dev/null; then
2797     CYGPATH_W='cygpath -w'
2798   else
2799     CYGPATH_W=echo
2800   fi
2801 fi
2802
2803
2804 # Define the identity of the package.
2805  PACKAGE='tsparser'
2806  VERSION='20110219'
2807
2808
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE "$PACKAGE"
2811 _ACEOF
2812
2813
2814 cat >>confdefs.h <<_ACEOF
2815 #define VERSION "$VERSION"
2816 _ACEOF
2817
2818 # Some tools Automake needs.
2819
2820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2821
2822
2823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2824
2825
2826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2827
2828
2829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2830
2831
2832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2833
2834 # We need awk for the "check" target.  The system "awk" is bad on
2835 # some platforms.
2836 # Always define AMTAR for backward compatibility.
2837
2838 AMTAR=${AMTAR-"${am_missing_run}tar"}
2839
2840 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2841
2842
2843
2844
2845
2846
2847 ac_config_headers="$ac_config_headers config.h"
2848
2849
2850 # Checks for programs.
2851 ac_ext=cpp
2852 ac_cpp='$CXXCPP $CPPFLAGS'
2853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2856 if test -z "$CXX"; then
2857   if test -n "$CCC"; then
2858     CXX=$CCC
2859   else
2860     if test -n "$ac_tool_prefix"; then
2861   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2862   do
2863     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if test "${ac_cv_prog_CXX+set}" = set; then :
2868   $as_echo_n "(cached) " >&6
2869 else
2870   if test -n "$CXX"; then
2871   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876   IFS=$as_save_IFS
2877   test -z "$as_dir" && as_dir=.
2878     for ac_exec_ext in '' $ac_executable_extensions; do
2879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882     break 2
2883   fi
2884 done
2885   done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 CXX=$ac_cv_prog_CXX
2891 if test -n "$CXX"; then
2892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2893 $as_echo "$CXX" >&6; }
2894 else
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 fi
2898
2899
2900     test -n "$CXX" && break
2901   done
2902 fi
2903 if test -z "$CXX"; then
2904   ac_ct_CXX=$CXX
2905   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2906 do
2907   # Extract the first word of "$ac_prog", so it can be a program name with args.
2908 set dummy $ac_prog; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2912   $as_echo_n "(cached) " >&6
2913 else
2914   if test -n "$ac_ct_CXX"; then
2915   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920   IFS=$as_save_IFS
2921   test -z "$as_dir" && as_dir=.
2922     for ac_exec_ext in '' $ac_executable_extensions; do
2923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924     ac_cv_prog_ac_ct_CXX="$ac_prog"
2925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926     break 2
2927   fi
2928 done
2929   done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2935 if test -n "$ac_ct_CXX"; then
2936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2937 $as_echo "$ac_ct_CXX" >&6; }
2938 else
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943
2944   test -n "$ac_ct_CXX" && break
2945 done
2946
2947   if test "x$ac_ct_CXX" = x; then
2948     CXX="g++"
2949   else
2950     case $cross_compiling:$ac_tool_warned in
2951 yes:)
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2954 ac_tool_warned=yes ;;
2955 esac
2956     CXX=$ac_ct_CXX
2957   fi
2958 fi
2959
2960   fi
2961 fi
2962 # Provide some information about the compiler.
2963 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2964 set X $ac_compile
2965 ac_compiler=$2
2966 for ac_option in --version -v -V -qversion; do
2967   { { ac_try="$ac_compiler $ac_option >&5"
2968 case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973 $as_echo "$ac_try_echo"; } >&5
2974   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2975   ac_status=$?
2976   if test -s conftest.err; then
2977     sed '10a\
2978 ... rest of stderr output deleted ...
2979          10q' conftest.err >conftest.er1
2980     cat conftest.er1 >&5
2981   fi
2982   rm -f conftest.er1 conftest.err
2983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984   test $ac_status = 0; }
2985 done
2986
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h.  */
2989
2990 int
2991 main ()
2992 {
2993
2994   ;
2995   return 0;
2996 }
2997 _ACEOF
2998 ac_clean_files_save=$ac_clean_files
2999 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3000 # Try to create an executable without -o first, disregard a.out.
3001 # It will help us diagnose broken compilers, and finding out an intuition
3002 # of exeext.
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3004 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3005 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3006
3007 # The possible output files:
3008 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3009
3010 ac_rmfiles=
3011 for ac_file in $ac_files
3012 do
3013   case $ac_file in
3014     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3015     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3016   esac
3017 done
3018 rm -f $ac_rmfiles
3019
3020 if { { ac_try="$ac_link_default"
3021 case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027   (eval "$ac_link_default") 2>&5
3028   ac_status=$?
3029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030   test $ac_status = 0; }; then :
3031   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3032 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3033 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3034 # so that the user can short-circuit this test for compilers unknown to
3035 # Autoconf.
3036 for ac_file in $ac_files ''
3037 do
3038   test -f "$ac_file" || continue
3039   case $ac_file in
3040     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3041         ;;
3042     [ab].out )
3043         # We found the default executable, but exeext='' is most
3044         # certainly right.
3045         break;;
3046     *.* )
3047         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3048         then :; else
3049            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3050         fi
3051         # We set ac_cv_exeext here because the later test for it is not
3052         # safe: cross compilers may not add the suffix if given an `-o'
3053         # argument, so we may need to know it at that point already.
3054         # Even if this section looks crufty: it has the advantage of
3055         # actually working.
3056         break;;
3057     * )
3058         break;;
3059   esac
3060 done
3061 test "$ac_cv_exeext" = no && ac_cv_exeext=
3062
3063 else
3064   ac_file=''
3065 fi
3066 if test -z "$ac_file"; then :
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069 $as_echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 { as_fn_set_status 77
3075 as_fn_error "C++ compiler cannot create executables
3076 See \`config.log' for more details." "$LINENO" 5; }; }
3077 else
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3079 $as_echo "yes" >&6; }
3080 fi
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3082 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3084 $as_echo "$ac_file" >&6; }
3085 ac_exeext=$ac_cv_exeext
3086
3087 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3088 ac_clean_files=$ac_clean_files_save
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3090 $as_echo_n "checking for suffix of executables... " >&6; }
3091 if { { ac_try="$ac_link"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3097 $as_echo "$ac_try_echo"; } >&5
3098   (eval "$ac_link") 2>&5
3099   ac_status=$?
3100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101   test $ac_status = 0; }; then :
3102   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3103 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3104 # work properly (i.e., refer to `conftest.exe'), while it won't with
3105 # `rm'.
3106 for ac_file in conftest.exe conftest conftest.*; do
3107   test -f "$ac_file" || continue
3108   case $ac_file in
3109     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3110     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3111           break;;
3112     * ) break;;
3113   esac
3114 done
3115 else
3116   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118 as_fn_error "cannot compute suffix of executables: cannot compile and link
3119 See \`config.log' for more details." "$LINENO" 5; }
3120 fi
3121 rm -f conftest conftest$ac_cv_exeext
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3123 $as_echo "$ac_cv_exeext" >&6; }
3124
3125 rm -f conftest.$ac_ext
3126 EXEEXT=$ac_cv_exeext
3127 ac_exeext=$EXEEXT
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h.  */
3130 #include <stdio.h>
3131 int
3132 main ()
3133 {
3134 FILE *f = fopen ("conftest.out", "w");
3135  return ferror (f) || fclose (f) != 0;
3136
3137   ;
3138   return 0;
3139 }
3140 _ACEOF
3141 ac_clean_files="$ac_clean_files conftest.out"
3142 # Check that the compiler produces executables we can run.  If not, either
3143 # the compiler is broken, or we cross compile.
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3145 $as_echo_n "checking whether we are cross compiling... " >&6; }
3146 if test "$cross_compiling" != yes; then
3147   { { ac_try="$ac_link"
3148 case "(($ac_try" in
3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150   *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154   (eval "$ac_link") 2>&5
3155   ac_status=$?
3156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157   test $ac_status = 0; }
3158   if { ac_try='./conftest$ac_cv_exeext'
3159   { { case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165   (eval "$ac_try") 2>&5
3166   ac_status=$?
3167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168   test $ac_status = 0; }; }; then
3169     cross_compiling=no
3170   else
3171     if test "$cross_compiling" = maybe; then
3172         cross_compiling=yes
3173     else
3174         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error "cannot run C++ compiled programs.
3177 If you meant to cross compile, use \`--host'.
3178 See \`config.log' for more details." "$LINENO" 5; }
3179     fi
3180   fi
3181 fi
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3183 $as_echo "$cross_compiling" >&6; }
3184
3185 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3186 ac_clean_files=$ac_clean_files_save
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3188 $as_echo_n "checking for suffix of object files... " >&6; }
3189 if test "${ac_cv_objext+set}" = set; then :
3190   $as_echo_n "(cached) " >&6
3191 else
3192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h.  */
3194
3195 int
3196 main ()
3197 {
3198
3199   ;
3200   return 0;
3201 }
3202 _ACEOF
3203 rm -f conftest.o conftest.obj
3204 if { { ac_try="$ac_compile"
3205 case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211   (eval "$ac_compile") 2>&5
3212   ac_status=$?
3213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214   test $ac_status = 0; }; then :
3215   for ac_file in conftest.o conftest.obj conftest.*; do
3216   test -f "$ac_file" || continue;
3217   case $ac_file in
3218     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3219     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3220        break;;
3221   esac
3222 done
3223 else
3224   $as_echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3226
3227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 as_fn_error "cannot compute suffix of object files: cannot compile
3230 See \`config.log' for more details." "$LINENO" 5; }
3231 fi
3232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3233 fi
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3235 $as_echo "$ac_cv_objext" >&6; }
3236 OBJEXT=$ac_cv_objext
3237 ac_objext=$OBJEXT
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3239 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3241   $as_echo_n "(cached) " >&6
3242 else
3243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h.  */
3245
3246 int
3247 main ()
3248 {
3249 #ifndef __GNUC__
3250        choke me
3251 #endif
3252
3253   ;
3254   return 0;
3255 }
3256 _ACEOF
3257 if ac_fn_cxx_try_compile "$LINENO"; then :
3258   ac_compiler_gnu=yes
3259 else
3260   ac_compiler_gnu=no
3261 fi
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3264
3265 fi
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3267 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3268 if test $ac_compiler_gnu = yes; then
3269   GXX=yes
3270 else
3271   GXX=
3272 fi
3273 ac_test_CXXFLAGS=${CXXFLAGS+set}
3274 ac_save_CXXFLAGS=$CXXFLAGS
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3276 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3277 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3278   $as_echo_n "(cached) " >&6
3279 else
3280   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3281    ac_cxx_werror_flag=yes
3282    ac_cv_prog_cxx_g=no
3283    CXXFLAGS="-g"
3284    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h.  */
3286
3287 int
3288 main ()
3289 {
3290
3291   ;
3292   return 0;
3293 }
3294 _ACEOF
3295 if ac_fn_cxx_try_compile "$LINENO"; then :
3296   ac_cv_prog_cxx_g=yes
3297 else
3298   CXXFLAGS=""
3299       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h.  */
3301
3302 int
3303 main ()
3304 {
3305
3306   ;
3307   return 0;
3308 }
3309 _ACEOF
3310 if ac_fn_cxx_try_compile "$LINENO"; then :
3311
3312 else
3313   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3314          CXXFLAGS="-g"
3315          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h.  */
3317
3318 int
3319 main ()
3320 {
3321
3322   ;
3323   return 0;
3324 }
3325 _ACEOF
3326 if ac_fn_cxx_try_compile "$LINENO"; then :
3327   ac_cv_prog_cxx_g=yes
3328 fi
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 fi
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 fi
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3335 fi
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3337 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3338 if test "$ac_test_CXXFLAGS" = set; then
3339   CXXFLAGS=$ac_save_CXXFLAGS
3340 elif test $ac_cv_prog_cxx_g = yes; then
3341   if test "$GXX" = yes; then
3342     CXXFLAGS="-g -O2"
3343   else
3344     CXXFLAGS="-g"
3345   fi
3346 else
3347   if test "$GXX" = yes; then
3348     CXXFLAGS="-O2"
3349   else
3350     CXXFLAGS=
3351   fi
3352 fi
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 DEPDIR="${am__leading_dot}deps"
3359
3360 ac_config_commands="$ac_config_commands depfiles"
3361
3362
3363 am_make=${MAKE-make}
3364 cat > confinc << 'END'
3365 am__doit:
3366         @echo this is the am__doit target
3367 .PHONY: am__doit
3368 END
3369 # If we don't find an include directive, just comment out the code.
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3371 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3372 am__include="#"
3373 am__quote=
3374 _am_result=none
3375 # First try GNU make style include.
3376 echo "include confinc" > confmf
3377 # Ignore all kinds of additional output from `make'.
3378 case `$am_make -s -f confmf 2> /dev/null` in #(
3379 *the\ am__doit\ target*)
3380   am__include=include
3381   am__quote=
3382   _am_result=GNU
3383   ;;
3384 esac
3385 # Now try BSD make style include.
3386 if test "$am__include" = "#"; then
3387    echo '.include "confinc"' > confmf
3388    case `$am_make -s -f confmf 2> /dev/null` in #(
3389    *the\ am__doit\ target*)
3390      am__include=.include
3391      am__quote="\""
3392      _am_result=BSD
3393      ;;
3394    esac
3395 fi
3396
3397
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3399 $as_echo "$_am_result" >&6; }
3400 rm -f confinc confmf
3401
3402 # Check whether --enable-dependency-tracking was given.
3403 if test "${enable_dependency_tracking+set}" = set; then :
3404   enableval=$enable_dependency_tracking;
3405 fi
3406
3407 if test "x$enable_dependency_tracking" != xno; then
3408   am_depcomp="$ac_aux_dir/depcomp"
3409   AMDEPBACKSLASH='\'
3410 fi
3411  if test "x$enable_dependency_tracking" != xno; then
3412   AMDEP_TRUE=
3413   AMDEP_FALSE='#'
3414 else
3415   AMDEP_TRUE='#'
3416   AMDEP_FALSE=
3417 fi
3418
3419
3420
3421 depcc="$CXX"  am_compiler_list=
3422
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3424 $as_echo_n "checking dependency style of $depcc... " >&6; }
3425 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3426   $as_echo_n "(cached) " >&6
3427 else
3428   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3429   # We make a subdir and do the tests there.  Otherwise we can end up
3430   # making bogus files that we don't know about and never remove.  For
3431   # instance it was reported that on HP-UX the gcc test will end up
3432   # making a dummy file named `D' -- because `-MD' means `put the output
3433   # in D'.
3434   mkdir conftest.dir
3435   # Copy depcomp to subdir because otherwise we won't find it if we're
3436   # using a relative directory.
3437   cp "$am_depcomp" conftest.dir
3438   cd conftest.dir
3439   # We will build objects and dependencies in a subdirectory because
3440   # it helps to detect inapplicable dependency modes.  For instance
3441   # both Tru64's cc and ICC support -MD to output dependencies as a
3442   # side effect of compilation, but ICC will put the dependencies in
3443   # the current directory while Tru64 will put them in the object
3444   # directory.
3445   mkdir sub
3446
3447   am_cv_CXX_dependencies_compiler_type=none
3448   if test "$am_compiler_list" = ""; then
3449      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3450   fi
3451   am__universal=false
3452   case " $depcc " in #(
3453      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3454      esac
3455
3456   for depmode in $am_compiler_list; do
3457     # Setup a source with many dependencies, because some compilers
3458     # like to wrap large dependency lists on column 80 (with \), and
3459     # we should not choose a depcomp mode which is confused by this.
3460     #
3461     # We need to recreate these files for each test, as the compiler may
3462     # overwrite some of them when testing with obscure command lines.
3463     # This happens at least with the AIX C compiler.
3464     : > sub/conftest.c
3465     for i in 1 2 3 4 5 6; do
3466       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3467       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3468       # Solaris 8's {/usr,}/bin/sh.
3469       touch sub/conftst$i.h
3470     done
3471     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3472
3473     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3474     # mode.  It turns out that the SunPro C++ compiler does not properly
3475     # handle `-M -o', and we need to detect this.  Also, some Intel
3476     # versions had trouble with output in subdirs
3477     am__obj=sub/conftest.${OBJEXT-o}
3478     am__minus_obj="-o $am__obj"
3479     case $depmode in
3480     gcc)
3481       # This depmode causes a compiler race in universal mode.
3482       test "$am__universal" = false || continue
3483       ;;
3484     nosideeffect)
3485       # after this tag, mechanisms are not by side-effect, so they'll
3486       # only be used when explicitly requested
3487       if test "x$enable_dependency_tracking" = xyes; then
3488         continue
3489       else
3490         break
3491       fi
3492       ;;
3493     msvisualcpp | msvcmsys)
3494       # This compiler won't grok `-c -o', but also, the minuso test has
3495       # not run yet.  These depmodes are late enough in the game, and
3496       # so weak that their functioning should not be impacted.
3497       am__obj=conftest.${OBJEXT-o}
3498       am__minus_obj=
3499       ;;
3500     none) break ;;
3501     esac
3502     if depmode=$depmode \
3503        source=sub/conftest.c object=$am__obj \
3504        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3505        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3506          >/dev/null 2>conftest.err &&
3507        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3508        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3509        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3510        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3511       # icc doesn't choke on unknown options, it will just issue warnings
3512       # or remarks (even with -Werror).  So we grep stderr for any message
3513       # that says an option was ignored or not supported.
3514       # When given -MP, icc 7.0 and 7.1 complain thusly:
3515       #   icc: Command line warning: ignoring option '-M'; no argument required
3516       # The diagnosis changed in icc 8.0:
3517       #   icc: Command line remark: option '-MP' not supported
3518       if (grep 'ignoring option' conftest.err ||
3519           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3520         am_cv_CXX_dependencies_compiler_type=$depmode
3521         break
3522       fi
3523     fi
3524   done
3525
3526   cd ..
3527   rm -rf conftest.dir
3528 else
3529   am_cv_CXX_dependencies_compiler_type=none
3530 fi
3531
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3534 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3535 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3536
3537  if
3538   test "x$enable_dependency_tracking" != xno \
3539   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3540   am__fastdepCXX_TRUE=
3541   am__fastdepCXX_FALSE='#'
3542 else
3543   am__fastdepCXX_TRUE='#'
3544   am__fastdepCXX_FALSE=
3545 fi
3546
3547
3548 ac_ext=c
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 if test -n "$ac_tool_prefix"; then
3554   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3555 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_CC+set}" = set; then :
3559   $as_echo_n "(cached) " >&6
3560 else
3561   if test -n "$CC"; then
3562   ac_cv_prog_CC="$CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567   IFS=$as_save_IFS
3568   test -z "$as_dir" && as_dir=.
3569     for ac_exec_ext in '' $ac_executable_extensions; do
3570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573     break 2
3574   fi
3575 done
3576   done
3577 IFS=$as_save_IFS
3578
3579 fi
3580 fi
3581 CC=$ac_cv_prog_CC
3582 if test -n "$CC"; then
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584 $as_echo "$CC" >&6; }
3585 else
3586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3588 fi
3589
3590
3591 fi
3592 if test -z "$ac_cv_prog_CC"; then
3593   ac_ct_CC=$CC
3594   # Extract the first word of "gcc", so it can be a program name with args.
3595 set dummy gcc; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3599   $as_echo_n "(cached) " >&6
3600 else
3601   if test -n "$ac_ct_CC"; then
3602   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3603 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3606 do
3607   IFS=$as_save_IFS
3608   test -z "$as_dir" && as_dir=.
3609     for ac_exec_ext in '' $ac_executable_extensions; do
3610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611     ac_cv_prog_ac_ct_CC="gcc"
3612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613     break 2
3614   fi
3615 done
3616   done
3617 IFS=$as_save_IFS
3618
3619 fi
3620 fi
3621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622 if test -n "$ac_ct_CC"; then
3623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624 $as_echo "$ac_ct_CC" >&6; }
3625 else
3626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 fi
3629
3630   if test "x$ac_ct_CC" = x; then
3631     CC=""
3632   else
3633     case $cross_compiling:$ac_tool_warned in
3634 yes:)
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637 ac_tool_warned=yes ;;
3638 esac
3639     CC=$ac_ct_CC
3640   fi
3641 else
3642   CC="$ac_cv_prog_CC"
3643 fi
3644
3645 if test -z "$CC"; then
3646           if test -n "$ac_tool_prefix"; then
3647     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3648 set dummy ${ac_tool_prefix}cc; ac_word=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if test "${ac_cv_prog_CC+set}" = set; then :
3652   $as_echo_n "(cached) " >&6
3653 else
3654   if test -n "$CC"; then
3655   ac_cv_prog_CC="$CC" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660   IFS=$as_save_IFS
3661   test -z "$as_dir" && as_dir=.
3662     for ac_exec_ext in '' $ac_executable_extensions; do
3663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3664     ac_cv_prog_CC="${ac_tool_prefix}cc"
3665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666     break 2
3667   fi
3668 done
3669   done
3670 IFS=$as_save_IFS
3671
3672 fi
3673 fi
3674 CC=$ac_cv_prog_CC
3675 if test -n "$CC"; then
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677 $as_echo "$CC" >&6; }
3678 else
3679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3681 fi
3682
3683
3684   fi
3685 fi
3686 if test -z "$CC"; then
3687   # Extract the first word of "cc", so it can be a program name with args.
3688 set dummy cc; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692   $as_echo_n "(cached) " >&6
3693 else
3694   if test -n "$CC"; then
3695   ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697   ac_prog_rejected=no
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701   IFS=$as_save_IFS
3702   test -z "$as_dir" && as_dir=.
3703     for ac_exec_ext in '' $ac_executable_extensions; do
3704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3706        ac_prog_rejected=yes
3707        continue
3708      fi
3709     ac_cv_prog_CC="cc"
3710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711     break 2
3712   fi
3713 done
3714   done
3715 IFS=$as_save_IFS
3716
3717 if test $ac_prog_rejected = yes; then
3718   # We found a bogon in the path, so make sure we never use it.
3719   set dummy $ac_cv_prog_CC
3720   shift
3721   if test $# != 0; then
3722     # We chose a different compiler from the bogus one.
3723     # However, it has the same basename, so the bogon will be chosen
3724     # first if we set CC to just the basename; use the full file name.
3725     shift
3726     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3727   fi
3728 fi
3729 fi
3730 fi
3731 CC=$ac_cv_prog_CC
3732 if test -n "$CC"; then
3733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734 $as_echo "$CC" >&6; }
3735 else
3736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3738 fi
3739
3740
3741 fi
3742 if test -z "$CC"; then
3743   if test -n "$ac_tool_prefix"; then
3744   for ac_prog in cl.exe
3745   do
3746     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if test "${ac_cv_prog_CC+set}" = set; then :
3751   $as_echo_n "(cached) " >&6
3752 else
3753   if test -n "$CC"; then
3754   ac_cv_prog_CC="$CC" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759   IFS=$as_save_IFS
3760   test -z "$as_dir" && as_dir=.
3761     for ac_exec_ext in '' $ac_executable_extensions; do
3762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3763     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765     break 2
3766   fi
3767 done
3768   done
3769 IFS=$as_save_IFS
3770
3771 fi
3772 fi
3773 CC=$ac_cv_prog_CC
3774 if test -n "$CC"; then
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3776 $as_echo "$CC" >&6; }
3777 else
3778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3780 fi
3781
3782
3783     test -n "$CC" && break
3784   done
3785 fi
3786 if test -z "$CC"; then
3787   ac_ct_CC=$CC
3788   for ac_prog in cl.exe
3789 do
3790   # Extract the first word of "$ac_prog", so it can be a program name with args.
3791 set dummy $ac_prog; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3795   $as_echo_n "(cached) " >&6
3796 else
3797   if test -n "$ac_ct_CC"; then
3798   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805     for ac_exec_ext in '' $ac_executable_extensions; do
3806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807     ac_cv_prog_ac_ct_CC="$ac_prog"
3808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812   done
3813 IFS=$as_save_IFS
3814
3815 fi
3816 fi
3817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3818 if test -n "$ac_ct_CC"; then
3819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3820 $as_echo "$ac_ct_CC" >&6; }
3821 else
3822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3824 fi
3825
3826
3827   test -n "$ac_ct_CC" && break
3828 done
3829
3830   if test "x$ac_ct_CC" = x; then
3831     CC=""
3832   else
3833     case $cross_compiling:$ac_tool_warned in
3834 yes:)
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned=yes ;;
3838 esac
3839     CC=$ac_ct_CC
3840   fi
3841 fi
3842
3843 fi
3844
3845
3846 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error "no acceptable C compiler found in \$PATH
3849 See \`config.log' for more details." "$LINENO" 5; }
3850
3851 # Provide some information about the compiler.
3852 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3853 set X $ac_compile
3854 ac_compiler=$2
3855 for ac_option in --version -v -V -qversion; do
3856   { { ac_try="$ac_compiler $ac_option >&5"
3857 case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3864   ac_status=$?
3865   if test -s conftest.err; then
3866     sed '10a\
3867 ... rest of stderr output deleted ...
3868          10q' conftest.err >conftest.er1
3869     cat conftest.er1 >&5
3870   fi
3871   rm -f conftest.er1 conftest.err
3872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873   test $ac_status = 0; }
3874 done
3875
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3877 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3878 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3879   $as_echo_n "(cached) " >&6
3880 else
3881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h.  */
3883
3884 int
3885 main ()
3886 {
3887 #ifndef __GNUC__
3888        choke me
3889 #endif
3890
3891   ;
3892   return 0;
3893 }
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896   ac_compiler_gnu=yes
3897 else
3898   ac_compiler_gnu=no
3899 fi
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3902
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3905 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3906 if test $ac_compiler_gnu = yes; then
3907   GCC=yes
3908 else
3909   GCC=
3910 fi
3911 ac_test_CFLAGS=${CFLAGS+set}
3912 ac_save_CFLAGS=$CFLAGS
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3914 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3915 if test "${ac_cv_prog_cc_g+set}" = set; then :
3916   $as_echo_n "(cached) " >&6
3917 else
3918   ac_save_c_werror_flag=$ac_c_werror_flag
3919    ac_c_werror_flag=yes
3920    ac_cv_prog_cc_g=no
3921    CFLAGS="-g"
3922    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h.  */
3924
3925 int
3926 main ()
3927 {
3928
3929   ;
3930   return 0;
3931 }
3932 _ACEOF
3933 if ac_fn_c_try_compile "$LINENO"; then :
3934   ac_cv_prog_cc_g=yes
3935 else
3936   CFLAGS=""
3937       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h.  */
3939
3940 int
3941 main ()
3942 {
3943
3944   ;
3945   return 0;
3946 }
3947 _ACEOF
3948 if ac_fn_c_try_compile "$LINENO"; then :
3949
3950 else
3951   ac_c_werror_flag=$ac_save_c_werror_flag
3952          CFLAGS="-g"
3953          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3955
3956 int
3957 main ()
3958 {
3959
3960   ;
3961   return 0;
3962 }
3963 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965   ac_cv_prog_cc_g=yes
3966 fi
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 fi
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 fi
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972    ac_c_werror_flag=$ac_save_c_werror_flag
3973 fi
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3975 $as_echo "$ac_cv_prog_cc_g" >&6; }
3976 if test "$ac_test_CFLAGS" = set; then
3977   CFLAGS=$ac_save_CFLAGS
3978 elif test $ac_cv_prog_cc_g = yes; then
3979   if test "$GCC" = yes; then
3980     CFLAGS="-g -O2"
3981   else
3982     CFLAGS="-g"
3983   fi
3984 else
3985   if test "$GCC" = yes; then
3986     CFLAGS="-O2"
3987   else
3988     CFLAGS=
3989   fi
3990 fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3992 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3993 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3994   $as_echo_n "(cached) " >&6
3995 else
3996   ac_cv_prog_cc_c89=no
3997 ac_save_CC=$CC
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h.  */
4000 #include <stdarg.h>
4001 #include <stdio.h>
4002 #include <sys/types.h>
4003 #include <sys/stat.h>
4004 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4005 struct buf { int x; };
4006 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4007 static char *e (p, i)
4008      char **p;
4009      int i;
4010 {
4011   return p[i];
4012 }
4013 static char *f (char * (*g) (char **, int), char **p, ...)
4014 {
4015   char *s;
4016   va_list v;
4017   va_start (v,p);
4018   s = g (p, va_arg (v,int));
4019   va_end (v);
4020   return s;
4021 }
4022
4023 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4024    function prototypes and stuff, but not '\xHH' hex character constants.
4025    These don't provoke an error unfortunately, instead are silently treated
4026    as 'x'.  The following induces an error, until -std is added to get
4027    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4028    array size at least.  It's necessary to write '\x00'==0 to get something
4029    that's true only with -std.  */
4030 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4031
4032 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4033    inside strings and character constants.  */
4034 #define FOO(x) 'x'
4035 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4036
4037 int test (int i, double x);
4038 struct s1 {int (*f) (int a);};
4039 struct s2 {int (*f) (double a);};
4040 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4041 int argc;
4042 char **argv;
4043 int
4044 main ()
4045 {
4046 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4052         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4053 do
4054   CC="$ac_save_CC $ac_arg"
4055   if ac_fn_c_try_compile "$LINENO"; then :
4056   ac_cv_prog_cc_c89=$ac_arg
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext
4059   test "x$ac_cv_prog_cc_c89" != "xno" && break
4060 done
4061 rm -f conftest.$ac_ext
4062 CC=$ac_save_CC
4063
4064 fi
4065 # AC_CACHE_VAL
4066 case "x$ac_cv_prog_cc_c89" in
4067   x)
4068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4069 $as_echo "none needed" >&6; } ;;
4070   xno)
4071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4072 $as_echo "unsupported" >&6; } ;;
4073   *)
4074     CC="$CC $ac_cv_prog_cc_c89"
4075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4076 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4077 esac
4078 if test "x$ac_cv_prog_cc_c89" != xno; then :
4079
4080 fi
4081
4082 ac_ext=c
4083 ac_cpp='$CPP $CPPFLAGS'
4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087
4088 depcc="$CC"   am_compiler_list=
4089
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4091 $as_echo_n "checking dependency style of $depcc... " >&6; }
4092 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4093   $as_echo_n "(cached) " >&6
4094 else
4095   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4096   # We make a subdir and do the tests there.  Otherwise we can end up
4097   # making bogus files that we don't know about and never remove.  For
4098   # instance it was reported that on HP-UX the gcc test will end up
4099   # making a dummy file named `D' -- because `-MD' means `put the output
4100   # in D'.
4101   mkdir conftest.dir
4102   # Copy depcomp to subdir because otherwise we won't find it if we're
4103   # using a relative directory.
4104   cp "$am_depcomp" conftest.dir
4105   cd conftest.dir
4106   # We will build objects and dependencies in a subdirectory because
4107   # it helps to detect inapplicable dependency modes.  For instance
4108   # both Tru64's cc and ICC support -MD to output dependencies as a
4109   # side effect of compilation, but ICC will put the dependencies in
4110   # the current directory while Tru64 will put them in the object
4111   # directory.
4112   mkdir sub
4113
4114   am_cv_CC_dependencies_compiler_type=none
4115   if test "$am_compiler_list" = ""; then
4116      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4117   fi
4118   am__universal=false
4119   case " $depcc " in #(
4120      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4121      esac
4122
4123   for depmode in $am_compiler_list; do
4124     # Setup a source with many dependencies, because some compilers
4125     # like to wrap large dependency lists on column 80 (with \), and
4126     # we should not choose a depcomp mode which is confused by this.
4127     #
4128     # We need to recreate these files for each test, as the compiler may
4129     # overwrite some of them when testing with obscure command lines.
4130     # This happens at least with the AIX C compiler.
4131     : > sub/conftest.c
4132     for i in 1 2 3 4 5 6; do
4133       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4134       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4135       # Solaris 8's {/usr,}/bin/sh.
4136       touch sub/conftst$i.h
4137     done
4138     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4139
4140     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4141     # mode.  It turns out that the SunPro C++ compiler does not properly
4142     # handle `-M -o', and we need to detect this.  Also, some Intel
4143     # versions had trouble with output in subdirs
4144     am__obj=sub/conftest.${OBJEXT-o}
4145     am__minus_obj="-o $am__obj"
4146     case $depmode in
4147     gcc)
4148       # This depmode causes a compiler race in universal mode.
4149       test "$am__universal" = false || continue
4150       ;;
4151     nosideeffect)
4152       # after this tag, mechanisms are not by side-effect, so they'll
4153       # only be used when explicitly requested
4154       if test "x$enable_dependency_tracking" = xyes; then
4155         continue
4156       else
4157         break
4158       fi
4159       ;;
4160     msvisualcpp | msvcmsys)
4161       # This compiler won't grok `-c -o', but also, the minuso test has
4162       # not run yet.  These depmodes are late enough in the game, and
4163       # so weak that their functioning should not be impacted.
4164       am__obj=conftest.${OBJEXT-o}
4165       am__minus_obj=
4166       ;;
4167     none) break ;;
4168     esac
4169     if depmode=$depmode \
4170        source=sub/conftest.c object=$am__obj \
4171        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4172        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4173          >/dev/null 2>conftest.err &&
4174        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4175        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4176        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4177        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4178       # icc doesn't choke on unknown options, it will just issue warnings
4179       # or remarks (even with -Werror).  So we grep stderr for any message
4180       # that says an option was ignored or not supported.
4181       # When given -MP, icc 7.0 and 7.1 complain thusly:
4182       #   icc: Command line warning: ignoring option '-M'; no argument required
4183       # The diagnosis changed in icc 8.0:
4184       #   icc: Command line remark: option '-MP' not supported
4185       if (grep 'ignoring option' conftest.err ||
4186           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4187         am_cv_CC_dependencies_compiler_type=$depmode
4188         break
4189       fi
4190     fi
4191   done
4192
4193   cd ..
4194   rm -rf conftest.dir
4195 else
4196   am_cv_CC_dependencies_compiler_type=none
4197 fi
4198
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4201 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4202 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4203
4204  if
4205   test "x$enable_dependency_tracking" != xno \
4206   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4207   am__fastdepCC_TRUE=
4208   am__fastdepCC_FALSE='#'
4209 else
4210   am__fastdepCC_TRUE='#'
4211   am__fastdepCC_FALSE=
4212 fi
4213
4214
4215 if test -n "$ac_tool_prefix"; then
4216   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4217 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4221   $as_echo_n "(cached) " >&6
4222 else
4223   if test -n "$RANLIB"; then
4224   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229   IFS=$as_save_IFS
4230   test -z "$as_dir" && as_dir=.
4231     for ac_exec_ext in '' $ac_executable_extensions; do
4232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4233     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235     break 2
4236   fi
4237 done
4238   done
4239 IFS=$as_save_IFS
4240
4241 fi
4242 fi
4243 RANLIB=$ac_cv_prog_RANLIB
4244 if test -n "$RANLIB"; then
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4246 $as_echo "$RANLIB" >&6; }
4247 else
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4250 fi
4251
4252
4253 fi
4254 if test -z "$ac_cv_prog_RANLIB"; then
4255   ac_ct_RANLIB=$RANLIB
4256   # Extract the first word of "ranlib", so it can be a program name with args.
4257 set dummy ranlib; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   if test -n "$ac_ct_RANLIB"; then
4264   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271     for ac_exec_ext in '' $ac_executable_extensions; do
4272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273     ac_cv_prog_ac_ct_RANLIB="ranlib"
4274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275     break 2
4276   fi
4277 done
4278   done
4279 IFS=$as_save_IFS
4280
4281 fi
4282 fi
4283 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4284 if test -n "$ac_ct_RANLIB"; then
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4286 $as_echo "$ac_ct_RANLIB" >&6; }
4287 else
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291
4292   if test "x$ac_ct_RANLIB" = x; then
4293     RANLIB=":"
4294   else
4295     case $cross_compiling:$ac_tool_warned in
4296 yes:)
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4299 ac_tool_warned=yes ;;
4300 esac
4301     RANLIB=$ac_ct_RANLIB
4302   fi
4303 else
4304   RANLIB="$ac_cv_prog_RANLIB"
4305 fi
4306
4307
4308 # Checks for libraries.
4309
4310 # Checks for header files.
4311
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4318 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4319 # On Suns, sometimes $CPP names a directory.
4320 if test -n "$CPP" && test -d "$CPP"; then
4321   CPP=
4322 fi
4323 if test -z "$CPP"; then
4324   if test "${ac_cv_prog_CPP+set}" = set; then :
4325   $as_echo_n "(cached) " >&6
4326 else
4327       # Double quotes because CPP needs to be expanded
4328     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4329     do
4330       ac_preproc_ok=false
4331 for ac_c_preproc_warn_flag in '' yes
4332 do
4333   # Use a header file that comes with gcc, so configuring glibc
4334   # with a fresh cross-compiler works.
4335   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336   # <limits.h> exists even on freestanding compilers.
4337   # On the NeXT, cc -E runs the code through the compiler's parser,
4338   # not just through cpp. "Syntax error" is here to catch this case.
4339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h.  */
4341 #ifdef __STDC__
4342 # include <limits.h>
4343 #else
4344 # include <assert.h>
4345 #endif
4346                      Syntax error
4347 _ACEOF
4348 if ac_fn_c_try_cpp "$LINENO"; then :
4349
4350 else
4351   # Broken: fails on valid input.
4352 continue
4353 fi
4354 rm -f conftest.err conftest.$ac_ext
4355
4356   # OK, works on sane cases.  Now check whether nonexistent headers
4357   # can be detected and how.
4358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h.  */
4360 #include <ac_nonexistent.h>
4361 _ACEOF
4362 if ac_fn_c_try_cpp "$LINENO"; then :
4363   # Broken: success on invalid input.
4364 continue
4365 else
4366   # Passes both tests.
4367 ac_preproc_ok=:
4368 break
4369 fi
4370 rm -f conftest.err conftest.$ac_ext
4371
4372 done
4373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4374 rm -f conftest.err conftest.$ac_ext
4375 if $ac_preproc_ok; then :
4376   break
4377 fi
4378
4379     done
4380     ac_cv_prog_CPP=$CPP
4381
4382 fi
4383   CPP=$ac_cv_prog_CPP
4384 else
4385   ac_cv_prog_CPP=$CPP
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4388 $as_echo "$CPP" >&6; }
4389 ac_preproc_ok=false
4390 for ac_c_preproc_warn_flag in '' yes
4391 do
4392   # Use a header file that comes with gcc, so configuring glibc
4393   # with a fresh cross-compiler works.
4394   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4395   # <limits.h> exists even on freestanding compilers.
4396   # On the NeXT, cc -E runs the code through the compiler's parser,
4397   # not just through cpp. "Syntax error" is here to catch this case.
4398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h.  */
4400 #ifdef __STDC__
4401 # include <limits.h>
4402 #else
4403 # include <assert.h>
4404 #endif
4405                      Syntax error
4406 _ACEOF
4407 if ac_fn_c_try_cpp "$LINENO"; then :
4408
4409 else
4410   # Broken: fails on valid input.
4411 continue
4412 fi
4413 rm -f conftest.err conftest.$ac_ext
4414
4415   # OK, works on sane cases.  Now check whether nonexistent headers
4416   # can be detected and how.
4417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h.  */
4419 #include <ac_nonexistent.h>
4420 _ACEOF
4421 if ac_fn_c_try_cpp "$LINENO"; then :
4422   # Broken: success on invalid input.
4423 continue
4424 else
4425   # Passes both tests.
4426 ac_preproc_ok=:
4427 break
4428 fi
4429 rm -f conftest.err conftest.$ac_ext
4430
4431 done
4432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4433 rm -f conftest.err conftest.$ac_ext
4434 if $ac_preproc_ok; then :
4435
4436 else
4437   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4439 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4440 See \`config.log' for more details." "$LINENO" 5; }
4441 fi
4442
4443 ac_ext=c
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4451 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4452 if test "${ac_cv_path_GREP+set}" = set; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   if test -z "$GREP"; then
4456   ac_path_GREP_found=false
4457   # Loop through the user's path and test for each of PROGNAME-LIST
4458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460 do
4461   IFS=$as_save_IFS
4462   test -z "$as_dir" && as_dir=.
4463     for ac_prog in grep ggrep; do
4464     for ac_exec_ext in '' $ac_executable_extensions; do
4465       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4466       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4467 # Check for GNU ac_path_GREP and select it if it is found.
4468   # Check for GNU $ac_path_GREP
4469 case `"$ac_path_GREP" --version 2>&1` in
4470 *GNU*)
4471   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4472 *)
4473   ac_count=0
4474   $as_echo_n 0123456789 >"conftest.in"
4475   while :
4476   do
4477     cat "conftest.in" "conftest.in" >"conftest.tmp"
4478     mv "conftest.tmp" "conftest.in"
4479     cp "conftest.in" "conftest.nl"
4480     $as_echo 'GREP' >> "conftest.nl"
4481     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483     as_fn_arith $ac_count + 1 && ac_count=$as_val
4484     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4485       # Best one so far, save it but keep looking for a better one
4486       ac_cv_path_GREP="$ac_path_GREP"
4487       ac_path_GREP_max=$ac_count
4488     fi
4489     # 10*(2^10) chars as input seems more than enough
4490     test $ac_count -gt 10 && break
4491   done
4492   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493 esac
4494
4495       $ac_path_GREP_found && break 3
4496     done
4497   done
4498   done
4499 IFS=$as_save_IFS
4500   if test -z "$ac_cv_path_GREP"; then
4501     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502   fi
4503 else
4504   ac_cv_path_GREP=$GREP
4505 fi
4506
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4509 $as_echo "$ac_cv_path_GREP" >&6; }
4510  GREP="$ac_cv_path_GREP"
4511
4512
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4514 $as_echo_n "checking for egrep... " >&6; }
4515 if test "${ac_cv_path_EGREP+set}" = set; then :
4516   $as_echo_n "(cached) " >&6
4517 else
4518   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4519    then ac_cv_path_EGREP="$GREP -E"
4520    else
4521      if test -z "$EGREP"; then
4522   ac_path_EGREP_found=false
4523   # Loop through the user's path and test for each of PROGNAME-LIST
4524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526 do
4527   IFS=$as_save_IFS
4528   test -z "$as_dir" && as_dir=.
4529     for ac_prog in egrep; do
4530     for ac_exec_ext in '' $ac_executable_extensions; do
4531       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4532       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4533 # Check for GNU ac_path_EGREP and select it if it is found.
4534   # Check for GNU $ac_path_EGREP
4535 case `"$ac_path_EGREP" --version 2>&1` in
4536 *GNU*)
4537   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4538 *)
4539   ac_count=0
4540   $as_echo_n 0123456789 >"conftest.in"
4541   while :
4542   do
4543     cat "conftest.in" "conftest.in" >"conftest.tmp"
4544     mv "conftest.tmp" "conftest.in"
4545     cp "conftest.in" "conftest.nl"
4546     $as_echo 'EGREP' >> "conftest.nl"
4547     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549     as_fn_arith $ac_count + 1 && ac_count=$as_val
4550     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4551       # Best one so far, save it but keep looking for a better one
4552       ac_cv_path_EGREP="$ac_path_EGREP"
4553       ac_path_EGREP_max=$ac_count
4554     fi
4555     # 10*(2^10) chars as input seems more than enough
4556     test $ac_count -gt 10 && break
4557   done
4558   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559 esac
4560
4561       $ac_path_EGREP_found && break 3
4562     done
4563   done
4564   done
4565 IFS=$as_save_IFS
4566   if test -z "$ac_cv_path_EGREP"; then
4567     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4568   fi
4569 else
4570   ac_cv_path_EGREP=$EGREP
4571 fi
4572
4573    fi
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4576 $as_echo "$ac_cv_path_EGREP" >&6; }
4577  EGREP="$ac_cv_path_EGREP"
4578
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4581 $as_echo_n "checking for ANSI C header files... " >&6; }
4582 if test "${ac_cv_header_stdc+set}" = set; then :
4583   $as_echo_n "(cached) " >&6
4584 else
4585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h.  */
4587 #include <stdlib.h>
4588 #include <stdarg.h>
4589 #include <string.h>
4590 #include <float.h>
4591
4592 int
4593 main ()
4594 {
4595
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4601   ac_cv_header_stdc=yes
4602 else
4603   ac_cv_header_stdc=no
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606
4607 if test $ac_cv_header_stdc = yes; then
4608   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h.  */
4611 #include <string.h>
4612
4613 _ACEOF
4614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4615   $EGREP "memchr" >/dev/null 2>&1; then :
4616
4617 else
4618   ac_cv_header_stdc=no
4619 fi
4620 rm -f conftest*
4621
4622 fi
4623
4624 if test $ac_cv_header_stdc = yes; then
4625   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h.  */
4628 #include <stdlib.h>
4629
4630 _ACEOF
4631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632   $EGREP "free" >/dev/null 2>&1; then :
4633
4634 else
4635   ac_cv_header_stdc=no
4636 fi
4637 rm -f conftest*
4638
4639 fi
4640
4641 if test $ac_cv_header_stdc = yes; then
4642   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4643   if test "$cross_compiling" = yes; then :
4644   :
4645 else
4646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h.  */
4648 #include <ctype.h>
4649 #include <stdlib.h>
4650 #if ((' ' & 0x0FF) == 0x020)
4651 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4652 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4653 #else
4654 # define ISLOWER(c) \
4655                    (('a' <= (c) && (c) <= 'i') \
4656                      || ('j' <= (c) && (c) <= 'r') \
4657                      || ('s' <= (c) && (c) <= 'z'))
4658 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4659 #endif
4660
4661 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4662 int
4663 main ()
4664 {
4665   int i;
4666   for (i = 0; i < 256; i++)
4667     if (XOR (islower (i), ISLOWER (i))
4668         || toupper (i) != TOUPPER (i))
4669       return 2;
4670   return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_c_try_run "$LINENO"; then :
4674
4675 else
4676   ac_cv_header_stdc=no
4677 fi
4678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4679   conftest.$ac_objext conftest.beam conftest.$ac_ext
4680 fi
4681
4682 fi
4683 fi
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4685 $as_echo "$ac_cv_header_stdc" >&6; }
4686 if test $ac_cv_header_stdc = yes; then
4687
4688 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4689
4690 fi
4691
4692 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4693 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4694                   inttypes.h stdint.h unistd.h
4695 do :
4696   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4697 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4698 "
4699 eval as_val=\$$as_ac_Header
4700    if test "x$as_val" = x""yes; then :
4701   cat >>confdefs.h <<_ACEOF
4702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4703 _ACEOF
4704
4705 fi
4706
4707 done
4708
4709
4710 for ac_header in fcntl.h inttypes.h stdlib.h string.h unistd.h
4711 do :
4712   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4713 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4714 eval as_val=\$$as_ac_Header
4715    if test "x$as_val" = x""yes; then :
4716   cat >>confdefs.h <<_ACEOF
4717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4718 _ACEOF
4719
4720 fi
4721
4722 done
4723
4724
4725 # Checks for typedefs, structures, and compiler characteristics.
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4727 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4728 if test "${ac_cv_header_stdbool_h+set}" = set; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h.  */
4733
4734 #include <stdbool.h>
4735 #ifndef bool
4736  "error: bool is not defined"
4737 #endif
4738 #ifndef false
4739  "error: false is not defined"
4740 #endif
4741 #if false
4742  "error: false is not 0"
4743 #endif
4744 #ifndef true
4745  "error: true is not defined"
4746 #endif
4747 #if true != 1
4748  "error: true is not 1"
4749 #endif
4750 #ifndef __bool_true_false_are_defined
4751  "error: __bool_true_false_are_defined is not defined"
4752 #endif
4753
4754         struct s { _Bool s: 1; _Bool t; } s;
4755
4756         char a[true == 1 ? 1 : -1];
4757         char b[false == 0 ? 1 : -1];
4758         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4759         char d[(bool) 0.5 == true ? 1 : -1];
4760         bool e = &s;
4761         char f[(_Bool) 0.0 == false ? 1 : -1];
4762         char g[true];
4763         char h[sizeof (_Bool)];
4764         char i[sizeof s.t];
4765         enum { j = false, k = true, l = false * true, m = true * 256 };
4766         /* The following fails for
4767            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4768         _Bool n[m];
4769         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4770         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4771 #       if defined __xlc__ || defined __GNUC__
4772          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4773             reported by James Lemley on 2005-10-05; see
4774             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4775             This test is not quite right, since xlc is allowed to
4776             reject this program, as the initializer for xlcbug is
4777             not one of the forms that C requires support for.
4778             However, doing the test right would require a runtime
4779             test, and that would make cross-compilation harder.
4780             Let us hope that IBM fixes the xlc bug, and also adds
4781             support for this kind of constant expression.  In the
4782             meantime, this test will reject xlc, which is OK, since
4783             our stdbool.h substitute should suffice.  We also test
4784             this with GCC, where it should work, to detect more
4785             quickly whether someone messes up the test in the
4786             future.  */
4787          char digs[] = "0123456789";
4788          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4789 #       endif
4790         /* Catch a bug in an HP-UX C compiler.  See
4791            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4792            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4793          */
4794         _Bool q = true;
4795         _Bool *pq = &q;
4796
4797 int
4798 main ()
4799 {
4800
4801         *pq |= q;
4802         *pq |= ! q;
4803         /* Refer to every declared value, to avoid compiler optimizations.  */
4804         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4805                 + !m + !n + !o + !p + !q + !pq);
4806
4807   ;
4808   return 0;
4809 }
4810 _ACEOF
4811 if ac_fn_c_try_compile "$LINENO"; then :
4812   ac_cv_header_stdbool_h=yes
4813 else
4814   ac_cv_header_stdbool_h=no
4815 fi
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 fi
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4819 $as_echo "$ac_cv_header_stdbool_h" >&6; }
4820 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4821 if test "x$ac_cv_type__Bool" = x""yes; then :
4822
4823 cat >>confdefs.h <<_ACEOF
4824 #define HAVE__BOOL 1
4825 _ACEOF
4826
4827
4828 fi
4829
4830 if test $ac_cv_header_stdbool_h = yes; then
4831
4832 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4833
4834 fi
4835
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4837 $as_echo_n "checking for inline... " >&6; }
4838 if test "${ac_cv_c_inline+set}" = set; then :
4839   $as_echo_n "(cached) " >&6
4840 else
4841   ac_cv_c_inline=no
4842 for ac_kw in inline __inline__ __inline; do
4843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h.  */
4845 #ifndef __cplusplus
4846 typedef int foo_t;
4847 static $ac_kw foo_t static_foo () {return 0; }
4848 $ac_kw foo_t foo () {return 0; }
4849 #endif
4850
4851 _ACEOF
4852 if ac_fn_c_try_compile "$LINENO"; then :
4853   ac_cv_c_inline=$ac_kw
4854 fi
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856   test "$ac_cv_c_inline" != no && break
4857 done
4858
4859 fi
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4861 $as_echo "$ac_cv_c_inline" >&6; }
4862
4863 case $ac_cv_c_inline in
4864   inline | yes) ;;
4865   *)
4866     case $ac_cv_c_inline in
4867       no) ac_val=;;
4868       *) ac_val=$ac_cv_c_inline;;
4869     esac
4870     cat >>confdefs.h <<_ACEOF
4871 #ifndef __cplusplus
4872 #define inline $ac_val
4873 #endif
4874 _ACEOF
4875     ;;
4876 esac
4877
4878 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
4879 case $ac_cv_c_int16_t in #(
4880   no|yes) ;; #(
4881   *)
4882
4883 cat >>confdefs.h <<_ACEOF
4884 #define int16_t $ac_cv_c_int16_t
4885 _ACEOF
4886 ;;
4887 esac
4888
4889 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
4890 case $ac_cv_c_int32_t in #(
4891   no|yes) ;; #(
4892   *)
4893
4894 cat >>confdefs.h <<_ACEOF
4895 #define int32_t $ac_cv_c_int32_t
4896 _ACEOF
4897 ;;
4898 esac
4899
4900 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4901 if test "x$ac_cv_type_size_t" = x""yes; then :
4902
4903 else
4904
4905 cat >>confdefs.h <<_ACEOF
4906 #define size_t unsigned int
4907 _ACEOF
4908
4909 fi
4910
4911 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4912 if test "x$ac_cv_type_ssize_t" = x""yes; then :
4913
4914 else
4915
4916 cat >>confdefs.h <<_ACEOF
4917 #define ssize_t int
4918 _ACEOF
4919
4920 fi
4921
4922 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
4923 case $ac_cv_c_uint16_t in #(
4924   no|yes) ;; #(
4925   *)
4926
4927
4928 cat >>confdefs.h <<_ACEOF
4929 #define uint16_t $ac_cv_c_uint16_t
4930 _ACEOF
4931 ;;
4932   esac
4933
4934 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
4935 case $ac_cv_c_uint32_t in #(
4936   no|yes) ;; #(
4937   *)
4938
4939 $as_echo "#define _UINT32_T 1" >>confdefs.h
4940
4941
4942 cat >>confdefs.h <<_ACEOF
4943 #define uint32_t $ac_cv_c_uint32_t
4944 _ACEOF
4945 ;;
4946   esac
4947
4948 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
4949 case $ac_cv_c_uint8_t in #(
4950   no|yes) ;; #(
4951   *)
4952
4953 $as_echo "#define _UINT8_T 1" >>confdefs.h
4954
4955
4956 cat >>confdefs.h <<_ACEOF
4957 #define uint8_t $ac_cv_c_uint8_t
4958 _ACEOF
4959 ;;
4960   esac
4961
4962
4963 # Checks for library functions.
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4965 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4966 if test "${ac_cv_header_time+set}" = set; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h.  */
4971 #include <sys/types.h>
4972 #include <sys/time.h>
4973 #include <time.h>
4974
4975 int
4976 main ()
4977 {
4978 if ((struct tm *) 0)
4979 return 0;
4980   ;
4981   return 0;
4982 }
4983 _ACEOF
4984 if ac_fn_c_try_compile "$LINENO"; then :
4985   ac_cv_header_time=yes
4986 else
4987   ac_cv_header_time=no
4988 fi
4989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990 fi
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4992 $as_echo "$ac_cv_header_time" >&6; }
4993 if test $ac_cv_header_time = yes; then
4994
4995 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4996
4997 fi
4998
4999
5000
5001
5002   for ac_header in $ac_header_list
5003 do :
5004   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5005 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5006 "
5007 eval as_val=\$$as_ac_Header
5008    if test "x$as_val" = x""yes; then :
5009   cat >>confdefs.h <<_ACEOF
5010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5011 _ACEOF
5012
5013 fi
5014
5015 done
5016
5017
5018
5019
5020
5021
5022
5023
5024   for ac_func in $ac_func_list
5025 do :
5026   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5027 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5028 eval as_val=\$$as_ac_var
5029    if test "x$as_val" = x""yes; then :
5030   cat >>confdefs.h <<_ACEOF
5031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5032 _ACEOF
5033
5034 fi
5035 done
5036
5037
5038
5039
5040
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
5042 $as_echo_n "checking for working mktime... " >&6; }
5043 if test "${ac_cv_func_working_mktime+set}" = set; then :
5044   $as_echo_n "(cached) " >&6
5045 else
5046   if test "$cross_compiling" = yes; then :
5047   ac_cv_func_working_mktime=no
5048 else
5049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h.  */
5051 /* Test program from Paul Eggert and Tony Leneis.  */
5052 #ifdef TIME_WITH_SYS_TIME
5053 # include <sys/time.h>
5054 # include <time.h>
5055 #else
5056 # ifdef HAVE_SYS_TIME_H
5057 #  include <sys/time.h>
5058 # else
5059 #  include <time.h>
5060 # endif
5061 #endif
5062
5063 #include <limits.h>
5064 #include <stdlib.h>
5065
5066 #ifdef HAVE_UNISTD_H
5067 # include <unistd.h>
5068 #endif
5069
5070 #ifndef HAVE_ALARM
5071 # define alarm(X) /* empty */
5072 #endif
5073
5074 /* Work around redefinition to rpl_putenv by other config tests.  */
5075 #undef putenv
5076
5077 static time_t time_t_max;
5078 static time_t time_t_min;
5079
5080 /* Values we'll use to set the TZ environment variable.  */
5081 static char *tz_strings[] = {
5082   (char *) 0, "TZ=GMT0", "TZ=JST-9",
5083   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
5084 };
5085 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5086
5087 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
5088    Based on a problem report from Andreas Jaeger.  */
5089 static int
5090 spring_forward_gap ()
5091 {
5092   /* glibc (up to about 1998-10-07) failed this test. */
5093   struct tm tm;
5094
5095   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5096      instead of "TZ=America/Vancouver" in order to detect the bug even
5097      on systems that don't support the Olson extension, or don't have the
5098      full zoneinfo tables installed.  */
5099   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
5100
5101   tm.tm_year = 98;
5102   tm.tm_mon = 3;
5103   tm.tm_mday = 5;
5104   tm.tm_hour = 2;
5105   tm.tm_min = 0;
5106   tm.tm_sec = 0;
5107   tm.tm_isdst = -1;
5108   return mktime (&tm) != (time_t) -1;
5109 }
5110
5111 static int
5112 mktime_test1 (now)
5113      time_t now;
5114 {
5115   struct tm *lt;
5116   return ! (lt = localtime (&now)) || mktime (lt) == now;
5117 }
5118
5119 static int
5120 mktime_test (now)
5121      time_t now;
5122 {
5123   return (mktime_test1 (now)
5124           && mktime_test1 ((time_t) (time_t_max - now))
5125           && mktime_test1 ((time_t) (time_t_min + now)));
5126 }
5127
5128 static int
5129 irix_6_4_bug ()
5130 {
5131   /* Based on code from Ariel Faigon.  */
5132   struct tm tm;
5133   tm.tm_year = 96;
5134   tm.tm_mon = 3;
5135   tm.tm_mday = 0;
5136   tm.tm_hour = 0;
5137   tm.tm_min = 0;
5138   tm.tm_sec = 0;
5139   tm.tm_isdst = -1;
5140   mktime (&tm);
5141   return tm.tm_mon == 2 && tm.tm_mday == 31;
5142 }
5143
5144 static int
5145 bigtime_test (j)
5146      int j;
5147 {
5148   struct tm tm;
5149   time_t now;
5150   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
5151   now = mktime (&tm);
5152   if (now != (time_t) -1)
5153     {
5154       struct tm *lt = localtime (&now);
5155       if (! (lt
5156              && lt->tm_year == tm.tm_year
5157              && lt->tm_mon == tm.tm_mon
5158              && lt->tm_mday == tm.tm_mday
5159              && lt->tm_hour == tm.tm_hour
5160              && lt->tm_min == tm.tm_min
5161              && lt->tm_sec == tm.tm_sec
5162              && lt->tm_yday == tm.tm_yday
5163              && lt->tm_wday == tm.tm_wday
5164              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
5165                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
5166         return 0;
5167     }
5168   return 1;
5169 }
5170
5171 static int
5172 year_2050_test ()
5173 {
5174   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
5175      ignoring leap seconds.  */
5176   unsigned long int answer = 2527315200UL;
5177
5178   struct tm tm;
5179   time_t t;
5180   tm.tm_year = 2050 - 1900;
5181   tm.tm_mon = 2 - 1;
5182   tm.tm_mday = 1;
5183   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
5184   tm.tm_isdst = -1;
5185
5186   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5187      instead of "TZ=America/Vancouver" in order to detect the bug even
5188      on systems that don't support the Olson extension, or don't have the
5189      full zoneinfo tables installed.  */
5190   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
5191
5192   t = mktime (&tm);
5193
5194   /* Check that the result is either a failure, or close enough
5195      to the correct answer that we can assume the discrepancy is
5196      due to leap seconds.  */
5197   return (t == (time_t) -1
5198           || (0 < t && answer - 120 <= t && t <= answer + 120));
5199 }
5200
5201 int
5202 main ()
5203 {
5204   time_t t, delta;
5205   int i, j;
5206
5207   /* This test makes some buggy mktime implementations loop.
5208      Give up after 60 seconds; a mktime slower than that
5209      isn't worth using anyway.  */
5210   alarm (60);
5211
5212   for (;;)
5213     {
5214       t = (time_t_max << 1) + 1;
5215       if (t <= time_t_max)
5216         break;
5217       time_t_max = t;
5218     }
5219   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
5220
5221   delta = time_t_max / 997; /* a suitable prime number */
5222   for (i = 0; i < N_STRINGS; i++)
5223     {
5224       if (tz_strings[i])
5225         putenv (tz_strings[i]);
5226
5227       for (t = 0; t <= time_t_max - delta; t += delta)
5228         if (! mktime_test (t))
5229           return 1;
5230       if (! (mktime_test ((time_t) 1)
5231              && mktime_test ((time_t) (60 * 60))
5232              && mktime_test ((time_t) (60 * 60 * 24))))
5233         return 1;
5234
5235       for (j = 1; ; j <<= 1)
5236         if (! bigtime_test (j))
5237           return 1;
5238         else if (INT_MAX / 2 < j)
5239           break;
5240       if (! bigtime_test (INT_MAX))
5241         return 1;
5242     }
5243   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
5244 }
5245 _ACEOF
5246 if ac_fn_c_try_run "$LINENO"; then :
5247   ac_cv_func_working_mktime=yes
5248 else
5249   ac_cv_func_working_mktime=no
5250 fi
5251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5252   conftest.$ac_objext conftest.beam conftest.$ac_ext
5253 fi
5254
5255 fi
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
5257 $as_echo "$ac_cv_func_working_mktime" >&6; }
5258 if test $ac_cv_func_working_mktime = no; then
5259   case " $LIBOBJS " in
5260   *" mktime.$ac_objext "* ) ;;
5261   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
5262  ;;
5263 esac
5264
5265 fi
5266
5267 for ac_func in memmove memset
5268 do :
5269   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5270 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5271 eval as_val=\$$as_ac_var
5272    if test "x$as_val" = x""yes; then :
5273   cat >>confdefs.h <<_ACEOF
5274 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5275 _ACEOF
5276
5277 fi
5278 done
5279
5280
5281 ac_config_files="$ac_config_files Makefile src/ARIB/Makefile src/Makefile src/TS/Makefile"
5282
5283 cat >confcache <<\_ACEOF
5284 # This file is a shell script that caches the results of configure
5285 # tests run on this system so they can be shared between configure
5286 # scripts and configure runs, see configure's option --config-cache.
5287 # It is not useful on other systems.  If it contains results you don't
5288 # want to keep, you may remove or edit it.
5289 #
5290 # config.status only pays attention to the cache file if you give it
5291 # the --recheck option to rerun configure.
5292 #
5293 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5294 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5295 # following values.
5296
5297 _ACEOF
5298
5299 # The following way of writing the cache mishandles newlines in values,
5300 # but we know of no workaround that is simple, portable, and efficient.
5301 # So, we kill variables containing newlines.
5302 # Ultrix sh set writes to stderr and can't be redirected directly,
5303 # and sets the high bit in the cache file unless we assign to the vars.
5304 (
5305   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5306     eval ac_val=\$$ac_var
5307     case $ac_val in #(
5308     *${as_nl}*)
5309       case $ac_var in #(
5310       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5311 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5312       esac
5313       case $ac_var in #(
5314       _ | IFS | as_nl) ;; #(
5315       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5316       *) { eval $ac_var=; unset $ac_var;} ;;
5317       esac ;;
5318     esac
5319   done
5320
5321   (set) 2>&1 |
5322     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5323     *${as_nl}ac_space=\ *)
5324       # `set' does not quote correctly, so add quotes: double-quote
5325       # substitution turns \\\\ into \\, and sed turns \\ into \.
5326       sed -n \
5327         "s/'/'\\\\''/g;
5328           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5329       ;; #(
5330     *)
5331       # `set' quotes correctly as required by POSIX, so do not add quotes.
5332       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5333       ;;
5334     esac |
5335     sort
5336 ) |
5337   sed '
5338      /^ac_cv_env_/b end
5339      t clear
5340      :clear
5341      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5342      t end
5343      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5344      :end' >>confcache
5345 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5346   if test -w "$cache_file"; then
5347     test "x$cache_file" != "x/dev/null" &&
5348       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5349 $as_echo "$as_me: updating cache $cache_file" >&6;}
5350     cat confcache >$cache_file
5351   else
5352     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5353 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5354   fi
5355 fi
5356 rm -f confcache
5357
5358 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5359 # Let make expand exec_prefix.
5360 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5361
5362 DEFS=-DHAVE_CONFIG_H
5363
5364 ac_libobjs=
5365 ac_ltlibobjs=
5366 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5367   # 1. Remove the extension, and $U if already installed.
5368   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5369   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5370   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5371   #    will be set to the directory where LIBOBJS objects are built.
5372   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5373   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5374 done
5375 LIBOBJS=$ac_libobjs
5376
5377 LTLIBOBJS=$ac_ltlibobjs
5378
5379
5380  if test -n "$EXEEXT"; then
5381   am__EXEEXT_TRUE=
5382   am__EXEEXT_FALSE='#'
5383 else
5384   am__EXEEXT_TRUE='#'
5385   am__EXEEXT_FALSE=
5386 fi
5387
5388 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5389   as_fn_error "conditional \"AMDEP\" was never defined.
5390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5391 fi
5392 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5393   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
5394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5395 fi
5396 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5397   as_fn_error "conditional \"am__fastdepCC\" was never defined.
5398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5399 fi
5400
5401 : ${CONFIG_STATUS=./config.status}
5402 ac_write_fail=0
5403 ac_clean_files_save=$ac_clean_files
5404 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5406 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5407 as_write_fail=0
5408 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5409 #! $SHELL
5410 # Generated by $as_me.
5411 # Run this file to recreate the current configuration.
5412 # Compiler output produced by configure, useful for debugging
5413 # configure, is in config.log if it exists.
5414
5415 debug=false
5416 ac_cs_recheck=false
5417 ac_cs_silent=false
5418
5419 SHELL=\${CONFIG_SHELL-$SHELL}
5420 export SHELL
5421 _ASEOF
5422 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5423 ## -------------------- ##
5424 ## M4sh Initialization. ##
5425 ## -------------------- ##
5426
5427 # Be more Bourne compatible
5428 DUALCASE=1; export DUALCASE # for MKS sh
5429 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5430   emulate sh
5431   NULLCMD=:
5432   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5433   # is contrary to our usage.  Disable this feature.
5434   alias -g '${1+"$@"}'='"$@"'
5435   setopt NO_GLOB_SUBST
5436 else
5437   case `(set -o) 2>/dev/null` in #(
5438   *posix*) :
5439     set -o posix ;; #(
5440   *) :
5441      ;;
5442 esac
5443 fi
5444
5445
5446 as_nl='
5447 '
5448 export as_nl
5449 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5450 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5453 # Prefer a ksh shell builtin over an external printf program on Solaris,
5454 # but without wasting forks for bash or zsh.
5455 if test -z "$BASH_VERSION$ZSH_VERSION" \
5456     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5457   as_echo='print -r --'
5458   as_echo_n='print -rn --'
5459 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5460   as_echo='printf %s\n'
5461   as_echo_n='printf %s'
5462 else
5463   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5464     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5465     as_echo_n='/usr/ucb/echo -n'
5466   else
5467     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5468     as_echo_n_body='eval
5469       arg=$1;
5470       case $arg in #(
5471       *"$as_nl"*)
5472         expr "X$arg" : "X\\(.*\\)$as_nl";
5473         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5474       esac;
5475       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5476     '
5477     export as_echo_n_body
5478     as_echo_n='sh -c $as_echo_n_body as_echo'
5479   fi
5480   export as_echo_body
5481   as_echo='sh -c $as_echo_body as_echo'
5482 fi
5483
5484 # The user is always right.
5485 if test "${PATH_SEPARATOR+set}" != set; then
5486   PATH_SEPARATOR=:
5487   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5488     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5489       PATH_SEPARATOR=';'
5490   }
5491 fi
5492
5493
5494 # IFS
5495 # We need space, tab and new line, in precisely that order.  Quoting is
5496 # there to prevent editors from complaining about space-tab.
5497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5498 # splitting by setting IFS to empty value.)
5499 IFS=" ""        $as_nl"
5500
5501 # Find who we are.  Look in the path if we contain no directory separator.
5502 case $0 in #((
5503   *[\\/]* ) as_myself=$0 ;;
5504   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5510   done
5511 IFS=$as_save_IFS
5512
5513      ;;
5514 esac
5515 # We did not find ourselves, most probably we were run as `sh COMMAND'
5516 # in which case we are not to be found in the path.
5517 if test "x$as_myself" = x; then
5518   as_myself=$0
5519 fi
5520 if test ! -f "$as_myself"; then
5521   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5522   exit 1
5523 fi
5524
5525 # Unset variables that we do not need and which cause bugs (e.g. in
5526 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5527 # suppresses any "Segmentation fault" message there.  '((' could
5528 # trigger a bug in pdksh 5.2.14.
5529 for as_var in BASH_ENV ENV MAIL MAILPATH
5530 do eval test x\${$as_var+set} = xset \
5531   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5532 done
5533 PS1='$ '
5534 PS2='> '
5535 PS4='+ '
5536
5537 # NLS nuisances.
5538 LC_ALL=C
5539 export LC_ALL
5540 LANGUAGE=C
5541 export LANGUAGE
5542
5543 # CDPATH.
5544 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5545
5546
5547 # as_fn_error ERROR [LINENO LOG_FD]
5548 # ---------------------------------
5549 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5550 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5551 # script with status $?, using 1 if that was 0.
5552 as_fn_error ()
5553 {
5554   as_status=$?; test $as_status -eq 0 && as_status=1
5555   if test "$3"; then
5556     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5557     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5558   fi
5559   $as_echo "$as_me: error: $1" >&2
5560   as_fn_exit $as_status
5561 } # as_fn_error
5562
5563
5564 # as_fn_set_status STATUS
5565 # -----------------------
5566 # Set $? to STATUS, without forking.
5567 as_fn_set_status ()
5568 {
5569   return $1
5570 } # as_fn_set_status
5571
5572 # as_fn_exit STATUS
5573 # -----------------
5574 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5575 as_fn_exit ()
5576 {
5577   set +e
5578   as_fn_set_status $1
5579   exit $1
5580 } # as_fn_exit
5581
5582 # as_fn_unset VAR
5583 # ---------------
5584 # Portably unset VAR.
5585 as_fn_unset ()
5586 {
5587   { eval $1=; unset $1;}
5588 }
5589 as_unset=as_fn_unset
5590 # as_fn_append VAR VALUE
5591 # ----------------------
5592 # Append the text in VALUE to the end of the definition contained in VAR. Take
5593 # advantage of any shell optimizations that allow amortized linear growth over
5594 # repeated appends, instead of the typical quadratic growth present in naive
5595 # implementations.
5596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5597   eval 'as_fn_append ()
5598   {
5599     eval $1+=\$2
5600   }'
5601 else
5602   as_fn_append ()
5603   {
5604     eval $1=\$$1\$2
5605   }
5606 fi # as_fn_append
5607
5608 # as_fn_arith ARG...
5609 # ------------------
5610 # Perform arithmetic evaluation on the ARGs, and store the result in the
5611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5612 # must be portable across $(()) and expr.
5613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5614   eval 'as_fn_arith ()
5615   {
5616     as_val=$(( $* ))
5617   }'
5618 else
5619   as_fn_arith ()
5620   {
5621     as_val=`expr "$@" || test $? -eq 1`
5622   }
5623 fi # as_fn_arith
5624
5625
5626 if expr a : '\(a\)' >/dev/null 2>&1 &&
5627    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5628   as_expr=expr
5629 else
5630   as_expr=false
5631 fi
5632
5633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5634   as_basename=basename
5635 else
5636   as_basename=false
5637 fi
5638
5639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5640   as_dirname=dirname
5641 else
5642   as_dirname=false
5643 fi
5644
5645 as_me=`$as_basename -- "$0" ||
5646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5647          X"$0" : 'X\(//\)$' \| \
5648          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5649 $as_echo X/"$0" |
5650     sed '/^.*\/\([^/][^/]*\)\/*$/{
5651             s//\1/
5652             q
5653           }
5654           /^X\/\(\/\/\)$/{
5655             s//\1/
5656             q
5657           }
5658           /^X\/\(\/\).*/{
5659             s//\1/
5660             q
5661           }
5662           s/.*/./; q'`
5663
5664 # Avoid depending upon Character Ranges.
5665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5668 as_cr_digits='0123456789'
5669 as_cr_alnum=$as_cr_Letters$as_cr_digits
5670
5671 ECHO_C= ECHO_N= ECHO_T=
5672 case `echo -n x` in #(((((
5673 -n*)
5674   case `echo 'xy\c'` in
5675   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5676   xy)  ECHO_C='\c';;
5677   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5678        ECHO_T=' ';;
5679   esac;;
5680 *)
5681   ECHO_N='-n';;
5682 esac
5683
5684 rm -f conf$$ conf$$.exe conf$$.file
5685 if test -d conf$$.dir; then
5686   rm -f conf$$.dir/conf$$.file
5687 else
5688   rm -f conf$$.dir
5689   mkdir conf$$.dir 2>/dev/null
5690 fi
5691 if (echo >conf$$.file) 2>/dev/null; then
5692   if ln -s conf$$.file conf$$ 2>/dev/null; then
5693     as_ln_s='ln -s'
5694     # ... but there are two gotchas:
5695     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5696     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5697     # In both cases, we have to default to `cp -p'.
5698     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5699       as_ln_s='cp -p'
5700   elif ln conf$$.file conf$$ 2>/dev/null; then
5701     as_ln_s=ln
5702   else
5703     as_ln_s='cp -p'
5704   fi
5705 else
5706   as_ln_s='cp -p'
5707 fi
5708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5709 rmdir conf$$.dir 2>/dev/null
5710
5711
5712 # as_fn_mkdir_p
5713 # -------------
5714 # Create "$as_dir" as a directory, including parents if necessary.
5715 as_fn_mkdir_p ()
5716 {
5717
5718   case $as_dir in #(
5719   -*) as_dir=./$as_dir;;
5720   esac
5721   test -d "$as_dir" || eval $as_mkdir_p || {
5722     as_dirs=
5723     while :; do
5724       case $as_dir in #(
5725       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5726       *) as_qdir=$as_dir;;
5727       esac
5728       as_dirs="'$as_qdir' $as_dirs"
5729       as_dir=`$as_dirname -- "$as_dir" ||
5730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5731          X"$as_dir" : 'X\(//\)[^/]' \| \
5732          X"$as_dir" : 'X\(//\)$' \| \
5733          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5734 $as_echo X"$as_dir" |
5735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5736             s//\1/
5737             q
5738           }
5739           /^X\(\/\/\)[^/].*/{
5740             s//\1/
5741             q
5742           }
5743           /^X\(\/\/\)$/{
5744             s//\1/
5745             q
5746           }
5747           /^X\(\/\).*/{
5748             s//\1/
5749             q
5750           }
5751           s/.*/./; q'`
5752       test -d "$as_dir" && break
5753     done
5754     test -z "$as_dirs" || eval "mkdir $as_dirs"
5755   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5756
5757
5758 } # as_fn_mkdir_p
5759 if mkdir -p . 2>/dev/null; then
5760   as_mkdir_p='mkdir -p "$as_dir"'
5761 else
5762   test -d ./-p && rmdir ./-p
5763   as_mkdir_p=false
5764 fi
5765
5766 if test -x / >/dev/null 2>&1; then
5767   as_test_x='test -x'
5768 else
5769   if ls -dL / >/dev/null 2>&1; then
5770     as_ls_L_option=L
5771   else
5772     as_ls_L_option=
5773   fi
5774   as_test_x='
5775     eval sh -c '\''
5776       if test -d "$1"; then
5777         test -d "$1/.";
5778       else
5779         case $1 in #(
5780         -*)set "./$1";;
5781         esac;
5782         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5783         ???[sx]*):;;*)false;;esac;fi
5784     '\'' sh
5785   '
5786 fi
5787 as_executable_p=$as_test_x
5788
5789 # Sed expression to map a string onto a valid CPP name.
5790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5791
5792 # Sed expression to map a string onto a valid variable name.
5793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5794
5795
5796 exec 6>&1
5797 ## ----------------------------------- ##
5798 ## Main body of $CONFIG_STATUS script. ##
5799 ## ----------------------------------- ##
5800 _ASEOF
5801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5802
5803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5804 # Save the log message, to keep $0 and so on meaningful, and to
5805 # report actual input values of CONFIG_FILES etc. instead of their
5806 # values after options handling.
5807 ac_log="
5808 This file was extended by tsparser $as_me 20110219, which was
5809 generated by GNU Autoconf 2.65.  Invocation command line was
5810
5811   CONFIG_FILES    = $CONFIG_FILES
5812   CONFIG_HEADERS  = $CONFIG_HEADERS
5813   CONFIG_LINKS    = $CONFIG_LINKS
5814   CONFIG_COMMANDS = $CONFIG_COMMANDS
5815   $ $0 $@
5816
5817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5818 "
5819
5820 _ACEOF
5821
5822 case $ac_config_files in *"
5823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5824 esac
5825
5826 case $ac_config_headers in *"
5827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5828 esac
5829
5830
5831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5832 # Files that config.status was made for.
5833 config_files="$ac_config_files"
5834 config_headers="$ac_config_headers"
5835 config_commands="$ac_config_commands"
5836
5837 _ACEOF
5838
5839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5840 ac_cs_usage="\
5841 \`$as_me' instantiates files and other configuration actions
5842 from templates according to the current configuration.  Unless the files
5843 and actions are specified as TAGs, all are instantiated by default.
5844
5845 Usage: $0 [OPTION]... [TAG]...
5846
5847   -h, --help       print this help, then exit
5848   -V, --version    print version number and configuration settings, then exit
5849       --config     print configuration, then exit
5850   -q, --quiet, --silent
5851                    do not print progress messages
5852   -d, --debug      don't remove temporary files
5853       --recheck    update $as_me by reconfiguring in the same conditions
5854       --file=FILE[:TEMPLATE]
5855                    instantiate the configuration file FILE
5856       --header=FILE[:TEMPLATE]
5857                    instantiate the configuration header FILE
5858
5859 Configuration files:
5860 $config_files
5861
5862 Configuration headers:
5863 $config_headers
5864
5865 Configuration commands:
5866 $config_commands
5867
5868 Report bugs to <koukou@users.sourceforge.jp>."
5869
5870 _ACEOF
5871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5873 ac_cs_version="\\
5874 tsparser config.status 20110219
5875 configured by $0, generated by GNU Autoconf 2.65,
5876   with options \\"\$ac_cs_config\\"
5877
5878 Copyright (C) 2009 Free Software Foundation, Inc.
5879 This config.status script is free software; the Free Software Foundation
5880 gives unlimited permission to copy, distribute and modify it."
5881
5882 ac_pwd='$ac_pwd'
5883 srcdir='$srcdir'
5884 INSTALL='$INSTALL'
5885 MKDIR_P='$MKDIR_P'
5886 AWK='$AWK'
5887 test -n "\$AWK" || AWK=awk
5888 _ACEOF
5889
5890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5891 # The default lists apply if the user does not specify any file.
5892 ac_need_defaults=:
5893 while test $# != 0
5894 do
5895   case $1 in
5896   --*=*)
5897     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5898     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5899     ac_shift=:
5900     ;;
5901   *)
5902     ac_option=$1
5903     ac_optarg=$2
5904     ac_shift=shift
5905     ;;
5906   esac
5907
5908   case $ac_option in
5909   # Handling of the options.
5910   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5911     ac_cs_recheck=: ;;
5912   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5913     $as_echo "$ac_cs_version"; exit ;;
5914   --config | --confi | --conf | --con | --co | --c )
5915     $as_echo "$ac_cs_config"; exit ;;
5916   --debug | --debu | --deb | --de | --d | -d )
5917     debug=: ;;
5918   --file | --fil | --fi | --f )
5919     $ac_shift
5920     case $ac_optarg in
5921     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5922     esac
5923     as_fn_append CONFIG_FILES " '$ac_optarg'"
5924     ac_need_defaults=false;;
5925   --header | --heade | --head | --hea )
5926     $ac_shift
5927     case $ac_optarg in
5928     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5929     esac
5930     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5931     ac_need_defaults=false;;
5932   --he | --h)
5933     # Conflict between --help and --header
5934     as_fn_error "ambiguous option: \`$1'
5935 Try \`$0 --help' for more information.";;
5936   --help | --hel | -h )
5937     $as_echo "$ac_cs_usage"; exit ;;
5938   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5939   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5940     ac_cs_silent=: ;;
5941
5942   # This is an error.
5943   -*) as_fn_error "unrecognized option: \`$1'
5944 Try \`$0 --help' for more information." ;;
5945
5946   *) as_fn_append ac_config_targets " $1"
5947      ac_need_defaults=false ;;
5948
5949   esac
5950   shift
5951 done
5952
5953 ac_configure_extra_args=
5954
5955 if $ac_cs_silent; then
5956   exec 6>/dev/null
5957   ac_configure_extra_args="$ac_configure_extra_args --silent"
5958 fi
5959
5960 _ACEOF
5961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5962 if \$ac_cs_recheck; then
5963   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5964   shift
5965   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5966   CONFIG_SHELL='$SHELL'
5967   export CONFIG_SHELL
5968   exec "\$@"
5969 fi
5970
5971 _ACEOF
5972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5973 exec 5>>config.log
5974 {
5975   echo
5976   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5977 ## Running $as_me. ##
5978 _ASBOX
5979   $as_echo "$ac_log"
5980 } >&5
5981
5982 _ACEOF
5983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5984 #
5985 # INIT-COMMANDS
5986 #
5987 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5988
5989 _ACEOF
5990
5991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5992
5993 # Handling of arguments.
5994 for ac_config_target in $ac_config_targets
5995 do
5996   case $ac_config_target in
5997     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5998     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5999     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6000     "src/ARIB/Makefile") CONFIG_FILES="$CONFIG_FILES src/ARIB/Makefile" ;;
6001     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6002     "src/TS/Makefile") CONFIG_FILES="$CONFIG_FILES src/TS/Makefile" ;;
6003
6004   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6005   esac
6006 done
6007
6008
6009 # If the user did not use the arguments to specify the items to instantiate,
6010 # then the envvar interface is used.  Set only those that are not.
6011 # We use the long form for the default assignment because of an extremely
6012 # bizarre bug on SunOS 4.1.3.
6013 if $ac_need_defaults; then
6014   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6015   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6016   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6017 fi
6018
6019 # Have a temporary directory for convenience.  Make it in the build tree
6020 # simply because there is no reason against having it here, and in addition,
6021 # creating and moving files from /tmp can sometimes cause problems.
6022 # Hook for its removal unless debugging.
6023 # Note that there is a small window in which the directory will not be cleaned:
6024 # after its creation but before its name has been assigned to `$tmp'.
6025 $debug ||
6026 {
6027   tmp=
6028   trap 'exit_status=$?
6029   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6030 ' 0
6031   trap 'as_fn_exit 1' 1 2 13 15
6032 }
6033 # Create a (secure) tmp directory for tmp files.
6034
6035 {
6036   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6037   test -n "$tmp" && test -d "$tmp"
6038 }  ||
6039 {
6040   tmp=./conf$$-$RANDOM
6041   (umask 077 && mkdir "$tmp")
6042 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6043
6044 # Set up the scripts for CONFIG_FILES section.
6045 # No need to generate them if there are no CONFIG_FILES.
6046 # This happens for instance with `./config.status config.h'.
6047 if test -n "$CONFIG_FILES"; then
6048
6049
6050 ac_cr=`echo X | tr X '\015'`
6051 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6052 # But we know of no other shell where ac_cr would be empty at this
6053 # point, so we can use a bashism as a fallback.
6054 if test "x$ac_cr" = x; then
6055   eval ac_cr=\$\'\\r\'
6056 fi
6057 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6058 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6059   ac_cs_awk_cr='\r'
6060 else
6061   ac_cs_awk_cr=$ac_cr
6062 fi
6063
6064 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6065 _ACEOF
6066
6067
6068 {
6069   echo "cat >conf$$subs.awk <<_ACEOF" &&
6070   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6071   echo "_ACEOF"
6072 } >conf$$subs.sh ||
6073   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6074 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6075 ac_delim='%!_!# '
6076 for ac_last_try in false false false false false :; do
6077   . ./conf$$subs.sh ||
6078     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6079
6080   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6081   if test $ac_delim_n = $ac_delim_num; then
6082     break
6083   elif $ac_last_try; then
6084     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6085   else
6086     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6087   fi
6088 done
6089 rm -f conf$$subs.sh
6090
6091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6092 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6093 _ACEOF
6094 sed -n '
6095 h
6096 s/^/S["/; s/!.*/"]=/
6097 p
6098 g
6099 s/^[^!]*!//
6100 :repl
6101 t repl
6102 s/'"$ac_delim"'$//
6103 t delim
6104 :nl
6105 h
6106 s/\(.\{148\}\)..*/\1/
6107 t more1
6108 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6109 p
6110 n
6111 b repl
6112 :more1
6113 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6114 p
6115 g
6116 s/.\{148\}//
6117 t nl
6118 :delim
6119 h
6120 s/\(.\{148\}\)..*/\1/
6121 t more2
6122 s/["\\]/\\&/g; s/^/"/; s/$/"/
6123 p
6124 b
6125 :more2
6126 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6127 p
6128 g
6129 s/.\{148\}//
6130 t delim
6131 ' <conf$$subs.awk | sed '
6132 /^[^""]/{
6133   N
6134   s/\n//
6135 }
6136 ' >>$CONFIG_STATUS || ac_write_fail=1
6137 rm -f conf$$subs.awk
6138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6139 _ACAWK
6140 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6141   for (key in S) S_is_set[key] = 1
6142   FS = "\a"
6143
6144 }
6145 {
6146   line = $ 0
6147   nfields = split(line, field, "@")
6148   substed = 0
6149   len = length(field[1])
6150   for (i = 2; i < nfields; i++) {
6151     key = field[i]
6152     keylen = length(key)
6153     if (S_is_set[key]) {
6154       value = S[key]
6155       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6156       len += length(value) + length(field[++i])
6157       substed = 1
6158     } else
6159       len += 1 + keylen
6160   }
6161
6162   print line
6163 }
6164
6165 _ACAWK
6166 _ACEOF
6167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6168 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6169   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6170 else
6171   cat
6172 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6173   || as_fn_error "could not setup config files machinery" "$LINENO" 5
6174 _ACEOF
6175
6176 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6177 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6178 # trailing colons and then remove the whole line if VPATH becomes empty
6179 # (actually we leave an empty line to preserve line numbers).
6180 if test "x$srcdir" = x.; then
6181   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6182 s/:*\$(srcdir):*/:/
6183 s/:*\${srcdir}:*/:/
6184 s/:*@srcdir@:*/:/
6185 s/^\([^=]*=[     ]*\):*/\1/
6186 s/:*$//
6187 s/^[^=]*=[       ]*$//
6188 }'
6189 fi
6190
6191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6192 fi # test -n "$CONFIG_FILES"
6193
6194 # Set up the scripts for CONFIG_HEADERS section.
6195 # No need to generate them if there are no CONFIG_HEADERS.
6196 # This happens for instance with `./config.status Makefile'.
6197 if test -n "$CONFIG_HEADERS"; then
6198 cat >"$tmp/defines.awk" <<\_ACAWK ||
6199 BEGIN {
6200 _ACEOF
6201
6202 # Transform confdefs.h into an awk script `defines.awk', embedded as
6203 # here-document in config.status, that substitutes the proper values into
6204 # config.h.in to produce config.h.
6205
6206 # Create a delimiter string that does not exist in confdefs.h, to ease
6207 # handling of long lines.
6208 ac_delim='%!_!# '
6209 for ac_last_try in false false :; do
6210   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6211   if test -z "$ac_t"; then
6212     break
6213   elif $ac_last_try; then
6214     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6215   else
6216     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6217   fi
6218 done
6219
6220 # For the awk script, D is an array of macro values keyed by name,
6221 # likewise P contains macro parameters if any.  Preserve backslash
6222 # newline sequences.
6223
6224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6225 sed -n '
6226 s/.\{148\}/&'"$ac_delim"'/g
6227 t rset
6228 :rset
6229 s/^[     ]*#[    ]*define[       ][      ]*/ /
6230 t def
6231 d
6232 :def
6233 s/\\$//
6234 t bsnl
6235 s/["\\]/\\&/g
6236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6237 D["\1"]=" \3"/p
6238 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6239 d
6240 :bsnl
6241 s/["\\]/\\&/g
6242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6243 D["\1"]=" \3\\\\\\n"\\/p
6244 t cont
6245 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6246 t cont
6247 d
6248 :cont
6249 n
6250 s/.\{148\}/&'"$ac_delim"'/g
6251 t clear
6252 :clear
6253 s/\\$//
6254 t bsnlc
6255 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6256 d
6257 :bsnlc
6258 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6259 b cont
6260 ' <confdefs.h | sed '
6261 s/'"$ac_delim"'/"\\\
6262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6263
6264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6265   for (key in D) D_is_set[key] = 1
6266   FS = "\a"
6267 }
6268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6269   line = \$ 0
6270   split(line, arg, " ")
6271   if (arg[1] == "#") {
6272     defundef = arg[2]
6273     mac1 = arg[3]
6274   } else {
6275     defundef = substr(arg[1], 2)
6276     mac1 = arg[2]
6277   }
6278   split(mac1, mac2, "(") #)
6279   macro = mac2[1]
6280   prefix = substr(line, 1, index(line, defundef) - 1)
6281   if (D_is_set[macro]) {
6282     # Preserve the white space surrounding the "#".
6283     print prefix "define", macro P[macro] D[macro]
6284     next
6285   } else {
6286     # Replace #undef with comments.  This is necessary, for example,
6287     # in the case of _POSIX_SOURCE, which is predefined and required
6288     # on some systems where configure will not decide to define it.
6289     if (defundef == "undef") {
6290       print "/*", prefix defundef, macro, "*/"
6291       next
6292     }
6293   }
6294 }
6295 { print }
6296 _ACAWK
6297 _ACEOF
6298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6299   as_fn_error "could not setup config headers machinery" "$LINENO" 5
6300 fi # test -n "$CONFIG_HEADERS"
6301
6302
6303 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6304 shift
6305 for ac_tag
6306 do
6307   case $ac_tag in
6308   :[FHLC]) ac_mode=$ac_tag; continue;;
6309   esac
6310   case $ac_mode$ac_tag in
6311   :[FHL]*:*);;
6312   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6313   :[FH]-) ac_tag=-:-;;
6314   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6315   esac
6316   ac_save_IFS=$IFS
6317   IFS=:
6318   set x $ac_tag
6319   IFS=$ac_save_IFS
6320   shift
6321   ac_file=$1
6322   shift
6323
6324   case $ac_mode in
6325   :L) ac_source=$1;;
6326   :[FH])
6327     ac_file_inputs=
6328     for ac_f
6329     do
6330       case $ac_f in
6331       -) ac_f="$tmp/stdin";;
6332       *) # Look for the file first in the build tree, then in the source tree
6333          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6334          # because $ac_f cannot contain `:'.
6335          test -f "$ac_f" ||
6336            case $ac_f in
6337            [\\/$]*) false;;
6338            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6339            esac ||
6340            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6341       esac
6342       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6343       as_fn_append ac_file_inputs " '$ac_f'"
6344     done
6345
6346     # Let's still pretend it is `configure' which instantiates (i.e., don't
6347     # use $as_me), people would be surprised to read:
6348     #    /* config.h.  Generated by config.status.  */
6349     configure_input='Generated from '`
6350           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6351         `' by configure.'
6352     if test x"$ac_file" != x-; then
6353       configure_input="$ac_file.  $configure_input"
6354       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6355 $as_echo "$as_me: creating $ac_file" >&6;}
6356     fi
6357     # Neutralize special characters interpreted by sed in replacement strings.
6358     case $configure_input in #(
6359     *\&* | *\|* | *\\* )
6360        ac_sed_conf_input=`$as_echo "$configure_input" |
6361        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6362     *) ac_sed_conf_input=$configure_input;;
6363     esac
6364
6365     case $ac_tag in
6366     *:-:* | *:-) cat >"$tmp/stdin" \
6367       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6368     esac
6369     ;;
6370   esac
6371
6372   ac_dir=`$as_dirname -- "$ac_file" ||
6373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6374          X"$ac_file" : 'X\(//\)[^/]' \| \
6375          X"$ac_file" : 'X\(//\)$' \| \
6376          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6377 $as_echo X"$ac_file" |
6378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6379             s//\1/
6380             q
6381           }
6382           /^X\(\/\/\)[^/].*/{
6383             s//\1/
6384             q
6385           }
6386           /^X\(\/\/\)$/{
6387             s//\1/
6388             q
6389           }
6390           /^X\(\/\).*/{
6391             s//\1/
6392             q
6393           }
6394           s/.*/./; q'`
6395   as_dir="$ac_dir"; as_fn_mkdir_p
6396   ac_builddir=.
6397
6398 case "$ac_dir" in
6399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6400 *)
6401   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6402   # A ".." for each directory in $ac_dir_suffix.
6403   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6404   case $ac_top_builddir_sub in
6405   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6406   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6407   esac ;;
6408 esac
6409 ac_abs_top_builddir=$ac_pwd
6410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6411 # for backward compatibility:
6412 ac_top_builddir=$ac_top_build_prefix
6413
6414 case $srcdir in
6415   .)  # We are building in place.
6416     ac_srcdir=.
6417     ac_top_srcdir=$ac_top_builddir_sub
6418     ac_abs_top_srcdir=$ac_pwd ;;
6419   [\\/]* | ?:[\\/]* )  # Absolute name.
6420     ac_srcdir=$srcdir$ac_dir_suffix;
6421     ac_top_srcdir=$srcdir
6422     ac_abs_top_srcdir=$srcdir ;;
6423   *) # Relative name.
6424     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6425     ac_top_srcdir=$ac_top_build_prefix$srcdir
6426     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6427 esac
6428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6429
6430
6431   case $ac_mode in
6432   :F)
6433   #
6434   # CONFIG_FILE
6435   #
6436
6437   case $INSTALL in
6438   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6439   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6440   esac
6441   ac_MKDIR_P=$MKDIR_P
6442   case $MKDIR_P in
6443   [\\/$]* | ?:[\\/]* ) ;;
6444   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6445   esac
6446 _ACEOF
6447
6448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6449 # If the template does not know about datarootdir, expand it.
6450 # FIXME: This hack should be removed a few years after 2.60.
6451 ac_datarootdir_hack=; ac_datarootdir_seen=
6452 ac_sed_dataroot='
6453 /datarootdir/ {
6454   p
6455   q
6456 }
6457 /@datadir@/p
6458 /@docdir@/p
6459 /@infodir@/p
6460 /@localedir@/p
6461 /@mandir@/p'
6462 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6463 *datarootdir*) ac_datarootdir_seen=yes;;
6464 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6466 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6467 _ACEOF
6468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6469   ac_datarootdir_hack='
6470   s&@datadir@&$datadir&g
6471   s&@docdir@&$docdir&g
6472   s&@infodir@&$infodir&g
6473   s&@localedir@&$localedir&g
6474   s&@mandir@&$mandir&g
6475   s&\\\${datarootdir}&$datarootdir&g' ;;
6476 esac
6477 _ACEOF
6478
6479 # Neutralize VPATH when `$srcdir' = `.'.
6480 # Shell code in configure.ac might set extrasub.
6481 # FIXME: do we really want to maintain this feature?
6482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6483 ac_sed_extra="$ac_vpsub
6484 $extrasub
6485 _ACEOF
6486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6487 :t
6488 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6489 s|@configure_input@|$ac_sed_conf_input|;t t
6490 s&@top_builddir@&$ac_top_builddir_sub&;t t
6491 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6492 s&@srcdir@&$ac_srcdir&;t t
6493 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6494 s&@top_srcdir@&$ac_top_srcdir&;t t
6495 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6496 s&@builddir@&$ac_builddir&;t t
6497 s&@abs_builddir@&$ac_abs_builddir&;t t
6498 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6499 s&@INSTALL@&$ac_INSTALL&;t t
6500 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6501 $ac_datarootdir_hack
6502 "
6503 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6504   || as_fn_error "could not create $ac_file" "$LINENO" 5
6505
6506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6507   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6508   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6510 which seems to be undefined.  Please make sure it is defined." >&5
6511 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6512 which seems to be undefined.  Please make sure it is defined." >&2;}
6513
6514   rm -f "$tmp/stdin"
6515   case $ac_file in
6516   -) cat "$tmp/out" && rm -f "$tmp/out";;
6517   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6518   esac \
6519   || as_fn_error "could not create $ac_file" "$LINENO" 5
6520  ;;
6521   :H)
6522   #
6523   # CONFIG_HEADER
6524   #
6525   if test x"$ac_file" != x-; then
6526     {
6527       $as_echo "/* $configure_input  */" \
6528       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6529     } >"$tmp/config.h" \
6530       || as_fn_error "could not create $ac_file" "$LINENO" 5
6531     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6532       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6533 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6534     else
6535       rm -f "$ac_file"
6536       mv "$tmp/config.h" "$ac_file" \
6537         || as_fn_error "could not create $ac_file" "$LINENO" 5
6538     fi
6539   else
6540     $as_echo "/* $configure_input  */" \
6541       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6542       || as_fn_error "could not create -" "$LINENO" 5
6543   fi
6544 # Compute "$ac_file"'s index in $config_headers.
6545 _am_arg="$ac_file"
6546 _am_stamp_count=1
6547 for _am_header in $config_headers :; do
6548   case $_am_header in
6549     $_am_arg | $_am_arg:* )
6550       break ;;
6551     * )
6552       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6553   esac
6554 done
6555 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6556 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6557          X"$_am_arg" : 'X\(//\)[^/]' \| \
6558          X"$_am_arg" : 'X\(//\)$' \| \
6559          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6560 $as_echo X"$_am_arg" |
6561     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6562             s//\1/
6563             q
6564           }
6565           /^X\(\/\/\)[^/].*/{
6566             s//\1/
6567             q
6568           }
6569           /^X\(\/\/\)$/{
6570             s//\1/
6571             q
6572           }
6573           /^X\(\/\).*/{
6574             s//\1/
6575             q
6576           }
6577           s/.*/./; q'`/stamp-h$_am_stamp_count
6578  ;;
6579
6580   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6581 $as_echo "$as_me: executing $ac_file commands" >&6;}
6582  ;;
6583   esac
6584
6585
6586   case $ac_file$ac_mode in
6587     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6588   # Autoconf 2.62 quotes --file arguments for eval, but not when files
6589   # are listed without --file.  Let's play safe and only enable the eval
6590   # if we detect the quoting.
6591   case $CONFIG_FILES in
6592   *\'*) eval set x "$CONFIG_FILES" ;;
6593   *)   set x $CONFIG_FILES ;;
6594   esac
6595   shift
6596   for mf
6597   do
6598     # Strip MF so we end up with the name of the file.
6599     mf=`echo "$mf" | sed -e 's/:.*$//'`
6600     # Check whether this is an Automake generated Makefile or not.
6601     # We used to match only the files named `Makefile.in', but
6602     # some people rename them; so instead we look at the file content.
6603     # Grep'ing the first line is not enough: some people post-process
6604     # each Makefile.in and add a new line on top of each file to say so.
6605     # Grep'ing the whole file is not good either: AIX grep has a line
6606     # limit of 2048, but all sed's we know have understand at least 4000.
6607     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6608       dirpart=`$as_dirname -- "$mf" ||
6609 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6610          X"$mf" : 'X\(//\)[^/]' \| \
6611          X"$mf" : 'X\(//\)$' \| \
6612          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6613 $as_echo X"$mf" |
6614     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6615             s//\1/
6616             q
6617           }
6618           /^X\(\/\/\)[^/].*/{
6619             s//\1/
6620             q
6621           }
6622           /^X\(\/\/\)$/{
6623             s//\1/
6624             q
6625           }
6626           /^X\(\/\).*/{
6627             s//\1/
6628             q
6629           }
6630           s/.*/./; q'`
6631     else
6632       continue
6633     fi
6634     # Extract the definition of DEPDIR, am__include, and am__quote
6635     # from the Makefile without running `make'.
6636     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6637     test -z "$DEPDIR" && continue
6638     am__include=`sed -n 's/^am__include = //p' < "$mf"`
6639     test -z "am__include" && continue
6640     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6641     # When using ansi2knr, U may be empty or an underscore; expand it
6642     U=`sed -n 's/^U = //p' < "$mf"`
6643     # Find all dependency output files, they are included files with
6644     # $(DEPDIR) in their names.  We invoke sed twice because it is the
6645     # simplest approach to changing $(DEPDIR) to its actual value in the
6646     # expansion.
6647     for file in `sed -n "
6648       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6649          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6650       # Make sure the directory exists.
6651       test -f "$dirpart/$file" && continue
6652       fdir=`$as_dirname -- "$file" ||
6653 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6654          X"$file" : 'X\(//\)[^/]' \| \
6655          X"$file" : 'X\(//\)$' \| \
6656          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6657 $as_echo X"$file" |
6658     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6659             s//\1/
6660             q
6661           }
6662           /^X\(\/\/\)[^/].*/{
6663             s//\1/
6664             q
6665           }
6666           /^X\(\/\/\)$/{
6667             s//\1/
6668             q
6669           }
6670           /^X\(\/\).*/{
6671             s//\1/
6672             q
6673           }
6674           s/.*/./; q'`
6675       as_dir=$dirpart/$fdir; as_fn_mkdir_p
6676       # echo "creating $dirpart/$file"
6677       echo '# dummy' > "$dirpart/$file"
6678     done
6679   done
6680 }
6681  ;;
6682
6683   esac
6684 done # for ac_tag
6685
6686
6687 as_fn_exit 0
6688 _ACEOF
6689 ac_clean_files=$ac_clean_files_save
6690
6691 test $ac_write_fail = 0 ||
6692   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6693
6694
6695 # configure is writing to config.log, and then calls config.status.
6696 # config.status does its own redirection, appending to config.log.
6697 # Unfortunately, on DOS this fails, as config.log is still kept open
6698 # by configure, so config.status won't be able to write to it; its
6699 # output is simply discarded.  So we exec the FD to /dev/null,
6700 # effectively closing config.log, so it can be properly (re)opened and
6701 # appended to by config.status.  When coming back to configure, we
6702 # need to make the FD available again.
6703 if test "$no_create" != yes; then
6704   ac_cs_success=:
6705   ac_config_status_args=
6706   test "$silent" = yes &&
6707     ac_config_status_args="$ac_config_status_args --quiet"
6708   exec 5>/dev/null
6709   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6710   exec 5>>config.log
6711   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6712   # would make configure fail if this is the last instruction.
6713   $ac_cs_success || as_fn_exit $?
6714 fi
6715 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6717 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6718 fi
6719