2003-10-17 21:15:38 +02:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_PREREQ(2.53)
|
|
|
|
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
|
|
|
|
#locating erlang
|
|
|
|
AM_WITH_ERLANG
|
|
|
|
#locating iconv
|
|
|
|
AM_ICONV
|
|
|
|
#locating libexpat
|
|
|
|
AM_WITH_EXPAT
|
2006-01-19 03:17:31 +01:00
|
|
|
#locating zlib
|
|
|
|
AM_WITH_ZLIB
|
2003-10-17 21:15:38 +02:00
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
|
2006-02-02 17:59:38 +01:00
|
|
|
# Change default prefix
|
|
|
|
AC_PREFIX_DEFAULT /
|
|
|
|
|
2003-10-17 21:15:38 +02:00
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
|
|
|
AC_MOD_ENABLE(mod_pubsub, yes)
|
|
|
|
AC_MOD_ENABLE(mod_irc, yes)
|
|
|
|
AC_MOD_ENABLE(mod_muc, yes)
|
2003-11-23 21:11:21 +01:00
|
|
|
AC_MOD_ENABLE(eldap, yes)
|
2004-03-12 14:36:27 +01:00
|
|
|
AC_MOD_ENABLE(web, yes)
|
2004-08-05 22:46:24 +02:00
|
|
|
AC_MOD_ENABLE(tls, yes)
|
2005-05-23 22:27:17 +02:00
|
|
|
AC_MOD_ENABLE(odbc, no)
|
2006-01-19 03:17:31 +01:00
|
|
|
AC_MOD_ENABLE(ejabberd_zlib, yes)
|
2003-10-17 21:15:38 +02:00
|
|
|
|
2005-12-11 20:48:31 +01:00
|
|
|
AC_ARG_ENABLE(roster_gateway_workaround,
|
|
|
|
[ --enable-roster-gateway-workaround Turn on workaround for processing gateway subscriptions],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) roster_gateway_workaround=true ;;
|
|
|
|
no) roster_gateway_workaround=false ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-roster-gateway-workaround) ;;
|
|
|
|
esac],[roster_gateway_workaround=false])
|
|
|
|
AC_SUBST(roster_gateway_workaround)
|
|
|
|
|
2003-10-17 21:15:38 +02:00
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
$make_mod_irc
|
|
|
|
$make_mod_muc
|
|
|
|
$make_mod_pubsub
|
2003-11-23 21:11:21 +01:00
|
|
|
$make_eldap
|
2004-03-12 14:36:27 +01:00
|
|
|
$make_web
|
2004-08-05 22:46:24 +02:00
|
|
|
stringprep/Makefile
|
2005-05-23 22:27:17 +02:00
|
|
|
$make_tls
|
2006-01-19 03:17:31 +01:00
|
|
|
$make_odbc
|
|
|
|
$make_ejabberd_zlib])
|
2004-08-05 22:46:24 +02:00
|
|
|
#openssl
|
|
|
|
AM_WITH_OPENSSL
|
2003-10-17 21:15:38 +02:00
|
|
|
AC_OUTPUT
|