-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure.ac
27 lines (19 loc) · 984 Bytes
/
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
AC_INIT([ejabberd_auth_couchdb], [master], [[email protected]])
AM_INIT_AUTOMAKE
AC_ERLANG_NEED_ERLC
AC_ERLANG_NEED_ERL
ERLCFLAGS="$ERLCFLAGS -I $prefix/lib/ejabberd/include\
-pz $prefix/lib/ejabberd/ebin"
ERLFLAGS="$ERLFLAGS -pz $prefix/lib/ejabberd/ebin"
ERL_CHECK_HEADER(ejabberd.hrl, [],
[AC_MSG_ERROR([ejabberd.hrl is required. Make sure PREFIX is the same as the PREFIX at which ejabberd is installed.])])
ERL_CHECK_HEADER(jlib.hrl, [],
[AC_MSG_ERROR([jlib.hrl is required. Make sure PREFIX is the same as the PREFIX at which ejabberd is installed.])])
ERL_CHECK_MODULE(gen_mod, [],
[AC_MSG_ERROR([gen_mod module is required. Make sure PREFIX is the same as the PREFIX at which ejabberd is installed.])])
ERL_CHECK_MODULE(ibrowse, [],
[AC_MSG_ERROR([ibrowse module is required. Make sure PREFIX is the same as the PREFIX at which ejabberd is installed.])])
AC_SUBST(ERLCFLAGS)
AC_SUBST(ERLFLAGS)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT