diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2007-03-25 13:55:14 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2007-03-25 13:55:14 (GMT) |
commit | ddd8e7e22e01a94326696d0e30a704d74c1a2f38 (patch) | |
tree | b4b4c0902d73dce6523aa2eb6e2c18f5d582fed1 /configure.in | |
parent | b6a9796625c49c6bd73bd64066ae5276d74b1dfd (diff) | |
download | monitoring-plugins-ddd8e7e22e01a94326696d0e30a704d74c1a2f38.tar.gz |
Reinstate --with-nagios-user/group and new --without-group-permissions ./configure options
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1649 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/configure.in b/configure.in index 3b8db84..fe8f112 100644 --- a/configure.in +++ b/configure.in | |||
@@ -15,13 +15,29 @@ AC_SUBST(RELEASE) | |||
15 | AC_PREFIX_DEFAULT(/usr/local/nagios) | 15 | AC_PREFIX_DEFAULT(/usr/local/nagios) |
16 | 16 | ||
17 | dnl Deprecated configure options | 17 | dnl Deprecated configure options |
18 | AC_ARG_WITH(nagios_user,, | ||
19 | AC_MSG_ERROR([--with-nagios-user is a deprecated option. Rerun ./configure without this option])) | ||
20 | AC_ARG_WITH(nagios_group,, | ||
21 | AC_MSG_ERROR([--with-nagios-group is a deprecated option. Rerun ./configure without this option])) | ||
22 | 18 | ||
23 | dnl Figure out how to invoke "install" and what install options to use. | 19 | |
24 | AC_PROG_INSTALL | 20 | dnl Append user (-o), group (-g), mode (-m) to install command |
21 | dnl There is an assumption that this is possible with ./configure's chosen install command | ||
22 | extra_install_args="" | ||
23 | AC_ARG_WITH(nagios_user, | ||
24 | ACX_HELP_STRING([--with-nagios-user=USER], | ||
25 | [Installs executables with this user. Defaults to install user]), | ||
26 | extra_install_args="-o $withval") | ||
27 | AC_ARG_WITH(nagios_group, | ||
28 | ACX_HELP_STRING([--with-nagios-group=GROUP], | ||
29 | [Installs executables with this group. Defaults to install user]), | ||
30 | extra_install_args="$extra_install_args -g $withval") | ||
31 | AC_ARG_WITH(world_permissions, | ||
32 | ACX_HELP_STRING([--without-world-permissions], | ||
33 | [Installs executables without world permissions])) | ||
34 | |||
35 | if test "x$with_world_permissions" = xno ; then | ||
36 | extra_install_args="$extra_install_args -m 0550" | ||
37 | fi | ||
38 | |||
39 | INSTALL="$INSTALL $extra_install_args" | ||
40 | INSTALL_STRIP_PROGRAM="$INSTALL_STRIP_PROGRAM $extra_install_args" | ||
25 | AC_SUBST(INSTALL) | 41 | AC_SUBST(INSTALL) |
26 | 42 | ||
27 | AC_PROG_CC | 43 | AC_PROG_CC |