~ubuntu-branches/debian/squeeze/sword/squeeze

« back to all changes in this revision

Viewing changes to m4/acx_clucene.m4

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Marsden, Jonathan Marsden, Dmitrijs Ledkovs, Closed Bugs
  • Date: 2009-05-30 11:55:55 UTC
  • mfrom: (1.3.1 upstream) (6.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090530115555-r427zsn3amivdpfu
Tags: 1.6.0+dfsg-1
[ Jonathan Marsden ]
* New upstream release. (Closes: #507960) (LP: #320558)
* debian/patches/02_libver.diff:
  - Bump SONAME to 8 -- SWORD 1.6 is not backward compatible with 1.5.11.
* debian/patches/series:
  - Remove 10_diatheke.diff -- included in upstream source.
* debian/patches/:
  - Remove several old unused .diff files.
  - Add 11_regex_only_when_needed.diff to conditionally include regex lib.
  - Add 12_fix_compiler_warnings.diff to remove all compiler warnings.
  - Add 13_fix_osis2mod_compression_default.diff from upstream svn.
  - Add 14_closing_section_not_chapter.diff from upstream svn.
* debian/libsword7.*: 
  - Rename to libsword8.*
  - Change libsword7 to libsword8 within files.
* debian/rules: 
  - SONAME bump to 8.
  - Set library version check to >= 1.6
* debian/control:
  - Change libsword7 to libsword8.
  - Add libsword7 to Conflicts.
  - Fix case of sword to SWORD in package descriptions.
  - Bump Standards-Version to 3.8.1 (no changes needed).
  - Fix section for libsword-dbg to avoid lintian warning.
* debian/rules:
  - Add DFSG get-orig-source target.
* debian/copyright:
  - Fix various mistakes in initial attempt to document copyrights.

[ Dmitrijs Ledkovs ]
* debian/rules: Added utils.mk to use missing-files target and call it on
  each build.
* debian/libsword-dev.install: Added libsword.la, previously missing.
* debian/libsword7.install: Added missing libicu translit files.
* debian/control:
  - Updated all uses of SWORD version to 1.6
  - Added libsword-dbg package
* debian/watch: Fixed a small mistake which was resulting in extra "."
  in final version name.
* debian/rules: simplified manpage processing.
* debian/libsword8.lintian-overrides: added override for module
  installation directory.
* debian/copyright: Updated with information about everyfile.
  Closes: #513448 LP: #322638
* debian/diatheke.examples: moved examples here from the diatheke.install
* debian/rules:
  - enabled shell script based testsuite
  - added commented out cppunit testsuite
* debian/patches/40_missing_includes.diff: 
  - added several missing stdio.h includes to prevent FTBFS of testsuite.

[ Closed Bugs ]
* FTBFS on intrepid (LP: #305172)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl CLucene detection m4
 
2
AC_DEFUN([ACX_CLUCENE], [
 
3
AC_LANG_SAVE
 
4
AC_LANG(C++)
 
5
 
 
6
 
 
7
# Ask user for path to clucene-core stuff:.
 
8
AC_ARG_WITH(clucene,
 
9
        AC_HELP_STRING([ --with-clucene=<path>],
 
10
                [prefix of CLucene-Core installation. e.g. /usr/local or /usr]),,)
 
11
 
 
12
AC_MSG_CHECKING([how to include clucene])
 
13
if test "x$with_clucene" = "xno"; then
 
14
        AC_MSG_RESULT(excluding support)
 
15
else
 
16
#try some default locations
 
17
if test -z "$with_clucene" || test "x$with_clucene" = "xyes"; then
 
18
        #use parent of this directory, and some common library paths
 
19
        with_clucene=$(cd "../" && pwd)
 
20
        with_clucene="$with_clucene /usr /usr/local"
 
21
else
 
22
        #use an absolute path
 
23
        with_clucene=$(cd "$with_clucene" && pwd)
 
24
fi
 
25
clucene_set_failed=
 
26
CLUCENE_CXXFLAGS=
 
27
CLUCENE_LIBS=
 
28
for flag in $with_clucene; do
 
29
        if test -z "$clucene_set_failed"; then
 
30
                if test -e "$flag/include/CLucene.h"; then
 
31
# 64-bit checks first
 
32
                        if test -e "$flag/lib64/libclucene.la" || test -e "$flag/lib64/libclucene.so"; then
 
33
                                clucene_set_failed=$flag
 
34
                                CLUCENE_LIBS="-L$flag/lib64 -lclucene"
 
35
                                if test -e "$flag/include/CLucene/clucene-config.h"; then
 
36
                                        CLUCENE_CXXFLAGS="-I$flag/include"
 
37
                                else
 
38
                                        CLUCENE_CXXFLAGS="-I$flag/include -I$flag/lib64"
 
39
                                fi
 
40
                        else
 
41
# 32-bit checks
 
42
                                if test -e "$flag/lib/libclucene.la" || test -e "$flag/lib/libclucene.so"; then
 
43
                                        clucene_set_failed=$flag
 
44
                                        CLUCENE_LIBS="-L$flag/lib -lclucene"
 
45
                                        if test -e "$flag/include/CLucene/clucene-config.h"; then
 
46
                                                CLUCENE_CXXFLAGS="-I$flag/include"
 
47
                                        else
 
48
                                                CLUCENE_CXXFLAGS="-I$flag/include -I$flag/lib"
 
49
                                        fi
 
50
                                fi
 
51
                        fi
 
52
                fi
 
53
        fi
 
54
 
 
55
        if test -z "$clucene_set_failed"; then
 
56
                if test -e "$flag/src/CLucene/StdHeader.h"; then
 
57
                        if test -e "$flag/src/libclucene.la"; then
 
58
                                CLUCENE_LIBS="-L$flag/src/ -lclucene"
 
59
                                CLUCENE_CXXFLAGS="-I$flag/src/"
 
60
                                clucene_set_failed=$flag/src/
 
61
                        fi
 
62
                fi
 
63
        fi
 
64
done
 
65
 
 
66
if test -z "$clucene_set_failed"; then
 
67
        clucene_set_failed="true"
 
68
        with_clucene="no"
 
69
        AC_MSG_RESULT(excluding support)
 
70
else
 
71
        AC_MSG_RESULT($clucene_set_failed)
 
72
fi
 
73
 
 
74
if test "$clucene_set_failed" = "true"; then
 
75
        AC_MSG_WARN([Could not detect clucene location.  To enable clucene, you must
 
76
                call configure with the --with-clucene option specifying the location.
 
77
            This tells configure where to find the CLucene Core library and headers.
 
78
            e.g. --with-clucene=/usr/local or --with-clucene=/usr])
 
79
fi
 
80
AC_SUBST(CLUCENE_LIBS)
 
81
AC_SUBST(CLUCENE_CXXFLAGS)
 
82
fi
 
83
 
 
84
 
 
85
 
 
86
AC_LANG_RESTORE
 
87
])dnl ACX_CLUCENE
 
88