[PATCH 06/13] build: drop completely linux detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx>

from now on there are no unsupported OS'es...

Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx>
---
:100644 100644 3181c9c... 3d42942... M	configure.ac
 configure.ac |   16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3181c9c..3d42942 100644
--- a/configure.ac
+++ b/configure.ac
@@ -337,13 +337,7 @@ AM_CONDITIONAL(BUILD_QDEVICES, test x$enable_qdevices = xyes)
 
 # OS detection
 # THIS SECTION MUST DIE!
-have_linux="no"
 case "$host_os" in
-	*linux*)
-		AC_DEFINE_UNQUOTED([COROSYNC_LINUX], [1],
-				   [Compiling for Linux platform])
-		have_linux="yes"
-	;;
 	darwin*)
 		AC_DEFINE_UNQUOTED([COROSYNC_DARWIN], [1],
 				   [Compiling for Darwin platform])
@@ -366,9 +360,6 @@ case "$host_os" in
 		AC_DEFINE_UNQUOTED([TS_CLASS], [1],
 				   [Prevent being scheduled RR])
 	;;
-	*)
-		AC_MSG_ERROR([Unsupported OS? hmmmm])
-	;;
 esac
 
 # *FLAGS handling goes here
@@ -419,11 +410,8 @@ if test "x${enable_monitoring}" = xyes; then
 fi
 
 if test "x${enable_watchdog}" = xyes; then
-	if test "x${have_linux}" = xno; then
-		AC_MSG_ERROR(watchdog is only supported on linux systems)
-	fi
-	AC_CHECK_HEADER(linux/watchdog.h,,AC_MSG_ERROR(watchdog requires linux/watchdog.h))
-	AC_CHECK_HEADER(linux/reboot.h,,AC_MSG_ERROR(watchdog requires linux/reboot.h))
+	AC_CHECK_HEADER([linux/watchdog.h], [], [AC_MSG_ERROR([watchdog requires linux/watchdog.h])])
+	AC_CHECK_HEADER([linux/reboot.h], [], [AC_MSG_ERROR([watchdog requires linux/reboot.h])])
 	AC_DEFINE_UNQUOTED([HAVE_WATCHDOG], 1, [have watchdog])
 	PACKAGE_FEATURES="$PACKAGE_FEATURES watchdog"
 fi
-- 
1.7.7.6

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux