[monitoring-plugins] configure.ac: Change RADIUS library preferences

Holger Weiss git at monitoring-plugins.org
Sun Jun 22 21:50:08 CEST 2014


 Module: monitoring-plugins
 Branch: master
 Commit: 0170bc48d17dbda24f681a24844fc0bbedad8477
 Author: Holger Weiss <holger at zedat.fu-berlin.de>
   Date: Sun Jun 22 14:12:55 2014 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=0170bc4

configure.ac: Change RADIUS library preferences

Prefer the FreeRADIUS Client library over radiusclient-ng, and prefer
that one over the original radiusclient library.

---

 configure.ac | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9aaa515..87d43fd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -274,22 +274,22 @@ AC_ARG_WITH([radius], [AS_HELP_STRING([--without-radius], [Skips the radius plug
 dnl Check for radius libraries
 AS_IF([test "x$with_radius" != "xno"], [
   _SAVEDLIBS="$LIBS"
-  AC_CHECK_LIB(radiusclient,rc_read_config)
-  if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then
+  AC_CHECK_LIB(freeradius-client,rc_read_config)
+  if test "$ac_cv_lib_freeradius_client_rc_read_config" = "yes"; then
     EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
-  	RADIUSLIBS="-lradiusclient"
+    RADIUSLIBS="-lfreeradius-client"
     AC_SUBST(RADIUSLIBS)
   else
     AC_CHECK_LIB(radiusclient-ng,rc_read_config)
     if test "$ac_cv_lib_radiusclient_ng_rc_read_config" = "yes"; then
       EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
-    	  RADIUSLIBS="-lradiusclient-ng"
+      RADIUSLIBS="-lradiusclient-ng"
       AC_SUBST(RADIUSLIBS)
     else
-      AC_CHECK_LIB(freeradius-client,rc_read_config)
-      if test "$ac_cv_lib_freeradius_client_rc_read_config" = "yes"; then
+      AC_CHECK_LIB(radiusclient,rc_read_config)
+      if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then
         EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
-        RADIUSLIBS="-lfreeradius-client"
+        RADIUSLIBS="-lradiusclient"
         AC_SUBST(RADIUSLIBS)
       else
         AC_MSG_WARN([Skipping radius plugin])



More information about the Commits mailing list