[Nagiosplug-checkins] nagiosplug configure.in,1.136,1.137

Stanley Hopcroft stanleyhopcroft at users.sourceforge.net
Fri Jan 21 01:25:01 CET 2005


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24970

Modified Files:
	configure.in 
Log Message:
Set arch specifc preprocessor symbols in config.h. TEMPORARY hack for check_dhcp.c [on FreeBSD 4: /check_dhcp -i fxp0 -> DHCP ok: Received 1 DHCPOFFER(s), max lease time = 259200 sec.

Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.136
retrieving revision 1.137
diff -u -d -r1.136 -r1.137
--- configure.in	14 Jan 2005 10:59:49 -0000	1.136
+++ configure.in	21 Jan 2005 09:24:03 -0000	1.137
@@ -1465,6 +1465,21 @@
 		[AC_MSG_RESULT(yes)],
 		[NEED_VA_LIST=-DNEED_VA_LIST AC_SUBST(NEED_VA_LIST) AC_MSG_RESULT(no)])
 
+case $host in
+	*bsd*)
+		AC_DEFINE(__bsd__,1,[bsd specific code in check_dhcp.c])
+	;;
+	*linux*)
+		AC_DEFINE(__linux__,1,[sun specific code in check_dhcp.c])
+	;;
+	*sun* | solaris*)
+		AC_DEFINE(__sun__,1,[sun specific code in check_dhcp.c])
+	;;
+	*hpux*)  
+		AC_DEFINE(__hpux__,1,[hpux specific code in check_dhcp.c])
+	;;
+esac
+
 AC_SUBST(EXTRAS)
 AC_SUBST(EXTRA_NETOBJS)
 AC_SUBST(DEPLIBS)





More information about the Commits mailing list