]> granicus.if.org Git - apache/commitdiff
Make OS selection work for non-UNIX cases
authorSascha Schumann <sascha@apache.org>
Tue, 11 Jan 2000 17:28:28 +0000 (17:28 +0000)
committerSascha Schumann <sascha@apache.org>
Tue, 11 Jan 2000 17:28:28 +0000 (17:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84430 13f79535-47bb-0310-9956-ffa450edef68

os/config.m4

index eb160d1948589cb14f1e8b9bc0fdf208b0be4dce..4bd86a3dd68aee6484d21ab833e41add7cde4822 100644 (file)
@@ -1,8 +1,15 @@
-AC_MSG_CHECKING(which OS this is)
+AC_MSG_CHECKING(for target platform)
+
+PLATFORM=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`
+
+case "$PLATFORM" in
+*beos*)
+  OS="beos";;
+*)
+  OS="unix";;
+esac
 
-dnl ## XXX - I'm not sure, but this might not handle the non-Unix case yet
-OS=unix
 OS_DIR=os/$OS
 
-AC_MSG_RESULT([$OS])
-APACHE_FAST_OUTPUT(os/$OS/Makefile)
+AC_MSG_RESULT($OS)
+APACHE_FAST_OUTPUT($OS_DIR/Makefile)