-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfigure.in
2194 lines (1828 loc) · 63.4 KB
/
configure.in
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
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
AC_INIT(src/main/main.c)
dnl Set various version strings - taken gratefully from the SDL sources
#
# Making releases:
# Change the version, then:
# MINIGUI_MICRO_VERSION += 1;
# MINIGUI_INTERFACE_AGE += 1;
# MINIGUI_BINARY_AGE += 1;
# if any functions have been added, set MINIGUI_INTERFACE_AGE to 0.
# if backwards compatibility has been broken,
# set MINIGUI_BINARY_AGE and MINIGUI_INTERFACE_AGE to 0.
#
MiniGUI_MAJOR_VERSION=1
MiniGUI_MINOR_VERSION=6
MiniGUI_MICRO_VERSION=10
MiniGUI_INTERFACE_AGE=0
MiniGUI_BINARY_AGE=0
MiniGUI_VERSION=$MiniGUI_MAJOR_VERSION.$MiniGUI_MINOR_VERSION.$MiniGUI_MICRO_VERSION
AC_SUBST(MiniGUI_MAJOR_VERSION)
AC_SUBST(MiniGUI_MINOR_VERSION)
AC_SUBST(MiniGUI_MICRO_VERSION)
AC_SUBST(MiniGUI_INTERFACE_AGE)
AC_SUBST(MiniGUI_BINARY_AGE)
AC_SUBST(MiniGUI_VERSION)
# libtool versioning
LT_RELEASE=$MiniGUI_MAJOR_VERSION.$MiniGUI_MINOR_VERSION
LT_CURRENT=`expr $MiniGUI_MICRO_VERSION - $MiniGUI_INTERFACE_AGE`
LT_REVISION=$MiniGUI_INTERFACE_AGE
LT_AGE=`expr $MiniGUI_BINARY_AGE - $MiniGUI_INTERFACE_AGE`
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
AC_CANONICAL_SYSTEM
dnl ========================================================================
dnl Check for tools
dnl 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
AM_INIT_AUTOMAKE(libminigui,$MiniGUI_VERSION,-)
dnl ========================================================================
dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_CHECK_HEADERS(sys/types.h sys/time.h termio.h unistd.h math.h locale.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_MEMCMP
AC_FUNC_MMAP
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(time mktime localtime strdup strcasecmp strncasecmp strerror setlocale getpt)
dnl ========================================================================
dnl User selectable options
dnl System wide options
procs_version="no"
stand_alone="no"
use_newgal="yes"
use_own_stdio="no"
use_own_malloc="no"
use_own_pthread="no"
incore_res="no"
fixed_math="yes"
use_miniguientry="no"
use_debug="no"
trace_message="no"
message_string="no"
move_window_by_mouse="yes"
double_click="yes"
build_cursor_support="yes"
build_clipboard="yes"
dnl GAL engine-specific options
with_coor_trans_cw="no"
with_coor_trans_ccw="no"
dnl IAL engine-specific options
build_custom_ial_engine="no"
build_ep7211_ial_engine="no"
build_ads_ial_engine="no"
build_ipaq_ial_engine="no"
build_figueroa_ial_engine="no"
build_l7200_ial_engine="no"
build_arm3000_ial_engine="no"
build_dm270_ial_engine="no"
build_evmv10_ial_engine="no"
build_fft7202_ial_engine="no"
build_palm2_ial_engine="no"
build_mpc823_ial_engine="no"
build_ucb1x00_ial_engine="no"
bulid_px255b_ial_engine="no"
build_vr4181_ial_engine="no"
build_helio_ial_engine="no"
build_tfstb_ial_engine="no"
build_t800_ial_engine="no"
build_mc68x328_ial_engine="no"
build_smdk2410_ial_engine="no"
build_hh2410r3_ial_engine="no"
build_c33l05_ial_engine="no"
build_hh2440_ial_engine="no"
build_skyeyeep7312_ial_engine="no"
build_dmgstb_ial_engine="no"
build_fip_ial_engine="no"
build_svpxx_ial_engine="no"
build_ads7846_ial_engine="no"
build_tomtomts_ial_engine="no"
build_dummy_ial_engine="yes"
build_em8620_ial_engine="no"
build_em86_ial_engine="no"
build_em85_ial_engine="no"
build_auto_ial_engine="no"
build_random_ial_engine="no"
build_hhkbdir_ial_engine="no"
build_comm_ial_engine="no"
build_qvfb_ial_engine="yes"
build_wvfb_ial_engine="no"
build_utpmc_ial_engine="no"
build_fxrm9200_ial_engine="no"
build_abssig_ial_engine="no"
build_embest2410_ial_engine="no"
build_embest44b0_ial_engine="no"
build_native_ial_engine="yes"
build_native_ps2="yes"
build_native_imps2="yes"
build_native_ms="yes"
build_native_ms3="yes"
build_native_gpm="yes"
build_text_mode="no"
build_dfb_ial_engine="no"
build_hi3510_ial_engine="no"
dnl Font related options
build_rbf_support="yes"
build_incorerbf_16="no"
build_incorerbf_24="no"
build_incorerbf_gb12="yes"
build_incorerbf_gb16="no"
build_incorerbf_gb24="no"
build_incorerbf_gb16_hei="no"
build_incorerbf_kj12="no"
build_incorerbf_kj14="no"
build_incorerbf_kj16="no"
build_incorerbf_big12="no"
build_incorerbf_big16="no"
build_incorerbf_big24="no"
build_vbf_support="yes"
build_incorefont_sansserif="yes"
build_incorefont_courier="yes"
build_incorefont_symbol="no"
build_incorefont_vgas="no"
build_incorefont_helv="no"
build_qpf_support="no"
build_ttf_support="no"
build_ft2_support="no"
build_ttfcache_support="no"
build_type1_support="no"
dnl Charset related options
build_latin2_support="no"
build_latin3_support="no"
build_latin4_support="no"
build_cyrillic_support="no"
build_arabic_support="no"
build_greek_support="no"
build_hebrew_support="no"
build_latin5_support="no"
build_latin6_support="no"
build_thai_support="no"
build_latin7_support="no"
build_latin8_support="no"
build_latin9_support="yes"
build_latin10_support="no"
build_gb_support="yes"
build_gbk_support="yes"
build_gb18030_support="no"
build_big5_support="yes"
build_euckr_support="no"
build_eucjp_support="no"
build_shiftjis_support="no"
build_unicode_support="yes"
dnl Keyboard layout specific options
use_kbd_frpc="no"
use_kbd_fr="no"
use_kbd_de="no"
use_kbd_delatin1="no"
use_kbd_it="no"
use_kbd_es="no"
use_kbd_escp850="no"
dnl Image related options
build_save_bitmap="yes"
build_pcx_support="no"
build_lbm_support="no"
build_tga_support="no"
build_gif_support="yes"
build_jpg_support="yes"
build_png_support="yes"
dnl Input method options
build_ime_gb2312="no"
build_ime_gb2312_pinyin="no"
dnl Misc options
build_misc_mousecalibrate="yes"
build_misc_aboutdlg="yes"
build_misc_savescreen="yes"
with_gray_screen="no"
tiny_screen_size="no"
with_fixed_barlen="no"
dnl Control related options
build_ctrl_static="yes"
build_ctrl_button="yes"
build_ctrl_simedit="yes"
build_ctrl_sledit="yes"
build_ctrl_listbox="yes"
build_ctrl_progressbar="yes"
build_ctrl_toolbar="yes"
build_ctrl_newtoolbar="yes"
build_ctrl_menubutton="yes"
build_ctrl_trackbar="yes"
build_ctrl_combobox="yes"
build_ctrl_propsheet="yes"
build_ctrl_scrollview="yes"
build_ctrl_textedit="yes"
build_ext_ctrl_monthcal="yes"
build_ext_ctrl_treeview="yes"
build_ext_ctrl_spinbox="yes"
build_ext_ctrl_coolbar="yes"
build_ext_ctrl_listview="yes"
build_ext_ctrl_iconview="yes"
build_ext_ctrl_gridview="no"
build_ext_ctrl_animation="yes"
build_ext_skin="yes"
build_libvcongui="yes"
build_adv2dapi="yes"
enable_video_dummy="yes"
enable_video_fbcon="yes"
enable_video_qvfb="yes"
enable_video_commlcd="no"
enable_video_shadow="no"
enable_video_wvfb="no"
enable_video_mlshadow="no"
enable_video_em86gfx="no"
enable_video_em85xxyuv="no"
enable_video_em85xxosd="no"
enable_video_svpxxosd="no"
enable_video_bf533="no"
enable_video_mb93493="no"
enable_video_utpmc="no"
enable_video_dfb="no"
enable_video_hi35xx="no"
AC_ARG_ENABLE(incoreres,
[ --enable-incoreres use incore resource instead file IO to initialize MiniGUI <default=no>],
incore_res=$enableval)
AC_ARG_ENABLE(miniguientry,
[ --enable-miniguientry use minigui_entry function in MiniGUI <default=no>],
use_miniguientry=$enableval)
AC_ARG_ENABLE(fixedmath,
[ --enable-fixedmath include fixed math routines <default=yes>],
fixed_math=$enableval)
AC_ARG_ENABLE(debug,
[ --enable-debug build with debugging messages <default=no>],
use_debug=$enableval)
AC_ARG_ENABLE(tracemsg,
[ --enable-tracemsg trace messages of MiniGUI <default=no>],
trace_message=$enableval)
AC_ARG_ENABLE(msgstr,
[ --enable-msgstr include symbol name of message <default=no>],
message_string=$enableval)
AC_ARG_ENABLE(micemoveable,
[ --enable-micemoveable user can move window by using mouse <default=yes>],
move_window_by_mouse=$enableval)
AC_ARG_ENABLE(dblclk,
[ --enable-dblclk mouse button can do double click <default=yes>],
double_click=$enableval)
AC_ARG_ENABLE(cursor,
[ --enable-cursor include cursor support <default=yes>],
build_cursor_support=$enableval)
AC_ARG_ENABLE(clipboard,
[ --enable-clipboard include clipboard support <default=yes>],
build_clipboard=$enableval)
AC_ARG_ENABLE(coortrans_cw,
[ --enable-coortrans_cw support clockwise rotation of screen in the native FB GAL engine <default=no>],
with_coor_trans_cw=$enableval)
AC_ARG_ENABLE(coortrans_ccw,
[ --enable-coortrans_ccw support counterclockwise rotation of screen in the native FB GAL engine <default=no>],
with_coor_trans_ccw=$enableval)
AC_ARG_ENABLE(customial,
[ --enable-customial build the IAL engine for customer's board <default=no>],
build_custom_ial_engine=$enableval)
AC_ARG_ENABLE(ipaqial,
[ --enable-ipaqial build the IAL engine for iPAQ H3600 <default=no>],
build_ipaq_ial_engine=$enableval)
AC_ARG_ENABLE(tomtomtsial,
[ --enable-tomtomtsial build the input engine for TOMTOM touch screen <default=no>],
build_tomtomts_ial_engine=$enableval)
AC_ARG_ENABLE(dummyial,
[ --enable-dummyial build the Dummy IAL engine <default=yes>],
build_dummy_ial_engine=$enableval)
AC_ARG_ENABLE(autoial,
[ --enable-autoial build the Automatic IAL engine <default=no>],
build_auto_ial_engine=$enableval)
AC_ARG_ENABLE(randomial,
[ --enable-randomial build the Random IAL engine <default=no>],
build_random_ial_engine=$enableval)
AC_ARG_ENABLE(commial,
[ --enable-commial build the COMM IAL engine <default=no>],
build_comm_ial_engine=$enableval)
AC_ARG_ENABLE(qvfbial,
[ --enable-qvfbial build the QVFB IAL engine <default=yes>],
build_qvfb_ial_engine=$enableval)
AC_ARG_ENABLE(nativeial,
[ --enable-nativeial build the native (Linux console) IAL engine <default=yes>],
build_native_ial_engine=$enableval)
AC_ARG_ENABLE(nativeps2,
[ --enable-nativeps2 build the native engine subdriver for PS2 mouse <default=yes>],
build_native_ps2=$enableval)
AC_ARG_ENABLE(nativeimps2,
[ --enable-nativeimps2 build the native engine subdriver for IntelligentMouse (IMPS/2) mouse <default=yes>],
build_native_imps2=$enableval)
AC_ARG_ENABLE(nativems,
[ --enable-nativems build the native engine subdirver for old MS serial mouse <default=yes>],
build_native_ms=$enableval)
AC_ARG_ENABLE(nativems3,
[ --enable-nativems3 build the native engine subdirver for MS3 mouse <default=yes>],
build_native_ms3=$enableval)
AC_ARG_ENABLE(nativegpm,
[ --enable-nativegpm build the native engine subdirver for GPM daemon <default=yes>],
build_native_gpm=$enableval)
AC_ARG_ENABLE(textmode,
[ --enable-textmode Linux system have console (text mode) on FrameBuffer <default=yes>],
build_text_mode=$enableval)
AC_ARG_ENABLE(rbfsupport,
[ --enable-rbfsupport include raw bitmap font support <default=yes>],
build_rbf_support=$enableval)
AC_ARG_ENABLE(rbf16,
[ --enable-rbf16 include incore RBF font of ISO8859-1 8x16 fixed font (incore resource) <default=no>],
build_incorerbf_16=$enableval)
AC_ARG_ENABLE(rbfgb12,
[ --enable-rbfgb12 include incore RBF font of GB2312 12x12 fixed/song font (incore resource) <default=yes>],
build_incorerbf_gb12=$enableval)
AC_ARG_ENABLE(rbfgb16,
[ --enable-rbfgb16 include incore RBF font of GB2312 16x16 fixed/song font (incore resource) <default=no>],
build_incorerbf_gb16=$enableval)
AC_ARG_ENABLE(rbfbig12,
[ --enable-rbfbig12 include incore RBF font of BIG5 12x12 fixed/ming font (incore resource) <default=no>],
build_incorerbf_big12=$enableval)
AC_ARG_ENABLE(rbfbig16,
[ --enable-rbfbig16 include incore RBF font of BIG5 16x16 fixed/ming font (incore resource) <default=no>],
build_incorerbf_big16=$enableval)
AC_ARG_ENABLE(vbfsupport,
[ --enable-vbfsupport include var bitmap font support <default=yes>],
build_vbf_support=$enableval)
AC_ARG_ENABLE(fontsserif,
[ --enable-fontsserif include incore font sansserif <default=yes>],
build_incorefont_sansserif=$enableval)
AC_ARG_ENABLE(fontcourier,
[ --enable-fontcourier include incore font courier <default=yes>],
build_incorefont_courier=$enableval)
AC_ARG_ENABLE(fontsymbol,
[ --enable-fontsymbol include incore font symbol <default=no>],
build_incorefont_symbol=$enableval)
AC_ARG_ENABLE(fontvgas,
[ --enable-fontvgas include incore font VGAs <default=no>],
build_incorefont_vgas=$enableval)
AC_ARG_ENABLE(fonthelv,
[ --enable-fonthelv include incore font Helvetica <default=no>],
build_incorefont_helv=$enableval)
AC_ARG_ENABLE(qpfsupport,
[ --enable-qpfsupport build support for Qt Prerendered Font (QPF) <default=yes>],
build_qpf_support=$enableval)
AC_ARG_ENABLE(latin9support,
[ --enable-latin9support include Latin 9 (ISO-8859-15, West Extended) charset support <default=yes>],
build_latin9_support=$enableval)
AC_ARG_ENABLE(gbsupport,
[ --enable-gbsupport include EUC encoding of GB2312 charset support <default=yes>],
build_gb_support=$enableval)
AC_ARG_ENABLE(big5support,
[ --enable-big5support include BIG5 charset support <default=yes>],
build_big5_support=$enableval)
AC_ARG_ENABLE(unicodesupport,
[ --enable-unicodesupport include UNICODE (ISO-10646-1 and UTF-8 encoding) support <default=yes>],
build_unicode_support=$enableval)
AC_ARG_ENABLE(kbdfrpc,
[ --enable-kbdfrpc include keyboard layout for French PC keyboard (non-US 102 keys) <default=no>],
use_kbd_frpc=$enableval)
AC_ARG_ENABLE(kbdfr,
[ --enable-kbdfr include keyboard layout for French <default=no>],
use_kbd_fr=$enableval)
AC_ARG_ENABLE(kbdde,
[ --enable-kbdde include keyboard layout for German <default=no>],
use_kbd_de=$enableval)
AC_ARG_ENABLE(kbddelatin1,
[ --enable-kbddelatin1 include keyboard layout for German Latin1 <default=no>],
use_kbd_delatin1=$enableval)
AC_ARG_ENABLE(kbdit,
[ --enable-kbdit include keyboard layout for Italian <default=no>],
use_kbd_it=$enableval)
AC_ARG_ENABLE(kbdes,
[ --enable-kbdes include keyboard layout for Spanish <default=no>],
use_kbd_es=$enableval)
AC_ARG_ENABLE(kbdescp850,
[ --enable-kbdescp850 include keyboard layout for Spanish CP850 <default=no>],
use_kbd_escp850=$enableval)
AC_ARG_ENABLE(savebitmap,
[ --enable-savebitmap include SaveBitmap-related functions <default=yes>],
build_save_bitmap=$enableval)
AC_ARG_ENABLE(pcxsupport,
[ --enable-pcxsupport include PCX file support <default=no>],
build_pcx_support=$enableval)
AC_ARG_ENABLE(lbmsupport,
[ --enable-lbmsupport include LBM/PBM file support <default=no>],
build_lbm_support=$enableval)
AC_ARG_ENABLE(tgasupport,
[ --enable-tgasupport include TGA file support <default=no>],
build_tga_support=$enableval)
AC_ARG_ENABLE(gifsupport,
[ --enable-gifsupport include GIF file support <default=yes>],
build_gif_support=$enableval)
AC_ARG_ENABLE(jpgsupport,
[ --enable-jpgsupport include JPG file support <default=yes>],
build_jpg_support=$enableval)
AC_ARG_ENABLE(pngsupport,
[ --enable-pngsupport include PNG file support <default=yes>],
build_png_support=$enableval)
AC_ARG_ENABLE(mousecalibrate,
[ --enable-mousecalibrate include code doing mouse calibration <default=yes>],
build_misc_mousecalibrate=$enableval)
AC_ARG_ENABLE(aboutdlg,
[ --enable-aboutdlg include About Dialog Box <default=yes>],
build_misc_aboutdlg=$enableval)
AC_ARG_ENABLE(savescreen,
[ --enable-savescreen include code for screenshots <default=yes>],
build_misc_savescreen=$enableval)
AC_ARG_ENABLE(grayscreen,
[ --enable-grayscreen target is a gray screen <default=no>],
with_gray_screen=$enableval)
AC_ARG_ENABLE(tinyscreen,
[ --enable-tinyscreen target is a tiny-size screen <default=no>],
tiny_screen_size=$enableval)
AC_ARG_ENABLE(fixedbarlen,
[ --enable-fixedbarlen scrollbar has a fixed bar length <default=no>],
with_fixed_barlen=$enableval)
AC_ARG_ENABLE(ctrlstatic,
[ --enable-ctrlstatic include STATIC control <default=yes>],
build_ctrl_static=$enableval)
AC_ARG_ENABLE(ctrlbutton,
[ --enable-ctrlbutton include BUTTON control <default=yes>],
build_ctrl_button=$enableval)
AC_ARG_ENABLE(ctrlsimedit,
[ --enable-ctrlsimedit include Simple EDIT control <default=yes>],
build_ctrl_simedit=$enableval)
AC_ARG_ENABLE(ctrlsledit,
[ --enable-ctrlsledit include Single-Line EDIT control <default=yes>],
build_ctrl_sledit=$enableval)
AC_ARG_ENABLE(ctrllistbox,
[ --enable-ctrllistbox include LISTBOX control <default=yes>],
build_ctrl_listbox=$enableval)
AC_ARG_ENABLE(ctrlpgbar,
[ --enable-ctrlpgbar include PROGRESSBAR control <default=yes>],
build_ctrl_progressbar=$enableval)
AC_ARG_ENABLE(ctrltoolbar,
[ --enable-ctrltoolbar include TOOLBAR control <default=yes>],
build_ctrl_toolbar=$enableval)
AC_ARG_ENABLE(ctrlnewtoolbar,
[ --enable-ctrlnewtoolbar include NEWTOOLBAR control <default=yes>],
build_ctrl_newtoolbar=$enableval)
AC_ARG_ENABLE(ctrlmenubtn,
[ --enable-ctrlmenubtn include MENUBUTTON control <default=yes>],
build_ctrl_menubutton=$enableval)
AC_ARG_ENABLE(ctrltrackbar,
[ --enable-ctrltrackbar include TRACKBAR control <default=yes>],
build_ctrl_trackbar=$enableval)
AC_ARG_ENABLE(ctrlcombobox,
[ --enable-ctrlcombobox include COMBOBOX control <default=yes>],
build_ctrl_combobox=$enableval)
AC_ARG_ENABLE(ctrlpropsheet,
[ --enable-ctrlpropsheet include PROPSHEET control <default=yes>],
build_ctrl_propsheet=$enableval)
AC_ARG_ENABLE(ctrlscrollview,
[ --enable-ctrlscrollview include SCROLLVIEW and SCROLLWINDOW controls <default=yes>],
build_ctrl_scrollview=$enableval)
AC_ARG_ENABLE(ctrltextedit,
[ --enable-ctrltextedit include TEXTEDIT control which is based-on SCROLLVIEW control <default=yes>],
build_ctrl_textedit=$enableval)
AC_ARG_ENABLE(extctrlmonthcal,
[ --enable-extctrlmonthcal include MONTHCALENDAR control in MiniGUIExt library <default=yes>],
build_ext_ctrl_monthcal=$enableval)
AC_ARG_ENABLE(extctrltreeview,
[ --enable-extctrltreeview include TREEVIEW control in MiniGUIExt library <default=yes>],
build_ext_ctrl_treeview=$enableval)
AC_ARG_ENABLE(extctrlspinbox,
[ --enable-extctrlspinbox include SPINBOX control in MiniGUIExt library <default=yes>],
build_ext_ctrl_spinbox=$enableval)
AC_ARG_ENABLE(extctrlcoolbar,
[ --enable-extctrlcoolbar include COOLBAR control in MiniGUIExt library <default=yes>],
build_ext_ctrl_coolbar=$enableval)
AC_ARG_ENABLE(extctrllistview,
[ --enable-extctrllistview include LISTVIEW control in MiniGUIExt library <default=yes>],
build_ext_ctrl_listview=$enableval)
AC_ARG_ENABLE(extctrliconview,
[ --enable-extctrliconview include ICONVIEW control in MiniGUIExt library <default=yes>],
build_ext_ctrl_iconview=$enableval)
AC_ARG_ENABLE(extctrlgridview,
[ --enable-extctrlgridview include GRIDVIEW control in MiniGUIExt library (test) <default=no>],
build_ext_ctrl_gridview=$enableval)
AC_ARG_ENABLE(extctrlanimation,
[ --enable-extctrlanimation include ANIMATION control and GIF87a/GIF89a support in MiniGUIExt library <default=yes>],
build_ext_ctrl_animation=$enableval)
AC_ARG_ENABLE(extskin,
[ --enable-extskin include skin support in MiniGUIExt library <default=yes>],
build_ext_skin=$enableval)
AC_ARG_ENABLE(libvcongui,
[ --enable-libvcongui include support for Virtual Console on Linux <default=yes>],
build_libvcongui=$enableval)
dnl Set up the Null video driver.
CheckDummyVideo()
{
AC_ARG_ENABLE(videodummy,
[ --enable-videodummy include dummy NEWGAL engine <default=yes>],
enable_video_dummy=$enableval)
if test "x$enable_video_dummy" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_DUMMY, 1,
[Define if include dummy NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS dummy"
VIDEO_DRIVERS="$VIDEO_DRIVERS dummy/libvideo_null.la"
fi
}
dnl Find the framebuffer console includes
CheckFBCON()
{
AC_ARG_ENABLE(videofbcon,
[ --enable-videofbcon include FrameBuffer console NEWGAL engine <default=yes>],
enable_video_fbcon=$enableval)
if test x$enable_video_fbcon = xyes; then
AC_MSG_CHECKING(for FrameBuffer console support)
video_fbcon=no
AC_TRY_COMPILE([
#include <linux/fb.h>
#include <linux/kd.h>
#include <linux/keyboard.h>
],[
],[
video_fbcon=yes
])
AC_MSG_RESULT($video_fbcon)
if test x$video_fbcon = xyes; then
AC_DEFINE(_NEWGAL_ENGINE_FBCON, 1,
[Define if include FrameBuffer console NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS fbcon"
VIDEO_DRIVERS="$VIDEO_DRIVERS fbcon/libvideo_fbcon.la"
fi
fi
}
dnl Check Qt Virtual FrameBuffer
CheckQVFB()
{
AC_ARG_ENABLE(videoqvfb,
[ --enable-videoqvfb include Qt Virtual FrameBuffer NEWGAL engine <default=yes>],
enable_video_qvfb=$enableval)
if test "x$enable_video_qvfb" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_QVFB, 1,
[Define if include Qt Virtual FrameBuffer NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS qvfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS qvfb/libvideo_qvfb.la"
fi
}
dnl Check Windows Virtual FrameBuffer
CheckWVFB()
{
AC_ARG_ENABLE(videowvfb,
[ --enable-videowvfb include windows Virtual FrameBuffer NEWGAL engine <default=no>],
enable_video_wvfb=$enableval)
if test "x$enable_video_wvfb" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_WVFB, 1,
[Define if include windows Virtual FrameBuffer NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS wvfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS wvfb/libvideo_wvfb.la"
dnl AC_DEFINE(_WVFB_IAL, 1, [Define if include wvfb ial support])
fi
}
dnl Set up the Common LCD video driver.
CheckCOMMLCD()
{
AC_ARG_ENABLE(videocommlcd,
[ --enable-videocommlcd include NEWGAL engine for Common LCD <default=no>],
enable_video_commlcd=$enableval)
if test "x$enable_video_commlcd" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_COMMLCD, 1,
[Define if include NEWGAL engine for Common LCD])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS commlcd"
VIDEO_DRIVERS="$VIDEO_DRIVERS commlcd/libvideo_commlcd.la"
fi
}
dnl Set up the MLShadow video driver.
CheckMLShadowVideo()
{
AC_ARG_ENABLE(videomlshadow,
[ --enable-videomlshadow include MLShadow NEWGAL engine <default=no>],
enable_video_mlshadow=$enableval)
if test "x$enable_video_mlshadow" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_MLSHADOW, 1,
[Define if include MLShadow NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS mlshadow"
VIDEO_DRIVERS="$VIDEO_DRIVERS mlshadow/libvideo_mlshadow.la"
fi
}
dnl Set up the Shadow video driver.
CheckShadowVideo()
{
AC_ARG_ENABLE(videoshadow,
[ --enable-videoshadow include Shadow NEWGAL engine <default=no>],
enable_video_shadow=$enableval)
if test "x$enable_video_shadow" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_SHADOW, 1,
[Define if include Shadow NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS shadow"
VIDEO_DRIVERS="$VIDEO_DRIVERS shadow/libvideo_shadow.la"
fi
}
dnl Set up the EM85xx YUV video driver.
CheckEM86GFX()
{ AC_ARG_ENABLE(videoem86gfx,
[ --enable-videoem86gfx include NEWGAL engine for EM86xx GFX <default=no>],
enable_video_em86gfx=$enableval)
if test "x$enable_video_em86gfx" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_EM86GFX, 1,
[Define if include NEWGAL engine for EM86xx GFX])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS em86gfx"
VIDEO_DRIVERS="$VIDEO_DRIVERS em86gfx/libvideo_em86gfx.la"
fi
}
dnl Set up the EM85xx YUV video driver.
CheckEM85xxYUV()
{ AC_ARG_ENABLE(videoem85xxyuv,
[ --enable-videoem85xxyuv include NEWGAL engine for EM85xx YUV <default=no>],
enable_video_em85xxyuv=$enableval)
if test "x$enable_video_em85xxyuv" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_EM85XXYUV, 1,
[Define if include NEWGAL engine for EM85xx YUV])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS em85xxyuv"
VIDEO_DRIVERS="$VIDEO_DRIVERS em85xxyuv/libvideo_em85xxyuv.la"
fi
}
dnl Set up the EM85xx OSD video driver.
CheckEM85xxOSD()
{ AC_ARG_ENABLE(videoem85xxosd,
[ --enable-videoem85xxosd include NEWGAL engine for EM85xx OSD <default=no>],
enable_video_em85xxosd=$enableval)
if test "x$enable_video_em85xxosd" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_EM85XXOSD, 1,
[Define if include NEWGAL engine for EM85xx OSD])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS em85xxosd"
VIDEO_DRIVERS="$VIDEO_DRIVERS em85xxosd/libvideo_em85xxosd.la"
fi
}
dnl Set up svpxxosd video driver.
CheckSvpxxosdVideo()
{
AC_ARG_ENABLE(videosvpxxosd,
[ --enable-videosvpxxosd include SVPXXOSD NEWGAL engine <default=no>],
enable_video_svpxxosd=$enableval)
if test "x$enable_video_svpxxosd" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_SVPXXOSD, 1,
[Define if include NEWGAL engine for SVPXX OSD])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS svpxxosd"
VIDEO_DRIVERS="$VIDEO_DRIVERS svpxxosd/libvideo_svpxxosd.la"
fi
}
dnl Set up the video driver for BF533 OSD via SPI
CheckBF533Video()
{
AC_ARG_ENABLE(videobf533,
[ --enable-videobf533 include NEWGAL engine for BF533 OSD via SPI <default=no>],
enable_video_bf533=$enableval)
if test "x$enable_video_bf533" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_BF533, 1,
[Define if include NEWGAL engine for BF533 OSD via SPI])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS bf533"
VIDEO_DRIVERS="$VIDEO_DRIVERS bf533/libvideo_bf533.la"
fi
}
dnl Set up the video driver for mb93493 YUV FrameBuffer driver
CheckMB93493Video()
{
AC_ARG_ENABLE(videomb93493,
[ --enable-videomb93493 include NEWGAL engine for mb93493 YUV FrameBuffer driver <default=no>],
enable_video_mb93493=$enableval)
if test "x$enable_video_mb93493" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_MB93493, 1,
[Define if include NEWGAL engine for mb93493 YUV FrameBuffer driver])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS mb93493"
VIDEO_DRIVERS="$VIDEO_DRIVERS mb93493/libvideo_mb93493.la"
fi
}
dnl Set up the video driver for UTPMC.
CheckUTPMCVideo()
{
AC_ARG_ENABLE(videoutpmc,
[ --enable-videoutpmc include NEWGAL engine for UTPMC <default=no>],
enable_video_utpmc=$enableval)
if test "x$enable_video_utpmc" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_UTPMC, 1,
[Define if include NEWGAL engine for UTPMC])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS utpmc"
VIDEO_DRIVERS="$VIDEO_DRIVERS utpmc/libvideo_utpmc.la"
fi
}
dnl Set up the video driver for DirectFB.
CheckDirectFBVideo()
{
AC_ARG_ENABLE(videodfb,
[ --enable-videodfb include NEWGAL engine for DirectFB <default=no>],
enable_video_dfb=$enableval)
if test x$enable_video_dfb = xyes; then
AC_MSG_CHECKING(for DirectFB support)
video_dfb=no
AC_TRY_COMPILE([
#include <directfb.h>
],[
],[
video_dfb=yes
])
AC_MSG_RESULT($video_dfb)
if test x$video_dfb = xyes; then
AC_DEFINE(_NEWGAL_ENGINE_DFB, 1,
[Define if include NEWGAL engine for DirectFB])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS dfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS dfb/libvideo_dfb.la"
fi
fi
}
dnl Check HI3510/HI3560 video driver
CheckHI35XXVideo()
{
AC_ARG_ENABLE(videohi35xx,
[ --enable-videohi35xx include Hi35xx Video NEWGAL engine <default=no>],
enable_video_hi35xx=$enableval)
if test "x$enable_video_hi35xx" = "xyes"; then
AC_DEFINE(_NEWGAL_ENGINE_HI3510, 1,
[Define if include Hi35XX Video NEWGAL engine])
AC_DEFINE(_NEWGAL_ENGINE_HI3560, 1,
[Define if include Hi35XX Video NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS hisi"
VIDEO_DRIVERS="$VIDEO_DRIVERS hisi/libvideo_hisifbcon.la"
fi
}
dnl ========================================================================
dnl Checks for option-specific libraries and headers.
if test "x$procs_version" = "xyes"; then
use_threads="no"
else
use_threads="yes"
fi
if test "x$use_newgal" = "xyes"; then
CheckDummyVideo
CheckFBCON
CheckQVFB
CheckCOMMLCD
CheckShadowVideo
AC_ARG_ENABLE(adv2dapi,
[ --enable-adv2dapi include advanced 2D graphics APIs <default=yes>],
build_adv2dapi=$enableval)
fi
dnl ========================================================================
dnl Checks for libraries.
have_pthreads=no
if test "x$use_threads" != "xno"; then
AC_MSG_CHECKING(for pthread library)
TMP_SAVE_LIBS=$LIBS
AC_TRY_LINK([
#include "confdefs.h"
#define __C_ASM_H /* fix for retarded Digital Unix headers */
#include <pthread.h>],[
void foo(void)
{
pthread_exit (0);
}
],
have_pthreads=yes
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no))
LIBS=$TMP_SAVE_LIBS
fi
dnl Check for FreeType library
if test "x$build_ft2_support" != "xno"; then
AC_CHECK_LIB(freetype, FT_Library_Version,
SYSTEM_LIBS="$SYSTEM_LIBS `freetype-config --libs`",
build_ft2_support=no)
CFLAGS="$CFLAGS `freetype-config --cflags`"
else
if test "x$build_ttf_support" != "xno"; then
AC_CHECK_LIB(ttf, TT_FreeType_Version,
SYSTEM_LIBS="$SYSTEM_LIBS -lttf",
build_ttf_support=no)
CFLAGS="$CFLAGS -I/usr/include/freetype1"
fi
fi
dnl Check for Type1 font library.
if test "x$build_type1_support" != "xno"; then
AC_CHECK_LIB(t1, T1_InitLib,
SYSTEM_LIBS="$SYSTEM_LIBS -lt1",
build_type1_support=no, -lm)
fi
dnl Check for JPEG library.
if test "x$build_jpg_support" != "xno"; then
AC_CHECK_LIB(jpeg, jpeg_std_error,
SYSTEM_LIBS="$SYSTEM_LIBS -ljpeg",
build_jpg_support=no, -lm)
fi
dnl Check for PNG library.
if test "x$build_png_support" != "xno"; then
AC_CHECK_LIB(png, png_check_sig,
SYSTEM_LIBS="$SYSTEM_LIBS -lpng",
build_png_support=no, -lz -lm)
fi
AM_CONFIG_HEADER(mgconfig.h)
AC_DEFINE_UNQUOTED(MINIGUI_MAJOR_VERSION, $MiniGUI_MAJOR_VERSION,
[Major version of MiniGUI])
AC_DEFINE_UNQUOTED(MINIGUI_MINOR_VERSION, $MiniGUI_MINOR_VERSION,
[Minor version of MiniGUI])
AC_DEFINE_UNQUOTED(MINIGUI_MICRO_VERSION, $MiniGUI_MICRO_VERSION,
[Micro version of MiniGUI])
AC_DEFINE_UNQUOTED(MINIGUI_INTERFACE_AGE, $MiniGUI_INTERFACE_AGE,
[Interface age of MiniGUI])
AC_DEFINE_UNQUOTED(MINIGUI_BINARY_AGE, $MiniGUI_BINARY_AGE,
[Binary age of MiniGUI])