1AC_INIT([Recoll], m4_esyscmd_s(cat RECOLL-VERSION.txt)) 2AC_CONFIG_HEADERS([common/autoconfig.h]) 3AH_BOTTOM([#include "conf_post.h"]) 4AC_PREREQ(2.53) 5AC_CONFIG_SRCDIR(index/recollindex.cpp) 6 7AM_INIT_AUTOMAKE([1.10 no-define subdir-objects foreign]) 8AC_DISABLE_STATIC 9LT_INIT 10AC_CONFIG_MACRO_DIR([m4]) 11 12m4_include([m4/iconv.m4]) 13AM_ICONV 14INCICONV=$CPPFLAGS 15LIBICONV=$LTLIBICONV 16 17AC_PROG_CXX 18# AC_PROG_CXX used to set CXX to C when no compiler was found, but now it's 19# g++. So actually try to build a program to verify the compiler. 20if test C$CXX = C ; then 21 AC_MSG_ERROR([C++ compiler needed. Please install one (ie: gnu g++)]) 22fi 23AC_LANG_PUSH([C++]) 24AC_TRY_LINK([],[], rcl_link_ok=yes, rcl_link_ok=no) 25if test "$rcl_link_ok" = "no" ; then 26 AC_MSG_ERROR([No working C++ compiler was found]) 27fi 28AC_LANG_POP([C++]) 29 30AC_CANONICAL_HOST 31 32# We want librecoll.so to have no undefined symbols because it makes our 33# life easier when building the loadable modules for, e.g. Python Can't 34# make sense of the libtool -no-undefined flag. It seems to do nothing on 35# Linux. Otoh, -Wl,--no-undefined or -z,defs is not portable (e.g. does not 36# work on the mac). So set this link flag as a system-dependant value here 37case $host_os in 38 linux*) 39 NO_UNDEF_LINK_FLAG=-Wl,--no-undefined 40 ;; 41esac 42 43AC_PROG_YACC 44 45AC_PROG_LIBTOOL 46AC_C_BIGENDIAN 47 48AC_SYS_LARGEFILE 49 50# OpenBSD needs sys/param.h for mount.h to compile 51AC_CHECK_HEADERS([sys/param.h, spawn.h]) 52 53 54if test "x$ac_cv_func_posix_spawn" = xyes; then : 55 AC_ARG_ENABLE(posix_spawn, 56 AC_HELP_STRING([--enable-posix_spawn], 57 [Enable the use of posix_spawn().]), 58 posixSpawnEnabled=$enableval, posixSpawnEnabled=no) 59fi 60if test X$posixSpawnEnabled = Xyes ; then 61 AC_DEFINE(USE_POSIX_SPAWN, 1, [Use posix_spawn()]) 62fi 63 64AC_CHECK_HEADERS([sys/mount.h sys/statfs.h sys/statvfs.h sys/vfs.h malloc.h malloc/malloc.h], [], [], 65[#ifdef HAVE_SYS_PARAM_H 66# include <sys/param.h> 67#endif 68]) 69 70AC_CHECK_FUNCS([posix_spawn setrlimit kqueue vsnprintf malloc_trim posix_fadvise]) 71 72# Use specific 'file' command ? (Useful on solaris to specify 73# /usr/local/bin/file instead of the system's which doesn't understand '-i' 74AC_ARG_WITH(file-command, 75 AC_HELP_STRING([--with-file-command], 76 [Specify version of 'file' command (ie: --with-file-command=/usr/local/bin/file)]), 77 withFileCommand=$withval, withFileCommand=file) 78case $withFileCommand in 79 file) 80 AC_PATH_PROG(fileProg, file);; 81 *) 82 fileProg=$withFileCommand;; 83esac 84 85if test ! -x "$fileProg"; then 86 AC_MSG_ERROR([$fileProg does not exist or is not executable]) 87fi 88AC_DEFINE_UNQUOTED(FILE_PROG, "$fileProg", [Path to the file program]) 89 90# Can't use Solaris standard 'file' command, it doesn't support -i 91AC_DEFINE(USE_SYSTEM_FILE_COMMAND, 1, 92 [Enable using the system's 'file' command to id mime if we fail internally]) 93 94# Use aspell to provide spelling expansions ? 95# The default is yes. If we do find an aspell installation, we use it. Else 96# we do compile the aspell module using an internal copy of aspell.h 97# Only --with-aspell=no will completely disable aspell support 98AC_ARG_WITH(aspell, 99 AC_HELP_STRING([--without-aspell], 100 [Disable use of aspell spelling package to provide term expansion to other spellings]), 101 withAspell=$withval, withAspell=yes) 102case $withAspell in 103 no);; 104 yes) 105 AC_PATH_PROG(aspellProg, aspell) 106 ;; 107 *) # The argument should be the path to the aspell program 108 aspellProg=$withAspell 109 ;; 110esac 111 112if test X$withAspell != Xno ; then 113 AC_DEFINE(RCL_USE_ASPELL, 1, [Compile the aspell interface]) 114 if test X$aspellProg != X ; then 115 aspellBase=`dirname $aspellProg` 116 aspellBase=`dirname $aspellBase` 117 AC_DEFINE_UNQUOTED(ASPELL_PROG, "$aspellProg", [Path to the aspell program]) 118 fi 119fi 120 121if test -f /usr/include/sys/inotify.h -o -f /usr/include/linux/inotify.h; then 122 inot_default=yes 123else 124 inot_default=no 125fi 126 127# Real time monitoring with inotify 128AC_ARG_WITH(inotify, 129 AC_HELP_STRING([--with-inotify], 130 [Use inotify for almost real time indexing of modified files (the default 131 is yes on Linux).]), 132 withInotify=$withval, withInotify=$inot_default) 133 134if test X$withInotify != Xno ; then 135 AC_MSG_NOTICE([enabled support for inotify monitoring]) 136 AC_DEFINE(RCL_MONITOR, 1, [Real time monitoring option]) 137 AC_DEFINE(RCL_USE_INOTIFY, 1, [Compile the inotify interface]) 138else 139 AC_MSG_NOTICE([inotify not found, inotify monitoring disabled]) 140fi 141 142# Real time monitoring with FAM 143AC_ARG_WITH(fam, 144 AC_HELP_STRING([--with-fam], 145 [Use File Alteration Monitor for almost real time indexing of modified files. Give the fam/gamin library as argument (ie: /usr/lib/libfam.so) if configure does not find the right one.]), 146 withFam=$withval, withFam=yes) 147 148if test X$withFam != Xno -a X$withInotify != Xno ; then 149 AC_MSG_NOTICE([FAM support enabled but inotify support also enabled. Disabling FAM support and using inotify]) 150 withFam=no 151fi 152 153famLib="" 154case $withFam in 155 no);; 156 yes) 157 for dir in /usr/local/lib ${libdir};do 158 if test -f $dir/libfam.so ; then famLib=$dir/libfam.so;break;fi 159 done 160 if test X$famLib = X ; then 161 AC_MSG_NOTICE([FAM library not found, disabling FAM and real time indexing support]) 162 withFam=no 163 fi 164 ;; 165 *) # The argument should be the path to the fam library 166 famLib=$withFam 167 ;; 168esac 169 170if test X$withFam != Xno ; then 171 AC_DEFINE(RCL_MONITOR, 1, [Real time monitoring option]) 172 AC_DEFINE(RCL_USE_FAM, 1, [Compile the fam interface]) 173 if test X$famLib != X ; then 174 famLibDir=`dirname $famLib` 175 famBase=`dirname $famLibDir` 176 famBLib=`basename $famLib .so | sed -e s/lib//` 177 if test ! -f $famBase/include/fam.h ; then 178 AC_MSG_ERROR([fam.h not found in $famBase/include. Specify --with-fam=no to disable fam support]) 179 fi 180 LIBFAM="-L$famLibDir -l$famBLib" 181 AC_MSG_NOTICE([fam library directive: $LIBFAM]) 182 AC_DEFINE_UNQUOTED(FAM_INCLUDE, "$famBase/include/fam.h", 183 [Path to the fam api include file]) 184 else 185 AC_MSG_ERROR([fam library not found]) 186 fi 187fi 188 189# Enable use of threads in the indexing pipeline. 190# Disabled by default on OS X as this actually hurts performance. 191# Also disabled on Windows (which does not use configure, see autoconfig-win.h) 192case ${host_os} in 193 darwin*) 194 AC_ARG_ENABLE(idxthreads, 195 [--enable-idxthreads Enable multithread indexing.], 196 idxthreadsEnabled=$enableval, idxthreadsEnabled=no) 197 ;; 198 *) 199 AC_ARG_ENABLE(idxthreads, 200 [--disable-idxthreads Disable multithread indexing.], 201 idxthreadsEnabled=$enableval, idxthreadsEnabled=yes) 202 ;; 203esac 204AM_CONDITIONAL(NOTHREADS, [test X$idxthreadsEnabled = Xno]) 205if test X$idxthreadsEnabled = Xyes ; then 206 AC_DEFINE(IDX_THREADS, 1, [Use multiple threads for indexing]) 207fi 208 209AC_ARG_ENABLE(testmains, 210 AC_HELP_STRING([--enable-testmains], 211 [Enable building small test drivers. These are not unit tests.]), 212 buildtestmains=$enableval, buildtestmains=no) 213AM_CONDITIONAL([COND_TESTMAINS], [test "$buildtestmains" = yes]) 214 215# Enable CamelCase word splitting. This is optional because it causes 216# problems with phrases: with camelcase enabled, "MySQL manual" 217# will be matched by "MySQL manual" and "my sql manual" but not 218# "mysql manual" (which would need increased slack as manual is now at pos 219# 2 instead of 1 220AC_ARG_ENABLE(camelcase, 221 AC_HELP_STRING([--enable-camelcase], 222 [Enable splitting camelCase words. This is not enabled by default as 223 this makes phrase matches more difficult: you need to use matching 224 case in the phrase query to get a match. Ie querying for 225 "MySQL manual" and "my sql manual" are the same, but not the same as 226 "mysql manual" (in phrases only and you could raise the phrase slack to 227 get a match).]), 228 camelcaseEnabled=$enableval, camelcaseEnabled=no) 229if test X$camelcaseEnabled = Xyes ; then 230 AC_DEFINE(RCL_SPLIT_CAMELCASE, 1, [Split camelCase words]) 231fi 232 233# Disable building the python module. 234AC_ARG_ENABLE(python-module, 235 AC_HELP_STRING([--disable-python-module], 236 [Do not build the Python module.]), 237 pythonEnabled=$enableval, pythonEnabled=yes) 238 239AM_CONDITIONAL(MAKEPYTHON, [test X$pythonEnabled = Xyes]) 240 241# Disable building the libchm python wrapper 242AC_ARG_ENABLE(python-chm, AC_HELP_STRING([--disable-python-chm], 243 [Do not build the libchm Python wrapper.]), 244 pythonChmEnabled=$enableval, pythonChmEnabled=yes) 245 246if test X$pythonChmEnabled = Xyes; then 247 AC_CHECK_LIB([chm], [chm_resolve_object], [], 248 [AC_MSG_ERROR([--enable-python-chm is set but libchm is not found])]) 249fi 250 251AM_CONDITIONAL(MAKEPYTHONCHM, [test X$pythonChmEnabled = Xyes]) 252 253 254AC_CHECK_FUNCS(mkdtemp) 255AC_CHECK_LIB([pthread], [pthread_create], [], []) 256AC_SEARCH_LIBS([dlopen], [dl], [], []) 257if test X$ac_cv_search_function != Xno ; then 258 AC_DEFINE(HAVE_DLOPEN, 1, [dlopen function is available]) 259fi 260AC_CHECK_LIB([z], [zlibVersion], [], []) 261 262############# Putenv 263AC_MSG_CHECKING(for type of string parameter to putenv) 264AC_LANG_PUSH([C++]) 265AC_TRY_COMPILE([ 266 #include <stdlib.h> 267 ],[ 268 putenv((const char *)0); 269 ], rcl_putenv_string_const="1", rcl_putenv_string_const="0") 270if test X$rcl_putenv_string_const = X1 ; then 271 AC_DEFINE(PUTENV_ARG_CONST, 1, [putenv parameter is const]) 272fi 273AC_LANG_POP([C++]) 274 275 276#### Look for Xapian. Done in a strange way to work around autoconf 277# cache 278XAPIAN_CONFIG=${XAPIAN_CONFIG:-no} 279if test "$XAPIAN_CONFIG" = "no"; then 280 AC_PATH_PROG(XAPIAN_CONFIG0, [xapian-config], no) 281 XAPIAN_CONFIG=$XAPIAN_CONFIG0 282fi 283if test "$XAPIAN_CONFIG" = "no"; then 284 AC_PATH_PROG(XAPIAN_CONFIG1, [xapian-config-1.3], no) 285 XAPIAN_CONFIG=$XAPIAN_CONFIG1 286fi 287if test "$XAPIAN_CONFIG" = "no"; then 288 AC_PATH_PROG(XAPIAN_CONFIG2, [xapian-config-1.1], no) 289 XAPIAN_CONFIG=$XAPIAN_CONFIG2 290fi 291 292if test "$XAPIAN_CONFIG" = "no" ; then 293 AC_MSG_ERROR([Cannot find xapian-config command in $PATH. Is 294xapian-core installed ?]) 295 exit 1 296fi 297LIBXAPIAN=`$XAPIAN_CONFIG --libs` 298# The --static thing fails with older Xapians. Happily enough they don't 299# need it either (because there are no needed libraries (no uuid and we 300# deal explicitly with libz) 301LIBXAPIANSTATICEXTRA=`$XAPIAN_CONFIG --static --libs 2> /dev/null` 302# Workaround for problem in xapian-config in some versions: wrongly lists 303# libstdc++.la in the lib list 304for i in $LIBXAPIAN ; do 305 case $i in 306 *stdc++*|-lm|-lgcc_s|-lc);; 307 *) tmpxaplib="$tmpxaplib $i";; 308 esac 309done 310LIBXAPIAN=$tmpxaplib 311LIBXAPIANDIR=`$XAPIAN_CONFIG --libs | awk '{print $1}'` 312case A"$LIBXAPIANDIR" in 313 A-L*) LIBXAPIANDIR=`echo $LIBXAPIANDIR | sed -e 's/-L//'`;; 314 *) LIBXAPIANDIR="";; 315esac 316XAPIANCXXFLAGS=`$XAPIAN_CONFIG --cxxflags` 317 318#echo XAPIAN_CONFIG: $XAPIAN_CONFIG 319#echo LIBXAPIAN: $LIBXAPIAN 320#echo LIBXAPIANDIR: $LIBXAPIANDIR 321#echo LIBXAPIANSTATICEXTRA: $LIBXAPIANSTATICEXTRA 322#echo XAPIANCXXFLAGS: $XAPIANCXXFLAGS 323 324 325PKG_CHECK_MODULES([XSLT], [libxslt], [], AC_MSG_ERROR([libxslt])) 326 327AC_ARG_ENABLE(xadump, 328 AC_HELP_STRING([--enable-xadump], 329 [Enable building the xadump low level Xapian access program.]), 330 enableXADUMP=$enableval, enableXADUMP="no") 331AM_CONDITIONAL(MAKEXADUMP, [test X$enableXADUMP = Xyes]) 332 333AC_ARG_ENABLE(userdoc, 334 AC_HELP_STRING([--disable-userdoc], 335 [Disable building the user manual. (Avoids the need for docbook xml/xsl files and TeX tools.]), 336 enableUserdoc=$enableval, enableUserdoc="yes") 337AM_CONDITIONAL(MAKEUSERDOC, [test X$enableUserdoc = Xyes]) 338 339 340 341#### QT 342# The way qt and its tools (qmake especially) are installed is very 343# different between systems (and maybe qt versions) 344# 345# In general we need QTDIR to be set, because it is used inside the 346# qmake-generated makefiles. But there are exceptions: ie on debian3.1 (at 347# least on the sourceforge compile farm), QTDIR is not needed because qmake 348# generates hard paths (and is installed in /usr/bin). We don't want to 349# force the user to set QTDIR if it is not needed. 350# 351# The logic is then to first look for qmake, possibly using QTDIR if it is 352# set. 353# 354# If QTDIR is not set, we then generate a bogus qt project and check if 355# QTDIR is needed in the Makefile, in which case we complain. 356# 357# QMAKESPEC: on most Linux system, there is a 'default' link inside the 358# mkspecs directory, so that QMAKESPEC is not needed. 359# If QMAKESPEC is not set and needed, the qmake test at the previous test 360# will have failed, and we tell the user to check his environment. 361# 362AC_ARG_ENABLE(qtgui, 363 AC_HELP_STRING([--disable-qtgui], 364 [Disable the QT-based graphical user interface.]), 365 enableQT=$enableval, enableQT="yes") 366AM_CONDITIONAL(MAKEQT, [test X$enableQT = Xyes]) 367 368AC_ARG_ENABLE(recollq, 369 AC_HELP_STRING([--enable-recollq], 370 [Enable building the recollq command line query tool (recoll -t without 371 need for Qt). This is done by default if --disable-qtgui is set but this 372 option enables forcing it.]), 373 enableRECOLLQ=$enableval, enableRECOLLQ="no") 374if test X"$enableRECOLLQ" != X ; then 375 AM_CONDITIONAL(MAKECMDLINE, [test X$enableRECOLLQ = Xyes]) 376else 377 AM_CONDITIONAL(MAKECMDLINE, [test X$enableQT = Xno]) 378fi 379 380 381if test X$enableQT = Xyes ; then 382 383 if test X$QTDIR != X ; then 384 PATH=$PATH:$QTDIR/bin 385 export PATH 386 fi 387 388 if test X$QMAKE = X ; then 389 QMAKE=qmake 390 fi 391 case $QMAKE in 392 */*) QMAKEPATH=$QMAKE;; 393 *) AC_PATH_PROG([QMAKEPATH], $QMAKE, NOTFOUND);; 394 esac 395 396 if test X$QMAKEPATH = XNOTFOUND ; then 397 AC_MSG_ERROR([Cannot find the qmake program. Maybe you need to install 398 qt development files and tools and/or set the QTDIR environment variable?]) 399 fi 400 QMAKE=$QMAKEPATH 401 402 # Check Qt version 403 qmakevers="`${QMAKE} --version 2>&1`" 404 #echo "qmake version: $qmakevers" 405 v4=`expr "$qmakevers" : '.*Qt[ ][ ]*version[ ][ ]*4.*'` 406 v5=`expr "$qmakevers" : '.*Qt[ ][ ]*version[ ][ ]*5.*'` 407 if test X$v4 = X0 -a X$v5 = X0; then 408 AC_MSG_ERROR([Bad qt/qmake version string (not 4 or 5?): $qmakevers]) 409 else 410 if test X$v4 != X0 ; then 411 AC_MSG_ERROR([Qt version (from qmake found with QMAKE/QTDIR/PATH) is 4 but Recoll now needs version 5]) 412 else 413 AC_MSG_NOTICE([using qt version 5 user interface]) 414 fi 415 QTGUI=qtgui 416 fi 417 418 419 ##### Using Qt webkit for reslist display? Else Qt textbrowser 420 AC_ARG_ENABLE(webkit, 421 AC_HELP_STRING([--disable-webkit], 422 [Disable use of qt-webkit (only meaningful if qtgui is enabled).]), 423 enableWebkit=$enableval, enableWebkit="yes") 424 425 if test "$enableWebkit" = "yes" ; then 426 QMAKE_ENABLE_WEBKIT="" 427 QMAKE_DISABLE_WEBKIT="#" 428 else 429 QMAKE_ENABLE_WEBKIT="#" 430 QMAKE_DISABLE_WEBKIT="" 431 fi 432 433 AC_ARG_ENABLE(webengine, 434 AC_HELP_STRING([--enable-webengine], 435 [Enable use of qt-webengine (only meaningful if qtgui is enabled), in 436 place or qt-webkit.]), 437 enableWebengine=$enableval, enableWebengine="no") 438 439 if test "$enableWebengine" = "yes" ; then 440 QMAKE_ENABLE_WEBENGINE="" 441 QMAKE_DISABLE_WEBENGINE="#" 442 QMAKE_ENABLE_WEBKIT="#" 443 QMAKE_DISABLE_WEBKIT="" 444 else 445 QMAKE_ENABLE_WEBENGINE="#" 446 QMAKE_DISABLE_WEBENGINE="" 447 fi 448 449 ##### Using QZeitGeist lib ? Default no for now 450 AC_ARG_WITH(qzeitgeist, 451 AC_HELP_STRING([--with-qzeitgeist], 452 [Enable the use of the qzeitgeist library to send zeitgeist events.]), 453 withQZeitgeist=$withval, withQZeitgeist="no") 454 455 case "$withQZeitgeist" in 456 no) LIBQZEITGEIST=;; 457 yes) LIBQZEITGEIST=-lqzeitgeist;; 458 *) LIBQZEITGEIST=$withQZeitgeist;; 459 esac 460 461 if test "$withQZeitgeist" != "no" ; then 462 QMAKE_ENABLE_ZEITGEIST="" 463 QMAKE_DISABLE_ZEITGEIST="#" 464 else 465 QMAKE_ENABLE_ZEITGEIST="#" 466 QMAKE_DISABLE_ZEITGEIST="" 467 fi 468 469 # Retain debugging symbols in GUI recoll ? This makes it enormous (~50MB) 470 AC_ARG_ENABLE(guidebug, 471 AC_HELP_STRING([--enable-guidebug], 472 [Generate and retain debug symbols in GUI program (makes the file very big).]), 473 enableGuiDebug=$enableval, enableGuiDebug="no") 474 475 if test "$enableGuiDebug" = "yes" ; then 476 QMAKE_ENABLE_GUIDEBUG="" 477 else 478 QMAKE_ENABLE_GUIDEBUG="#" 479 fi 480 481 AC_CONFIG_FILES($QTGUI/recoll.pro) 482 483 ##################### End QT stuff 484fi 485 486dnl Borrow a macro definition from pkg.config, 487dnl for older installs that lack it. 488m4_ifndef([PKG_CHECK_VAR], [ 489dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 490dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 491dnl ------------------------------------------- 492dnl Retrieves the value of the pkg-config variable for the given module. 493AC_DEFUN([PKG_CHECK_VAR], 494[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 495AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 496 497_PKG_CONFIG([$1], [variable="][$3]["], [$2]) 498AS_VAR_COPY([$1], [pkg_cv_][$1]) 499 500AS_VAR_IF([$1], [""], [$5], [$4])dnl 501])dnl PKG_CHECK_VAR 502]) 503 504### Systemd 505AC_ARG_WITH([systemd], 506 AC_HELP_STRING([--without-systemd], 507 [Disable installation of the systemd unit files.])) 508AC_ARG_WITH([system-unit-dir], 509 AC_HELP_STRING([--with-system-unit-dir=DIR], 510 [Install location for systemd system unit files]), 511 [SYSTEMD_SYSTEM_UNIT_DIR="$withval"], 512 [PKG_CHECK_VAR([SYSTEMD_SYSTEM_UNIT_DIR], [systemd], [systemdsystemunitdir])]) 513AC_ARG_WITH([user-unit-dir], 514 AC_HELP_STRING([--with-user-unit-dir=DIR], 515 [Install location for systemd user unit files]), 516 [SYSTEMD_USER_UNIT_DIR="$withval"], 517 [PKG_CHECK_VAR([SYSTEMD_USER_UNIT_DIR], [systemd], [systemduserunitdir])]) 518 519if test "x$SYSTEMD_SYSTEM_UNIT_DIR" = "x" -o \ 520 "x$SYSTEMD_USER_UNIT_DIR" = "x"; then 521 with_systemd="no" 522fi 523 524AM_CONDITIONAL([INSTALL_SYSTEMD_UNITS], [test "X$with_systemd" != "Xno"]) 525 526### X11: this is needed for the session monitoring code (in recollindex -m) 527AC_ARG_ENABLE(x11mon, 528 AC_HELP_STRING([--disable-x11mon], 529 [Disable recollindex support for X11 session monitoring.]), 530 enableX11mon=$enableval, enableX11mon="yes") 531 532if test X$withInotify = Xno -a X$withFam = Xno ; then 533 enableX11mon=no 534fi 535 536if test "$enableX11mon" = "yes" ; then 537 AC_PATH_XTRA 538 X_LIBX11=-lX11 539else 540 AC_DEFINE(DISABLE_X11MON, 1, [No X11 session monitoring support]) 541 X_LIBX11="" 542fi 543#echo X_CFLAGS "'$X_CFLAGS'" X_PRE_LIBS "'$X_PRE_LIBS'" X_LIBS \ 544# "'$X_LIBS'" X_LIBX11 "'$X_LIBX11'" X_EXTRA_LIBS "'$X_EXTRA_LIBS'" 545 546# For communicating the value of RECOLL_DATADIR to non-make-based 547# subpackages like python-recoll, we have to expand prefix in here, because 548# things like "datadir = ${prefix}/share" (which is what we'd get by 549# expanding @datadir@) don't mean a thing in Python... I guess we could 550# have a piece of shell-script text to be substituted into and executed by 551# setup.py for getting the value of pkgdatadir, but really... 552m_prefix=$prefix 553test "X$m_prefix" = "XNONE" && m_prefix=/usr/local 554m_datadir=${m_prefix}/share 555RECOLL_DATADIR=${m_datadir}/recoll 556 557RCLVERSION=$PACKAGE_VERSION 558RCLLIBVERSION=$RCLVERSION 559 560AC_SUBST(NO_UNDEF_LINK_FLAG) 561AC_SUBST(RECOLL_DATADIR) 562AC_SUBST(X_CFLAGS) 563AC_SUBST(X_PRE_LIBS) 564AC_SUBST(X_LIBS) 565AC_SUBST(X_LIBX11) 566AC_SUBST(X_EXTRA_LIBS) 567AC_SUBST(INCICONV) 568AC_SUBST(LIBICONV) 569AC_SUBST(LIBXAPIAN) 570AC_SUBST(LIBXAPIANDIR) 571AC_SUBST(LIBXAPIANSTATICEXTRA) 572AC_SUBST(LIBFAM) 573AC_SUBST(QMAKE) 574AC_SUBST(QTGUI) 575AC_SUBST(XAPIANCXXFLAGS) 576AC_SUBST(QMAKE_ENABLE_WEBKIT) 577AC_SUBST(QMAKE_DISABLE_WEBKIT) 578AC_SUBST(QMAKE_ENABLE_WEBENGINE) 579AC_SUBST(QMAKE_DISABLE_WEBENGINE) 580AC_SUBST(QMAKE_ENABLE_GUIDEBUG) 581AC_SUBST(QMAKE_DISABLE_GUIDEBUG) 582AC_SUBST(QMAKE_ENABLE_ZEITGEIST) 583AC_SUBST(QMAKE_DISABLE_ZEITGEIST) 584AC_SUBST(LIBQZEITGEIST) 585AC_SUBST(RCLVERSION) 586AC_SUBST(RCLLIBVERSION) 587AC_SUBST(XSLT_CFLAGS) 588AC_SUBST(XSLT_LIBS) 589AC_SUBST([SYSTEMD_SYSTEM_UNIT_DIR]) 590AC_SUBST([SYSTEMD_USER_UNIT_DIR]) 591 592AC_CONFIG_FILES([Makefile python/recoll/setup.py 593 python/pychm/setup.py]) 594 595if test X$buildtestmains = Xyes ; then 596 AC_CONFIG_FILES([testmains/Makefile]) 597fi 598 599AC_OUTPUT 600