Commit 2968bd60984742c11f98ebf9ffc728793fcbf242

suzuki toshiya 2011-11-30T23:25:38

Fix Savannah bug #34728 (`make devel' on Mac OS X). * builds/toplevel.mk: Check `/dev/null' to identify the Unix- like systems without `init' nor `hurd' (e.g. Mac OS X >= 10.4). * builds/unix/detect.mk: Ditto.

diff --git a/ChangeLog b/ChangeLog
index 30e6762..ad8469e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-11-30  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
 
+	Fix Savannah bug #34728 (`make devel' on Mac OS X).
+
+	* builds/toplevel.mk: Check `/dev/null' to identify the Unix-
+	like systems without `init' nor `hurd' (e.g. Mac OS X >= 10.4).
+	* builds/unix/detect.mk: Ditto.
+
+2011-11-30  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
 	[apinames] Fix the overflow of signed integer hash.
 
 	* src/tools/apinames.c (names_add): Change the type of `h' from
diff --git a/builds/toplevel.mk b/builds/toplevel.mk
index d552a4a..18bcef2 100644
--- a/builds/toplevel.mk
+++ b/builds/toplevel.mk
@@ -122,6 +122,7 @@ ifdef check_platform
   #
   is_unix := $(strip $(wildcard /sbin/init) \
                      $(wildcard /usr/sbin/init) \
+                     $(wildcard /dev/null) \
                      $(wildcard /hurd/auth))
   ifneq ($(is_unix),)
 
diff --git a/builds/unix/detect.mk b/builds/unix/detect.mk
index e74af57..b2ae4f4 100644
--- a/builds/unix/detect.mk
+++ b/builds/unix/detect.mk
@@ -20,6 +20,7 @@ ifeq ($(PLATFORM),ansi)
   #
   is_unix := $(strip $(wildcard /sbin/init) \
                      $(wildcard /usr/sbin/init) \
+                     $(wildcard /dev/null) \
                      $(wildcard /hurd/auth))
   ifneq ($(is_unix),)