]> matita.cs.unibo.it Git - helm.git/blob - helm/xsltd/configure.in
improved autoconfiguration and other small fixes, this module is about
[helm.git] / helm / xsltd / configure.in
1 AC_INIT(xaland.class)
2
3 PACKAGE=helm_xsltd
4 MAJOR_VERSION=0
5 MINOR_VERSION=0
6 MICRO_VERSION=1
7 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
8
9 if test "x$prefix" != xNONE; then
10   RESOLVED_PREFIX=$prefix
11 else
12   RESOLVED_PREFIX=$ac_default_prefix
13 fi
14
15 if test "x$exec_prefix" != xNONE; then
16   RESOLVED_EXEC_PREFIX=$exec_prefix
17 else
18   RESOLVED_EXEC_PREFIX=$RESOLVED_PREFIX
19 fi
20
21 BIN_DIR=$RESOLVED_EXEC_PREFIX/bin
22
23 AC_CHECK_PROG(HAVE_HELM_CONFIG, helm-config, yes, no)
24 if test $HAVE_HELM_CONFIG = no; then
25   AC_MSG_ERROR(Could not fing helm-config)
26 fi
27
28 HELM_LIB_DIR=`helm-config --lib-dir`
29 if test ! -d $HELM_LIB_DIR; then
30   AC_MSG_ERROR(Could not find HELM lib directory, please check your installation)
31 fi
32
33 HELM_STYLES_DIR=`helm-config --style-dir`
34 if test ! -d $HELM_STYLES_DIR; then
35   AC_MSG_ERROR(Could not find stylesheet directory, please check your installation)
36 fi
37
38 AC_SUBST(PACKAGE)
39 AC_SUBST(VERSION)
40 AC_SUBST(BIN_DIR)
41 AC_SUBST(HELM_LIB_DIR)
42 AC_SUBST(HELM_STYLES_DIR)
43
44 AC_OUTPUT([
45   Makefile
46   start-xaland
47   helm_xsltd.spec
48 ], chmod +x start-xaland)