]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/patches/mingw-utils1.patch
Reworked the MinGW32 build-dependencies script, it has been renamed to build-depkgs...
[bacula/bacula] / bacula / src / win32 / patches / mingw-utils1.patch
1 diff -ru ../release/mingw-utils-0.3/Makefile.am ./Makefile.am
2 --- ../release/mingw-utils-0.3/Makefile.am      Wed Dec  4 07:06:21 2002
3 +++ ./Makefile.am       Tue Aug  8 06:53:25 2006
4 @@ -1,4 +1,18 @@
5 -SUBDIRS = dos2unix drmingw pexports redir reimp res2coff scripts unix2dos
6 +if BUILD_DRMINGW
7 +  DRMINGW = drmingw
8 +endif
9 +
10 +if BUILD_REDIR
11 +  REDIR = redir
12 +endif
13 +
14 +if BUILD_RES2COFF
15 +  RES2COFF = res2coff
16 +endif
17 +
18 +SUBDIRS = dos2unix $(DRMINGW) pexports ${REDIR} reimp ${RES2COFF} scripts unix2dos
19 +
20 +EXTRA_DIST = dos2unix/dos2unix.1 unix2dos/unix2dos.1
21  
22  instdir = /tmp/$(PACKAGE)-$(VERSION)
23  
24 diff -ru ../release/mingw-utils-0.3/Makefile.in ./Makefile.in
25 --- ../release/mingw-utils-0.3/Makefile.in      Tue Nov 25 11:31:11 2003
26 +++ ./Makefile.in       Tue Aug  8 06:53:25 2006
27 @@ -1,8 +1,8 @@
28 -# Makefile.in generated by automake 1.7.9 from Makefile.am.
29 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
30  # @configure_input@
31  
32 -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
33 -# Free Software Foundation, Inc.
34 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
35 +# 2003, 2004, 2005  Free Software Foundation, Inc.
36  # This Makefile.in is free software; the Free Software Foundation
37  # gives unlimited permission to copy and/or distribute it,
38  # with or without modifications, as long as this notice is preserved.
39 @@ -13,7 +13,6 @@
40  # PARTICULAR PURPOSE.
41  
42  @SET_MAKE@
43 -
44  srcdir = @srcdir@
45  top_srcdir = @top_srcdir@
46  VPATH = @srcdir@
47 @@ -21,7 +20,6 @@
48  pkglibdir = $(libdir)/@PACKAGE@
49  pkgincludedir = $(includedir)/@PACKAGE@
50  top_builddir = .
51 -
52  am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
53  INSTALL = @INSTALL@
54  install_sh_DATA = $(install_sh) -c -m 644
55 @@ -35,6 +33,43 @@
56  NORMAL_UNINSTALL = :
57  PRE_UNINSTALL = :
58  POST_UNINSTALL = :
59 +subdir = .
60 +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
61 +       $(srcdir)/Makefile.in $(srcdir)/config.h.in \
62 +       $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
63 +       compile depcomp install-sh missing
64 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
65 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
66 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
67 +       $(ACLOCAL_M4)
68 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
69 + configure.lineno configure.status.lineno
70 +mkinstalldirs = $(install_sh) -d
71 +CONFIG_HEADER = config.h
72 +CONFIG_CLEAN_FILES =
73 +SOURCES =
74 +DIST_SOURCES =
75 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
76 +       html-recursive info-recursive install-data-recursive \
77 +       install-exec-recursive install-info-recursive \
78 +       install-recursive installcheck-recursive installdirs-recursive \
79 +       pdf-recursive ps-recursive uninstall-info-recursive \
80 +       uninstall-recursive
81 +ETAGS = etags
82 +CTAGS = ctags
83 +DIST_SUBDIRS = dos2unix drmingw pexports redir reimp res2coff scripts \
84 +       unix2dos
85 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
86 +distdir = $(PACKAGE)-$(VERSION)
87 +top_distdir = $(distdir)
88 +am__remove_distdir = \
89 +  { test ! -d $(distdir) \
90 +    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
91 +         && rm -fr $(distdir); }; }
92 +DIST_ARCHIVES = $(distdir).tar.gz
93 +GZIP_ENV = --best
94 +distuninstallcheck_listfiles = find . -type f -print
95 +distcleancheck_listfiles = find . -type f -print
96  ACLOCAL = @ACLOCAL@
97  AMDEP_FALSE = @AMDEP_FALSE@
98  AMDEP_TRUE = @AMDEP_TRUE@
99 @@ -43,6 +78,12 @@
100  AUTOHEADER = @AUTOHEADER@
101  AUTOMAKE = @AUTOMAKE@
102  AWK = @AWK@
103 +BUILD_DRMINGW_FALSE = @BUILD_DRMINGW_FALSE@
104 +BUILD_DRMINGW_TRUE = @BUILD_DRMINGW_TRUE@
105 +BUILD_REDIR_FALSE = @BUILD_REDIR_FALSE@
106 +BUILD_REDIR_TRUE = @BUILD_REDIR_TRUE@
107 +BUILD_RES2COFF_FALSE = @BUILD_RES2COFF_FALSE@
108 +BUILD_RES2COFF_TRUE = @BUILD_RES2COFF_TRUE@
109  CC = @CC@
110  CCDEPMODE = @CCDEPMODE@
111  CFLAGS = @CFLAGS@
112 @@ -101,6 +142,8 @@
113  am__include = @am__include@
114  am__leading_dot = @am__leading_dot@
115  am__quote = @am__quote@
116 +am__tar = @am__tar@
117 +am__untar = @am__untar@
118  bindir = @bindir@
119  build_alias = @build_alias@
120  datadir = @datadir@
121 @@ -113,6 +156,7 @@
122  libexecdir = @libexecdir@
123  localstatedir = @localstatedir@
124  mandir = @mandir@
125 +mkdir_p = @mkdir_p@
126  oldincludedir = @oldincludedir@
127  prefix = @prefix@
128  program_transform_name = @program_transform_name@
129 @@ -120,45 +164,48 @@
130  sharedstatedir = @sharedstatedir@
131  sysconfdir = @sysconfdir@
132  target_alias = @target_alias@
133 -SUBDIRS = dos2unix drmingw pexports redir reimp res2coff scripts unix2dos
134 -
135 +@BUILD_DRMINGW_TRUE@DRMINGW = drmingw
136 +@BUILD_REDIR_TRUE@REDIR = redir
137 +@BUILD_RES2COFF_TRUE@RES2COFF = res2coff
138 +SUBDIRS = dos2unix $(DRMINGW) pexports ${REDIR} reimp ${RES2COFF} scripts unix2dos
139 +EXTRA_DIST = dos2unix/dos2unix.1 unix2dos/unix2dos.1
140  instdir = /tmp/$(PACKAGE)-$(VERSION)
141 -subdir = .
142 -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
143 -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
144 -CONFIG_HEADER = config.h
145 -CONFIG_CLEAN_FILES =
146 -DIST_SOURCES =
147 -
148 -RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
149 -       ps-recursive install-info-recursive uninstall-info-recursive \
150 -       all-recursive install-data-recursive install-exec-recursive \
151 -       installdirs-recursive install-recursive uninstall-recursive \
152 -       check-recursive installcheck-recursive
153 -DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS \
154 -       COPYING ChangeLog INSTALL Makefile.am NEWS aclocal.m4 compile \
155 -       config.h.in configure configure.ac depcomp install-sh missing \
156 -       mkinstalldirs
157 -DIST_SUBDIRS = $(SUBDIRS)
158  all: config.h
159         $(MAKE) $(AM_MAKEFLAGS) all-recursive
160  
161  .SUFFIXES:
162 -
163 -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
164 - configure.lineno
165 -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
166 +am--refresh:
167 +       @:
168 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
169 +       @for dep in $?; do \
170 +         case '$(am__configure_deps)' in \
171 +           *$$dep*) \
172 +             echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
173 +             cd $(srcdir) && $(AUTOMAKE) --gnu  \
174 +               && exit 0; \
175 +             exit 1;; \
176 +         esac; \
177 +       done; \
178 +       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  Makefile'; \
179         cd $(top_srcdir) && \
180           $(AUTOMAKE) --gnu  Makefile
181 -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  $(top_builddir)/config.status
182 -       cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
183 +.PRECIOUS: Makefile
184 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
185 +       @case '$?' in \
186 +         *config.status*) \
187 +           echo ' $(SHELL) ./config.status'; \
188 +           $(SHELL) ./config.status;; \
189 +         *) \
190 +           echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
191 +           cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
192 +       esac;
193  
194 -$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
195 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
196         $(SHELL) ./config.status --recheck
197 -$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
198 -       cd $(srcdir) && $(AUTOCONF)
199  
200 -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.ac 
201 +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
202 +       cd $(srcdir) && $(AUTOCONF)
203 +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
204         cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
205  
206  config.h: stamp-h1
207 @@ -170,10 +217,10 @@
208  stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
209         @rm -f stamp-h1
210         cd $(top_builddir) && $(SHELL) ./config.status config.h
211 -
212 -$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(top_srcdir)/configure.ac $(ACLOCAL_M4) 
213 +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) 
214         cd $(top_srcdir) && $(AUTOHEADER)
215 -       touch $(srcdir)/config.h.in
216 +       rm -f stamp-h1
217 +       touch $@
218  
219  distclean-hdr:
220         -rm -f config.h stamp-h1
221 @@ -186,7 +233,13 @@
222  #     (which will cause the Makefiles to be regenerated when you run `make');
223  # (2) otherwise, pass the desired values on the `make' command line.
224  $(RECURSIVE_TARGETS):
225 -       @set fnord $$MAKEFLAGS; amf=$$2; \
226 +       @failcom='exit 1'; \
227 +       for f in x $$MAKEFLAGS; do \
228 +         case $$f in \
229 +           *=* | --[!k]*);; \
230 +           *k*) failcom='fail=yes';; \
231 +         esac; \
232 +       done; \
233         dot_seen=no; \
234         target=`echo $@ | sed s/-recursive//`; \
235         list='$(SUBDIRS)'; for subdir in $$list; do \
236 @@ -198,7 +251,7 @@
237             local_target="$$target"; \
238           fi; \
239           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
240 -          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
241 +         || eval $$failcom; \
242         done; \
243         if test "$$dot_seen" = "no"; then \
244           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
245 @@ -206,7 +259,13 @@
246  
247  mostlyclean-recursive clean-recursive distclean-recursive \
248  maintainer-clean-recursive:
249 -       @set fnord $$MAKEFLAGS; amf=$$2; \
250 +       @failcom='exit 1'; \
251 +       for f in x $$MAKEFLAGS; do \
252 +         case $$f in \
253 +           *=* | --[!k]*);; \
254 +           *k*) failcom='fail=yes';; \
255 +         esac; \
256 +       done; \
257         dot_seen=no; \
258         case "$@" in \
259           distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
260 @@ -227,7 +286,7 @@
261             local_target="$$target"; \
262           fi; \
263           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
264 -          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
265 +         || eval $$failcom; \
266         done && test -z "$$fail"
267  tags-recursive:
268         list='$(SUBDIRS)'; for subdir in $$list; do \
269 @@ -238,14 +297,6 @@
270           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
271         done
272  
273 -ETAGS = etags
274 -ETAGSFLAGS =
275 -
276 -CTAGS = ctags
277 -CTAGSFLAGS =
278 -
279 -tags: TAGS
280 -
281  ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
282         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
283         unique=`for i in $$list; do \
284 @@ -254,19 +305,22 @@
285           $(AWK) '    { files[$$0] = 1; } \
286                END { for (i in files) print i; }'`; \
287         mkid -fID $$unique
288 +tags: TAGS
289  
290  TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
291                 $(TAGS_FILES) $(LISP)
292         tags=; \
293         here=`pwd`; \
294 -       if (etags --etags-include --version) >/dev/null 2>&1; then \
295 +       if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
296           include_option=--etags-include; \
297 +         empty_fix=.; \
298         else \
299           include_option=--include; \
300 +         empty_fix=; \
301         fi; \
302         list='$(SUBDIRS)'; for subdir in $$list; do \
303           if test "$$subdir" = .; then :; else \
304 -           test -f $$subdir/TAGS && \
305 +           test ! -f $$subdir/TAGS || \
306               tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
307           fi; \
308         done; \
309 @@ -276,10 +330,11 @@
310           done | \
311           $(AWK) '    { files[$$0] = 1; } \
312                END { for (i in files) print i; }'`; \
313 -       test -z "$(ETAGS_ARGS)$$tags$$unique" \
314 -         || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
315 -            $$tags $$unique
316 -
317 +       if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
318 +         test -n "$$unique" || unique=$$empty_fix; \
319 +         $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
320 +           $$tags $$unique; \
321 +       fi
322  ctags: CTAGS
323  CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
324                 $(TAGS_FILES) $(LISP)
325 @@ -302,24 +357,11 @@
326  
327  distclean-tags:
328         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
329 -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
330 -
331 -top_distdir = .
332 -distdir = $(PACKAGE)-$(VERSION)
333 -
334 -am__remove_distdir = \
335 -  { test ! -d $(distdir) \
336 -    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
337 -         && rm -fr $(distdir); }; }
338 -
339 -GZIP_ENV = --best
340 -distuninstallcheck_listfiles = find . -type f -print
341 -distcleancheck_listfiles = find . -type f -print
342  
343  distdir: $(DISTFILES)
344         $(am__remove_distdir)
345         mkdir $(distdir)
346 -       $(mkinstalldirs) $(distdir)/scripts
347 +       $(mkdir_p) $(distdir)/dos2unix $(distdir)/scripts $(distdir)/unix2dos
348         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
349         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
350         list='$(DISTFILES)'; for file in $$list; do \
351 @@ -331,7 +373,7 @@
352           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
353           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
354             dir="/$$dir"; \
355 -           $(mkinstalldirs) "$(distdir)$$dir"; \
356 +           $(mkdir_p) "$(distdir)$$dir"; \
357           else \
358             dir=''; \
359           fi; \
360 @@ -346,15 +388,17 @@
361             || exit 1; \
362           fi; \
363         done
364 -       list='$(SUBDIRS)'; for subdir in $$list; do \
365 +       list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
366           if test "$$subdir" = .; then :; else \
367 -           test -d $(distdir)/$$subdir \
368 -           || mkdir $(distdir)/$$subdir \
369 +           test -d "$(distdir)/$$subdir" \
370 +           || $(mkdir_p) "$(distdir)/$$subdir" \
371             || exit 1; \
372 +           distdir=`$(am__cd) $(distdir) && pwd`; \
373 +           top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
374             (cd $$subdir && \
375               $(MAKE) $(AM_MAKEFLAGS) \
376 -               top_distdir="$(top_distdir)" \
377 -               distdir=../$(distdir)/$$subdir \
378 +               top_distdir="$$top_distdir" \
379 +               distdir="$$distdir/$$subdir" \
380                 distdir) \
381               || exit 1; \
382           fi; \
383 @@ -365,19 +409,46 @@
384           ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
385         || chmod -R a+r $(distdir)
386  dist-gzip: distdir
387 -       $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
388 +       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
389 +       $(am__remove_distdir)
390 +
391 +dist-bzip2: distdir
392 +       tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
393 +       $(am__remove_distdir)
394 +
395 +dist-tarZ: distdir
396 +       tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
397 +       $(am__remove_distdir)
398 +
399 +dist-shar: distdir
400 +       shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
401 +       $(am__remove_distdir)
402 +
403 +dist-zip: distdir
404 +       -rm -f $(distdir).zip
405 +       zip -rq $(distdir).zip $(distdir)
406         $(am__remove_distdir)
407  
408  dist dist-all: distdir
409 -       $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
410 +       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
411         $(am__remove_distdir)
412  
413  # This target untars the dist file and tries a VPATH configuration.  Then
414  # it guarantees that the distribution is self-contained by making another
415  # tarfile.
416  distcheck: dist
417 -       $(am__remove_distdir)
418 -       GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
419 +       case '$(DIST_ARCHIVES)' in \
420 +       *.tar.gz*) \
421 +         GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
422 +       *.tar.bz2*) \
423 +         bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
424 +       *.tar.Z*) \
425 +         uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
426 +       *.shar.gz*) \
427 +         GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
428 +       *.zip*) \
429 +         unzip $(distdir).zip ;;\
430 +       esac
431         chmod -R a-w $(distdir); chmod a+w $(distdir)
432         mkdir $(distdir)/_build
433         mkdir $(distdir)/_inst
434 @@ -397,19 +468,20 @@
435                 distuninstallcheck \
436           && chmod -R a-w "$$dc_install_base" \
437           && ({ \
438 -              (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \
439 +              (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
440                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
441                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
442                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
443                     distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
444               } || { rm -rf "$$dc_destdir"; exit 1; }) \
445           && rm -rf "$$dc_destdir" \
446 -         && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
447 -         && rm -f $(distdir).tar.gz \
448 +         && $(MAKE) $(AM_MAKEFLAGS) dist \
449 +         && rm -rf $(DIST_ARCHIVES) \
450           && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
451         $(am__remove_distdir)
452 -       @echo "$(distdir).tar.gz is ready for distribution" | \
453 -         sed 'h;s/./=/g;p;x;p;x'
454 +       @(echo "$(distdir) archives ready for distribution: "; \
455 +         list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
456 +         sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
457  distuninstallcheck:
458         @cd $(distuninstallcheck_dir) \
459         && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
460 @@ -433,7 +505,6 @@
461  all-am: Makefile config.h
462  installdirs: installdirs-recursive
463  installdirs-am:
464 -
465  install: install-recursive
466  install-exec: install-exec-recursive
467  install-data: install-data-recursive
468 @@ -453,7 +524,7 @@
469  clean-generic:
470  
471  distclean-generic:
472 -       -rm -f $(CONFIG_CLEAN_FILES)
473 +       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
474  
475  maintainer-clean-generic:
476         @echo "This command is intended for maintainers to use"
477 @@ -471,6 +542,8 @@
478  
479  dvi-am:
480  
481 +html: html-recursive
482 +
483  info: info-recursive
484  
485  info-am:
486 @@ -507,22 +580,20 @@
487  
488  uninstall-info: uninstall-info-recursive
489  
490 -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
491 -       clean-generic clean-recursive ctags ctags-recursive dist \
492 -       dist-all dist-gzip distcheck distclean distclean-generic \
493 -       distclean-hdr distclean-recursive distclean-tags distcleancheck \
494 -       distdir distuninstallcheck dvi dvi-am dvi-recursive info \
495 -       info-am info-recursive install install-am install-data \
496 -       install-data-am install-data-recursive install-exec \
497 -       install-exec-am install-exec-recursive install-info \
498 -       install-info-am install-info-recursive install-man \
499 -       install-recursive install-strip installcheck installcheck-am \
500 -       installdirs installdirs-am installdirs-recursive \
501 -       maintainer-clean maintainer-clean-generic \
502 -       maintainer-clean-recursive mostlyclean mostlyclean-generic \
503 -       mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \
504 -       ps-recursive tags tags-recursive uninstall uninstall-am \
505 -       uninstall-info-am uninstall-info-recursive uninstall-recursive
506 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
507 +       check-am clean clean-generic clean-recursive ctags \
508 +       ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
509 +       dist-tarZ dist-zip distcheck distclean distclean-generic \
510 +       distclean-hdr distclean-recursive distclean-tags \
511 +       distcleancheck distdir distuninstallcheck dvi dvi-am html \
512 +       html-am info info-am install install-am install-data \
513 +       install-data-am install-exec install-exec-am install-info \
514 +       install-info-am install-man install-strip installcheck \
515 +       installcheck-am installdirs installdirs-am maintainer-clean \
516 +       maintainer-clean-generic maintainer-clean-recursive \
517 +       mostlyclean mostlyclean-generic mostlyclean-recursive pdf \
518 +       pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
519 +       uninstall-info-am
520  
521  
522  sdist: dist
523 diff -ru ../release/mingw-utils-0.3/configure ./configure
524 --- ../release/mingw-utils-0.3/configure        Tue Nov 25 11:31:12 2003
525 +++ ./configure Tue Aug  8 06:53:25 2006
526 @@ -1,6 +1,6 @@
527  #! /bin/sh
528  # Guess values for system-dependent variables and create Makefiles.
529 -# Generated by GNU Autoconf 2.58 for mingw-utils 0.3.
530 +# Generated by GNU Autoconf 2.59 for mingw-utils 0.3.
531  #
532  # Copyright (C) 2003 Free Software Foundation, Inc.
533  # This configure script is free software; the Free Software Foundation
534 @@ -309,7 +309,7 @@
535  # include <unistd.h>
536  #endif"
537  
538 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB LEX LEXLIB LEX_OUTPUT_ROOT YACC WINDRES ac_pt_WINDRES CPP EGREP LIBOBJS LTLIBOBJS'
539 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT BUILD_DRMINGW_TRUE BUILD_DRMINGW_FALSE BUILD_REDIR_TRUE BUILD_REDIR_FALSE BUILD_RES2COFF_TRUE BUILD_RES2COFF_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB LEX LEXLIB LEX_OUTPUT_ROOT YACC WINDRES ac_pt_WINDRES CPP EGREP LIBOBJS LTLIBOBJS'
540  ac_subst_files=''
541  
542  # Initialize some variables set by options.
543 @@ -859,10 +859,15 @@
544  Optional Features:
545    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
546    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
547 -  --enable-maintainer-mode enable make rules and dependencies not useful
548 -                          (and sometimes confusing) to the casual installer
549 -  --disable-dependency-tracking Speeds up one-time builds
550 -  --enable-dependency-tracking  Do not reject slow dependency extractors
551 +  --enable-maintainer-mode  enable make rules and dependencies not useful
552 +                         (and sometimes confusing) to the casual installer
553 +  --disable-drmingw       Don't build drmingw (default is build)
554 +  --disable-redir         Don't build redir (default is build)
555 +  --disable-res2coff      Don't build res2coff (default is build)
556 +  --disable-nonportable   shortcut for --disable-drmingw, --disable-redir and
557 +                          --disable-res2coff
558 +  --disable-dependency-tracking  speeds up one-time build
559 +  --enable-dependency-tracking   do not reject slow dependency extractors
560  
561  Some influential environment variables:
562    CC          C compiler command
563 @@ -967,7 +972,7 @@
564      else
565        echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
566      fi
567 -    cd "$ac_popdir"
568 +    cd $ac_popdir
569    done
570  fi
571  
572 @@ -975,7 +980,7 @@
573  if $ac_init_version; then
574    cat <<\_ACEOF
575  mingw-utils configure 0.3
576 -generated by GNU Autoconf 2.58
577 +generated by GNU Autoconf 2.59
578  
579  Copyright (C) 2003 Free Software Foundation, Inc.
580  This configure script is free software; the Free Software Foundation
581 @@ -989,7 +994,7 @@
582  running configure, to aid debugging if configure makes a mistake.
583  
584  It was created by mingw-utils $as_me 0.3, which was
585 -generated by GNU Autoconf 2.58.  Invocation command line was
586 +generated by GNU Autoconf 2.59.  Invocation command line was
587  
588    $ $0 $@
589  
590 @@ -1325,7 +1330,7 @@
591  
592  
593  
594 -am__api_version="1.7"
595 +am__api_version="1.9"
596  ac_aux_dir=
597  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
598    if test -f $ac_dir/install-sh; then
599 @@ -1488,7 +1493,6 @@
600  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
601  rm conftest.sed
602  
603 -
604  # expand $ac_aux_dir to an absolute path
605  am_aux_dir=`cd $ac_aux_dir && pwd`
606  
607 @@ -1502,6 +1506,39 @@
608  echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
609  fi
610  
611 +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
612 +  # We used to keeping the `.' as first argument, in order to
613 +  # allow $(mkdir_p) to be used without argument.  As in
614 +  #   $(mkdir_p) $(somedir)
615 +  # where $(somedir) is conditionally defined.  However this is wrong
616 +  # for two reasons:
617 +  #  1. if the package is installed by a user who cannot write `.'
618 +  #     make install will fail,
619 +  #  2. the above comment should most certainly read
620 +  #     $(mkdir_p) $(DESTDIR)$(somedir)
621 +  #     so it does not work when $(somedir) is undefined and
622 +  #     $(DESTDIR) is not.
623 +  #  To support the latter case, we have to write
624 +  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
625 +  #  so the `.' trick is pointless.
626 +  mkdir_p='mkdir -p --'
627 +else
628 +  # On NextStep and OpenStep, the `mkdir' command does not
629 +  # recognize any option.  It will interpret all options as
630 +  # directories to create, and then abort because `.' already
631 +  # exists.
632 +  for d in ./-p ./--version;
633 +  do
634 +    test -d $d && rmdir $d
635 +  done
636 +  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
637 +  if test -f "$ac_aux_dir/mkinstalldirs"; then
638 +    mkdir_p='$(mkinstalldirs)'
639 +  else
640 +    mkdir_p='$(install_sh) -d'
641 +  fi
642 +fi
643 +
644  for ac_prog in gawk mawk nawk awk
645  do
646    # Extract the first word of "$ac_prog", so it can be a program name with args.
647 @@ -1580,7 +1617,7 @@
648  fi
649  rmdir .tst 2>/dev/null
650  
651 - # test to see if srcdir already configured
652 +# test to see if srcdir already configured
653  if test "`cd $srcdir && pwd`" != "`pwd`" &&
654     test -f $srcdir/config.status; then
655    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
656 @@ -1619,9 +1656,6 @@
657  
658  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
659  
660 -
661 -AMTAR=${AMTAR-"${am_missing_run}tar"}
662 -
663  install_sh=${install_sh-"$am_aux_dir/install-sh"}
664  
665  # Installed binaries are usually stripped using `strip' when the user
666 @@ -1714,6 +1748,13 @@
667  
668  # We need awk for the "check" target.  The system "awk" is bad on
669  # some platforms.
670 +# Always define AMTAR for backward compatibility.
671 +
672 +AMTAR=${AMTAR-"${am_missing_run}tar"}
673 +
674 +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
675 +
676 +
677  
678  
679  
680 @@ -1745,6 +1786,99 @@
681  
682  
683  
684 +# Check whether --enable-drmingw or --disable-drmingw was given.
685 +if test "${enable_drmingw+set}" = set; then
686 +  enableval="$enable_drmingw"
687 +  case "${enableval}" in
688 +         yes) build_drmingw=true ;;
689 +         no)  build_drmingw=false ;;
690 +         *)   { { echo "$as_me:$LINENO: error: --enable-drmingw argument must be yes or no, not \"${enableval}\"" >&5
691 +echo "$as_me: error: --enable-drmingw argument must be yes or no, not \"${enableval}\"" >&2;}
692 +   { (exit 1); exit 1; }; } ;;
693 +        esac
694 +else
695 +  build_drmingw=true
696 +fi;
697 +
698 +# Check whether --enable-redir or --disable-redir was given.
699 +if test "${enable_redir+set}" = set; then
700 +  enableval="$enable_redir"
701 +  case "${enableval}" in
702 +         yes) build_redir=true ;;
703 +         no)  build_redir=false ;;
704 +         *)   { { echo "$as_me:$LINENO: error: --enable-redir argument must be yes or no, not \"${enableval}\"" >&5
705 +echo "$as_me: error: --enable-redir argument must be yes or no, not \"${enableval}\"" >&2;}
706 +   { (exit 1); exit 1; }; } ;;
707 +        esac
708 +else
709 +  build_redir=true
710 +fi;
711 +
712 +# Check whether --enable-res2coff or --disable-res2coff was given.
713 +if test "${enable_res2coff+set}" = set; then
714 +  enableval="$enable_res2coff"
715 +  case "${enableval}" in
716 +         yes) build_res2coff=true ;;
717 +         no)  build_res2coff=false ;;
718 +         *)   { { echo "$as_me:$LINENO: error: --enable-res2coff argument must be yes or no, not \"${enableval}\"" >&5
719 +echo "$as_me: error: --enable-res2coff argument must be yes or no, not \"${enableval}\"" >&2;}
720 +   { (exit 1); exit 1; }; } ;;
721 +        esac
722 +else
723 +  build_res2coff=true
724 +fi;
725 +
726 +# Check whether --enable-nonportable or --disable-nonportable was given.
727 +if test "${enable_nonportable+set}" = set; then
728 +  enableval="$enable_nonportable"
729 +  case "${enableval}" in
730 +         yes) build_drmingw=true
731 +              build_redir=true
732 +              build_res2coff=true
733 +              ;;
734 +         no)  build_res2coff=false
735 +              build_redir=false
736 +              build_res2coff=false
737 +              ;;
738 +         *)   { { echo "$as_me:$LINENO: error: --enable-nonportable argument must be yes or no, not \"${enableval}\"" >&5
739 +echo "$as_me: error: --enable-nonportable argument must be yes or no, not \"${enableval}\"" >&2;}
740 +   { (exit 1); exit 1; }; } ;;
741 +        esac
742 +else
743 +  build_res2coff=true
744 +fi;
745 +
746 +
747 +
748 +if test "${build_drmingw}" = "true"; then
749 +  BUILD_DRMINGW_TRUE=
750 +  BUILD_DRMINGW_FALSE='#'
751 +else
752 +  BUILD_DRMINGW_TRUE='#'
753 +  BUILD_DRMINGW_FALSE=
754 +fi
755 +
756 +
757 +
758 +if test "${build_redir}" = "true"; then
759 +  BUILD_REDIR_TRUE=
760 +  BUILD_REDIR_FALSE='#'
761 +else
762 +  BUILD_REDIR_TRUE='#'
763 +  BUILD_REDIR_FALSE=
764 +fi
765 +
766 +
767 +
768 +if test "${build_res2coff}" = "true"; then
769 +  BUILD_RES2COFF_TRUE=
770 +  BUILD_RES2COFF_FALSE='#'
771 +else
772 +  BUILD_RES2COFF_TRUE='#'
773 +  BUILD_RES2COFF_FALSE=
774 +fi
775 +
776 +
777  # Checks for programs.
778  ac_ext=c
779  ac_cpp='$CPP $CPPFLAGS'
780 @@ -2314,7 +2448,8 @@
781    cat conftest.err >&5
782    echo "$as_me:$LINENO: \$? = $ac_status" >&5
783    (exit $ac_status); } &&
784 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
785 +        { ac_try='test -z "$ac_c_werror_flag"
786 +                        || test ! -s conftest.err'
787    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
788    (eval $ac_try) 2>&5
789    ac_status=$?
790 @@ -2372,7 +2507,8 @@
791    cat conftest.err >&5
792    echo "$as_me:$LINENO: \$? = $ac_status" >&5
793    (exit $ac_status); } &&
794 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
795 +        { ac_try='test -z "$ac_c_werror_flag"
796 +                        || test ! -s conftest.err'
797    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
798    (eval $ac_try) 2>&5
799    ac_status=$?
800 @@ -2488,7 +2624,8 @@
801    cat conftest.err >&5
802    echo "$as_me:$LINENO: \$? = $ac_status" >&5
803    (exit $ac_status); } &&
804 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
805 +        { ac_try='test -z "$ac_c_werror_flag"
806 +                        || test ! -s conftest.err'
807    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
808    (eval $ac_try) 2>&5
809    ac_status=$?
810 @@ -2542,7 +2679,8 @@
811    cat conftest.err >&5
812    echo "$as_me:$LINENO: \$? = $ac_status" >&5
813    (exit $ac_status); } &&
814 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
815 +        { ac_try='test -z "$ac_c_werror_flag"
816 +                        || test ! -s conftest.err'
817    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
818    (eval $ac_try) 2>&5
819    ac_status=$?
820 @@ -2587,7 +2725,8 @@
821    cat conftest.err >&5
822    echo "$as_me:$LINENO: \$? = $ac_status" >&5
823    (exit $ac_status); } &&
824 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
825 +        { ac_try='test -z "$ac_c_werror_flag"
826 +                        || test ! -s conftest.err'
827    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
828    (eval $ac_try) 2>&5
829    ac_status=$?
830 @@ -2631,7 +2770,8 @@
831    cat conftest.err >&5
832    echo "$as_me:$LINENO: \$? = $ac_status" >&5
833    (exit $ac_status); } &&
834 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
835 +        { ac_try='test -z "$ac_c_werror_flag"
836 +                        || test ! -s conftest.err'
837    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
838    (eval $ac_try) 2>&5
839    ac_status=$?
840 @@ -2776,7 +2916,9 @@
841      : > sub/conftest.c
842      for i in 1 2 3 4 5 6; do
843        echo '#include "conftst'$i'.h"' >> sub/conftest.c
844 -      : > sub/conftst$i.h
845 +      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
846 +      # Solaris 8's {/usr,}/bin/sh.
847 +      touch sub/conftst$i.h
848      done
849      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
850  
851 @@ -2804,9 +2946,14 @@
852         grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
853         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
854        # icc doesn't choke on unknown options, it will just issue warnings
855 -      # (even with -Werror).  So we grep stderr for any message
856 -      # that says an option was ignored.
857 -      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
858 +      # or remarks (even with -Werror).  So we grep stderr for any message
859 +      # that says an option was ignored or not supported.
860 +      # When given -MP, icc 7.0 and 7.1 complain thusly:
861 +      #   icc: Command line warning: ignoring option '-M'; no argument required
862 +      # The diagnosis changed in icc 8.0:
863 +      #   icc: Command line remark: option '-MP' not supported
864 +      if (grep 'ignoring option' conftest.err ||
865 +          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
866          am_cv_CC_dependencies_compiler_type=$depmode
867          break
868        fi
869 @@ -2982,7 +3129,8 @@
870    cat conftest.err >&5
871    echo "$as_me:$LINENO: \$? = $ac_status" >&5
872    (exit $ac_status); } &&
873 -        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
874 +        { ac_try='test -z "$ac_cxx_werror_flag"
875 +                        || test ! -s conftest.err'
876    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
877    (eval $ac_try) 2>&5
878    ac_status=$?
879 @@ -3040,7 +3188,8 @@
880    cat conftest.err >&5
881    echo "$as_me:$LINENO: \$? = $ac_status" >&5
882    (exit $ac_status); } &&
883 -        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
884 +        { ac_try='test -z "$ac_cxx_werror_flag"
885 +                        || test ! -s conftest.err'
886    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
887    (eval $ac_try) 2>&5
888    ac_status=$?
889 @@ -3111,7 +3260,8 @@
890    cat conftest.err >&5
891    echo "$as_me:$LINENO: \$? = $ac_status" >&5
892    (exit $ac_status); } &&
893 -        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
894 +        { ac_try='test -z "$ac_cxx_werror_flag"
895 +                        || test ! -s conftest.err'
896    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
897    (eval $ac_try) 2>&5
898    ac_status=$?
899 @@ -3155,7 +3305,8 @@
900    cat conftest.err >&5
901    echo "$as_me:$LINENO: \$? = $ac_status" >&5
902    (exit $ac_status); } &&
903 -        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
904 +        { ac_try='test -z "$ac_cxx_werror_flag"
905 +                        || test ! -s conftest.err'
906    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
907    (eval $ac_try) 2>&5
908    ac_status=$?
909 @@ -3229,7 +3380,9 @@
910      : > sub/conftest.c
911      for i in 1 2 3 4 5 6; do
912        echo '#include "conftst'$i'.h"' >> sub/conftest.c
913 -      : > sub/conftst$i.h
914 +      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
915 +      # Solaris 8's {/usr,}/bin/sh.
916 +      touch sub/conftst$i.h
917      done
918      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
919  
920 @@ -3257,9 +3410,14 @@
921         grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
922         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
923        # icc doesn't choke on unknown options, it will just issue warnings
924 -      # (even with -Werror).  So we grep stderr for any message
925 -      # that says an option was ignored.
926 -      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
927 +      # or remarks (even with -Werror).  So we grep stderr for any message
928 +      # that says an option was ignored or not supported.
929 +      # When given -MP, icc 7.0 and 7.1 complain thusly:
930 +      #   icc: Command line warning: ignoring option '-M'; no argument required
931 +      # The diagnosis changed in icc 8.0:
932 +      #   icc: Command line remark: option '-MP' not supported
933 +      if (grep 'ignoring option' conftest.err ||
934 +          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
935          am_cv_CXX_dependencies_compiler_type=$depmode
936          break
937        fi
938 @@ -3601,7 +3759,8 @@
939    cat conftest.err >&5
940    echo "$as_me:$LINENO: \$? = $ac_status" >&5
941    (exit $ac_status); } &&
942 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
943 +        { ac_try='test -z "$ac_c_werror_flag"
944 +                        || test ! -s conftest.err'
945    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
946    (eval $ac_try) 2>&5
947    ac_status=$?
948 @@ -3667,7 +3826,8 @@
949    cat conftest.err >&5
950    echo "$as_me:$LINENO: \$? = $ac_status" >&5
951    (exit $ac_status); } &&
952 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
953 +        { ac_try='test -z "$ac_c_werror_flag"
954 +                        || test ! -s conftest.err'
955    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
956    (eval $ac_try) 2>&5
957    ac_status=$?
958 @@ -3756,7 +3916,8 @@
959    cat conftest.err >&5
960    echo "$as_me:$LINENO: \$? = $ac_status" >&5
961    (exit $ac_status); } &&
962 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
963 +        { ac_try='test -z "$ac_c_werror_flag"
964 +                        || test ! -s conftest.err'
965    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
966    (eval $ac_try) 2>&5
967    ac_status=$?
968 @@ -3903,9 +4064,6 @@
969  done
970  done
971  
972 -  test -z "$ac_cv_path_ac_pt_WINDRES" && ac_cv_path_ac_pt_WINDRES="{ echo "$as_me:$LINENO: WARNING: Could not find a windres tool in your PATH. Will not be able to compile drmingw." >&5
973 -echo "$as_me: WARNING: Could not find a windres tool in your PATH. Will not be able to compile drmingw." >&2;}
974 -"
975    ;;
976  esac
977  fi
978 @@ -3925,6 +4083,22 @@
979  fi
980  
981  
982 +if test -z "${WINDRES}"; then
983 +       { echo "$as_me:$LINENO: WARNING: windres tool isn't in your PATH, drmingw can't be built!!" >&5
984 +echo "$as_me: WARNING: windres tool isn't in your PATH, drmingw can't be built!!" >&2;}
985 +
986 +
987 +if false; then
988 +  BUILD_DRMINGW_TRUE=
989 +  BUILD_DRMINGW_FALSE='#'
990 +else
991 +  BUILD_DRMINGW_TRUE='#'
992 +  BUILD_DRMINGW_FALSE=
993 +fi
994 +
995 +fi
996 +
997 +
998  
999  # Checks for header files.
1000  ac_ext=c
1001 @@ -4210,7 +4384,8 @@
1002    cat conftest.err >&5
1003    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1004    (exit $ac_status); } &&
1005 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1006 +        { ac_try='test -z "$ac_c_werror_flag"
1007 +                        || test ! -s conftest.err'
1008    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1009    (eval $ac_try) 2>&5
1010    ac_status=$?
1011 @@ -4342,9 +4517,7 @@
1012  
1013  fi
1014  
1015 -where_toGet_utime_h='not found!'
1016 -# this part is scrambled by autoconf. phooey. so we just cannot tell the user what we are doing.
1017 -# AC_MSG_CHECKING([for whether utime.h is found as "utime.h" or "sys/utime.h"])
1018 +
1019  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1020  
1021  
1022 @@ -4383,7 +4556,8 @@
1023    cat conftest.err >&5
1024    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1025    (exit $ac_status); } &&
1026 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1027 +        { ac_try='test -z "$ac_c_werror_flag"
1028 +                        || test ! -s conftest.err'
1029    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1030    (eval $ac_try) 2>&5
1031    ac_status=$?
1032 @@ -4416,6 +4590,160 @@
1033  done
1034  
1035  
1036 +
1037 +for ac_header in windows.h
1038 +do
1039 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1040 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
1041 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
1042 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
1043 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
1044 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1045 +fi
1046 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1047 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1048 +else
1049 +  # Is the header compilable?
1050 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
1051 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1052 +cat >conftest.$ac_ext <<_ACEOF
1053 +/* confdefs.h.  */
1054 +_ACEOF
1055 +cat confdefs.h >>conftest.$ac_ext
1056 +cat >>conftest.$ac_ext <<_ACEOF
1057 +/* end confdefs.h.  */
1058 +$ac_includes_default
1059 +#include <$ac_header>
1060 +_ACEOF
1061 +rm -f conftest.$ac_objext
1062 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1063 +  (eval $ac_compile) 2>conftest.er1
1064 +  ac_status=$?
1065 +  grep -v '^ *+' conftest.er1 >conftest.err
1066 +  rm -f conftest.er1
1067 +  cat conftest.err >&5
1068 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1069 +  (exit $ac_status); } &&
1070 +        { ac_try='test -z "$ac_c_werror_flag"
1071 +                        || test ! -s conftest.err'
1072 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1073 +  (eval $ac_try) 2>&5
1074 +  ac_status=$?
1075 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1076 +  (exit $ac_status); }; } &&
1077 +        { ac_try='test -s conftest.$ac_objext'
1078 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1079 +  (eval $ac_try) 2>&5
1080 +  ac_status=$?
1081 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1082 +  (exit $ac_status); }; }; then
1083 +  ac_header_compiler=yes
1084 +else
1085 +  echo "$as_me: failed program was:" >&5
1086 +sed 's/^/| /' conftest.$ac_ext >&5
1087 +
1088 +ac_header_compiler=no
1089 +fi
1090 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1091 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
1092 +echo "${ECHO_T}$ac_header_compiler" >&6
1093 +
1094 +# Is the header present?
1095 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
1096 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1097 +cat >conftest.$ac_ext <<_ACEOF
1098 +/* confdefs.h.  */
1099 +_ACEOF
1100 +cat confdefs.h >>conftest.$ac_ext
1101 +cat >>conftest.$ac_ext <<_ACEOF
1102 +/* end confdefs.h.  */
1103 +#include <$ac_header>
1104 +_ACEOF
1105 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1106 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1107 +  ac_status=$?
1108 +  grep -v '^ *+' conftest.er1 >conftest.err
1109 +  rm -f conftest.er1
1110 +  cat conftest.err >&5
1111 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1112 +  (exit $ac_status); } >/dev/null; then
1113 +  if test -s conftest.err; then
1114 +    ac_cpp_err=$ac_c_preproc_warn_flag
1115 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1116 +  else
1117 +    ac_cpp_err=
1118 +  fi
1119 +else
1120 +  ac_cpp_err=yes
1121 +fi
1122 +if test -z "$ac_cpp_err"; then
1123 +  ac_header_preproc=yes
1124 +else
1125 +  echo "$as_me: failed program was:" >&5
1126 +sed 's/^/| /' conftest.$ac_ext >&5
1127 +
1128 +  ac_header_preproc=no
1129 +fi
1130 +rm -f conftest.err conftest.$ac_ext
1131 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
1132 +echo "${ECHO_T}$ac_header_preproc" >&6
1133 +
1134 +# So?  What about this header?
1135 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
1136 +  yes:no: )
1137 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
1138 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1139 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
1140 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
1141 +    ac_header_preproc=yes
1142 +    ;;
1143 +  no:yes:* )
1144 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
1145 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1146 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
1147 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
1148 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
1149 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
1150 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
1151 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
1152 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
1153 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1154 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
1155 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1156 +    (
1157 +      cat <<\_ASBOX
1158 +## -------------------------------------- ##
1159 +## Report this to the mingw-utils lists.  ##
1160 +## -------------------------------------- ##
1161 +_ASBOX
1162 +    ) |
1163 +      sed "s/^/$as_me: WARNING:     /" >&2
1164 +    ;;
1165 +esac
1166 +echo "$as_me:$LINENO: checking for $ac_header" >&5
1167 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
1168 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
1169 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1170 +else
1171 +  eval "$as_ac_Header=\$ac_header_preproc"
1172 +fi
1173 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1174 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1175 +
1176 +fi
1177 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
1178 +  cat >>confdefs.h <<_ACEOF
1179 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1180 +_ACEOF
1181 +
1182 +fi
1183 +
1184 +done
1185 +
1186 +
1187 +where_toGet_utime_h='not found!'
1188 +# this part is scrambled by autoconf. phooey. so we just cannot tell the user what we are doing.
1189 +# AC_MSG_CHECKING([for whether utime.h is found as "utime.h" or "sys/utime.h"])
1190  if test "${ac_cv_header_utime_h+set}" = set; then
1191    echo "$as_me:$LINENO: checking for utime.h" >&5
1192  echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
1193 @@ -4446,7 +4774,8 @@
1194    cat conftest.err >&5
1195    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1196    (exit $ac_status); } &&
1197 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1198 +        { ac_try='test -z "$ac_c_werror_flag"
1199 +                        || test ! -s conftest.err'
1200    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1201    (eval $ac_try) 2>&5
1202    ac_status=$?
1203 @@ -4590,7 +4919,8 @@
1204    cat conftest.err >&5
1205    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1206    (exit $ac_status); } &&
1207 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1208 +        { ac_try='test -z "$ac_c_werror_flag"
1209 +                        || test ! -s conftest.err'
1210    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1211    (eval $ac_try) 2>&5
1212    ac_status=$?
1213 @@ -4787,7 +5117,8 @@
1214    cat conftest.err >&5
1215    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1216    (exit $ac_status); } &&
1217 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1218 +        { ac_try='test -z "$ac_c_werror_flag"
1219 +                        || test ! -s conftest.err'
1220    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1221    (eval $ac_try) 2>&5
1222    ac_status=$?
1223 @@ -4888,7 +5219,8 @@
1224    cat conftest.err >&5
1225    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1226    (exit $ac_status); } &&
1227 -        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1228 +        { ac_try='test -z "$ac_c_werror_flag"
1229 +                        || test ! -s conftest.err'
1230    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1231    (eval $ac_try) 2>&5
1232    ac_status=$?
1233 @@ -4921,24 +5253,1681 @@
1234  done
1235  
1236  
1237 -                                                                                                              ac_config_files="$ac_config_files Makefile dos2unix/Makefile drmingw/Makefile pexports/Makefile redir/Makefile reimp/Makefile res2coff/Makefile scripts/Makefile scripts/a2dll scripts/dsw2mak unix2dos/Makefile"
1238 +echo "$as_me:$LINENO: checking for _int64" >&5
1239 +echo $ECHO_N "checking for _int64... $ECHO_C" >&6
1240 +if test "${ac_cv_type__int64+set}" = set; then
1241 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1242 +else
1243 +  cat >conftest.$ac_ext <<_ACEOF
1244 +/* confdefs.h.  */
1245 +_ACEOF
1246 +cat confdefs.h >>conftest.$ac_ext
1247 +cat >>conftest.$ac_ext <<_ACEOF
1248 +/* end confdefs.h.  */
1249 +$ac_includes_default
1250 +int
1251 +main ()
1252 +{
1253 +if ((_int64 *) 0)
1254 +  return 0;
1255 +if (sizeof (_int64))
1256 +  return 0;
1257 +  ;
1258 +  return 0;
1259 +}
1260 +_ACEOF
1261 +rm -f conftest.$ac_objext
1262 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1263 +  (eval $ac_compile) 2>conftest.er1
1264 +  ac_status=$?
1265 +  grep -v '^ *+' conftest.er1 >conftest.err
1266 +  rm -f conftest.er1
1267 +  cat conftest.err >&5
1268 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1269 +  (exit $ac_status); } &&
1270 +        { ac_try='test -z "$ac_c_werror_flag"
1271 +                        || test ! -s conftest.err'
1272 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1273 +  (eval $ac_try) 2>&5
1274 +  ac_status=$?
1275 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1276 +  (exit $ac_status); }; } &&
1277 +        { ac_try='test -s conftest.$ac_objext'
1278 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1279 +  (eval $ac_try) 2>&5
1280 +  ac_status=$?
1281 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1282 +  (exit $ac_status); }; }; then
1283 +  ac_cv_type__int64=yes
1284 +else
1285 +  echo "$as_me: failed program was:" >&5
1286 +sed 's/^/| /' conftest.$ac_ext >&5
1287  
1288 -cat >confcache <<\_ACEOF
1289 -# This file is a shell script that caches the results of configure
1290 -# tests run on this system so they can be shared between configure
1291 -# scripts and configure runs, see configure's option --config-cache.
1292 -# It is not useful on other systems.  If it contains results you don't
1293 -# want to keep, you may remove or edit it.
1294 -#
1295 -# config.status only pays attention to the cache file if you give it
1296 -# the --recheck option to rerun configure.
1297 -#
1298 -# `ac_cv_env_foo' variables (set or unset) will be overridden when
1299 -# loading this file, other *unset* `ac_cv_foo' will be assigned the
1300 -# following values.
1301 +ac_cv_type__int64=no
1302 +fi
1303 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1304 +fi
1305 +echo "$as_me:$LINENO: result: $ac_cv_type__int64" >&5
1306 +echo "${ECHO_T}$ac_cv_type__int64" >&6
1307  
1308 +echo "$as_me:$LINENO: checking size of _int64" >&5
1309 +echo $ECHO_N "checking size of _int64... $ECHO_C" >&6
1310 +if test "${ac_cv_sizeof__int64+set}" = set; then
1311 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1312 +else
1313 +  if test "$ac_cv_type__int64" = yes; then
1314 +  # The cast to unsigned long works around a bug in the HP C Compiler
1315 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
1316 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
1317 +  # This bug is HP SR number 8606223364.
1318 +  if test "$cross_compiling" = yes; then
1319 +  # Depending upon the size, compute the lo and hi bounds.
1320 +cat >conftest.$ac_ext <<_ACEOF
1321 +/* confdefs.h.  */
1322  _ACEOF
1323 -
1324 +cat confdefs.h >>conftest.$ac_ext
1325 +cat >>conftest.$ac_ext <<_ACEOF
1326 +/* end confdefs.h.  */
1327 +$ac_includes_default
1328 +int
1329 +main ()
1330 +{
1331 +static int test_array [1 - 2 * !(((long) (sizeof (_int64))) >= 0)];
1332 +test_array [0] = 0
1333 +
1334 +  ;
1335 +  return 0;
1336 +}
1337 +_ACEOF
1338 +rm -f conftest.$ac_objext
1339 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1340 +  (eval $ac_compile) 2>conftest.er1
1341 +  ac_status=$?
1342 +  grep -v '^ *+' conftest.er1 >conftest.err
1343 +  rm -f conftest.er1
1344 +  cat conftest.err >&5
1345 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1346 +  (exit $ac_status); } &&
1347 +        { ac_try='test -z "$ac_c_werror_flag"
1348 +                        || test ! -s conftest.err'
1349 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1350 +  (eval $ac_try) 2>&5
1351 +  ac_status=$?
1352 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1353 +  (exit $ac_status); }; } &&
1354 +        { ac_try='test -s conftest.$ac_objext'
1355 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1356 +  (eval $ac_try) 2>&5
1357 +  ac_status=$?
1358 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1359 +  (exit $ac_status); }; }; then
1360 +  ac_lo=0 ac_mid=0
1361 +  while :; do
1362 +    cat >conftest.$ac_ext <<_ACEOF
1363 +/* confdefs.h.  */
1364 +_ACEOF
1365 +cat confdefs.h >>conftest.$ac_ext
1366 +cat >>conftest.$ac_ext <<_ACEOF
1367 +/* end confdefs.h.  */
1368 +$ac_includes_default
1369 +int
1370 +main ()
1371 +{
1372 +static int test_array [1 - 2 * !(((long) (sizeof (_int64))) <= $ac_mid)];
1373 +test_array [0] = 0
1374 +
1375 +  ;
1376 +  return 0;
1377 +}
1378 +_ACEOF
1379 +rm -f conftest.$ac_objext
1380 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1381 +  (eval $ac_compile) 2>conftest.er1
1382 +  ac_status=$?
1383 +  grep -v '^ *+' conftest.er1 >conftest.err
1384 +  rm -f conftest.er1
1385 +  cat conftest.err >&5
1386 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1387 +  (exit $ac_status); } &&
1388 +        { ac_try='test -z "$ac_c_werror_flag"
1389 +                        || test ! -s conftest.err'
1390 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1391 +  (eval $ac_try) 2>&5
1392 +  ac_status=$?
1393 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1394 +  (exit $ac_status); }; } &&
1395 +        { ac_try='test -s conftest.$ac_objext'
1396 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1397 +  (eval $ac_try) 2>&5
1398 +  ac_status=$?
1399 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1400 +  (exit $ac_status); }; }; then
1401 +  ac_hi=$ac_mid; break
1402 +else
1403 +  echo "$as_me: failed program was:" >&5
1404 +sed 's/^/| /' conftest.$ac_ext >&5
1405 +
1406 +ac_lo=`expr $ac_mid + 1`
1407 +                   if test $ac_lo -le $ac_mid; then
1408 +                     ac_lo= ac_hi=
1409 +                     break
1410 +                   fi
1411 +                   ac_mid=`expr 2 '*' $ac_mid + 1`
1412 +fi
1413 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1414 +  done
1415 +else
1416 +  echo "$as_me: failed program was:" >&5
1417 +sed 's/^/| /' conftest.$ac_ext >&5
1418 +
1419 +cat >conftest.$ac_ext <<_ACEOF
1420 +/* confdefs.h.  */
1421 +_ACEOF
1422 +cat confdefs.h >>conftest.$ac_ext
1423 +cat >>conftest.$ac_ext <<_ACEOF
1424 +/* end confdefs.h.  */
1425 +$ac_includes_default
1426 +int
1427 +main ()
1428 +{
1429 +static int test_array [1 - 2 * !(((long) (sizeof (_int64))) < 0)];
1430 +test_array [0] = 0
1431 +
1432 +  ;
1433 +  return 0;
1434 +}
1435 +_ACEOF
1436 +rm -f conftest.$ac_objext
1437 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1438 +  (eval $ac_compile) 2>conftest.er1
1439 +  ac_status=$?
1440 +  grep -v '^ *+' conftest.er1 >conftest.err
1441 +  rm -f conftest.er1
1442 +  cat conftest.err >&5
1443 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1444 +  (exit $ac_status); } &&
1445 +        { ac_try='test -z "$ac_c_werror_flag"
1446 +                        || test ! -s conftest.err'
1447 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1448 +  (eval $ac_try) 2>&5
1449 +  ac_status=$?
1450 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1451 +  (exit $ac_status); }; } &&
1452 +        { ac_try='test -s conftest.$ac_objext'
1453 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1454 +  (eval $ac_try) 2>&5
1455 +  ac_status=$?
1456 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1457 +  (exit $ac_status); }; }; then
1458 +  ac_hi=-1 ac_mid=-1
1459 +  while :; do
1460 +    cat >conftest.$ac_ext <<_ACEOF
1461 +/* confdefs.h.  */
1462 +_ACEOF
1463 +cat confdefs.h >>conftest.$ac_ext
1464 +cat >>conftest.$ac_ext <<_ACEOF
1465 +/* end confdefs.h.  */
1466 +$ac_includes_default
1467 +int
1468 +main ()
1469 +{
1470 +static int test_array [1 - 2 * !(((long) (sizeof (_int64))) >= $ac_mid)];
1471 +test_array [0] = 0
1472 +
1473 +  ;
1474 +  return 0;
1475 +}
1476 +_ACEOF
1477 +rm -f conftest.$ac_objext
1478 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1479 +  (eval $ac_compile) 2>conftest.er1
1480 +  ac_status=$?
1481 +  grep -v '^ *+' conftest.er1 >conftest.err
1482 +  rm -f conftest.er1
1483 +  cat conftest.err >&5
1484 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1485 +  (exit $ac_status); } &&
1486 +        { ac_try='test -z "$ac_c_werror_flag"
1487 +                        || test ! -s conftest.err'
1488 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1489 +  (eval $ac_try) 2>&5
1490 +  ac_status=$?
1491 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1492 +  (exit $ac_status); }; } &&
1493 +        { ac_try='test -s conftest.$ac_objext'
1494 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1495 +  (eval $ac_try) 2>&5
1496 +  ac_status=$?
1497 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1498 +  (exit $ac_status); }; }; then
1499 +  ac_lo=$ac_mid; break
1500 +else
1501 +  echo "$as_me: failed program was:" >&5
1502 +sed 's/^/| /' conftest.$ac_ext >&5
1503 +
1504 +ac_hi=`expr '(' $ac_mid ')' - 1`
1505 +                      if test $ac_mid -le $ac_hi; then
1506 +                        ac_lo= ac_hi=
1507 +                        break
1508 +                      fi
1509 +                      ac_mid=`expr 2 '*' $ac_mid`
1510 +fi
1511 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1512 +  done
1513 +else
1514 +  echo "$as_me: failed program was:" >&5
1515 +sed 's/^/| /' conftest.$ac_ext >&5
1516 +
1517 +ac_lo= ac_hi=
1518 +fi
1519 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1520 +fi
1521 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1522 +# Binary search between lo and hi bounds.
1523 +while test "x$ac_lo" != "x$ac_hi"; do
1524 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
1525 +  cat >conftest.$ac_ext <<_ACEOF
1526 +/* confdefs.h.  */
1527 +_ACEOF
1528 +cat confdefs.h >>conftest.$ac_ext
1529 +cat >>conftest.$ac_ext <<_ACEOF
1530 +/* end confdefs.h.  */
1531 +$ac_includes_default
1532 +int
1533 +main ()
1534 +{
1535 +static int test_array [1 - 2 * !(((long) (sizeof (_int64))) <= $ac_mid)];
1536 +test_array [0] = 0
1537 +
1538 +  ;
1539 +  return 0;
1540 +}
1541 +_ACEOF
1542 +rm -f conftest.$ac_objext
1543 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1544 +  (eval $ac_compile) 2>conftest.er1
1545 +  ac_status=$?
1546 +  grep -v '^ *+' conftest.er1 >conftest.err
1547 +  rm -f conftest.er1
1548 +  cat conftest.err >&5
1549 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1550 +  (exit $ac_status); } &&
1551 +        { ac_try='test -z "$ac_c_werror_flag"
1552 +                        || test ! -s conftest.err'
1553 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1554 +  (eval $ac_try) 2>&5
1555 +  ac_status=$?
1556 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1557 +  (exit $ac_status); }; } &&
1558 +        { ac_try='test -s conftest.$ac_objext'
1559 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1560 +  (eval $ac_try) 2>&5
1561 +  ac_status=$?
1562 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1563 +  (exit $ac_status); }; }; then
1564 +  ac_hi=$ac_mid
1565 +else
1566 +  echo "$as_me: failed program was:" >&5
1567 +sed 's/^/| /' conftest.$ac_ext >&5
1568 +
1569 +ac_lo=`expr '(' $ac_mid ')' + 1`
1570 +fi
1571 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1572 +done
1573 +case $ac_lo in
1574 +?*) ac_cv_sizeof__int64=$ac_lo;;
1575 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (_int64), 77
1576 +See \`config.log' for more details." >&5
1577 +echo "$as_me: error: cannot compute sizeof (_int64), 77
1578 +See \`config.log' for more details." >&2;}
1579 +   { (exit 1); exit 1; }; } ;;
1580 +esac
1581 +else
1582 +  if test "$cross_compiling" = yes; then
1583 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
1584 +See \`config.log' for more details." >&5
1585 +echo "$as_me: error: cannot run test program while cross compiling
1586 +See \`config.log' for more details." >&2;}
1587 +   { (exit 1); exit 1; }; }
1588 +else
1589 +  cat >conftest.$ac_ext <<_ACEOF
1590 +/* confdefs.h.  */
1591 +_ACEOF
1592 +cat confdefs.h >>conftest.$ac_ext
1593 +cat >>conftest.$ac_ext <<_ACEOF
1594 +/* end confdefs.h.  */
1595 +$ac_includes_default
1596 +long longval () { return (long) (sizeof (_int64)); }
1597 +unsigned long ulongval () { return (long) (sizeof (_int64)); }
1598 +#include <stdio.h>
1599 +#include <stdlib.h>
1600 +int
1601 +main ()
1602 +{
1603 +
1604 +  FILE *f = fopen ("conftest.val", "w");
1605 +  if (! f)
1606 +    exit (1);
1607 +  if (((long) (sizeof (_int64))) < 0)
1608 +    {
1609 +      long i = longval ();
1610 +      if (i != ((long) (sizeof (_int64))))
1611 +       exit (1);
1612 +      fprintf (f, "%ld\n", i);
1613 +    }
1614 +  else
1615 +    {
1616 +      unsigned long i = ulongval ();
1617 +      if (i != ((long) (sizeof (_int64))))
1618 +       exit (1);
1619 +      fprintf (f, "%lu\n", i);
1620 +    }
1621 +  exit (ferror (f) || fclose (f) != 0);
1622 +
1623 +  ;
1624 +  return 0;
1625 +}
1626 +_ACEOF
1627 +rm -f conftest$ac_exeext
1628 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1629 +  (eval $ac_link) 2>&5
1630 +  ac_status=$?
1631 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1632 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1633 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1634 +  (eval $ac_try) 2>&5
1635 +  ac_status=$?
1636 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1637 +  (exit $ac_status); }; }; then
1638 +  ac_cv_sizeof__int64=`cat conftest.val`
1639 +else
1640 +  echo "$as_me: program exited with status $ac_status" >&5
1641 +echo "$as_me: failed program was:" >&5
1642 +sed 's/^/| /' conftest.$ac_ext >&5
1643 +
1644 +( exit $ac_status )
1645 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (_int64), 77
1646 +See \`config.log' for more details." >&5
1647 +echo "$as_me: error: cannot compute sizeof (_int64), 77
1648 +See \`config.log' for more details." >&2;}
1649 +   { (exit 1); exit 1; }; }
1650 +fi
1651 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1652 +fi
1653 +fi
1654 +rm -f conftest.val
1655 +else
1656 +  ac_cv_sizeof__int64=0
1657 +fi
1658 +fi
1659 +echo "$as_me:$LINENO: result: $ac_cv_sizeof__int64" >&5
1660 +echo "${ECHO_T}$ac_cv_sizeof__int64" >&6
1661 +cat >>confdefs.h <<_ACEOF
1662 +#define SIZEOF__INT64 $ac_cv_sizeof__int64
1663 +_ACEOF
1664 +
1665 +
1666 +echo "$as_me:$LINENO: checking for long long" >&5
1667 +echo $ECHO_N "checking for long long... $ECHO_C" >&6
1668 +if test "${ac_cv_type_long_long+set}" = set; then
1669 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1670 +else
1671 +  cat >conftest.$ac_ext <<_ACEOF
1672 +/* confdefs.h.  */
1673 +_ACEOF
1674 +cat confdefs.h >>conftest.$ac_ext
1675 +cat >>conftest.$ac_ext <<_ACEOF
1676 +/* end confdefs.h.  */
1677 +$ac_includes_default
1678 +int
1679 +main ()
1680 +{
1681 +if ((long long *) 0)
1682 +  return 0;
1683 +if (sizeof (long long))
1684 +  return 0;
1685 +  ;
1686 +  return 0;
1687 +}
1688 +_ACEOF
1689 +rm -f conftest.$ac_objext
1690 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1691 +  (eval $ac_compile) 2>conftest.er1
1692 +  ac_status=$?
1693 +  grep -v '^ *+' conftest.er1 >conftest.err
1694 +  rm -f conftest.er1
1695 +  cat conftest.err >&5
1696 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697 +  (exit $ac_status); } &&
1698 +        { ac_try='test -z "$ac_c_werror_flag"
1699 +                        || test ! -s conftest.err'
1700 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1701 +  (eval $ac_try) 2>&5
1702 +  ac_status=$?
1703 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704 +  (exit $ac_status); }; } &&
1705 +        { ac_try='test -s conftest.$ac_objext'
1706 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1707 +  (eval $ac_try) 2>&5
1708 +  ac_status=$?
1709 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 +  (exit $ac_status); }; }; then
1711 +  ac_cv_type_long_long=yes
1712 +else
1713 +  echo "$as_me: failed program was:" >&5
1714 +sed 's/^/| /' conftest.$ac_ext >&5
1715 +
1716 +ac_cv_type_long_long=no
1717 +fi
1718 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1719 +fi
1720 +echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
1721 +echo "${ECHO_T}$ac_cv_type_long_long" >&6
1722 +
1723 +echo "$as_me:$LINENO: checking size of long long" >&5
1724 +echo $ECHO_N "checking size of long long... $ECHO_C" >&6
1725 +if test "${ac_cv_sizeof_long_long+set}" = set; then
1726 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1727 +else
1728 +  if test "$ac_cv_type_long_long" = yes; then
1729 +  # The cast to unsigned long works around a bug in the HP C Compiler
1730 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
1731 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
1732 +  # This bug is HP SR number 8606223364.
1733 +  if test "$cross_compiling" = yes; then
1734 +  # Depending upon the size, compute the lo and hi bounds.
1735 +cat >conftest.$ac_ext <<_ACEOF
1736 +/* confdefs.h.  */
1737 +_ACEOF
1738 +cat confdefs.h >>conftest.$ac_ext
1739 +cat >>conftest.$ac_ext <<_ACEOF
1740 +/* end confdefs.h.  */
1741 +$ac_includes_default
1742 +int
1743 +main ()
1744 +{
1745 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
1746 +test_array [0] = 0
1747 +
1748 +  ;
1749 +  return 0;
1750 +}
1751 +_ACEOF
1752 +rm -f conftest.$ac_objext
1753 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1754 +  (eval $ac_compile) 2>conftest.er1
1755 +  ac_status=$?
1756 +  grep -v '^ *+' conftest.er1 >conftest.err
1757 +  rm -f conftest.er1
1758 +  cat conftest.err >&5
1759 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 +  (exit $ac_status); } &&
1761 +        { ac_try='test -z "$ac_c_werror_flag"
1762 +                        || test ! -s conftest.err'
1763 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1764 +  (eval $ac_try) 2>&5
1765 +  ac_status=$?
1766 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 +  (exit $ac_status); }; } &&
1768 +        { ac_try='test -s conftest.$ac_objext'
1769 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1770 +  (eval $ac_try) 2>&5
1771 +  ac_status=$?
1772 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 +  (exit $ac_status); }; }; then
1774 +  ac_lo=0 ac_mid=0
1775 +  while :; do
1776 +    cat >conftest.$ac_ext <<_ACEOF
1777 +/* confdefs.h.  */
1778 +_ACEOF
1779 +cat confdefs.h >>conftest.$ac_ext
1780 +cat >>conftest.$ac_ext <<_ACEOF
1781 +/* end confdefs.h.  */
1782 +$ac_includes_default
1783 +int
1784 +main ()
1785 +{
1786 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
1787 +test_array [0] = 0
1788 +
1789 +  ;
1790 +  return 0;
1791 +}
1792 +_ACEOF
1793 +rm -f conftest.$ac_objext
1794 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1795 +  (eval $ac_compile) 2>conftest.er1
1796 +  ac_status=$?
1797 +  grep -v '^ *+' conftest.er1 >conftest.err
1798 +  rm -f conftest.er1
1799 +  cat conftest.err >&5
1800 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 +  (exit $ac_status); } &&
1802 +        { ac_try='test -z "$ac_c_werror_flag"
1803 +                        || test ! -s conftest.err'
1804 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1805 +  (eval $ac_try) 2>&5
1806 +  ac_status=$?
1807 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808 +  (exit $ac_status); }; } &&
1809 +        { ac_try='test -s conftest.$ac_objext'
1810 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1811 +  (eval $ac_try) 2>&5
1812 +  ac_status=$?
1813 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 +  (exit $ac_status); }; }; then
1815 +  ac_hi=$ac_mid; break
1816 +else
1817 +  echo "$as_me: failed program was:" >&5
1818 +sed 's/^/| /' conftest.$ac_ext >&5
1819 +
1820 +ac_lo=`expr $ac_mid + 1`
1821 +                   if test $ac_lo -le $ac_mid; then
1822 +                     ac_lo= ac_hi=
1823 +                     break
1824 +                   fi
1825 +                   ac_mid=`expr 2 '*' $ac_mid + 1`
1826 +fi
1827 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1828 +  done
1829 +else
1830 +  echo "$as_me: failed program was:" >&5
1831 +sed 's/^/| /' conftest.$ac_ext >&5
1832 +
1833 +cat >conftest.$ac_ext <<_ACEOF
1834 +/* confdefs.h.  */
1835 +_ACEOF
1836 +cat confdefs.h >>conftest.$ac_ext
1837 +cat >>conftest.$ac_ext <<_ACEOF
1838 +/* end confdefs.h.  */
1839 +$ac_includes_default
1840 +int
1841 +main ()
1842 +{
1843 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
1844 +test_array [0] = 0
1845 +
1846 +  ;
1847 +  return 0;
1848 +}
1849 +_ACEOF
1850 +rm -f conftest.$ac_objext
1851 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1852 +  (eval $ac_compile) 2>conftest.er1
1853 +  ac_status=$?
1854 +  grep -v '^ *+' conftest.er1 >conftest.err
1855 +  rm -f conftest.er1
1856 +  cat conftest.err >&5
1857 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 +  (exit $ac_status); } &&
1859 +        { ac_try='test -z "$ac_c_werror_flag"
1860 +                        || test ! -s conftest.err'
1861 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1862 +  (eval $ac_try) 2>&5
1863 +  ac_status=$?
1864 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865 +  (exit $ac_status); }; } &&
1866 +        { ac_try='test -s conftest.$ac_objext'
1867 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1868 +  (eval $ac_try) 2>&5
1869 +  ac_status=$?
1870 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 +  (exit $ac_status); }; }; then
1872 +  ac_hi=-1 ac_mid=-1
1873 +  while :; do
1874 +    cat >conftest.$ac_ext <<_ACEOF
1875 +/* confdefs.h.  */
1876 +_ACEOF
1877 +cat confdefs.h >>conftest.$ac_ext
1878 +cat >>conftest.$ac_ext <<_ACEOF
1879 +/* end confdefs.h.  */
1880 +$ac_includes_default
1881 +int
1882 +main ()
1883 +{
1884 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
1885 +test_array [0] = 0
1886 +
1887 +  ;
1888 +  return 0;
1889 +}
1890 +_ACEOF
1891 +rm -f conftest.$ac_objext
1892 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1893 +  (eval $ac_compile) 2>conftest.er1
1894 +  ac_status=$?
1895 +  grep -v '^ *+' conftest.er1 >conftest.err
1896 +  rm -f conftest.er1
1897 +  cat conftest.err >&5
1898 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899 +  (exit $ac_status); } &&
1900 +        { ac_try='test -z "$ac_c_werror_flag"
1901 +                        || test ! -s conftest.err'
1902 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1903 +  (eval $ac_try) 2>&5
1904 +  ac_status=$?
1905 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 +  (exit $ac_status); }; } &&
1907 +        { ac_try='test -s conftest.$ac_objext'
1908 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1909 +  (eval $ac_try) 2>&5
1910 +  ac_status=$?
1911 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 +  (exit $ac_status); }; }; then
1913 +  ac_lo=$ac_mid; break
1914 +else
1915 +  echo "$as_me: failed program was:" >&5
1916 +sed 's/^/| /' conftest.$ac_ext >&5
1917 +
1918 +ac_hi=`expr '(' $ac_mid ')' - 1`
1919 +                      if test $ac_mid -le $ac_hi; then
1920 +                        ac_lo= ac_hi=
1921 +                        break
1922 +                      fi
1923 +                      ac_mid=`expr 2 '*' $ac_mid`
1924 +fi
1925 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1926 +  done
1927 +else
1928 +  echo "$as_me: failed program was:" >&5
1929 +sed 's/^/| /' conftest.$ac_ext >&5
1930 +
1931 +ac_lo= ac_hi=
1932 +fi
1933 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1934 +fi
1935 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1936 +# Binary search between lo and hi bounds.
1937 +while test "x$ac_lo" != "x$ac_hi"; do
1938 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
1939 +  cat >conftest.$ac_ext <<_ACEOF
1940 +/* confdefs.h.  */
1941 +_ACEOF
1942 +cat confdefs.h >>conftest.$ac_ext
1943 +cat >>conftest.$ac_ext <<_ACEOF
1944 +/* end confdefs.h.  */
1945 +$ac_includes_default
1946 +int
1947 +main ()
1948 +{
1949 +static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
1950 +test_array [0] = 0
1951 +
1952 +  ;
1953 +  return 0;
1954 +}
1955 +_ACEOF
1956 +rm -f conftest.$ac_objext
1957 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1958 +  (eval $ac_compile) 2>conftest.er1
1959 +  ac_status=$?
1960 +  grep -v '^ *+' conftest.er1 >conftest.err
1961 +  rm -f conftest.er1
1962 +  cat conftest.err >&5
1963 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 +  (exit $ac_status); } &&
1965 +        { ac_try='test -z "$ac_c_werror_flag"
1966 +                        || test ! -s conftest.err'
1967 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968 +  (eval $ac_try) 2>&5
1969 +  ac_status=$?
1970 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 +  (exit $ac_status); }; } &&
1972 +        { ac_try='test -s conftest.$ac_objext'
1973 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1974 +  (eval $ac_try) 2>&5
1975 +  ac_status=$?
1976 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 +  (exit $ac_status); }; }; then
1978 +  ac_hi=$ac_mid
1979 +else
1980 +  echo "$as_me: failed program was:" >&5
1981 +sed 's/^/| /' conftest.$ac_ext >&5
1982 +
1983 +ac_lo=`expr '(' $ac_mid ')' + 1`
1984 +fi
1985 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1986 +done
1987 +case $ac_lo in
1988 +?*) ac_cv_sizeof_long_long=$ac_lo;;
1989 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
1990 +See \`config.log' for more details." >&5
1991 +echo "$as_me: error: cannot compute sizeof (long long), 77
1992 +See \`config.log' for more details." >&2;}
1993 +   { (exit 1); exit 1; }; } ;;
1994 +esac
1995 +else
1996 +  if test "$cross_compiling" = yes; then
1997 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
1998 +See \`config.log' for more details." >&5
1999 +echo "$as_me: error: cannot run test program while cross compiling
2000 +See \`config.log' for more details." >&2;}
2001 +   { (exit 1); exit 1; }; }
2002 +else
2003 +  cat >conftest.$ac_ext <<_ACEOF
2004 +/* confdefs.h.  */
2005 +_ACEOF
2006 +cat confdefs.h >>conftest.$ac_ext
2007 +cat >>conftest.$ac_ext <<_ACEOF
2008 +/* end confdefs.h.  */
2009 +$ac_includes_default
2010 +long longval () { return (long) (sizeof (long long)); }
2011 +unsigned long ulongval () { return (long) (sizeof (long long)); }
2012 +#include <stdio.h>
2013 +#include <stdlib.h>
2014 +int
2015 +main ()
2016 +{
2017 +
2018 +  FILE *f = fopen ("conftest.val", "w");
2019 +  if (! f)
2020 +    exit (1);
2021 +  if (((long) (sizeof (long long))) < 0)
2022 +    {
2023 +      long i = longval ();
2024 +      if (i != ((long) (sizeof (long long))))
2025 +       exit (1);
2026 +      fprintf (f, "%ld\n", i);
2027 +    }
2028 +  else
2029 +    {
2030 +      unsigned long i = ulongval ();
2031 +      if (i != ((long) (sizeof (long long))))
2032 +       exit (1);
2033 +      fprintf (f, "%lu\n", i);
2034 +    }
2035 +  exit (ferror (f) || fclose (f) != 0);
2036 +
2037 +  ;
2038 +  return 0;
2039 +}
2040 +_ACEOF
2041 +rm -f conftest$ac_exeext
2042 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2043 +  (eval $ac_link) 2>&5
2044 +  ac_status=$?
2045 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2047 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 +  (eval $ac_try) 2>&5
2049 +  ac_status=$?
2050 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 +  (exit $ac_status); }; }; then
2052 +  ac_cv_sizeof_long_long=`cat conftest.val`
2053 +else
2054 +  echo "$as_me: program exited with status $ac_status" >&5
2055 +echo "$as_me: failed program was:" >&5
2056 +sed 's/^/| /' conftest.$ac_ext >&5
2057 +
2058 +( exit $ac_status )
2059 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
2060 +See \`config.log' for more details." >&5
2061 +echo "$as_me: error: cannot compute sizeof (long long), 77
2062 +See \`config.log' for more details." >&2;}
2063 +   { (exit 1); exit 1; }; }
2064 +fi
2065 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2066 +fi
2067 +fi
2068 +rm -f conftest.val
2069 +else
2070 +  ac_cv_sizeof_long_long=0
2071 +fi
2072 +fi
2073 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
2074 +echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
2075 +cat >>confdefs.h <<_ACEOF
2076 +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2077 +_ACEOF
2078 +
2079 +
2080 +echo "$as_me:$LINENO: checking for long" >&5
2081 +echo $ECHO_N "checking for long... $ECHO_C" >&6
2082 +if test "${ac_cv_type_long+set}" = set; then
2083 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2084 +else
2085 +  cat >conftest.$ac_ext <<_ACEOF
2086 +/* confdefs.h.  */
2087 +_ACEOF
2088 +cat confdefs.h >>conftest.$ac_ext
2089 +cat >>conftest.$ac_ext <<_ACEOF
2090 +/* end confdefs.h.  */
2091 +$ac_includes_default
2092 +int
2093 +main ()
2094 +{
2095 +if ((long *) 0)
2096 +  return 0;
2097 +if (sizeof (long))
2098 +  return 0;
2099 +  ;
2100 +  return 0;
2101 +}
2102 +_ACEOF
2103 +rm -f conftest.$ac_objext
2104 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 +  (eval $ac_compile) 2>conftest.er1
2106 +  ac_status=$?
2107 +  grep -v '^ *+' conftest.er1 >conftest.err
2108 +  rm -f conftest.er1
2109 +  cat conftest.err >&5
2110 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 +  (exit $ac_status); } &&
2112 +        { ac_try='test -z "$ac_c_werror_flag"
2113 +                        || test ! -s conftest.err'
2114 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 +  (eval $ac_try) 2>&5
2116 +  ac_status=$?
2117 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 +  (exit $ac_status); }; } &&
2119 +        { ac_try='test -s conftest.$ac_objext'
2120 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 +  (eval $ac_try) 2>&5
2122 +  ac_status=$?
2123 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 +  (exit $ac_status); }; }; then
2125 +  ac_cv_type_long=yes
2126 +else
2127 +  echo "$as_me: failed program was:" >&5
2128 +sed 's/^/| /' conftest.$ac_ext >&5
2129 +
2130 +ac_cv_type_long=no
2131 +fi
2132 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2133 +fi
2134 +echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
2135 +echo "${ECHO_T}$ac_cv_type_long" >&6
2136 +
2137 +echo "$as_me:$LINENO: checking size of long" >&5
2138 +echo $ECHO_N "checking size of long... $ECHO_C" >&6
2139 +if test "${ac_cv_sizeof_long+set}" = set; then
2140 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2141 +else
2142 +  if test "$ac_cv_type_long" = yes; then
2143 +  # The cast to unsigned long works around a bug in the HP C Compiler
2144 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2145 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2146 +  # This bug is HP SR number 8606223364.
2147 +  if test "$cross_compiling" = yes; then
2148 +  # Depending upon the size, compute the lo and hi bounds.
2149 +cat >conftest.$ac_ext <<_ACEOF
2150 +/* confdefs.h.  */
2151 +_ACEOF
2152 +cat confdefs.h >>conftest.$ac_ext
2153 +cat >>conftest.$ac_ext <<_ACEOF
2154 +/* end confdefs.h.  */
2155 +$ac_includes_default
2156 +int
2157 +main ()
2158 +{
2159 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
2160 +test_array [0] = 0
2161 +
2162 +  ;
2163 +  return 0;
2164 +}
2165 +_ACEOF
2166 +rm -f conftest.$ac_objext
2167 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 +  (eval $ac_compile) 2>conftest.er1
2169 +  ac_status=$?
2170 +  grep -v '^ *+' conftest.er1 >conftest.err
2171 +  rm -f conftest.er1
2172 +  cat conftest.err >&5
2173 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 +  (exit $ac_status); } &&
2175 +        { ac_try='test -z "$ac_c_werror_flag"
2176 +                        || test ! -s conftest.err'
2177 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 +  (eval $ac_try) 2>&5
2179 +  ac_status=$?
2180 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 +  (exit $ac_status); }; } &&
2182 +        { ac_try='test -s conftest.$ac_objext'
2183 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 +  (eval $ac_try) 2>&5
2185 +  ac_status=$?
2186 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 +  (exit $ac_status); }; }; then
2188 +  ac_lo=0 ac_mid=0
2189 +  while :; do
2190 +    cat >conftest.$ac_ext <<_ACEOF
2191 +/* confdefs.h.  */
2192 +_ACEOF
2193 +cat confdefs.h >>conftest.$ac_ext
2194 +cat >>conftest.$ac_ext <<_ACEOF
2195 +/* end confdefs.h.  */
2196 +$ac_includes_default
2197 +int
2198 +main ()
2199 +{
2200 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
2201 +test_array [0] = 0
2202 +
2203 +  ;
2204 +  return 0;
2205 +}
2206 +_ACEOF
2207 +rm -f conftest.$ac_objext
2208 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 +  (eval $ac_compile) 2>conftest.er1
2210 +  ac_status=$?
2211 +  grep -v '^ *+' conftest.er1 >conftest.err
2212 +  rm -f conftest.er1
2213 +  cat conftest.err >&5
2214 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 +  (exit $ac_status); } &&
2216 +        { ac_try='test -z "$ac_c_werror_flag"
2217 +                        || test ! -s conftest.err'
2218 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 +  (eval $ac_try) 2>&5
2220 +  ac_status=$?
2221 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 +  (exit $ac_status); }; } &&
2223 +        { ac_try='test -s conftest.$ac_objext'
2224 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 +  (eval $ac_try) 2>&5
2226 +  ac_status=$?
2227 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 +  (exit $ac_status); }; }; then
2229 +  ac_hi=$ac_mid; break
2230 +else
2231 +  echo "$as_me: failed program was:" >&5
2232 +sed 's/^/| /' conftest.$ac_ext >&5
2233 +
2234 +ac_lo=`expr $ac_mid + 1`
2235 +                   if test $ac_lo -le $ac_mid; then
2236 +                     ac_lo= ac_hi=
2237 +                     break
2238 +                   fi
2239 +                   ac_mid=`expr 2 '*' $ac_mid + 1`
2240 +fi
2241 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242 +  done
2243 +else
2244 +  echo "$as_me: failed program was:" >&5
2245 +sed 's/^/| /' conftest.$ac_ext >&5
2246 +
2247 +cat >conftest.$ac_ext <<_ACEOF
2248 +/* confdefs.h.  */
2249 +_ACEOF
2250 +cat confdefs.h >>conftest.$ac_ext
2251 +cat >>conftest.$ac_ext <<_ACEOF
2252 +/* end confdefs.h.  */
2253 +$ac_includes_default
2254 +int
2255 +main ()
2256 +{
2257 +static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
2258 +test_array [0] = 0
2259 +
2260 +  ;
2261 +  return 0;
2262 +}
2263 +_ACEOF
2264 +rm -f conftest.$ac_objext
2265 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 +  (eval $ac_compile) 2>conftest.er1
2267 +  ac_status=$?
2268 +  grep -v '^ *+' conftest.er1 >conftest.err
2269 +  rm -f conftest.er1
2270 +  cat conftest.err >&5
2271 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 +  (exit $ac_status); } &&
2273 +        { ac_try='test -z "$ac_c_werror_flag"
2274 +                        || test ! -s conftest.err'
2275 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 +  (eval $ac_try) 2>&5
2277 +  ac_status=$?
2278 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 +  (exit $ac_status); }; } &&
2280 +        { ac_try='test -s conftest.$ac_objext'
2281 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 +  (eval $ac_try) 2>&5
2283 +  ac_status=$?
2284 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 +  (exit $ac_status); }; }; then
2286 +  ac_hi=-1 ac_mid=-1
2287 +  while :; do
2288 +    cat >conftest.$ac_ext <<_ACEOF
2289 +/* confdefs.h.  */
2290 +_ACEOF
2291 +cat confdefs.h >>conftest.$ac_ext
2292 +cat >>conftest.$ac_ext <<_ACEOF
2293 +/* end confdefs.h.  */
2294 +$ac_includes_default
2295 +int
2296 +main ()
2297 +{
2298 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
2299 +test_array [0] = 0
2300 +
2301 +  ;
2302 +  return 0;
2303 +}
2304 +_ACEOF
2305 +rm -f conftest.$ac_objext
2306 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 +  (eval $ac_compile) 2>conftest.er1
2308 +  ac_status=$?
2309 +  grep -v '^ *+' conftest.er1 >conftest.err
2310 +  rm -f conftest.er1
2311 +  cat conftest.err >&5
2312 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 +  (exit $ac_status); } &&
2314 +        { ac_try='test -z "$ac_c_werror_flag"
2315 +                        || test ! -s conftest.err'
2316 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 +  (eval $ac_try) 2>&5
2318 +  ac_status=$?
2319 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 +  (exit $ac_status); }; } &&
2321 +        { ac_try='test -s conftest.$ac_objext'
2322 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 +  (eval $ac_try) 2>&5
2324 +  ac_status=$?
2325 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 +  (exit $ac_status); }; }; then
2327 +  ac_lo=$ac_mid; break
2328 +else
2329 +  echo "$as_me: failed program was:" >&5
2330 +sed 's/^/| /' conftest.$ac_ext >&5
2331 +
2332 +ac_hi=`expr '(' $ac_mid ')' - 1`
2333 +                      if test $ac_mid -le $ac_hi; then
2334 +                        ac_lo= ac_hi=
2335 +                        break
2336 +                      fi
2337 +                      ac_mid=`expr 2 '*' $ac_mid`
2338 +fi
2339 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340 +  done
2341 +else
2342 +  echo "$as_me: failed program was:" >&5
2343 +sed 's/^/| /' conftest.$ac_ext >&5
2344 +
2345 +ac_lo= ac_hi=
2346 +fi
2347 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 +fi
2349 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 +# Binary search between lo and hi bounds.
2351 +while test "x$ac_lo" != "x$ac_hi"; do
2352 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2353 +  cat >conftest.$ac_ext <<_ACEOF
2354 +/* confdefs.h.  */
2355 +_ACEOF
2356 +cat confdefs.h >>conftest.$ac_ext
2357 +cat >>conftest.$ac_ext <<_ACEOF
2358 +/* end confdefs.h.  */
2359 +$ac_includes_default
2360 +int
2361 +main ()
2362 +{
2363 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
2364 +test_array [0] = 0
2365 +
2366 +  ;
2367 +  return 0;
2368 +}
2369 +_ACEOF
2370 +rm -f conftest.$ac_objext
2371 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 +  (eval $ac_compile) 2>conftest.er1
2373 +  ac_status=$?
2374 +  grep -v '^ *+' conftest.er1 >conftest.err
2375 +  rm -f conftest.er1
2376 +  cat conftest.err >&5
2377 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 +  (exit $ac_status); } &&
2379 +        { ac_try='test -z "$ac_c_werror_flag"
2380 +                        || test ! -s conftest.err'
2381 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 +  (eval $ac_try) 2>&5
2383 +  ac_status=$?
2384 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 +  (exit $ac_status); }; } &&
2386 +        { ac_try='test -s conftest.$ac_objext'
2387 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 +  (eval $ac_try) 2>&5
2389 +  ac_status=$?
2390 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 +  (exit $ac_status); }; }; then
2392 +  ac_hi=$ac_mid
2393 +else
2394 +  echo "$as_me: failed program was:" >&5
2395 +sed 's/^/| /' conftest.$ac_ext >&5
2396 +
2397 +ac_lo=`expr '(' $ac_mid ')' + 1`
2398 +fi
2399 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 +done
2401 +case $ac_lo in
2402 +?*) ac_cv_sizeof_long=$ac_lo;;
2403 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2404 +See \`config.log' for more details." >&5
2405 +echo "$as_me: error: cannot compute sizeof (long), 77
2406 +See \`config.log' for more details." >&2;}
2407 +   { (exit 1); exit 1; }; } ;;
2408 +esac
2409 +else
2410 +  if test "$cross_compiling" = yes; then
2411 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2412 +See \`config.log' for more details." >&5
2413 +echo "$as_me: error: cannot run test program while cross compiling
2414 +See \`config.log' for more details." >&2;}
2415 +   { (exit 1); exit 1; }; }
2416 +else
2417 +  cat >conftest.$ac_ext <<_ACEOF
2418 +/* confdefs.h.  */
2419 +_ACEOF
2420 +cat confdefs.h >>conftest.$ac_ext
2421 +cat >>conftest.$ac_ext <<_ACEOF
2422 +/* end confdefs.h.  */
2423 +$ac_includes_default
2424 +long longval () { return (long) (sizeof (long)); }
2425 +unsigned long ulongval () { return (long) (sizeof (long)); }
2426 +#include <stdio.h>
2427 +#include <stdlib.h>
2428 +int
2429 +main ()
2430 +{
2431 +
2432 +  FILE *f = fopen ("conftest.val", "w");
2433 +  if (! f)
2434 +    exit (1);
2435 +  if (((long) (sizeof (long))) < 0)
2436 +    {
2437 +      long i = longval ();
2438 +      if (i != ((long) (sizeof (long))))
2439 +       exit (1);
2440 +      fprintf (f, "%ld\n", i);
2441 +    }
2442 +  else
2443 +    {
2444 +      unsigned long i = ulongval ();
2445 +      if (i != ((long) (sizeof (long))))
2446 +       exit (1);
2447 +      fprintf (f, "%lu\n", i);
2448 +    }
2449 +  exit (ferror (f) || fclose (f) != 0);
2450 +
2451 +  ;
2452 +  return 0;
2453 +}
2454 +_ACEOF
2455 +rm -f conftest$ac_exeext
2456 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2457 +  (eval $ac_link) 2>&5
2458 +  ac_status=$?
2459 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2461 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 +  (eval $ac_try) 2>&5
2463 +  ac_status=$?
2464 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 +  (exit $ac_status); }; }; then
2466 +  ac_cv_sizeof_long=`cat conftest.val`
2467 +else
2468 +  echo "$as_me: program exited with status $ac_status" >&5
2469 +echo "$as_me: failed program was:" >&5
2470 +sed 's/^/| /' conftest.$ac_ext >&5
2471 +
2472 +( exit $ac_status )
2473 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2474 +See \`config.log' for more details." >&5
2475 +echo "$as_me: error: cannot compute sizeof (long), 77
2476 +See \`config.log' for more details." >&2;}
2477 +   { (exit 1); exit 1; }; }
2478 +fi
2479 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2480 +fi
2481 +fi
2482 +rm -f conftest.val
2483 +else
2484 +  ac_cv_sizeof_long=0
2485 +fi
2486 +fi
2487 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
2488 +echo "${ECHO_T}$ac_cv_sizeof_long" >&6
2489 +cat >>confdefs.h <<_ACEOF
2490 +#define SIZEOF_LONG $ac_cv_sizeof_long
2491 +_ACEOF
2492 +
2493 +
2494 +echo "$as_me:$LINENO: checking for void *" >&5
2495 +echo $ECHO_N "checking for void *... $ECHO_C" >&6
2496 +if test "${ac_cv_type_void_p+set}" = set; then
2497 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2498 +else
2499 +  cat >conftest.$ac_ext <<_ACEOF
2500 +/* confdefs.h.  */
2501 +_ACEOF
2502 +cat confdefs.h >>conftest.$ac_ext
2503 +cat >>conftest.$ac_ext <<_ACEOF
2504 +/* end confdefs.h.  */
2505 +$ac_includes_default
2506 +int
2507 +main ()
2508 +{
2509 +if ((void * *) 0)
2510 +  return 0;
2511 +if (sizeof (void *))
2512 +  return 0;
2513 +  ;
2514 +  return 0;
2515 +}
2516 +_ACEOF
2517 +rm -f conftest.$ac_objext
2518 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 +  (eval $ac_compile) 2>conftest.er1
2520 +  ac_status=$?
2521 +  grep -v '^ *+' conftest.er1 >conftest.err
2522 +  rm -f conftest.er1
2523 +  cat conftest.err >&5
2524 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 +  (exit $ac_status); } &&
2526 +        { ac_try='test -z "$ac_c_werror_flag"
2527 +                        || test ! -s conftest.err'
2528 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 +  (eval $ac_try) 2>&5
2530 +  ac_status=$?
2531 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 +  (exit $ac_status); }; } &&
2533 +        { ac_try='test -s conftest.$ac_objext'
2534 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 +  (eval $ac_try) 2>&5
2536 +  ac_status=$?
2537 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 +  (exit $ac_status); }; }; then
2539 +  ac_cv_type_void_p=yes
2540 +else
2541 +  echo "$as_me: failed program was:" >&5
2542 +sed 's/^/| /' conftest.$ac_ext >&5
2543 +
2544 +ac_cv_type_void_p=no
2545 +fi
2546 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2547 +fi
2548 +echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
2549 +echo "${ECHO_T}$ac_cv_type_void_p" >&6
2550 +
2551 +echo "$as_me:$LINENO: checking size of void *" >&5
2552 +echo $ECHO_N "checking size of void *... $ECHO_C" >&6
2553 +if test "${ac_cv_sizeof_void_p+set}" = set; then
2554 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2555 +else
2556 +  if test "$ac_cv_type_void_p" = yes; then
2557 +  # The cast to unsigned long works around a bug in the HP C Compiler
2558 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2559 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2560 +  # This bug is HP SR number 8606223364.
2561 +  if test "$cross_compiling" = yes; then
2562 +  # Depending upon the size, compute the lo and hi bounds.
2563 +cat >conftest.$ac_ext <<_ACEOF
2564 +/* confdefs.h.  */
2565 +_ACEOF
2566 +cat confdefs.h >>conftest.$ac_ext
2567 +cat >>conftest.$ac_ext <<_ACEOF
2568 +/* end confdefs.h.  */
2569 +$ac_includes_default
2570 +int
2571 +main ()
2572 +{
2573 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
2574 +test_array [0] = 0
2575 +
2576 +  ;
2577 +  return 0;
2578 +}
2579 +_ACEOF
2580 +rm -f conftest.$ac_objext
2581 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 +  (eval $ac_compile) 2>conftest.er1
2583 +  ac_status=$?
2584 +  grep -v '^ *+' conftest.er1 >conftest.err
2585 +  rm -f conftest.er1
2586 +  cat conftest.err >&5
2587 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 +  (exit $ac_status); } &&
2589 +        { ac_try='test -z "$ac_c_werror_flag"
2590 +                        || test ! -s conftest.err'
2591 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 +  (eval $ac_try) 2>&5
2593 +  ac_status=$?
2594 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 +  (exit $ac_status); }; } &&
2596 +        { ac_try='test -s conftest.$ac_objext'
2597 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 +  (eval $ac_try) 2>&5
2599 +  ac_status=$?
2600 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 +  (exit $ac_status); }; }; then
2602 +  ac_lo=0 ac_mid=0
2603 +  while :; do
2604 +    cat >conftest.$ac_ext <<_ACEOF
2605 +/* confdefs.h.  */
2606 +_ACEOF
2607 +cat confdefs.h >>conftest.$ac_ext
2608 +cat >>conftest.$ac_ext <<_ACEOF
2609 +/* end confdefs.h.  */
2610 +$ac_includes_default
2611 +int
2612 +main ()
2613 +{
2614 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
2615 +test_array [0] = 0
2616 +
2617 +  ;
2618 +  return 0;
2619 +}
2620 +_ACEOF
2621 +rm -f conftest.$ac_objext
2622 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623 +  (eval $ac_compile) 2>conftest.er1
2624 +  ac_status=$?
2625 +  grep -v '^ *+' conftest.er1 >conftest.err
2626 +  rm -f conftest.er1
2627 +  cat conftest.err >&5
2628 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 +  (exit $ac_status); } &&
2630 +        { ac_try='test -z "$ac_c_werror_flag"
2631 +                        || test ! -s conftest.err'
2632 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 +  (eval $ac_try) 2>&5
2634 +  ac_status=$?
2635 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 +  (exit $ac_status); }; } &&
2637 +        { ac_try='test -s conftest.$ac_objext'
2638 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 +  (eval $ac_try) 2>&5
2640 +  ac_status=$?
2641 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 +  (exit $ac_status); }; }; then
2643 +  ac_hi=$ac_mid; break
2644 +else
2645 +  echo "$as_me: failed program was:" >&5
2646 +sed 's/^/| /' conftest.$ac_ext >&5
2647 +
2648 +ac_lo=`expr $ac_mid + 1`
2649 +                   if test $ac_lo -le $ac_mid; then
2650 +                     ac_lo= ac_hi=
2651 +                     break
2652 +                   fi
2653 +                   ac_mid=`expr 2 '*' $ac_mid + 1`
2654 +fi
2655 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656 +  done
2657 +else
2658 +  echo "$as_me: failed program was:" >&5
2659 +sed 's/^/| /' conftest.$ac_ext >&5
2660 +
2661 +cat >conftest.$ac_ext <<_ACEOF
2662 +/* confdefs.h.  */
2663 +_ACEOF
2664 +cat confdefs.h >>conftest.$ac_ext
2665 +cat >>conftest.$ac_ext <<_ACEOF
2666 +/* end confdefs.h.  */
2667 +$ac_includes_default
2668 +int
2669 +main ()
2670 +{
2671 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
2672 +test_array [0] = 0
2673 +
2674 +  ;
2675 +  return 0;
2676 +}
2677 +_ACEOF
2678 +rm -f conftest.$ac_objext
2679 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 +  (eval $ac_compile) 2>conftest.er1
2681 +  ac_status=$?
2682 +  grep -v '^ *+' conftest.er1 >conftest.err
2683 +  rm -f conftest.er1
2684 +  cat conftest.err >&5
2685 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 +  (exit $ac_status); } &&
2687 +        { ac_try='test -z "$ac_c_werror_flag"
2688 +                        || test ! -s conftest.err'
2689 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 +  (eval $ac_try) 2>&5
2691 +  ac_status=$?
2692 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 +  (exit $ac_status); }; } &&
2694 +        { ac_try='test -s conftest.$ac_objext'
2695 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 +  (eval $ac_try) 2>&5
2697 +  ac_status=$?
2698 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 +  (exit $ac_status); }; }; then
2700 +  ac_hi=-1 ac_mid=-1
2701 +  while :; do
2702 +    cat >conftest.$ac_ext <<_ACEOF
2703 +/* confdefs.h.  */
2704 +_ACEOF
2705 +cat confdefs.h >>conftest.$ac_ext
2706 +cat >>conftest.$ac_ext <<_ACEOF
2707 +/* end confdefs.h.  */
2708 +$ac_includes_default
2709 +int
2710 +main ()
2711 +{
2712 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
2713 +test_array [0] = 0
2714 +
2715 +  ;
2716 +  return 0;
2717 +}
2718 +_ACEOF
2719 +rm -f conftest.$ac_objext
2720 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 +  (eval $ac_compile) 2>conftest.er1
2722 +  ac_status=$?
2723 +  grep -v '^ *+' conftest.er1 >conftest.err
2724 +  rm -f conftest.er1
2725 +  cat conftest.err >&5
2726 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 +  (exit $ac_status); } &&
2728 +        { ac_try='test -z "$ac_c_werror_flag"
2729 +                        || test ! -s conftest.err'
2730 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 +  (eval $ac_try) 2>&5
2732 +  ac_status=$?
2733 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 +  (exit $ac_status); }; } &&
2735 +        { ac_try='test -s conftest.$ac_objext'
2736 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 +  (eval $ac_try) 2>&5
2738 +  ac_status=$?
2739 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 +  (exit $ac_status); }; }; then
2741 +  ac_lo=$ac_mid; break
2742 +else
2743 +  echo "$as_me: failed program was:" >&5
2744 +sed 's/^/| /' conftest.$ac_ext >&5
2745 +
2746 +ac_hi=`expr '(' $ac_mid ')' - 1`
2747 +                      if test $ac_mid -le $ac_hi; then
2748 +                        ac_lo= ac_hi=
2749 +                        break
2750 +                      fi
2751 +                      ac_mid=`expr 2 '*' $ac_mid`
2752 +fi
2753 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 +  done
2755 +else
2756 +  echo "$as_me: failed program was:" >&5
2757 +sed 's/^/| /' conftest.$ac_ext >&5
2758 +
2759 +ac_lo= ac_hi=
2760 +fi
2761 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762 +fi
2763 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764 +# Binary search between lo and hi bounds.
2765 +while test "x$ac_lo" != "x$ac_hi"; do
2766 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2767 +  cat >conftest.$ac_ext <<_ACEOF
2768 +/* confdefs.h.  */
2769 +_ACEOF
2770 +cat confdefs.h >>conftest.$ac_ext
2771 +cat >>conftest.$ac_ext <<_ACEOF
2772 +/* end confdefs.h.  */
2773 +$ac_includes_default
2774 +int
2775 +main ()
2776 +{
2777 +static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
2778 +test_array [0] = 0
2779 +
2780 +  ;
2781 +  return 0;
2782 +}
2783 +_ACEOF
2784 +rm -f conftest.$ac_objext
2785 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 +  (eval $ac_compile) 2>conftest.er1
2787 +  ac_status=$?
2788 +  grep -v '^ *+' conftest.er1 >conftest.err
2789 +  rm -f conftest.er1
2790 +  cat conftest.err >&5
2791 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 +  (exit $ac_status); } &&
2793 +        { ac_try='test -z "$ac_c_werror_flag"
2794 +                        || test ! -s conftest.err'
2795 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 +  (eval $ac_try) 2>&5
2797 +  ac_status=$?
2798 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 +  (exit $ac_status); }; } &&
2800 +        { ac_try='test -s conftest.$ac_objext'
2801 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 +  (eval $ac_try) 2>&5
2803 +  ac_status=$?
2804 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 +  (exit $ac_status); }; }; then
2806 +  ac_hi=$ac_mid
2807 +else
2808 +  echo "$as_me: failed program was:" >&5
2809 +sed 's/^/| /' conftest.$ac_ext >&5
2810 +
2811 +ac_lo=`expr '(' $ac_mid ')' + 1`
2812 +fi
2813 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814 +done
2815 +case $ac_lo in
2816 +?*) ac_cv_sizeof_void_p=$ac_lo;;
2817 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
2818 +See \`config.log' for more details." >&5
2819 +echo "$as_me: error: cannot compute sizeof (void *), 77
2820 +See \`config.log' for more details." >&2;}
2821 +   { (exit 1); exit 1; }; } ;;
2822 +esac
2823 +else
2824 +  if test "$cross_compiling" = yes; then
2825 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2826 +See \`config.log' for more details." >&5
2827 +echo "$as_me: error: cannot run test program while cross compiling
2828 +See \`config.log' for more details." >&2;}
2829 +   { (exit 1); exit 1; }; }
2830 +else
2831 +  cat >conftest.$ac_ext <<_ACEOF
2832 +/* confdefs.h.  */
2833 +_ACEOF
2834 +cat confdefs.h >>conftest.$ac_ext
2835 +cat >>conftest.$ac_ext <<_ACEOF
2836 +/* end confdefs.h.  */
2837 +$ac_includes_default
2838 +long longval () { return (long) (sizeof (void *)); }
2839 +unsigned long ulongval () { return (long) (sizeof (void *)); }
2840 +#include <stdio.h>
2841 +#include <stdlib.h>
2842 +int
2843 +main ()
2844 +{
2845 +
2846 +  FILE *f = fopen ("conftest.val", "w");
2847 +  if (! f)
2848 +    exit (1);
2849 +  if (((long) (sizeof (void *))) < 0)
2850 +    {
2851 +      long i = longval ();
2852 +      if (i != ((long) (sizeof (void *))))
2853 +       exit (1);
2854 +      fprintf (f, "%ld\n", i);
2855 +    }
2856 +  else
2857 +    {
2858 +      unsigned long i = ulongval ();
2859 +      if (i != ((long) (sizeof (void *))))
2860 +       exit (1);
2861 +      fprintf (f, "%lu\n", i);
2862 +    }
2863 +  exit (ferror (f) || fclose (f) != 0);
2864 +
2865 +  ;
2866 +  return 0;
2867 +}
2868 +_ACEOF
2869 +rm -f conftest$ac_exeext
2870 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2871 +  (eval $ac_link) 2>&5
2872 +  ac_status=$?
2873 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2875 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 +  (eval $ac_try) 2>&5
2877 +  ac_status=$?
2878 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 +  (exit $ac_status); }; }; then
2880 +  ac_cv_sizeof_void_p=`cat conftest.val`
2881 +else
2882 +  echo "$as_me: program exited with status $ac_status" >&5
2883 +echo "$as_me: failed program was:" >&5
2884 +sed 's/^/| /' conftest.$ac_ext >&5
2885 +
2886 +( exit $ac_status )
2887 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
2888 +See \`config.log' for more details." >&5
2889 +echo "$as_me: error: cannot compute sizeof (void *), 77
2890 +See \`config.log' for more details." >&2;}
2891 +   { (exit 1); exit 1; }; }
2892 +fi
2893 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2894 +fi
2895 +fi
2896 +rm -f conftest.val
2897 +else
2898 +  ac_cv_sizeof_void_p=0
2899 +fi
2900 +fi
2901 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
2902 +echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
2903 +cat >>confdefs.h <<_ACEOF
2904 +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2905 +_ACEOF
2906 +
2907 +
2908 +
2909 +                                                                                                              ac_config_files="$ac_config_files Makefile dos2unix/Makefile drmingw/Makefile pexports/Makefile redir/Makefile reimp/Makefile res2coff/Makefile scripts/Makefile scripts/a2dll scripts/dsw2mak unix2dos/Makefile"
2910 +
2911 +cat >confcache <<\_ACEOF
2912 +# This file is a shell script that caches the results of configure
2913 +# tests run on this system so they can be shared between configure
2914 +# scripts and configure runs, see configure's option --config-cache.
2915 +# It is not useful on other systems.  If it contains results you don't
2916 +# want to keep, you may remove or edit it.
2917 +#
2918 +# config.status only pays attention to the cache file if you give it
2919 +# the --recheck option to rerun configure.
2920 +#
2921 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
2922 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
2923 +# following values.
2924 +
2925 +_ACEOF
2926 +
2927  # The following way of writing the cache mishandles newlines in values,
2928  # but we know of no workaround that is simple, portable, and efficient.
2929  # So, don't put newlines in cache variables' values.
2930 @@ -5021,6 +7010,27 @@
2931  Usually this means the macro was only invoked conditionally." >&2;}
2932     { (exit 1); exit 1; }; }
2933  fi
2934 +if test -z "${BUILD_DRMINGW_TRUE}" && test -z "${BUILD_DRMINGW_FALSE}"; then
2935 +  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DRMINGW\" was never defined.
2936 +Usually this means the macro was only invoked conditionally." >&5
2937 +echo "$as_me: error: conditional \"BUILD_DRMINGW\" was never defined.
2938 +Usually this means the macro was only invoked conditionally." >&2;}
2939 +   { (exit 1); exit 1; }; }
2940 +fi
2941 +if test -z "${BUILD_REDIR_TRUE}" && test -z "${BUILD_REDIR_FALSE}"; then
2942 +  { { echo "$as_me:$LINENO: error: conditional \"BUILD_REDIR\" was never defined.
2943 +Usually this means the macro was only invoked conditionally." >&5
2944 +echo "$as_me: error: conditional \"BUILD_REDIR\" was never defined.
2945 +Usually this means the macro was only invoked conditionally." >&2;}
2946 +   { (exit 1); exit 1; }; }
2947 +fi
2948 +if test -z "${BUILD_RES2COFF_TRUE}" && test -z "${BUILD_RES2COFF_FALSE}"; then
2949 +  { { echo "$as_me:$LINENO: error: conditional \"BUILD_RES2COFF\" was never defined.
2950 +Usually this means the macro was only invoked conditionally." >&5
2951 +echo "$as_me: error: conditional \"BUILD_RES2COFF\" was never defined.
2952 +Usually this means the macro was only invoked conditionally." >&2;}
2953 +   { (exit 1); exit 1; }; }
2954 +fi
2955  if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
2956    { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
2957  Usually this means the macro was only invoked conditionally." >&5
2958 @@ -5042,6 +7052,13 @@
2959  Usually this means the macro was only invoked conditionally." >&2;}
2960     { (exit 1); exit 1; }; }
2961  fi
2962 +if test -z "${BUILD_DRMINGW_TRUE}" && test -z "${BUILD_DRMINGW_FALSE}"; then
2963 +  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DRMINGW\" was never defined.
2964 +Usually this means the macro was only invoked conditionally." >&5
2965 +echo "$as_me: error: conditional \"BUILD_DRMINGW\" was never defined.
2966 +Usually this means the macro was only invoked conditionally." >&2;}
2967 +   { (exit 1); exit 1; }; }
2968 +fi
2969  
2970  : ${CONFIG_STATUS=./config.status}
2971  ac_clean_files_save=$ac_clean_files
2972 @@ -5314,7 +7331,7 @@
2973  cat >&5 <<_CSEOF
2974  
2975  This file was extended by mingw-utils $as_me 0.3, which was
2976 -generated by GNU Autoconf 2.58.  Invocation command line was
2977 +generated by GNU Autoconf 2.59.  Invocation command line was
2978  
2979    CONFIG_FILES    = $CONFIG_FILES
2980    CONFIG_HEADERS  = $CONFIG_HEADERS
2981 @@ -5377,7 +7394,7 @@
2982  cat >>$CONFIG_STATUS <<_ACEOF
2983  ac_cs_version="\\
2984  mingw-utils config.status 0.3
2985 -configured by $0, generated by GNU Autoconf 2.58,
2986 +configured by $0, generated by GNU Autoconf 2.59,
2987    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2988  
2989  Copyright (C) 2003 Free Software Foundation, Inc.
2990 @@ -5595,17 +7612,26 @@
2991  s,@AUTOMAKE@,$AUTOMAKE,;t t
2992  s,@AUTOHEADER@,$AUTOHEADER,;t t
2993  s,@MAKEINFO@,$MAKEINFO,;t t
2994 -s,@AMTAR@,$AMTAR,;t t
2995  s,@install_sh@,$install_sh,;t t
2996  s,@STRIP@,$STRIP,;t t
2997  s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
2998  s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
2999 +s,@mkdir_p@,$mkdir_p,;t t
3000  s,@AWK@,$AWK,;t t
3001  s,@SET_MAKE@,$SET_MAKE,;t t
3002  s,@am__leading_dot@,$am__leading_dot,;t t
3003 +s,@AMTAR@,$AMTAR,;t t
3004 +s,@am__tar@,$am__tar,;t t
3005 +s,@am__untar@,$am__untar,;t t
3006  s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
3007  s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
3008  s,@MAINT@,$MAINT,;t t
3009 +s,@BUILD_DRMINGW_TRUE@,$BUILD_DRMINGW_TRUE,;t t
3010 +s,@BUILD_DRMINGW_FALSE@,$BUILD_DRMINGW_FALSE,;t t
3011 +s,@BUILD_REDIR_TRUE@,$BUILD_REDIR_TRUE,;t t
3012 +s,@BUILD_REDIR_FALSE@,$BUILD_REDIR_FALSE,;t t
3013 +s,@BUILD_RES2COFF_TRUE@,$BUILD_RES2COFF_TRUE,;t t
3014 +s,@BUILD_RES2COFF_FALSE@,$BUILD_RES2COFF_FALSE,;t t
3015  s,@CC@,$CC,;t t
3016  s,@CFLAGS@,$CFLAGS,;t t
3017  s,@LDFLAGS@,$LDFLAGS,;t t
3018 @@ -6262,27 +8288,21 @@
3019    else
3020      continue
3021    fi
3022 -  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
3023 -  # Extract the definition of DEP_FILES from the Makefile without
3024 -  # running `make'.
3025 -  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
3026 +  # Extract the definition of DEPDIR, am__include, and am__quote
3027 +  # from the Makefile without running `make'.
3028 +  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
3029    test -z "$DEPDIR" && continue
3030 +  am__include=`sed -n 's/^am__include = //p' < "$mf"`
3031 +  test -z "am__include" && continue
3032 +  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
3033    # When using ansi2knr, U may be empty or an underscore; expand it
3034 -  U=`sed -n -e '/^U = / s///p' < "$mf"`
3035 -  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
3036 -  # We invoke sed twice because it is the simplest approach to
3037 -  # changing $(DEPDIR) to its actual value in the expansion.
3038 -  for file in `sed -n -e '
3039 -    /^DEP_FILES = .*\\\\$/ {
3040 -      s/^DEP_FILES = //
3041 -      :loop
3042 -       s/\\\\$//
3043 -       p
3044 -       n
3045 -       /\\\\$/ b loop
3046 -      p
3047 -    }
3048 -    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
3049 +  U=`sed -n 's/^U = //p' < "$mf"`
3050 +  # Find all dependency output files, they are included files with
3051 +  # $(DEPDIR) in their names.  We invoke sed twice because it is the
3052 +  # simplest approach to changing $(DEPDIR) to its actual value in the
3053 +  # expansion.
3054 +  for file in `sed -n "
3055 +    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
3056         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
3057      # Make sure the directory exists.
3058      test -f "$dirpart/$file" && continue
3059 diff -ru ../release/mingw-utils-0.3/configure.ac ./configure.ac
3060 --- ../release/mingw-utils-0.3/configure.ac     Tue Nov 25 11:24:13 2003
3061 +++ ./configure.ac      Tue Aug  8 06:53:25 2006
3062 @@ -7,6 +7,52 @@
3063  AM_CONFIG_HEADER(config.h)
3064  AM_MAINTAINER_MODE
3065  
3066 +AC_ARG_ENABLE(drmingw, 
3067 +       AS_HELP_STRING([--disable-drmingw],[Don't build drmingw (default is build)]), 
3068 +       [case "${enableval}" in
3069 +         yes) build_drmingw=true ;;
3070 +         no)  build_drmingw=false ;;
3071 +         *)   AC_MSG_ERROR([--enable-drmingw argument must be yes or no, not "${enableval}"]) ;;
3072 +        esac],
3073 +        [build_drmingw=true])
3074 +
3075 +AC_ARG_ENABLE(redir, 
3076 +       AS_HELP_STRING([--disable-redir],[Don't build redir (default is build)]), 
3077 +       [case "${enableval}" in
3078 +         yes) build_redir=true ;;
3079 +         no)  build_redir=false ;;
3080 +         *)   AC_MSG_ERROR([--enable-redir argument must be yes or no, not "${enableval}"]) ;;
3081 +        esac],
3082 +        [build_redir=true])
3083 +
3084 +AC_ARG_ENABLE(res2coff, 
3085 +       AS_HELP_STRING([--disable-res2coff],[Don't build res2coff (default is build)]), 
3086 +       [case "${enableval}" in
3087 +         yes) build_res2coff=true ;;
3088 +         no)  build_res2coff=false ;;
3089 +         *)   AC_MSG_ERROR([--enable-res2coff argument must be yes or no, not "${enableval}"]) ;;
3090 +        esac],
3091 +        [build_res2coff=true])
3092 +
3093 +AC_ARG_ENABLE(nonportable, 
3094 +       AS_HELP_STRING([--disable-nonportable],[shortcut for --disable-drmingw, --disable-redir and --disable-res2coff]), 
3095 +       [case "${enableval}" in
3096 +         yes) build_drmingw=true
3097 +              build_redir=true
3098 +              build_res2coff=true
3099 +              ;;
3100 +         no)  build_res2coff=false
3101 +              build_redir=false
3102 +              build_res2coff=false
3103 +              ;;
3104 +         *)   AC_MSG_ERROR([--enable-nonportable argument must be yes or no, not "${enableval}"]) ;;
3105 +        esac],
3106 +        [build_res2coff=true])
3107 +
3108 +AM_CONDITIONAL(BUILD_DRMINGW, [test "${build_drmingw}" = "true"])
3109 +AM_CONDITIONAL(BUILD_REDIR, [test "${build_redir}" = "true"])
3110 +AM_CONDITIONAL(BUILD_RES2COFF, [test "${build_res2coff}" = "true"])
3111 +
3112  # Checks for programs.
3113  AC_PROG_CC
3114  AC_PROG_CXX
3115 @@ -19,13 +65,20 @@
3116  AC_PROG_YACC
3117  
3118  AC_ARG_VAR(WINDRES, [Windows Resource compiler tool path])
3119 -AC_PATH_TOOL(WINDRES,windres,
3120 -       [AC_MSG_WARN(Could not find a windres tool in your PATH. Will not be able to compile drmingw.)]
3121 -)
3122 +AC_PATH_TOOL(WINDRES,windres)
3123 +
3124 +if test -z "${WINDRES}"; then
3125 +       AC_MSG_WARN([windres tool isn't in your PATH, drmingw can't be built!!])
3126 +       AM_CONDITIONAL(BUILD_DRMINGW, false)
3127 +fi
3128 +
3129  AC_SUBST(WINDRES)
3130  
3131  # Checks for header files.
3132  AC_HEADER_STDC
3133 +
3134 +AC_CHECK_HEADERS([windows.h])
3135 +
3136  where_toGet_utime_h='not found!'
3137  # this part is scrambled by autoconf. phooey. so we just cannot tell the user what we are doing.
3138  # AC_MSG_CHECKING([for whether utime.h is found as "utime.h" or "sys/utime.h"])
3139 @@ -43,6 +96,11 @@
3140  # Checks for library functions.
3141  AC_CHECK_FUNCS(mkstemp mktemp, break)
3142  AC_CHECK_FUNCS(utime)
3143 +
3144 +AC_CHECK_SIZEOF(_int64)
3145 +AC_CHECK_SIZEOF(long long)
3146 +AC_CHECK_SIZEOF(long)
3147 +AC_CHECK_SIZEOF(void *)
3148  
3149  AC_CONFIG_FILES([
3150  Makefile
3151 diff -ru ../release/mingw-utils-0.3/dos2unix/Makefile.am ./dos2unix/Makefile.am
3152 --- ../release/mingw-utils-0.3/dos2unix/Makefile.am     Wed Dec  4 07:07:55 2002
3153 +++ ./dos2unix/Makefile.am      Tue Aug  8 07:18:14 2006
3154 @@ -9,4 +9,4 @@
3155  doc_DATA = COPYING dos2unix.html
3156  
3157  dos2unix.html: dos2unix.1
3158 -       man2html $< > $@
3159 +       man2html < $< > $@
3160 diff -ru ../release/mingw-utils-0.3/dos2unix/Makefile.in ./dos2unix/Makefile.in
3161 --- ../release/mingw-utils-0.3/dos2unix/Makefile.in     Tue Nov 25 11:31:11 2003
3162 +++ ./dos2unix/Makefile.in      Tue Aug  8 07:01:48 2006
3163 @@ -419,7 +419,7 @@
3164  
3165  
3166  dos2unix.html: dos2unix.1
3167 -       man2html $< > $@
3168 +       man2html < $< > $@
3169  # Tell versions [3.59,3.63) of GNU make to not export all variables.
3170  # Otherwise a system limit (for SysV at least) may be exceeded.
3171  .NOEXPORT:
3172 diff -ru ../release/mingw-utils-0.3/pexports/pexports.c ./pexports/pexports.c
3173 --- ../release/mingw-utils-0.3/pexports/pexports.c      Tue Nov 25 10:23:09 2003
3174 +++ ./pexports/pexports.c       Tue Aug  8 06:53:25 2006
3175 @@ -19,7 +19,7 @@
3176  #endif
3177  
3178  /* get pointer to section header n */
3179 -#define IMAGE_SECTION_HDR(n) ((PIMAGE_SECTION_HEADER) ((DWORD) nt_hdr + \
3180 +#define IMAGE_SECTION_HDR(n) ((PIMAGE_SECTION_HEADER) ((ULONG_PTR) nt_hdr + \
3181                                      4 + sizeof(IMAGE_FILE_HEADER) + \
3182                                      nt_hdr->FileHeader.SizeOfOptionalHeader + \
3183                                      n * sizeof(IMAGE_SECTION_HEADER)))
3184 @@ -146,7 +146,7 @@
3185        return 1;
3186      }
3187  
3188 -  nt_hdr = (PIMAGE_NT_HEADERS) ((DWORD) dos_hdr + dos_hdr->e_lfanew);
3189 +  nt_hdr = (PIMAGE_NT_HEADERS) ((ULONG_PTR) dos_hdr + dos_hdr->e_lfanew);
3190    
3191    exp_rva = nt_hdr->OptionalHeader.DataDirectory[0].VirtualAddress;
3192  
3193 @@ -181,7 +181,7 @@
3194    PIMAGE_EXPORT_DIRECTORY exports;
3195    char *export_name;
3196    PWORD ordinal_table;
3197 -  char **name_table;
3198 +  DWORD *name_table;
3199    DWORD *function_table;
3200    int i;
3201    static int first = 1;
3202 @@ -203,7 +203,7 @@
3203    /* set up various pointers */
3204    export_name = RVA_TO_PTR(exports->Name,char*);
3205    ordinal_table = RVA_TO_PTR(exports->AddressOfNameOrdinals,PWORD);
3206 -  name_table = RVA_TO_PTR(exports->AddressOfNames,char**);
3207 +  name_table = RVA_TO_PTR(exports->AddressOfNames,DWORD*);
3208    function_table = RVA_TO_PTR(exports->AddressOfFunctions,void*);
3209  
3210    if (verbose)
3211 @@ -297,14 +297,14 @@
3212  }
3213  
3214  /* convert rva to pointer into loaded file */
3215 -DWORD
3216 +ULONG_PTR
3217  rva_to_ptr(DWORD rva)
3218  {
3219    PIMAGE_SECTION_HEADER section = find_section(rva);
3220    if (section->PointerToRawData == 0)
3221      return 0;
3222    else
3223 -    return ((DWORD) dos_hdr + (DWORD) rva - (section->VirtualAddress - section->PointerToRawData));
3224 +    return ((ULONG_PTR) dos_hdr + (DWORD) rva - (section->VirtualAddress - section->PointerToRawData));
3225  }
3226  
3227  /* Load a portable executable into memory */
3228 diff -ru ../release/mingw-utils-0.3/pexports/pexports.h ./pexports/pexports.h
3229 --- ../release/mingw-utils-0.3/pexports/pexports.h      Sun May 26 06:13:58 2002
3230 +++ ./pexports/pexports.h       Tue Aug  8 06:53:25 2006
3231 @@ -21,12 +21,26 @@
3232  #define VER_MINOR 43
3233  
3234  /* These are needed */
3235 -typedef unsigned short WORD;
3236 -typedef unsigned int DWORD;
3237 -typedef unsigned char BYTE;
3238 -typedef long LONG;
3239 -typedef WORD *PWORD;
3240 -typedef DWORD *PDWORD;
3241 +typedef unsigned short WORD, *PWORD;
3242 +typedef unsigned char BYTE, *PBYTE;
3243 +
3244 +#if SIZEOF_LONG == 4
3245 +typedef unsigned long DWORD, *PDWORD;
3246 +typedef long LONG, *PLONG;
3247 +#else
3248 +typedef unsigned int DWORD, *PDWORD;
3249 +typedef int LONG, *PLONG;
3250 +#endif
3251 +
3252 +#if SIZEOF_LONG == SIZEOF_VOID_P
3253 +typedef unsigned long ULONG_PTR;
3254 +#elif SIZEOF_LONG_LONG == SIZEOF_VOID_P
3255 +typedef unsigned long long ULONG_PTR;
3256 +#elif SIZEOF__INT64 == SIZEOF_VOID_P
3257 +typedef unsigned _int64 ULONG_PTR;
3258 +#else
3259 +typedef unsigned int ULONG_PTR;
3260 +#endif
3261  
3262  /* PE structures */
3263  typedef struct _IMAGE_DATA_DIRECTORY {
3264 @@ -111,9 +125,9 @@
3265    DWORD   Base;
3266    DWORD   NumberOfFunctions;
3267    DWORD   NumberOfNames;
3268 -  PDWORD  *AddressOfFunctions;
3269 -  PDWORD  *AddressOfNames;
3270 -  PWORD   *AddressOfNameOrdinals;
3271 +  DWORD   AddressOfFunctions;
3272 +  DWORD   AddressOfNames;
3273 +  DWORD   AddressOfNameOrdinals;
3274  } IMAGE_EXPORT_DIRECTORY, *PIMAGE_EXPORT_DIRECTORY;
3275  
3276  typedef struct _IMAGE_DOS_HEADER {
3277 @@ -144,7 +158,7 @@
3278  PIMAGE_DOS_HEADER
3279  load_pe_image(const char *filename);
3280  
3281 -DWORD
3282 +ULONG_PTR
3283  rva_to_ptr(DWORD rva);
3284  
3285  void
3286 diff -ru ../release/mingw-utils-0.3/reimp/ar.c ./reimp/ar.c
3287 --- ../release/mingw-utils-0.3/reimp/ar.c       Wed Apr 10 09:39:07 2002
3288 +++ ./reimp/ar.c        Tue Aug  8 06:53:25 2006
3289 @@ -21,6 +21,7 @@
3290            if (fread (long_names, size, 1, f) != 1)
3291              error (0, "unexpected end-of-file\n");
3292          }
3293 +      return 1;
3294      }
3295    else
3296      return 0;
3297 diff -ru ../release/mingw-utils-0.3/reimp/reimp.h ./reimp/reimp.h
3298 --- ../release/mingw-utils-0.3/reimp/reimp.h    Wed Apr 10 09:39:07 2002
3299 +++ ./reimp/reimp.h     Tue Aug  8 06:53:25 2006
3300 @@ -3,7 +3,7 @@
3301  
3302  /* we need integers of specific sizes */
3303  #ifndef uint32
3304 -#define uint32 unsigned long
3305 +#define uint32 unsigned int
3306  #endif
3307  
3308  #ifndef uint16
3309 diff -ru ../release/mingw-utils-0.3/scripts/a2dll.in ./scripts/a2dll.in
3310 --- ../release/mingw-utils-0.3/scripts/a2dll.in Sun May 26 06:13:58 2002
3311 +++ ./scripts/a2dll.in  Tue Aug  8 06:53:25 2006
3312 @@ -12,6 +12,13 @@
3313         exit 0
3314  }
3315  
3316 +# Figure out where the script is located and then use that path as the location
3317 +# for the tools
3318 +
3319 +cwd=`pwd`
3320 +cd `dirname $0`
3321 +SCRIPTDIR=`pwd`
3322 +cd $cwd
3323  
3324  cmdline=$@
3325  
3326 @@ -43,14 +50,14 @@
3327         rm -f .dll/*
3328         /usr/bin/mkdir -p .dll
3329         cd .dll
3330 -       ar x ../$in
3331 +       ${SCRIPTDIR}/ar x ../$in
3332  else
3333         cd .dll
3334  fi
3335  
3336  echo Creating shared library \'$out\'
3337  
3338 -dllwrap --export-all -o ../$out `ls` $libs >../ld.err 2>&1
3339 +${SCRIPTDIR}/dllwrap --export-all -o ../$out `ls` $libs >../ld.err 2>&1
3340  
3341  cd ..
3342  if [ `wc ld.err|awk ' {print $1}' ` -gt 2 ]
3343 @@ -72,17 +79,17 @@
3344  # 2. I just saw that dlltool lies about assembly-sourced files, it
3345  #    lists their symbols as data 
3346  
3347 -        pexports $out >$base.def
3348 +        ${SCRIPTDIR}/pexports $out >$base.def
3349  
3350  # create import library
3351  
3352         mv $in $in.static
3353 -        dlltool --dllname $out --def $base.def --output-lib $in
3354 +        ${SCRIPTDIR}/dlltool --dllname $out --def $base.def --output-lib $in
3355  
3356  # finally, we check whether dll exports data symbols
3357  # if yes, we suggest user on steps to perform
3358  
3359 -        pexports $out | awk '/DATA/ { print $1}' >$out.data
3360 +        ${SCRIPTDIR}/pexports $out | awk '/DATA/ { print $1}' >$out.data
3361         if test -s $out.data
3362          then
3363                  echo
3364 diff -ru ../release/mingw-utils-0.3/unix2dos/Makefile.am ./unix2dos/Makefile.am
3365 --- ../release/mingw-utils-0.3/unix2dos/Makefile.am     Wed Dec  4 07:08:07 2002
3366 +++ ./unix2dos/Makefile.am      Tue Aug  8 07:02:59 2006
3367 @@ -9,4 +9,4 @@
3368  doc_DATA = COPYING unix2dos.html
3369  
3370  unix2dos.html: unix2dos.1
3371 -       man2html $< > $@
3372 +       man2html < $< > $@
3373 diff -ru ../release/mingw-utils-0.3/unix2dos/Makefile.in ./unix2dos/Makefile.in
3374 --- ../release/mingw-utils-0.3/unix2dos/Makefile.in     Tue Nov 25 11:31:12 2003
3375 +++ ./unix2dos/Makefile.in      Tue Aug  8 07:02:48 2006
3376 @@ -419,7 +419,7 @@
3377  
3378  
3379  unix2dos.html: unix2dos.1
3380 -       man2html $< > $@
3381 +       man2html < $< > $@
3382  # Tell versions [3.59,3.63) of GNU make to not export all variables.
3383  # Otherwise a system limit (for SysV at least) may be exceeded.
3384  .NOEXPORT: