From 0258122757adf3eeababf534a49ec22cb830bd4a Mon Sep 17 00:00:00 2001 From: keithmarshall Date: Mon, 28 Jul 2008 22:57:43 +0000 Subject: [PATCH] Lay foundations for new printf() function family implementation. --- winsup/mingw/ChangeLog | 3886 ++++++++++++++++++++++++++++++++++++++++ winsup/mingw/Makefile.in | 538 ++++++ winsup/mingw/configure | 4351 +++++++++++++++++++++++++++++++++++++++++++++ winsup/mingw/configure.in | 86 + winsup/mingw/ofmt_stub.s | 40 + 5 files changed, 8901 insertions(+) create mode 100644 winsup/mingw/ChangeLog create mode 100644 winsup/mingw/Makefile.in create mode 100755 winsup/mingw/configure create mode 100644 winsup/mingw/configure.in create mode 100644 winsup/mingw/ofmt_stub.s diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog new file mode 100644 index 0000000000..57369a3c0f --- /dev/null +++ b/winsup/mingw/ChangeLog @@ -0,0 +1,3886 @@ +2008-07-28 Keith Marshall + + Lay foundations for new printf() function family implementation. + + * ofmt_stub.s: New file; implement forward compatibility stub for... + (_get_output_format): ...this MSVCR80.DLL and later function. + + * Makefile.in (SRCDIST_FILES): Add ofmt_stub.s. + (NM, OBJCOPY): New macros; define them with AC_SUBSTed values. + (sym_prefix, NM_LOOKUP, MINGW_REPL_FUNCS): New macros; define them. + (lib%.a): Include ofmt_stub.o when import library does not already + advertise availability of the _get_output_format() function; + Add alias stubs for MINGW_REPL_FUNCS, such that... + (__msvcrt_printf): ...is an alias for Microsoft's printf(). + (__msvcrt_fprintf): ...is an alias for Microsoft's fprintf(). + (__msvcrt_sprintf): ...is an alias for Microsoft's sprintf(). + (__msvcrt_vprintf): ...is an alias for Microsoft's vprintf(). + (__msvcrt_vfprintf): ...is an alias for Microsoft's vfprintf(). + (__msvcrt_vsprintf): ...is an alias for Microsoft's vsprintf(). + (clean): Add msvcr*.def. + + * configure.in (NM, OBJCOPY): Use AC_CHECK_TOOL to specify them. + * configure: Regenerated. + +2008-07-06 Gregory McGarry + + * include/ctype.h (_imp____mb_cur_max): Correct spelling. + (_imp____mb_cur_max_dll): Likewise. + +2008-07-04 Danny Smith + + * include/stdio.h (swprintf, vswprintf): Guard with #ifndef __STRICT_ANSI__ + * include/wchar.h (swprintf, vswprintf): Likewise. + +2008-07-01 Keith Marshall + + * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__] + (_get_output_format, _set_output_format): Add references. + + * include/stdio.h [__MSVCRT_VERSION__ >= 0x800] + (_get_output_format, _set_output_format): Declare prototypes. + (_TWO_DIGIT_EXPONENT): Define. + Some other minor formatting adjustments. + +2008-06-14 Danny Smith + + [mingw-Bugs-1801641] + * include/wchar.h (_wfdopen): Const-ify second arg. + * include/stdio.h (_wfdopen): Likewise. + Thanks to + +2008-06-02 Keith Marshall + + Avoid precision errors in round(), lround() and llround() functions. + + * mingwex/math/round_generic.c: New file; it replaces... + * mingwex/math/round.c: ...this; delete it. + * mingwex/math/roundf.c: ...and this; ditto. + * mingwex/math/roundl.c: ...and this; ditto. + + * mingwex/math/lround_generic.c: New file; it replaces... + * mingwex/math/lround.c: ...this; delete it. + * mingwex/math/lroundf.c: ...and this; ditto. + * mingwex/math/lroundl.c: ...and this; ditto. + * mingwex/math/llround.c: ...and this; ditto. + * mingwex/math/llroundf.c: ...and this; ditto. + * mingwex/math/llroundl.c: ...and this; ditto. + + * mingwex/math/round_internal.h: New file; it provides generic common + code, which is shared by `round_generic.c' and `lround_generic.c'; the + implementation is based on techniques suggested by Danny Smith and + Greg Chicares. + + * mingwex/Makefile.in (MATH_DISTFILES): Remove `round.c', `roundf.c', + `roundl.c', `lround.c', `lroundf.c', `lroundl.c', `llround.c', + `llroundf.c' and `llroundl.c'; replace by `round_internal.h', + `round_generic.c' and `lround_generic.c'. + (MATH_OBJS): Factor out files listed in... + (MATH_ROUND_OBJS, MATH_LROUND_OBJS, MATH_LLROUND_OBJS): ...these new + macros; define them; specify dependencies and build rules; add to... + (LIB_OBJS): ...this list. + +2008-05-22 Danny Smith + + [ mingw-Bugs-1961893 ] + * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa + mode to 2 for E format. + +2008-05-15 Ramiro Polla + + * include/stdlib.h: Fix strtod under C++. + +2008-05-06 Ramiro Polla + + * mingwex/gdtoa/strtodnrp.c: Remove alias from strtod to __strtod. + * include/stdlib.h: Define strtod to __strtod when __NO_ISOCEXT is not set. + +2008-05-04 Ramiro Polla + + * include/sys/types.h (useconds_t): typedef. + * include/unistd.h (usleep): Add prototype. + * mingwex/usleep.c: New file. + * mingwex/makefile.in: Add usleep source and object. + +2008-05-02 Ramiro Polla + + Make strtod() conform to C99. + + * include/stdlib.h (strtod): Declare this mingwex function, and... + (_strtod): rename this MSVCRT counterpart. + + * mingwex/gdtoa/strtodnrp.c (strtod): Alias to __strtod. + +2008-04-26 Chuck Wilson + + * Makefile.in: correct issues with mingw10.dll having multiple relocs. + +2008-04-25 Danny Smith + + * include/process.h: Include stdint.h for intptr_t definition. + (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe, + _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp, + _spawnvpe): Return intptr_t. + (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl, + spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return + intptr_t. + * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__. + + [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition. + (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp, + _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve, + _wspawnvp, _wspawnvpe): Return intptr_t. + +2008-04-25 Danny Smith + + * include/wchar.h (fwide): Return success code rather than failure in inline + definition. + * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success + code rather than failure. + +2008-03-21 Danny Smith + + * include/math.h (float_t, double_t): Define. + +2008-02-08 Danny Smith + + * mingwex/gdtoa/gdtoaimp.h (USE_LOCALE): Define. + * mingwex/gdtoa/mingw_snprintf.c: [USE_LOCALE] Include locale.h. + (x_sprintf): [USE_LOCALE] Use *localeconv()->decimal_point. + +2008-02-28 Joseph Myers + + * include/complex.h: Don't condition contents on C99 or not + __STRICT_ANSI__. + +2008-02-01 Brian Dessent + + * Makefile.in: Add rules to generate multiple versions of libmoldname.a for + the different runtime versions. + +2008-01-19 Danny Smith + + * include/_mingw.h: Increment version to 3.14. + +2007-11-26 Chris Sutcliffe + + * Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets. + * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines. + * mingwex/math/log10f.S: Correct issue with comments. + * mingwex/math/log10l.S: Ditto. + * mingwex/math/log1p.S: Ditto. + * mingwex/math/log1pf.S: Ditto. + * mingwex/math/log1pl.S: Ditto. + * mingwex/math/log2.S: Ditto. + * mingwex/math/log2f.S: Ditto. + * mingwex/math/log2l.S: Ditto. + * mingwex/math/logf.S: Ditto. + * mingwex/math/logl.S: Ditto. + +2007-10-03 Danny Smith + + * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile. + +2007-10-03 Bernd Becker + + * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size' + from '_fsize_t' to '__int64' to be consistent with the other ...64 + structures and the value set there is 8 bytes not 4. Add guard for both + as the are only used by functions available from 6.1 on. + + * include/malloc.h (_HEAP_MAXREQ): Define. + (_aligned_offset_recalloc): Define. + (_aligned_recalloc()): Define. + + * include/math.h: fixed a typo in a comment. + (atanhf): Fixed declaration. + + * include/wchar.h (__wfinddata64_t): changed member 'size' from '_fsize_t' + to '__int64' to be consistent with the other ...64 structures and the value + set there is 8 bytes not 4. Added guard as this function is only used by + functions available from 6.1 on. + + * include/sys/stat.h: some members of 'stat' were declared with types with + a prefixed underscore, while the ones without the underscore should have + been used. Added guard to '__stat64' as it is only used by functions + available from 6.1 on. Added the wide character versions of the + exec()/spawn() family for completion + (_stati64): changed the type of the 'st_mode' member from 'unsigned int' to + '_mode_t' + + * include/sys/timeb.h (timeb, _timb): changed the type of the 'time' member + from 'long' to 'time_t' + (__timeb64): moved declaration of structure directly before the declaration + of the function '_ftime64()', so it is guarded as well + + * include/sys/utime.h (__utimbuf64): moved declaration of structure directly + before the declaration of the functions using it, so it is guarded as well + +2007-09-24 David C. Daeschler + + * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l' + case. Add missing break in 's'/LEN_S case. + +2007-08-25 Keith Marshall + + Make snprintf() and vsnprintf() conform to C99. + + * include/stdio.h: Add note about incompatibility between... + (snprintf, vsnprintf): These two mingwex functions, and... + (_snprintf, _vsnprintf): these MSVCRT counterparts. + + * mingwex/Makefile.in (STDIO_OBJS): Remove snprintf.o and vsnprintf.o + (STDIO_DISTFILES): Remove snprintf.c and vsnprintf.c + + * mingwex/stdio/snprintf.c: Delete. + * mingwex/stdio/vsnprintf.c: Delete. + + * mingwex/gdtoa/mingw_snprintf.c (snprintf): Alias to __mingw_snprintf + (vsnprintf): Alias to __mingw_vsnprintf. + +2007-07-25 Chris Sutcliffe + + * include/_mingw.h: Increment version to 3.13. + * Makefile.in: Reset CYGRELEASE to 1 + +2007-07-23 Keith Marshall + + * Makefile.in (SUBDIRS): Delete stray line continuation artifact, + resulting from incomplete removal of enclosing `for ...; do ...; done' + loop from compound command; (reported by Greg Chicares). + +2007-07-19 Danny Smith + + * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for + Vista. + +2007-07-12 Danny Smith + + [mingw-Bugs-1734142] + * include/wchar.h (_wsystem) Declare. + (_wputenv) Declare. + (_wgetenv): Declare. + (_wsearchenv): Declare. + (_wmakepath): Declare. + (_wsplitpath): Declare. + (_wfullpath): Declare. + * include/stdlib.h (_wsystem) Declare. + (_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath, + _wfullpath): Move into _WSTDLIB_DEFINED guard. + * include/tchar.h (_tsystem): New UNICODE mapping define. + +2007-06-29 Danny Smith + + * mingwex/gdtoa/mingw_snprintf.c: New file. + * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c. + (GDTOA_OBJS): Add mingw_snprintf.o. + +2007-06-28 Danny Smith + + * msvcrt.def.in: Update comment. + Exclude _ctype stub if using msvcr71.dll or newer. + * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer. + * include/wctype.h: Likewise. + +2007-06-23 Danny Smith + + *include/wctype.h: Qualify all functions with __MINGW_NOTHROW. + *include/dirent.h: Likewise. + +2007-06-23 Danny Smith + + * include/assert.h: Qualify all functions with __MINGW_NOTHROW. + * include/conio.h: Likewise. + * include/ctype.h: Likewise. + * include/direct.h: Likewise. + * include/dos.h: Likewise. + * include/errno.h: Likewise. + * include/fenv.h: Likewise. + * include/float.h: Likewise. + * include/inttypes.h: Likewise. + * include/io.h: Likewise. + * include/libgen.h: Likewise. + * include/locale.h: Likewise. + * include/malloc.h: Likewise. + * include/mbctype.h: Likewise. + * include/mbstring.h: Likewise. + * include/process.h: Likewise. + * include/search.h: Likewise. + * include/setjmp.h: Likewise. + * include/signal.h: Likewise. + * include/stdio.h: Likewise. + * include/stdlib.h: Likewise. + * include/string.h: Likewise. + * include/time.h: Likewise. + * include/wchar.h: Likewise. + * include/sys/stat.h: Likewise. + * include/sys/time.h: Likewise. + * include/sys/timeb.h: Likewise. + * include/sys/utime.h: Likewise. + +2007-06-22 Danny Smith + + * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal. + +2007-06-22 Danny Smith + + Add POSIX binary tree search API. + + * mingwex/tfind.c: New file. + * mingwex/tdelete.c: New file. + * mingwex/tsearch.c: New file. + * mingwex/twalk.c: New file. + * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c. + * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o. + * include/search.h (tfind): Declare. + (tdelete): Declare. + (tsearch): Declare. + (twalk): Declare. + (ENTRY): Define. + (ACTION): Define. + (VISIT): Define. + (node_t): Define, on condition of _SEARCH_PRIVATE. + +2007-06-22 Danny Smith + + * include/_mingw.h (__MINGW_NOTHROW): Define. + +2007-06-18 Danny Smith + + * include/stdio.h (vsnprintf): Remove inline definition. + Add prototype. + +2007-06-16 Danny Smith + + * CRTfmode.c: Nit-pick comment fix. + +2007-06-16 Christopher Faylor + + * CRTfmode.c: Fix nested comment. + +2007-06-16 Christopher Faylor + + * include/string.h (strcasecmp): Fix typo in declaration prototype. + +2007-06-14 Danny Smith + + * include/io.h (lseek64) : Add prototype. + +2007-06-14 Danny Smith + + * include/string.h (strcasecmp): Add prototype. + (strncasecmp): Add prototype. + +2007-06-13 Danny Smith + + * Makefile.in (CRT0S): Revert last change. + * CRTfmode.c. Correct comment. + +2007-06-13 Danny Smith + + * Makefile.in (CRT0S): Add back CRTfmode.o. + +2007-06-13 Danny Smith + + * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t. + * include/io.h: Likewise. + +2007-06-11 Danny Smith + + * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main. + +2007-05-08 Danny Smith + + * include/stdint.h (intptr_t): Fix typo. + Thanks to Charles Wilson for report. + +2007-05-07 Danny Smith + + * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED. + Condition on _WIN64. + (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64. + (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64. + (PTRDIFF_MIN): Define as INTPTR_MIN. + (PTRDIFF_MAX): Define as INTPTR_MAX. + (SIG_ATOMIC_MIN): Define as INTPTR_MIN. + (SIG_ATOMIC_MAX): Define as INTPTR_MAX. + +2007-04-07 Chris Sutcliffe + + * Makefile.in: Removed mansuffix variable. Changed mansection to support + Cygwin man page location. + +2007-04-05 Chris Sutcliffe + + * Makefile.in: Added mansection and mansuffix variables. Changed mandir to + support Cygwin man page location. + +2007-03-25 Chris Sutcliffe + + * Include/_mingw.h: Increment version to 3.12. + +2007-03-22 Brian Ripley + + * include/_mingw.h (__CRT_INLINE): Make conditional on __GNUC_STDC_INLINE__. + +2007-03-20 Chris Sutcliffe + + * Makefile.in: Tweak srcdist to fix build issue. + +2007-03-20 Keith Marshall + + Add --enable-mingw-manpage-transform configure option. + + * aclocal.m4 (MINGW_AC_MANPAGE_TRANSFORM): New macro. + * configure.in, Makefile.in: Use it. + * configure: Regenerated. + +2007-03-18 Danny Smith + + * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ for gcc 4.2.x too. + +2007-03-10 Keith Marshall + + Add manpages for dirname and basename functions. + + * man: New directory. + * man/dirname.man: New file; it sources both manpages. + * Makefile.in: Add provisional rules to distribute them. + +2007-03-08 Keith Marshall + + * mingwex/basename.c: Make it work with path names containing + multibyte character strings. + * mingwex/dirname.c: Likewise. + +2007-03-05 Danny Smith + + * include/io.h (__mingw_access): New static inline wrapper to restore + pre-Vista 'access (fname, X_OK)' behaviour. + (__USE_MINGW_ACCESS): Use to map access() to __mingw_access(). + +2007-03-05 Danny Smith + + * mingwex/fesetround.c (fesetround): Use unsigned int as operand + to stmxcsr. + Thanks to Alexey Kuznetsov + +2007-02-27 Thorsten Dahlheimer + + * include/stdio.h (_unlink, unlink): Add prototypes. + +2007-02-18 Aurimas Cernius + + * include/excpt.h: Replace "_try1" in comments with "__try1". + +2007-02-15 Danny Smith + + * Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES. + (ALL_CXXFLAGS): Likewise. + * mingwex/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES. + (ALL_CXXFLAGS): Likewise. + * profile/Makefile.in (ALL_CFLAGS): Put W32API_INCLUDE after INCLUDES. + (ALL_CXXFLAGS): Likewise. + +2007-02-08 Danny Smith + + * include/io.h (X_OK): Revert 2007-01-24 change, but leave comment. + +2007-01-27 Danny Smith + + Expose some more msvcr80.dll functions. + * include/stdio.h (_fseek_nolock. _ftell_nolock, _fseeki64, + _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add prototypes + * msvcrt.def.in (_fseek_nolock. _ftell_nolock, _fseeki64, + _ftelli64, _fseeki64_nolock, _ftelli64_nolock) Add stubs. + +2007-01-26 Danny Smith + + Expose some msvcr80.dll functions. + * include/stdlib.h (_set_abort_behavior): Add prototype. + (_WRITE_ABORT_MSG, _CALL_REPORTFAULT): Add defines for + _set_abort_behavior mask argument. + (_invalid_parameter_handler): Add typedef. + (_set_invalid_parameter_handler): Add prototype. + * include/stdio.h (_get_printf_count_output): Add prototype. + (_set_printf_count_output): Add prototype. + * msvcrt.def.in (_get_printf_count_output,_set_printf_count_output, + _set_abort_behavior, _set_invalid_parameter_handler): Add stubs. + +2007-01-26 Danny Smith + + * include/_mingw.h (CRT_INLINE): Correct typo. + +2007-01-24 Danny Smith + + * include/io.h (X_OK): Define to F_OK. + +2007-01-19 Danny Smith + + * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define + unconditionally. Change comment. + * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define + here too. + * include/io.h (rename): Declare. + (remove): Declare. + +2006-12-31 Keith Marshall + + * include/libgen.h: New file; required by... + * mingwex/basename.c, mingwex/dirname.c: New files. + * mingwex/Makefile.in (DISTFILES): Add them... + (POSIX_OBJS): ...with corresponding basename.o, dirname.o + (Dependencies): Typo; s/Dependancies/Dependencies/ + +2006-11-25 Keith Marshall + + * Makefile.in (VERSION): Let configure define it. + + * aclocal.m4 (MINGW_AC_CONFIG_SRCDIR): New macro. + * configure.in: Use it. + Correct quoting of autoconf macro arguments throughout. + (AC_INIT, AC_OUTPUT): Update to autoconf 2.5x preferred syntax. + (AR, AS, RANLIB, LD, DLLTOOL, DLLWRAP): Don't need AC_SUBST. + (AC_ALLOCA): Invalid after GCC_NO_EXECUTABLES; removed. + (AC_CONFIG_FILES): Add, to generate Makefile. + + * configure: Regenerated. + +2006-11-21 Danny Smith + + * Makefile.in: Add aclocal.m4 to source release. + * mingwex/Makefile.in: Ditto. + * profile/Makefile.in: Ditto. + +2006-11-18 Chris Sutcliffe + + * Include/_mingw.h: Increment version to 3.11. + * Makefile.in: Ditto. + +2006-11-09 Danny Smith + + [ mingw-Bugs-1590623 ] + * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute + in C99 mode. + +2006-10-04 Corinna Vinschen + + * Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now + correctly parenthesized. + +2006-09-19 Danny Smith + + * mingwex/mb_wc_common.h (get_codepage): Get it + from __lc_codepage. + +2006-09-18 Danny Smith + + * mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity. + Use fpclassify. + * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to + void*. + * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with + others. + +2006-09-16 Danny Smith + + * mingwex/gdtoa/strtopx.c (strtopx): Fix long double representation + of infinity. + +2006-09-11 Christopher Faylor + + * Makefile.in: Semi-revert 2006-08-30 change. + +2006-09-10 Danny Smith + + * include/_mingw.h (__MINGW_ATTRIB_DEPRECATED): Define. + (__MINGW_IMPORT): Ansify. + * include/stdlib.h (_sleep, _beep, _seterrormode): Add + __MINGW_ATTRIB_DEPRECATED. + +2006-09-10 Keith Marshall + + * aclocal.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CC_GNU, LIB_AC_PROG_CXX): + Redundant macros; deleted. + + * configure.in (LIB_AC_PROG_CC): Replaced by... + (AC_PROG_CC): ...this. + + * configure: Regenerated. + +2006-09-06 Danny Smith + + * mingwex/gdtoa/misc.c (pow5mult): Restore original code. + * mingwex/gdtoa/gdtoa.h. Add comment that files have been modified. + * mingwex/gdtoa/gdtoaimp.h: Include system headers with <> brackets. + +2006-09-01 Danny Smith + + * mingwex/gdtoa/(arithchk.c, dmisc.c, dtoa.c, g__fmt.c, g_dfmt.c, + g_ffmt.c, g_xfmt.c, gd_arith.h, gd_qnan.h, gdtoa.c, gdtoa.h, + gdtoaimp.h, gethex.c, gmisc.c, hd_init.c, hexnan.c, misc.c, qnan.c, + README, smisc.c, strtodg.c, strtodnrp.c, strtof.c, strtopx.c, sum.c, + ulp.c): New files. + * mingwex/(strtof.c, strtold.c, ldtoa.c): Remove files. + * mingwex/math/(cephes-emath.c, cephes-emath.h): Remove files. + * mingwex/mb_wc_common.h (get_cp_from_locale); Rename to get_codepage(). + * mingwex/(btowc.c, wctob.c, mbrtowc.c, wcrtomb.c): Adjust call to get_codepage(). + * mingwex/wcstold.c: Avoid using strtold internals. + * mingwex/wcstof.c: Rewrite. + * mingwex/Makefile.in (GDTOA_DISTFILES): Add to distribution. + (GDTOA_OBJS): Add to library. + (DISTFILES): Remove strtof.c strtold.c ldtoa.c cephes-emath.c cephes-emath.h. + (STDLIB_OBJS): Remove. + (STDLIB_STUB_OBJS): Remove strtof.o wcstof,o. + (Q8_OBJS): Add wcstof.o wcstold.o. + * include/stdlib.h (strtof): Remove inline definition. + (wcstof): Likewise. + * include/wchar.h (wcstof): Remove inline definition. + +2006-08-30 Corinna Vinschen + + * Makefile.in: Add with_cross_host to allow more granular checks. + Set installation directories accordingly. Override CC setting only + if building a Cygwin target. + * aclocal.m4: Regenerate. + * configure.in: Move AC_CANONICAL_SYSTEM check up. Add + GCC_NO_EXECUTABLES. Substitute with_cross_host in depending files. + Test AC_ALLOCA only if building on a native system. + * configure: Regenerate. + +2006-08-27 Chris Sutcliffe + + * include/ctype.h: Fix typo. + +2006-08-25 Danny Smith + + * include/ctype.h: Expose iswblank if __cplusplus. + * include/wctype.h: Expose iswblank if __cplusplus. + +2006-08-03 Danny Smith + + * include/ctype.h: Remove stray ')'; + +2006-08-03 Danny Smith + + * include/ctype.h (_BLANK): Expand comment. + (isblank): Add prototype and inline definition. + (iswblank): Add prototype and inline definition. + * include/wctype.h (iswblank): Add prototype and inline definition. + * mingwex/isblank.c: New file. + * mingwex/iswblank.c: New file. + * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a + +2006-07-06 Danny Smith + + * include/math.h (__INFF,__INFL): Remove '#'. + +2006-07-04 Danny Smith + + * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES. + +2006-07-03 Danny Smith + + Support SSE float environment in fenv.h functions. + * cpu_features.c: New file. + * cpu_features.h: New file. + * crt1.c: Include "cpu_features.h". + (__mingw_CRTStartup): Call cpu_features_init(). + * Makefile.in (MING_OBJS): Add cpu_features.c. + (SRCDIST_FILES): Add cpu_features.c, cpu_features.h. + * include/fenv,h ( fenv_t;): Append __mxcsr field. + (__MXCSR_EXCEPT_FLAG_SHIFT): New define. + (__MXCSR_EXCEPT_MASK_SHIFT): New define. + (__MXCSR_ROUND_FLAG_SHIFT): New define. + * mingwex/feclearexcept.c: Include "cpu_features.h". + Handle SSE environment. + * mingwex/fegetenv.c: Likewise. + * mingwex/feholdexcept.c: Likewise. + * mingwex/fesetenv.c: Likewise. + * mingwex/fesetexceptflag.c: Likewise. + * mingwex/fesetround.c: Likewise. + * mingwex/fetestexcept.c: Likewise. + * mingwex/feupdateenv.c: Likewise. + * mingwex/fegetround.c: Add comment. + +2006-06-25 Chris Sutcliffe + + * Include/_mingw.h: Increment version to 3.10. + * Makefile.in: Ditto. + +2006-06-26 Danny Smith + + * mingwex/math/tgamma.c (SQTPI): Add braces. + +2006-06-26 Danny Smith + + * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko. + * mingwex/math/lgamma.c: (LOGPI) Avoid type punning. + (LS2PI): Likewise. + * mingwex/math/sf_erf.c (erff): Initialize z. + (erfcf): Likewise. + * mingwex/math/tgamma.c (SQTPI): Avoid type punning. + +2006-06-25 Chris Sutcliffe + + * Include/_mingw.h: Increment version to 3.10. + * Makefile.in: Ditto. + +2006-06-23 Danny Smith + + * include/sys/time.h (struct timezone): Define. + * include/time.h: Correct comment about timezone. + +2006-06-18 Danny Smith + + * configure.in (AC_CONFIG_AUX_DIR): Remove. + * configure: Regenerate. + +2006-06-18 Chris Sutcliffe + + * configure: add srcdir as a possible location for install-sh. + +2006-06-18 Danny Smith + + * mingwex/dirent.c (_tGetFileAttributes): New helper function. + (_topendir): Use it. + +2006-06-18 Danny Smith + + * include/sys/time.h: Add header guard. Add extern "C" bracketing + for __cplusplus. + (gettimeofday): Add prototype. + * mingwex/gettimeofday.c: New file. + * mingwex/makefile.in: Add gettimeofday source and object. + +2006-06-13 Danny Smith + + * include/math.h (HUGE_VAL): Define as builtin if __GNUC__ >= 3.3, + else global library variable. + (HUGEVALF): Likewise. + (HUGEVALL): Likewise. + (INFINITY): Likewise. + (NAN): LiKewise. + +2006-06-13 Danny Smith + + * mingwex/wcrtomb.c (wcrtomb_cp): Correct typo. + +2006-06-13 Danny Smith + + * Makefile.in (SUBDIRS): Change to lowercase for autoconf 2.59. + +2006-05-24 Christopher Faylor + + * configure.in: Update to newer autoconf. + (thanks to Steve Ellcey) + * mingwex/configure.in: Ditto. + * profile/configure.in: Ditto. + * configure: Regenerate. + * mingwex/configure: Ditto. + * profile/configure: Ditto. + * aclocal.m4: New file. + * mingwex/aclocal.m4: Ditto. + * profile/aclocal.m4: Ditto. + +2006-05-17 Danny Smith + + * mingwex/wcrtomb.c (wcrtomb_cp): Test (wc > 255) only if C locale. + Use supplied codepage as arg to WideCharToMultiByte. + +2006-02-13 Earnie Boyd + + * Makefile.in (libmsvcr80.a): Add import lib. + (libmsvcr80d.a): Ditto. + +2006-01-18 Chris Sutcliffe + + * Makefile.in: Bump cygwin build number. + +2005-10-27 Chris Sutcliffe + + * Include/_mingw.h: Increment version to 3.9. + * Makefile.in: Ditto. + +2005-10-14 Danny Smith + + * include/limits.h (SSIZE_MAX): Define. + (LLONG_MAX, LLONG_MIN, ULLONG_MAX): Separate from non-ISO names. + +2005-10-13 Wu Yongwei + + * include/tchar.h: Include when _UNICODE is defined. + (_TEOF): New macro definition for _UNICODE and non_UNICODE cases. + +2005-10-12 Danny Smith + + * include/stddef.h: Remove. + * include/stdarg.h: Remove. + +2005-10-12 Danny Smith + + * mingwex/complex/csqrt.c (csqrt): The sign of real part + of result is positive when real part of arg == 0; + * mingwex/complex/csqrtf.c (csqrtf): Ditto. + * mingwex/complex/csqrtl.c (csqrtl): Ditto. + +2005-10-12 Danny Smith + + * include/time.h (_time64): Correct prototype. + +2005-10-08 Danny Smith + + * mingwex/fegetenv.c (fegetenv): Restore exception masks. + * mingwex/feholdexcept.c (feholdexcept): Don't set exceptions + to non-stop. Use "fnclex" to clear exception flags. + +2005-09-24 Danny Smith + + * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN) + Avoid raising FP exceptions. + +2005-09-19 Danny Smith + + * include/stdlib.h (strtof): Add prototype. Uglify + parameter names in inline definition. + (wcstof): Likewise. + (_Exit): Uglify parameter names in inline definition. + (llabs): Add prototype. + (_set_error_mode): Add prototype and input defines. + +2005-08-25 Danny Smith + + * mingwex/fe*.c: Revert previous changes. + * include/fenv.h: Revert previous changes. + +2005-08-25 Danny Smith + + * mingwex/feclearexcept.c (feclearexcept): Change declaration. + Do not return a value. + * mingwex/fegetexceptflag.c (fegetexceptflag): Likewise. + * mingwex/feraiseexcept.c (feraiseexcept): Likewise. + * mingwex/fesetexceptflag.c (fesetexceptflag): Likewise. + * mingwex/fegetenv.c (fegetenv): Likewise. + * mingwex/fesetenv.c (fesetenv): Likewise. + * mingwex/feupdateenv.c (feupdateenv): Likewise. + * include/fenv.h (feclearexcept, fegetexceptflag, feraiseexcept, + fesetexceptflag, fegetenv, fesetenv, feupdateenv): Correct + prototypes. + +2005-08-25 Danny Smith + + * mingwex/stdio/fseeko64.c (fseeko64): Flush stream before + getting filelength for SEEK_END. + +2005-08-13 Chris Sutcliffe + + * Include/_mingw.h: Increment version to 3.8. + * Makefile.in: Ditto. + +2005-08-10 Danny Smith + + * include/wctype.h (towupper, towlower): Change arg and return value + types to wint_t. + * include/ctype.h (towupper, towlower): Likewise. + +2005-08-10 Danny Smith + + * mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with + a diagnostic, guarded by #ifdef DEBUG. + (__mingwthr_remove_key_dtor): Likewise. + +2005-08-08 Danny Smith + + * moldname.def.in (sleep, beep, seterrormode): Remove. + +2005-06-16 Danny Smith + + * profile/profile.h (_MCOUNT_CALL): Define as regparm(2) + (_MCOUNT_DECL): Use it. + (MCOUNT): Save and restore eax, ecx, edx registers. + * profile/mcount.c (_mcount): ANSI-fy. + +2005-06-16 Danny Smith + + * include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to + guard __MINGW_ATTRIB macro definitions. + * include/math.h (logb[fl]): Don't define inlines for + GCC-4.0+ && __FAST_MATH__. + (rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up + line-continuation backslashes. + +2005-06-06 Danny Smith + + * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo + in GNUC version guard. + +2005-05-20 Danny Smith + + * crt1.c (_gnu_exception_handler): Handle illegal instruction + OS exception as a signal if user has defined a SIGILL handler. + +2005-05-10 Danny Smith + + * mingwex/math/nexttoward.c: New file. + * mingwex/math/nexttowardf.c: New file. + * mingwex/math/nextafterl.c: Add nexttowardl alias. + * mingwex/Makefile.in (MATH_DISTFILES): Add nexttoward.c, + mexttowardf.c, + (MATH_OBJS): Add nexttoward.o, nexttowardf.o, + * include/math.h (nexttoward, nextowardf, nexttowardl): Add + prototypes. + +2005-05-09 Danny Smith + + * mingwex/math/nextafterf.c (nextafterf): Correct + handling of -0.0. + * mingwex/math/nextafterl.c: New file. + * mingwex/Makefile.in (MATH_DISTFILES): Add nextafterl.c. + (MATH_OBJS): Add nextafterl.o. + * include/math.h (nextafterl): Uncomment prototype. + +2005-05-08 Danny Smith + + * mingwex/math/erfl.c: New file. + * mingwex/Makefile.in (MATH_DISTFILES): Add erfl.c. + (MATH_OBJS): Add erfl.o. + * include/math.h (erfl, erfcl): Uncomment prototypes. + +2005-05-04 Danny Smith + + * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor + #if (WCHAR_MAX <= WCHAR_MIN) is false. + * include/stdint.h (WCHAR_MAX): Likwise. + (WINT_MAX): Likewise. + +2005-05-03 Danny Smith + + * mingwex/math/signbit.c (__signbit): Make return value + consistent with GCC's __builtin_signbit. + * mingwex/math/signbitf.c (__signbitf): Likewise. + * mingwex/math/signbitf.c (__signbitl): Likewise. + * include/math.h (__signbit, __signbitf, __signbitl): Likewise + for inlines. + +2005-05-02 Danny Smith + + * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as + variadic macro. + * mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL. + Remove unused MBTOWC_FLAGS define. + +2005-04-23 Danny Smith + + * mingwex/mbrtowc.c: New file. + * mingwex/wcrtomb.c: New file. + * mingwex/btowc.c: New file. + * mingwex/wctob.c: New file. + * mingwex/mb_wc_common.h: New file. + * mingwex/Makefile.in (DISTFILES): Add new files. + (Q8_OBJS): Add new objects. + * include/wchar.h: Adjust comment about mbrtowc() and related + funcions. Add __restrict__ to pointer params in prototypes. + (wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove + arg names from protototypes. + +2005-04-23 Wu Yongwei + + * mingwex/dirent.c: Formatting changes. + * mingwex/dirent.c (_topendir): Make the end-of-path slash check + MBCS-safe. + +2005-03-31 Danny Smith + + * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define. + +2005-03-24 Danny Smith + + * include/stdio.h (__mingw_fwrite): Change return value to + size_t. + * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise. + +2005-03-15 Hans Leidekker + + * include/malloc.h (_FREEENTRY, _USEDENTRY): Correct defines. + +2005-02-25 Danny Smith + + * include/wctype.h (wctrans): Remove _CRTIMP. + (towctrans): Likewise. + (wctype): Likewise, + +2005-02-25 Danny Smith + + * include/wctype.h: Add comment on wctrans, towctrans, wctype. + +2005-02-25 Danny Smith + + * mingwex/wctype.c: New file. + * mingwex/wctrans.c: New file. + * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c. + * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o. + +2005-02-11 Danny Smith + + * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings. + +2005-02-11 Danny Smith + + * include/assert.h: Remove header guard. #undef assert macro. + (_assert): Use __MINGW_ATTRIB_NORETURN define. + +2005-02-11 Gregory W. Chicares + Danny Smith + + * include/math.h (expm1, expm1f, expmll): Add prototypes. + * mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c, + expm1f.c, expm1l.c. + (MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o. + * mingwex/math/expm1.c: New file. + * mingwex/math/expm1f.c: New file. + * mingwex/math/expm1l.c: New file. + +2005-02-07 Danny Smith + + * include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES. + * include/wchar.h (struct stat): Likwwise. + Bug reported to Debian by Anand Kumria + + * include/sys/stat.h: Remove empty __STRICT_ANSI__ guard. + +2005-02-01 Danny Smith + + * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent + string is not valid. + +2005-01-26 Oliver Stoeneberg + + * include/malloc.h: Add missing return code defines for + _heapwalk() + +2005-01-17 Danny Smith + + * include/sys/stat.h (struct __stat64): Change st_size type to + __int64. + * include/wchar.h (struct __stat64): Change st_size type to __int64. + +2005-01-13 Earnie Boyd + + * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat, + lstat): Remove. + * include/errno.h (ELOOP): Ditto. + * include/_mingw.h: Increment version to 3.7. + * Makefile.in: Ditto. + +2005-01-11 Danny Smith + + * include/tchar.h (_tfreopen): Add UNICODE mappings. + +2005-01-11 Earnie Boyd + + * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat, + lstat): Conditionalize defines for __STRICT_ANSI__. + +2005-01-10 Earnie Boyd + + * include/errno.h (ELOOP): Add definition. + +2005-01-10 Danny Smith + + * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.c + casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c + clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c + ctanl.c ctanhl.c): New files. + * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust. + (COMPLEX_OBJS): Adjust. + * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf. + casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl, + cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl): + Declare. + +2005-01-06 Danny Smith + + * include/_mingw.h (__int16): Define as short. + Thanks to: Leo Yuriev + +2005-01-06 Danny Smith + + * include/stdio.h (P_tmpdir): Add define. + +2005-01-03 Earnie Boyd + + * Makefile.in (inst_docdir): For Cygwin target set to share/doc/. + +2005-01-02 Earnie Boyd + + * include/_mingw.h: Increment version to 3.6 + * Makefile.in: Ditto + +2004-12-26 Danny Smith + + * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.c + casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c + clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c + ctanf.c ctanhf.c): New files. + * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust. + (COMPLEX_OBJS): Adjust. + * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf. + casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf, + cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf): + Declare. + +2004-12-20 Danny Smith + + * include/wchar.h (wcsdup): Correct prototype. + * include/string.h (wcsdup): Correct prototype. + +2004-10-14 Danny Smith + + * include/sys/stat.h: Make S_ISLNK comment comply with ISO C90. + +2004-10-07 Danny Smith + + * mingwex/math/fastmath.h: New file. + * mingwex/math/asinh.c: New file. + * mingwex/math/asinhf.c: New file. + * mingwex/math/asinhl.c: New file. + * mingwex/math/acosh.c: New file. + * mingwex/math/acoshf.c: New file. + * mingwex/math/acoshl.c: New file. + * mingwex/math/atanh.c: New file. + * mingwex/math/atanhf.c: New file. + * include/math.h (asinh, asinhf, asinhl, acosh, acoshf, acoshl, + atanh, atanhf, atanhl): Add prototypes. + * mingwex/Makefile.in (MATH_OBJS): Add objects for above to list. + (MATH_DISTFILES): Add sources for above and fastmath.h to list. + Specify dependency on fastmath.h for new objects. + +2004-09-08 Earnie Boyd + + * include/sys/stat.h (_S_IFLNK): Add definition. + (S_IFLNK) Ditto. + (_lstat) Ditto. + (lstat) Ditto. + (_S_ISLNK) Recode. + (S_ISLNK) Ditto. + +2004-09-08 Earnie Boyd + + * include/sys/stat.h (_S_ISLNK): Add definition. + (S_ISLNK): Ditto. + +2004-09-05 Earnie Boyd + + * include/_mingw.h: Increment minor version for 3.5 release. + * Makefile.in: Ditto. + * mingwex/Makefile.in: Correct typo in list of DISTFILES. + +2004-08-24 Danny Smith + + * include/malloc.h (__mingw_aligned_offset_malloc, + __mingw_aligned_offset_realloc, __mingw_aligned_malloc, + __mingw_aligned_realloc, __mingw_aligned_free): Add + prototypes. + * mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c, + tst-aligned-malloc.c. + (REPLACE_OBJS): Add mingw-aligned-malloc.o. + +2004-08-24 Steven G. Johnson + + * mingwex/mingw-aligned-malloc.c: New file. + * mingwex/tst-aligned-malloc.c: New file. + +2004-08-24 Danny Smith + + * crt1.c: (__mingw_CRTStartup): Change return to void. Add + noreturn attribute. Align stack to 16 bytes before passing args + to main. + (mainCRTStartup): Change return to void. + (WinMainCRTStartup): Likewise. + +2004-08-15 Danny Smith + + * profile/COPYING: New file. + * profile/CYGWIN_LICENSE: New file. + * profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE. + +2004-08-15 Danny Smith + + * mingwex/fopen64.c: Move. + * mingwex/fseeko64.c: Move. + * mingwex/ftello64.c: Move. + * mingwex/lseek64.c: Move. + * mingwex/stdio/fopen64.c: To here. + * mingwex/stdio/fseeko64.c: To here. + * mingwex/stdio/ftello64.c: To here. + * mingwex/stdio/lseek64.c: To here. + +2004-08-15 Danny Smith + + * profile/gmon.c [__MINGW32__]: Include string.h for + memset prototype. + +2004-08-08 Christopher Faylor + + * mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change. + +2004-08-07 Danny Smith + + * include/complex.h: Remove __attribute__ ((const)) from + transcendantal and trig functions. Replace __attribute__ ((const)) + with __MINGW_ATTRIB_CONST on other declarations. + +2004-08-07 Danny Smith + + * include/wchar.h: Reorganize, avoid including other headers. + +2004-08-07 Danny Smith + + * include/string.h (memchr, memcmp, strchr, strcmp, strcspn) + (strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure + attribute. + +2004-07-30 Danny Smith + + * include/dirent.h (struct _wdirent): Remove obsolete comment. + +2004-07-30 Danny Smith + + * include/string.h: Revert 2004-07-26 additions of + __ATTRIBUTE_PURE. + +2004-07-28 Danny Smith + + * mingwex/math/powl.c (powl): Revert change of 2004-02-01. + (__convert_inf_to_maxnum): New.static inline. + (reducl): Use it to protect against Inf - Inf. + (__fast_ldexpl): New function. Use in lieu of ldexpl. + +2004-07-27 Danny Smith + + * mingwex/math/expl.c (expl): Move body of code to new static + function __expl, removing tests for +/-Inf. Extern function + expl calls __expl after testing for max, min log thresholds. + +2004-07-26 Danny Smith + + * mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field + * mingwex/stdio/vfscanf.c: Likewise. + * mingwex/stdio/vswscanf.c: Likewise. + * mingwex/stdio/vfwscanf.c: Likewise. + +2004-07-26 Danny Smith + + * include/_mingw.h: Use only two underscores to uglify + __MINGW_ATTRIB_* macros. + * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens. + * include/setjmp.h: Likewise. + + * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent + string functions. + (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC. + +2004-07-25 Danny Smith + + * include/string.h: Group wide string functions together, + and protect with _WSTRING_DEFINED. + +2004-07-25 Danny Smith + + * include/_mingw.h (__MINGW_ATTR_*): Replace with + __MINGW_ATTRIB_*. + * include/stdlib.h (_ATTRIB_NORETURN): Replace with + __MINGW_ATTRIB_NORETURN, throughout. + (malloc): Declare with __MINGW_ATTRIB_MALLOC. + (calloc): Likewise. + (abs): Declare with __MINGW_ATTRIB_CONST. + (labs): Likewise. + (div): Likewise. + (ldiv): Likewise. + (lldiv): Likewise. + (_rotl): Likewise. + (_rotr): Likewise. + (_lrotl): Likewise. + (_lrotr): Likewise. + * include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN. + +2004-07-21 Danny Smith + + * include/_mingw.h: Undefine __attribute__. + (__MINGW_ATTR_NORETURN): New define. + (__MINGW_ATTR_CONST): New define. + (__MINGW_ATTR_MALLOC): New define. + (__MINGW_ATTR_PURE): New define. + (_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy + expansions. + +2004-07-19 Danny Smith + + * include/time.h (__time64_t): Add missing ';'. + +2004-07-17 Danny Smith + + * include/time.h (wcsftime): Move out of !__STRICT_ANSI + block. + (struct tm): Protect with _TM_DEFINED. + +2004-07-17 Christopher Faylor + + * Makefile.in (CC): Strip inappropriate include file settings from any + passed-in CC. + +2004-07-15 "dgun" + + * include/complex.h (conj): Correct typo in prototype. + +2004-07-15 Danny Smith + + * include/math.h: Add pragma GCC system_header. + +2004-07-15 Danny Smith + + * mingwex/complex/carg.c: New file. + * mingwex/Makefile.in: Really add carg.o to libmingwex.a. + +2004-07-15 Corinna Vinschen + + * Makefile.in (INCLUDES): Temporarily revert previous change. + * mingwex/Makefile,in (INCLUDES): Ditto. + * profile/Makefile,in (INCLUDES): Ditto. + * mingwex/Makefile,in: Drop carg.o dependency. + +2004-07-14 Christopher Faylor + + * mingwex/fwide.c: Include to resolve FILE usage. + +2004-07-14 Danny Smith + + * Makefile.in (INCLUDES): Designate $(srcdir)/../include as a + system dir. + * mingwex/Makefile,in (INCLUDES): Ditto. + * profile/Makefile,in (INCLUDES): Ditto. + + * mingwex/Makefile,in: Add carg.o to libmingwex.a. + +2004-07-13 Earnie Boyd + + * Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it + for C modules. + * mingwex/Makefile.in: Ditto. + * profile/Makefile.in: Ditto. + * include/limits.h: Change to new file header preamble. + * include/_mingw.h: Increment minor version for 3.4 release. + * Makefile.in: Ditto. + +2004-07-12 Danny Smith + + * mingwex/math/cephes_emath.h (__etens): Remove declaration. + +2004-07-11 Danny Smith + + * include/unistd.h (ftruncate): Add inline definition. + * mingwex/ftruncate.c: New file. + * mingwex/Makefile.in: Add ftruncate.o to libmingwex.a. + +2004-07-10 Danny Smith + + * include/time.h: Do not include sys/types.h. + +2004-07-02 Danny Smith + + * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c, + (MATH_OBJS): Remove pow,o. + * include/math.h (pow): Declare with _CRTIMP. + Add comment on how to avoid excess precision problems. + +2004-06-30 Danny Smith + + * include/stdio.h (__mingw_fseeko64): Add prototype. + * mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition. + (__mingw_fwrite): Handle huge files. + +2004-06-30 Kees Zeelenberg + Danny Smith + + * include/stdio.h (fopen64): Add inline function. + (fseeko64): Add prototype. + (ftello64): Add inline function. + * include/io.h (lseek64): Add inline function. + * include/sys/types (off64_t): Add typedef. + (fpos64_t): Add typedef. + * mingwex/fopen64.c: New file. + * mingwex/fseeko64.c: New file. + * mingwex/ftello64.c: New file. + * mingwex/lseek64.c: New file. + * mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c, + fseeko.64.c, ftello64.c, lseek64.c. + (STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o. + +2004-04-24 Luke Dunstan + + * include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines. + +2004-04-22 Earnie Boyd + + * DISCLAIMER: Add words about "free to use". + * README: Modify "Win32 runtime" to "Microsoft C Runtime". + * Makefile.in (SRCDIST_FILES): Add DISCLAIMER and CONTRIBUTORS. + (inst_docdir): New variable. + (INSTDOCS): Ditto. + (FLAGS_TO_PASS): Include inst_docdir. + (install-dirs): Add inst_docdir. + (install): Add loop for INSTDOCS. + * strncasecmp.c: Reword copyright and disclaimer. Move Contributors + section to CONTRIBUTORS file. Remove RCS tags. + +2004-04-22 Danny Smith + + * mingwex/math/lround.c: Rewrite. + * mingwex/math/lroundf.c: Rewrite. + * mingwex/math/lroundl.c: Rewrite. + * mingwex/math/llround.c: Rewrite. + * mingwex/math/llroundf.c: Rewrite. + * mingwex/math/llroundl.c: Rewrite. + +2004-04-20 Earnie Boyd + + * CONTRIBUTORS: New file. + * DISCLAIMER: Ditto. + * CRT_noglob.c: Reword copyright and disclaimer. Move Contributors + section to CONTRIBUTORS file. Remove RCS tags. + * CRTFmode.c: Ditto. + * CRTglob.c: Ditto. + * CRTinit.c: Ditto. + * crt1.c: Ditto. + * crtdll.dev: Ditto. + * dllcrt1.c: Ditto. + * dllmain.c: Ditto. + * gccmain.c: Ditto. + * init.c: Ditto. + * isascii.c: Ditto. + * iscsym.c: Ditto. + * iscsymf.c: Ditto. + * jamfile: Ditto. + * main.c: Ditto. + * msvcrt.def.in: Ditto. + * strcasecmp.c: Ditto. + * toascii.c: Ditto. + * wcscmpi.c: Ditto. + * include/assert.h: Ditto. + * include/conio.h: Ditto. + * include/ctype.h: Ditto. + * include/direct.h: Ditto. + * include/dirent.h: Ditto. + * include/dos.h: Ditto. + * include/errno.h: Ditto. + * include/excpt.h: Ditto. + * include/fcntl.h: Ditto. + * include/float.h: Ditto. + * include/io.h: Ditto. + * include/locale.h: Ditto. + * include/malloc.h: Ditto. + * include/math.h: Ditto. + * include/process.h: Ditto. + * include/setjmp.h: Ditto. + * include/share.h: Ditto. + * include/signal.h: Ditto. + * include/stdio.h: Ditto. + * include/stdlib.h: Ditto. + * include/string.h: Ditto. + * include/tchar.h: Ditto. + * include/time.h: Ditto. + * include/wchar.h: Ditto. + * include/sys/locking.h: Ditto. + * include/sys/param.h: Ditto. + * include/sys/stat.h: Ditto. + * include/sys/timeb.h: Ditto. + * include/sys/types.h: Ditto. + * include/sys/utime.h: Ditto. + * mingwex/dirent.c: Ditto. + +2004-04-19 Earnie Boyd + + * include/_mingw.h: Revert to primary release 3 and increment minor + release to 3. + * Makefile.in (VERSION): Ditto. + +2004-04-01 Danny Smith + + * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to + _fmode if not __MSVCRT__. + +2004-03-30 Danny Smith + + * include/io.h: (_findfirst): Correct prototype. + +2004-03-30 Hans Leidekker + + * include/io.h: (_findnext, _findclose): Correct prototype. + +2004-03-28 Hans Leidekker + + * include/math.h (FP_*): Add defines. + +2004-03-29 Danny Smith + + * mingwex/math/round.c: Rewrite. + * mingwex/math/roundf.c: Rewrite. + * mingwex/math/roundl.c: Rewrite. + +2004-03-25 Danny Smith + + * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600. + * include/time.h (__time64_t): Add typedef. + (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. + (_ctime64): Likewise. + (_wctime64): Likewise. + (_gmtime64): Likewise. + (_localtime64): Likewise. + (wcsftime): Move into _WTIME_DEFINED block. + Regroup non-ANSI prototypes. + * include/io.h: Include . + (__finddata64_t): Add struct definition. + (__wfinddata64_t): Likewise. + (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. + (_findnext64): Likewise. + (_wfindfirst64): Likewise. + (_wfindnext64): Likewise. + * include/sys/timeb.h (__timeb64): Add struct definition. + (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. + * include/sys/utime.h (__utimbuf64): Add struct definition. + (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. + (_futime64): Likewise. + (_wutime64): Likewise. + * include/sys/stat.h (__stat64): Add struct definition. + (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. + (_stat64): Likewise. + (_wstat64): Likwise. + * include/sys/types.h (__time64_t): Add typedef. + * include/wchar.h (__wfinddata64_t): Add structure definition. + (__stat64): Likewise. + (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. + (_wfindfirst64): Likewise. + (_wfindnext64): Likewise. + (_wutime64): Likewise. + (_wstat64): Likwise. + * include/malloc.h (_aligned_free): Add prototype for + __MSVCRT_VERSION__ >= 0x0700. + (_aligned_malloc): Likewise. + (_aligned_offset_malloc): Likewise. + (_aligned_offset_realloc): Likewise. + (_aligned_realloc): Likewise. + * include/string.h (_wcserror): Add prototype for + __MSVCRT_VERSION__ >= 0x0700. + (__wcserror): Likewise. + * include/math.h (_set_SSE2_enable): Add prototype for + __MSVCRT_VERSION__ >= 0x0701. + +2004-03-25 Danny Smith + + * include/stdio.h (_fsopen): Add prototype. + * include/tchar.h (_tfsopen): Add defines. + Thanks to "Gerik" + +2004-03-19 Danny Smith + + * msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10), + msvcr70.dll, and msvcr71.dll. + * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant + using basename of output def file. + +2004-03-13 Danny Smith + + * include/malloc.h: Remove __STRICT_ANSI__ guard. + +2004-03-11 Brian Keener + + * include/process.h: Remove the #endif associated with removal of + __STRICT_ANSI__ guard from non-ANSI header. + +2004-03-10 Danny Smith + + * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header. + * include/direct.h: Ditto. + * include/dirent.h: Ditto. + * include/dos.h: Ditto. + * include/excpt.h: Ditto. + * inlude/fcntl,h + * include/io.h: Ditto. + * inlude/mem.h: Ditto. + * include/memory.h: Ditto. + * include/process.h: Ditto. + * inlude/search.h: Ditto. + * include/share.h: Ditto. + * include/unistd.h: Ditto. + * include/sys/fcntl.h: Ditto. + * include/file.h: Ditto. + * include/sys/locking.h: Ditto. + * include/sys/param.h: Ditto. + * include/sys/stat,h + * include/sys/time.h: Ditto. + * include/sys/timeb.h: Ditto. + * include/sys/types.h: Ditto. + * include/sys/unistd.h: Ditto. + * include/sys/utime.h: Ditto. + +2004-02-21 Danny Smith + + * include/_mingw.h (__UNUSED_PARAM): Define macro. + * include/wchar.h (fwide): Use it. + (mbsinit): Ditto. + +2004-02-05 Danny Smith + + * mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per + NetBSD getopt_long.c. + +2004-02-05 Danny Smith + + * mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error + codes and handling of special chars. + +2004-02-02 Danny Smith + + * include/stdio.h (feof): Add inlined definition. + (ferror): Ditto. + +2004-02-01 Danny Smith + + * mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale") + directly, rather than via scabnl. + +2004-02-01 Danny Smith + + * mingwex/math/powl.c (powl): Return infinity if + extended precision multiplication of x by log2(y) + overflows. + +2004-01-31 Danny Smith + + * mingwex/math/cephes_emath.h (__enan_64): Fix thinko. + (__enan_NI16): Fix another one. + (__enan_NBITS): Tidy. + +2004-01-16 Danny Smith + + * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit + types. (Thanks to John Maddock for report.) + +2004-01-14 Greg Chicares + + * include/tchar.h (_puttchar): Define. + +2003-12-13 Danny Smith + + * include/stdio.h:(_fileno): Define macro version after both + fileno and _fileno functions declared. + + * include/stdio.h (_rmtmp, rmtmp): Add prototypes. + * moldnames.def.in (rmtmp) Add stub. + +2003-11-27 Dimitry Sibiryakov + + * include/signal.h (SIG_SGE, SIG_ACK): Add defines. + +2003-10-27 Danny Smith + + * include/math.h: Guard ISO C99 additions with __cplusplus + not __GLIBCPP__. + +2003-10-21 Danny Smith + + * include/_mingw.h: Define __attribute__((x)) to nothing + if not __GNUC__. + +2003-10-21 Danny Smith + + * include/complex.h: New file. + * mingwex/complex: New directory. + * mingwex/complex/cabs.c: New file. + * mingwex/complex/cacos.c: New file. + * mingwex/complex/cacosh.c: New file. + * mingwex/complex/casin.c: New file. + * mingwex/complex/casinh.c: New file. + * mingwex/complex/catan.c: New file. + * mingwex/complex/catanh.c: New file. + * mingwex/complex/ccos.c: New file. + * mingwex/complex/ccosh.c: New file. + * mingwex/complex/cexp.c: New file. + * mingwex/complex/cimag.c: New file. + * mingwex/complex/clog.c: New file. + * mingwex/complex/cpow.c: New file. + * mingwex/complex/cproj.c: New file. + * mingwex/complex/creal.c: New file. + * mingwex/complex/csin.c: New file. + * mingwex/complex/csinh.c: New file. + * mingwex/complex/csqrt.c: New file. + * mingwex/complex/ctan.c: New file. + * mingwex/complex/ctanh.c: New file. + * mingwex/Makefile.in (COMPLEX_DISTFILES): New list of + files. + (dist): Use it. + (COMPLEX_OBJS): New list of objects. + (LIB_OBJS): Include it in the library. + +2003-10-21 Danny Smith + + * include/math.h (cabs): Remove non-ISO prototype. + +2003-10-21 Danny Smith + + * mingwex/math/cephes_mconf.h (NAN, NANF, NANL): + Use GCC __builtin's if available. + (INFINITY, INFINITYF, INFINITYL): Likewise. + +2003-10-21 Danny Smith + + * mingwex/math/s_erf.c (erf): Set errno to ERANGE if + beyond approximation limit. + * mingwex/math/sf_erf.c (erff): Likewise. + +2003-10-17 Danny Smith + + * include/stdio.h (getc): Cast result to unsigned char before + return. + (putc): Likewise + (getchar): Likewise. + (putchar): Likewise. + Thanks to M.Fujii + +2003-10-10 Earnie Boyd + + * include/_mingw.h: Increment version to 3.2. + * Makefile.in: Ditto. + +2003-10-10 Earnie Boyd + + * include/sys/types.h: Revert last change. + +2003-10-10 Earnie Boyd + + * include/sys/types.h (ssize_t): Correct the definition. + +2003-10-03 Danny Smith + + * include/stdio.h (_filbuf): Add prototype. + (_flsbuf): Add prototype. + (getc): Add inline version. + (putc): Likewise. + (getchar): Likewise. + (putchar): Likewise. + +2003-10-03 Danny Smith + + * mingwex/dirent.c (_treaddir): Reset errno to 0 if end + of directory. + +2003-09-29 Danny Smith + + * include/stdlib.h: Guard non-ISO functions with + !__STRICT_ANSI__, throughout. + +2003-09-24 Danny Smith + + * include/io.h (_fileno): Remove prototype. + (fileno): Likewise. + (FILENAME_MAX): Define, if needed. + Don't include . + * include/stdio.h (FILENAME_MAX): Protect against + prior definition. + (_fileno): Define macro implementation. + (fileno): Likewise. + +2003-09-24 Danny Smith + + * include/inttypes.h: Include _mingw.h. + +2003-09-24 Danny Smith + + * include/_mingw.h (__CRT_INLINE): Define. + * include/ctype.h: Replace 'extern inline' with __CRT_INLINE, + throughout + * include/inttypes.h: Likewise. + * include/math.h: Likewise. + * include/stdio.h: Likewise. + * include/stdlib.h: Likewise. + * include/string.h: Likewise. + * include/wchar.h: Likewise. + * include/wctype.h: Likewise. + +2003-09-22 Roland Schwingel + + * mingwex/dirent.c (_topendir): Allocate enough memory for + DIR struct in UNICODE case too. + +2003-09-15 Earnie Boyd + + * include/_mingw.h: Increment version to 3.2. + * Makefile.in: Ditto. + +2003-07-03 Earnie Boyd + + * config.guess, config.sub: Update with versions from ftp.gnu.org. + +2003-07-03 Danny Smith + + * mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint. + * mingwex/math/truncf.c (truncf): Likewise. + * mingwex/math/truncl.c (truncl): Likewise. + * mingwex/math/modff.c (modff): Likewise. + * mingwex/math/modfl.c (modfl): Likewise. + +2003-07-03 Danny Smith + + * include/search.h: New file. + * include/stdlib.h: Add comment about qsort, bsearch in + search.h. + * test_headers.c: Include search.h. + * moldname.def.in (lfind, lsearch): Add. + +2003-07-03 Danny Smith + + * include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve, + _execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp, + execve, execvpe, spawnve, spawnvpe): Const-ify all the char params. + +2003-07-01 Earnie Boyd + + * include/_mingw.h (small, hyper): Change to __small and __hyper to + avoid user space name conflicts. + +2003-07-01 Earnie Boyd + + * include/_mingw.h (__int32, __int16, __int8, small, hyper): Define. + Note: Also added to w32api/include/basetyps.h. + * mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small): + Rename to Small (case difference). + +2003-06-18 Earnie Boyd + + * include/dirent.h (dirent): Make d_name and array instead of a pointer. + * mingwex/dirent.c: Modifications througout to fill d_name array. + * Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and + libmsvcr71, including debug versions. + (msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets. + +2003-06-17 Danny Smith + + * msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle, + __pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias): + Mark as DATA. + Thanks to: Aaron W LaFramboise + +2003-05-30 Sascha Sommer + + * include/sys/types.h (_ssize_t, ssize_t): Add typedefs. + +2003-05-15 Danny Smith + + * include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block, + but still protect inline definition with __STRICT_ANSI__. + +2003-05-14 Danny Smith + + * string_old.c: Remove, splitting into... + * strcasecmp.c: New file. + * strncasecmp.c: New file. + * wscmpi.c : New file. + * ctype_old.c: Remove, splitting into... + * isascii.c: New file. + * iscsym.c: New file. + * iscsymf.c: New file. + * toascii.c: New file. + * Makefile.in (MOLD_OBJS): Adjust. + (SRCDIST_FILES): Adjust. + +2003-05-13 Danny Smith + + * include/math.h (fabs) : Remove inline definition. + (fabsf): Likewise. + (fabsl): Likewise. + +2003-05-06 Earnie Boyd + + * include/_mingw.h: Change version to 3.0 + * Makefile.in: Ditto. + +2003-05-06 Earnie Boyd + + * configure.in (W32API_INCLUDE): Need the -I switch in the value. + * mingwex/configure.in (W32API_INCLUDE): Ditto. + * profile/configure.in (W32API_INCLUDE): Ditto. + +2003-05-06 Earnie Boyd + + * configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites + of multiply defined symbols if the symbols is defined locally. E.G.: + A local definition of malloc causes this problem. + * configure: Regenerate. + * profile/Makefile.in (W32API_INCLUDE): New variable. + (ALL_CFLAGS): Use W32API_INCLUDE value. + (ALL_CXXFLAGS): Ditto. + (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS. + Thanks to Jeff Bonggren . + * profile/configure.in (W32API_INCLUDE): Set default value. + * profile/configure: Regenerate. + * mingwex/Makefile.in (W32API_INCLUDE): New variable. + (ALL_CFLAGS): Use W32API-INCLUDE value. + (ALL_CXXFLAGS): Ditto. + * mingwex/configure.in (W32API_INCLUDE): Set default value. + * mingwex/configure: Regenerate. + +2003-05-05 Earnie Boyd + + * Makefile.in (W32API_INCLUDE): New variable. + (ALL_CFLAGS): Use W32API_INCLUDE value. + (ALL_CXXFLAGS): Ditto. + * configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values. + (W32API_INCLUDE): Set default value. + * configure: Regenerate. + +2003-04-11 Earnie Boyd + + * configure.in (LIBM_A): Define for cygwin target. + * configure (LIBM_A): Ditto. + +2003-04-07 Danny Smith + + * include/time.h (strftime): Remove duplicate declaration. + +2003-04-01 Danny Smith + + * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP. + +2003-03-16 Danny Smith + + * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning. + * mingwex/strtoimax.c (strtoimax): Likewise. + * mingwex/wcstoimax.c (wcstoimax): Likewise. + * mingwex/wtoll.c (wtoll): Remove unnecessary ';' + * mingwex/fesentenv.c: Include float.h. + * mingwex/math/powl.c: Eliminate type punning/strict aliasing + warning. + * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in + constants. + * mingwex/math/tgammal.c: Likewise. + +2003-03-16 Danny Smith + + * include/utime.h: New file, forwarding to sys/utime.h. + +2003-03-16 Danny Smith + + * include/sys/param.h (MAXPATHLEN): Define. + +2003-03-16 Danny Smith + + * include/tchar.h: Ansi-fy a comment. + +2003-03-16 Danny Smith + + * profile/profile.h (mcount): Use __builtin_return_address + rather than inline __asm statements. + * profile/Makefile.in: Remove special rule for mcount.o + Specify dependencies for mcount.o profil.o gmon.o. + +2003-03-10 Danny Smith + + * include/stdlib.h (qsort): Remove const from first parm. + Thanks to: Tien-Ren Chen + +2003-03-03 Christopher Faylor + + * mingwex/getopt.c: Refresh from NetBSD sources. + +2003-03-03 Danny Smith + + * mingwex/getopt.c: New file, copied from cygwin srcs. + * include/getopt.h: New file, copied from cygwin srcs. + * include/unistd.h: Include getopt.h. + * mingwex/Makefile.in (DISTFILES): Add getopt.c. + (POSIX_OBJS): Add getopt.o. + +2003-03-02 Danny Smith + + * include/stdio.h (vscanf): Add prototype. + (vfscanf): Ditto. + (vsscanf): Ditto. + (vwscanf): Ditto. + (vfwscanf): Ditto. + (vswscanf): Ditto. + * include/wchar.h (vwscanf): Add prototype. + (vfwscanf): Ditto. + (vswscanf): Ditto. + * mingwex/snprintf.c: Move to mingwex/stdio. + * mingwex/vsnprintf.c: Ditto. + * mingwex/snwprintf.c: Ditto. + * mingwex/vsnwprintf.c: Ditto. + * mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio + (STDIO_DISTFILES): Add. + (DISTFILES): Adjust. + (STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects. + (LIB_OBJS): Adjust. + (dist): Adjust. + +2003-03-02 Aaron W LaFramboise + + * mingwex/stdio: New directory + * mingwex/stdio/vfscanf.c: New file. + * mingwex/stdio/vfwscanf.c: New file. + * mingwex/stdio/vscanf.c: New file. + * mingwex/stdio/vsscanf.c: New file. + * mingwex/stdio/vswscanf.c: New file. + * mingwex/stdio/vwscanf.c: New file. + +2003-02-25 Earnie Boyd + + * Makefile.in (libmsvcrt20.a): Remove target and dependencies. + (libmsvcrt40.a): Ditto. + +2003-02-21 Earnie Boyd + + Thanks to David Frasier who inspired portions of + this patch. + * Makefile.in (libmsvcrtd.a): Add target library. + (libmoldnamed.a): Ditto. + (msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in + template to create. + ($(srcdir)): Remove explicit reference for depencies of object targets. + * moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def, + msvcrt20.def, msvcrt40.def: Remove. + * msvcrt.def.in: New file (Copy of previous msvcrt.def). + +2003-02-20 Corinna Vinschen + + * Makefile.in: Make sure libmingwex.a from current build tree is used. + +2003-02-14 Christopher Faylor + + * profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to + ensure -mno-cygwin where appropriate. Filter out -O2. + +2003-02-13 Danny Smith + + * profile/Makefile.in (mcount.o): Use -O1 optimization + switch to compile. + +2003-02-10 Danny Smith + + * include/math.h: Remove _CRTIMP from pow() prototype, + unless __NO_ISOCEXT. + +2003-02-10 Danny Smith + + * mingwex/math/cephes_emath.h: Don't redefine INFINITY. + +2003-02-10 Danny Smith + + * include/_mingw.h (_CRTIMP): Define for __GNUC__ if + __declspec(dllimport) supported. + (__cdecl): Define if not already defined. + (__stdcall): Likewise. + * include/dirent.h: Qualify fuctions with __cdecl. + * include/fenv.h: Likewise. + * include/inttypes.h: Likewise. + * include/assert.h: Qualify fuctions with __cdecl. Qualify + CRT dll imports with _CRTIMP. + * include/conio.h: Likewise. + * include/ctype.h: Likewise. + * include/direct.h: Likewise. + * include/dos.h: Likewise. + * include/errno.h: Likewise. + * include/float.h: Likewise. + * include/io.h: Likewise. + * include/locale.h: Likewise. + * include/malloc.h: Likewise. + * include/math.h: Likewise. + * include/mbctype.h: Likewise. + * include/mbstring.h: Likewise. + * include/process.h: Likewise. + * include/setjmp.h: Likewise. + * include/signal.h: Likewise. + * include/stdio.h: Likewise. + * include/stdlib.h: Likewise. + * include/string.h: Likewise. + * include/time.h: Likewise. + * include/wchar.h: Likewise. + * include/wctype.h: Likewise. + * include/sys/stat.h: Likewise. + * include/sys/timeb.h: Likewise. + * include/sys/utime.h: Likewise. + + * include/ctype.h: Guard ctype inlines with __NO_INLINE__. + * include/wctype.h: Guard wctype inlines with __NO_INLINE__. + + * include/stdio.h (__VALIST): Guard against prior definition. + +2003-02-08 Earnie Boyd + + * include/_mingw.h: Change version to 3.0 + * Makefile.in: Ditto. + +2003-02-08 Earnie Boyd + + * include/stdlib.h: Make words after #endif a comment. + +2003-02-07 Danny Smith + + * include/locale.h: Include stddef.h for definition of NULL. + +2003-01-26 Danny Smith + + * include/math.h (tgamma): Correct typo in comment. + +2003-01-26 Danny Smith + + * mingwex/mingw-fseek.c (INLINE): Remove define. + (__mingw_is_win9x): Remove static inline function. + (_mingw_fwrite): Use _osver instead of __mingw_is_win9x. + +2003-01-11 Danny Smith + + * mingwex/math/llround.c: Correct function name and + change return value to long long. + +2003-01-07 Danny Smith + + * include/ctype.h (__isascii): Don't cast arg to unsigned. + (iswascii): Likewise. Correct mask. + * include/wctype.h (iswascii): Don't cast arg to unsigned. + Correct mask + +2003-01-03 Danny Smith + + * include/stdlib.h (_osver, _winver, _winmajor, + _winminor): Declare as direct imports from dll if + __DECLSPEC_SUPPORTED. + +2003-01-01 Danny Smith + + * pseudo-reloc.c (do_pseudo_reloc): Make static. + * pseudo-reloc-list.c: New file. + * crt1.c (_pei386_runtime_relocator): Declare. + (__mingw_CRTStartup): Call it. + * dllcrt1.c (_pei386_runtime_relocator): Declare. + (DllMainCRTStartup): Call it. + * Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to + libmingw32.a. + +2003-01-01 Egor Duda + + * pseudo-reloc.c: New file. + +2002-12-20 Earnie Boyd + + * include/_mingw.h: Increment version to 2.4. + Makefile.in: Ditto. + +2002-12-12 Earnie Boyd + + * include/malloc.h (_alloca): Add definition. + (alloca): Ditto. + +2002-12-08 Danny Smith + + * mingwex/math/s_erf.c: New file. + * mingwex/math/sf_erf.c: New file. + * mingwex/Makefile.in (MATH_DISTFILES): Add new files. + (MATH_OBJS): Add new objects. + * include/math.h (erf[f]): Add prototypes. + (erfc[f]): Add prototypes. + +2002-12-07 Danny Smith + + * include/math.h: Add traditional/XOPEN math constants. + +2002-11-27 Danny Smith + + * mingwex/math/lgamma.c: New file. + * mingwex/math/lgammaf.c: New file. + * mingwex/math/lgammal.c: New file. + * mingwex/math/tgamma.c: New file. + * mingwex/math/tgammaf.c: New file. + * mingwex/math/tgammal.c: New file. + * mingwex/math/cephes_mconf (polevlf): Add float version. + (p1evlf): Likewise. + Define _CEPHES_USE_ERRNO. + * mingwex/Makefile.in (MATH_DISTFILES): Add new files. + (MATH_OBJS): Add new objects. + * include/math.h (lgamma[fl]): Add prototypes. + (tgamma[fl]): Add prototypes. + +2002-11-26 Danny Smith + + * mingwex/strtold.c: New file. + * mingwex/wcstold.c: New file. + * mingwex/ldtoa.c: New file. + * mingwex/math/cephes_emath.h: New file. + * mingwex/math/cephes_emath.c: New file. + * mingwex/Makefile.in (DISTFILES): Add new files. + (MATH_DISTFILES): Ditto. + (STDLIB_OBJS): New. Define as strtold.c wcstold.c. + (MATH_OBJS): Add cephes_emath.o. + (LIB_OBJS): Add $(STDLIB_OBJS). + * include/stdlib.h (strtold, wcstold): Add prototypes. + * include/wchar.h (wcstold): Add prototype. + +2002-11-09 Danny Smith + + * include/math.h (sqrt): Remove inline definition. + (sqrtf): Replace inline definition with prototype. + (sqrtl): Likewise. + * mingwex/math/sqrtf.c (sqrtf): Set domain error if + argument less than zero. + * mingwex/math/sqrtf.c (sqrtl): Likewise. + +2002-10-30 Guido Serassio + + * include/stdio.h (_getmaxstdio): Add prototype. + (_setmaxstdio): Likewise. + +2002-10-19 Kang Li + + * include/fcntl.h (O_SEQUENTIAL): Correct typo. + +2002-10-19 Danny Smith + + * crt1.c: Define new macro __IN_MINGW_RUNTIME before including + stdlib.h. + Define WIN32_MEAN_AND_LEAN before including windows.h + * include/stdlib.h (_fmode): Protect declaration as dllimported + variable with __IN_MINGW_RUNTIME. + +2002-10-19 Igor Pechtchanski + + * crt1.c: Include stdlib.h. + +2002-10-19 Danny Smith + + * Makefile.in (CRT0S): Add txtmode.o binmode.o. + (MINGW_OBJS): Add txtmode.o. + (SRCDIST_FILES): Add txtmode.c binmode.c. + crt1.c: Don't include fcntrl.h, stdlib.h. + (_fmode): Declare, without dllimport attribute. + (__p__fmode): Declare access function for dll's _fmode. + (_mingw32_init_fmode): Sync dll _fmode with staticly linked + _fmode for app. + * txtmode.c: New file. + * binmode.c: New file. + * samples/fmode/test2.c: New file. + * samples/fmode/jamfile: Add test2.exe target. + +2002-10-11 Danny Smith + + * include/stdint.h (INT64_C, UINT64_C ): Append suffix to let + macros work with C89. + (INTMAX_C, UINTMAX_C): Likewise. + +2002-10-11 Danny Smith + + * include/string.h (strcasecmp): Make extern __inline__. + (strncasecmp): Likewise. + (wcscmpi): Likewise. + +2002-10-08 Heiko Gerdau + + * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd. + _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE + mappings. + +2002-10-07 Danny Smith + + * mingwex/math/powil.c: Rename powil to __powil. + * mingwex/math/powl.c: Adjust declaration and call + to __powil. Remove comment on powil. + * mingwex/math/powi.c: New file. + * mingwex/math/powif.c: New file. + * mingwex/math/pow.c: New file. + * mingwex/math/cephes_mconf.h. Add double and float + versions of constants. + (polevl): Add double precision function. + (p1evl): Likewise. + * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c, + powi.c, powif.c. + (MATH_OBJS): Add pow.o, powi.o, powif.o. + +2002-10-03 Danny Smith + + * include/cytpe.h (_imp____mbcur_max): Add missing ';'. + (_imp____mbcur_max_dll): Likewise. + +2002-10-03 Danny Smith + + * include/fcntl.h (_fmode): Remove declarations and + compatibility defines. + (_setmode, setmode): Remove prototypes. + * include/stdlib (_fmode): Add declarations and + compatibility defines. Change type to int. + * include/io.h (_setmode, setmode): Add prototypes. + * samples/fmode/all.c: Adjust includes. + * samples/fmode/test.c: Likewise. + * crt1.c (_CRT_fmode): Declare as int. + * CRTfmode.c (_CRT_fmode): Likewise. + + * include/stdlib: Remove comment about MB_CUR_MAX. + +2002-10-02 Danny Smith + + * include/stdlib.h (_imp____mbcur_max): Add missing ';'. + (_imp____mbcur_max_dll): Likewise. + +2002-09-18 Danny Smith + + * mingwex/math/files.txt: Remove inadvertantly added file. + +2002-09-18 Danny Smith + + * include/string.h (_strerror): Move into #ifndef + __STRICT_ANSI__ block. + +2002-09-17 Danny Smith + + * include/time.h (__need_NULL): Define before including + stddef.h. Thanks to: Rüdiger Dehmel . + +2002-09-16 Ranjit Matthew + + * include/stdio.h: Correct comment about directory separator. + +2002-09-12 Danny Smith + + * include/sys/time.h (timeval): Add struct definition and + associated macros (copied from w32api/include/winsock.h). + +2002-09-05 Earnie Boyd + + * include/_mingw.h: Increment version to 2.3. + Makefile.in: Ditto. + +2002-09-05 Earnie Boyd + + * mingwex/fegetenv.c: Change to \n line endings. + * mingwex/vsnprintf.c: Ditto. + * mingwex/vsnwprintf.c: Ditto. + +2002-09-02 Danny Smith + + * mingwex/math/hypotl.c: Replace with version based on cephes + library. + +2002-08-28 Danny Smith + + * include/sys/param.h: Add ENDIAN defines. + * test_headers.c: Include sys/param.h. + +2002-08-28 Danny Smith + + * test_headers.c: Don't include varargs.h. + * Makefile.in (test_headers): Don't use -std=xx + with -xc++. + +2002-08-21 Earnie Boyd + + * include/sys/param.h: New File. + +2002-08-21 Danny Smith + + * include/math.h (asm): Change to __asm__ throughout. + Expose ISO C99 functions if __GLIPCPP__. + (hypotf): Use hypot, not _hypot in stub. + +2002-08-20 Danny Smith + + * include/tchar.h: Ansi-fy another comment. + +2002-08-20 Danny Smith + + * include/tchar.h: Ansi-fy comment. + +2002-08-20 Danny Smith + + * test_headers.c : New file. + * Makefile.in (test_headers): New target, using it, + (SRCDIST_FILES): Distribute it. + +2002-08-20 Earnie Boyd + + * include/_mingw.h: Increment version to 2.2. + Makefile.in: Ditto. + +2002-08-14 Earnie Boyd + + * include/unistd.h: Add include of process.h. + +2002-08-03 Danny Smith + + * include/stdio.h (_fcloseall): Add prototype. + +2002-07-29 Danny Smith + + * include/tchar.h (_tfdopen): Correct typo. + +2002-07-29 Danny Smith + + * moldname.def.in (chgsign,scalb,finite,fpclass,logb, + nextafter): Add non-underscored stubs. + * moldname-msvcrt.def: Regenerate. + * moldname-crtdll.def: Regenerate. + * mingwex/math: New directory. + * mingwex/rint.c: Move to mingwex/math. + * mingwex/rintf.c: Ditto. + * mingwex/rintl.c: Ditto. + * mingwex/round.c: Ditto. + * mingwex/roundf.c: Ditto. + * mingwex/roundl.c: Ditto. + * mingwex/rint.c: Ditto. + * mingwex/rintf.c: Ditto. + * mingwex/rintl.c: Ditto. + * mingwex/trunc.c: Ditto. + * mingwex/truncf.c: Ditto. + * mingwex/truncl.c: Ditto. + * mingwex/signbit.c: Ditto. + * mingwex/signbitf.c: Ditto. + * mingwex/signbitl.c: Ditto. + * mingwex/copysignl.S: Ditto. + * mingwex/fdim.c: Ditto. + * mingwex/fdimf.c: Ditto. + * mingwex/fdiml.c: Ditto. + * mingwex/fmin.c: Ditto. + * mingwex/fminf.c: Ditto. + * mingwex/fminl.c: Ditto. + * mingwex/fmax.c: Ditto. + * mingwex/fmaxf.c: Ditto. + * mingwex/fmaxl.c: Ditto. + * mingwex/fma.c: Ditto. + * mingwex/fmaf.c: Ditto. + * mingwex/fmal.c: Ditto. + * mingwex/fpclassify.c: Ditto. + * mingwex/fpclassifyl.c: Ditto. + * mingwex/fpclassifyl.c: Ditto. + * mingwex/isnan.c: Ditto. + * mingwex/isnanf.c: Ditto. + * mingwex/isnanl.c: Ditto. + * mingwex/fucom.c: Ditto. + * mingwex/fp_consts.c: Ditto. Split out float and long double + definitions. + * mingwex/math_stubs.c: Remove. + * mingwex/log2.c: Remove. Replaced by math/log2.S + * mingwex/log2f.c: Remove. Replaced by math/log2f.S + * mingwex/log2l.c: Remove. Replaced by math/log2l.S + * mingwex/math/acosf.c : New file. + * mingwex/math/acosl.c: New file. + * mingwex/math/asinf.c: New file. + * mingwex/math/asinl.c: New file. + * mingwex/math/atan2f.c: New file. + * mingwex/math/atan2l.c: New file. + * mingwex/math/atanf.c: New file. + * mingwex/math/atanl.c: New file. + * mingwex/math/cbrt.c: New file. + * mingwex/math/cbrtf.c: New file. + * mingwex/math/cbrtl.c: New file. + * mingwex/math/ceilf.S: New file. + * mingwex/math/ceill.S: New file. + * mingwex/math/cephes_ld.h: New file. + * mingwex/math/copysign.S: New file. + * mingwex/math/copysignf.S: New file. + * mingwex/math/cosf.S: New file. + * mingwex/math/coshf.c: New file. + * mingwex/math/coshl.c: New file. + * mingwex/math/cosl.S: New file. + * mingwex/math/exp2.S: New file. + * mingwex/math/exp2f.S: New file. + * mingwex/math/exp2l.S: New file. + * mingwex/math/expf.c: New file. + * mingwex/math/expl.c: New file. + * mingwex/math/fabs.c: New file. + * mingwex/math/fabsf.c: New file. + * mingwex/math/fabsl.c: New file. + * mingwex/math/floorf.S: New file. + * mingwex/math/floorl.S: New file. + * mingwex/math/fmodf.c: New file. + * mingwex/math/fmodl.c: New file. + * mingwex/math/fp_consts.h: Ditto. + * mingwex/math/fp_constsf.c: Ditto. + * mingwex/math/fp_constsl.c: Ditto. + * mingwex/math/frexpf.c: New file. + * mingwex/math/frexpl.S: New file. + * mingwex/math/hypotf.c: New file. + * mingwex/math/hypotl.c: New file. + * mingwex/math/ilogb.S: New file. + * mingwex/math/ilogbf.S: New file. + * mingwex/math/ilogbl.S: New file. + * mingwex/math/ldexpf.c: New file. + * mingwex/math/ldexpl.c: New file. + * mingwex/math/llrint.c: New file. + * mingwex/math/llrintf.c: New file. + * mingwex/math/llrintl.c: New file. + * mingwex/math/llround.c: New file. + * mingwex/math/llroundf.c: New file. + * mingwex/math/llroundl.c: New file. + * mingwex/math/log10f.S: New file. + * mingwex/math/log10l.S: New file. + * mingwex/math/log1p.S: New file. + * mingwex/math/log1pf.S: New file. + * mingwex/math/log1pl.S: New file. + * mingwex/math/log2.S: New file. + * mingwex/math/log2f.S: New file. + * mingwex/math/log2l.S: New file. + * mingwex/math/logb.c: New file. + * mingwex/math/logbf.c: New file. + * mingwex/math/logbl.c: New file. + * mingwex/math/logf.S: New file. + * mingwex/math/logl.S: New file. + * mingwex/math/lrint.c: New file. + * mingwex/math/lrintf.c: New file. + * mingwex/math/lrintl.c: New file. + * mingwex/math/lround.c: New file. + * mingwex/math/lroundf.c: New file. + * mingwex/math/lroundl.c: New file. + * mingwex/math/modff.c: New file. + * mingwex/math/modfl.c: New file. + * mingwex/math/nearbyint.S: New file. + * mingwex/math/nearbyintf.S: New file. + * mingwex/math/nearbyintl.S: New file. + * mingwex/math/nextafterf.c: New file. + * mingwex/math/powf.c: New file. + * mingwex/math/powl.c: New file. + * mingwex/math/powil.c: New file. + * mingwex/math/remainder.S: New file. + * mingwex/math/remainderf.S: New file. + * mingwex/math/remainderl.S: New file. + * mingwex/math/remquo.S: New file. + * mingwex/math/remquof.S: New file. + * mingwex/math/remquol.S: New file. + * mingwex/math/scalbn.S: New file. + * mingwex/math/scalbnf.S: New file. + * mingwex/math/scalbnl.S: New file. + * mingwex/math/sinf.S: New file. + * mingwex/math/sinhf.c: New file. + * mingwex/math/sinhl.c: New file. + * mingwex/math/sinl.S: New file. + * mingwex/math/sqrt.c: New file. + * mingwex/math/sqrtf.c: New file. + * mingwex/math/sqrtl.c: New file. + * mingwex/math/tanf.S: New file. + * mingwex/math/tanhf.c: New file. + * mingwex/math/tanhl.c: New file. + * mingwex/math/tanl.S: New file. + * mingwex/Makefile.in: Adjust VPATH for source files in + mingwex/math. + Adjust MATH_OBJS. + Add MATH_DISTFILES and use it to build source distro. + * include/ math.h: Add protypes for new functions and + reorganise to reflect ANSI,C99 status. + +2002-06-19 Danny Smith + + * include/tchar.h (_getts): Define as _getws for _UNICODE. + (_putts): Define as _putws for _UNICODE. + Thanks to: Tomasz Pona for report. + +2002-06-18 Danny Smith + + * include/float.h: #include_next before header guard. + +2002-06-18 Casper S. Hornstrup + + * include/_mingw.h (__MINGW_IMPORT): Check for prior definition before + defining. + * include/excpt.h (): Include windef.h not windows.h. + * include/fcntl.h (_O_SHORT_LIVED): Add define. + (_chmod): Add prototype. + (_creat): Correct prototype. + (SH_DENY*): Rename defines to _SH_DENY*. + (SH_DENY*): Add Non-ANSI names for _SH_DENY*. + include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG, + _IOAPPEND): Add defines. + (_wfindfirst): Correct prototype. + (_wfdopen): Add prototype. + * include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add + prototypes. + * include/string.h (_mbschr, _mbstok, _mbsncat): Remove + prototypes. + (_wcsdup): Correct prototype. + * include/mbstring.h: Remove comments about _mbschr, _mbstok, + _mbsncat being in string.h. + * include/wchar.h (_wfindfirst): Correct prototype. + * include/tchar.h (_tfdopen): Add _UNICODE mappings. + +2002-06-15 Earnie Boyd + + * include/_mingw.h: Increment to version 2.1. + * Makefile.in: Ditto. + +2002-06-15 Earnie Boyd + + * Makefile.in (conf_prefix): New variable. + (dist_prefix): Ditto. Conditionally set to $(conf_prefix). + (bindist): Use dist_prefix. + +2002-06-13 Danny Smith + + * include/_mingw.h: Increment version to 2.0. + * Makefile.in: Ditto. + + Merge in mingwex branch. + + 2002-06-11 Danny Smith + * include/math.h (fdim, fdimf, fdiml): Add prototypes. + * mingwex/fdim.c: New file. + * mingwex/fdimf.c: New file. + * mingwex/fdiml.c: New file. + * mingwex/Makefile.in (DISTFILES): Add fdim.c, fdimf.c, + fdiml.c. + (MATHOBJS):Add fdim.o, fdimf.o. fdiml.o. + + 2002-05-23 Danny Smith + * mingwex/Makefile.in (DISTFILES): Add truncf.c, truncl.c. + + 2002-05-22 Danny Smith + * mingwex/isnanl.c: New file. + + 2002-05-21 Danny Smith + * include/stdint.h: Include stddef.h to get + wchar_t and wint_t. + (WINT_MAX): Define to ((wint_t)-1). + + 2002-05-21 Danny Smith + * include/wctype.h: Replace 'inline' with '__inline__'. + * include/inttypes.h: Likewise. + + 2002-05-16 Danny Smith + * include/_mingw.h (__MINGW_IMPORT): Put extern at start + to avoid warnings. Thanks to: Oscar Fuentes . + + 2002-05-16 Danny Smith + * mingwex/snprintf.c: Split out vsnprintf to.... + * mingwex/vsnprintf.c: New file. + * mingwex/snwprintf.c: Split out vsnwprintf to... + * mingwex/vsnwprintf.c: New file. + * mingwex/Makefile.in: Adjust DISTFILES and STDIO_STUB_OBJS. + + 2002-05-15 Pascal Obry + * include/dirent.h (DIR): Change dd_stat type to int. + (_WDIR): Likewise. + + 2002-05-07 Danny Smith + * include/stdio.h (vsnprintf): Change inline to __inline__; + (vsnwprintf): Likewise. + * include/wchar.h (vsnwprintf): Likewise. + (wcstof): Likewise. + (fwide): Likewise. + (mbsinit): Likewise. + + 2002-04-29 Danny Smith + Change FP default precison from 53 to 64-bit mantissa. + * Makefile.in (CRT0S): Add CRT_fp8.o. + (MINGW_OBJS): Replace CRT_fp8.o with CRT_fp10.o. + * include/float.h: Replace standard float.h defines with + #include_next to use GCC's defines. Adjust comments + to reflect change. + + 2002-04-26 Danny Smith + * include/dos.h: Change prefix "__imp_" to "_imp__" for + __GNUC__ without __DECLSPEC_SUPPORTED. + * include/fnctl.h: Likewise. + * include/math.h: Likewise. + * include/stdio.h: Likewise. + * include/stdlib.h: Likewise. + * include/time.h: Likewise. + * include/wctype.h: Likewise. + * include/ctype.h: Likewise. + + 2002-04-26 Danny Smith + Add atexit support for dlls. + * crt1.c (atexit): Force thunk to _imp__atexit. + (_onexit): Force thunk to _imp___onexit. + * dllcrt1.c (DllMainCRTStartup): Initialise private atexit + table on DLL_PROCESS_ATTACH, clean it up on DLL_PROCESS_DETACH. + (__dll_exit): New function to run atexit-registered functions + and flush output buffers on DLL_PROCESS_DETACH or failed + DLL_PROCESS_ATTACH. + (atexit): Force use of private atexit table via _dllonexit, + (_onexit): New function. Force use of private atexit table via + _dllonexit, + * msvcrt.def (atexit, _onexit): Add DATA keyword so that only + _imp_<_symbol> is visible in import lib. + * msvcrt20.def: Likewise. + * msvcrt40.def: Likewise. + * crtdll.def: Likewise. + + 2002-04-26 Danny Smith + * include/fenv.h: Change header guard macro to _FENV_H_. + (fenv_t, fexcept_t): Move into block protected by + #ifndef RC_INVOKED. + Cleanup some whitespace. + * include/inttypes.h: Change header guard macro to + _INTTYPES_H_. + + 2002-04-26 Danny Smith + * include/math.h (copysignl): Declare. + * mingwex/Makefile.in (DISTFILES): Add copysignl.S. + (MATHOBJS):Add copysignl.o. + + 2002-04-24 Danny Smith + * include/math.h (__signbitl, __isnanl): Declare. + + 2002-04-24 Danny Smith + * include/math.h (nanl, __fpcassifyl, fminl, fmaxl, rintl, + roundl, truncl, fmal, log2l): Declare. + Protect C99 declarations with _STDC_VERSION__ >= 199901L) + || !defined __STRICT_ANSI__. + * mingwex/fmax.c (fmax): Call __isnan, not _isnan. + * mingwex/fmin.c (fmin): Likewise. + * mingwex/fmaxf.c (fmaxf): Call __isnanf, not _isnan. + * mingwex/fminf.c (fminf): Likewise. + * mingwex/fmaxl.c: New file. + * mingwex/fminl.c: New file. + * mingwex/fpclassify.c (__fpclassifyf): Split out to ... + * mingwex/fpclassifyf.c: New file. + * mingwex/fpclassifyl.c: New file. + * mingwex/rint.c (rintf): Split out to... + * mingwex/rintf.c: New file. + * mingwex/rintl.c: New file. + * mingwex/round.c (roundf): Split out to... + * mingwex/roundf.c: New file. + * mingwex/roundl.c: New file. + * mingwex/trunc.c (truncf): Split out to... + * mingwex/truncf.c: New file. + * mingwex/truncl.c: New file. + * mingwex/signbit.c (signbitf): Split out to... + * mingwex/signbitf.c: New file. + * mingwex/signbitl.c: New file. + * mingwex/fmal.c: New file. + * mingwex/copysignl.S: New file. + * mingwex/log2l.c: New file. + * mingwex/fp_consts.c: Add nanl definition. + Comment out unused constants. + * mingwex/Makefile.in (DISTFILES): Add fmaxl.c, fminl.c, + fpclassifyf.c, fpclassifyl.c, rintf.c, rintl.c, roundf.c, + roundl.c, truncf.c truncl.c, signbitf.c signbitl.c, + fmal.c, log2l.c + (MATHOBJS): Add fmaxl.o, fminl.o, fpclassifyf.o, + fpclassifyl.o, rintf.o, rintl.o, roundf.o, roundl.o, + truncf.o truncl.o, signbitf.o signbitl.o, fmal.o, + log2l.o. + * mingwex/snwprintf.c (snwprintf, vsnwprintf): Correct typo. + + 2002-04-23 Danny Smith + Make wide char versions of opendir and friends. + * include/dirent.h (_wdirent, _WDIR): Define wide versions of + struct dirent, DIR. + (_wopendir,_wreaddir,_wclosedir,_wrewinddir,_wtelldir, + _wseekdir): Add prototypes for wide versions of corresponding + standard functions. + * include/tchar.h; Add _UNICODE mappings for dirent.h + structures and functions. + * mingwex/dirent.c: Make _UNICODE neutral. + * mingwex/wdirent.c: New file to define _UNICODE before + including dirent.c. + * mingwex/Makefile.in (DISTFILES): Add wdirent.c. + (POSIX_OBJS): Add wdirent.o. + (wdirent.o): Specify dependency on dirent.c as well as + wdirent.c. + * samples/dirent/wtest.c: New file, wide version of test.c. + + 2002-04-17 Danny Smith + * Makefile.in (INCLUDES): Add "-iwithprefixbefore include" to + ensure gcc include dir is searched despite -nostdinc. + * profile/Makefile.in (INCLUDES): Likewise. + * mingwex/Makefile.in (INCLUDES): Likewise. + * include/stdarg.h: Replace with stub that just guards the + real gcc system header with #ifndef RC_INVOKED + * include/varargs.h: Likewise. + * include/stddef.h: Likewise. + * include/stdio.h: Include stdarg.h after defining + __need___va_list. + (__VALIST): Define as __gnuc_va_list if __GNUC__, else char*. + Replace va_list with __VALIST throughout. + + 2002-04-17 Danny Smith + * crt1.c: Revert changes of 2002-04-16. Use _fpreset again. + * msvcrt.def (_fpreset): Mark as DATA so that only + _imp___fpreset is exported. + * msvcrt20.def (_fpreset): Likewise. + * msvcrt40.def (_fpreset): Likewise. + * crtdll.def (_fpreset): Likewise. + * CRT_fp10.c (_fpreset): Overide library _fpreset with one + that calls fninit. + (fpreset): Add alias. + (__CRT_PC): Delete definition. _fpreset does it now. + * CRT_fp8.c (_fpreset): Force use of library _imp___fpreset. + (fpreset): Add alias. + (__CRT_PC): Delete definition. + * moldname.def.in: Comment out fpreset. + * moldname-msvcrt.def: Regenerate. + * moldname-crtdll.def: Regenerate. + * include/fenv.h (FE_DFL_ENV): Define as (fenv_t*)0. + * mingwex/fesetenv.c (FE_DFL_ENV): Use it to set environment + with the _fpreset determined by startup CRT_fp object. + + 2002-04-16 Danny Smith + * CRT_fp8.c: New file. + * CRT_fp10.c: New file. + * crt1.c (__CRT_PC) Declare. + (__CRT_fesetenv): New static function, using _CRT_PC. + (__mingw_CRTStartup):Use __CRT_fesetenv instead of _fpreset. + (_gnu_exception_handler): Likewise. + * Makefile.in (CRT0S): Add CRT_fp10.o. + (MINGW_OBJS): Add CRT_fp8.o. + (SRCDIST_FILES): Add CRT_fp8.c, CRT_fp10.c. + Add CRT_fp8.o, CRT_fp10.o dependancies. + * include/float.h (_fpreset): Expand comment. + * include/fenv.h (FE_PC64_ENV): New define for Intel x87 + (extended precison) environmemt. + (FE_PC53_ENV): New define for MSVCRT default environmemt. + (FE_DFL_ENV): Define as FE_PC53_ENV. + * mingwex/fesetenv.c: Use FE_PC53_ENV, FE_PC64_ENV to determine + precision control for default environment. + + * include/math.h: Fix long comment line. + * profile/configure.in (CRT0S): Set to both gcrt1.o and gcrt2.o + for mingw. + * profile/configure: Regenerate. + + 2002-04-12 Danny Smith + * mingwex/Makefile.in (DISTFILES): Add suffix to wcstof.c. + + 2002-04-10 Danny Smith + * mingwex/mingw-fseek.c: New file, based on Mumit Khan + mingw-local patch to binutils. + Sun Nov 7 04:27:07 1999 Mumit Khan + (__mingw_fseek): New function to work around Win9x f/lseek bug. + (__mingw_fwrite): Likewise. + (__mingw_is_win9x): New helper function. + * include/stdio.h (__USE_MINGW_FSEEK): New define,guarding... + (__mingw_fseek): New prototype and define to replace fseek. + (__mingw_fwrite): New prototype and define to replace fwrite. + * mingwex/Makefile.in: Add mingw-fseek.o to libmingwex.a. + * moldname-crtdll.def: Remove CR from end of line. + * moldname-msvcrt.def: Ditto. + + 2002-04-09 Danny Smith + * profile/configure.in (CRT0S): Configure name of gcrt?.o + based on target, building gcrt0.o for cygwin -mno-cygwin. + * profile/configure: Regenerate. + * profile/Makefile.in (CRT0S): Use name from configure. + (gcrt0.o): New rule. + (ALL_CRT0S): New define, used to cleanup all gcrt?.o's. + + 2002-04-04 Danny Smith + * include/math.h (_controlfp, _control87, _clearfp, _statusfp, _fpreset, + _fpecode): Remove prototypes copied from float.h. + (nan, nanf): Move into block protected against RC_INVOKED + and __cplusplus. + * include/stdlib.h (_Exit): Change from static inline to + extern inline. + * mingwex/_Exit.c : New file. + * mingwex/Makefile.in: Add _Exit.o to libmingwex.a. + + 2002-04-04 Danny Smith + Add libgmon.a and libmingwex.a for cygwin -mno-cygwin. + * configure.in (SUBDIRS): Add profile and mingwex to cygwin target. + (configdirs): Likewise. + (LIBGMON_A): Define for cygwin target as well. + * configure: Regenerate. + * profile/configure.in (THREAD_DLL): Remove define. + (LIBM_A): Remove define. + (LIBGMON_A): Define for cygwin target as well. + * profile/configure: Regenerate. + * profile/makefile.in (install): Install to inst_libdir and + inst_includedir. + * mingwex/makefile.in (CFLAGS): Move -fomit-frame-pointer to... + (OPTFLAGS): New define. + (ALL_CFLAGS): Add $(OPTFLAGS). + (ALL_CXXFLAGS): Same. + (.c.o:): Remove ALL_CXXFLAGS. + + 2002-03-29 Danny Smith + * include/stdint.h: Add missing newline at eof. + * include/stdio.h (snprintf): Add prototype. + (vsnprintf): Add prototype and inline definition. + (snwprintf): Add prototype. + (vsnwprintf): Add prototype and inline definition. + * include/wchar.h (snwprintf): Add prototype. + (vsnwprintf): Add prototype and inline definition. + * mingwex/Makefile.in: Add snprintf.o, snwprintf.o + to libmingwex.a. + * mingwex/snprintf.c: New file. + * mingwex/snwprintf.c: New file. + + 2002-03-22 Danny Smith + * configure.in: Add mingwex as SUBDIRS and configdirs. + * configure: Regenerate. + * Makefile.in (MINGW_OBJS): Remove dirent.o. + (SRC_DIST_FILES): Remove dirent.c. + * dirent.c: Remove. + * include/stdlib.h (_Exit): Add static inline + function. + (struct lldiv_t): Define. + (lldiv): Add prototype. + (llabs): Add extern inline function. + (strtoll,strtoull): Add prototypes. + (wcstol, wcstoul, wcstod): Group together. + (strtof, wcstof): Add extern inline definitions. + (atoll,lltoa,ulltoa, wtoll, lltow ulltow): Add prototypes + and extern inline definitions. + * include/wchar.h (fwide, wcstoll,wcstoull, wmemchr + wmemcmp, wmemcpy, wmemmove, wmemset. mbsinit): Add + prototypes. + (wcstol, wcstoul,wcstod): Copy prototypes from stdlib.h. + (wcstof): Add extern inline definition. + * include/math.h (nan, nanf): Add prototypes. + (NAN, INFINITE): Define constants. + (fpclassify, isnan ,signbit): Add macros and supporting float + and double functions. + (isfinite, isinf, isnormal): Add macros. + (isgreater, isless, isgreaterequal, islessequal,islessgreater): + Add macros. + (rint, rintf, round, roundf, trunc. truncf, fmax, fmaxf, + fmin, fminf, fma, fmaf, log2, log2f): Add prototypes. + (copysign, logb, nextafter, scalb): Add prototypes and + inline stubs for underscored versions in msvcrt.dll. + * include/inttypes.h: New file. + * include/fenv.h: New file + + Add new mingwex subdir and files. + * mingwex: New directory. + * mingwex/Makefile.in: New file. + * mingwex/configure.in: New file. + * mingwex/configure: Generate. + * mingwex/dirent.c: Moved here from parent dir. + * mingwex/atoll.c: New file. + * mingwex/feclearexcept.c: New file. + * mingwex/fegetenv.c: New file. + * mingwex/fegetexceptflag.c: New file. + * mingwex/fegetround.c: New file. + * mingwex/feholdexcept.c: New file. + * mingwex/feraiseexcept.c: New file. + * mingwex/fesetenv.c: New file. + * mingwex/fesetexceptflag.c: New file. + * mingwex/fesetround.o: New file. + * mingwex/fetestexcept.c: New file. + * mingwex/feupdateenv.c: New file. + * mingwex/fma.S: New file. + * mingwex/fmaf.S: New file. + * mingwex/fmax.c: New file. + * mingwex/fmaxf.c: New file. + * mingwex/fmin.c: New file. + * mingwex/fminf.c: New file. + * mingwex/fp_consts.c: New file. + * mingwex/fpclassify.c: New file. + * mingwex/fucom.c: New file. + * mingwex/fwide.c: New file. + * mingwex/imaxabs.c: New file. + * mingwex/imaxdiv.c: New file. + * mingwex/isnan.c: New file. + * mingwex/isnanf.c: New file. + * mingwex/lltoa.c: New file. + * mingwex/lltow.c: New file. + * mingwex/log2.c: New file. + * mingwex/log2f.c: New file. + * mingwex/math_stubs.c: New file. + * mingwex/mbsinit.c: New file. + * mingwex/rint.c: New file. + * mingwex/round.c: New file. + * mingwex/signbit.c: New file. + * mingwex/sitest.c: New file. + * mingwex/strtof.c: New file. + * mingwex/strtoimax.c: New file. + * mingwex/strtoumax.c: New file. + * mingwex/testwmem.c: New file. + * mingwex/trunc.c: New file. + * mingwex/ulltoa.c: New file. + * mingwex/ulltow.c: New file. + * mingwex/wcstof.c: New file. + * mingwex/wcstoimax.c: New file. + * mingwex/wcstoumax.c: New file. + * mingwex/wmemchr.c: New file. + * mingwex/wmemcmp.c: New file. + * mingwex/wmemcpy.c: New file. + * mingwex/wmemmove.c: New file. + * mingwex/wmemset.c: New file. + * mingwex/wtoll.c: New file. + +2002-04-20 Danny Smith + + * include/mbstring.h: New file. + * include/mbctype.h: New file. + +2002-04-20 Danny Smith + + * include/tchar.h (__TEXT): Make same as define in + w32api/include/winnt.h. + +2002-04-20 Danny Smith + + * include/tchar.h (_tputenv): Add UNICODE mappings. + (_tsearchenv): Likewise. + (_tmakepath): Likewise. + (_tsplitpath): Likewise. + (_tfullpath): Likewise. + +2002-04-18 Pascal Obry + + * dirent.c (opendir): Convert given pathname to + absolute pathname. + +2002-04-09 Earnie Boyd + + * include/_mingw.h: Increment version. + * Makefile.in: Ditto. + +2002-04-09 Earnie Boyd + + * moldname-crtdll.def: Remove CR from end of line. + * moldname-msvcrt.def: Ditto. + * Makefile.in: Use bzip2 compression for Cygwin target. + +2002-04-04 Danny Smith + + * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW, + TLOSS, PLOSS): Move oldname defines back, following + the underscored names. + +2002-03-29 Danny Smith + + * include/stdio.h (_snwprintf): Correct spelling. + (_vsnwprintf): Likewise. + * include/wchar.h (_snwprintf): Correct spelling. + (_vsnwprintf): Likewise. + +2002-03-26 Danny Smith + + * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL__). + (wpopen): Add if !(__CRTDLL__). + * Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to + preserve comments. + (moldname-crtdll.def rule): Likewise. + * moldname-msvcrt.def: Regenerate. + * moldname-crtdll.def: Regenerate. + * include/stdio.h (wpopen):Use prototype, not a define. + (_swnprintf): Add prototype. + (_vswnprintf): Likewise. + Tidy up whitespace. + * include/wchar.h (_swnprintf): Add prototype. + (_vswnprintf): Likewise. + Tidy up whitespace. + +2002-01-28 Danny Smith + + * include/malloc.h (_heapinfo): Correct structure definition. + (_USEDENTRY,_FREEENTRY): Add defines. + Add comment on platform support for _heap* functions. + (_get_sbh_threshold): Add prototype. + (_set_sbh_threshold): Likewise. + (_expand): Likewise. + +2002-01-25 Danny Smith + + * profile/profil.c: Update copyright info. + * profile/profil.h: Likewise. + * profile/gcrt0.c: Likewise. + +2002-01-25 Pascal Obry + + * profile/profil.h (PROFADDR): Cast idx to unsigned long long to + avoid overflow. + * profile/gmon.c: Define bzero as memset if mingw32. + (monstartup): Use it. + +2002-01-25 Danny Smith + + * include/tchar.h (_TCHAR): Add missing ;. + +2002-01-25 Danny Smith + + * include/tchar.h (_TCHAR): Add typedefs. + +2002-01-16 Danny Smith + + * include/stdlib.h (_onexit_t): Add typedef. + (_onexit): Add prototype. + +2002-01-12 Danny Smith + + * msvcrt.def: Revert accidental change. + * include/stdlib.h: Ditto. + +2001-12-07 Earnie Boyd + + * Makefile.in: Increment VERSION. + * include/_mingw.h: Ditto. + +2001-12-05 Earnie Boyd + + * include/strings.h: New File. + +2001-12-02 Danny Smith + + Apply patches from: + 2001-06-21 Mumit Khan + + * include/math.h (_FPCLASS* ): Add defines from float.h. + (IEEE recommended functions): Add declarations from float.h. + * include/float.h (_FPCLASS* ): Protect against redefinition. + +2001-11-29 Wu Yongwei + + * include/_mingw.h,assert.h,conio.h,ctype.h,dir.h,direct.h + dirent.h,dos.h,errno.h,excpt.h,fcntl.h,float.h,io.h, + limits.h,locale.h,malloc.h,math.h,process.h,setjmp.h, + share.h,signal.h,stdarg.h,stddef.h,stdint.h,stdio.h, + stdlib.h,string.h,tchar.h,time.h,varargs.h,wchar.h, + wctype.h,sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h: + Correct spelling of "disclaimed" in comments. + * include/excpt.h: Another spelling correction. + +2001-11-08 Robert Collins + + * include/errno.h: Fix "errno is not a prototype" warning. + +2001-11-07 Danny Smith + + * include/ctype.h (tolower, toupper,_tolower,_toupper): Comment + differences between ANSI and non-ANSI versions. + (_ctype[],_pctype): Declare vars. + (__ISCTYPE): New helper macro using _pctype. + (is* ctype functions): Use __ISCTYPE to define inline versions. + (_toupper, _tolower, __isascii, __toascii, __iscsym, __iscsymf): + Inline definitions. + (isw* ctype functions): Inline definitions. + * include/wctype.h (_ctype[],_pctype): Declare vars. + (isw* ctype functions): Inline definitions. + + +2001-11-06 Danny Smith + + * include/float.h (_clearfp, _statusfp, _fpreset, fpreset, + __fpecode): Use __STDC__ prototypes. + + +2001-11-06 Thomas Pfaff + + * mthr_stub.c (__mingwthr_remove_key_dtor) New. + * mthr_init.c (DllMain) Run dtors if a process terminates. + * mthr.c (__mingwthr_add_key_dtor) Removed. + (___mingwthr_add_key_dtor) New. + (___mingwthr_remove_key_dtor) New. + (__mingwthr_run_key_dtors) Complete rewrite. + (__mingwthr_remove_key_dtor) New. + +2001-11-05 Egor Duda + + * Makefile.in: Delete unused executable after creating base-files. + +2001-11-06 Danny Smith + + * include/errno.h (_errno): Use __STDC__ prototype. + Thanks to: Jim Barton. + +2001-11-04 "stefan" + + * include/sys/locking.h (_LK_UNLCK, LK_UNLCK): Correct names. + +2001-10-30 Danny Smith + + * include/io.h (_commit): Add declaration. + Thanks to: "stefan" + +2001-10-30 Danny Smith + + * include/sys/stat.h: Make S_IS* macros safer. + +2001-10-27 Danny Smith + + * include/stdlib.h (EXIT_FAILURE): Change value to 1. + +2001-10-12 Danny Smith + + * include/stdlib.h (__p__environ, __p__wenviron): Use + __STDC__ prototypes. + +2001-09-19 Earnie Boyd + + * Makefile.in: Remove the /usr from the install target. + (VERSION): Increment. + include/_mingw.h: Ditto. + +2001-09-17 Earnie Boyd + + * Makefile.in: Increment version. + * include/_mingw.h: Ditto. + +2001-09-10 Earnie Boyd + + * dossh: Remove inadvertantly imported file. + +2001-09-10 Danny Smith + + * dirent.c (opendir): Use GetFileAttributes rather than stat + to determine if input arg is dir. + +2001-08-29 Danny Smith + + * include/stdarg.h (va_list): Typedef as __builtin_va_list if + __GNUC__ >= 3. + * include/varargs.h (va_list): Ditto. + * include/stdio.h (va_list): Ditto. + +2001-08-01 Danny Smith + + * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__. + * include/stdio.h (_IORW): Change constant to 0x0080. + (TMP_MAX): Add new define. + (_P_tmpdir): Ditto. + (_wP_tmpdir): Ditto. + (L_tmpnam): Change constant to 16. + +2001-06-28 Danny Smith + + * include/malloc.h: Fix non-ANSI comment after #endif. + +2001-06-11 Danny Smith + + * profile/configure.in: Make msvcrt.dll version default. + * profile/makefile.in: Build both gcrt1.o and gcrt2.o. + * provile/configure: Regenerate. + +2001-06-11 Mattia Barbon + + * include/stdio.h (swscanf): Make first arugument const. + * include/wchar.h (swscanf): Ditto. + * include/tchar.h (_tfopen): New _UNICODE define. + (_tgetenv): Ditto. + (_tsetlocale): Ditto. + +2001-06-04 Earnie Boyd + + * profile/Makefile.in (mkinstalldirs): Correct relative path. + +2001-06-04 Earnie Boyd + + * include/_mingw.h: Change version to 1.0. + Makefile.in: Ditto. + +2000-02-21 Earnie Boyd + + * include/tchar.h: (__TEXT): Remove undef. + (_TEXT): Ditto. + (_T): Ditto. + +Fri Feb 2 10:34:07 2001 Earnie Boyd + + * include/tchar.h: (__TEXT): Add private macro. + (_TEXT): Modify definition to use __TEXT. + (_T): Ditto. + This change allows the passing of a MACRO as an argument and have that + MACRO resolved first. + Thanks to: Eric PAIRE + +Wed Jan 31 17:12:51 2001 Earnie Boyd + + * Makefile.in: Increment version to 0.5 + * include/_mingw.h: Increment minor version + +Tue Jan 30 13:01:01 2001 Earnie Boyd + + * include/assert.h: (assert): Remove ; from end of definition + Thanks to: AJ Reins + +Tue Jan 30 07:31:22 2001 Earnie Boyd + + * include/time.h: (CLOCKS_PER_SEC): Type cast the constant. + Thanks to: Cosmin Truta + +Mon Jan 29 14:03:07 2001 Earnie Boyd + + * time.h: (CLOCKS_PER_SEC) Change from FP to integer constant. + +Sun Jan 28 13:01:08 2001 Earnie Boyd + + * include/wchar.h: The 2001.01.18 Change was incorrect. The functions + are actually C functions. These functions are resolved via the + -lmsvcp60 library and comments were placed in the header. + +2001-01-28 Danny Smith + + * include/stdlib.h (__p__pgmptr): add prototype. + (__p__wpgmptr): likewise. + (_pgmptr_dll): move declaration from dos.h. + (_wpgmptr_dll): likewise. + (_pgmptr): conditional define (MSVCT/CRTDLL). + (_wpgmptr): likewise. + * include/dos.h (_base*_dll variables): declare only for CRTDLL. + (_os*_dll variables): likewise. + (_pgmptr_dll): remove declaration and associated defines to stdlib.h. + (_wpgmptr_dll): likewise. + +2001-01-22 Danny Smith + + * include/stdint.h: New file. + +Thu Jan 18 10:33:01 2001 Earnie Boyd + + * include/wchar.h: Protect prototypes only declared in the C++ STL + from being declared unless __cplusplus is defined. + +Tue Jan 16 11:37:31 2001 Earnie Boyd + + * include/stdlib.h: Apply Danny Smith patch 102730 + 2000-12-09 Danny Smith + (_wgetenv) Correction to return type. + +Tue Jan 16 09:41:41 2001 Earnie Boyd + + * include/locale.h: Apply Danny Smith patch 101834 + 2000-11-23 Danny Smith + (LC_MIN) Add definition. + (LC_MAX) ditto. + (_wsetlocale) Add prototype. + +2000-11-29 Earnie Boyd + + * Makefile.in: eliminate the need for RUNTIME and CRT_ID. + Always build crt1.o, dllcrt1.o, crt2.o and dllcrt2.o. + Create a libcoldname.a for the oldname library for CRTDLL. + Restrict libmoldname.a for the oldname library for MSVCRT. + * configure.in: eliminate setting RUNTIME and CRT_ID variables. + Restructure the $target_os case logic. + Always name the MinGW thread dll helper mingwm. + Change Cygwin's HEADER_SUBDIR value from mingw32 to mingw. + * configure: regenerate. + +2000-11-22 Earnie Boyd + + * Makefile.in: Fix bindist target to distribute the correct files. + Remove the use of SNAPSHOT variable and test SNAPDATE instead. + Set SNAPDATE within the snapshot target on recursive call to $(MAKE). + +2000-11-21 Earnie Boyd + + * Makefile.in: Add missing line continuation `\' for $(SUBDIRS) target. + Add variables and targets to control binary and source distributions. + Add variables and targets to control snapshot distribution. + * profile/gmon.h: Add missing #endif for #ifndef. + * profile/ChangeLog: Merge entries here and remove. + * profile/Makefile.in: Add variables and targets to control + distribution. + * README: Add. + * TODO: ditto. + * config.guess: ditto. + * config.sub: ditto. + * mkinstalldirs: ditto. + * install-sh: ditto. + * configure: regenerate. + * profile/configure: ditto. + +2000-11-20 Earnie Boyd + + * Merge in changes from + 2000-10-23 Danny Smith + * include/direct.h: add guard around MSVCRT-only prototytpes + * include/io.h: add __int64 struct definitions and function prototypes; + add guard for MSVCRT-only prototypes + * include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX + * include/stdio.h: add wchar function prototypes (__MSVCRT__); + put wchar functions together to make sync with wchar.h easier + * include/stdlib.h: add wide char functions (__MSVCRT__) + * include/string.h: add string collation functions ( __MSVCRT__) + * include/sys/stat.h: add __int64 struct and function ( __MSVCRT__) + * include/tchar.h: add macros and macro function definitions + * include/wchar.h: add wide char function prototypes ( __MSVCRT__ ); + enclose more functions in __MSVCRT__ guard; + some oldname wide char function prototypes #if (0)'d + * profile/gmon.h: add guard around BSD-ish typedefs + +Mon Nov 20 18:58:12 2000 Christopher Faylor + + * Makefile.in: Use a different variable name for subdirectory since the + previous one was used by the top level make. + +Sun Nov 19 20:50:51 2000 Christopher Faylor + + * Makefile.in: Install mingw stuff in a subdirectory if building under + cygwin. + +Sat Jun 17 21:48:23 2000 Christopher Faylor + + * Makefile.in (subdirs): Eliminate for loop. + +Sat Jun 17 18:27:59 2000 Christopher Faylor + + * Makefile.in (subdirs): Previous change did not fix problem in + broken shells. + +Sat Jun 17 13:49:12 2000 Christopher Faylor + + * Makefile.in: Avoid installing dll if we're cross building and the + cross-host system isn't a Windows system. + * configure.in: Detect cross-hosting situation and set appropriate + variables in Makefile.in. + * configure: Regenerate. + +Wed Apr 19 13:10:54 2000 Christopher Faylor + + * configure.in: Change HEADER_SUBDIR to mingw32. + * configure: Regenerate. + +Mon Apr 10 17:24:28 2000 Christopher Faylor + + * include/string.h: Use proper prototype for _strerror. + +2000-03-30 Mumit Khan + + * Makefile.in (subdirs): Workaround for broken shells. + +2000-02-03 Mumit Khan + + * Snapshot 2000-02-03. + + * include/{assert.h, conio.h, ctype.h, direct.h, dirent.h, fcntl.h, + float.h, io.h, locale.h, malloc.h, math.h, process.h, signal.h, + stdio.h, stdlib.h, string.h, time.h, wctype.h, sys/stat.h, + sys/timeb.h, sys/utime.h}: Remove parameter names to avoid namespace + pollution. + + * Makefile.in (all): Build CRT0S first. + (libmingwthrd.a): Remove thread support DLL from dependency. + +2000-01-21 Mumit Khan + + * Snapshot 2000-01-21. + +2000-01-20 Mumit Khan + + Merge in changes from Cygwin: + * configure.in (HEADER_SUBDIRS): New variable. Substitute. + (SUBDIRS): Likewise. + * Makefile.in (HEADER_SUBDIRS): New variable. + (install): Use to install Mingw headers to a subdirectory if building + under Cygwin. + (DLL_CC_STUFF): Add DLL entry point. + * configure: Regenerate. + +2000-01-19 Mumit Khan + + * include/stdio.h (fsetpos): Fix prototype. + (fpos_t): Fix for MSVCRT. + * include/float.h (fpreset): Add prototype. + * include/limits.h: Define UINT_MAX, USHRT_MAX and ULONG_MAX with + constant values. + * include/time.h: Don't define tzname as a macro for CRTDLL, and + export using libmoldname.a. + * crtdll.def: Add DATA tags. + * msvcrt.def: Likewise. + * moldname.def.in: Likewise. Add fpreset. Export tzname for + both MSVCRT and CRTDLL. + * moldname-crtdll.def: Regenerate. + * moldname-msvcrt.def: Regenerate. + +Tue Dec 21 02:22:14 1999 Mumit Khan + + * Snapshot 1999-12-21. + + * include/wctype.h: New file. + * include/ctype.h (MB_CUR_MAX): Define. + (wctype_t): Guard. + * include/stdlib.h (MB_CUR_MAX): Define. + * include/wchar.h: Define stat, _stat structures here as well. + * include/float.h: Add invalid subconditions (_SW) and floating + point error (_FPE) macros. + * include/time.h (_CLOCK_T): Rename macro to _CLOCK_T_DEFINED. + (_TIME_T): Rename macro to _TIME_T_DEFINED. + * include/sys/types.h: Likewise. + +Thu Nov 18 00:22:26 1999 Mumit Khan + + * profile/profil.c (profile_on): Set the profiler thread priority to + be time critical. Thanks to Pascal Obry . + * Snapshot 1999-11-18. + +Sun Nov 7 02:50:09 1999 Mumit Khan + + Released 1999-11-07. + + * Makefile.in (CRT0S): Add crtst.o. + (install): Install in subdirs as well. + * dirent.h (struct _stat): Rename from struct stat. + * include/tchar.h: Add some new macros. Thanks to + Eric Kohl . + * profile/Makefile.in (install): Fix target. + +Thu Nov 4 14:32:58 1999 Mumit Khan + + * Makefile.in: Add support for profile directory. + * configure.in: Likewise. + * configure: Regenerate. + + * profile: Imported profiling sources from winsup-19991026 snapshot. + * profile/Makefile.in: New file. + * profile/configure.in: New file. + * profile/configure: Generate. + * profile/gcrt0.c (u_char, u_short, u_int, u_long): typedef for Mingw. + * profile/gmon.h (u_char, u_short, u_int, u_long): Likewise. + * profile/gmon.c (unistd.h): Include conditionally. + (sys/param.h): Likewise. + * profile/mcount.c (sys/param.h): Likewise. + * profile/profil.c (profile_on): thread id is DWORD, not int. + + +Wed Nov 3 16:26:44 1999 Mumit Khan + + * include/stdlib.h: Add wide character version of argv/environ. + Formatting changes. + * include/wchar.h: More wide character prototypes. + * include/sys/stat.h: Likewise. Add struct stat as well as _stat. + + * dllcrt1.c (init.c): Don't include. + (DllMainCRTStartup): Don't call _mingw32_init_mainargs(). + * Makefile.in: Remove init.c from dllcrt{1,2}.c dependency lists. + +Sat Oct 30 03:06:26 1999 Mumit Khan + + * moldname.def: Remove file. + * moldname.def.in: And add this. + * moldname-msvcrt.def: Generate from moldname.def.in. + * moldname-crtdll.def: Likewise. + + * mthr.c: New file for -mthread (thread-safe C++ EH) support. + * mthr_init.c: New file for -mthread (thread-safe C++ EH) support. + * mthr_stub.c: New file for -mthread (thread-safe C++ EH) support. + + * Makefile.in: Update. + * configure.in: Likewise. Also add *cygwin* target for building + under Cygwin winsup. + * configure: Regenerate. + +Fri Oct 1 11:10:30 1999 Mumit Khan + + * include/_mingw.h: Add version macros. + * include/direct.h (_diskfree_t, getdiskfree, getdrives): Add. + Also add wide character versions shared with wchar.h. + * include/dos.h (_diskfree_t, getdiskfree, getdrives): Add. + * include/io.h (sopen, _sopen): Fix prototype. + Add wide character prototypes. + * include/wchar.h: Likewise. + * include/stdlib.h (beep, seterrormode, sleep): Remove non- + underscored versions. Potential incompatibility. + * include/time.h (daylight, timezone, tzname): Fix MSVCRT cases. + Add wide character prototypes. + * include/sys/timeb.h (struct _timeb): Don't use macro, but real + definition. + +Wed Aug 18 18:38:39 1999 Mumit Khan + + * configure.in (RUNTIME, CRT_ID): Add to differentiate between + crtdll and msvcrt runtimes. Remove DLL_ENTRY and DEF_DLL_ENTRY + macros. + * configure: Rengerate. + * Makefile.in (RUNTIME, CRT_ID): Use to generate the correct + dll name and crt's. CRTDLL and MSVCRT are meant to created + separately, so remove all the *-msvcrt* targets. + (libmingwthr.a): New target. Dummy thread support archive. + (LIBS): Add libmingwthr.a. + (CRT0S): Use CRT_ID. Add crtmt.o. + (MINGW_OBJS): Add crtst.o. + * main.c (WinMain): Fix prototype. + * crtmt.c: New file. + * crtst.c: New file. + + * include/process.h (_beginthreadex): Fix prototype. + * include/_mingw.h (__int64): Define for __GNUC__. + * include/tchar.h (_ttol): Add macro. + * include/stdlib.h (_wtoi, _wtol, _i64toa, _ui64toa, _atoi64, + _i64tow, _ui64tow, _wtoi64): Add prototypes. + + Reported by Emanuele Aliberti : + * include/tchar.h (_ttoi): Add macro. + + Reported by Ulf Moeller <3umoelle@informatik.uni-hamburg.de>: + * include/stdio.h (_snprintf): Add prototype. + (_vsnprintf): Likewise. + +Sat Aug 7 18:00:00 1999 Mumit Khan + + Reported by Tor Lillqvist : + * include/stdlib.h (__p___argv): Fix return type. + +Fri Jul 30 22:07:06 1999 Mumit Khan + + Add UWIN support. + * include/errno.h (errno): It's linked in from startup, not imported. + * include/stdlib.h (errno): Likewise. + * include/io.h: Guard against conflicting macros and prototypes in + system headers. + * include/stdlib.h: Likewise. + * include/string.h: Likewise. + * include/time.h: Likewise. + +Fri Jul 30 13:47:34 1999 Mumit Khan + + * include/io.h (X_OK): Fix definition. Thanks to Jan Nijtmans. + * include/dos.h: Fix typo __MINGW_EXPORT->__MINGW_IMPORT. + * Makefile.in (INCLUDES): Remove old windows32 include directory. + + * crt1.c (_gnu_exception_handler): Fix prototype. + (__mingw_CRTStartup): New function based on mainCRTStartup. + (mainCRTStartup): Set the app type for MSVCRT and call + __mingw_CRTStartup. + (WinMainCRTStartup): Likewise. + * init.c (_startupinfo): Define. + (_getmainargs): Add 5th parameter. + (_mingw32_init_mainargs): Use. + + * ALL *.c files: Reformat according to GNU coding style. + +Fri Jul 16 00:46:04 1999 Mumit Khan + + * Makefile.in (INCLUDES): Add w32api include directory. + + * include/_mingw.h: New file. + * include/{assert.h,conio.h,ctype.h,direct.h,dirent.h,dos.h, + errno.h,excpt.h,fcntl.h,float.h,io.h,limits.h,locale.h,malloc.h, + math.h,process.h,setjmp.h,share.h,signal.h,stdarg.h,stdio.h, + stdlib.h,string.h,tchar.h,time.h,varargs.h,sys/locking.h, + sys/stat.h,sys/timeb.h,sys/types.h,sys/utime.h}: Include and + use the macros __DECLSPEC_SUPPORTED and __MINGW_IMPORT. + + * include/stdlib.h (atexit): Fix prototype. + +Mon Jun 14 18:38:49 1999 Mumit Khan + + * include/stdio.h (_tempnam): Fix prototype. + (tempnam): Likewise. + * include/stdlib.h: Replace with GCC's version, and guard + with RC_INVOKED. + + From Anders Norlander : + * include/stdlib.h (__argc): Declare. + (__argv): Likewise. + +Mon Apr 5 13:49:17 1999 Mumit Khan + + * crt1.c (_gnu_exception_handler): Acknowledge Jacob Navia's + contribution. + * Makefile.in (_libm_dummy.o): New target. + (libm.a): Use. + +Tue Mar 16 18:15:26 1999 Mumit Khan + + * Released 1999-03-16 along with egcs-1.1.2. + +Wed Feb 17 17:15:56 1999 Mumit Khan + + * Makefile.in (LIBS): Add libm.a. + (libm.a): Dummy libm.a. + + * Makefile.in: Update from winsup 1999-02-08 snapshot. + Preserve local changes. + (mkinstalldirs): In ../, not ../../. + (INCLUDES): Point to local windows32api headers and use -nostdinc. + (LIBGCC): Delete. + (LIBS): Add libmoldname-msvc.a. + (libmoldname-msvc.a): Add target. + (distclean): Add target. + +Tue Feb 9 00:26:05 1999 Mumit Khan + + * include/dir.h: Reintroduce as an obsolescent header. + * crt1.c (signal.h): Include. + (_gnu_exception_handler): New function to properly handle win32 + asynchronous signals. + (mainCRTStartup): Use. + +Sun Jan 3 23:52:25 1999 Mumit Khan + + * include/direct.h: Include io.h instead of dir.h + * include/dirent.h: Likewise. + * include/dos.h: Likewise. + * include/stdio.h: Replace reference to dir.h with io.h. + +Thu Dec 31 16:04:55 1998 Mumit Khan + + * 1999-01-01 release bundled with egcs-1.1.1. + + * include/io.h: Incorporate dir.h. + * include/dir.h: Remove. + * include/signal.h: Move RC_INVOKED up a bit. + +Tue Dec 29 15:04:38 1998 Mumit Khan + + * include/signal.h (sig_atomic_t): Define. + (NSIG): Define. + * include/malloc.h: Import defs from deprecated alloc.h. + * include/alloc.h: Remove. + + From "Daniel J. Rodriksson" : + * include/sys/types.h (_dev_t): Should be unsigned int for MSVCRT. + * include/sys/stat.h (struct stat): st_uid is of type short. Use + _off_t instead of long for st_size. + +Thu Sep 10 22:28:49 1998 Mumit Khan + + * include/errno.h (sys_errlist, sys_nerr): Move from here ... + * include/stdlib.h: Here. + + * include/netdb.h: Remove. + * include/arpa/inet.h: Remove. + * include/netinet/in.h: Remove. + * include/sys/socket.h: Remove. + +Fri Sep 4 15:09:11 1998 Mumit Khan + + * Release egcs-1.1. + + * include/{ctype.h,dos.h,io.h,string.h,time.h,sys/types.h, + sys/utime.h}: Protect stddef.h in RC_INVOKED macro. + +Thu Sep 3 10:43:29 1998 Mumit Khan + + * setjmp.h (_JBTYPE, _JBLEN): Define correctly. + (jmpbuf): typedef using above. + (setjmp, longjmp): Prototype using jmpbuf. + + Merge with Colin Peters' 980701 snapshot. I've ignored changes to + obsolescent imported names, ie., from __imp__ to _imp___. + + Also ignored empty include/sys/param.h and incorrect + include/sys/times.h. + + * CRTinit.c: New file. + * include/{errno.h,fcntl.h,math.h,process.h} (__MSVCRT__): Use #ifdef + instead of #if. + * include/io.h (umask): Fix prototype. + * include/stdlib.h (OS constants): Replace with Colin's. + * include/time.h (tzset, daylight, timezone): Replace with Colin's. + * include/sys/state.h: Merge. + +Thu Sep 3 09:49:07 1998 Mumit Khan + + * include/assert.h (assert): Lose the trailing semicolon. + +Thu Jul 30 21:18:49 1998 Mumit Khan + + * include/math.h (matherr): Declare. + * include/stdio.h (fileno, _fileno): Declare. + * include/stdlib.h (environ, _environ): Fix to use runtime DLL. + + From Earnie Boyd: + * include/stdio.h (fdopen, _fdopen): Add const. + (getw, putw): Declare. + * include/stdlib.h (MAX_{DRIVE,DIR,FNAME,EXT}): Fix. + +Sat Jun 13 18:19:41 1998 Mumit Khan + + * include/time.h (_timezone): Undefine. + * include/sys/timeb.h (struct timeb): Rename _timezone to timezone. + + * include/time.h (_daylight, _timezone, _tzname, _tzset): Remove + __cdecl for MSVCRT. + * include/stdlib.h (environ): Use DLL version. + * init.c (environ): Undefine it before use. + +Sun Mar 22 19:59:30 1998 Mumit Khan + + * Update to 980309 snapshot from Colin Peters. + + * include/utime.h: remove + * include/stdlib.h (__imp__osver_dll, __imp__winver_dll, + __imp__winmajor_dll, __imp__winminor_dll): Apply Jan-Jaap's + patches to define these. + * include/time.h (CLK_TCK): Renamed from CLK_TICK. + (_daylight, _timezone, _tzname, _tzset): Define. + + * include/netdb.h: Add from Colin's windows32api changes. + * include/sys/socket.h: Likewise. + * include/arpa/inet.h: Likewise. + * include/netinet/in.h: Likewise. + +Wed Feb 4 14:16:44 1998 Mumit Khan + + * Update to 980128 snapshot from Colin Peters. + +Sat Dec 6 21:30:35 1997 Mumit Khan + + * configure.in (AC_INIT): Use dllmain.c instead of defunct + oldnames.c + * configure: Regenerate. + +Fri Dec 5 15:57:36 1997 Mumit Khan + + * Update to 971205 snapshot from Colin Peters. Lots of changes. + Files renamed and include hierarchy loses directories named + nonansi. + + * include/dos.h: from Jan-Jaap. + +Thu Dec 4 21:48:13 1997 Mumit Khan + + Changes to conform to FSF tree. + + * crt1.c: Renamed from mcrt0.c. + * dllcrt1.c: Renamed from dllcrt0.c. + * Makefile.in: Update above. Also renamed libmoldnames.a to + libmoldname.a. + +Mon Dec 1 16:51:30 1997 Mumit Khan + + * crtdll.def: Export all functions but the ones with funny names. + * moldnames.def: Add fdopen since fileno is already there. + * include/nonansi/dos.h: New file from Jan-Jaap. + * include/errno.h: Add extern decl + various additions from JJ. + * include/stdio.h: Likewise. + * include/stdlib.h: Likewise. + * include/nonansi/io.h: Likewise. + * include/nonansi/process.h: Likewise. + * include/sys/types.h: Likewise. + +Tue Nov 4 14:51:01 1997 Mumit Khan + + * include/time.h (CLK_TCK): Renamed from CLK_TICK. + (CLK_TICK): Delete. + * include/stdlib.h (free): Fix prototype to return void, not void*. + * include/nonansi/process.h: Add P_* and WAIT_* defs. + + * dllcrt0.c: Delete now-unneeded '.section .idata$3' asm hack. + * mcrt0.c: Likewise. + + * Makefile.in (LIBS): Delete moldnames.dll from target libs. + (libmoldnames.a): Add explicit rule to create it. + +Fri Aug 15 18:23:43 1997 Rob Savoye + + New directory for the minimalist cygwin environment. + + * crtglob.c: New file. Turn on file globbing support. + * crt_noglob.c: New file. Turn off file globbing support. + * ctype_old.c: New file. Wrappers for functions that don't + have an underscore. + * dirent.c: New file. Directory routines readdir, opendir, closedir. + * dllcrt0.c: New file. Initialization code to use crtdll.dll. + * dllmain.c: New file. A stub DllMain function. + * hugeval.c: New file. A gross hack to define HUGE_VAL. + * init.c: New file. Common code to initialize standard file + handles and command line arguments. + * main.c: New file. A main for programs that only call WinMain. + * mcrt0.c: New file. Default crt0 for mingw32. + * oldnames.c: New File. Wrappers for functions that don't + have an underscore. + * string_old.c: New File. + * include/{assert.h,ctype.h,errno.h,float.h,limits.h,locale.h + math.h,nonansi,setjmp.h,signal.h,stdarg.h,stddef.h,stdio.h,stdlib.h + string.h,tchar.h,time.h,wchar.h}: New header files for mingw. + * include/sys/types.h: New header file for mingw. + * include/nonansi/{alloc.h,conio.h,dir.h,direct.h,dirent.h + fcntl.h,io.h,malloc.h,mem.h,memory.h,process.h,share.h,unistd.h + utime.h,values.h,varargs.h}: New header files for mingw. + * include/nonansi/sys/{fcntl.h,locking.h,stat.h,time.h + timeb.h,unistd.h}: New header files for mingw. + * Makefile.in,configure.in: Build and configure support. + * configure: Generated from autoconf 2.12 with Cygnus patches. diff --git a/winsup/mingw/Makefile.in b/winsup/mingw/Makefile.in new file mode 100644 index 0000000000..c9ced3cf69 --- /dev/null +++ b/winsup/mingw/Makefile.in @@ -0,0 +1,538 @@ +# Makefile.in for the winsup/mingw directory. +# Copyright (c) 1995-2008, 1996, 1997, 1998 Cygnus Solutions + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# This makefile requires GNU make. + +PACKAGE = mingw-runtime +VERSION = @PACKAGE_VERSION@ +CYGRELEASE = 1 + +VPATH = @srcdir@ +srcdir = @srcdir@ +objdir = . + +host_alias = @host_alias@ +build_alias = @build_alias@ +target_alias = @target_alias@ +with_cross_host = @with_cross_host@ +prefix = @prefix@ +conf_prefix = @prefix@ + +program_transform_name = @program_transform_name@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ +libdir = @libdir@ +ifneq (,$(findstring cygwin,$(target_alias))) +mandir = $(prefix)/share/man +mansection = mingw +else +mandir = @mandir@ +mansection = 3 +endif +manpage_transform = @mingw_manpage_transform@ +ifeq ($(target_alias),$(host_alias)) +ifeq ($(build_alias),$(host_alias)) +tooldir:=$(exec_prefix) +else +tooldir:=$(exec_prefix)/$(target_alias) +endif +else +tooldir:=$(exec_prefix)/$(target_alias) +endif +datadir = @datadir@ +infodir = @infodir@ +includedir = @includedir@ +ifneq (,$(findstring cygwin,$(target_alias))) +inst_bindir:=$(tooldir)/bin +inst_includedir:=$(tooldir)/include/mingw +inst_libdir:=$(tooldir)/lib/mingw +inst_docdir:=$(tooldir)/share/doc/mingw-runtime +else +ifneq (,$(with_cross_host)) +inst_bindir:=$(tooldir)/bin +inst_includedir:=$(tooldir)/include +inst_libdir:=$(tooldir)/lib +inst_docdir:=$(tooldir)/share/doc/mingw-runtime +else +inst_bindir:=$(bindir) +inst_includedir:=$(includedir) +inst_libdir:=$(libdir) +inst_docdir:=$(prefix)/doc/mingw-runtime +endif +endif + +# The Mingw headers are installed under a subdirectory of +# $(tooldir)/include when configuring in Cygwin. +HEADER_SUBDIR = @HEADER_SUBDIR@ + +SHELL = /bin/sh + +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +mkinstalldirs = $(SHELL) @MKINSTALLDIRS@ + +CC := @CC@ +ifneq (,$(findstring cygwin,$(target_alias))) +override CC := ${filter-out -L% -B%,${shell echo $(CC) | sed -e 's%\(-isystem\|-iwithprefixbefore\) *[^ ]*\( \|$$\)% %g'}} +endif +# FIXME: Which is it, CC or CC_FOR_TARGET? +CC_FOR_TARGET = $(CC) +AS_FOR_TARGET = $(AS) +CFLAGS = @CFLAGS@ +CXXFLAGS = @CXXFLAGS@ + +# compiling with Cygwin? +MNO_CYGWIN = @MNO_CYGWIN@ +ifdef MNO_CYGWIN + subdirforlib=/mingw +else + libdir= +endif + +# Either crtdll (CRT_ID 1) or msvcrt (CRT_ID 2). +RUNTIME = @RUNTIME@ +CRT_ID = @CRT_ID@ + +# Needed for threading dll. +THREAD_DLL = @THREAD_DLL@ +THREAD_DLL_VERSION = 10 +THREAD_DLL_NAME = $(THREAD_DLL)$(THREAD_DLL_VERSION).dll + +# Various libraries. +LIBM_A=@LIBM_A@ + +W32API_INCLUDE = @W32API_INCLUDE@ +INCLUDES = -I$(srcdir)/include \ + -I$(srcdir)/../include \ + -nostdinc \ + -iwithprefixbefore include +ALL_CFLAGS = $(CFLAGS) $(INCLUDES) $(W32API_INCLUDE) $(MNO_CYGWIN) +ALL_CXXFLAGS = $(CXXFLAGS) $(INCLUDES) -nostdinc++ $(W32API_INCLUDE) $(MNO_CYGWIN) + +AS = @AS@ +AR = @AR@ +LD = @LD@ +AR_FLAGS = rcv +RANLIB = @RANLIB@ +DLLTOOL = @DLLTOOL@ +DLLTOOLFLAGS = +DLLTOOL_FOR_TARGET = $(DLLTOOL) +DLLTOOL_FLAGS = --as $(AS_FOR_TARGET) +DLLWRAP = @DLLWRAP@ +DLLWRAP_FOR_TARGET = $(DLLWRAP) +DLLWRAP_FLAGS = --dlltool $(DLLTOOL) --as $(AS) --driver-name $(CC) +OBJCOPY = @OBJCOPY@ +NM = @NM@ + +TAR = tar +TARFLAGS = z +TARFILEEXT = .tar.gz + +SUBDIRS := @subdirs@ + +FLAGS_TO_PASS:=\ + AS="$(AS)" \ + CC="$(CC)" \ + CFLAGS="$(CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_CONFIG)" \ + CXXFLAGS="$(CXXFLAGS) $(CFLAGS_COMMON) $(CFLAGS_CONFIG)" \ + EXE_LDFLAGS="$(EXE_LDFLAGS)" \ + AR="$(AR)" \ + RANLIB="$(RANLIB)" \ + LD="$(LD)" \ + DLLTOOL="$(DLLTOOL)" \ + exec_prefix="$(exec_prefix)" \ + bindir="$(bindir)" \ + libdir="$(libdir)" \ + tooldir="$(tooldir)" \ + datadir="$(datadir)" \ + infodir="$(infodir)" \ + includedir="$(includedir)" \ + inst_bindir="$(inst_bindir)" \ + inst_includedir="$(inst_includedir)" \ + inst_libdir="$(inst_libdir)" \ + inst_docdir="$(inst_docdir)" \ + prefix="$(prefix)" \ + target_alias="$(target_alias)" \ + TAR="$(TAR)" \ + TARFLAGS="$(TARFLAGS)" \ + TARFILEEXT="$(TARFILEEXT)" + +CRT0S = crt1.o dllcrt1.o crt2.o dllcrt2.o CRT_noglob.o crtmt.o crtst.o \ + CRT_fp8.o CRT_fp10.o txtmode.o binmode.o +MINGW_OBJS = CRTglob.o CRTfmode.o CRTinit.o dllmain.o gccmain.o \ + main.o crtst.o mthr_stub.o CRT_fp10.o txtmode.o \ + pseudo-reloc.o pseudo-reloc-list.o cpu_features.o + +MOLD_OBJS = isascii.o iscsym.o iscsymf.o toascii.o \ + strcasecmp.o strncasecmp.o wcscmpi.o + +LIBS = libcrtdll.a \ + libmsvcrt.a libmsvcrtd.a \ + libmsvcr70.a libmsvcr70d.a \ + libmsvcr71.a libmsvcr71d.a \ + libmsvcr80.a libmsvcr80d.a \ + libmsvcr90.a libmsvcr90d.a \ + libmingw32.a \ + libcoldname.a \ + libmoldname.a libmoldnamed.a \ + libmoldname70.a libmoldname70d.a \ + libmoldname71.a libmoldname71d.a \ + libmoldname80.a libmoldname80d.a \ + libmoldname90.a libmoldname90d.a \ + $(LIBM_A) \ + libmingwthrd.a + +DLLS = $(THREAD_DLL_NAME) + +INSTDOCS = CONTRIBUTORS \ + DISCLAIMER \ + README + +SRCDIST_FILES = CRT_noglob.c CRTfmode.c CRTglob.c CRTinit.c ChangeLog \ +Makefile.in README TODO config.guess config.sub configure configure.in \ +aclocal.m4 crt1.c crtdll.def crtmt.c crtst.c dllcrt1.c dllmain.c \ +gccmain.c init.c install-sh jamfile main.c mkinstalldirs \ +moldname.def.in msvcrt.def.in ofmt_stub.s \ +mthr.c mthr_init.c mthr_stub.c readme.txt \ +isascii.c iscsym.c iscsymf.c toascii.c \ +strcasecmp.c strncasecmp.c wcscmpi.c \ +CRT_fp8.c CRT_fp10.c test_headers.c txtmode.c binmode.c pseudo-reloc.c \ +pseudo-reloc-list.c cpu_features.c cpu_features.h \ +DISCLAIMER CONTRIBUTORS + + +all_dlls_host = @all_dlls_host@ +install_dlls_host = @install_dlls_host@ + +all: $(CRT0S) $(LIBS) $(all_dlls_host) + @$(MAKE) subdirs DO=$@ $(FLAGS_TO_PASS) + +all_dlls_host: $(DLLS) + +install_dlls_host: + for i in $(DLLS); do \ + $(INSTALL_PROGRAM) $$i $(inst_bindir)/$$i ; \ + done + +_libm_dummy.o: + rm -f _libm_dummy.c + echo "static int __mingw_libm_dummy;" > _libm_dummy.c + $(CC) -c $(ALL_CFLAGS) _libm_dummy.c + rm -f _libm_dummy.c + +libm.a: _libm_dummy.o + $(AR) rc $@ _libm_dummy.o + $(RANLIB) $@ + +libmingwthrd.a: crtmt.o mingwthrd.def + $(DLLTOOL) $(DLLTOOL_FLAGS) --dllname $(THREAD_DLL_NAME) \ + --def mingwthrd.def --output-lib $@ + $(AR) $(ARFLAGS) $@ crtmt.o + $(RANLIB) $@ + +DLL_OFILES = mthr.o mthr_init.o +DLL_CC_STUFF = -B./ -shared $(MNO_CYGWIN) -Wl,--image-base,0x6FBC0000 \ + -Wl,--entry,_DllMainCRTStartup@12 \ + $(DLL_OFILES) mingwthrd.def \ + -Lmingwex + +$(THREAD_DLL_NAME) mingwthrd.def: $(DLL_OFILES) Makefile $(SUBDIRS) + $(DLLTOOL) --as $(AS) --output-def mingwthrd.def $(DLL_OFILES) + $(CC) $(DLL_CC_STUFF) -o $(THREAD_DLL_NAME) + +libmingw32.a: $(MINGW_OBJS) + $(AR) rc $@ $(MINGW_OBJS) + $(RANLIB) $@ + +msvcrt.def msvcrtd.def \ +msvcr70.def msvcr70d.def \ +msvcr71.def msvcr71d.def \ +msvcr80.def msvcr80d.def \ +msvcr90.def msvcr90d.def \ +: msvcrt.def.in + $(CC) -DRUNTIME=$(basename $(notdir $@)) \ + -D__$(basename $(notdir $@))__=1 \ + -D__MSVCRT__ -C -E -P \ + -xc-header $? > $@ + +moldname-crtdll.def: moldname.def.in + $(CC) -DRUNTIME=crtdll \ + -D__FILENAME__=moldname-crtdll.def \ + -D__CRTDLL__ -C -E -P \ + -xc-header $? > $@ + +moldname-msvcrt.def: moldname.def.in + $(CC) -DRUNTIME=msvcrt \ + -D__FILENAME__=moldname-msvcrt.def \ + -D__MSVCRT__ -C -E -P \ + -xc-header $? > $@ + +libcoldname.a: moldname-crtdll.def $(MOLD_OBJS) + $(DLLTOOL) --as $(AS) -k -U \ + --dllname crtdll.dll \ + --def moldname-crtdll.def \ + --output-lib $@ + $(AR) rc $@ $(MOLD_OBJS) + $(RANLIB) $@ + +libmoldname.a libmoldnamed.a: moldname-msvcrt.def $(MOLD_OBJS) + $(DLLTOOL) --as $(AS) -k -U \ + --dllname msvcrt$(@:libmoldname%a=%)dll \ + --def moldname-msvcrt.def \ + --output-lib $@ + $(AR) rc $@ $(MOLD_OBJS) + $(RANLIB) $@ + +libmoldname70.a libmoldname70d.a libmoldname71.a libmoldname71d.a libmoldname80.a libmoldname80d.a libmoldname90.a libmoldname90d.a: moldname-msvcrt.def $(MOLD_OBJS) + $(DLLTOOL) --as $(AS) -k -U \ + --dllname msvcr$(@:libmoldname%a=%)dll \ + --def moldname-msvcrt.def \ + --output-lib $@ + $(AR) rc $@ $(MOLD_OBJS) + $(RANLIB) $@ + +# The special rules are necessary. +crt1.o dllcrt1.o: + $(CC) -c -D__CRTDLL__ -U__MSVCRT__ $(ALL_CFLAGS) $< -o $@ + +crt2.o dllcrt2.o: + $(CC) -c -D__MSVCRT__ -U__CRTDLL__ $(ALL_CFLAGS) $< -o $@ + +TEST_H_OPTIONS = $(ALL_CFLAGS) -Wall -W -Wsystem-headers -c \ + $(srcdir)/test_headers.c -o test_headers.o + +.PHONY: test_headers +test_headers: + @echo "Testing runtime headers..." + @for lang in c c++ objective-c ; do \ + echo "$$lang ..."; \ + $(CC) -x$$lang $(TEST_H_OPTIONS) ; \ + echo "$$lang -ansi"; \ + $(CC) -x$$lang -ansi $(TEST_H_OPTIONS) ; \ + done +# specify -std=xx only for C + @for std in gnu89 gnu99 c89 c99 ; do \ + echo "std = $$std"; \ + $(CC) -std=$$std $(TEST_H_OPTIONS) ; \ + done + + @rm -f test_headers.o + +clean: + -rm -f *.o *.a *~ core a.out mingwthrd.def mingwthrd.base mingwthrd.exp + -rm -f $(THREAD_DLL_NAME) mingwthrd_dummy.exe + -rm -f msvcr*.def moldname-*.def + @$(MAKE) subdirs DO=$@ $(FLAGS_TO_PASS) + +distclean: clean + @$(MAKE) subdirs DO=$@ $(FLAGS_TO_PASS) + -rm -f config.cache config.status config.log + -rm -f Makefile + +ifdef SNAPDATE + distdir=$(PACKAGE)-$(VERSION)-$(SNAPDATE) +else + ifneq (,$(findstring cygwin, $(target_alias))) + distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE) + else + distdir=$(PACKAGE)-$(VERSION) + endif +endif + +ifneq (,$(findstring cygwin, $(target_alias))) + TARFLAGS = j + TARFILEEXT = .tar.bz2 +endif + +ifneq (,$(findstring mingw, $(target_alias))) + dist_prefix = +else + dist_prefix = $(conf_prefix) +endif + +dist: srcdist bindist + +srcdist: + rm -rf $(distdir) + mkdir $(distdir) + chmod 755 $(distdir) + for i in $(SRCDIST_FILES); do \ + cp -p $(srcdir)/$$i $(distdir)/$$i ; \ + done + for i in $(SUBDIRS); do \ + (cd $$i; $(MAKE) distdir=../$(distdir) dist); \ + done +#FIXME this needs to be done with SUBDIRS and Makefiles. +# +# Maybe, but this is simpler, and adequate for now! +# However, as more manpages are added, spanning multiple sections, +# we'll probably need a separate Makefile to organise them. +# + mkdir $(distdir)/include + mkdir $(distdir)/include/sys + cp $(srcdir)/include/*.h $(distdir)/include/ + cp $(srcdir)/include/sys/*.h $(distdir)/include/sys/ + mkdir $(distdir)/man + cp $(srcdir)/man/*.man $(distdir)/man/ +# +#end FIXME + rm -f $(distdir)-src.tar.gz + $(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir) + + +bindist: + rm -rf $(distdir) + mkdir $(distdir) + chmod 755 $(distdir) + $(MAKE) install prefix=$(shell pwd)/$(distdir)$(dist_prefix) + rm -f $(distdir).tar.gz + cd $(distdir); \ + $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) * + +snapshot: + make dist SNAPDATE=$(shell date '+%Y%m%d') + +info: + +info-html: + +install-info: info + +install-dirs: + $(mkinstalldirs) $(inst_bindir) + $(mkinstalldirs) $(inst_includedir) + $(mkinstalldirs) $(inst_libdir) + $(mkinstalldirs) $(inst_docdir) + $(mkinstalldirs) $(mandir)/man$(mansection) + +install: all install-dirs $(install_dlls_host) + for i in $(LIBS); do \ + $(INSTALL_DATA) $$i $(inst_libdir)/$$i ; \ + done + for i in $(CRT0S); do \ + $(INSTALL_DATA) $$i $(inst_libdir)/$$i ; \ + done + for i in $(INSTDOCS); do \ + $(INSTALL_DATA) $(srcdir)/$$i $(inst_docdir)/$$i ; \ + done + for sub in . sys ; do \ + dstdir=$(inst_includedir)/$$sub ; \ + $(mkinstalldirs) $$dstdir ; \ + for i in $(srcdir)/include/$$sub/*.h ; do \ + $(INSTALL_DATA) $$i $$dstdir/`basename $$i` ; \ + done ; \ + done +# +# This provisional hack installs the only manpage we have at present... +# It simply CANNOT suffice, when we have more manpages to ship. +# + $(mkinstalldirs) $(mandir)/man$(mansection) + $(INSTALL_DATA) $(srcdir)/man/dirname.man $(mandir)/man$(mansection)/`\ + echo dirname.man|sed '$(manpage_transform);s,man$$,$(mansection),'` + $(INSTALL_DATA) $(srcdir)/man/dirname.man $(mandir)/man$(mansection)/`\ + echo basename.man|sed '$(manpage_transform);s,man$$,$(mansection),'` +# +# End provisional hack. +# + @$(MAKE) subdirs DO=$@ $(FLAGS_TO_PASS) + +subdirs: $(SUBDIRS) + @true + +# The . is here because SUBDIRS may be empty + +. $(SUBDIRS): force + @if [ -d ./$@ ]; then \ + echo "Making $(DO) in $@..." ; \ + if (rootme=`pwd`/ ; export rootme ; \ + rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \ + cd ./$@; \ + $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ + else exit 1 ; \ + fi ; \ + else true ; \ + fi + +force: + +# +# Dependencies +# +libcrtdll.a: crtdll.def +libmsvcrt.a: msvcrt.def +libmsvcrtd.a: msvcrtd.def +CRT_noglob.o: CRT_noglob.c +CRTfmode.o: CRTfmode.c +CRTglob.o: CRTglob.c +CRTinit.o: CRTinit.c +crt1.o: crt1.c init.c +crt2.o: crt1.c init.c +crtmt.o: crtmt.c +crtst.o: crtst.c +ctype_old.o: ctype_old.c +dllcrt1.o: dllcrt1.c +dllcrt2.o: dllcrt1.c +dllmain.o: dllmain.c +main.o: main.c +oldnames.o: oldnames.c +string_old.o: string_old.c +CRT_fp8.o: CRT_fp8.c +CRT_fp10.o: CRT_fp10.c + + +Makefile: Makefile.in config.status configure + $(SHELL) config.status + +config.status: configure + $(SHELL) config.status --recheck + +.SUFFIXES: .y $(SUFFIXES) .cc .def .a + +sym_prefix = __msvcrt + +NM_LOOKUP = $(NM) $@ | sed -n \ + -e '/:$$/h;/^[0-7][0-7]* *T */{s///;H;g;s/\n//p' \ + -e '}' | sed -n 's/:_'"$$key"'$$//p' + +MINGW_REPL_FUNCS = printf fprintf sprintf vprintf vfprintf vsprintf + +lib%.a: %.def + $(DLLTOOL) --as=$(AS) -k --dllname $*.dll --output-lib $@ --def $< + for key in $(MINGW_REPL_FUNCS); do \ + src=`$(NM_LOOKUP)`; \ + if test -n "$$src"; then \ + dst=`echo "$$src" | sed 's/0/4/'`; repl="$$repl $$dst"; \ + tmpfiles="$$tmpfiles $$src $$dst"; \ + $(AR) x $@ $$src; \ + $(OBJCOPY) --redefine-sym _$$key=_$(sym_prefix)_$$key \ + --redefine-sym __imp__$$key=__imp__$(sym_prefix)_$$key \ + $$src $$dst; \ + fi; done; \ + test `key=_get_output_format; $(NM_LOOKUP)` || \ + repl="$$repl ofmt_stub.o"; \ + test -n "$$repl" && $(AR) rcs $@ $$repl; \ + $(RM) $$tmpfiles + +libmsvcrt.a libmsvcrtd.a: ofmt_stub.o +libmsvcr70.a libmsvcr70d.a: ofmt_stub.o +libmsvcr71.a libmsvcr71d.a: ofmt_stub.o +libcrtdll.a libcrtdlld.a: ofmt_stub.o + +.c.o: + $(CC) -c $(ALL_CFLAGS) $< -o $@ + diff --git a/winsup/mingw/configure b/winsup/mingw/configure new file mode 100755 index 0000000000..7d15f8707d --- /dev/null +++ b/winsup/mingw/configure @@ -0,0 +1,4351 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.59 for mingw-runtime __MINGW32_VERSION. +# +# Copyright (C) 2003 Free Software Foundation, Inc. +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi +DUALCASE=1; export DUALCASE # for MKS sh + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# Work around bugs in pre-3.0 UWIN ksh. +$as_unset ENV MAIL MAILPATH +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + $as_unset $as_var + fi +done + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + + +# Name of the executable. +as_me=`$as_basename "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)$' \| \ + . : '\(.\)' 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } + /^X\/\(\/\/\)$/{ s//\1/; q; } + /^X\/\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + + +# PATH needs CR, and LINENO needs CR and PATH. +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" || { + # Find who we are. Look in the path if we contain no path at all + # relative or not. + case $0 in + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +done + + ;; + esac + # We did not find ourselves, most probably we were run as `sh COMMAND' + # in which case we are not to be found in the path. + if test "x$as_myself" = x; then + as_myself=$0 + fi + if test ! -f "$as_myself"; then + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 + { (exit 1); exit 1; }; } + fi + case $CONFIG_SHELL in + '') + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for as_base in sh bash ksh sh5; do + case $as_dir in + /*) + if ("$as_dir/$as_base" -c ' + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } + CONFIG_SHELL=$as_dir/$as_base + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$0" ${1+"$@"} + fi;; + esac + done +done +;; + esac + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line before each line; the second 'sed' does the real + # work. The second script uses 'N' to pair each line-number line + # with the numbered line, and appends trailing '-' during + # substitution so that $LINENO is not a special case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) + sed '=' <$as_myself | + sed ' + N + s,$,-, + : loop + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, + t loop + s,-$,, + s,^['$as_cr_digits']*\n,, + ' >$as_me.lineno && + chmod +x $as_me.lineno || + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensible to this). + . ./$as_me.lineno + # Exit status is that of the last command. + exit +} + + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_executable_p="test -f" + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH + + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +exec 6>&1 + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_config_libobj_dir=. +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Maximum number of lines to put in a shell here document. +# This variable seems obsolete. It should probably be removed, and +# only ac_max_sed_lines should be used. +: ${ac_max_here_lines=38} + +# Identity of this package. +PACKAGE_NAME='mingw-runtime' +PACKAGE_TARNAME='mingw-runtime' +PACKAGE_VERSION='__MINGW32_VERSION' +PACKAGE_STRING='mingw-runtime __MINGW32_VERSION' +PACKAGE_BUGREPORT='' + +ac_unique_file="include/_mingw.h" +ac_subdirs_all="$ac_subdirs_all profile mingwex" +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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT with_cross_host all_dlls_host install_dlls_host AR ac_ct_AR AS ac_ct_AS RANLIB ac_ct_RANLIB LD ac_ct_LD NM ac_ct_NM OBJCOPY ac_ct_OBJCOPY DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP WINDRES ac_ct_WINDRES subdirs THREAD_DLL MKINSTALLDIRS MNO_CYGWIN LIBM_A LIBGMON_A HEADER_SUBDIR W32API_INCLUDE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA mingw_manpage_transform LIBOBJS LTLIBOBJS' +ac_subst_files='' + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +ac_prev= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_option in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + eval "enable_$ac_feature=no" ;; + + -enable-* | --enable-*) + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=yes ;; + esac + eval "enable_$ac_feature='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package| sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=yes ;; + esac + eval "with_$ac_package='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/-/_/g'` + eval "with_$ac_package=no" ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute paths. +for ac_var in exec_prefix prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +# Be sure to have absolute paths. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ + localstatedir libdir includedir oldincludedir infodir mandir +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_confdir=`(dirname "$0") 2>/dev/null || +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$0" : 'X\(//\)[^/]' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$0" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 + { (exit 1); exit 1; }; } + else + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 + { (exit 1); exit 1; }; } + fi +fi +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 + { (exit 1); exit 1; }; } +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` +ac_env_build_alias_set=${build_alias+set} +ac_env_build_alias_value=$build_alias +ac_cv_env_build_alias_set=${build_alias+set} +ac_cv_env_build_alias_value=$build_alias +ac_env_host_alias_set=${host_alias+set} +ac_env_host_alias_value=$host_alias +ac_cv_env_host_alias_set=${host_alias+set} +ac_cv_env_host_alias_value=$host_alias +ac_env_target_alias_set=${target_alias+set} +ac_env_target_alias_value=$target_alias +ac_cv_env_target_alias_set=${target_alias+set} +ac_cv_env_target_alias_value=$target_alias +ac_env_CC_set=${CC+set} +ac_env_CC_value=$CC +ac_cv_env_CC_set=${CC+set} +ac_cv_env_CC_value=$CC +ac_env_CFLAGS_set=${CFLAGS+set} +ac_env_CFLAGS_value=$CFLAGS +ac_cv_env_CFLAGS_set=${CFLAGS+set} +ac_cv_env_CFLAGS_value=$CFLAGS +ac_env_LDFLAGS_set=${LDFLAGS+set} +ac_env_LDFLAGS_value=$LDFLAGS +ac_cv_env_LDFLAGS_set=${LDFLAGS+set} +ac_cv_env_LDFLAGS_value=$LDFLAGS +ac_env_CPPFLAGS_set=${CPPFLAGS+set} +ac_env_CPPFLAGS_value=$CPPFLAGS +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} +ac_cv_env_CPPFLAGS_value=$CPPFLAGS + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures mingw-runtime __MINGW32_VERSION to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +_ACEOF + + cat <<_ACEOF +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data [PREFIX/share] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --infodir=DIR info documentation [PREFIX/info] + --mandir=DIR man documentation [PREFIX/man] +_ACEOF + + cat <<\_ACEOF + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of mingw-runtime __MINGW32_VERSION:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-mingw-manpage-transform[=SED-SCRIPT] + apply SED-SCRIPT [s/^/mingw-/] to installed + manpage names + --disable-mingw-manpage-transform + [DEFAULT] don't transform installed manpage + names + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have + headers in a nonstandard directory + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +_ACEOF +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + ac_popdir=`pwd` + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d $ac_dir || continue + ac_builddir=. + +if test "$ac_dir" != .; then + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix= ac_top_builddir= +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_builddir$srcdir ;; +esac + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; +*) + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_builddir=${ac_top_builddir}.;; +*) + case ${ac_top_builddir}. in + .) ac_abs_top_builddir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_srcdir=$ac_srcdir;; +*) + case $ac_srcdir in + .) ac_abs_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_srcdir=$ac_top_srcdir;; +*) + case $ac_top_srcdir in + .) ac_abs_top_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; + esac;; +esac + + cd $ac_dir + # Check for guested configure; otherwise get Cygnus style configure. + if test -f $ac_srcdir/configure.gnu; then + echo + $SHELL $ac_srcdir/configure.gnu --help=recursive + elif test -f $ac_srcdir/configure; then + echo + $SHELL $ac_srcdir/configure --help=recursive + elif test -f $ac_srcdir/configure.ac || + test -f $ac_srcdir/configure.in; then + echo + $ac_configure --help + else + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi + cd $ac_popdir + done +fi + +test -n "$ac_init_help" && exit 0 +if $ac_init_version; then + cat <<\_ACEOF +mingw-runtime configure __MINGW32_VERSION +generated by GNU Autoconf 2.59 + +Copyright (C) 2003 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit 0 +fi +exec 5>config.log +cat >&5 <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by mingw-runtime $as_me __MINGW32_VERSION, which was +generated by GNU Autoconf 2.59. Invocation command line was + + $ $0 $@ + +_ACEOF +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +hostinfo = `(hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + echo "PATH: $as_dir" +done + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_sep= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 2) + ac_configure_args1="$ac_configure_args1 '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" + # Get rid of the leading space. + ac_sep=" " + ;; + esac + done +done +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Be sure not to use single quotes in there, as some shells, +# such as our DU 5.0 friend, will then `close' the trap. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +{ + (set) 2>&1 | + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in + *ac_space=\ *) + sed -n \ + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" + ;; + *) + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} + echo + + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=$`echo $ac_var` + echo "$ac_var='"'"'$ac_val'"'"'" + done | sort + echo + + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------- ## +## Output files. ## +## ------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=$`echo $ac_var` + echo "$ac_var='"'"'$ac_val'"'"'" + done | sort + echo + fi + + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + sed "/^$/d" confdefs.h | sort + echo + fi + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" + echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core && + rm -rf conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status + ' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo >confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special + # files actually), so we avoid doing that. + if test -f "$cache_file"; then + { echo "$as_me:$LINENO: loading cache $cache_file" >&5 +echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . $cache_file;; + *) . ./$cache_file;; + esac + fi +else + { echo "$as_me:$LINENO: creating cache $cache_file" >&5 +echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in `(set) 2>&1 | + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val="\$ac_cv_env_${ac_var}_value" + eval ac_new_val="\$ac_env_${ac_var}_value" + case $ac_old_set,$ac_new_set in + set,) + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 +echo "$as_me: former value: $ac_old_val" >&2;} + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 +echo "$as_me: current value: $ac_new_val" >&2;} + ac_cache_corrupted=: + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 +echo "$as_me: error: changes in the environment can compromise the build" >&2;} + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} + { (exit 1); exit 1; }; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + echo "$as_me:$LINENO: checking package version" >&5 +echo $ECHO_N "checking package version... $ECHO_C" >&6 + PACKAGE_VERSION=`awk '$2 == "'"$PACKAGE_VERSION"'" { print $3 }' ${srcdir}/include/_mingw.h` + PACKAGE_TARNAME=${PACKAGE_NAME}-${PACKAGE_VERSION} + echo "$as_me:$LINENO: result: $PACKAGE_VERSION" >&5 +echo "${ECHO_T}$PACKAGE_VERSION" >&6 + +ac_aux_dir= +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f $ac_dir/shtool; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} + { (exit 1); exit 1; }; } +fi +ac_config_guess="$SHELL $ac_aux_dir/config.guess" +ac_config_sub="$SHELL $ac_aux_dir/config.sub" +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. + +# Make sure we can run config.sub. +$ac_config_sub sun4 >/dev/null 2>&1 || + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 +echo "$as_me: error: cannot run $ac_config_sub" >&2;} + { (exit 1); exit 1; }; } + +echo "$as_me:$LINENO: checking build system type" >&5 +echo $ECHO_N "checking build system type... $ECHO_C" >&6 +if test "${ac_cv_build+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_build_alias=$build_alias +test -z "$ac_cv_build_alias" && + ac_cv_build_alias=`$ac_config_guess` +test -z "$ac_cv_build_alias" && + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;} + { (exit 1); exit 1; }; } +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +echo "$as_me:$LINENO: result: $ac_cv_build" >&5 +echo "${ECHO_T}$ac_cv_build" >&6 +build=$ac_cv_build +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + + +echo "$as_me:$LINENO: checking host system type" >&5 +echo $ECHO_N "checking host system type... $ECHO_C" >&6 +if test "${ac_cv_host+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_host_alias=$host_alias +test -z "$ac_cv_host_alias" && + ac_cv_host_alias=$ac_cv_build_alias +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +echo "$as_me:$LINENO: result: $ac_cv_host" >&5 +echo "${ECHO_T}$ac_cv_host" >&6 +host=$ac_cv_host +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + + +echo "$as_me:$LINENO: checking target system type" >&5 +echo $ECHO_N "checking target system type... $ECHO_C" >&6 +if test "${ac_cv_target+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_target_alias=$target_alias +test "x$ac_cv_target_alias" = "x" && + ac_cv_target_alias=$ac_cv_host_alias +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +echo "$as_me:$LINENO: result: $ac_cv_target" >&5 +echo "${ECHO_T}$ac_cv_target" >&6 +target=$ac_cv_target +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + CC=$ac_ct_CC +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="cc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + CC=$ac_ct_CC +else + CC="$ac_cv_prog_CC" +fi + +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$ac_ct_CC" && break +done + + CC=$ac_ct_CC +fi + +fi + + +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH +See \`config.log' for more details." >&5 +echo "$as_me: error: no acceptable C compiler found in \$PATH +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } + +# Provide some information about the compiler. +echo "$as_me:$LINENO:" \ + "checking for C compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +# FIXME: Cleanup? +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + gcc_no_link=no +else + gcc_no_link=yes +fi + +if test x$gcc_no_link = xyes; then + # Setting cross_compile will disable run tests; it will + # also disable AC_CHECK_FILE but that's generally + # correct if we can't link. + cross_compiling=yes + EXEEXT= +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 + (eval $ac_link_default) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # Find the output, starting from the most likely. This scheme is +# not robust to junk in `.', hence go to wildcards (a.*) only as a last +# resort. + +# Be careful to initialize this variable, since it used to be cached. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. +ac_cv_exeext= +# b.out is created by i960 compilers. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) + ;; + conftest.$ac_ext ) + # This is the source file. + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + # FIXME: I believe we export ac_cv_exeext for Libtool, + # but it would be cool to find out if it's true. Does anybody + # maintain Libtool? --akim. + export ac_cv_exeext + break;; + * ) + break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables +See \`config.log' for more details." >&5 +echo "$as_me: error: C compiler cannot create executables +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } +fi + +ac_exeext=$ac_cv_exeext +echo "$as_me:$LINENO: result: $ac_file" >&5 +echo "${ECHO_T}$ac_file" >&6 + +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 +# If not cross compiling, check that we can run a simple program. +if test "$cross_compiling" != yes; then + if { ac_try='./$ac_file' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { echo "$as_me:$LINENO: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } + fi + fi +fi +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +rm -f a.out a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 +echo "$as_me:$LINENO: result: $cross_compiling" >&5 +echo "${ECHO_T}$cross_compiling" >&6 + +echo "$as_me:$LINENO: checking for suffix of executables" >&5 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + export ac_cv_exeext + break;; + * ) break;; + esac +done +else + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest$ac_cv_exeext +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 +echo "${ECHO_T}$ac_cv_exeext" >&6 + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +fi +echo "$as_me:$LINENO: checking for suffix of object files" >&5 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 +if test "${ac_cv_objext+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute suffix of object files: cannot compile +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 +echo "${ECHO_T}$ac_cv_objext" >&6 +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 +if test "${ac_cv_c_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_compiler_gnu=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 +GCC=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +CFLAGS="-g" +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_cc_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_cc_g=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_prog_cc_g=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 +if test "${ac_cv_prog_cc_stdc+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_prog_cc_stdc=no +ac_save_CC=$CC +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std1 is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std1. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +# Don't try gcc -ansi; that turns off useful extensions and +# breaks some systems' header files. +# AIX -qlanglvl=ansi +# Ultrix and OSF/1 -std1 +# HP-UX 10.20 and later -Ae +# HP-UX older versions -Aa -D_HPUX_SOURCE +# SVR4 -Xc -D__EXTENSIONS__ +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_cc_stdc=$ac_arg +break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext +done +rm -f conftest.$ac_ext conftest.$ac_objext +CC=$ac_save_CC + +fi + +case "x$ac_cv_prog_cc_stdc" in + x|xno) + echo "$as_me:$LINENO: result: none needed" >&5 +echo "${ECHO_T}none needed" >&6 ;; + *) + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 + CC="$CC $ac_cv_prog_cc_stdc" ;; +esac + +# Some people use a C++ compiler to compile C. Since we use `exit', +# in C++ we need to declare it. In case someone uses the same compiler +# for both compiling C and C++ we need to have the C++ compiler decide +# the declaration of exit, since it's the most demanding environment. +cat >conftest.$ac_ext <<_ACEOF +#ifndef __cplusplus + choke me +#endif +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + for ac_declaration in \ + '' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' +do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_declaration +#include +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +continue +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_declaration +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +rm -f conftest* +if test -n "$ac_declaration"; then + echo '#ifdef __cplusplus' >>confdefs.h + echo $ac_declaration >>confdefs.h + echo '#endif' >>confdefs.h +fi + +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +case "$with_cross_host" in + ""|*cygwin*) all_dlls_host='all_dlls_host' + install_dlls_host='install_dlls_host';; +esac + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_AR+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + echo "$as_me:$LINENO: result: $AR" >&5 +echo "${ECHO_T}$AR" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="ar" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 +echo "${ECHO_T}$ac_ct_AR" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + AR=$ac_ct_AR +else + AR="$ac_cv_prog_AR" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_AS+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AS="${ac_tool_prefix}as" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + echo "$as_me:$LINENO: result: $AS" >&5 +echo "${ECHO_T}$AS" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AS="as" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="as" +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 +echo "${ECHO_T}$ac_ct_AS" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + AS=$ac_ct_AS +else + AS="$ac_cv_prog_AS" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + echo "$as_me:$LINENO: result: $RANLIB" >&5 +echo "${ECHO_T}$RANLIB" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib" +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 +echo "${ECHO_T}$ac_ct_RANLIB" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + RANLIB=$ac_ct_RANLIB +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. +set dummy ${ac_tool_prefix}ld; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_LD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$LD"; then + ac_cv_prog_LD="$LD" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LD="${ac_tool_prefix}ld" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +LD=$ac_cv_prog_LD +if test -n "$LD"; then + echo "$as_me:$LINENO: result: $LD" >&5 +echo "${ECHO_T}$LD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_LD"; then + ac_ct_LD=$LD + # Extract the first word of "ld", so it can be a program name with args. +set dummy ld; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_LD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_LD"; then + ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_LD="ld" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" +fi +fi +ac_ct_LD=$ac_cv_prog_ac_ct_LD +if test -n "$ac_ct_LD"; then + echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 +echo "${ECHO_T}$ac_ct_LD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + LD=$ac_ct_LD +else + LD="$ac_cv_prog_LD" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. +set dummy ${ac_tool_prefix}nm; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_NM+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$NM"; then + ac_cv_prog_NM="$NM" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NM="${ac_tool_prefix}nm" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +NM=$ac_cv_prog_NM +if test -n "$NM"; then + echo "$as_me:$LINENO: result: $NM" >&5 +echo "${ECHO_T}$NM" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_NM"; then + ac_ct_NM=$NM + # Extract the first word of "nm", so it can be a program name with args. +set dummy nm; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_NM+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_NM"; then + ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NM="nm" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm" +fi +fi +ac_ct_NM=$ac_cv_prog_ac_ct_NM +if test -n "$ac_ct_NM"; then + echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 +echo "${ECHO_T}$ac_ct_NM" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + NM=$ac_ct_NM +else + NM="$ac_cv_prog_NM" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args. +set dummy ${ac_tool_prefix}objcopy; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_OBJCOPY+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$OBJCOPY"; then + ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +OBJCOPY=$ac_cv_prog_OBJCOPY +if test -n "$OBJCOPY"; then + echo "$as_me:$LINENO: result: $OBJCOPY" >&5 +echo "${ECHO_T}$OBJCOPY" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_OBJCOPY"; then + ac_ct_OBJCOPY=$OBJCOPY + # Extract the first word of "objcopy", so it can be a program name with args. +set dummy objcopy; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_OBJCOPY"; then + ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJCOPY="objcopy" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_OBJCOPY" && ac_cv_prog_ac_ct_OBJCOPY="objcopy" +fi +fi +ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY +if test -n "$ac_ct_OBJCOPY"; then + echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5 +echo "${ECHO_T}$ac_ct_OBJCOPY" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + OBJCOPY=$ac_ct_OBJCOPY +else + OBJCOPY="$ac_cv_prog_OBJCOPY" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_DLLTOOL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + echo "$as_me:$LINENO: result: $DLLTOOL" >&5 +echo "${ECHO_T}$DLLTOOL" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="dlltool" +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 +echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + DLLTOOL=$ac_ct_DLLTOOL +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_DLLWRAP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$DLLWRAP"; then + ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLWRAP="${ac_tool_prefix}dlltool" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +DLLWRAP=$ac_cv_prog_DLLWRAP +if test -n "$DLLWRAP"; then + echo "$as_me:$LINENO: result: $DLLWRAP" >&5 +echo "${ECHO_T}$DLLWRAP" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_DLLWRAP"; then + ac_ct_DLLWRAP=$DLLWRAP + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_DLLWRAP"; then + ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLWRAP="dlltool" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="dlltool" +fi +fi +ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP +if test -n "$ac_ct_DLLWRAP"; then + echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 +echo "${ECHO_T}$ac_ct_DLLWRAP" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + DLLWRAP=$ac_ct_DLLWRAP +else + DLLWRAP="$ac_cv_prog_DLLWRAP" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. +set dummy ${ac_tool_prefix}windres; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_WINDRES+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$WINDRES"; then + ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_WINDRES="${ac_tool_prefix}windres" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +WINDRES=$ac_cv_prog_WINDRES +if test -n "$WINDRES"; then + echo "$as_me:$LINENO: result: $WINDRES" >&5 +echo "${ECHO_T}$WINDRES" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_WINDRES"; then + ac_ct_WINDRES=$WINDRES + # Extract the first word of "windres", so it can be a program name with args. +set dummy windres; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_WINDRES"; then + ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_WINDRES="windres" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="windres" +fi +fi +ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES +if test -n "$ac_ct_WINDRES"; then + echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 +echo "${ECHO_T}$ac_ct_WINDRES" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + WINDRES=$ac_ct_WINDRES +else + WINDRES="$ac_cv_prog_WINDRES" +fi + + + + +subdirs="$subdirs profile mingwex" + +HEADER_SUBDIR="" + +LIBGMON_A=libgmon.a + +W32API_INCLUDE='-I $(srcdir)/../w32api/include' + +case "$target_os" in +*cygwin*) + MNO_CYGWIN=-mno-cygwin + LIBM_A=libm.a + # Install mingw headers in mingw subdirectory. + HEADER_SUBDIR="mingw" + ;; +*) + # Build it for MSVCRT by default. + MNO_CYGWIN= + LIBM_A=libm.a + ;; +esac + +# THREAD_DLL used to be set within the above case and was mingwc for CRTDLL. +# I can find no reason to do this. +# +# FIXME: In the future I would like to change the dll name to mingwthrd to +# to match the libmingwthrd.a name. +THREAD_DLL=mingwm + + +MKINSTALLDIRS=$ac_aux_dir/mkinstalldirs + + + + + + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in + ./ | .// | /cC/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac +done + + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=$ac_install_sh + fi +fi +echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +# Check whether --enable-mingw-manpage-transform or --disable-mingw-manpage-transform was given. +if test "${enable_mingw_manpage_transform+set}" = set; then + enableval="$enable_mingw_manpage_transform" + case ${enableval} in + yes) mingw_manpage_transform='s,^,mingw-,' ;; + no) mingw_manpage_transform='s,x,x,' ;; + *) mingw_manpage_transform=${enableval} ;; + esac +fi; + mingw_manpage_transform=${mingw_manpage_transform-'s,x,x,'} + + + ac_config_files="$ac_config_files Makefile" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +{ + (set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} | + sed ' + t clear + : clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + : end' >>confcache +if diff $cache_file confcache >/dev/null 2>&1; then :; else + if test -w $cache_file; then + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" + cat confcache >$cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=]*=[ ]*\):*/\1/; +s/:*$//; +s/^[^=]*=[ ]*$//; +}' +fi + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then we branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +cat >confdef2opt.sed <<\_ACEOF +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g +t quote +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g +t quote +d +: quote +s,[ `~#$^&*(){}\\|;'"<>?],\\&,g +s,\[,\\&,g +s,\],\\&,g +s,\$,$$,g +p +_ACEOF +# We use echo to avoid assuming a particular line-breaking character. +# The extra dot is to prevent the shell from consuming trailing +# line-breaks from the sub-command output. A line-break within +# single-quotes doesn't work because, if this script is created in a +# platform that uses two characters for line-breaks (e.g., DOS), tr +# would break. +ac_LF_and_DOT=`echo; echo .` +DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` +rm -f confdef2opt.sed + + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_i=`echo "$ac_i" | + sed 's/\$U\././;s/\.o$//;s/\.obj$//'` + # 2. Add them. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + +: ${CONFIG_STATUS=./config.status} +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false +SHELL=\${CONFIG_SHELL-$SHELL} +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi +DUALCASE=1; export DUALCASE # for MKS sh + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# Work around bugs in pre-3.0 UWIN ksh. +$as_unset ENV MAIL MAILPATH +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + $as_unset $as_var + fi +done + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + + +# Name of the executable. +as_me=`$as_basename "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)$' \| \ + . : '\(.\)' 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } + /^X\/\(\/\/\)$/{ s//\1/; q; } + /^X\/\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + + +# PATH needs CR, and LINENO needs CR and PATH. +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" || { + # Find who we are. Look in the path if we contain no path at all + # relative or not. + case $0 in + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +done + + ;; + esac + # We did not find ourselves, most probably we were run as `sh COMMAND' + # in which case we are not to be found in the path. + if test "x$as_myself" = x; then + as_myself=$0 + fi + if test ! -f "$as_myself"; then + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} + { (exit 1); exit 1; }; } + fi + case $CONFIG_SHELL in + '') + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for as_base in sh bash ksh sh5; do + case $as_dir in + /*) + if ("$as_dir/$as_base" -c ' + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } + CONFIG_SHELL=$as_dir/$as_base + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$0" ${1+"$@"} + fi;; + esac + done +done +;; + esac + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line before each line; the second 'sed' does the real + # work. The second script uses 'N' to pair each line-number line + # with the numbered line, and appends trailing '-' during + # substitution so that $LINENO is not a special case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) + sed '=' <$as_myself | + sed ' + N + s,$,-, + : loop + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, + t loop + s,-$,, + s,^['$as_cr_digits']*\n,, + ' >$as_me.lineno && + chmod +x $as_me.lineno || + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensible to this). + . ./$as_me.lineno + # Exit status is that of the last command. + exit +} + + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_executable_p="test -f" + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH + +exec 6>&1 + +# Open the log real soon, to keep \$[0] and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. Logging --version etc. is OK. +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX +} >&5 +cat >&5 <<_CSEOF + +This file was extended by mingw-runtime $as_me __MINGW32_VERSION, which was +generated by GNU Autoconf 2.59. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +_CSEOF +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 +echo >&5 +_ACEOF + +# Files that config.status was made for. +if test -n "$ac_config_files"; then + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_headers"; then + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_links"; then + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_commands"; then + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS +fi + +cat >>$CONFIG_STATUS <<\_ACEOF + +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTIONS] [FILE]... + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + +Configuration files: +$config_files + +Report bugs to ." +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF +ac_cs_version="\\ +mingw-runtime config.status __MINGW32_VERSION +configured by $0, generated by GNU Autoconf 2.59, + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" + +Copyright (C) 2003 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." +srcdir=$srcdir +INSTALL="$INSTALL" +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "x$1" : 'x\([^=]*\)='` + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` + ac_shift=: + ;; + -*) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + *) # This is not an option, so the user has probably given explicit + # arguments. + ac_option=$1 + ac_need_defaults=false;; + esac + + case $ac_option in + # Handling of the options. +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --vers* | -V ) + echo "$ac_cs_version"; exit 0 ;; + --he | --h) + # Conflict between --help and --header + { { echo "$as_me:$LINENO: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + echo "$ac_cs_usage"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + CONFIG_FILES="$CONFIG_FILES $ac_optarg" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" + ac_need_defaults=false;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; } ;; + + *) ac_config_targets="$ac_config_targets $1" ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF +if \$ac_cs_recheck; then + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion +fi + +_ACEOF + + + + + +cat >>$CONFIG_STATUS <<\_ACEOF +for ac_config_target in $ac_config_targets +do + case "$ac_config_target" in + # Handling of arguments. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + esac +done + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason to put it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./confstat$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in ." >&2 + { (exit 1); exit 1; } +} + +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF + +# +# CONFIG_FILES section. +# + +# No need to generate the scripts if there are no CONFIG_FILES. +# This happens for instance when ./config.status config.h +if test -n "\$CONFIG_FILES"; then + # Protect against being on the right side of a sed subst in config.status. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF +s,@SHELL@,$SHELL,;t t +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t +s,@exec_prefix@,$exec_prefix,;t t +s,@prefix@,$prefix,;t t +s,@program_transform_name@,$program_transform_name,;t t +s,@bindir@,$bindir,;t t +s,@sbindir@,$sbindir,;t t +s,@libexecdir@,$libexecdir,;t t +s,@datadir@,$datadir,;t t +s,@sysconfdir@,$sysconfdir,;t t +s,@sharedstatedir@,$sharedstatedir,;t t +s,@localstatedir@,$localstatedir,;t t +s,@libdir@,$libdir,;t t +s,@includedir@,$includedir,;t t +s,@oldincludedir@,$oldincludedir,;t t +s,@infodir@,$infodir,;t t +s,@mandir@,$mandir,;t t +s,@build_alias@,$build_alias,;t t +s,@host_alias@,$host_alias,;t t +s,@target_alias@,$target_alias,;t t +s,@DEFS@,$DEFS,;t t +s,@ECHO_C@,$ECHO_C,;t t +s,@ECHO_N@,$ECHO_N,;t t +s,@ECHO_T@,$ECHO_T,;t t +s,@LIBS@,$LIBS,;t t +s,@build@,$build,;t t +s,@build_cpu@,$build_cpu,;t t +s,@build_vendor@,$build_vendor,;t t +s,@build_os@,$build_os,;t t +s,@host@,$host,;t t +s,@host_cpu@,$host_cpu,;t t +s,@host_vendor@,$host_vendor,;t t +s,@host_os@,$host_os,;t t +s,@target@,$target,;t t +s,@target_cpu@,$target_cpu,;t t +s,@target_vendor@,$target_vendor,;t t +s,@target_os@,$target_os,;t t +s,@CC@,$CC,;t t +s,@CFLAGS@,$CFLAGS,;t t +s,@LDFLAGS@,$LDFLAGS,;t t +s,@CPPFLAGS@,$CPPFLAGS,;t t +s,@ac_ct_CC@,$ac_ct_CC,;t t +s,@EXEEXT@,$EXEEXT,;t t +s,@OBJEXT@,$OBJEXT,;t t +s,@with_cross_host@,$with_cross_host,;t t +s,@all_dlls_host@,$all_dlls_host,;t t +s,@install_dlls_host@,$install_dlls_host,;t t +s,@AR@,$AR,;t t +s,@ac_ct_AR@,$ac_ct_AR,;t t +s,@AS@,$AS,;t t +s,@ac_ct_AS@,$ac_ct_AS,;t t +s,@RANLIB@,$RANLIB,;t t +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t +s,@LD@,$LD,;t t +s,@ac_ct_LD@,$ac_ct_LD,;t t +s,@NM@,$NM,;t t +s,@ac_ct_NM@,$ac_ct_NM,;t t +s,@OBJCOPY@,$OBJCOPY,;t t +s,@ac_ct_OBJCOPY@,$ac_ct_OBJCOPY,;t t +s,@DLLTOOL@,$DLLTOOL,;t t +s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t +s,@DLLWRAP@,$DLLWRAP,;t t +s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t +s,@WINDRES@,$WINDRES,;t t +s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t +s,@subdirs@,$subdirs,;t t +s,@THREAD_DLL@,$THREAD_DLL,;t t +s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t +s,@MNO_CYGWIN@,$MNO_CYGWIN,;t t +s,@LIBM_A@,$LIBM_A,;t t +s,@LIBGMON_A@,$LIBGMON_A,;t t +s,@HEADER_SUBDIR@,$HEADER_SUBDIR,;t t +s,@W32API_INCLUDE@,$W32API_INCLUDE,;t t +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t +s,@INSTALL_DATA@,$INSTALL_DATA,;t t +s,@mingw_manpage_transform@,$mingw_manpage_transform,;t t +s,@LIBOBJS@,$LIBOBJS,;t t +s,@LTLIBOBJS@,$LTLIBOBJS,;t t +CEOF + +_ACEOF + + cat >>$CONFIG_STATUS <<\_ACEOF + # Split the substitutions into bite-sized pieces for seds with + # small command number limits, like on Digital OSF/1 and HP-UX. + ac_max_sed_lines=48 + ac_sed_frag=1 # Number of current file. + ac_beg=1 # First line for current file. + ac_end=$ac_max_sed_lines # Line after last line for current file. + ac_more_lines=: + ac_sed_cmds= + while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + else + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + fi + if test ! -s $tmp/subs.frag; then + ac_more_lines=false + else + # The purpose of the label and of the branching condition is to + # speed up the sed processing (if there are no `@' at all, there + # is no need to browse any of the substitutions). + # These are the two extra sed commands mentioned above. + (echo ':t + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" + else + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" + fi + ac_sed_frag=`expr $ac_sed_frag + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_lines` + fi + done + if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat + fi +fi # test -n "$CONFIG_FILES" + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; + esac + + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. + ac_dir=`(dirname "$ac_file") 2>/dev/null || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p "$ac_dir" + else + as_dir="$ac_dir" + as_dirs= + while test ! -d "$as_dir"; do + as_dirs="$as_dir $as_dirs" + as_dir=`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} + { (exit 1); exit 1; }; }; } + + ac_builddir=. + +if test "$ac_dir" != .; then + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix= ac_top_builddir= +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_builddir$srcdir ;; +esac + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; +*) + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_builddir=${ac_top_builddir}.;; +*) + case ${ac_top_builddir}. in + .) ac_abs_top_builddir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_srcdir=$ac_srcdir;; +*) + case $ac_srcdir in + .) ac_abs_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_srcdir=$ac_top_srcdir;; +*) + case $ac_top_srcdir in + .) ac_abs_top_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; + esac;; +esac + + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_builddir$INSTALL ;; + esac + + if test x"$ac_file" != x-; then + { echo "$as_me:$LINENO: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + rm -f "$ac_file" + fi + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + if test x"$ac_file" = x-; then + configure_input= + else + configure_input="$ac_file. " + fi + configure_input=$configure_input"Generated from `echo $ac_file_in | + sed 's,.*/,,'` by configure." + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo "$f";; + *) # Relative + if test -f "$f"; then + # Build tree + echo "$f" + elif test -f "$srcdir/$f"; then + # Source tree + echo "$srcdir/$f" + else + # /dev/null tree + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF + sed "$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s,@configure_input@,$configure_input,;t t +s,@srcdir@,$ac_srcdir,;t t +s,@abs_srcdir@,$ac_abs_srcdir,;t t +s,@top_srcdir@,$ac_top_srcdir,;t t +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t +s,@builddir@,$ac_builddir,;t t +s,@abs_builddir@,$ac_abs_builddir,;t t +s,@top_builddir@,$ac_top_builddir,;t t +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t +s,@INSTALL@,$ac_INSTALL,;t t +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out + rm -f $tmp/stdin + if test x"$ac_file" != x-; then + mv $tmp/out $ac_file + else + cat $tmp/out + rm -f $tmp/out + fi + +done +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF + +{ (exit 0); exit 0; } +_ACEOF +chmod +x $CONFIG_STATUS +ac_clean_files=$ac_clean_files_save + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || { (exit 1); exit 1; } +fi + +# +# CONFIG_SUBDIRS section. +# +if test "$no_recursion" != yes; then + + # Remove --cache-file and --srcdir arguments so they do not pile up. + ac_sub_configure_args= + ac_prev= + for ac_arg in $ac_configure_args; do + if test -n "$ac_prev"; then + ac_prev= + continue + fi + case $ac_arg in + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ + | --c=*) + ;; + --config-cache | -C) + ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + ;; + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + ;; + *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; + esac + done + + # Always prepend --prefix to ensure using the same prefix + # in subdir configurations. + ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" + + ac_popdir=`pwd` + for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. + test -d $srcdir/$ac_dir || continue + + { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 +echo "$as_me: configuring in $ac_dir" >&6;} + { if $as_mkdir_p; then + mkdir -p "$ac_dir" + else + as_dir="$ac_dir" + as_dirs= + while test ! -d "$as_dir"; do + as_dirs="$as_dir $as_dirs" + as_dir=`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} + { (exit 1); exit 1; }; }; } + + ac_builddir=. + +if test "$ac_dir" != .; then + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix= ac_top_builddir= +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_builddir$srcdir ;; +esac + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; +*) + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_builddir=${ac_top_builddir}.;; +*) + case ${ac_top_builddir}. in + .) ac_abs_top_builddir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_srcdir=$ac_srcdir;; +*) + case $ac_srcdir in + .) ac_abs_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_srcdir=$ac_top_srcdir;; +*) + case $ac_top_srcdir in + .) ac_abs_top_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; + esac;; +esac + + + cd $ac_dir + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f $ac_srcdir/configure.gnu; then + ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" + elif test -f $ac_srcdir/configure; then + ac_sub_configure="$SHELL '$ac_srcdir/configure'" + elif test -f $ac_srcdir/configure.in; then + ac_sub_configure=$ac_configure + else + { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 +echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + ac_sub_configure= + fi + + # The recursion is here. + if test -n "$ac_sub_configure"; then + # Make the cache file name correct relative to the subdirectory. + case $cache_file in + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; + *) # Relative path. + ac_sub_cache_file=$ac_top_builddir$cache_file ;; + esac + + { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + # The eval makes quoting arguments work. + eval $ac_sub_configure $ac_sub_configure_args \ + --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || + { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 +echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} + { (exit 1); exit 1; }; } + fi + + cd $ac_popdir + done +fi + + +# $RCSfile$: end of file diff --git a/winsup/mingw/configure.in b/winsup/mingw/configure.in new file mode 100644 index 0000000000..775149b7e1 --- /dev/null +++ b/winsup/mingw/configure.in @@ -0,0 +1,86 @@ +dnl Process this file with autoconf to produce a configure script. + +dnl This file is part of winsup/mingw +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +AC_PREREQ([2.59]) +AC_INIT([mingw-runtime], [__MINGW32_VERSION]) +MINGW_AC_CONFIG_SRCDIR([$PACKAGE_VERSION], [include/_mingw.h]) + +AC_CANONICAL_SYSTEM +GCC_NO_EXECUTABLES +AC_PROG_CC + +case "$with_cross_host" in + ""|*cygwin*) all_dlls_host='all_dlls_host' + install_dlls_host='install_dlls_host';; +esac +AC_SUBST([with_cross_host]) +AC_SUBST([all_dlls_host]) +AC_SUBST([install_dlls_host]) + +AC_CHECK_TOOL([AR], [ar], [ar]) +AC_CHECK_TOOL([AS], [as], [as]) +AC_CHECK_TOOL([RANLIB], [ranlib], [ranlib]) +AC_CHECK_TOOL([LD], [ld], [ld]) +AC_CHECK_TOOL([NM], [nm], [nm]) +AC_CHECK_TOOL([OBJCOPY], [objcopy], [objcopy]) +AC_CHECK_TOOL([DLLTOOL], [dlltool], [dlltool]) +AC_CHECK_TOOL([DLLWRAP], [dlltool], [dlltool]) +AC_CHECK_TOOL([WINDRES], [windres], [windres]) + +AC_CONFIG_SUBDIRS([profile mingwex]) +HEADER_SUBDIR="" + +LIBGMON_A=libgmon.a + +W32API_INCLUDE='-I $(srcdir)/../w32api/include' + +case "$target_os" in +*cygwin*) + MNO_CYGWIN=-mno-cygwin + LIBM_A=libm.a + # Install mingw headers in mingw subdirectory. + HEADER_SUBDIR="mingw" + ;; +*) + # Build it for MSVCRT by default. + MNO_CYGWIN= + LIBM_A=libm.a + ;; +esac + +# THREAD_DLL used to be set within the above case and was mingwc for CRTDLL. +# I can find no reason to do this. +# +# FIXME: In the future I would like to change the dll name to mingwthrd to +# to match the libmingwthrd.a name. +AC_SUBST([THREAD_DLL], [mingwm]) + +AC_SUBST([MKINSTALLDIRS], [$ac_aux_dir/mkinstalldirs]) +AC_SUBST([MNO_CYGWIN]) +AC_SUBST([LIBM_A]) +AC_SUBST([LIBGMON_A]) +AC_SUBST([HEADER_SUBDIR]) +AC_SUBST([W32API_INCLUDE]) + +AC_PROG_INSTALL +MINGW_AC_MANPAGE_TRANSFORM + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT + +# $RCSfile$: end of file diff --git a/winsup/mingw/ofmt_stub.s b/winsup/mingw/ofmt_stub.s new file mode 100644 index 0000000000..388dcb45df --- /dev/null +++ b/winsup/mingw/ofmt_stub.s @@ -0,0 +1,40 @@ +/* ofmt_stub.s + * + * $Id$ + * + * A trivial stub, to replace the _get_output_format() function. + * + * _pformat() requires this function, which is provided by MSVCRT runtimes + * from msvcr80.dll onwards; add this stub to the import libraries for earlier + * versions of MSVCRT, (those which do not already advertise availability of + * any exported _get_output_format() function); this will permit _pformat() + * to transparently interoperate with all supported versions of MSVCRT. + * (Likewise for CRTDLL). + * + * Written by Keith Marshall + * Contributed to the MinGW Project, and hereby assigned to the public domain. + * + * This is free software. It is provided AS IS, in the hope that it may be + * useful. There is NO WARRANTY OF ANY KIND, not even an implied warranty of + * merchantability, nor of fitness for any particular purpose. + * + */ + .text + .p2align 1,,4 + +.globl __get_output_format + .def __get_output_format; .scl 2; .type 32; .endef + +__get_output_format: +/* + * int _get_output_format( void ); + * + * Implementation is trivial: we immediately return zero, thus matching the + * default behaviour of Microsoft's own implementation, in the absence of any + * preceding call to _set_output_format(); (if we are using this stub, then + * that entire API is unsupported, so no such prior call is possible). + */ + xorl %eax, %eax + ret + +/* $RCSfile$Revision$: end of file */ -- 2.11.0