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