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