summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac23
1 files changed, 14 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index 244df427..f6ead580 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.59) 2AC_PREREQ(2.59)
3AC_INIT(monitoring-plugins,1.5) 3AC_INIT(monitoring-plugins,2.0)
4AC_CONFIG_SRCDIR(NPTest.pm) 4AC_CONFIG_SRCDIR(NPTest.pm)
5AC_CONFIG_FILES([gl/Makefile 5AC_CONFIG_FILES([gl/Makefile
6 monitoring-plugins.spec]) 6 monitoring-plugins.spec])
@@ -274,20 +274,27 @@ AC_ARG_WITH([radius], [AS_HELP_STRING([--without-radius], [Skips the radius plug
274dnl Check for radius libraries 274dnl Check for radius libraries
275AS_IF([test "x$with_radius" != "xno"], [ 275AS_IF([test "x$with_radius" != "xno"], [
276 _SAVEDLIBS="$LIBS" 276 _SAVEDLIBS="$LIBS"
277 AC_CHECK_LIB(radiusclient,rc_read_config) 277 AC_CHECK_LIB(freeradius-client,rc_read_config)
278 if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then 278 if test "$ac_cv_lib_freeradius_client_rc_read_config" = "yes"; then
279 EXTRAS="$EXTRAS check_radius\$(EXEEXT)" 279 EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
280 RADIUSLIBS="-lradiusclient" 280 RADIUSLIBS="-lfreeradius-client"
281 AC_SUBST(RADIUSLIBS) 281 AC_SUBST(RADIUSLIBS)
282 else 282 else
283 AC_CHECK_LIB(radiusclient-ng,rc_read_config) 283 AC_CHECK_LIB(radiusclient-ng,rc_read_config)
284 if test "$ac_cv_lib_radiusclient_ng_rc_read_config" = "yes"; then 284 if test "$ac_cv_lib_radiusclient_ng_rc_read_config" = "yes"; then
285 EXTRAS="$EXTRAS check_radius\$(EXEEXT)" 285 EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
286 RADIUSLIBS="-lradiusclient-ng" 286 RADIUSLIBS="-lradiusclient-ng"
287 AC_SUBST(RADIUSLIBS) 287 AC_SUBST(RADIUSLIBS)
288 else 288 else
289 AC_MSG_WARN([Skipping radius plugin]) 289 AC_CHECK_LIB(radiusclient,rc_read_config)
290 AC_MSG_WARN([install radius libs to compile this plugin (see REQUIREMENTS).]) 290 if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then
291 EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
292 RADIUSLIBS="-lradiusclient"
293 AC_SUBST(RADIUSLIBS)
294 else
295 AC_MSG_WARN([Skipping radius plugin])
296 AC_MSG_WARN([install radius libs to compile this plugin (see REQUIREMENTS).])
297 fi
291 fi 298 fi
292 fi 299 fi
293 LIBS="$_SAVEDLIBS" 300 LIBS="$_SAVEDLIBS"
@@ -509,8 +516,6 @@ dnl check for gnutls if openssl isn't found (or is disabled)
509if test ! "$FOUNDOPENSSL" = "yes" && test ! "$with_gnutls" = "no"; then 516if test ! "$FOUNDOPENSSL" = "yes" && test ! "$with_gnutls" = "no"; then
510 if test ! "$with_gnutls" = ""; then 517 if test ! "$with_gnutls" = ""; then
511 CPPFLAGS="$CPPFLAGS -I${with_gnutls}/include" 518 CPPFLAGS="$CPPFLAGS -I${with_gnutls}/include"
512 elif test ! "$LIBGNUTLS_CONFIG" = ""; then
513 CPPFLAGS="$CPPFLAGS -I`$LIBGNUTLS_CONFIG --prefix`"
514 fi 519 fi
515 AC_CHECK_HEADERS([gnutls/openssl.h],FOUNDGNUTLS="yes",) 520 AC_CHECK_HEADERS([gnutls/openssl.h],FOUNDGNUTLS="yes",)
516 if test "$FOUNDGNUTLS" = "yes"; then 521 if test "$FOUNDGNUTLS" = "yes"; then