Renamed WITHOUT_X11 to DISABLE_X11MON for clarification
This commit is contained in:
parent
2a61e2e11a
commit
c4e7ff69f6
@ -47,5 +47,5 @@
|
|||||||
/* Split camelCase words */
|
/* Split camelCase words */
|
||||||
#undef RCL_SPLIT_CAMELCASE
|
#undef RCL_SPLIT_CAMELCASE
|
||||||
|
|
||||||
/* No X11 */
|
/* No X11 session monitoring support */
|
||||||
#undef WITHOUT_X11
|
#undef DISABLE_X11MON
|
||||||
|
|||||||
38
src/configure
vendored
38
src/configure
vendored
@ -721,7 +721,8 @@ with_fam
|
|||||||
enable_xattr
|
enable_xattr
|
||||||
enable_camelcase
|
enable_camelcase
|
||||||
enable_pic
|
enable_pic
|
||||||
with_gui
|
enable_qtgui
|
||||||
|
enable_x11mon
|
||||||
with_x
|
with_x
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
@ -1378,6 +1379,9 @@ Optional Features:
|
|||||||
--enable-pic Compile library objects as position independant
|
--enable-pic Compile library objects as position independant
|
||||||
code. This is necessary for building the php
|
code. This is necessary for building the php
|
||||||
extension.
|
extension.
|
||||||
|
--disable-qtgui Disable the QT-based graphical user interface.
|
||||||
|
--disable-x11mon Disable recollindex support for X11 session
|
||||||
|
monitoring.
|
||||||
|
|
||||||
Optional Packages:
|
Optional Packages:
|
||||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
@ -1392,8 +1396,6 @@ Optional Packages:
|
|||||||
indexing of modified files. Give the fam/gamin
|
indexing of modified files. Give the fam/gamin
|
||||||
library as argument (ie: /usr/lib/libfam.so) if
|
library as argument (ie: /usr/lib/libfam.so) if
|
||||||
configure does not find the right one.
|
configure does not find the right one.
|
||||||
--without-gui Disable the QT user interface and auxiliary x11
|
|
||||||
uses.
|
|
||||||
--with-x use the X Window System
|
--with-x use the X Window System
|
||||||
|
|
||||||
Some influential environment variables:
|
Some influential environment variables:
|
||||||
@ -4825,20 +4827,15 @@ XAPIANCXXFLAGS=`$XAPIAN_CONFIG --cxxflags`
|
|||||||
# If QMAKESPEC is not set and needed, the qmake test at the previous test
|
# If QMAKESPEC is not set and needed, the qmake test at the previous test
|
||||||
# will have failed, and we tell the user to check his environment.
|
# will have failed, and we tell the user to check his environment.
|
||||||
#
|
#
|
||||||
|
# Check whether --enable-qtgui was given.
|
||||||
# Check whether --with-gui was given.
|
if test "${enable_qtgui+set}" = set; then
|
||||||
if test "${with_gui+set}" = set; then
|
enableval=$enable_qtgui; enableQT=$enableval
|
||||||
withval=$with_gui; withQT=$withval
|
|
||||||
else
|
else
|
||||||
withQT="yes"
|
enableQT="yes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "$withQT" != "yes" ; then
|
if test "$enableQT" != "yes" ; then
|
||||||
cat >>confdefs.h <<\_ACEOF
|
|
||||||
#define WITHOUT_X11 1
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
NOQTMAKE="#"
|
NOQTMAKE="#"
|
||||||
NOCMDLINE=""
|
NOCMDLINE=""
|
||||||
else
|
else
|
||||||
@ -5011,8 +5008,14 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
### X11: this is needed for the session monitoring code (in recollindex -m)
|
### X11: this is needed for the session monitoring code (in recollindex -m)
|
||||||
# We disable it if without-gui has been specified, but it could be separated
|
# Check whether --enable-x11mon was given.
|
||||||
if test "$withQT" = "yes" ; then
|
if test "${enable_x11mon+set}" = set; then
|
||||||
|
enableval=$enable_x11mon; enableX11mon=$enableval
|
||||||
|
else
|
||||||
|
enableX11mon="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$enableX11mon" = "yes" ; then
|
||||||
ac_ext=cpp
|
ac_ext=cpp
|
||||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
@ -6625,6 +6628,11 @@ fi
|
|||||||
|
|
||||||
X_LIBX11=-lX11
|
X_LIBX11=-lX11
|
||||||
else
|
else
|
||||||
|
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
|
#define DISABLE_X11MON 1
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
X_LIBX11=""
|
X_LIBX11=""
|
||||||
fi
|
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 \
|
||||||
|
|||||||
@ -382,7 +382,7 @@ if test "$enableX11mon" = "yes" ; then
|
|||||||
AC_PATH_XTRA
|
AC_PATH_XTRA
|
||||||
X_LIBX11=-lX11
|
X_LIBX11=-lX11
|
||||||
else
|
else
|
||||||
AC_DEFINE(WITHOUT_X11, 1, [No X11 session monitoring support])
|
AC_DEFINE(DISABLE_X11MON, 1, [No X11 session monitoring support])
|
||||||
X_LIBX11=""
|
X_LIBX11=""
|
||||||
fi
|
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 \
|
||||||
|
|||||||
@ -170,8 +170,10 @@ static const char usage [] =
|
|||||||
"recollindex -m [-w <secs>] -x [-D]\n"
|
"recollindex -m [-w <secs>] -x [-D]\n"
|
||||||
" Perform real time indexation. Don't become a daemon if -D is set.\n"
|
" Perform real time indexation. Don't become a daemon if -D is set.\n"
|
||||||
" -w sets number of seconds to wait before starting.\n"
|
" -w sets number of seconds to wait before starting.\n"
|
||||||
|
#ifndef DISABLE_X11MON
|
||||||
" -x disables exit on end of x11 session\n"
|
" -x disables exit on end of x11 session\n"
|
||||||
#endif
|
#endif /* DISABLE_X11MON */
|
||||||
|
#endif /* RCL_MONITOR */
|
||||||
"recollindex -e <filename [filename ...]>\n"
|
"recollindex -e <filename [filename ...]>\n"
|
||||||
" Purge data for individual files. No stem database updates\n"
|
" Purge data for individual files. No stem database updates\n"
|
||||||
"recollindex -i <filename [filename ...]>\n"
|
"recollindex -i <filename [filename ...]>\n"
|
||||||
|
|||||||
@ -4,7 +4,7 @@ static char rcsid[] = "@(#$Id: x11mon.cpp,v 1.1 2006-12-23 12:23:15 dockes Exp $
|
|||||||
#endif
|
#endif
|
||||||
// Poll state of X11 connectibility (to detect end of user session).
|
// Poll state of X11 connectibility (to detect end of user session).
|
||||||
#include "autoconfig.h"
|
#include "autoconfig.h"
|
||||||
#ifndef WITHOUT_X11
|
#ifndef DISABLE_X11MON
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@ -64,7 +64,7 @@ bool x11IsAlive()
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif /* WITHOUT_X11 */
|
#endif /* DISABLE_X11MON */
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user