Debian Codegraph @

check_mysql_health/check_mysql_health-2.2.2/configure.ac

raw
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.69])
5 AC_INIT(check_mysql_health,2.2.2)
6 AM_INIT_AUTOMAKE([1.9 tar-pax])
7 AM_MAINTAINER_MODE([disable])
8 AC_CANONICAL_HOST
9 RELEASE=1
10 AC_SUBST(RELEASE)
11
12 AC_PREFIX_DEFAULT(/usr/local/nagios)
13
14 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"
15 AC_SUBST(WARRANTY)
16
17 SUPPORT="Send email to [email protected] 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"
18 AC_SUBST(SUPPORT)
19
20 AC_ARG_WITH(nagios_user,
21 ACX_HELP_STRING([--with-nagios-user=USER],
22 [set user name to run nagios]),
23 with_nagios_user=$withval,
24 with_nagios_user=nagios)
25 AC_ARG_WITH(nagios_group,
26 ACX_HELP_STRING([--with-nagios-group=GROUP],
27 [set group name to run nagios]),
28 with_nagios_group=$withval,
29 with_nagios_group=nagios)
30 AC_SUBST(with_nagios_user)
31 AC_SUBST(with_nagios_group)
32 INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group"
33 AC_SUBST(INSTALL_OPTS)
34
35 AC_ARG_WITH(statefiles_dir,
36 ACX_HELP_STRING([--with-statefiles-dir=PATH],
37 [sets directory for the state files (default=/var/tmp/check_mysql_health)]),
38 with_statefiles_dir=$withval,
39 with_statefiles_dir=/var/tmp/check_mysql_health)
40 AC_SUBST(STATEFILES_DIR, $with_statefiles_dir)
41 echo variable with_statefiles_dir is $with_statefiles_dir
42
43 AC_ARG_WITH(mymodules_dir,
44 ACX_HELP_STRING([--with-mymodules-dir=PATH],
45 [sets directory for own extensions which will be included during the build process (default=/usr/local/nagios/libexec)]),
46 with_mymodules_dir=$withval,
47 with_mymodules_dir=/usr/local/nagios/libexec)
48 AC_SUBST(MYMODULES_DIR, $with_mymodules_dir)
49 echo variable with_mymodules_dir is $with_mymodules_dir
50
51 AC_ARG_WITH(mymodules_dyn_dir,
52 ACX_HELP_STRING([--with-mymodules-dyn-dir=PATH],
53 [sets directory for own extensions which will be included at runtime (default=/usr/local/nagios/libexec)]),
54 with_mymodules_dyn_dir=$withval,
55 with_mymodules_dyn_dir=/usr/local/nagios/libexec)
56 AC_SUBST(MYMODULES_DYN_DIR, $with_mymodules_dyn_dir)
57 echo variable with_mymodules_dyn_dir is $with_mymodules_dyn_dir
58
59
60 EXTRAS=
61 # PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH
62
63
64 # Checks for programs.
65 AC_PROG_MAKE_SET
66 # Figure out how to invoke "install" and what install options to use.
67 AC_PROG_INSTALL
68 AC_SUBST(INSTALL)
69 AC_PATH_PROG(ECHO,echo)
70 AC_PATH_PROG(SED,sed)
71 AC_PATH_PROG(GREP,grep)
72 AC_PATH_PROG(CAT,cat)
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 # allow them to override the path of perl
78 AC_ARG_WITH(perl,
79 ACX_HELP_STRING([--with-perl=PATH],
80 [sets path to perl executable]),
81 with_perl=$withval,with_perl=$PERL)
82 AC_SUBST(PERL, $with_perl)
83
84 # Checks for libraries.
85
86 # Checks for header files.
87
88 # Checks for typedefs, structures, and compiler characteristics.
89
90 # Checks for library functions.
91
92 AC_CONFIG_FILES([Makefile
93 plugins-scripts/Makefile
94 plugins-scripts/subst
95 t/Makefile])
96 AC_OUTPUT
97 ACX_FEATURE([with],[perl])
98 ACX_FEATURE([with],[statefiles-dir])
99 ACX_FEATURE([with],[nagios-user])
100 ACX_FEATURE([with],[nagios-group])
101 ACX_FEATURE([with],[mymodules-dir])
102 ACX_FEATURE([with],[mymodules-dyn-dir])
103