Merged silc_1_1_branch to trunk.
[silc.git] / apps / irssi / configure.ad
1 #ifdef SILC_DIST_CLIENT
2 #
3 #  apps/irssi/configure.ad
4 #
5 #  Author: Pekka Riikonen <priikone@silcnet.org>
6 #
7 #  Copyright (C) 2005 - 2007 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 actual configure script is apps/irssi/configure.in.  This file is
20 # for getting irssi specific stuff to top configure script with Autodist
21 # without polluting the top configure.ad file with these stuff.
22
23 IRSSI_SUBDIR=
24
25 #ifdef SILC_DIST_TOOLKIT
26 if test x$without_irssi = xfalse; then
27 #endif SILC_DIST_TOOLKIT
28
29 IRSSI_SUBDIR=irssi
30
31 # help directory
32 #
33 HELPDIR="$datadir/silc/help"
34 AC_ARG_WITH(helpdir,
35   [[  --with-helpdir=DIR      directory for SILC Client help files [DATADIR/silc/help]]],
36   [
37     case "$withval" in
38       no|yes)
39         ;;
40       *)
41        HELPDIR="$withval"
42        ;;
43     esac
44   ])
45 AC_SUBST(HELPDIR)
46 AC_DEFINE_UNQUOTED([SILC_HELPDIR], "$HELPDIR", [SILC_HELPDIR])
47
48 # Irssi perl support
49 #
50 AC_ARG_WITH(perl,
51   [[  --with-perl[=yes|no|module]  Build with Perl support - also specifies
52                                if it should be built into main silc binary
53                                (static, default) or as a module]])
54
55 # Irssi SILC Plugin support
56 #
57 AC_MSG_CHECKING(whether to compile SILC Plugin for Irssi)
58 AC_ARG_WITH(silc-plugin,
59   [[  --with-silc-plugin[=DIR] Compile the SILC Plugin for Irssi, specify
60                            Irssi location [/usr/lib/irssi]]],
61   [
62     case "${withval}" in
63       no)
64         AC_MSG_RESULT(no)
65         ;;
66        *)
67         AC_MSG_RESULT(yes)
68        ;;
69     esac
70   ],[AC_MSG_RESULT(no)])
71
72 AC_CONFIG_SUBDIRS(apps/irssi)
73 AC_CONFIG_FILES(
74 apps/irssi/Makefile.defines
75 apps/irssi/Makefile.defines_int
76 )
77
78 irssi="yes"
79 #ifdef SILC_DIST_TOOLKIT
80 fi      # without_irssi = false
81 #endif SILC_DIST_TOOLKIT
82
83 AC_SUBST(IRSSI_SUBDIR)
84 #endif SILC_DIST_CLIENT