Added SILC Thread Queue API
[silc.git] / apps / autodist / configure.ad
1 #ifdef SILC_DIST_AUTODIST
2 #
3 #  apps/autodist/configure.ad
4 #
5 #  Author: Pekka Riikonen <priikone@silcnet.org>
6 #
7 #  Copyright (C) 2005 Pekka Riikonen
8 #
9 #  This program is free software; you can redistribute it and/or modify
10 #  it under the terms of the GNU General Public License as published by
11 #  the Free Software Foundation; version 2 of the License.
12 #
13 #  This program is distributed in the hope that it will be useful,
14 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #  GNU General Public License for more details.
17 #
18
19 # The APIVERSION is appended to the filename, to give versioned name.
20 # The base version (X.Y) is taken.
21 APIVERSION=`echo "$VERSION" | sed -e 's/^\([[0-9]]*\.[[0-9]]*[[a-z]]*\).*$/\1/'`
22 AC_SUBST(APIVERSION)
23
24 old_exec_prefix=$exec_prefix
25 old_prefix=$prefix
26 exec_prefix=$silc_prefix
27 prefix=$silc_prefix
28
29 # Path to the autodist in installed environment
30 s_bindir=`eval echo $bindir`;s_bindir=`eval echo $s_bindir`
31 AUTODIST=$s_bindir/autodist
32 AC_SUBST(AUTODIST)
33
34 # Path to the Autodist data
35 s_datadir=`eval echo $datadir`;s_bindir=`eval echo $s_datadir`
36 AUTODISTDIR=$s_datadir/autodist
37 AC_SUBST(AUTODISTDIR)
38
39 exec_prefix=$old_exec_prefix
40 prefix=$old_prefix
41
42 #
43 # Makefile outputs
44 #
45 AC_CONFIG_FILES(
46 apps/autodist/Makefile
47 apps/autodist/autodist
48 apps/autodist/makedist
49 apps/autodist/doc/Makefile
50 apps/autodist/doc/autodist.1
51 apps/autodist/tests/Makefile
52 )
53 #endif SILC_DIST_AUTODIST