]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Look for <openssl/hmac.h>
authorAlan T. DeKok <aland@freeradius.org>
Sat, 5 Mar 2011 06:20:21 +0000 (07:20 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 5 Mar 2011 06:20:21 +0000 (07:20 +0100)
src/modules/rlm_wimax/Makefile.in [new file with mode: 0644]
src/modules/rlm_wimax/configure.in [new file with mode: 0644]

diff --git a/src/modules/rlm_wimax/Makefile.in b/src/modules/rlm_wimax/Makefile.in
new file mode 100644 (file)
index 0000000..ef66f88
--- /dev/null
@@ -0,0 +1,11 @@
+TARGET         = @targetname@
+SRCS           = rlm_wimax.c
+HEADERS                = 
+RLM_CFLAGS     =
+RLM_LIBS       = $(OPENSSL_LIBS)
+
+include ../rules.mak
+
+$(STATIC_OBJS): $(HEADERS)
+
+$(DYNAMIC_OBJS): $(HEADERS)
diff --git a/src/modules/rlm_wimax/configure.in b/src/modules/rlm_wimax/configure.in
new file mode 100644 (file)
index 0000000..5c8b5c3
--- /dev/null
@@ -0,0 +1,41 @@
+AC_PREREQ([2.53])
+AC_INIT(rlm_wimax.c) # change 'wimax'
+AC_REVISION($Revision$)
+AC_DEFUN(modname,[rlm_wimax]) # change 'wimax'
+
+if test x$with_[]modname != xno; then
+
+       AC_PROG_CC
+       AC_PROG_CPP
+
+       dnl put configuration checks here.
+       dnl set $fail to what's missing, on fatal errors.
+       dnl use AC_MSG_WARN() on important messages.
+       AC_CHECK_HEADER(openssl/hmac.h,
+               [ wimax_cflags="$wimax_cflags" ],
+               [ fail=$fail" openssl/hmac.h" ]
+       )
+
+       targetname=modname     # keep this!  Don't change!
+else
+       targetname=            # keep this!  Don't change!
+       echo \*\*\* module modname is disabled.  # keep this!  Don't change!
+fi
+
+dnl  Don't change this section.
+if test x"$fail" != x""; then
+       if test x"${enable_strict_dependencies}" = x"yes"; then
+               AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
+       else
+               AC_MSG_WARN([silently not building ]modname[.])
+               AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
+               targetname=""
+       fi
+fi
+
+
+AC_SUBST(wimax_cflags)  # change 'wimax'
+AC_SUBST(wimax_ldflags)  # change 'wimax'
+
+AC_SUBST(targetname)  # keep this!  Don't change!
+AC_OUTPUT(Makefile)  # keep this!  Don't change!