Using --with-simdir no longer required to compile SILC Plugin.
+Mon Jun 4 21:24:17 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
+
+ * Removed --enable-silc-plugin. Added --with-silc-plugin.
+ Affected files are configure.ad, lib/configure.ad,
+ apps/irssi/configure.ad, apps/irssi/configure.in,
+ apps/irssi/scripts/Makefile.am,
+ apps/irssi/scripts/examples/Makefile.am,
+ apps/irssi/src/silc/core/silc/Makefile.am,
+ apps/irssi/src/fe-common/silc/Makefile.am.
+
Mon Jun 4 08:35:59 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
* SILC Client 1.1.
In order to compile the SILC Plugin (instead of the SILC Client), pass the
-following options to configure:
+following options to configure, if your Irssi is installed into /usr:
- --enable-silc-plugin --without-silc-includes
+ --prefix=/usr
+ --with-silc-plugin
+ --without-silc-includes
-Depending on your OS/architecture you may also need to pass:
+If your Irssi is installed in some other location than /usr, then pass its
+location to --prefix and --with-silc-plugin, for example:
- --with-pic --without-pthreads
+ --prefix=/usr/local
+ --with-silc-plugin=/usr/local/lib/irssi
+ --without-silc-includes
-For installing the SILC Plugin to the appropriate directories, you have to
-define the following paths (assuming Irssi is installed to /usr)
+Depending on your OS/architecture you may also need to pass the following
+options to configure:
- --prefix=/usr
- --with-simdir=/usr/lib/irssi
+ --with-pic --without-pthreads
if SILCPLUGIN
themedir = $(datadir)/irssi/themes
+theme_DATA = plugin.theme
else
themedir = $(datadir)/silc/themes
-endif
theme_DATA = default.theme plugin.theme
+endif
noinst_HEADERS = irssi-version.h.in
# Irssi SILC Plugin support
#
-AC_ARG_ENABLE(silc-plugin,
-[ --enable-silc-plugin Compile the SILC Plugin instead of the SILC Client])
+AC_MSG_CHECKING(whether to compile SILC Plugin for Irssi)
+AC_ARG_WITH(silc-plugin,
+ [[ --with-silc-plugin[=DIR] Compile the SILC Plugin for Irssi, specify
+ Irssi location [/usr/lib/irssi]]],
+ [
+ case "${withval}" in
+ no)
+ AC_MSG_RESULT(no)
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ ;;
+ esac
+ ])
AC_CONFIG_SUBDIRS(apps/irssi)
AC_CONFIG_FILES(
# Irssi SILC Plugin support
#
-AC_ARG_ENABLE(silc-plugin,
-[ --enable-silc-plugin Compile the SILC Plugin instead of the SILC Client],
-[case "${enableval}" in
- yes) silc_plugin=true ;;
- no) silc_plugin=false ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-silc-plugin) ;;
-esac],[silc_plugin=false])
+SILC_IRSSIDIR=
+silc_plugin=false
+AC_MSG_CHECKING(whether to compile SILC Plugin for Irssi)
+AC_ARG_WITH(silc-plugin,
+ [[ --with-silc-plugin[=DIR] Compile the SILC Plugin for Irssi, specify
+ Irssi location [/usr/lib/irssi]]],
+ [
+ case "${withval}" in
+ no)
+ AC_MSG_RESULT(no)
+ silc_plugin=false
+ ;;
+ yes)
+ AC_MSG_RESULT(yes)
+ silc_plugin=true
+ SILC_IRSSIDIR="/usr/lib/irssi/modules"
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ silc_plugin=true
+ SILC_IRSSIDIR="$withval/modules"
+ ;;
+ esac
+ ])
+
AM_CONDITIONAL(SILCPLUGIN, test x$silc_plugin = xtrue)
+AC_SUBST(SILC_IRSSIDIR)
AC_ARG_WITH(file-offset-size,
[ --with-file-offset-size=BITS Set size of file offsets. Usually 32 or 64.
SUBDIRS = examples
+PLUGIN_SCR = silc.pl
+
if SILCPLUGIN
scriptdir = $(datadir)/irssi/scripts
+IRSSI_SCR =
else
scriptdir = $(datadir)/silc/scripts
-endif
-
-script_DATA = \
+IRSSI_SCR = \
autoop.pl \
autorejoin.pl \
buf.pl \
mlock.pl \
quitmsg.pl \
scriptassist.pl \
- silc.pl \
splitlong.pl \
usercount.pl
+endif
+
+script_DATA = \
+ $(PLUGIN_SCR) \
+ $(IRSSI_SCR)
EXTRA_DIST = $(script_DATA)
if SILCPLUGIN
scriptdir = $(datadir)/irssi/scripts
+IRSSI_EX_SCR =
else
scriptdir = $(datadir)/silc/scripts
-endif
-
-script_DATA = \
+IRSSI_EX_SCR = \
command.pl \
msg-event.pl \
redirect.pl
+endif
+
+script_DATA = $(IRSSI_EX_SCR)
EXTRA_DIST = $(script_DATA)
-I$(top_srcdir)/src/core \
$(GLIB_CFLAGS) \
-DSYSCONFDIR=\""$(silc_etcdir)"\" \
- -DMODULEDIR=\""$(silc_modulesdir)"\"
+ -DMODULEDIR=\""@SILC_IRSSIDIR@"\"
libcore_a_SOURCES = \
args.c \
include $(top_srcdir)/Makefile.defines.in
-moduledir = $(silc_modulesdir)
+moduledir = @SILC_IRSSIDIR@
IRSSI_INCLUDE=../../..
if SILCPLUGIN
install-data-hook: libfe_common_silc.la
- -ln -s libfe_common_silc.so $(moduledir)/libfe_silc.so
+ -ln -s libfe_common_silc.so $(DESTDIR)$(moduledir)/libfe_silc.so
endif
include $(top_srcdir)/Makefile.defines.in
-moduledir = $(silc_modulesdir)
+moduledir = @SILC_IRSSIDIR@
if SILCPLUGIN
perl_dirs = silc
include $(top_srcdir)/Makefile.defines.in
-moduledir = $(silc_modulesdir)
+moduledir = @SILC_IRSSIDIR@
IRSSI_INCLUDE=../../..
)
])
-MODULESDIR="$silc_prefix/modules"
+MODULESDIR="$silc_prefix/lib/modules"
#ifdef SILC_DIST_SIM
# SIM modules directory
#