~ubuntu-branches/ubuntu/quantal/recoll/quantal

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2012-03-27 12:15:51 UTC
  • mfrom: (1.3.8)
  • Revision ID: package-import@ubuntu.com-20120327121551-nmntidzpehudushy
Tags: 1.17.1-1
* New upstream release.
* Enable Python module resulting into new binary: python-recoll.
* debian/control:
  + Updated Build-Deps: libqtwebkit-dev, python-all-dev.
  + Added python-recoll binary.
  + Updated Standards-Version to 3.9.3
* debian/rules:
  + Build Python module by default.
* debian/recoll.menu, debian/python-recoll.install, debian/recoll.install:
  + Changes for new binary package.
* debian/copyright:
  + Updated to copyright-format 1.0
  + Updated upstream and Debian copyright.
  + Fixed unicode.org/copyright.html URL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
   AC_DEFINE(RCL_MONITOR, 1, [Real time monitoring option])
113
113
   AC_DEFINE(RCL_USE_INOTIFY, 1, [Compile the inotify interface])
114
114
else
115
 
   AC_MSG_NOTICE([inotify monitoring disabled])
 
115
   AC_MSG_NOTICE([inotify not found, inotify monitoring disabled])
116
116
fi
117
117
 
118
118
# Real time monitoring with FAM
119
119
AC_ARG_WITH(fam, 
120
120
    AC_HELP_STRING([--with-fam],
121
121
   [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.]),
122
 
        withFam=$withval, withFam=no)
 
122
        withFam=$withval, withFam=yes)
 
123
 
123
124
if test X$withFam != Xno -a X$withInotify != Xno ; then
124
125
   AC_MSG_NOTICE([FAM support enabled but inotify support also enabled. Disabling FAM support and using inotify])
125
126
   withFam=no
126
127
fi
127
128
 
 
129
famLib=""
128
130
case $withFam in
129
131
     no);;
130
132
     yes)
131
133
        for dir in /usr/local/lib ${libdir};do 
132
134
         if test -f $dir/libfam.so ; then famLib=$dir/libfam.so;break;fi
133
135
        done
 
136
        if test X$famLib = X ; then
 
137
          AC_MSG_NOTICE([FAM library not found, disabling FAM and real time indexing support])
 
138
          withFam=no
 
139
        fi
134
140
     ;;
135
141
     *) # The argument should be the path to the fam library
136
142
     famLib=$withFam
188
194
  AC_DEFINE(RCL_SPLIT_CAMELCASE, 1, [Split camelCase words])
189
195
fi
190
196
 
191
 
# Build PIC objects for the library. This is necessary when building the
192
 
# php extension, would be useful for the others, and costs little. I wonder
193
 
# if this should be made the default.
194
 
# Not by default as these are little used for now.
 
197
# Disable building the python module. This is built by default, because
 
198
# it's really the easiest way to interface and extend recoll. It forces PIC
 
199
# objects for everything (indexing performance impact: 1%), because it's
 
200
# just not worth building the lib twice
 
201
# You can still have a non-pic recoll with:
 
202
#   configure --disable-python-module; make; make install;make clean
 
203
#   configure; make; cd python/recoll; make install
 
204
#
 
205
AC_ARG_ENABLE(python-module,
 
206
    AC_HELP_STRING([--disable-python-module],
 
207
   [Do not build the Python module.]),
 
208
        pythonEnabled=$enableval, pythonEnabled=yes)
 
209
if test X$pythonEnabled = Xyes ; then
 
210
  NOPYTHON=""
 
211
else
 
212
  NOPYTHON="#"
 
213
fi
 
214
 
 
215
# Build PIC objects for the library ?
195
216
AC_ARG_ENABLE(pic,
196
217
    AC_HELP_STRING([--enable-pic],
197
 
   [Compile library objects as position independant code. This is necessary
198
 
   for building the php extension.]),
199
 
        picEnabled=$enableval, picEnabled=no)
200
 
if test X$picEnabled = Xyes ; then
201
 
  NOPIC=""
202
 
else
203
 
  NOPIC="#"
 
218
   [Do not compile library objects as position independant code. 
 
219
    This is incompatible with the php or python extensions.]),
 
220
        picEnabled=$enableval, picEnabled=forpython)
 
221
case $picEnabled in
 
222
forpython) picEnabled=$pythonEnabled; NOPIC=$NOPYTHON;;
 
223
yes) NOPIC="";;
 
224
*) NOPIC="#";;
 
225
esac
 
226
 
 
227
if test X$pythonEnabled = Xyes -a X$picEnabled != Xyes; then
 
228
   AC_MSG_ERROR([Python build needs PIC library])
204
229
fi
205
230
 
206
231
AC_CHECK_FUNCS(mkdtemp)
398
423
  fi
399
424
  cd ..
400
425
 
 
426
 
 
427
 ##### Using Qt webkit for reslist display? Else Qt textbrowser
 
428
  AC_ARG_ENABLE(webkit,
 
429
    AC_HELP_STRING([--disable-webkit],
 
430
      [Disable use of qt-webkit.]),
 
431
        enableWebkit=$enableval, enableWebkit="yes")
 
432
 
 
433
  if test "$enableWebkit" = "yes" ; then
 
434
   QMAKE_ENABLE_WEBKIT=""
 
435
   QMAKE_DISABLE_WEBKIT="#"
 
436
  else
 
437
   QMAKE_ENABLE_WEBKIT="#"
 
438
   QMAKE_DISABLE_WEBKIT=""
 
439
  fi
 
440
 
 
441
 ##### Using QZeitGeist lib ? Default no for now
 
442
  AC_ARG_WITH(qzeitgeist,
 
443
    AC_HELP_STRING([--with-qzeitgeist],
 
444
      [Enable the use of the qzeitgeist library to send zeitgeist events.]),
 
445
        withQZeitgeist=$withval, withQZeitgeist="no")
 
446
 
 
447
  case "$withQZeitgeist" in 
 
448
    no)  LIBQZEITGEIST=;;
 
449
    yes) LIBQZEITGEIST=-lqzeitgeist;;
 
450
    *)   LIBQZEITGEIST=$withQZeitgeist;;
 
451
  esac  
 
452
 
 
453
  if test "$withQZeitgeist" != "no" ; then
 
454
   QMAKE_ENABLE_ZEITGEIST=""
 
455
   QMAKE_DISABLE_ZEITGEIST="#"
 
456
  else
 
457
   QMAKE_ENABLE_ZEITGEIST="#"
 
458
   QMAKE_DISABLE_ZEITGEIST=""
 
459
  fi
 
460
 
401
461
  AC_CONFIG_FILES($QTGUI/recoll.pro)
402
 
  ##################### End QT detection
 
462
 
 
463
  ##################### End QT stuff
403
464
fi
404
465
 
405
466
 
452
513
AC_SUBST(HAVE_MKDTEMP)
453
514
AC_SUBST(NOQTMAKE)
454
515
AC_SUBST(NOCMDLINE)
 
516
AC_SUBST(QMAKE_ENABLE_WEBKIT)
 
517
AC_SUBST(QMAKE_DISABLE_WEBKIT)
 
518
AC_SUBST(QMAKE_ENABLE_ZEITGEIST)
 
519
AC_SUBST(QMAKE_DISABLE_ZEITGEIST)
 
520
AC_SUBST(LIBQZEITGEIST)
455
521
AC_SUBST(NOPIC)
 
522
AC_SUBST(NOPYTHON)
456
523
AC_SUBST(RCLVERSION)
457
524
 
458
525
# All object files depend on localdefs which has the cc flags. Avoid
462
529
AC_CONFIG_FILES(Makefile)
463
530
AC_CONFIG_FILES(sampleconf/recoll.conf)
464
531
AC_CONFIG_FILES(common/rclversion.h)
 
532
AC_CONFIG_FILES(python/recoll/setup.py)
465
533
 
466
534
for d in bincimapmime index lib query
467
535
do