+2003-03-30 Bruno Haible <bruno@clisp.org>
+
+ * configure.ac: Add checks for <pwd.h> and chown().
+
2003-03-17 Bruno Haible <bruno@clisp.org>
Native Woe32/MSVC support.
* Makefile.msvc: New file.
* README.woe32: New file.
- * windows/gettextlib.exp: New file.
+ * windows/gettextlib.def: New file.
* windows/gettextlib.rc: New file.
- * windows/gettextsrc.exp: New file.
+ * windows/gettextsrc.def: New file.
* windows/gettextsrc.rc: New file.
- * Makefile.am (EXTRA_DIST): Add them and config.h.msvc.
- (config.h.msvc, intl/libgnuintl.h.msvc-shared): New rules.
+ * Makefile.am (EXTRA_DIST): Add them and config.h.msvc,
+ windows/alloca.h, windows/fnmatch.h, windows/stdbool.h.
+ (config.h.msvc, intl/libgnuintl.h.msvc-shared, windows/stdbool.h): New
+ rules.
+ * configure.ac: Invoke AC_TYPE_MODE_T.
2003-02-28 Bruno Haible <bruno@clisp.org>
# Woe32 support.
-config.h.msvc: config.h.in
+config.h.msvc: config.h.in ../version.sh
sed -e 's/#undef ENABLE_NLS$$/#define ENABLE_NLS 1/' \
-e 's/#undef ENABLE_RELOCATABLE$$/#define ENABLE_RELOCATABLE 1/' \
-e 's/#undef HAVE_ALLOCA$$/#define HAVE_ALLOCA 1/' \
+ -e 's/#undef HAVE_DECL_WCWIDTH$$/#define HAVE_DECL_WCWIDTH 0/' \
-e 's/#undef HAVE_ENVIRON_DECL$$/#define HAVE_ENVIRON_DECL 1/' \
-e 's/#undef HAVE_ERRNO_DECL$$/#define HAVE_ERRNO_DECL 1/' \
-e 's/#undef HAVE_FCNTL_H$$/#define HAVE_FCNTL_H 1/' \
-e 's/#undef STDC_HEADERS$$/#define STDC_HEADERS 1/' \
-e 's/#undef fnmatch$$/#define fnmatch rpl_fnmatch/' \
-e 's/#undef getline$$/#define getline rpl_getline/' \
+ -e 's/#undef inline$$/#define inline/' \
+ -e 's/#undef mode_t$$/#define mode_t int/' \
-e 's/#undef pid_t$$/#define pid_t int/' \
-e 's/#undef ssize_t$$/#define ssize_t int/' \
-e 's/#undef uintmax_t$$/#define uintmax_t unsigned long/' \
+ -e 's/#undef PACKAGE$$/#define PACKAGE "gettext-tools"/' \
+ -e 's/#undef VERSION$$/#define VERSION "$(VERSION)"/' \
-e '/#undef INSTALLPREFIX$$/d' \
< $< > $@
-EXTRA_DIST += README.woe32 Makefile.msvc config.h.msvc windows/gettextlib.exp windows/gettextsrc.exp windows/gettextlib.rc windows/gettextsrc.rc
+windows/stdbool.h: lib/stdbool.h.in
+ sed -e 's/@''HAVE__BOOL''@/0/' < $< > $@
+
+all-local : windows/stdbool.h
+
+EXTRA_DIST += README.woe32 Makefile.msvc config.h.msvc windows/alloca.h windows/fnmatch.h windows/stdbool.h windows/gettextlib.def windows/gettextsrc.def windows/gettextlib.rc windows/gettextsrc.rc
dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS(limits.h malloc.h string.h unistd.h utime.h values.h)
+AC_CHECK_HEADERS(limits.h malloc.h pwd.h string.h unistd.h utime.h values.h)
gt_STDBOOL_H
dnl Checks for typedefs, structures, and compiler characteristics.
jm_AC_TYPE_UINTMAX_T
gt_TYPE_SSIZE_T
AC_TYPE_PID_T
+AC_TYPE_MODE_T
dnl Checks for library functions.
gl_FUNC_ALLOCA
AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([getcwd posix_spawn putc_unlocked raise select strerror \
+AC_CHECK_FUNCS([chown getcwd posix_spawn putc_unlocked raise select strerror \
strtoul uname utime utimes])
AC_REPLACE_FUNCS([memmove memset stpcpy strcspn \
strcasecmp strncasecmp strpbrk strstr vasprintf])