summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2003-05-02 01:44:59 +0000
committerPaul Smith <psmith@gnu.org>2003-05-02 01:44:59 +0000
commit569d43ad102ea3ccd02a46128dbbc8020bf3bf05 (patch)
tree5cf133d3615d2674df02234f6d5708d22175a67d /config
parent502c607256d1e3633049ca545d060d0edc4daf73 (diff)
downloadmake-569d43ad102ea3ccd02a46128dbbc8020bf3bf05.tar.gz
- Fix bug #1405: allow multiple pattern-specific variables to match a target.
- Fix some uncleanliness about the implementation of patterns-specific vars. - Some enhancements to the OS/2 port.
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog5
-rw-r--r--config/dospaths.m421
2 files changed, 26 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index 9755ae99..31921775 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-30 Paul D. Smith <psmith@gnu.org>
+
+ * dospaths.m4: New macro to test for DOS-style pathnames, based on
+ coreutils 5.0 "dos.m4" by Jim Meyering.
+
2002-04-21 gettextize <bug-gnu-gettext@gnu.org>
* codeset.m4: New file, from gettext-0.11.1.
diff --git a/config/dospaths.m4 b/config/dospaths.m4
new file mode 100644
index 00000000..3cadbbfc
--- /dev/null
+++ b/config/dospaths.m4
@@ -0,0 +1,21 @@
+# Test if the system uses DOS-style pathnames (drive specs and backslashes)
+# By Paul Smith <psmith@gnu.org>. Based on dos.m4 by Jim Meyering.
+
+AC_DEFUN([pds_AC_DOS_PATHS],
+ [
+ AC_CACHE_CHECK([whether system uses MSDOS-style paths], [ac_cv_dos_paths],
+ [
+ AC_COMPILE_IFELSE([
+#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__
+neither MSDOS nor Windows nor OS2
+#endif
+],
+ [ac_cv_dos_paths=yes],
+ [ac_cv_dos_paths=no])
+ ])
+
+ if test x"$ac_cv_dos_paths" = xyes; then
+ AC_DEFINE_UNQUOTED([HAVE_DOS_PATHS], 1,
+ [Define if the system uses DOS-style pathnames.])
+ fi
+ ])