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