forked from Eric-Brison/dynacase-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
101 lines (86 loc) · 2.43 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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# 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.28 2009/01/06 15:15:13 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-core
AC_SUBST(PACKAGELIB)
PACKAGELIB=FDL
AC_SUBST(TODAY)
TODAY=`date`
AC_SUBST(APPNAME)
APPNAME=TOOLBOX
AC_SUBST(ROOTDIR)
ROOTDIR=`pwd`
AC_SUBST(LOGDATE)
LOGDATE=`(git log -1 || echo 2013) | grep Date |cut -c6-`
LICENSE="http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License"
AC_SUBST(LICENSE)
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(LOGLEVEL)
LOGLEVEL=WEF
AC_ARG_WITH(log-level,
[ --with-log-level=log-level Set Log Level], LOGLEVEL=$withval)
dnl get php pear path
AC_SUBST(PEAR)
AC_ARG_WITH(pear, \
[ --with-pear=PHP PEAR path], \
PEAR="$withval",
PEAR="" \
)
if test "x$PEAR" = "x" ; then
AC_CHECK_PROG(PEARCMD, pear, pear)
if test "x$PEARCMD" = "x" ; then
AC_MSG_ERROR(Could not find the pear command... Specify the PHP Pear path with --with-pear)
fi
AC_MSG_CHECKING(for pear config-get php_dir)
PEAR=`"$PEARCMD" config-get php_dir`
if test "x$PEAR" = "x" ; then
AC_MSG_ERROR(Looks like the pear command is broken... Specify the PHP Pear path with --with-pear)
fi
AC_MSG_RESULT($PEAR)
fi
AC_OUTPUT(
Makefile \
App/Authent/AUTHENT_init.php \
App/Core/CORE_init.php \
App/Dav/DAV_init.php \
App/Dav/DAV_conf.apache \
App/Fdl/FDL_init.php \
App/Fdc/FDC_init.php \
App/Fgsearch/FGSEARCH_init.php \
App/Freedom/FREEDOM_init.php \
App/Generic/GENERIC_init.php \
Api/updateclass.php \
Share/Lib.Prefix.php \
Supervisor/htaccess \
htaccess \
info.xml \
Test/info.xml
)