~ubuntu-branches/ubuntu/trusty/nagios-plugins-contrib/trusty-proposed

« back to all changes in this revision

Viewing changes to check_mysql_health/check_mysql_health-2.1.7/configure.in

  • Committer: Package Import Robot
  • Author(s): Bernd Zeimetz
  • Date: 2013-05-21 22:11:50 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130521221150-k5bda5v5euvt7wg9
Tags: 6.20130521
* [e68c82e1] check_raid: do not run hpacucli if cciss_vol_status is available.
* [4a1c57e8] Also support tw-cli as additional name for the 3ware binary.
  Thanks to Dennis Hoppe
* [eb5e1c7c] Add /run/ to the check_libs ignore file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Process this file with autoconf to produce a configure script.
2
 
AC_REVISION ($Revision: 1.150 $)
3
 
AC_PREREQ(2.58)
4
 
AC_INIT(check_mysql_health,2.1.7)
5
 
AM_INIT_AUTOMAKE([1.9 tar-pax])
6
 
AC_CANONICAL_HOST
7
 
 
8
 
RELEASE=1
9
 
AC_SUBST(RELEASE)
10
 
 
11
 
AC_PREFIX_DEFAULT(/usr/local/nagios)
12
 
 
13
 
dnl Figure out how to invoke "install" and what install options to use.
14
 
AC_PROG_INSTALL
15
 
AC_SUBST(INSTALL)
16
 
 
17
 
dnl AC_PROG_CC
18
 
dnl AC_PROG_CPP
19
 
dnl AC_PROG_GCC_TRADITIONAL
20
 
dnl AC_PROG_RANLIB
21
 
 
22
 
AC_PROG_MAKE_SET
23
 
 
24
 
WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n"
25
 
AC_SUBST(WARRANTY)
26
 
 
27
 
SUPPORT="Send email to gerhard.lausser@consol.de if you have questions\nregarding use of this software.\nPlease include version information with all correspondence (when possible,\nuse output from the --version option of the plugin itself).\n"
28
 
AC_SUBST(SUPPORT)
29
 
 
30
 
AC_ARG_WITH(nagios_user,
31
 
  ACX_HELP_STRING([--with-nagios-user=USER],
32
 
    [set user name to run nagios]),
33
 
  with_nagios_user=$withval,
34
 
  with_nagios_user=nagios)
35
 
AC_ARG_WITH(nagios_group,
36
 
  ACX_HELP_STRING([--with-nagios-group=GROUP],
37
 
    [set group name to run nagios]),
38
 
  with_nagios_group=$withval,
39
 
  with_nagios_group=nagios)
40
 
AC_SUBST(with_nagios_user)
41
 
AC_SUBST(with_nagios_group)
42
 
INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group"
43
 
AC_SUBST(INSTALL_OPTS)
44
 
 
45
 
AC_ARG_WITH(statefiles_dir,
46
 
  ACX_HELP_STRING([--with-statefiles-dir=PATH],
47
 
    [sets directory for the state files (default=/var/tmp/check_mysql_health)]),
48
 
  with_statefiles_dir=$withval,
49
 
  with_statefiles_dir=/var/tmp/check_mysql_health)
50
 
AC_SUBST(STATEFILES_DIR, $with_statefiles_dir)
51
 
echo variable with_statefiles_dir is $with_statefiles_dir
52
 
 
53
 
AC_ARG_WITH(mymodules_dir,
54
 
  ACX_HELP_STRING([--with-mymodules-dir=PATH],
55
 
    [sets directory for own extensions which will be included during the build process (default=/usr/local/nagios/libexec)]),
56
 
  with_mymodules_dir=$withval,
57
 
  with_mymodules_dir=/usr/local/nagios/libexec)
58
 
AC_SUBST(MYMODULES_DIR, $with_mymodules_dir)
59
 
echo variable with_mymodules_dir is $with_mymodules_dir
60
 
 
61
 
AC_ARG_WITH(mymodules_dyn_dir,
62
 
  ACX_HELP_STRING([--with-mymodules-dyn-dir=PATH],
63
 
    [sets directory for own extensions which will be included at runtime (default=/usr/local/nagios/libexec)]),
64
 
  with_mymodules_dyn_dir=$withval,
65
 
  with_mymodules_dyn_dir=/usr/local/nagios/libexec)
66
 
AC_SUBST(MYMODULES_DYN_DIR, $with_mymodules_dyn_dir)
67
 
echo variable with_mymodules_dyn_dir is $with_mymodules_dyn_dir
68
 
 
69
 
EXTRAS=
70
 
dnl PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH
71
 
 
72
 
dnl Checks for programs.
73
 
AC_PATH_PROG(SH,sh)
74
 
AC_PATH_PROG(PERL,perl)
75
 
AC_PATH_PROG(GZIP,gzip)
76
 
AC_PATH_PROGS(AWK,gawk nawk /usr/xpg4/bin/awk awk)
77
 
AC_PATH_PROG(GREP,grep)
78
 
AC_PATH_PROG(ECHO,echo)
79
 
AC_PATH_PROG(SED,sed)
80
 
AC_PATH_PROG(CAT,cat)
81
 
 
82
 
dnl allow them to override the path of perl
83
 
AC_ARG_WITH(perl,
84
 
  ACX_HELP_STRING([--with-perl=PATH],
85
 
    [sets path to perl executable]),
86
 
  with_perl=$withval,with_perl=$PERL)
87
 
AC_SUBST(PERL, $with_perl)
88
 
 
89
 
AC_OUTPUT(
90
 
  Makefile 
91
 
  plugins-scripts/Makefile 
92
 
  plugins-scripts/subst 
93
 
  t/Makefile
94
 
)
95
 
 
96
 
ACX_FEATURE([with],[perl])
97
 
ACX_FEATURE([with],[statefiles-dir])
98
 
ACX_FEATURE([with],[nagios-user])
99
 
ACX_FEATURE([with],[nagios-group])
100
 
ACX_FEATURE([with],[mymodules-dir])
101
 
ACX_FEATURE([with],[mymodules-dyn-dir])