Browse code

Makefile.radius: option to use freeradius-client library

- using FREERADIUS=1 turns on usage of freeradius-client library instead
of radiusclient-ng
- kamailio radius modules have support for freeradius-client, library
which is included in opensuse instead of radiusclient-ng

Daniel-Constantin Mierla authored on 31/03/2011 12:08:37
Showing 1 changed files
... ...
@@ -6,9 +6,11 @@
6 6
 #
7 7
 # (To be included from Makefiles of radius related modules)
8 8
 #
9
-# The purpose of this makefile is to perform radiusclient library
10
-# detection and setup library and include paths in DEFS and LIBS
11
-# variables. In addition RADIUSCLIENT_NG_4 will be defined when
9
+# The purpose of this makefile is to perform RADIUS client library
10
+# selection (radiusclient-ng or freeradius-client) and setup
11
+# library and include paths in DEFS and LIBS variables.
12
+#
13
+# In addition RADIUSCLIENT_NG_4 will be defined when
12 14
 # libradiusclient-ng version 4 is detected. That means the module
13 15
 # should include radiusclient.h, otherwise radiusclient-ng.h
14 16
 # should be included. Variable RADIUSCLIENT_LIB contains the
... ...
@@ -21,6 +23,15 @@
21 21
 #
22 22
 INCLUDES+=-I$(LOCALBASE)/include
23 23
 
24
+ifeq ($(FREERADIUS),1)
25
+
26
+# - freeradius-client library
27
+DEFS+= -DUSE_FREERADIUS
28
+RADIUSCLIENT_LIB=freeradius-client
29
+
30
+else
31
+
32
+# - radiusclient-ng v5 or v4 library
24 33
 ifneq ($(radiusclient_ng), 4)
25 34
 
26 35
 # radiusclient-ng 5+
... ...
@@ -34,4 +45,6 @@ RADIUSCLIENT_LIB=radiusclient
34 34
 
35 35
 endif
36 36
 
37
+endif
38
+
37 39
 LIBS=-L$(LOCALBASE)/lib -l$(RADIUSCLIENT_LIB)