/
configure.in
49 lines (40 loc) · 1.23 KB
/
configure.in
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
# Autoconf script for libphp
#
# Copyright 2000 Yannick Le Briquer <yannick.lebriquer@anakeen.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version
# 2 of the License, or (at your option) any later version.
#
AC_REVISION($Id: configure.in,v 1.5 2009/01/06 15:15:14 jerome Exp $)
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
AC_PREREQ(2.13)
AC_INIT(./Makefile.in)
AC_SUBST(VERSION)
VERSION=`cat VERSION`
AC_SUBST(RELEASE)
RELEASE=`cat RELEASE`
AC_SUBST(PACKAGE)
PACKAGE=dynacase-mailconnector
AC_SUBST(APPNAME)
APPNAME=MAILCONNECTOR
ac_default_prefix=/var/www/dynacase
AC_SUBST(PUBRULE)
PUBRULE="$(pwd)/buildTools"
AC_ARG_WITH(pubrule, [ --with-pubrule=dir Path to PubRule], PUBRULE=$withval)
if test -z ${PUBRULE}; then
PUBRULE=`pwd`
fi
if test -f $PUBRULE/PubRule; then
AC_MSG_NOTICE([PubRule located at $PUBRULE])
else
AC_MSG_ERROR([Could not find PubRule])
fi
AC_SUBST(DEBUG)
DEBUG=N
AC_ARG_ENABLE(debug,
[ --enable-debug Set Debug ], DEBUG=Y)
AC_OUTPUT(Makefile MAILCONNECTOR_init.php info.xml Services/info.xml Admin/MAILCONNECTORADMIN_init.php)