forked from VincentWei/mgncs
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
707 lines (578 loc) · 20.3 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
705
706
707
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.60)
AC_INIT(libmgncs, 1.2.4)
AC_CONFIG_SRCDIR(src/mctrls.c)
MGNCS_MAJOR_VERSION=1
MGNCS_MINOR_VERSION=2
MGNCS_MICRO_VERSION=4
MGNCS_INTERFACE_AGE=0
MGNCS_BINARY_AGE=0
MGNCS_VERSION=$MGNCS_MAJOR_VERSION.$MGNCS_MINOR_VERSION.$MGNCS_MICRO_VERSION
AC_SUBST(MGNCS_MAJOR_VERSION)
AC_SUBST(MGNCS_MINOR_VERSION)
AC_SUBST(MGNCS_MICRO_VERSION)
AC_SUBST(MGNCS_INTERFACE_AGE)
AC_SUBST(MGNCS_BINARY_AGE)
AC_SUBST(MGNCS_VERSION)
AC_DEFINE_UNQUOTED(MGNCS_MAJOR_VERSION, $MGNCS_MAJOR_VERSION,
[Major version of mGNCS])
AC_DEFINE_UNQUOTED(MGNCS_MINOR_VERSION, $MGNCS_MINOR_VERSION,
[Minor version of mGNCS])
AC_DEFINE_UNQUOTED(MGNCS_MICRO_VERSION, $MGNCS_MICRO_VERSION,
[Micro version of mGNCS])
AC_DEFINE_UNQUOTED(MGNCS_INTERFACE_AGE, $MGNCS_INTERFACE_AGE,
[Interface age of mGNCS])
AC_DEFINE_UNQUOTED(MGNCS_BINARY_AGE, $MGNCS_BINARY_AGE,
[Binary age of mGNCS])
# libtool versioning
LT_RELEASE=$MGNCS_MAJOR_VERSION.$MGNCS_MINOR_VERSION
LT_CURRENT=`expr $MGNCS_MICRO_VERSION - $MGNCS_INTERFACE_AGE`
LT_REVISION=$MGNCS_INTERFACE_AGE
LT_AGE=`expr $MGNCS_BINARY_AGE - $MGNCS_INTERFACE_AGE`
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
dnl ========================================================================
dnl Need for cross-compiling
AC_CANONICAL_SYSTEM
dnl ========================================================================
dnl Init automake
AM_INIT_AUTOMAKE
dnl ========================================================================
# Checks for programs.
AC_PROG_CC
AC_PROG_LD
AC_PROG_RANLIB
AC_PROG_LIBTOOL
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
dnl ========================================================================
dnl Put the name and version of the package here
# Checks for libraries.
# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/time.h termio.h termios.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_PID_T
AC_STRUCT_TM
# Checks for library functions.
AC_FUNC_CLOSEDIR_VOID
AC_FUNC_FORK
AC_PROG_GCC_TRADITIONAL
AC_FUNC_STAT
AC_FUNC_VPRINTF
AC_FUNC_ALLOCA
AC_CHECK_FUNCS([bzero dup2 getcwd memmove memset putenv strchr strdup strerror strstr strndup ftruncate mmap])
AM_CONFIG_HEADER(mgncsconfig.h)
dnl ===============================================
dnl System wide options
devel_mode="no"
detail_debug="no"
have_ctrlsuffix="yes"
enable_rdr_skin="yes"
enable_rdr_fashion="yes"
enable_rdr_flat="yes"
enable_dbedit="yes"
enable_iconv="no"
guibuilder_support="no"
build_ctrl_oldmledit="no"
build_ctrl_texteditor="yes"
build_ctrl_textedittitle="no"
build_datasource="yes"
build_datasource_sqlite="yes"
build_datasource_xml="yes"
build_datasource_static="yes"
build_datasource_text="yes"
build_datasource_ini="yes"
build_ctrl_animate="yes"
build_ctrl_colorbutton="yes"
build_ctrl_container="yes"
build_ctrl_combobox="yes"
build_ctrl_dialogbox="yes"
build_ctrl_iconview="yes"
build_ctrl_imagebutton="yes"
build_ctrl_imwordsel="yes"
build_ctrl_ledlabel="yes"
build_ctrl_list="yes"
build_ctrl_listbox="yes"
build_ctrl_listview="yes"
build_ctrl_monthcalendar="yes"
build_ctrl_menubutton="yes"
build_ctrl_page="yes"
build_ctrl_progressbar="yes"
build_ctrl_propsheet="yes"
build_ctrl_rectangle="yes"
build_ctrl_spinbox="yes"
build_ctrl_spinner="yes"
build_ctrl_scrollbar="yes"
build_ctrl_slider="yes"
build_ctrl_toolbar="yes"
build_ctrl_trackbar="yes"
build_engine_ime="yes"
build_engine_digit="yes"
build_engine_pti="yes"
build_engine_pinyin="yes"
build_engine_digitpti="yes"
build_engine_digitpy="yes"
AC_ARG_ENABLE(develmode,
[ --enable-develmode developer mode <default=no>],
devel_mode=$enableval)
AC_ARG_ENABLE(detail_debug,
[ --enable-detaildebug detailed debug information <default=no>],
detail_debug=$enableval)
AC_ARG_ENABLE(skinrdr,
[ --enable-skinrdr include skin renderer <default=yes>],
enable_rdr_skin=$enableval)
AC_ARG_ENABLE(fashionrdr,
[ --enable-fashionrdr include fashion renderer <default=yes>],
enable_rdr_fashion=$enableval)
AC_ARG_ENABLE(flatrdr,
[ --enable-flatrdr include flat renderer <default=yes>],
enable_rdr_flat=$enableval)
if test "x$enable_rdr_skin" = "xyes"; then
AC_DEFINE(_MGNCS_RDR_SKIN, 1,
[Define if include skin renderer])
fi
if test "x$enable_rdr_fashion" = "xyes"; then
AC_DEFINE(_MGNCS_RDR_FASHION, 1,
[Define if include fashion renderer])
PKG_CHECK_MODULES([MGPLUS], [mgplus >= 1.4.0])
DEP_LIBS="$DEP_LIBS $MGPLUS_LIBS"
fi
if test "x$enable_rdr_flat" = "xyes"; then
AC_DEFINE(_MGNCS_RDR_FLAT, 1,
[Define if include flat renderer])
fi
AC_ARG_ENABLE(ctrlsuffix,
[ --enable-ctrlsuffix have or not the prefix of ncs name<default=yes>],
have_ctrlsuffix=$enableval)
if test "x$have_ctrlsuffix" = "xyes";
then
AC_DEFINE(_MGNCS_CLASS_SUFFIX, "_",
[Define the control surfix name])
else
AC_DEFINE(_MGNCS_CLASS_SUFFIX, "",
[Define the control surfix name])
fi
AC_ARG_ENABLE(dbedit,
[ --enable-dbedit use edit with double buffer support <default=yes>],
enable_dbedit=$enableval)
if test "x$enable_dbedit" = "xyes"; then
AC_DEFINE(_MGNCS_USE_DBEDIT, 1,
[Define if build NCS for using edit with double buffer ])
fi
AC_ARG_ENABLE(guibuilder-support,
[ --enable-guibuilder-support new control set used to support guibuilder <default=no>],
guibuilder_support=$enableval)
if test "x$guibuilder_support" = "xyes"; then
AC_DEFINE(_MGNCS_GUIBUILDER_SUPPORT, 1,
[Define if support guibuilder])
fi
AC_ARG_ENABLE(ctrlold-mledit,
[ --enable-ctrlold-mledit support the old multiline editor <default=no>],
build_ctrl_oldmledit=$enableval)
if test "x$build_ctrl_oldmledit" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_OLD_MLEDIT, 1,
[Define if support old multiline editor])
fi
AC_ARG_ENABLE(ctrltexteditor,
[ --enable-ctrltexteditor support the new texteditor <default=yes>],
build_ctrl_texteditor=$enableval)
if test "x$build_ctrl_texteditor" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_TEXTEDITOR, 1,
[Define if support new text editor])
fi
AC_ARG_ENABLE(ctrltextedittitle,
[ --enable-ctrltextedittitle support the title of new texteditor <default=no>],
build_ctrl_textedittitle=$enableval)
if test "x$build_ctrl_textedittitle" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_TEXTEDITTITLE, 1,
[Define if support title of new text editor])
fi
AC_ARG_WITH(libsuffix,
[ --with-libsuffix=ARG configure the suffix of the library name.])
case "$with_libsuffix" in
"")
cfgfile="mgncs.cfg"
MGNCS_LIBSUFFIX=""
have_libsuffix="no"
;;
*)
cfgfile="mgncs.cfg"
MGNCS_LIBSUFFIX="_$withval"
have_libsuffix="yes"
;;
esac
AC_ARG_ENABLE(useiconv,
[ --enable-useiconv enable the iconv as charset convertor <default=no>],
enable_iconv=$enableval)
if test "x$enable_iconv" = "xyes"; then
AC_DEFINE(_MGNCS_CHARSET_ICONV, 1,
[Define if use iconv as charset convertor])
fi
AC_ARG_ENABLE(dbdatasource,
[ --enable-dbdatasource enable datasource support <default=yes>],
build_datasource=$enableval)
if test "x$build_datasource" = "xyes"; then
AC_DEFINE(_MGNCSDB_DATASOURCE, 1,
[Define if support datasource])
fi
AC_ARG_ENABLE(dbsqlite,
[ --enable-dbsqlite enable sqlite datasource support <default=yes>],
build_datasource_sqlite=$enableval)
if test "x$build_datasource_sqlite" = "xyes"; then
AC_CHECK_LIB(sqlite3, sqlite3_open_v2,
DEP_LIBS="$DEP_LIBS -lsqlite3",
build_datasource_sqlite=no)
fi
if test "x$build_datasource_sqlite" = "xyes"; then
AC_DEFINE(_MGNCSDB_DATASOURCE, 1,
[Define if support datasource])
AC_DEFINE(_MGNCSDB_SQLITE, 1,
[Define if support sqlite datasource])
fi
AC_ARG_ENABLE(dbxml,
[ --enable-dbxml enable libxml2 datasource support <default=yes>],
build_datasource_xml=$enableval)
if test "x$build_datasource_xml" = "xyes"; then
AC_CHECK_LIB(xml2, xmlFree,
DEP_LIBS="$DEP_LIBS -lxml2",
build_datasource_xml=no)
fi
if test "x$build_datasource_xml" = "xyes"; then
AC_DEFINE(_MGNCSDB_DATASOURCE, 1,
[Define if support datasource])
AC_DEFINE(_MGNCSDB_XML, 1,
[Define if support xml datasource])
CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
fi
AC_ARG_ENABLE(dbstatic,
[ --enable-dbstatic enable the staticdatasource support or not <default=yes>],
build_datasource_static=$enableval)
if test "x$build_datasource_static" = "xyes"; then
AC_DEFINE(_MGNCSDB_DATASOURCE, 1,
[Define if support datasource])
AC_DEFINE(_MGNCSDB_STATIC, 1,
[Define if support staticdatasource])
fi
AC_ARG_ENABLE(dbtext,
[ --enable-dbtext enable the textdatasource support or not <default=yes>],
build_datasource_text=$enableval)
if test "x$build_datasource_text" = "xyes"; then
AC_DEFINE(_MGNCSDB_DATASOURCE, 1,
[Define if support datasource])
AC_DEFINE(_MGNCSDB_TEXT, 1,
[Define if support textdatasource])
fi
AC_ARG_ENABLE(dbini,
[ --enable-dbini enable the inidatasource support or not <default=yes>],
build_datasource_ini=$enableval)
if test "x$build_datasource_ini" = "xyes"; then
AC_DEFINE(_MGNCSDB_DATASOURCE, 1,
[Define if support datasource])
AC_DEFINE(_MGNCSDB_INI, 1,
[Define if support inidatasource])
fi
AC_ARG_ENABLE(ctrlanimate,
[ --enable-ctrlanimate enable the animate support or not <default=yes>],
build_ctrl_animate=$enableval)
if test "x$build_ctrl_animate" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_ANIMATE, 1,
[Define if support animate])
fi
AC_ARG_ENABLE(ctrlcolorbutton,
[ --enable-ctrlcolorbutton enable the colorbutton support or not <default=yes>],
build_ctrl_colorbutton=$enableval)
if test "x$build_ctrl_colorbutton" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_COLORBUTTON, 1,
[Define if support colorbutton])
fi
AC_ARG_ENABLE(ctrlcontainer,
[ --enable-ctrlcontainer enable the container support or not <default=yes>],
build_ctrl_container=$enableval)
if test "x$build_ctrl_container" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_CONTAINER, 1,
[Define if support container])
fi
AC_ARG_ENABLE(ctrlpage,
[ --enable-ctrlpage enable the page support or not <default=yes>],
build_ctrl_page=$enableval)
if test "x$build_ctrl_page" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_CONTAINER, 1,
[Define if support container])
AC_DEFINE(_MGNCSCTRL_PAGE, 1,
[Define if support page])
fi
AC_ARG_ENABLE(ctrlpropsheet,
[ --enable-ctrlpropsheet enable the propsheet support or not <default=yes>],
build_ctrl_propsheet=$enableval)
if test "x$build_ctrl_propsheet" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_CONTAINER, 1,
[Define if support container])
AC_DEFINE(_MGNCSCTRL_PAGE, 1,
[Define if support page])
AC_DEFINE(_MGNCSCTRL_PROPSHEET, 1,
[Define if support propsheet])
fi
AC_ARG_ENABLE(ctrllistbox,
[ --enable-ctrllistbox enable the listbox support or not <default=yes>],
build_ctrl_listbox=$enableval)
if test "x$build_ctrl_listbox" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_LISTBOX, 1,
[Define if support listbox])
fi
AC_ARG_ENABLE(ctrlcombobox,
[ --enable-ctrlcombobox enable the combobox support or not <default=yes>],
build_ctrl_combobox=$enableval)
if test "x$build_ctrl_combobox" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_LISTBOX, 1,
[Define if support listbox])
AC_DEFINE(_MGNCSCTRL_COMBOBOX, 1,
[Define if support combobox])
fi
AC_ARG_ENABLE(ctrldialogbox,
[ --enable-ctrldialogbox enable the dialogbox support or not <default=yes>],
build_ctrl_dialogbox=$enableval)
if test "x$build_ctrl_dialogbox" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_DIALOGBOX, 1,
[Define if support dialogbox])
fi
AC_ARG_ENABLE(ctrliconview,
[ --enable-ctrliconview enable the iconview support or not <default=yes>],
build_ctrl_iconview=$enableval)
if test "x$build_ctrl_iconview" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_ICONVIEW, 1,
[Define if support iconview])
fi
AC_ARG_ENABLE(ctrlimagebutton,
[ --enable-ctrlimagebutton enable the imagebutton support or not <default=yes>],
build_ctrl_imagebutton=$enableval)
if test "x$build_ctrl_imagebutton" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_IMAGEBUTTON, 1,
[Define if support imagebutton])
fi
AC_ARG_ENABLE(ctrlledlabel,
[ --enable-ctrlledlabel enable the ledlabel support or not <default=yes>],
build_ctrl_ledlabel=$enableval)
if test "x$build_ctrl_ledlabel" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_LEDLABEL, 1,
[Define if support ledlabel])
fi
AC_ARG_ENABLE(ctrllist,
[ --enable-ctrllist enable the list support or not <default=yes>],
build_ctrl_list=$enableval)
if test "x$build_ctrl_list" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_LIST, 1,
[Define if support list])
fi
AC_ARG_ENABLE(ctrllistview,
[ --enable-ctrllistview enable the listview support or not <default=yes>],
build_ctrl_listview=$enableval)
if test "x$build_ctrl_listview" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_LISTVIEW, 1,
[Define if support listview])
fi
AC_ARG_ENABLE(ctrlmenubutton,
[ --enable-ctrlmenubutton enable the menubutton support or not <default=yes>],
build_ctrl_menubutton=$enableval)
if test "x$build_ctrl_menubutton" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_MENUBUTTON, 1,
[Define if support menubutton])
fi
AC_ARG_ENABLE(ctrlprogressbar,
[ --enable-ctrlprogressbar enable the progressbar support or not <default=yes>],
build_ctrl_progressbar=$enableval)
if test "x$build_ctrl_progressbar" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_PROGRESSBAR, 1,
[Define if support progressbar])
fi
AC_ARG_ENABLE(ctrlrectangle,
[ --enable-ctrlrectangle enable the rectangle support or not <default=yes>],
build_ctrl_rectangle=$enableval)
if test "x$build_ctrl_rectangle" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_RECTANGLE, 1,
[Define if support rectangle])
fi
AC_ARG_ENABLE(ctrlspinner,
[ --enable-ctrlspinner enable the spinner support or not <default=yes>],
build_ctrl_spinner=$enableval)
if test "x$build_ctrl_spinner" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_SPINNER, 1,
[Define if support spinner])
fi
AC_ARG_ENABLE(ctrlspinbox,
[ --enable-ctrlspinbox enable the spinbox support or not <default=yes>],
build_ctrl_spinbox=$enableval)
if test "x$build_ctrl_spinbox" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_SPINNER, 1,
[Define if support spinner])
AC_DEFINE(_MGNCSCTRL_SPINBOX, 1,
[Define if support spinbox])
fi
AC_ARG_ENABLE(ctrlmonthcalendar,
[ --enable-ctrlmonthcalendar enable the monthcalendar support or not <default=yes>],
build_ctrl_monthcalendar=$enableval)
if test "x$build_ctrl_monthcalendar" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_SPINNER, 1,
[Define if support spinner])
AC_DEFINE(_MGNCSCTRL_SPINBOX, 1,
[Define if support spinbox])
AC_DEFINE(_MGNCSCTRL_MONTHCALENDAR, 1,
[Define if support monthcalendar])
fi
AC_ARG_ENABLE(ctrlslider,
[ --enable-ctrlslider enable the slider support or not <default=yes>],
build_ctrl_slider=$enableval)
if test "x$build_ctrl_slider" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_SLIDER, 1,
[Define if support slider])
fi
AC_ARG_ENABLE(ctrlscrollbar,
[ --enable-ctrlscrollbar enable the scrollbar support or not <default=yes>],
build_ctrl_scrollbar=$enableval)
if test "x$build_ctrl_scrollbar" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_SLIDER, 1,
[Define if support slider])
AC_DEFINE(_MGNCSCTRL_SCROLLBAR, 1,
[Define if support scrollbar])
fi
AC_ARG_ENABLE(ctrltrackbar,
[ --enable-ctrltrackbar enable the trackbar support or not <default=yes>],
build_ctrl_trackbar=$enableval)
if test "x$build_ctrl_trackbar" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_SLIDER, 1,
[Define if support slider])
AC_DEFINE(_MGNCSCTRL_TRACKBAR, 1,
[Define if support trackbar])
fi
AC_ARG_ENABLE(ctrltoolbar,
[ --enable-ctrltoolbar enable the toolbar support or not <default=yes>],
build_ctrl_toolbar=$enableval)
if test "x$build_ctrl_toolbar" = "xyes"; then
AC_DEFINE(_MGNCSCTRL_TOOLBAR, 1,
[Define if support toolbar])
fi
AC_ARG_ENABLE(engineime,
[ --enable-engineime enable the imeengine support or not <default=yes>],
build_engine_ime=$enableval)
if test "x$build_engine_ime" = "xyes"; then
AC_DEFINE(_MGNCSENGINE_IME, 1,
[Define if support imeengine])
fi
AC_ARG_ENABLE(ctrlimwordsel,
[ --enable-ctrlimwordsel enable the imwordsel support or not <default=yes>],
build_ctrl_imwordsel=$enableval)
if test "x$build_ctrl_imwordsel" = "xyes"; then
AC_DEFINE(_MGNCSENGINE_IME, 1,
[Define if support imeengine])
AC_DEFINE(_MGNCSCTRL_IMWORDSEL, 1,
[Define if support imwordsel])
fi
AC_ARG_ENABLE(enginepinyin,
[ --enable-enginepinyin enable the pinyinengine support or not <default=yes>],
build_engine_pinyin=$enableval)
if test "x$build_engine_pinyin" = "xyes"; then
AC_DEFINE(_MGNCSENGINE_IME, 1,
[Define if support imeengine])
AC_DEFINE(_MGNCSENGINE_PINYIN, 1,
[Define if support pinyinengine])
fi
AC_ARG_ENABLE(enginedigit,
[ --enable-enginedigit enable the digitengine support or not <default=yes>],
build_engine_digit=$enableval)
if test "x$build_engine_digit" = "xyes"; then
AC_DEFINE(_MGNCSENGINE_IME, 1,
[Define if support imeengine])
AC_DEFINE(_MGNCSENGINE_DIGIT, 1,
[Define if support digitengine])
fi
AC_ARG_ENABLE(enginepti,
[ --enable-enginepti enable the ptiengine support or not <default=yes>],
build_engine_pti=$enableval)
if test "x$build_engine_pti" = "xyes"; then
AC_DEFINE(_MGNCSENGINE_IME, 1,
[Define if support imeengine])
AC_DEFINE(_MGNCSENGINE_PTI, 1,
[Define if support ptiengine])
fi
AC_ARG_ENABLE(enginedigitpti,
[ --enable-enginedigitpti enable the digitptiengine support or not <default=yes>],
build_engine_digitpti=$enableval)
if test "x$build_engine_digitpti" = "xyes"; then
AC_DEFINE(_MGNCSENGINE_IME, 1,
[Define if support imeengine])
AC_DEFINE(_MGNCSENGINE_DIGIT, 1,
[Define if support digitengine])
AC_DEFINE(_MGNCSENGINE_PTI, 1,
[Define if support ptiengine])
AC_DEFINE(_MGNCSENGINE_DIGITPTI, 1,
[Define if support digitptiengine])
fi
AC_ARG_ENABLE(enginedigitpy,
[ --enable-enginedigitpy enable the digitpyengine support or not <default=yes>],
build_engine_digitpy=$enableval)
if test "x$build_engine_digitpy" = "xyes"; then
AC_DEFINE(_MGNCSENGINE_IME, 1,
[Define if support imeengine])
AC_DEFINE(_MGNCSENGINE_DIGIT, 1,
[Define if support digitengine])
AC_DEFINE(_MGNCSENGINE_PINYIN, 1,
[Define if support pinyinengine])
AC_DEFINE(_MGNCSENGINE_DIGITPY, 1,
[Define if support digitpyengine])
fi
AC_DEFINE_UNQUOTED(MGNCS_ETCFILENAME, "${cfgfile}", [MGNCS configure file name])
AM_CONDITIONAL(MGNCS_HAVE_LIBSUFFIX, test "x$have_libsuffix" = "xyes")
AC_DEFINE_UNQUOTED(_MGNCS_LIBSUFFIX, "${MGNCS_LIBSUFFIX}", [MGNCS library suffix])
AC_SUBST(MGNCS_LIBSUFFIX)
if test "x$devel_mode" = "xyes"; then
CPPFLAGS="$CPPFLAGS -D_DEBUG"
if test "x$detail_debug" = "xyes"; then
CPPFLAGS="$CPPFLAGS -DDEBUG"
fi
if test "$ac_cv_prog_gcc" = "yes"; then
CPPFLAGS="$CPPFLAGS -Werror -Wall"
fi
else
CPPFLAGS="$CPPFLAGS -DNDEBUG"
fi
if test "$ac_cv_prog_gcc" = "yes"; then
CFLAGS="$CFLAGS -Wstrict-prototypes -pipe"
fi
dnl ========================================================================
dnl check for run-time mode of MiniGUI
dnl ========================================================================
PKG_CHECK_MODULES([MINIGUI], [minigui >= 4.0.0])
if test "x$build_ctrl_colorbutton" = "xyes"; then
PKG_CHECK_MODULES([MGUTILS], [mgutils >= 1.2.2])
DEP_LIBS="$DEP_LIBS $MGUTILS_LIBS"
fi
APP_LIBS="$APP_LIBS $DEP_LIBS $MINIGUI_LIBS"
AC_SUBST(APP_LIBS)
AC_SUBST(DEP_LIBS)
AC_CONFIG_FILES([
mgncs.pc
Makefile
include/Makefile
include/pieces/Makefile
src/Makefile
src/renderer/Makefile
src/renderer/classic/Makefile
src/renderer/skin/Makefile
src/renderer/fashion/Makefile
src/renderer/flat/Makefile
src/pieces/Makefile
src/datasource/Makefile
src/ime/Makefile
etc/Makefile
build/Makefile
])
AC_OUTPUT