1 | dnl
|
---|
2 | dnl Disable accent folding
|
---|
3 | dnl
|
---|
4 |
|
---|
5 | dnl AC_INIT(mgpp/text/MGQuery.cpp)
|
---|
6 | dnl http://www.gnu.org/software/hello/manual/autoconf/Initializing-configure.html
|
---|
7 | AC_INIT()
|
---|
8 | AC_ARG_ENABLE(accentfolding, [ --disable-accentfolding Disable Accent Folding support], ENABLE_ACCENTFOLD=0, ENABLE_ACCENTFOLD=1)
|
---|
9 | AC_DEFINE_UNQUOTED(ENABLE_ACCENTFOLD, $ENABLE_ACCENTFOLD)
|
---|
10 | AC_SUBST(ENABLE_ACCENTFOLD)
|
---|
11 |
|
---|
12 |
|
---|
13 | dnl
|
---|
14 | dnl Set compilation of JNI parts of MG and MGPP indexers (disabled by default, which is GS2's default behaviour)
|
---|
15 | dnl
|
---|
16 | AC_ARG_ENABLE(jni, [ --enable-jni Enable JNI compilation], ENABLE_JNI=$enableval, ENABLE_JNI=no)
|
---|
17 | if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
|
---|
18 | ENABLE_JNI=1
|
---|
19 | AC_DEFINE(ENABLE_JNI,[])
|
---|
20 | else
|
---|
21 | ENABLE_JNI=0
|
---|
22 | fi
|
---|
23 | AC_SUBST(ENABLE_JNI)
|
---|
24 |
|
---|
25 |
|
---|
26 | dnl
|
---|
27 | dnl Set compilation of MG (enabled by default)
|
---|
28 | dnl
|
---|
29 | AC_ARG_ENABLE(mg, [ --disable-mg Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes)
|
---|
30 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
31 | ENABLE_MG=1
|
---|
32 | AC_DEFINE(ENABLE_MG,[])
|
---|
33 | else
|
---|
34 | ENABLE_MG=0
|
---|
35 | fi
|
---|
36 | AC_SUBST(ENABLE_MG)
|
---|
37 |
|
---|
38 |
|
---|
39 | dnl
|
---|
40 | dnl Set compilation of MGPP (enabled by default)
|
---|
41 | dnl
|
---|
42 | AC_ARG_ENABLE(mgpp, [ --disable-mgpp Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes)
|
---|
43 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
44 | ENABLE_MGPP=1
|
---|
45 | AC_DEFINE(ENABLE_MGPP,[])
|
---|
46 | else
|
---|
47 | ENABLE_MGPP=0
|
---|
48 | fi
|
---|
49 | AC_SUBST(ENABLE_MGPP)
|
---|
50 |
|
---|
51 | dnl
|
---|
52 | dnl Set compilation of Lucene (enabled by default)
|
---|
53 | dnl
|
---|
54 | AC_ARG_ENABLE(lucene, [ --disable-lucene Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
|
---|
55 | if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
|
---|
56 | ENABLE_LUCENE=1
|
---|
57 | AC_DEFINE(ENABLE_LUCENE,[])
|
---|
58 | else
|
---|
59 | ENABLE_LUCENE=0
|
---|
60 | fi
|
---|
61 | AC_SUBST(ENABLE_LUCENE)
|
---|
62 |
|
---|
63 |
|
---|
64 | AC_DEFINE_UNQUOTED(COMPAT32BITFLAGS, $COMPAT32BITFLAGS)
|
---|
65 | AC_SUBST(COMPAT32BITFLAGS)
|
---|
66 |
|
---|
67 | dnl
|
---|
68 | dnl Make sure Javac and Java are available
|
---|
69 | dnl
|
---|
70 |
|
---|
71 | AC_PROG_JAVAC
|
---|
72 | AC_PROG_JAVA
|
---|
73 |
|
---|
74 | dnl
|
---|
75 | dnl Specify location of unac - if specified, will be passed to cascading configures
|
---|
76 | dnl
|
---|
77 | AC_ARG_WITH(unac, [ --with-unac=dir Use specified unac directory], UNAC_DIR=$withval)
|
---|
78 |
|
---|
79 | dnl
|
---|
80 | dnl Specify location of libiconv - if specified, will be passed to cascading configures
|
---|
81 | dnl
|
---|
82 | AC_ARG_WITH(libiconv, [ --with-libiconv-prefix=dir Use specified libiconv directory], LIBICONV_DIR=$withval)
|
---|
83 |
|
---|
84 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
85 | AC_CONFIG_SUBDIRS(packages/unac)
|
---|
86 | fi
|
---|
87 |
|
---|
88 | dnl AC_CONFIG_SUBDIRS(mg mgpp)
|
---|
89 |
|
---|
90 | if test $ENABLE_MG = 1; then
|
---|
91 | if test ! -d mg; then
|
---|
92 | echo "***** Folder mg does not exist, cannot ENABLE_MG.";
|
---|
93 | exit 1;
|
---|
94 | fi
|
---|
95 | AC_CONFIG_SUBDIRS(mg)
|
---|
96 | fi
|
---|
97 |
|
---|
98 | if test $ENABLE_MGPP = 1; then
|
---|
99 | if test ! -d mgpp; then
|
---|
100 | echo "***** Folder mgpp does not exist, cannot ENABLE_MGPP.";
|
---|
101 | exit 1;
|
---|
102 | fi
|
---|
103 | AC_CONFIG_SUBDIRS(mgpp)
|
---|
104 | fi
|
---|
105 |
|
---|
106 | if test $ENABLE_LUCENE = 1; then
|
---|
107 | if test ! -d lucene-gs; then
|
---|
108 | echo "***** Folder lucene-gs does not exist, cannot ENABLE_LUCENE.";
|
---|
109 | exit 1;
|
---|
110 | fi
|
---|
111 | fi
|
---|
112 |
|
---|
113 | AC_OUTPUT(Makefile)
|
---|