forked from bartekplus/presage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
704 lines (617 loc) · 20 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
dnl configure.ac for Presage
dnl Presage, an extensible predictive text entry system
dnl ---------------------------------------------------
dnl
dnl Copyright (C) 2012 Matteo Vescovi <matteo.vescovi\@yahoo.co.uk>
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License along
dnl with this program; if not, write to the Free Software Foundation, Inc.,
dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
dnl Process this file with autoconf to produce a configure script.
AC_INIT([presage],[0.9.2~beta],[https://github.com/sailfish-keyboard/presage])
AM_INIT_AUTOMAKE([1.9 tar-ustar -Wall])
AC_CONFIG_SRCDIR([src/lib/presage.cpp])
AC_CONFIG_HEADERS([config.h:config.hin])
AC_CONFIG_MACRO_DIR([m4])
dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_CC
AC_PROG_CPP
AM_PROG_CC_C_O
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_LANG([C++])
AM_CONDITIONAL([USE_GCC], [test "x$GCC" = "xyes"])
# SFOS seems to have old autotools packages, adding option manually.
# When ready, replace AX_CHECK_COMPILE_FLAG with AX_CXX_COMPILE_STDCXX_11
#AX_CXX_COMPILE_STDCXX_11(,[mandatory])
dnl ==================
dnl Checks for libtool
dnl ==================
LT_INIT([win32-dll])
dnl ============================
dnl Checks for ld version script
dnl ============================
AC_MSG_CHECKING([whether linker supports version scripts])
cat > conftest.map <<EOF
VERSION_1 {
global:
main;
local:
*;
};
VERSION_2 {
global:
main;
hello_world;
} VERSION_1;
EOF
save_ldflags="$LDFLAGS"
LDFLAGS="$LDFLAGS -Wl,--version-script,conftest.map"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[const char hello_world[] = "Hello, World\n";]],
[[]])],
[have_ld_with_version_script=yes],
[have_ld_with_version_script=no]
)
LDFLAGS="$save_ldflags"
if test "x$have_ld_with_version_script" = "xyes"
then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_WARN([Linker does not support version scripts.])
fi
AM_CONDITIONAL([HAVE_LD_WITH_VERSION_SCRIPT],
[test "x$have_ld_with_version_script" = "xyes"])
dnl Cygwin windows specific flag
LDFLAGS="-L/usr/local/lib $LDFLAGS"
dnl ====================
dnl Checks for libraries
dnl ====================
dnl =======================
dnl Checks for header files
dnl =======================
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_CHECK_HEADERS([pwd.h])
dnl ==================
dnl Checks for ncurses
dnl ==================
AC_CHECK_LIB([curses],
[initscr],
[have_curses_library=true],
[AC_MSG_WARN([curses library not found. curses demo programs will not be built.])])
AC_CHECK_HEADERS([curses.h],
[have_curses_header=true],
[AC_MSG_WARN([curses header file not found. curses demo programs will not be built.])],
[])
AM_CONDITIONAL([HAVE_CURSES], [test "x$have_curses_library" = "xtrue" -a "x$have_curses_header" = "xtrue"])
dnl ==================
dnl Checks for tinyxml
dnl ==================
AC_CHECK_LIB([tinyxml],
[main],
[have_tinyxml_library=true],
[AC_MSG_WARN([tinyxml library not found. Embedded tinyxml library will be built.])])
AC_CHECK_HEADERS([tinyxml.h],
[have_tinyxml_header=true],
[AC_MSG_WARN([tinyxml library not found. Embedded tinyxml library will be built.])],
[])
if test "x$have_tinyxml_library" != "xtrue" -o "x$have_tinyxml_header" != "xtrue"
then
build_tinyxml=yes
else
build_tinyxml=no
AC_DEFINE([TIXML_USE_STL], [1], [Define to 1 to use STL string in TinyXML])
fi
AM_CONDITIONAL([BUILD_TINYXML], [test "x$build_tinyxml" = "xyes"])
dnl =================
dnl Checks for SQLite
dnl =================
AC_ARG_ENABLE([sqlite],
AS_HELP_STRING([--disable-sqlite],[disable use of SQLite (default: enabled)]),
[enable_sqlite=$enableval],
[enable_sqlite=yes])
dnl check for libsqlite3
dnl if (libsqlite3 found) {
dnl set SQLITE_LIBS to -lsqlite3
dnl check for sqlite3.h
dnl if (sqlite3.h found) {
dnl using sqlite3
dnl } else {
dnl error
dnl }
dnl } else {
dnl check for libsqlite2
dnl if (libsqlite2 found) {
dnl set SQLITE_LIBS to -lsqlite
dnl check for sqlite2.h
dnl if (sqlite2.h found) {
dnl using sqlite2
dnl } else
dnl error
dnl }
dnl } else {
dnl error
dnl }
dnl }
if test "x$enable_sqlite" = "xyes"
then
AC_CHECK_LIB([sqlite3],
[sqlite3_open],
[SQLITE_LIBS="-lsqlite3" && \
AC_CHECK_HEADERS([sqlite3.h],
[have_sqlite=yes && AC_MSG_NOTICE([using sqlite 3])],
[AC_MSG_WARN([Found sqlite3 library, but cannot find matching sqlite3.h header.])],
[])],
[AC_CHECK_LIB([sqlite],
[sqlite_open],
[SQLITE_LIBS="-lsqlite" && \
AC_CHECK_HEADERS([sqlite.h],
[have_sqlite=yes && AC_MSG_NOTICE([using sqlite 2])],
[AC_MSG_WARN([Found sqlite 2 library, but cannot find matching sqlite.h header.])],
[])],
[SQLITE_LIBS= && \
have_sqlite=no && \
AC_MSG_WARN([SQLite library not found. SQLite can be obtained from http://sqlite.org.])])])
AC_SUBST([SQLITE_LIBS], ["$SQLITE_LIBS"])
fi
if test "x$enable_sqlite" = "xyes" -a "x$have_sqlite" = "xyes"
then
use_sqlite=yes
AC_DEFINE([USE_SQLITE], [1], [Define to 1 if you want to use SQLite])
else
use_sqlite=no
fi
AM_CONDITIONAL([USE_SQLITE], [test "x$use_sqlite" = "xyes"])
dnl ==================
dnl Checks for MARISA
dnl ==================
AC_CHECK_HEADERS([marisa.h],
[have_marisa_header=true],
[AC_MSG_WARN([MARISA header file not found.])],
[])
AM_CONDITIONAL([HAVE_MARISA], [test "x$have_marisa_header" = "xtrue"])
if test "x$have_marisa_header" = "xtrue"
then
AC_SUBST([MARISA_LIBS], ["-lmarisa"])
fi
dnl ==================
dnl Checks for HUNSPELL
dnl ==================
AC_CHECK_HEADERS([hunspell/hunspell.hxx],
[have_hunspell_header=true],
[AC_MSG_WARN([Hunspell header file not found.])],
[])
AM_CONDITIONAL([HAVE_HUNSPELL], [test "x$have_hunspell_header" = "xtrue"])
if test "x$have_hunspell_header" = "xtrue"
then
AC_SUBST([HUNSPELL_LIBS], ["-lhunspell"])
fi
dnl ==================
dnl Checks for ASPELL
dnl ==================
AC_CHECK_HEADERS([aspell.h],
[have_aspell_header=true],
[AC_MSG_WARN([Apell header file not found.])],
[])
AM_CONDITIONAL([HAVE_ASPELL], [test "x$have_aspell_header" = "xtrue"])
if test "x$have_aspell_header" = "xtrue"
then
AC_SUBST([ASPELL_LIBS], ["-laspell"])
fi
dnl ==================
dnl Checks for CppUnit
dnl ==================
AM_PATH_CPPUNIT([1.9.6],
[],
[AC_MSG_WARN([CppUnit not found. Unit tests will not be built. CppUnit can be obtained from http://cppunit.sourceforge.net.])])
AM_CONDITIONAL([HAVE_CPPUNIT], [test "$CPPUNIT_LIBS"])
dnl ============================
dnl Bindings for other languages
dnl ==
dnl ===============
dnl Checks for SWIG
dnl ===============
AC_PATH_PROG([SWIG], [swig])
if test ! "$SWIG"
then
AC_PATH_PROG([SWIG], [swig2.0])
fi
AM_CONDITIONAL([HAVE_SWIG], [test "$SWIG"])
dnl =================
dnl Checks for Python
dnl =================
AM_PATH_PYTHON([2.0],
[],
[AC_MSG_WARN([Python not found. Python is required to build presage python binding. Python can be obtained from http://www.python.org])])
if test "$PYTHON" != :
then
python_include_path=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_python_inc();"`
AC_CHECK_HEADERS([${python_include_path}/Python.h],
[have_python_header=true],
[AC_MSG_WARN([Python.h header file not found. Python development files are required to build presage python binding. Python can be obtained from http://www.python.org])],
[])
fi
AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != : -a "x$have_python_header" = "xtrue"])
AC_ARG_ENABLE([python-binding],
AS_HELP_STRING([--disable-python-binding],
[build python binding (default=enabled)]),
[ac_enable_python_binding=$enableval],
[ac_enable_python_binding=yes])
if test "x$ac_enable_python_binding" = "xyes"
then
if test ! "$SWIG" -o ! "$PYTHON" != : -o ! "x$have_python_header" = "xtrue"
then
AC_MSG_WARN([Python binding for presage cannot be built. Ensure that SWIG and Python packages are available.])
fi
else
AC_MSG_NOTICE([Python binding for presage will not be built.])
AC_MSG_NOTICE([Enable Python binding module building with --enable-python-binding])
fi
AM_CONDITIONAL([ENABLE_PYTHON_BINDING], [test "x$ac_enable_python_binding" = "xyes"])
dnl ======================
dnl Checks for dbus python
dnl ======================
have_dbus_python=no
if test "$PYTHON" != :
then
AC_MSG_CHECKING(for python dbus module)
$PYTHON -c "import dbus" 2&>/dev/null
if test $? -eq 0;
then
have_dbus_python=yes
else
have_dbus_python=no
fi
AC_MSG_RESULT($have_dbus_python)
fi
AM_CONDITIONAL([HAVE_DBUS_PYTHON], [test "x$have_dbus_python" = "xyes"])
dnl ========================
dnl Checks for pypresagemate
dnl ========================
if test "$PYTHON" != :
then
AC_MSG_CHECKING(for pyatspi module)
$PYTHON -c "import pyatspi" 2&>/dev/null
if test $? -eq 0;
then
have_pyatspi=yes
else
have_pyatspi=no
fi
AC_MSG_RESULT($have_pyatspi)
AC_MSG_CHECKING(for python gtk module)
$PYTHON -c "import gtk" 2&>/dev/null
if test $? -eq 0;
then
have_python_gtk=yes
else
have_python_gtk=no
fi
AC_MSG_RESULT($have_python_gtk)
AC_MSG_CHECKING(for python pango module)
$PYTHON -c "import pango" 2&>/dev/null
if test $? -eq 0;
then
have_python_pango=yes
else
have_python_pango=no
fi
AC_MSG_RESULT($have_python_pango)
AC_MSG_CHECKING(for python Xlib module)
$PYTHON -c "import Xlib" 2&>/dev/null
if test $? -eq 0;
then
have_python_Xlib=yes
else
have_python_Xlib=no
fi
AC_MSG_RESULT($have_python_Xlib)
fi
if test "$PYTHON" != : -a \
"x$have_pyatspi" = "xyes" -a \
"x$have_python_gtk" = "xyes" -a \
"x$have_python_pango" = "xyes" -a \
"x$have_python_Xlib" = "xyes"
then
enable_pypresagemate=yes
else
enable_pypresagemate=no
fi
AM_CONDITIONAL([ENABLE_PYPRESAGEMATE], [test "x$enable_pypresagemate" = "xyes"])
dnl =====================
dnl Checks for pyprompter
dnl =====================
if test "$PYTHON" != :
then
AC_MSG_CHECKING(for python wx module)
$PYTHON -c "import wx" 2&>/dev/null
if test $? -eq 0;
then
have_python_wx=yes
else
have_python_wx=no
fi
AC_MSG_RESULT($have_python_wx)
AC_MSG_CHECKING(for python wx.stc module)
$PYTHON -c "import wx.stc" 2&>/dev/null
if test $? -eq 0;
then
have_python_wx_stc=yes
else
have_python_wx_stc=no
fi
AC_MSG_RESULT($have_python_wx_stc)
fi
if test "$PYTHON" != : -a \
"x$have_python_wx" = "xyes" -a \
"x$have_python_wx_stc" = "xyes"
then
enable_pyprompter=yes
else
enable_pyprompter=no
fi
AM_CONDITIONAL([ENABLE_PYPROMPTER], [test "x$enable_pyprompter" = "xyes"])
dnl ========================
dnl Checks for documentation
dnl ========================
AC_ARG_ENABLE([documentation],
AS_HELP_STRING([--disable-documentation],[disable documentation generation (default: enabled)]),
[enable_documentation=$enableval],
[enable_documentation=yes])
AM_CONDITIONAL([BUILD_DOCUMENTATION], [test "x$enable_documentation" = "xyes"])
dnl ===================
dnl Checks for unix2dos
dnl ===================
AC_PATH_PROG([UNIX2DOS], [unix2dos])
AM_CONDITIONAL([HAVE_UNIX2DOS], [test "$UNIX2DOS"])
dnl ==================
dnl Checks for Doxygen
dnl ==================
AC_CHECK_PROG([HAVE_DOXYGEN], [doxygen], [yes], [no])
if test "x$HAVE_DOXYGEN" = "xno"
then
AC_MSG_NOTICE([Doxygen not found. API documentation will not be built.])
fi
AM_CONDITIONAL([HAVE_DOXYGEN], [test "x$HAVE_DOXYGEN" = "xyes"])
if test "x$enable_documentation" = "xyes" -a "x$HAVE_DOXYGEN" = "xyes"
then
build_documentation=yes
else
build_documentation=no
fi
dnl ==============
dnl Checks for dot
dnl ==============
AC_CHECK_PROG([HAVE_DOT], [dot], [yes], [no])
if test "x$HAVE_DOT" = "xno"
then
AC_MSG_NOTICE([dot not found. Documentation graphs and diagrams will not be generated.])
fi
AC_SUBST([HAVE_DOT], ["$HAVE_DOT"])
if test "x$enable_documentation" = "xyes" -a "x$HAVE_DOXYGEN" = "xyes" -a "x$HAVE_DOT" = "xyes"
then
build_documentation_diagrams=yes
else
build_documentation_diagrams=no
fi
dnl ===================
dnl Checks for help2man
dnl ===================
AC_CHECK_PROG([HAVE_HELP2MAN], [help2man], [yes], [no])
if test "x$HAVE_HELP2MAN" = "xno"
then
AC_MSG_NOTICE([help2man not found. Man documentation pages will not be built.])
fi
AM_CONDITIONAL([HAVE_HELP2MAN], [test "x$HAVE_HELP2MAN" = "xyes"])
dnl ====================
dnl Checks for GTK tools
dnl ====================
AC_ARG_ENABLE([gpresagemate],
AS_HELP_STRING([--disable-gpresagemate],[build gpresagemate (default: enabled)]),
[enable_gpresagemate=$enableval],
[enable_gpresagemate=yes])
AC_ARG_ENABLE([gprompter],
AS_HELP_STRING([--disable-gprompter],[build gprompter (default: enabled)]),
[enable_gprompter=$enableval],
[enable_gprompter=yes])
if test "x$enable_gpresagemate" = "xyes"
then
AC_CHECK_HEADERS([X11/Xlib.h X11/Xproto.h X11/X.h X11/Xutil.h X11/keysymdef.h pthread.h],
[have_x11_headers=yes],
[have_x11_headers=no],
[])
AC_CHECK_HEADERS([X11/extensions/Xevie.h],
[have_x11_extension_xevie=yes],
[have_x11_extension_xevie=no],
[[#if HAVE_X11_XLIB_H
# include <X11/Xlib.h>
#endif]])
fi
if test "x$enable_gpresagemate" = "xyes" -o "x$enable_gprompter" = "xyes"
then
PKG_CHECK_MODULES([GNOME],
[gtk+-2.0],
[have_gtk=yes],
[have_gtk=no])
AC_SUBST([GNOME_CFLAGS])
AC_SUBST([GNOME_LIBS])
PKG_CHECK_MODULES([GTHREAD],
[gthread-2.0],
[have_gthread=yes],
[have_gthread=no])
AC_SUBST([GTHREAD_CFLAGS])
AC_SUBST([GTHREAD_LIBS])
PKG_CHECK_MODULES([GMODULE],
[gmodule-2.0],
[have_gmodule=yes],
[have_gmodule=no])
AC_SUBST([GMODULE_CFLAGS])
AC_SUBST([GMODULE_LIBS])
fi
if test "x$enable_gpresagemate" = "xyes" -a \
"x$have_x11_headers" = "xyes" -a \
"x$have_x11_extension_xevie" = "xyes" -a \
"x$have_gtk" = "xyes" -a \
"x$have_gthread" = "xyes"
then
build_gtk_presage_mate=yes
else
build_gtk_presage_mate=no
fi
AM_CONDITIONAL([BUILD_GTK_PRESAGE_MATE], [test "x$build_gtk_presage_mate" = "xyes"])
if test "x$enable_gprompter" = "xyes" -a \
"x$have_gtk" = "xyes" -a \
"x$have_gthread" = "xyes"
then
build_gtk_prompter=yes
else
build_gtk_prompter=no
fi
AM_CONDITIONAL([BUILD_GTK_PROMPTER], [test "x$build_gtk_prompter" = "xyes"])
dnl ===================================================
dnl Checks for CMU-Statistical Language Modelling tools
dnl ===================================================
AC_PATH_PROG([TEXT2WFREQ], [text2wfreq])
AC_PATH_PROG([TEXT2IDNGRAM], [text2idngram])
AC_PATH_PROG([WFREQ2VOCAB], [wfreq2vocab])
AC_PATH_PROG([IDNGRAM2LM], [idngram2lm])
if test "$TEXT2WFREQ" -a \
"$WFREQ2VOCAB" -a \
"$IDNGRAM2LM" -a \
"$TEXT2IDNGRAM"
then
build_arpa_ngram_resources=yes
else
build_arpa_ngram_resources=no
AC_MSG_NOTICE([CMU-Cambridge SLM tools not found. ARPA ngram language model will not be built.])
fi
AM_CONDITIONAL([BUILD_ARPA_NGRAM], [test "x$build_arpa_ngram_resources" = "xyes"])
############################
# Temporarily disabling this
#AC_CONFIG_SUBDIRS(src/plump)
AC_CONFIG_FILES([
Makefile
src/Makefile
src/lib/Makefile
src/lib/core/Makefile
src/lib/core/tokenizer/Makefile
src/lib/core/context_tracker/Makefile
src/lib/tinyxml/Makefile
src/lib/predictors/Makefile
src/lib/predictors/dbconnector/Makefile
src/tools/Makefile
src/tools/simulator/Makefile
test/Makefile
test/lib/Makefile
test/lib/common/Makefile
test/lib/core/Makefile
test/lib/core/tokenizer/Makefile
test/lib/core/context_tracker/Makefile
test/lib/predictors/Makefile
test/lib/predictors/dbconnector/Makefile
test/tools/Makefile
test/integration/Makefile
resources/Makefile
resources/arpa/Makefile
resources/profiles/Makefile
bindings/Makefile
bindings/c/Makefile
bindings/python/setup.py
bindings/python/Makefile
bindings/csharp/Makefile
bindings/csharp/presage.net/Makefile
bindings/csharp/presage_csharp_demo/Makefile
bindings/csharp/presage_wcf_service/Makefile
bindings/csharp/presage_wcf_service_console_host/Makefile
bindings/csharp/presage_wcf_service_system_tray/Makefile
apps/Makefile
apps/gtk/Makefile
apps/gtk/gpresagemate/Makefile
apps/gtk/gprompter/Makefile
apps/python/Makefile
apps/python/pyprompter
apps/python/pypresagemate
apps/python/setup.py
apps/dbus/Makefile
apps/dbus/setup.py
apps/dbus/presage_dbus_python_demo
apps/notepad++/Makefile
doc/Doxyfile
doc/Makefile
bindings/python/presage_python_demo
])
AC_OUTPUT
if test "x$have_curses_library" = "xtrue" -a "x$have_curses_header" = "xtrue"
then
build_demo_application="yes"
else
build_demo_application="no"
fi
if test "$CPPUNIT_LIBS"
then
build_unit_tests="yes"
else
build_unit_tests="no"
fi
if test "$SWIG" -a "$PYTHON" != : -a "x$have_python_header" = "xtrue" -a "x$ac_enable_python_binding" = "xyes"
then
build_python_binding="yes"
else
build_python_binding="no"
fi
AC_MSG_RESULT([
$PACKAGE $VERSION configured successfully.
General configuration:
Compiler: ................... ${CXX}
Curses demo application: .... ${build_demo_application}
Unit tests: ................. ${build_unit_tests}
Python binding: ............. ${build_python_binding}
Man pages: .................. ${HAVE_HELP2MAN}
API documentation: .......... ${build_documentation}
API documentation diagrams: . ${build_documentation_diagrams}
Predictors:
Smoothed n-gram: ............ ${use_sqlite}
Recency promotion: .......... yes
Abbreviation expansion: ..... yes
Smoothed count: ............. ${use_sqlite}
Dictionary: ................. yes
Deja-vu: .................... yes
ARPA: ....................... yes
Bindings:
C++ ......................... yes
C ........................... yes
C# .NET ..................... manual build required
.NET WCF service ............ manual build required
.NET WCF service tray app.... manual build required
.NET WCF service console app. manual build required
Python ...................... ${build_python_binding}
Additional applications:
D-BUS presage service: ...... ${have_dbus_python}
wxPython pyprompter: ........ ${enable_pyprompter}
pypresagemate: .............. ${enable_pypresagemate}
GTK+ presage mate: .......... ${build_gtk_presage_mate}
GTK+ prompter: .............. ${build_gtk_prompter}
Notepad++ plugin: ........... manual build required
QT prompter: ................ manual build required
Additional resources:
ARPA format ngram: .......... ${build_arpa_ngram_resources}
Building:
Type `make' to build $PACKAGE.
Type `make check' to test $PACKAGE.
Type `make install' to install $PACKAGE.
])