mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 08:42:17 -04:00
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.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1093 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
5e2927a2b8
commit
fc39dadf98
1 changed files with 15 additions and 0 deletions
15
configure.in
15
configure.in
|
|
@ -1465,6 +1465,21 @@ AC_TRY_COMPILE([#ifdef __STDC__
|
|||
[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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue