1 Star 0 Fork 26

MicroOS / MiniGUI

forked from Gitee 极速下载 / MiniGUI 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
configure.ac 79.67 KB
一键复制 编辑 原始数据 按行查看 历史
VincentWei 提交于 2019-07-19 15:32 . libdrm does not need udev
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.60)
AC_INIT(libminigui, 4.0.1)
AC_CONFIG_SRCDIR(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=4
MINIGUI_MINOR_VERSION=0
MINIGUI_MICRO_VERSION=1
MINIGUI_INTERFACE_AGE=1
MINIGUI_BINARY_AGE=1
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)
dnl ========================================================================
dnl 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 Init automake
AM_INIT_AUTOMAKE
AC_CONFIG_HEADER(mgconfig.h)
dnl ========================================================================
dnl Check for tools
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_LD
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
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 clock_gettime strdup strcasecmp strncasecmp strerror setlocale)
AC_CHECK_FUNCS(posix_memalign memalign valloc)
PKG_CHECK_MODULES(UDEV, [libudev >= 200], have_udev="yes", have_udev="no; need libudev 200+")
dnl ========================================================================
dnl User selectable options
dnl System wide options
devel_mode="no"
detail_debug="no"
trace_message="no"
message_string="no"
runtime_mode="procs"
stand_alone="no"
incore_res="no"
use_miniguientry="no"
fixed_math="yes"
double_click="yes"
build_cursor_support="yes"
build_clipboard="yes"
use_own_stdio="no"
use_own_malloc="no"
use_own_pthread="no"
build_adv2dapi="yes"
build_syncupdate="no"
build_minimalgdi="no"
dnl Options for look and feel renderer
with_flat_lf="yes"
with_skin_lf="yes"
dnl IAL engine-specific options
dnl software IAL engines
build_dummy_ial_engine="yes"
build_auto_ial_engine="no"
build_random_ial_engine="no"
build_net_ial_engine="no"
dnl common IAL engines
build_libinput_ial_engine="yes"
build_console_ial_engine="no"
build_console_ps2="no"
build_console_imps2="no"
build_console_ms="no"
build_console_ms3="no"
build_console_gpm="no"
build_text_mode="no"
dnl the customized ial engine
build_dlcustom_ial_engine="no"
build_custom_ial_engine="no"
build_comm_ial_engine="no"
dnl ial engines for simulaters
build_qvfb_ial_engine="no"
build_wvfb_ial_engine="no"
build_dfb_ial_engine="no"
build_qemu_ial_engine="no"
dnl ial engines for real hardware
build_cisco_touchpad_ial_engine="no"
build_mstar_ial_engine="no"
build_ipaq_h3600_ial_engine="no"
build_nexus_ial_engine="no"
build_ipaq_h5400_ial_engine="no"
build_tslib_ial_engine="no"
build_jz4740_ial_engine="no"
build_lide_ial_engine="no"
build_2440_ial_engine="no"
build_davinci6446_ial_engine="no"
dnl Font related options
build_rbf_support="yes"
build_incorerbf_vgaoem="yes"
build_incorerbf_terminal="yes"
build_incorerbf_fixedsys="yes"
build_vbf_support="yes"
build_incorefont_sansserif="yes"
build_incorefont_courier="yes"
build_incorefont_system="yes"
build_upf_support="yes"
build_incorefont_times="yes"
build_sef_support="no"
build_qpf_support="no"
build_ttf_support="yes"
build_complex_scripts="yes"
build_ttfcache_support="yes"
build_bmpf_support="yes"
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="no"
build_euckr_support="no"
build_eucjp_support="no"
build_shiftjis_support="no"
build_unicode_support="yes"
build_full_unicode="yes"
dnl Keyboard layout specific options
use_kbd_hebrewpc="no"
use_kbd_arabicpc="no"
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_gif_support="yes"
build_jpg_support="yes"
build_png_support="yes"
build_pcx_support="no"
build_lbm_support="no"
build_tga_support="no"
dnl Menu options
build_menu="yes"
dnl Misc options
build_misc_mousecalibrate="yes"
build_misc_aboutdlg="yes"
build_misc_savescreen="yes"
dnl Control related options
build_ctrl_static="yes"
build_ctrl_button="yes"
build_ctrl_sledit="yes"
build_ctrl_bidisledit="no"
build_ctrl_textedit_new="yes"
build_ctrl_listbox="yes"
build_ctrl_progressbar="yes"
build_ctrl_combobox="yes"
build_ctrl_propsheet="yes"
build_ctrl_trackbar="yes"
build_ctrl_scrollbar="yes"
build_ctrl_newtoolbar="yes"
build_ctrl_menubutton="yes"
build_ctrl_scrollview="yes"
build_ctrl_textedit="no"
build_ctrl_monthcal="no"
build_ctrl_treeview="no"
build_ctrl_treeview_rdr="no"
build_ctrl_spinbox="yes"
build_ctrl_coolbar="no"
build_ctrl_listview="yes"
build_ctrl_iconview="no"
build_ctrl_gridview="no"
build_ctrl_animation="yes"
enable_video_dummy="yes"
enable_video_pc_xvfb="yes"
enable_video_rtos_xvfb="no"
enable_video_qvfb="no"
enable_video_wvfb="no"
enable_video_usvfb="no"
enable_video_dfb="no"
enable_video_dfb_st7167="no"
enable_video_stgfb="no"
enable_video_fbcon="yes"
enable_video_dri="yes"
enable_video_commlcd="no"
enable_video_shadow="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_hi35xx="no"
enable_video_hi3560a="no"
enable_video_nexus="no"
enable_video_s3c6410="no"
enable_video_sigma8654="no"
enable_video_mstar="no"
enable_video_custom="no"
dnl settings for license management
build_productid="no"
build_splash="yes"
build_screensaver="no"
dnl internal settings
need_udev="no"
AC_ARG_ENABLE(develmode,
[ --enable-develmode developer mode <default=no>],
devel_mode=$enableval)
AC_ARG_ENABLE(detaildebug,
[ --enable-detaildebug detailed debug info <default=no>],
detail_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_WITH(runmode,
[ --with-runmode=procs/ths/sa the MiniGUI runtime mode <default=procs>],
runtime_mode=$withval)
AC_ARG_ENABLE(standalone,
[ --enable-standalone build MiniGUI-Standalone version <default=no>],
stand_alone=$enableval)
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(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(ownstdio,
[ --enable-ownstdio use own implementation of stdio functions <default=no>],
use_own_stdio=$enableval)
AC_ARG_ENABLE(ownmalloc,
[ --enable-ownmalloc use own implementation of malloc functions <default=no>],
use_own_malloc=$enableval)
AC_ARG_ENABLE(ownpthread,
[ --enable-ownpthread use own implementation of pthread functions <default=no>],
use_own_pthread=$enableval)
AC_ARG_ENABLE(adv2dapi,
[ --enable-adv2dapi include advanced 2D graphics APIs <default=yes>],
build_adv2dapi=$enableval)
AC_ARG_ENABLE(syncupdate,
[ --enable-syncupdate include implementation of SyncUpdateDC <default=yes>],
build_syncupdate=$enableval)
AC_ARG_ENABLE(minimalgdi,
[ --enable-minimalgdi build a minimal GDI library only <default=no>],
build_minimalgdi=$enableval)
AC_ARG_ENABLE(productid,
[ --enable-productid insert a productid into the library file <default=no>],
build_productid=$enableval)
AC_ARG_ENABLE(splash,
[ --enable-splash enable splash <default=yes>],
build_splash=$enableval)
AC_ARG_ENABLE(screensaver,
[ --enable-screensaver enable screensaver <default=no>],
build_screensaver=$enableval)
AC_ARG_ENABLE(flatlf,
[ --enable-flatlf include flat Look and Feel renderer <default=yes>],
with_flat_lf=$enableval)
AC_ARG_ENABLE(skinlf,
[ --enable-skinlf include skin Look and Feel renderer <default=yes>],
with_skin_lf=$enableval)
AC_ARG_ENABLE(customial,
[ --enable-customial build the customer IAL engine <default=no>],
build_custom_ial_engine=$enableval)
AC_ARG_ENABLE(dlcustomial,
[ --enable-dlcustomial build the dlcustom IAL engine <default=no>],
build_dlcustom_ial_engine=$enableval)
AC_ARG_ENABLE(netial,
[ --enable-netial build the IAL engine for net <default=no>],
build_net_ial_engine=$enableval)
AC_ARG_ENABLE(cisco_touchpad_ial,
[ --enable-cisco_touchpad_ial build the IAL engine for Cisco Touchpad <default=no>],
build_cisco_touchpad_ial_engine=$enableval)
AC_ARG_ENABLE(mstar_ial,
[ --enable-mstar_ial build the IAL engine for MStar <default=no>],
build_mstar_ial_engine=$enableval)
AC_ARG_ENABLE(ipaqh3600ial,
[ --enable-ipaqh3600ial build the IAL engine for iPAQ H3600 <default=no>],
build_ipaq_h3600_ial_engine=$enableval)
AC_ARG_ENABLE(nexusial,
[ --enable-nexusial build the IAL engine for Nexus <default=no>],
build_nexus_ial_engine=$enableval)
AC_ARG_ENABLE(ipaqh5400ial,
[ --enable-ipaqh5400ial build the IAL engine for iPAQ H5400 <default=no>],
build_ipaq_h5400_ial_engine=$enableval)
AC_ARG_ENABLE(tslibial,
[ --enable-tslibial build the IAL engine for TSLIB <default=no>],
build_tslib_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=no>],
build_qvfb_ial_engine=$enableval)
AC_ARG_ENABLE(qemuial,
[ --enable-qemuial build the QEMU IAL engine <default=no>],
build_qemu_ial_engine=$enableval)
AC_ARG_ENABLE(wvfbial,
[ --enable-wvfbial build the WVFB IAL engine <default=no>],
build_wvfb_ial_engine=$enableval)
AC_ARG_ENABLE(jz4740ial,
[ --enable-jz4740ial build the JZ4740 IAL engine <default=no>],
build_jz4740_ial_engine=$enableval)
AC_ARG_ENABLE(lide,
[ --enable-lide build the lide IAL engine <default=no>],
build_lide_ial_engine=$enableval)
AC_ARG_ENABLE(2440ial,
[ --enable-2440ial build the 2440 IAL engine <default=no>],
build_2440_ial_engine=$enableval)
AC_ARG_ENABLE(davinci6446ial,
[ --enable-davinci6446ial build the DAVINCI6446 IAL engine <default=no>],
build_davinci6446_ial_engine=$enableval)
AC_ARG_ENABLE(dfbial,
[ --enable-dfbial build the DFB IAL engine <default=no>],
build_dfb_ial_engine=$enableval)
AC_ARG_ENABLE(libinputial,
[ --enable-libinputial build the IAL engine based on libinput <default=yes>],
build_libinput_ial_engine=$enableval)
AC_ARG_ENABLE(consoleial,
[ --enable-consoleial build the console (Linux console) IAL engine <default=no>],
build_console_ial_engine=$enableval)
AC_ARG_ENABLE(consoleps2,
[ --enable-consoleps2 build the console engine subdriver for PS2 mouse <default=no>],
build_console_ps2=$enableval)
AC_ARG_ENABLE(consoleimps2,
[ --enable-consoleimps2 build the console engine subdriver for IntelligentMouse (IMPS/2) mouse <default=no>],
build_console_imps2=$enableval)
AC_ARG_ENABLE(consolems,
[ --enable-consolems build the console engine subdirver for old MS serial mouse <default=no>],
build_console_ms=$enableval)
AC_ARG_ENABLE(consolems3,
[ --enable-consolems3 build the console engine subdirver for MS3 mouse <default=no>],
build_console_ms3=$enableval)
AC_ARG_ENABLE(consolegpm,
[ --enable-consolegpm build the console engine subdirver for GPM daemon <default=no>],
build_console_gpm=$enableval)
AC_ARG_ENABLE(textmode,
[ --enable-textmode Linux system have console (text mode) on FrameBuffer <default=no>],
build_text_mode=$enableval)
AC_ARG_ENABLE(rbfsupport,
[ --enable-rbfsupport include raw bitmap font support <default=yes>],
build_rbf_support=$enableval)
AC_ARG_ENABLE(rbfvgaoem,
[ --enable-rbfvgaoem include incore RBF font of ISO8859-1 VGAOEM (8x8) font <default=yes>],
build_incorerbf_vgaoem=$enableval)
AC_ARG_ENABLE(rbfterminal,
[ --enable-rbfterminal include incore RBF font of ISO8859-1 Terminal (8x12) font <default=yes>],
build_incorerbf_terminal=$enableval)
AC_ARG_ENABLE(rbffixedsys,
[ --enable-rbffixedsys include incore RBF font of ISO8859-1 FixedSys (8x15) font <default=yes>],
build_incorerbf_fixedsys=$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 (11x13) <default=yes>],
build_incorefont_sansserif=$enableval)
AC_ARG_ENABLE(fontcourier,
[ --enable-fontcourier include incore font Courier (8x13) <default=yes>],
build_incorefont_courier=$enableval)
AC_ARG_ENABLE(fontsystem,
[ --enable-fontsystem include incore font System (14x16) <default=yes>],
build_incorefont_system=$enableval)
AC_ARG_ENABLE(upfsupport,
[ --enable-upfsupport build support for FMSoft Unicode Prerendered Font (UPF) <default=yes>],
build_upf_support=$enableval)
AC_ARG_ENABLE(fonttimes,
[ --enable-fonttimes include incore Times UPF fonts (12x10 and 17x14) <default=yes>],
build_incorefont_times=$enableval)
AC_ARG_ENABLE(qpfsupport,
[ --enable-qpfsupport build support for Qt Prerendered Font (QPF) <default=no>],
build_qpf_support=$enableval)
AC_ARG_ENABLE(sefsupport,
[ --enable-sefsupport build support for koxomo scripteasy (SEF) <default=no>],
build_sef_support=$enableval)
AC_ARG_ENABLE(ttfsupport,
[ --enable-ttfsupport build support for TrueType/OpenType (needs FreeType2 library) <default=yes>],
build_ttf_support=$enableval)
AC_ARG_ENABLE(ttfcache,
[ --enable-ttfcache build ttf cache support <default=no>],
build_ttfcache_support=$enableval)
AC_ARG_ENABLE(complexscripts,
[ --enable-complexscripts build support for complex scripts (needs HarfBuzz library) <default=yes>],
build_complex_scripts=$enableval)
AC_ARG_ENABLE(bmpfsupport,
[ --enable-bmpfsupport build support for Bitmap Font (bmpf) <default=yes>],
build_bmpf_support=$enableval)
AC_ARG_ENABLE(latin2support,
[ --enable-latin2support include East European (Latin 2, ISO8859-2) charset support <default=no>],
build_latin2_support=$enableval)
AC_ARG_ENABLE(latin3support,
[ --enable-latin3support include South European (Latin 3, ISO8859-3) charset support <default=no>],
build_latin3_support=$enableval)
AC_ARG_ENABLE(latin4support,
[ --enable-latin4support include North European (Latin 4, ISO8859-4) charset support <default=no>],
build_latin4_support=$enableval)
AC_ARG_ENABLE(cyrillicsupport,
[ --enable-cyrillicsupport include Cyrillic (ISO8859-5) charset support <default=no>],
build_cyrillic_support=$enableval)
AC_ARG_ENABLE(arabicsupport,
[ --enable-arabicsupport include Arabic (ISO8859-6) charset support <default=no>],
build_arabic_support=$enableval)
AC_ARG_ENABLE(greeksupport,
[ --enable-greeksupport include Greek (ISO8859-7) charset support <default=no>],
build_greek_support=$enableval)
AC_ARG_ENABLE(hebrewsupport,
[ --enable-hebrewsupport include Hebrew (ISO8859-8) charset support <default=no>],
build_hebrew_support=$enableval)
AC_ARG_ENABLE(latin5support,
[ --enable-latin5support include Turkish (Latin 5, ISO8859-9) charset support <default=no>],
build_latin5_support=$enableval)
AC_ARG_ENABLE(latin6support,
[ --enable-latin6support include Nordic, Latin 6, ISO8859-10) charset support <default=no>],
build_latin6_support=$enableval)
AC_ARG_ENABLE(thaisupport,
[ --enable-thaisupport include Thai (ISO8859-11) charset support <default=yes>],
build_thai_support=$enableval)
AC_ARG_ENABLE(latin7support,
[ --enable-latin7support include Latin 7 (ISO8859-13) charset support <default=no>],
build_latin7_support=$enableval)
AC_ARG_ENABLE(latin8support,
[ --enable-latin8support include Latin 8 (ISO8859-14) charset support <default=no>],
build_latin8_support=$enableval)
AC_ARG_ENABLE(latin9support,
[ --enable-latin9support include Latin 9 (ISO8859-15, West Extended) charset support <default=yes>],
build_latin9_support=$enableval)
AC_ARG_ENABLE(latin10support,
[ --enable-latin10support include Latin 10 (ISO8859-16, Romanian) charset support <default=no>],
build_latin10_support=$enableval)
AC_ARG_ENABLE(gbsupport,
[ --enable-gbsupport include EUC encoding of GB2312 charset support <default=yes>],
build_gb_support=$enableval)
AC_ARG_ENABLE(gbksupport,
[ --enable-gbksupport include GBK charset support <default=yes>],
build_gbk_support=$enableval)
AC_ARG_ENABLE(gb18030support,
[ --enable-gb18030support include GB18030-0 charset support <default=no>],
build_gb18030_support=$enableval)
AC_ARG_ENABLE(big5support,
[ --enable-big5support include BIG5 charset support <default=no>],
build_big5_support=$enableval)
AC_ARG_ENABLE(euckrsupport,
[ --enable-euckrsupport include support for EUC encoding of KSC5636 and KSC5601 charsets <default=no>],
build_euckr_support=$enableval)
AC_ARG_ENABLE(eucjpsupport,
[ --enable-eucjpsupport include support for EUC encoding of JISX0201 and JISX0208 charsets <default=no>],
build_eucjp_support=$enableval)
AC_ARG_ENABLE(shiftjissupport,
[ --enable-shiftjissupport include support for Shift-JIS encoding of JISX0201 and JISX0208 charsets <default=no>],
build_shiftjis_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(fullunicode,
[ --enable-fullunicode include support for full UNICODE code points <default=yes>],
build_full_unicode=$enableval)
AC_ARG_ENABLE(kbdhebrewpc,
[ --enable-kbdhebrewpc include keyboard layout for Hebrew PC keyboard <default=no>],
use_kbd_hebrewpc=$enableval)
AC_ARG_ENABLE(kbdarabicpc,
[ --enable-kbdarabicpc include keyboard layout for Arabic PC keyboard <default=no>],
use_kbd_arabicpc=$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(menu,
[ --enable-menu include menu support <default=yes>],
build_menu=$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(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(ctrlsledit,
[ --enable-ctrlsledit include Single-Line EDIT control <default=yes>],
build_ctrl_sledit=$enableval)
AC_ARG_ENABLE(ctrlbidisledit,
[ --enable-ctrlbidisledit include Single-Line BIDI EDIT control <default=no>],
build_ctrl_bidisledit=$enableval)
dnl enable new textedit
AC_ARG_ENABLE(newtextedit,
[ --enable-ctrlnewtextedit include the new implementation of TEXTEDIT control <default=yes>],
build_ctrl_textedit_new=$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(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(ctrltrackbar,
[ --enable-ctrltrackbar include TRACKBAR control <default=no>],
build_ctrl_trackbar=$enableval)
AC_ARG_ENABLE(ctrlscrollbar,
[ --enable-ctrlscrollbar include SCROLLBAR control <default=no>],
build_ctrl_scrollbar=$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(ctrlscrollview,
[ --enable-ctrlscrollview include SCROLLVIEW and SCROLLWINDOW controls <default=no>],
build_ctrl_scrollview=$enableval)
AC_ARG_ENABLE(ctrltextedit,
[ --enable-ctrltextedit include old TEXTEDIT control implementation <default=no>],
build_ctrl_textedit=$enableval)
AC_ARG_ENABLE(ctrlmonthcal,
[ --enable-ctrlmonthcal include MONTHCALENDAR control <default=no>],
build_ctrl_monthcal=$enableval)
AC_ARG_ENABLE(ctrltreeview,
[ --enable-ctrltreeview include TREEVIEW control <default=no>],
build_ctrl_treeview=$enableval)
AC_ARG_ENABLE(ctrltreeview-rdr,
[ --enable-ctrltreeview-rdr include TREEVIEWRDR control using LFRDR <default=no>],
build_ctrl_treeview_rdr=$enableval)
AC_ARG_ENABLE(ctrlspinbox,
[ --enable-ctrlspinbox include SPINBOX control <default=yes>],
build_ctrl_spinbox=$enableval)
AC_ARG_ENABLE(ctrlcoolbar,
[ --enable-ctrlcoolbar include COOLBAR control <default=no>],
build_ctrl_coolbar=$enableval)
AC_ARG_ENABLE(ctrllistview,
[ --enable-ctrllistview include LISTVIEW control <default=yes>],
build_ctrl_listview=$enableval)
AC_ARG_ENABLE(ctrliconview,
[ --enable-ctrliconview include ICONVIEW control <default=no>],
build_ctrl_iconview=$enableval)
AC_ARG_ENABLE(ctrlgridview,
[ --enable-ctrlgridview include GRIDVIEW control (test) <default=no>],
build_ctrl_gridview=$enableval)
AC_ARG_ENABLE(ctrlanimation,
[ --enable-ctrlanimation include ANIMATION control and GIF87a/GIF89a support <default=yes>],
build_ctrl_animation=$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(_MGGAL_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(_MGGAL_FBCON, 1,
[Define if include FrameBuffer console NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS fbcon"
VIDEO_DRIVERS="$VIDEO_DRIVERS fbcon/libvideo_fbcon.la"
have_pciaccess="yes"
AC_CHECK_LIB(pciaccess, pci_system_init,
DEP_LIBS="$DEP_LIBS -lpciaccess", have_pciaccess="no")
if test "x$have_pciaccess" = "xyes"; then
AC_DEFINE(_MGHAVE_PCIACCESS, 1,
[Define if PCIAccess lib is available])
LDFLAGS="$LDFLAGS -lpciaccess"
fi
fi
fi
}
dnl Find the DRM includes
CheckDRM()
{
if test "x$runtime_mode" = "xprocs"; then
enable_video_dri="no; DRI engine does not support MiniGUI-Processes runtime mode currently"
else
AC_ARG_ENABLE(videodri,
[ --enable-videodri include Linux DRI NEWGAL engine <default=yes>],
enable_video_dri=$enableval)
if test "x$enable_video_dri" = "xyes"; then
PKG_CHECK_MODULES(DRM, [libdrm >= 2.4], video_dri="yes",
video_dri="no; Linux DRI NEWGAL engine requires libdrm 2.4+")
if test "x$video_dri" = "xyes"; then
AC_DEFINE(_MGGAL_DRI, 1,
[Define if include Linux DRI NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS dri"
VIDEO_DRIVERS="$VIDEO_DRIVERS dri/libvideo_dri.la"
DEP_LIBS="$DEP_LIBS -ldrm"
DRM_INC_DIR="`$PKG_CONFIG --variable includedir libdrm`/drm"
AC_SUBST(DRM_INC_DIR)
else
AC_MSG_WARN([$video_dri])
fi
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(_MGGAL_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 X Virtual FrameBuffer
CheckXVFB()
{
AC_ARG_ENABLE(videopcxvfb,
[ --enable-videopcxvfb include PC Virtual FrameBuffer NEWGAL engine, such as qvfb, mvfb, gvfb or wvfb <default=yes>],
enable_video_pc_xvfb=$enableval)
AC_ARG_ENABLE(videortosxvfb,
[ --enable-videortosxvfb include RTOS Virtual FrameBuffer NEWGAL engine <default=no>. Please disable pcxvfb to enable rtosxvfb],
enable_video_rtos_xvfb=$enableval)
if test "x$enable_video_pc_xvfb" = "xyes"; then
dnl CheckPCXVFB
AC_DEFINE(_MGGAL_PCXVFB, 1,
[Define if include PC Virtual FrameBuffer NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS pcxvfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS pcxvfb/libvideo_pcxvfb.la"
else
if test "x$enable_video_rtos_xvfb" = "xyes"; then
dnl CheckRTOSXVFB
AC_DEFINE(_MGGAL_RTOSXVFB, 1,
[Define if include RTOS Virtual FrameBuffer NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS rtos_xvfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS rtos_xvfb/libvideo_rtos_xvfb.la"
fi
fi
}
dnl Check Windows Virtual FrameBuffer
CheckWVFB()
{
AC_ARG_ENABLE(videowvfb,
[ --enable-videowvfb include Windows Virtual Frame Buffer NEWGAL engine <default=no>],
enable_video_wvfb=$enableval)
if test "x$enable_video_wvfb" = "xyes"; then
AC_DEFINE(_MGGAL_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 UnixSocket virtual Frame Buffer video driver.
CheckUSVFB()
{
AC_ARG_ENABLE(videousvfb,
[ --enable-videousvfb include NEWGAL/IAL engines for UnixSocket Virtual Frame Buffer <default=no>],
enable_video_usvfb=$enableval)
if test "x$enable_video_usvfb" = "xyes"; then
AC_DEFINE(_MGIAL_USVFB, 1,
[Define if include IAL engine for UnixSocket Virtual Frame Buffer])
AC_DEFINE(_MGGAL_USVFB, 1,
[Define if include NEWGAL engine for UnixSocket Virtual Frame Buffer])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS usvfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS usvfb/libvideo_usvfb.la"
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(_MGGAL_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(_MGGAL_MLSHADOW, 1,
[Define if include MLShadow NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS mlshadow"
VIDEO_DRIVERS="$VIDEO_DRIVERS mlshadow/libvideo_mlshadow.la"
dnl DEP_LIBS="$DEP_LIBS -lpthread"
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(_MGGAL_SHADOW, 1,
[Define if include Shadow NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS shadow"
VIDEO_DRIVERS="$VIDEO_DRIVERS shadow/libvideo_shadow.la"
dnl DEP_LIBS="$DEP_LIBS -lpthread"
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(_MGGAL_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(_MGGAL_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(_MGGAL_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(_MGGAL_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(_MGGAL_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(_MGGAL_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(_MGGAL_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(_MGGAL_DFB, 1,
[Define if include NEWGAL engine for DirectFB])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS dfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS dfb/libvideo_dfb.la"
LIBS="$LIBS -ldirectfb"
dnl Set up the video driver for ST7167.
AC_ARG_ENABLE(videost7167,
[ --enable-videost7167 include NEWGAL engine for ST7167 on DirectFB <default=no>],
enable_video_dfb_st7167=$enableval)
if test "x$enable_video_dfb_st7167" = "xyes"; then
AC_DEFINE(_MGGAL_DFB_ST7167, 1,
[Define if include ST7167 subdriver for NEWGAL engine of DirectFB])
fi
fi
fi
}
dnl Set up the video driver for STGFB(ST7105,ST7109,ST7167 native ioctl).
CheckSTGFBVideo()
{
AC_ARG_ENABLE(videostgfb,
[ --enable-videostgfb include NEWGAL engine for STGFB <default=no>],
enable_video_stgfb=$enableval)
if test "x$enable_video_stgfb" = "xyes"; then
AC_DEFINE(_MGGAL_STGFB, 1,
[Define if include NEWGAL engine for STGFB])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS stgfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS stgfb/libvideo_stgfb.la"
CPPFLAGS="$CPPFLAGS -DST_OSLINUX -DST_7105 -DARCHITECTURE_ST40 -DDEFINED_BOOL"
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(_MGGAL_HI3510, 1,
[Define if include Hi35XX Video NEWGAL engine])
AC_DEFINE(_MGGAL_HI3560, 1,
[Define if include Hi35XX Video NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS hisi"
VIDEO_DRIVERS="$VIDEO_DRIVERS hisi/libvideo_hisifbcon.la"
fi
}
dnl Check HI3560A video driver
CheckHI3560AVideo()
{
AC_ARG_ENABLE(videohi3560a,
[ --enable-videohi3560a include Hi3560A Video NEWGAL engine <default=no>],
enable_video_hi3560a=$enableval)
if test "x$enable_video_hi3560a" = "xyes"; then
AC_DEFINE(_MGGAL_HI3560A, 1,
[Define if include Hi3560A Video NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS hisi"
VIDEO_DRIVERS="$VIDEO_DRIVERS hisi/libvideo_hisifbcon.la"
fi
}
dnl Check Intel GDL video driver
CheckGDLVideo()
{
AC_ARG_ENABLE(videogdl,
[ --enable-videogdl include GDL Video NEWGAL engine <default=no>],
enable_video_gdl=$enableval)
if test "x$enable_video_gdl" = "xyes"; then
AC_DEFINE(_MGGAL_GDL, 1,
[Define if include GDL Video NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS gdl"
VIDEO_DRIVERS="$VIDEO_DRIVERS gdl/libvideo_gdl.la"
fi
}
dnl Set up the sigma video driver.
CheckSigmaVideo()
{
AC_ARG_ENABLE(videosigma8654,
[ --enable-videosigma8654 include sigma8654 NEWGAL engine <default=no>],
enable_video_sigma8654=$enableval)
if test "x$enable_video_sigma8654" = "xyes"; then
AC_DEFINE(_MGGAL_SIGMA8654, 1,
[Define if include sigma8654 NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS sigma8654 "
VIDEO_DRIVERS="$VIDEO_DRIVERS sigma8654/libvideo_sigma8654.la"
fi
}
dnl Set up the mstar video driver.
CheckMStarVideo()
{
AC_ARG_ENABLE(videomstar,
[ --enable-videomstar include mstar NEWGAL engine <default=no>],
enable_video_mstar=$enableval)
if test "x$enable_video_mstar" = "xyes"; then
AC_DEFINE(_MGGAL_MSTAR, 1,
[Define if include mstar NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS mstar "
VIDEO_DRIVERS="$VIDEO_DRIVERS mstar/libvideo_mstar.la"
fi
}
dnl Set up the custom video driver.
CheckCustomVideo()
{
AC_ARG_ENABLE(videocustom,
[ --enable-videocustom include custom NEWGAL engine <default=no>],
enable_video_custom=$enableval)
if test "x$enable_video_custom" = "xyes"; then
AC_DEFINE(_MGGAL_CUSTOMGAL, 1,
[Define if include custom NEWGAL engine])
fi
}
dnl Set up the Nexus video driver.
CheckNexusVideo()
{
AC_ARG_ENABLE(videonexus,
[ --enable-videonexus include nexus NEWGAL engine <default=no>],
enable_video_nexus=$enableval)
if test "x$enable_video_nexus" = "xyes"; then
AC_DEFINE(_MGGAL_NEXUS, 1,
[Define if include nexus NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS nexus"
VIDEO_DRIVERS="$VIDEO_DRIVERS nexus/libvideo_nexus.la"
dnl DEP_LIBS="$DEP_LIBS -lnexus"
fi
}
AC_ARG_WITH(nexus-includedir,
[ --with-nexus-includedir=DIR Where to find header files of nexus library ],
[ case "$withval" in
yes|no)
AC_MSG_WARN([--with-nexus-includedir called without argument - will use default])
;;
* )
NEXUS_INCLUDEDIR="$withval"
AC_SUBST(NEXUS_INCLUDEDIR)
;;
esac ]
)
AC_ARG_WITH(nexus-libdir,
[ --with-nexus-libdir=DIR Where to find .so files of nexus library ],
[ case "$withval" in
yes|no)
AC_MSG_WARN([--with-nexus-libdir called without argument - will use default])
;;
* )
NEXUS_LIBDIR="$withval"
AC_SUBST(NEXUS_LIBDIR)
;;
esac ]
)
dnl Set up the s3c6410 video driver.
CheckS3C6410Video()
{
AC_ARG_ENABLE(videos3c6410,
[ --enable-videos3c6410 include s3c6410 NEWGAL engine <default=no>],
enable_video_s3c6410=$enableval)
if test "x$enable_video_s3c6410" = "xyes"; then
AC_DEFINE(_MGGAL_S3C6410, 1,
[Define if include s3c6410 NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS s3c6410"
VIDEO_DRIVERS="$VIDEO_DRIVERS s3c6410/libvideo_s3c6410.la"
fi
}
dnl ========================================================================
dnl Checks for option-specific libraries and headers.
dnl Checks NewGAL Engine.
{
CheckDummyVideo
CheckFBCON
CheckDRM
CheckQVFB
CheckXVFB
CheckWVFB
CheckUSVFB
CheckCOMMLCD
CheckShadowVideo
CheckMLShadowVideo
CheckEM85xxOSD
CheckEM85xxYUV
CheckEM86GFX
CheckSvpxxosdVideo
CheckBF533Video
CheckMB93493Video
CheckUTPMCVideo
CheckDirectFBVideo
CheckSTGFBVideo
CheckHI35XXVideo
CheckHI3560AVideo
CheckGDLVideo
CheckNexusVideo
CheckS3C6410Video
CheckSigmaVideo
CheckMStarVideo
CheckCustomVideo
}
dnl ========================================================================
dnl Checks for libraries.
no_math="no"
AC_CHECK_LIB(m, pow, , no_math="yes")
if test "x$no_math" = "xno"; then
AC_DEFINE(_HAVE_MATH_LIB, 1,
[Define if have math library])
fi
if test "x$no_math" = "xyes"; then
build_adv2dapi="no"
build_jpg_support="no"
fi
dnl Check for JPEG library.
if test "x$build_jpg_support" = "xyes"; then
AC_CHECK_LIB(jpeg, jpeg_std_error,
DEP_LIBS="$DEP_LIBS -ljpeg",
build_jpg_support="no; support for JPEG file requires libjpeg", -lm)
fi
dnl Check for PNG library.
libpng_version="no"
if test "x$build_png_support" = "xyes"; then
AC_CHECK_LIB(png12, png_check_sig,
libpng_version="12",
libpng_version="no", -lz)
if test "x$libpng_version" == "xno"; then
AC_CHECK_LIB(png16, png_sig_cmp,
libpng_version="16",
libpng_version="no", -lz)
fi
fi
case "$libpng_version" in
12)
DEP_LIBS="$DEP_LIBS -lpng12 -lz"
;;
16)
DEP_LIBS="$DEP_LIBS -lpng16 -lz"
;;
*)
build_png_support="no; support PNG file requires libpng12 or libpng16"
;;
esac
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])
dnl ========================================================================
dnl Finally add some flags
if test "x$build_custom_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_CUSTOM, 1, [Define if include IAL engine for customer board])
fi
if test "x$build_dlcustom_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_DLCUSTOM, 1, [Define if include dlcustom IAL engine])
DEP_LIBS="$DEP_LIBS -ldl"
fi
if test "x$build_sef_support" = "xyes"; then
DEP_LIBS="$DEP_LIBS -lscripteasy"
fi
if test "x$build_net_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_NET, 1,
[Define if include IAL engine for net])
fi
AC_ARG_WITH(libsuffix,
[ --with-libsuffix=ARG Configure the suffix of MiniGUI library name.])
case "$with_libsuffix" in
mvfb)
conf="mvfb.cfg"
MGLIB_SUFFIX="mvfb"
;;
"")
conf="MiniGUI.cfg"
case "$runtime_mode" in
sa)
MGLIB_SUFFIX="sa"
;;
ths)
MGLIB_SUFFIX="ths"
;;
*)
MGLIB_SUFFIX="procs"
;;
esac
;;
*)
conf="MiniGUI.cfg"
MGLIB_SUFFIX="$withval"
;;
esac
AC_ARG_WITH(osname,
[ --with-osname=linux/uclinux/ecos/ucos2/swlinux/vxworks/win32/darwin/threadx/cygwin/nucleus/ose/psos])
dnl configure.in file is used only for the following OSes: linux/uclinux/swlinux/ecos/darwin/cygwin
dnl for other OSes, you should use makefile.ng or else.
case "$with_osname" in
uclinux)
AC_DEFINE(__uClinux__, 1,
[Define if compile for uClinux])
;;
ecos)
AC_DEFINE(__ECOS__, 1,
[Define if compile for eCos])
AC_DEFINE(__NOUNIX__, 1,
[Define if compile for non-UNIX like OS])
;;
ucos2)
AC_DEFINE(__UCOSII__, 1,
[Define if compile for uC/OS-II])
AC_DEFINE(__NOUNIX__, 1,
[Define if compile for non-UNIX like OS])
incore_res="yes"
use_own_malloc="yes"
use_own_stdio="yes"
use_own_pthread="yes"
;;
swlinux)
AC_DEFINE(__WINBOND_SWLINUX__, 1,
[Define if compile for Winbond SWLinux])
AC_DEFINE(__NOUNIX__, 1,
[Define if compile for non-UNIX like OS])
;;
vxworks)
AC_DEFINE(__VXWORKS__, 1,
[Define if compile for VxWorks])
AC_DEFINE(__NOUNIX__, 1,
[Define if compile for non-UNIX like OS])
;;
cygwin)
AC_DEFINE(__CYGWIN__, 1,
[Define if compile for Cygwin platform])
;;
win32)
AC_DEFINE(WIN32, 1,
[Define if compile for Win32 platform])
AC_DEFINE(__NOUNIX__, 1,
[Define if compile for non-UNIX like OS])
;;
darwin)
AC_DEFINE(__DARWIN__, 1,
[Define if compile for OpenDarwin])
;;
threadx)
AC_DEFINE(__THREADX__, 1,
[Define if compile for ThreadX])
AC_DEFINE(__NOUNIX__, 1,
[Define if compile for non-UNIX like OS])
incore_res="yes"
use_own_malloc="yes"
use_own_stdio="yes"
use_own_pthread="yes"
;;
nucleus)
AC_DEFINE(__NUCLEUS__, 1,
[Define if compile for Nucleus])
AC_DEFINE(__NOUNIX__, 1,
[Define if compile for non-UNIX like OS])
incore_res="yes"
use_own_malloc="yes"
use_own_stdio="yes"
use_own_pthread="yes"
;;
ose)
AC_DEFINE(__OSE__, 1,
[Define if compile for OSE])
AC_DEFINE(__NOUNIX__, 1,
[Define if compile for non-UNIX like OS])
incore_res="yes"
use_own_pthread="yes"
;;
psos)
AC_DEFINE(__PSOS__, 1,
[Define if compile for pSOS])
AC_DEFINE(__NOUNIX__, 1,
[Define if compile for non-UNIX like OS])
;;
*)
with_osname="linux"
AC_DEFINE(__LINUX__, 1,
[Define if compile for Linux])
;;
esac
dnl AC_ARG_WITH(licensepicture,
dnl [ --with-licensepicture=minigui/mdolphin/hybridos])
dnl case "$with_licensepicture" in
dnl minigui|mdolphin|hybridos)
dnl LICENSE_PICTURE=$with_licensepicture
dnl ;;
dnl *)
dnl LICENSE_PICTURE=minigui
dnl ;;
dnl esac
AC_ARG_WITH(targetname,
[ --with-targetname=unknown/external/fmsoft/mstudio/stb810/vfanvil/vxi386/qvfb/fbcon/mx21/monaco/c33l05/bfin/vxppc/
S3C6410/S3C2440/S3C2410/hi3560a Define the target board name])
case "$with_targetname" in
external)
AC_DEFINE(__TARGET_EXTERNAL__, 1,
[Define for targets which use GAL and/or IAL engines which use external implementation])
;;
fmsoft)
AC_DEFINE(__TARGET_FMSOFT__, 1, [Define for FMSoft internal use])
;;
mstudio)
AC_DEFINE(__TARGET_MSTUDIO__, 1, [Define for FMSoft miniStudio])
;;
stb810)
AC_DEFINE(__TARGET_STB810__, 1, [Define for Philips STB810 target])
;;
vfanvil)
AC_DEFINE(__TARGET_VFANVIL__, 1, [Define for VirualFone ANVIL target])
;;
monaco)
AC_DEFINE(__TARGET_MONACO__, 1, [Define for Monaco ANVIL target])
;;
mx21)
AC_DEFINE(__TARGET_MX21__, 1, [Define for OSE on mx21])
;;
vxi386)
AC_DEFINE(__TARGET_VXI386__, 1, [Define for VxWorks on i386])
;;
vxppc)
AC_DEFINE(__TARGET_PPC__, 1, [Define for VxWorks on PowerPC])
;;
bfin)
AC_DEFINE(__TARGET_BLACKFIN__, 1, [Define for Blackfin run uClinux])
;;
c33l05)
AC_DEFINE(__TARGET_C33L05__, 1, [Define for EPSON C33L05 (axLinux)])
;;
S3C6410)
CPPFLAGS="$CPPFLAGS -D_WITH_TARGET_S3C6410"
;;
S3C2440)
CPPFLAGS="$CPPFLAGS -D_WITH_TARGET_S3C2440"
;;
S3C2410)
CPPFLAGS="$CPPFLAGS -D_WITH_TARGET_S3C2410"
;;
hi3560a)
CPPFLAGS="$CPPFLAGS -D_WITH_TARGET_HI3560A"
;;
*)
with_targetname="unknown"
CPPFLAGS="$CPPFLAGS -D_WITH_TARGET_NONE"
AC_DEFINE(__TARGET_UNKNOWN__, 1, [Define for unknown target])
;;
esac
if test "x$with_flat_lf" = "xyes"; then
AC_DEFINE(_MGLF_RDR_FLAT, 1,
[Define if include flat Look and Feel])
fi
if test "x$with_skin_lf" = "xyes"; then
AC_DEFINE(_MGLF_RDR_SKIN, 1,
[Define if include skin Look and Feel])
fi
if test "x$use_own_malloc" = "xyes"; then
AC_DEFINE(_MGUSE_OWN_MALLOC, 1,
[Define if use own implementation of malloc functions])
fi
if test "x$use_own_stdio" = "xyes"; then
AC_DEFINE(_MGUSE_OWN_STDIO, 1,
[Define if use own implementation of stdio functions])
fi
if test "x$use_own_pthread" = "xyes"; then
AC_DEFINE(_MGUSE_OWN_PTHREAD, 1,
[Define if use own implementation of pthread functions])
fi
CPPFLAGS="$CPPFLAGS -D__MINIGUI_LIB__"
case "$runtime_mode" in
sa)
AC_DEFINE(_MGRM_STANDALONE, 1,
[Define if build MiniGUI-Standalone])
AC_DEFINE(_STAND_ALONE, 1,
[Define if build MiniGUI-Standalone (back-compatibility definition)])
AC_DEFINE(_LITE_VERSION, 1,
[Define if build MiniGUI-Standalone (back-compatibility definition)])
MINIGUI_RUNMODE="sa"
;;
ths)
AC_DEFINE(_MGRM_THREADS, 1,
[Define if build MiniGUI-Threads])
CPPFLAGS="$CPPFLAGS -D_REENTRANT"
MINIGUI_RUNMODE="ths"
;;
*)
AC_DEFINE(_MGRM_PROCESSES, 1,
[Define if build MiniGUI-Processes])
AC_DEFINE(_LITE_VERSION, 1,
[Define if build MiniGUI-Processes (back-compatibility definition)])
MINIGUI_RUNMODE="procs"
;;
esac
if test "x$incore_res" = "xno"; then
AC_DEFINE_UNQUOTED(ETCFILENAME, "${conf}", [MiniGUI configure file name])
fi
AC_SUBST(MGLIB_SUFFIX)
AC_DEFINE_UNQUOTED(_MGLIB_SUFFIX, "${MGLIB_SUFFIX}", [MiniGUI library suffix])
if test "x$use_miniguientry" = "xyes"; then
AC_DEFINE(_USE_MINIGUIENTRY, 1,
[Define if use minigui_entry function in MiniGUI])
fi
if test "x$incore_res" = "xyes"; then
AC_DEFINE(_MGINCORE_RES, 1,
[Define if build MiniGUI for no file I/O system (use in-core resources)])
fi
if test "x$build_adv2dapi" = "xyes"; then
AC_DEFINE(_MGHAVE_ADV_2DAPI, 1,
[Define if include advanced 2D graphics APIs])
fi
if test "x$build_syncupdate" = "xyes"; then
AC_DEFINE(_MGUSE_SYNC_UPDATE, 1,
[Define if include implementation of SyncUpdateDC])
fi
if test "x$fixed_math" = "xyes"; then
AC_DEFINE(_MGHAVE_FIXED_MATH, 1,
[Define if include fixed math routines])
fi
if test "x$devel_mode" = "xyes"; then
message_string="yes"
if test "x$detail_debug" = "xyes"; then
trace_message="yes"
fi
build_auto_ial_engine="yes"
build_random_ial_engine="yes"
build_net_ial_engine="yes"
build_qpf_support="yes"
build_latin2_support="yes"
build_latin3_support="yes"
build_latin4_support="yes"
build_cyrillic_support="yes"
build_arabic_support="yes"
build_greek_support="yes"
build_hebrew_support="yes"
build_latin5_support="yes"
build_latin6_support="yes"
build_thai_support="yes"
build_latin7_support="yes"
build_latin8_support="yes"
build_latin10_support="yes"
build_gb18030_support="yes"
build_big5_support="yes"
build_euckr_support="yes"
build_eucjp_support="yes"
build_shiftjis_support="yes"
use_kbd_hebrewpc="yes"
use_kbd_arabicpc="yes"
use_kbd_frpc="yes"
use_kbd_fr="yes"
use_kbd_de="yes"
use_kbd_delatin1="yes"
use_kbd_it="yes"
use_kbd_es="yes"
use_kbd_escp850="yes"
build_ctrl_bidisledit="yes"
build_ctrl_textedit="yes"
build_ctrl_scrollview="yes"
build_ctrl_monthcal="yes"
build_ctrl_treeview="yes"
build_ctrl_treeview_rdr="yes"
build_ctrl_spinbox="yes"
build_ctrl_coolbar="yes"
build_ctrl_listview="yes"
build_ctrl_iconview="yes"
build_ctrl_gridview="yes"
enable_video_shadow="yes"
enable_video_mlshadow="yes"
enable_video_custom="yes"
fi
dnl Depedencies
if test "x$build_ctrl_treeview" = "xyes"; then
build_ctrl_scrollview="yes"
fi
if test "x$build_ctrl_treeview_rdr" = "xyes"; then
build_ctrl_scrollview="yes"
fi
if test "x$trace_message" = "xyes"; then
message_string="yes"
AC_DEFINE(_MGHAVE_TRACE_MSG, 1,
[Define if trace message dispatching of MiniGUI])
fi
if test "x$message_string" = "xyes"; then
AC_DEFINE(_MGHAVE_MSG_STRING, 1,
[Define if include message string names])
fi
AC_DEFINE(_MGTIMER_UNIT_10MS, 1,
[Define if the unit of timer is 10ms])
if test "x$double_click" = "xyes"; then
AC_DEFINE(_MGMISC_DOUBLE_CLICK, 1,
[Define if mouse button can do double click])
fi
if test "x$build_dummy_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_DUMMY, 1,
[Define if include the dummy IAL engine])
fi
if test "x$build_auto_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_AUTO, 1,
[Define if include the automatic IAL engine])
fi
if test "x$build_random_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_RANDOM, 1,
[Define if include the random IAL engine])
fi
if test "x$build_qvfb_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_QVFB, 1,
[Define if include the QVFB IAL engine])
fi
if test "x$build_wvfb_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_WVFB, 1,
[Define if include the WVFB IAL engine])
fi
if test "x$build_jz4740_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_JZ4740, 1,
[Define if include the JZ4740 IAL engine])
fi
if test "x$build_lide_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_LIDE, 1,
[Define if include the lide IAL engine])
fi
if test "x$build_2440_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_2440, 1,
[Define if include the 2440 IAL engine])
fi
if test "x$build_davinci6446_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_DAVINCI6446, 1,
[Define if include the DAVINCI6446 IAL engine])
fi
if test "x$build_dfb_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_DFB, 1,
[Define if include the DFB IAL engine])
fi
if test "x$build_qemu_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_QEMU, 1,
[Define if include the QEMU IAL engine])
fi
if test "x$build_custom_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_CUSTOM, 1,
[Define if include IAL engine for external customer implementation])
fi
if test "x$build_net_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_NET, 1,
[Define if include IAL engine for net's board])
fi
if test "x$build_comm_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_COMM, 1,
[Define if include the common IAL engine])
fi
if test "x$build_cisco_touchpad_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_CISCO_TOUCHPAD, 1,
[Define if include IAL engine for Cisco touchpad])
DEP_LIBS="$DEP_LIBS -lhid -lusb -lusb-1.0"
fi
if test "x$build_mstar_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_MSTAR, 1,
[Define if include IAL engine for MStar])
fi
if test "x$build_ipaq_h3600_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_IPAQ_H3600, 1,
[Define if include IAL engine for iPAQ H3600])
fi
if test "x$build_nexus_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_NEXUS, 1,
[Define if include IAL engine for Nexus])
fi
if test "x$build_ipaq_h5400_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_IPAQ_H5400, 1,
[Define if include IAL engine for iPAQ H5400])
fi
if test "x$build_tslib_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_TSLIB, 1,
[Define if include IAL engine for TSLIB])
DEP_LIBS="$DEP_LIBS -lts"
fi
if test "x$build_libinput_ial_engine" = "xyes"; then
PKG_CHECK_MODULES(LIBINPUT, [libinput >= 1.10.0], build_libinput_ial_engine="yes",
build_libinput_ial_engine="no; Libinput IAL engine requires libinput 1.10.0+")
if test "x$build_libinput_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_LIBINPUT, 1,
[Define if include Linux libinput IAL engine])
need_udev="yes"
DEP_LIBS="$DEP_LIBS -linput"
else
AC_MSG_WARN([$build_libinput_ial_engine])
fi
fi
if test "x$build_console_ial_engine" = "xyes"; then
AC_DEFINE(_MGIAL_CONSOLE, 1,
[Define if include console (Linux console) IAL engine])
fi
if test "x$build_console_ps2" = "xyes"; then
AC_DEFINE(_MGCONSOLE_PS2, 1,
[Define if include PS2 mouse subdriver])
fi
if test "x$build_console_imps2" = "xyes"; then
AC_DEFINE(_MGCONSOLE_IMPS2, 1,
[Define if include IMPS2 mouse subdriver])
fi
if test "x$build_console_ms" = "xyes"; then
AC_DEFINE(_MGCONSOLE_MS, 1,
[Define if include MS mouse subdriver])
fi
if test "x$build_console_ms3" = "xyes"; then
AC_DEFINE(_MGCONSOLE_MS3, 1,
[Define if include MS3 mouse subdriver])
fi
if test "x$build_console_gpm" = "xyes"; then
AC_DEFINE(_MGCONSOLE_GPM, 1,
[Define if include GPM mouse subdriver])
fi
if test "x$build_text_mode" = "xyes"; then
AC_DEFINE(_MGCONSOLE_TEXTMODE, 1,
[Define if your Linux have text mode])
fi
if test "x$build_cursor_support" = "xyes"; then
AC_DEFINE(_MGHAVE_CURSOR, 1,
[Define if include cursor support])
fi
if test "x$build_clipboard" = "xyes"; then
AC_DEFINE(_MGHAVE_CLIPBOARD, 1,
[Define if include clipboard support])
fi
if test "x$build_rbf_support" = "xyes"; then
AC_DEFINE(_MGFONT_RBF, 1,
[Define if support raw bitmap fonts])
if test "x$build_incorerbf_vgaoem" = "xyes"; then
AC_DEFINE(_MGINCORERBF_LATIN1_VGAOEM, 1,
[Define if include in-core VGAOEM RBF for ISO8859-1])
fi
if test "x$build_incorerbf_terminal" = "xyes"; then
AC_DEFINE(_MGINCORERBF_LATIN1_TERMINAL, 1,
[Define if include in-core Terminal RBF for ISO8859-1])
fi
if test "x$build_incorerbf_fixedsys" = "xyes"; then
AC_DEFINE(_MGINCORERBF_LATIN1_FIXEDSYS, 1,
[Define if include in-core FixedSys RBF for ISO8859-1])
fi
fi
if test "x$build_vbf_support" = "xyes"; then
AC_DEFINE(_MGFONT_VBF, 1,
[Define if support var bitmap fonts])
if test "x$build_incorefont_sansserif" = "xyes"; then
AC_DEFINE(_MGINCOREFONT_SANSSERIF, 1,
[Define if include in-core font: SansSerif])
fi
if test "x$build_incorefont_courier" = "xyes"; then
AC_DEFINE(_MGINCOREFONT_COURIER, 1,
[Define if include in-core font: Courier])
fi
if test "x$build_incorefont_system" = "xyes"; then
AC_DEFINE(_MGINCOREFONT_SYSTEM, 1,
[Define if include in-core font: System])
fi
fi
if test "x$build_sef_support" = "xyes"; then
build_unicode_support="yes"
AC_DEFINE(_MGFONT_SEF, 1,
[Define if support SEF scripteary font])
fi
if test "x$build_qpf_support" = "xyes"; then
build_unicode_support="yes"
AC_DEFINE(_MGFONT_QPF, 1,
[Define if support QPF font])
fi
if test "x$build_upf_support" = "xyes"; then
build_unicode_support="yes"
AC_DEFINE(_MGFONT_UPF, 1,
[Define if support UPF font])
if test "x$build_incorefont_times" = "xyes"; then
AC_DEFINE(_MGINCOREFONT_TIMES, 1,
[Define if include in-core UPF Times fonts])
fi
fi
dnl Check FreeType lib
if test "x$build_ttf_support" = "xyes"; then
dnl Check for FreeType2 library
AC_CHECK_LIB(freetype, FT_Library_Version, ,
build_ttf_support="no; support for TrueType fonts requires libfreetype")
fi
dnl Dealing with TTF cache size
if test "x$build_ttf_support" = "xyes"; then
if test "x$build_complex_scripts" = "xyes"; then
dnl Check for HarfBuzz library
AC_CHECK_LIB(harfbuzz, hb_version,
DEP_LIBS="$DEP_LIBS -lharfbuzzex -lfreetype",
build_complex_scripts="no; support for complex scripts requires libharfbuzz")
else
DEP_LIBS="$DEP_LIBS -lfreetype",
fi
if test "x$build_ttfcache_support" = "xyes"; then
AC_DEFINE(_MGFONT_TTF_CACHE, 1,
[Define if include ttf cache])
AC_ARG_WITH(ttfcachesize,
[ --with-ttfcachesize=[64/128/256/512/1024/2048]])
case "$with_ttfcachesize" in
64)
AC_DEFINE(_MGTTF_CACHE_SIZE, 64,
[Define if compile max ttf cahce size for 64k])
;;
128)
AC_DEFINE(_MGTTF_CACHE_SIZE, 128,
[Define if compile max ttf cahce size for 128k])
;;
256)
AC_DEFINE(_MGTTF_CACHE_SIZE, 256,
[Define if compile max ttf cahce size for 256k])
;;
512)
AC_DEFINE(_MGTTF_CACHE_SIZE, 512,
[Define if compile max ttf cahce size for 512k])
;;
1024)
AC_DEFINE(_MGTTF_CACHE_SIZE, 1024,
[Define if compile max ttf cahce size for 1024k])
;;
2048)
AC_DEFINE(_MGTTF_CACHE_SIZE, 2048,
[Define if compile max ttf cahce size for 2048k])
;;
*)
AC_DEFINE(_MGTTF_CACHE_SIZE, 1024,
[Define if compile max ttf cahce size for 1024k (default value)])
;;
esac
AC_ARG_WITH(ttfcachenum,
[ --with-ttfcachenum=[16/32/64/128]])
case "$with_ttfcachenum" in
16)
AC_DEFINE(_MGMAX_TTF_CACHE, 16,
[Define if compile max ttf cahce number for 16])
;;
32)
AC_DEFINE(_MGMAX_TTF_CACHE, 32,
[Define if compile max ttf cahce number for 32])
;;
64)
AC_DEFINE(_MGMAX_TTF_CACHE, 64,
[Define if compile max ttf cahce number for 64])
;;
128)
AC_DEFINE(_MGMAX_TTF_CACHE, 128,
[Define if compile max ttf cahce number for 128])
;;
*)
AC_DEFINE(_MGMAX_TTF_CACHE, 32,
[Define if compile max ttf cahce number for 32 (default value)])
;;
esac
fi
fi
if test "x$build_complex_scripts" = "xyes"; then
build_ttf_support="yes"
AC_DEFINE(_MGCOMPLEX_SCRIPTS, 1,
[Define if support complex scripts based on HarfBuzz])
AC_ARG_WITH(hb_includes,
[ --with-hb-includes=DIR where the HarfBuzz includes are])
if test "x$with_hb_includes" = "x"; then
HB_INC_DIR="-I/usr/local/include/harfbuzz"
else
HB_INC_DIR="-I$with_hb_includes"
fi
AC_SUBST(HB_INC_DIR)
fi
if test "x$build_ttf_support" = "xyes"; then
build_unicode_support="yes"
AC_DEFINE(_MGFONT_FT2, 1,
[Define if support TrueType/OpenType fonts based on FreeType2])
with_ft2_includes=""
AC_ARG_WITH(ft2_includes,
[ --with-ft2-includes=DIR where the FreeType2 includes are],
with_ft2_includes=$withval)
if test "x$with_ft2_includes" = "x"; then
FT2_INC_DIR="-I/usr/include/freetype2"
else
FT2_INC_DIR="-I$with_ft2_includes"
fi
AC_SUBST(FT2_INC_DIR)
fi
if test "x$build_bmpf_support" = "xyes"; then
AC_DEFINE(_MGFONT_BMPF, 1,
[Define if support Bitmap fonts])
fi
if test "x$build_latin2_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_LATIN2, 1,
[Define if support Latin 2 charset])
fi
if test "x$build_latin3_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_LATIN3, 1,
[Define if support Latin 3 charset])
fi
if test "x$build_latin4_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_LATIN4, 1,
[Define if support Latin 4 charset])
fi
if test "x$build_cyrillic_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_CYRILLIC, 1,
[Define if support Cyrillic charset])
fi
if test "x$build_arabic_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_ARABIC, 1,
[Define if support Arabic charset])
fi
if test "x$build_greek_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_GREEK, 1,
[Define if support Greek charset])
fi
if test "x$build_hebrew_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_HEBREW, 1,
[Define if support Hebrew charset])
fi
if test "x$build_latin5_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_LATIN5, 1,
[Define if support Latin 5 charset])
fi
if test "x$build_latin6_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_LATIN6, 1,
[Define if support Latin 6 charset])
fi
if test "x$build_thai_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_THAI, 1,
[Define if support Thai charset])
fi
if test "x$build_latin7_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_LATIN7, 1,
[Define if support Latin 7 charset])
fi
if test "x$build_latin8_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_LATIN8, 1,
[Define if support Latin 8 charset])
fi
if test "x$build_latin9_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_LATIN9, 1,
[Define if support Latin 9 charset])
fi
if test "x$build_latin10_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_LATIN10, 1,
[Define if support Latin 10 charset])
fi
if test "x$build_gb_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_GB, 1,
[Define if support GB2312 charset])
fi
if test "x$build_gbk_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_GBK, 1,
[Define if support GBK charset])
fi
if test "x$build_gb18030_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_GB18030, 1,
[Define if support GB18030 charset])
fi
if test "x$build_big5_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_BIG5, 1,
[Define if support BIG5 charset])
fi
if test "x$build_euckr_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_EUCKR, 1,
[Define if support EUCKR charset])
fi
if test "x$build_eucjp_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_EUCJP, 1,
[Define if support EUCJP charset])
fi
if test "x$build_shiftjis_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_SHIFTJIS, 1,
[Define if support SHIFTJIS charset])
fi
if test "x$build_unicode_support" = "xyes"; then
AC_DEFINE(_MGCHARSET_UNICODE, 1,
[Define if support UNICODE])
fi
if test "x$build_full_unicode" = "xyes"; then
AC_DEFINE(_MGCHARSET_UNICODE_FULL, 1,
[Define if support full UNICODE code points])
fi
if test "x$use_kbd_hebrewpc" = "xyes"; then
AC_DEFINE(_MGKBDLAYOUT_HEBREWPC, 1,
[Define if use the Hebrew PC keyboard layout])
fi
if test "x$use_kbd_arabicpc" = "xyes"; then
AC_DEFINE(_MGKBDLAYOUT_ARABICPC, 1,
[Define if use the Arabic PC keyboard layout])
fi
if test "x$use_kbd_frpc" = "xyes"; then
AC_DEFINE(_MGKBDLAYOUT_FRPC, 1,
[Define if use the French PC keyboard layout])
fi
if test "x$use_kbd_fr" = "xyes"; then
AC_DEFINE(_MGKBDLAYOUT_FR, 1,
[Define if use the French keyboard layout])
fi
if test "x$use_kbd_de" = "xyes"; then
AC_DEFINE(_MGKBDLAYOUT_DE, 1,
[Define if use the German keyboard layout])
fi
if test "x$use_kbd_delatin1" = "xyes"; then
AC_DEFINE(_MGKBDLAYOUT_DELATIN1, 1,
[Define if use the German-Latin1 keyboard layout])
fi
if test "x$use_kbd_it" = "xyes"; then
AC_DEFINE(_MGKBDLAYOUT_IT, 1,
[Define if use the Italian keyboard layout])
fi
if test "x$use_kbd_es" = "xyes"; then
AC_DEFINE(_MGKBDLAYOUT_ES, 1,
[Define if use the Spanish keyboard layout])
fi
if test "x$use_kbd_escp850" = "xyes"; then
AC_DEFINE(_MGKBDLAYOUT_ESCP850, 1,
[Define if use the Spanish CP850 keyboard layout])
fi
if test "x$build_save_bitmap" = "xyes"; then
AC_DEFINE(_MGMISC_SAVEBITMAP, 1,
[Define if include SaveBitmap function])
else
build_misc_savescreen="no"
fi
if test "x$build_pcx_support" = "xyes"; then
AC_DEFINE(_MGIMAGE_PCX, 1,
[Define if support PCX bmp file format])
fi
if test "x$build_lbm_support" = "xyes"; then
AC_DEFINE(_MGIMAGE_LBM, 1,
[Define if support LBM bmp file format])
fi
if test "x$build_tga_support" = "xyes"; then
AC_DEFINE(_MGIMAGE_TGA, 1,
[Define if support TGA bmp file format])
fi
if test "x$build_gif_support" = "xyes"; then
AC_DEFINE(_MGIMAGE_GIF, 1,
[Define if support GIF bmp file format])
fi
if test "x$build_jpg_support" = "xyes"; then
AC_DEFINE(_MGIMAGE_JPG, 1,
[Define if support JPEG bmp file format])
fi
if test "x$build_png_support" = "xyes"; then
AC_DEFINE(_MGIMAGE_PNG, 1,
[Define if support PNG bmp file format])
AC_DEFINE_UNQUOTED(_MGLIBPNG_VER, $libpng_version,
[Define version of libpng])
fi
if test "x$build_menu" = "xyes"; then
AC_DEFINE(_MGHAVE_MENU, 1,
[Define if support menu])
else
build_ctrl_menubutton="no"
fi
if test "x$build_misc_mousecalibrate" = "xyes"; then
AC_DEFINE(_MGHAVE_MOUSECALIBRATE, 1,
[Define if include code for mouse calibration])
fi
if test "x$build_misc_aboutdlg" = "xyes"; then
if test "x$build_ctrl_button" = "xyes"; then
AC_DEFINE(_MGMISC_ABOUTDLG, 1,
[Define if include About MiniGUI Dialog Box])
fi
fi
if test "x$build_misc_savescreen" = "xyes"; then
AC_DEFINE(_MGMISC_SAVESCREEN, 1,
[Define if include code for screenshots])
fi
if test "x$build_ctrl_static" = "xyes"; then
AC_DEFINE(_MGCTRL_STATIC, 1,
[Define if include STATIC control])
fi
if test "x$build_ctrl_button" = "xyes"; then
AC_DEFINE(_MGCTRL_BUTTON, 1,
[Define if include BUTTON control])
fi
if test "x$build_ctrl_sledit" = "xyes"; then
AC_DEFINE(_MGCTRL_SLEDIT, 1,
[Define if include SLEDIT control])
fi
if test "x$build_ctrl_bidisledit" = "xyes"; then
AC_DEFINE(_MGCTRL_BIDISLEDIT, 1,
[Define if include BIDISLEDIT control])
fi
if test "x$build_ctrl_listbox" = "xyes"; then
AC_DEFINE(_MGCTRL_LISTBOX, 1,
[Define if include LISTBOX control])
fi
if test "x$build_ctrl_progressbar" = "xyes"; then
AC_DEFINE(_MGCTRL_PROGRESSBAR, 1,
[Define if include PROGRESSBAR control])
fi
if test "x$build_ctrl_combobox" = "xyes"; then
AC_DEFINE(_MGCTRL_COMBOBOX, 1,
[Define if include COMBOBOX control])
fi
if test "x$build_ctrl_propsheet" = "xyes"; then
AC_DEFINE(_MGCTRL_PROPSHEET, 1,
[Define if include PROPSHEET control])
fi
if test "x$build_ctrl_trackbar" = "xyes"; then
AC_DEFINE(_MGCTRL_TRACKBAR, 1,
[Define if include TRACKBAR control])
fi
if test "x$build_ctrl_scrollbar" = "xyes"; then
AC_DEFINE(_MGCTRL_SCROLLBAR, 1,
[Define if include SCROLLBAR control])
fi
if test "x$build_ctrl_newtoolbar" = "xyes"; then
AC_DEFINE(_MGCTRL_NEWTOOLBAR, 1,
[Define if include NEWTOOLBAR control])
fi
if test "x$build_ctrl_menubutton" = "xyes"; then
AC_DEFINE(_MGCTRL_MENUBUTTON, 1,
[Define if include MENUBUTTON control])
fi
if test "x$build_ctrl_scrollview" = "xyes"; then
AC_DEFINE(_MGCTRL_SCROLLVIEW, 1,
[Define if include SCROLLVIEW control])
fi
if test "x$build_ctrl_textedit" = "xyes"; then
AC_DEFINE(_MGCTRL_TEXTEDIT, 1,
[Define if include TEXTEDIT control])
fi
if test "x$build_ctrl_monthcal" = "xyes"; then
AC_DEFINE(_MGCTRL_MONTHCAL, 1,
[Define if include MONTHCALENDAR control])
fi
if test "x$build_ctrl_treeview" = "xyes"; then
AC_DEFINE(_MGCTRL_TREEVIEW, 1,
[Define if include TREEVIEW control])
fi
if test "x$build_ctrl_treeview_rdr" = "xyes"; then
AC_DEFINE(_MGCTRL_TREEVIEW_RDR, 1,
[Define if include TREEVIEWRDR control])
fi
if test "x$build_ctrl_spinbox" = "xyes"; then
AC_DEFINE(_MGCTRL_SPINBOX, 1,
[Define if include SPINBOX control])
fi
if test "x$build_ctrl_coolbar" = "xyes"; then
AC_DEFINE(_MGCTRL_COOLBAR, 1,
[Define if include COOLBAR control])
fi
if test "x$build_ctrl_listview" = "xyes"; then
AC_DEFINE(_MGCTRL_LISTVIEW, 1,
[Define if include LISTVIEW control])
fi
if test "x$build_ctrl_gridview" = "xyes"; then
AC_DEFINE(_MGCTRL_GRIDVIEW, 1,
[Define if include GRIDVIEW control])
fi
if test "x$build_ctrl_iconview" = "xyes"; then
AC_DEFINE(_MGCTRL_ICONVIEW, 1,
[Define if include ICONVIEW control])
fi
if test "x$build_ctrl_animation" = "xyes"; then
AC_DEFINE(_MGCTRL_ANIMATION, 1,
[Define if include ANIMATION control])
fi
if test "x$build_ctrl_textedit_new" = "xyes"; then
AC_DEFINE(_MGCTRL_TEXTEDIT, 1,
[Define if include TEXTEDIT control])
AC_DEFINE(_MGCTRL_TEXTEDIT_USE_NEW_IMPL, 1,
[Define if use new implementation of TEXTEDIT control])
fi
if test "x$build_splash" = "xyes"; then
CPPFLAGS="$CPPFLAGS -D_MG_ENABLE_SPLASH=1"
fi
if test "x$build_screensaver" = "xyes"; then
CPPFLAGS="$CPPFLAGS -D_MG_ENABLE_SCREENSAVER=1"
fi
if test "x$build_minimalgdi" = "xyes"; then
AC_DEFINE(_MG_MINIMALGDI, 1,
[Define if build the mgeff support version])
fi
if test "x$build_productid" = "xyes"; then
AC_DEFINE(_MG_PRODUCTID, 1,
[Define if insert a productid into the library file])
fi
dnl ========================================================================
dnl Write output
dnl define _GNU_SOURCE for pthread_rwlock_t
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
if test "x$devel_mode" = "xyes"; then
CPPFLAGS="$CPPFLAGS -DDEBUG"
if test "x$detail_debug" = "xyes"; then
CPPFLAGS="$CPPFLAGS -D_DEBUG"
fi
if test "$ac_cv_prog_gcc" = "yes"; then
CFLAGS="$CFLAGS -Wall -Werror"
fi
AC_DEFINE(_MGDEVEL_MODE, 1,
[Define if developer mode enabled])
else
CPPFLAGS="$CPPFLAGS -DNDEBUG"
fi
if test "$ac_cv_prog_gcc" = "yes"; then
CFLAGS="$CFLAGS -fmax-errors=10 -Wstrict-prototypes -pipe"
fi
if test "x$need_udev" = "xyes"; then
DEP_LIBS="$DEP_LIBS -ludev"
fi
if test "x$no_math" = "xno"; then
DEP_LIBS="$DEP_LIBS -lm"
fi
DEP_LIBS="$DEP_LIBS -lpthread"
AC_SUBST(VIDEO_SUBDIRS)
AC_SUBST(VIDEO_DRIVERS)
AC_SUBST(DEP_LIBS)
AC_SUBST(MINIGUI_RUNMODE)
AM_CONDITIONAL(MGRM_PROCESSES, test "x$runtime_mode" = "xprocs")
AM_CONDITIONAL(MGRM_STANDALONE, test "x$runtime_mode" = "xsa")
AM_CONDITIONAL(MGIAL_LIBINPUT, test "x$build_libinput_ial_engine" = "xyes")
AM_CONDITIONAL(MGIAL_CONSOLE, test "x$build_console_ial_engine" = "xyes")
AM_CONDITIONAL(MGIAL_NEXUS, test "x$build_nexus_ial_engine" = "xyes")
AM_CONDITIONAL(MGIAL_DLCUSTOM, test "x$build_dlcustom_ial_engine" = "xyes")
AM_CONDITIONAL(UCOSII, test "x$with_osname" = "xucos2")
AM_CONDITIONAL(MGUSE_OWN_PTHREAD, test "x$use_own_pthread" = "xyes")
AM_CONDITIONAL(MGFONT_SEF, test "x$build_sef_support" = "xyes")
AM_CONDITIONAL(MGIAL_CUSTOM, test "x$build_custom_ial_engine" = "xyes")
AM_CONDITIONAL(MGIAL_NET, test "x$build_net_ial_engine" = "xyes")
AM_CONDITIONAL(MGLIB_MVFB, test "x$with_libsuffix" = "xmvfb")
AM_CONDITIONAL(MG_MINIMALGDI, test "x$build_minimalgdi" = "xyes")
AM_CONDITIONAL(MG_ENABLE_SPLASH, test "x$build_splash" = "xyes")
AM_CONDITIONAL(MG_ENABLE_SCREENSAVER, test "x$build_screensaver" = "xyes")
AC_OUTPUT(
minigui.pc
Makefile
cmake/Makefile
src/Makefile
src/control/Makefile
src/ex_ctrl/Makefile
src/font/Makefile
src/font/in-core/Makefile
src/newgal/Makefile
src/newgal/fbcon/Makefile
src/newgal/dri/Makefile
src/newgal/qvfb/Makefile
src/newgal/pcxvfb/Makefile
src/newgal/wvfb/Makefile
src/newgal/commlcd/Makefile
src/newgal/shadow/Makefile
src/newgal/mlshadow/Makefile
src/newgal/em86gfx/Makefile
src/newgal/em85xxyuv/Makefile
src/newgal/em85xxosd/Makefile
src/newgal/dummy/Makefile
src/newgal/svpxxosd/Makefile
src/newgal/bf533/Makefile
src/newgal/mb93493/Makefile
src/newgal/utpmc/Makefile
src/newgal/dfb/Makefile
src/newgal/hisi/Makefile
src/newgal/rtos_xvfb/Makefile
src/newgal/nexus/Makefile
src/newgal/s3c6410/Makefile
src/newgal/sigma8654/Makefile
src/newgal/mstar/Makefile
src/newgal/gdl/Makefile
src/newgal/stgfb/Makefile
src/newgal/usvfb/Makefile
src/ial/Makefile
src/ial/native/Makefile
src/ial/netial/Makefile
src/ial/nexusial/Makefile
src/ial/dlcustom/Makefile
src/mybmp/Makefile
src/newgdi/Makefile
src/gui/Makefile
src/libc/Makefile
src/misc/Makefile
src/main/Makefile
src/kernel/Makefile
src/server/Makefile
src/client/Makefile
src/standalone/Makefile
src/sysres/Makefile
src/sysres/bmp/Makefile
src/sysres/icon/Makefile
src/sysres/font/Makefile
src/sysres/cursor/Makefile
src/sysres/license/Makefile
src/sysres/license/c_files/Makefile
src/include/Makefile
src/textedit/Makefile
include/Makefile
include/ctrl/Makefile
rtos/Makefile
etc/Makefile
3rd-party/Makefile
3rd-party/scripteasy/Makefile
m4/Makefile
build/Makefile
)
CCVERSION=`$CC --version | head -n 1`
AC_MSG_NOTICE([
# Main building configuration:
## Global Features:
* Runtime mode: ${runtime_mode}
* Incore resource: ${incore_res}
* Developer mode: ${devel_mode}
* Target name: ${with_targetname}
* Cursor: ${build_cursor_support}
## NEWGAL Engines:
* dummy: ${enable_video_dummy}
* pc_xvfb: ${enable_video_pc_xvfb}
* usvfb: ${enable_video_usvfb}
* dri: ${enable_video_dri}
* fbcon: ${enable_video_fbcon}
* commlcd: ${enable_video_commlcd}
## IAL Engines:
* dummy: ${build_dummy_ial_engine}
* pc_xvfb: ${enable_video_pc_xvfb}
* usvfb: ${enable_video_usvfb}
* libinput: ${build_libinput_ial_engine}
* console: ${build_console_ial_engine}
* comm: ${build_comm_ial_engine}
## Fonts:
* rbf: ${build_rbf_support}
* vbf: ${build_vbf_support}
* upf: ${build_upf_support}
* ttf: ${build_ttf_support}
## Other Features:
* JPEG: ${build_jpg_support}
* PNG: ${build_png_support}
* Unicode: ${build_unicode_support}
* Complex Scripts: ${build_complex_scripts}
## Building Info:
* CC: ${CCVERSION}
* CPP flags: ${CPPFLAGS}
* CC flags: ${CFLAGS}
* CXX flags: ${CXXFLAGS}
* Dep. libraries: ${DEP_LIBS}
])
dnl configs/Makefile
dnl scripts/Makefile
dnl scripts/lxdialog/Makefile
dnl build/Makefile
dnl generate license pictures
dnl echo
dnl echo "Going to generate license pictures ..."
dnl cd src/sysres/license/
dnl ./runme.sh $LICENSE_PICTURE > /dev/null
dnl if [[ $? -ne 0 ]]; then
dnl echo "WARNING: failed to generate license pictures."
dnl else
dnl echo "Done."
dnl fi
C
1
https://gitee.com/MicroOS/MiniGUI.git
git@gitee.com:MicroOS/MiniGUI.git
MicroOS
MiniGUI
MiniGUI
master

搜索帮助