diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2012-07-04 23:50:48 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2012-07-04 23:50:48 +0200 |
commit | 800a86871305a482a6377e6835529e6abed34161 (patch) | |
tree | fd85f5a03721a231eadc17cae9af2e9501555f10 /configure.in | |
parent | 49df5964eb6827eb3180f1dfc01c8efaa2859492 (diff) | |
parent | e056cc9d8279fdb76ffd77dfeaed4fb13f95cef0 (diff) | |
download | monitoring-plugins-800a86871305a482a6377e6835529e6abed34161.tar.gz |
Merge remote-tracking branch 'github/tokkee/sh/check_dbi'
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.in b/configure.in index bf661095..1d4ed006 100644 --- a/configure.in +++ b/configure.in @@ -255,6 +255,19 @@ fi LIBS="$_SAVEDLIBS" CPPFLAGS="$_SAVEDCPPFLAGS" +dnl Check for DBI libraries +_SAVEDLIBS="$LIBS" +AC_CHECK_LIB(dbi,dbi_initialize) +if test "$ac_cv_lib_dbi_dbi_initialize" = "yes"; then + EXTRAS="$EXTRAS check_dbi" + DBILIBS="-ldbi" + AC_SUBST(DBILIBS) +else + AC_MSG_WARN([Skipping dbi plugin]) + AC_MSG_WARN([install DBI libs to compile this plugin (see REQUIREMENTS).]) +fi +LIBS="$_SAVEDLIBS" + dnl Check for radius libraries _SAVEDLIBS="$LIBS" AC_CHECK_LIB(radiusclient,rc_read_config) |