blob: 91ac4ff818e9365390b74fc77a29b7385674b2d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
dnl Macro to set the module name and other useful common functions
dnl
dnl Usages:
dnl FR_INIT_MODULE([rlm_example])
dnl FR_INIT_MODULE([rlm_example], [the example module])
dnl
AC_DEFUN([FR_INIT_MODULE],
[
AC_DEFUN([modname],$1)
AC_DEFUN([modname_useropt],[m4_bpatsubst([]modname,[[-+.]],[_])])
AC_ARG_WITH([$1],
[AS_HELP_STRING([--without-$1],[build without ]ifelse([$2],[],[$1],[$2]))])
])
AC_DEFUN([FR_INIT_LIBRARY], m4_defn([FR_INIT_MODULE]))
|