-
Notifications
You must be signed in to change notification settings - Fork 8
/
configure.ac
75 lines (62 loc) · 1.79 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
## configure.ac
##
## Process this file with autoconf to produce a configure script.
##
## Boilerplate: standard boilerplate code
##
AC_INIT([radius], [1.4.9], [[email protected]])
AC_COPYRIGHT([Copyright (c) 2016-2022 SigScale Global Inc])
AC_PREREQ(2.63)
AC_LANG([Erlang])
AC_CONFIG_SRCDIR([src/radius_app.erl])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE
##
## Options: control options to configure, support code for the options
##
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--disable-debug], [disable debugging (default is enabled)])])
##
## Programs: check for programs needed by the configure process,
## the build process, or by one of the programs being built
##
AC_ERLANG_NEED_ERL
AC_ERLANG_NEED_ERLC
if test -z "${ERLCFLAGS}" ; then
ERLCFLAGS="-W -v"
fi
if test "x$enable_debug" != xno; then
ERLCFLAGS="$ERLCFLAGS +debug_info"
fi
AC_ERLANG_SUBST_LIB_DIR
if test -z "${ERLANG_INSTALL_LIB_DIR}" ; then
ERLANG_INSTALL_LIB_DIR=$ERLANG_LIB_DIR
fi
AC_PROG_INSTALL
AC_ERLANG_SUBST_INSTALL_LIB_DIR
appdir=$ERLANG_INSTALL_LIB_DIR/$PACKAGE_NAME-$PACKAGE_VERSION
beamdir=$ERLANG_INSTALL_LIB_DIR/$PACKAGE_NAME-$PACKAGE_VERSION/ebin
eincludedir=$ERLANG_INSTALL_LIB_DIR/$PACKAGE_NAME-$PACKAGE_VERSION/include
docdir=$ERLANG_INSTALL_LIB_DIR/$PACKAGE_NAME-$PACKAGE_VERSION/doc
AC_SUBST(appdir)
AC_SUBST(beamdir)
AC_SUBST(eincludedir)
##
## Libraries: check for libraries
##
AC_ERLANG_CHECK_LIB([crypto], [], [AC_MSG_ERROR([crypto was not found!])])
##
## Headers: check for header files
##
##
## Typedefs & Structures: check for typedefs, structures,
## and compiler characteristics.
##
##
## Functions: check for library functions
##
##
## Output: create output files
##
AC_OUTPUT([Makefile include/Makefile ebin/Makefile
doc/Makefile test/Makefile ebin/$PACKAGE_NAME.appup])