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