add configure option to disable building the indexer, and avoid building the recoll lib if nothing needs it

This commit is contained in:
Jean-Francois Dockes 2022-09-20 09:32:12 +02:00
parent d682348b7f
commit 4fe4a34949
3 changed files with 32 additions and 5 deletions

View File

@ -59,7 +59,10 @@ else
endif endif
librcldir = $(libdir)/recoll librcldir = $(libdir)/recoll
librcl_LTLIBRARIES = librecoll.la librcl_LTLIBRARIES =
if MAKE_RECOLL_LIB
librcl_LTLIBRARIES += librecoll.la
endif
librecoll_la_SOURCES = \ librecoll_la_SOURCES = \
aspell/rclaspell.cpp \ aspell/rclaspell.cpp \
@ -310,7 +313,10 @@ PicStatic: $(librecoll_la_OBJECTS)
$(LIBTOOL) --tag=LD --mode=link gcc -g -O -o librecoll.la \ $(LIBTOOL) --tag=LD --mode=link gcc -g -O -o librecoll.la \
$(librecoll_la_OBJECTS) $(librecoll_la_OBJECTS)
bin_PROGRAMS = recollindex bin_PROGRAMS =
if MAKEINDEXER
bin_PROGRAMS += recollindex
endif
if MAKECMDLINE if MAKECMDLINE
bin_PROGRAMS += recollq bin_PROGRAMS += recollq
endif endif
@ -628,13 +634,13 @@ install-exec-local:: rclpychm-install
clean-local:: rclpychm-clean clean-local:: rclpychm-clean
rclpychm: rclpychm:
(cd python/pychm; set -x; \ (cd python/pychm; set -x; \
for v in 2 3;do \ for v in 3;do \
test -n "`which python$${v}`" && python$${v} setup.py build;\ test -n "`which python$${v}`" && python$${v} setup.py build;\
done \ done \
) )
rclpychm-install: rclpychm-install:
(cd python/pychm; set -x; \ (cd python/pychm; set -x; \
for v in 2 3;do test -n "`which python$${v}`" && \ for v in 3;do test -n "`which python$${v}`" && \
python$${v} setup.py install \ python$${v} setup.py install \
--prefix=${prefix} --root=$${DESTDIR:-/} $(OPTSFORPYTHON); \ --prefix=${prefix} --root=$${DESTDIR:-/} $(OPTSFORPYTHON); \
done \ done \
@ -787,7 +793,7 @@ doc/user/usermanual.html: doc/user/usermanual.xml
endif endif
dist_man1_MANS = doc/man/recoll.1 doc/man/recollq.1 \ dist_man1_MANS = doc/man/recoll.1 doc/man/recollq.1 \
doc/man/recollindex.1 doc/man/xadump.1 doc/man/recollindex.1 doc/man/xadump.1 doc/man/rclgrep.1
dist_man5_MANS = doc/man/recoll.conf.5 dist_man5_MANS = doc/man/recoll.conf.5
dist-hook: dist-hook:

View File

@ -320,6 +320,11 @@ XAPIANCXXFLAGS=`$XAPIAN_CONFIG --cxxflags`
PKG_CHECK_MODULES([XSLT], [libxslt], [], AC_MSG_ERROR([libxslt])) PKG_CHECK_MODULES([XSLT], [libxslt], [], AC_MSG_ERROR([libxslt]))
AC_ARG_ENABLE(indexer,
AS_HELP_STRING([--disable-indexer],[Disable building the recollindex indexer.]),
enableINDEXER=$enableval, enableINDEXER="yes")
AM_CONDITIONAL(MAKEINDEXER, [test X$enableINDEXER = Xyes])
AC_ARG_ENABLE(xadump, AC_ARG_ENABLE(xadump,
AS_HELP_STRING([--enable-xadump],[Enable building the xadump low level Xapian access program.]), AS_HELP_STRING([--enable-xadump],[Enable building the xadump low level Xapian access program.]),
enableXADUMP=$enableval, enableXADUMP="no") enableXADUMP=$enableval, enableXADUMP="no")
@ -511,6 +516,10 @@ fi
#echo X_CFLAGS "'$X_CFLAGS'" X_PRE_LIBS "'$X_PRE_LIBS'" X_LIBS \ #echo X_CFLAGS "'$X_CFLAGS'" X_PRE_LIBS "'$X_PRE_LIBS'" X_LIBS \
# "'$X_LIBS'" X_LIBX11 "'$X_LIBX11'" X_EXTRA_LIBS "'$X_EXTRA_LIBS'" # "'$X_LIBS'" X_LIBX11 "'$X_LIBX11'" X_EXTRA_LIBS "'$X_EXTRA_LIBS'"
AM_CONDITIONAL([MAKE_RECOLL_LIB], [test X$buildtestmains = Xno -a X$pythonEnabled = Xno
-a X$enableINDEXER = Xno -a X$enableXADUMP = Xno -a X$enableQT = Xno -a X$enableRECOLLQ = Xno])
# For communicating the value of RECOLL_DATADIR to non-make-based # For communicating the value of RECOLL_DATADIR to non-make-based
# subpackages like python-recoll, we have to expand prefix in here, because # subpackages like python-recoll, we have to expand prefix in here, because
# things like "datadir = ${prefix}/share" (which is what we'd get by # things like "datadir = ${prefix}/share" (which is what we'd get by

12
src/doc/man/rclgrep.1 Normal file
View File

@ -0,0 +1,12 @@
.TH RCLGREP 1 "20 September 2022"
.SH NAME
rclgrep \- grep-like program based on the recoll data extraction functions
.SH SYNOPSIS
.B rclgrep
[
.B \--config
<configdir>
]
.SH DESCRIPTION
Some bla bla