Mercurial > MadButterfly
annotate configure.ac @ 1073:d09f603438d8 openvg
Merge the work of improvement for graphic engine of openvg branch
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 01 Dec 2010 20:01:49 +0800 |
parents | 7b4e80ab671a |
children | ed9ca123d8db |
rev | line source |
---|---|
169 | 1 # -*- Autoconf -*- |
2 # Process this file with autoconf to produce a configure script. | |
3 | |
4 AC_PREREQ(2.61) | |
182
7d1497608c2f
Polish scripts of GNU Build System.
"Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>"
parents:
178
diff
changeset
|
5 AC_INIT([MadButterfly],[0.0],[http://www.assembla.com/spaces/MadButterfly]) |
7d1497608c2f
Polish scripts of GNU Build System.
"Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>"
parents:
178
diff
changeset
|
6 AC_CONFIG_SRCDIR([README.h]) |
467
6e18550c8fa8
Header file to config graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
466
diff
changeset
|
7 AC_CONFIG_HEADER([config.h include/mb_config.h]) |
169 | 8 AM_INIT_AUTOMAKE([foreign]) |
9 | |
10 # Checks for programs. | |
11 AC_PROG_CC | |
468
ae784a86ba82
C++ instead of C to bridge to Skia
Thinker K.F. Li <thinker@branda.to>
parents:
467
diff
changeset
|
12 AC_PROG_CXX |
182
7d1497608c2f
Polish scripts of GNU Build System.
"Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>"
parents:
178
diff
changeset
|
13 LT_INIT |
184
13c1d49c198b
Add AC_PROG_LIBTOOL to make older libtool compatible.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
182
diff
changeset
|
14 AC_PROG_LIBTOOL |
169 | 15 |
16 # Checks for header files. | |
17 AC_PATH_X | |
18 AC_HEADER_STDC | |
19 AC_CHECK_HEADERS([stdint.h stdlib.h string.h sys/time.h unistd.h]) | |
20 | |
21 # Checks for typedefs, structures, and compiler characteristics. | |
22 AC_C_CONST | |
23 AC_TYPE_SIZE_T | |
24 AC_HEADER_TIME | |
25 AC_STRUCT_TM | |
26 AC_TYPE_UINT32_T | |
27 AC_TYPE_UINT64_T | |
28 | |
1067 | 29 # Explicit initialize pkg-config for conditional PKG_CHECK_MODULE |
30 # see http://www.flameeyes.eu/autotools-mythbuster/autoconf/macros.html | |
31 # and http://www.flameeyes.eu/autotools-mythbuster/ \ | |
32 # pkgconfig/pkg_check_modules.html | |
33 PKG_PROG_PKG_CONFIG | |
34 | |
169 | 35 # Checks for library functions. |
36 AC_FUNC_MALLOC | |
37 AC_FUNC_REALLOC | |
38 AC_FUNC_SELECT_ARGTYPES | |
39 AC_CHECK_FUNCS([gettimeofday memset select sqrt strdup]) | |
40 | |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
41 AC_ARG_ENABLE([testcase], |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
42 [AS_HELP_STRING([--enable-testcase],[Enable testcase])], |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
43 [case "${enableval}" in |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
44 (yes) testcase=true ;; |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
45 (no) testcase=false ;; |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
46 (*) AC_MSG_ERROR([bad value ${enableval} for --enable-testcase]) ;; |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
47 esac],[testcase=false]) |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
48 |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
49 AM_CONDITIONAL([TESTCASE], [test x$testcase = xtrue]) |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
50 |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
51 AC_ARG_ENABLE([sh_text], |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
52 [AS_HELP_STRING([--disable-sh_text],[Turn off sh_text])], |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
53 [case "${enableval}" in |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
54 (yes) sh_text=true ;; |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
55 (no) sh_text=false ;; |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
56 (*) AC_MSG_ERROR([bad value ${enableval} for --disable-sh_text]) ;; |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
57 esac],[sh_text=true]) |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
58 |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
59 AC_ARG_ENABLE([sh_stext], |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
60 [AS_HELP_STRING([--disable-sh_stext],[Turn off sh_stext])], |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
61 [case "${enableval}" in |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
62 (yes) sh_stext=true ;; |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
63 (no) sh_stext=false ;; |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
64 (*) AC_MSG_ERROR([bad value ${enableval} for --disable-sh_stext]) ;; |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
65 esac],[sh_stext=true]) |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
66 |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
67 AM_CONDITIONAL([SH_STEXT], [test x$sh_stext = xtrue]) |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
68 |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
69 [if [ x"${sh_stext}" = xtrue ]; then] |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
70 AC_DEFINE([SH_STEXT]) |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
71 [fi] |
408
7f7855df2af0
Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents:
402
diff
changeset
|
72 |
628
e50c4e111698
Disable mbaf for OpenVG
Thinker K.F. Li <thinker@branda.to>
parents:
627
diff
changeset
|
73 AC_ARG_ENABLE([mbaf], |
e50c4e111698
Disable mbaf for OpenVG
Thinker K.F. Li <thinker@branda.to>
parents:
627
diff
changeset
|
74 [ --disable-mbaf Turn off mbaf], |
e50c4e111698
Disable mbaf for OpenVG
Thinker K.F. Li <thinker@branda.to>
parents:
627
diff
changeset
|
75 [case "${enableval}" in |
e50c4e111698
Disable mbaf for OpenVG
Thinker K.F. Li <thinker@branda.to>
parents:
627
diff
changeset
|
76 yes) mbaf=true ;; |
e50c4e111698
Disable mbaf for OpenVG
Thinker K.F. Li <thinker@branda.to>
parents:
627
diff
changeset
|
77 no) mbaf=false ;; |
e50c4e111698
Disable mbaf for OpenVG
Thinker K.F. Li <thinker@branda.to>
parents:
627
diff
changeset
|
78 *) AC_MSG_ERROR([bad value ${enableval} for --disable-mbaf]) ;; |
e50c4e111698
Disable mbaf for OpenVG
Thinker K.F. Li <thinker@branda.to>
parents:
627
diff
changeset
|
79 esac],[mbaf=true]) |
e50c4e111698
Disable mbaf for OpenVG
Thinker K.F. Li <thinker@branda.to>
parents:
627
diff
changeset
|
80 |
654
21f944e79b19
Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
633
diff
changeset
|
81 AC_ARG_WITH([backend], |
21f944e79b19
Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
633
diff
changeset
|
82 [AS_HELP_STRING([--with-backend=FOO],[Use FOO as display backend (default is 'X')])], |
21f944e79b19
Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
633
diff
changeset
|
83 [case "${withval}" in |
1067 | 84 ('X') backend='X'; default_graphic_engine="cairo" ;; |
85 ('dfb') backend='dfb'; default_graphic_engine="dfb" ;; | |
86 ('no') backend='none'; default_graphic_engine="cairo" ;; | |
654
21f944e79b19
Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
633
diff
changeset
|
87 (*) AC_MSG_ERROR([bad value ${withval} for --with-backend]) ;; |
1067 | 88 esac],[backend='X'; default_graphic_engine="cairo"]) |
464
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
440
diff
changeset
|
89 |
1067 | 90 AC_ARG_WITH([graphic-engine], |
91 [AS_HELP_STRING([--with-graphic-engine=FOO], | |
92 [Use FOO as graphic engine (default is '${default_graphic_engine}')])], | |
93 [case "${withval}" in | |
94 ('cairo') graphic_engine="cairo" ;; | |
95 ('skia') graphic_engine="skia" ;; | |
96 ('openvg') graphic_engine="openvg" ;; | |
97 ('dfb') graphic_engine="dfb" ;; | |
98 (*) AC_MSG_ERROR([bad value ${withval} for --with-graphic-engine]) | |
99 ;; | |
100 esac], [graphic_engine="${default_graphic_engine}"]) | |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
101 |
1067 | 102 AC_ARG_WITH([image-loader], |
103 [AS_HELP_STRING([--with-image-loader=FOO], | |
104 [Use FOO as image loader (default is 'cairo')])], | |
105 [case "${withval}" in | |
106 ('cairo') image_loader="cairo" ;; | |
107 ('imlib2') image_loader="imlib2" ;; | |
108 ('no') image_loader="none" ;; | |
109 (*) AC_MSG_ERROR([bad value ${withval} for --with-image-loader]) | |
110 ;; | |
111 esac], [image_loader="cairo"]) | |
579
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
544
diff
changeset
|
112 |
1067 | 113 xshm=false |
114 [if [ x"${backend}" = x"X" ]; then ] | |
694
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
654
diff
changeset
|
115 AC_ARG_ENABLE([xshm], |
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
654
diff
changeset
|
116 [AS_HELP_STRING([--disable-xshm],[Turn off XSHM supporting])], |
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
654
diff
changeset
|
117 [case "${enableval}" in |
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
654
diff
changeset
|
118 (yes) xshm=true ;; |
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
654
diff
changeset
|
119 (no) xshm=false ;; |
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
654
diff
changeset
|
120 (*) AC_MSG_ERROR([bad value ${enableval} for --disable-xshm]) ;; |
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
654
diff
changeset
|
121 esac], [xshm=true]) |
579
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
544
diff
changeset
|
122 [fi] |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
123 |
1067 | 124 [if [ x"${graphic_engine}" = x"skia" ]; then ] |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
125 AC_DEFINE([SKIA_GRAPH_ENGINE]) |
1067 | 126 [elif [ x"${graphic_engine}" = x"openvg" ]; then ] |
127 AC_DEFINE([OPENVG_GRAPH_ENGINE]) | |
128 [elif [ x"${graphic_engine}" = x"dfb" ]; then ] | |
129 AC_DEFINE([DFB_GRAPH_ENGINE]) | |
464
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
440
diff
changeset
|
130 [else] |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
131 AC_DEFINE([CAIRO_GRAPH_ENGINE]) |
464
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
440
diff
changeset
|
132 [fi] |
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
440
diff
changeset
|
133 |
1067 | 134 AM_CONDITIONAL([SKIA_GRAPH_ENGINE], [test x"${graphic_engine}" = x"skia"]) |
135 AM_CONDITIONAL([OPENVG_GRAPH_ENGINE], [test x"${graphic_engine}" = x"openvg"]) | |
136 AM_CONDITIONAL([DFB_GRAPH_ENGINE], [test x"${graphic_engine}" = x"dfb"]) | |
137 AM_CONDITIONAL([CAIRO_GRAPH_ENGINE], [test x"${graphic_engine}" = x"cairo"]) | |
628
e50c4e111698
Disable mbaf for OpenVG
Thinker K.F. Li <thinker@branda.to>
parents:
627
diff
changeset
|
138 AM_CONDITIONAL([MBAF], [test x"$mbaf" = xtrue]) |
579
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
544
diff
changeset
|
139 |
543
7630dac0a104
Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
477
diff
changeset
|
140 AC_ARG_ENABLE([nodejs], |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
141 [AS_HELP_STRING([--enable-nodejs],[Turn on nodejs support])], |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
142 [case "${enableval}" in |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
143 (yes) nodejs=true ;; |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
144 (no) nodejs=false ;; |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
145 (*) AC_MSG_ERROR([bad value ${enableval} for --enable-nodejs]) ;; |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
146 esac],[nodejs=false]) |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
147 |
543
7630dac0a104
Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
477
diff
changeset
|
148 [if [ x"${nodejs}" = xtrue ]; then ] |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
149 AC_PATH_PROG([NODE_WAF], [node-waf]) |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
150 AC_CHECK_PROG([has_node], [node], [true], [false]) |
543
7630dac0a104
Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
477
diff
changeset
|
151 [fi] |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
152 |
543
7630dac0a104
Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
477
diff
changeset
|
153 AM_CONDITIONAL([NODEJS], [test x"${nodejs}-${has_node}" = xtrue-true]) |
7630dac0a104
Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
477
diff
changeset
|
154 |
464
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
440
diff
changeset
|
155 # Define AM and AC variable for sh_text |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
156 |
1067 | 157 AM_CONDITIONAL([SH_TEXT], |
158 [test x$sh_text = xtrue -a x"${graphic_engine}" = x"cairo"]) | |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
159 |
1067 | 160 [if [ x"${sh_text}" = xtrue -a x"${graphic_engine}" = x"cairo" ]; then] |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
161 AC_DEFINE([SH_TEXT]) |
464
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
440
diff
changeset
|
162 [fi] |
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
440
diff
changeset
|
163 |
654
21f944e79b19
Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
633
diff
changeset
|
164 # Define AM and AC variable for display backend |
21f944e79b19
Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
633
diff
changeset
|
165 |
1067 | 166 AM_CONDITIONAL([X_BACKEND], |
167 [test x$backend = x'X' -a x"${graphic_engine}" = x"cairo"]) | |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
168 |
1067 | 169 [if [ x"${backend}" = x'X' -a x"${graphic_engine}" = x"cairo" ]; then] |
654
21f944e79b19
Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
633
diff
changeset
|
170 AC_DEFINE([X_BACKEND]) |
21f944e79b19
Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
633
diff
changeset
|
171 [fi] |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
172 |
1067 | 173 AM_CONDITIONAL([DFB_BACKEND], |
174 [test x$backend = x'dfb' -a x"${graphic_engine}" = x"cairo"]) | |
654
21f944e79b19
Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
633
diff
changeset
|
175 |
1067 | 176 [if [ x"${backend}" = x'dfb' -a x"${graphic_engine}" = x"cairo" ]; then] |
654
21f944e79b19
Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
633
diff
changeset
|
177 AC_DEFINE([DFB_BACKEND]) |
464
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
440
diff
changeset
|
178 [fi] |
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
440
diff
changeset
|
179 |
1067 | 180 AM_CONDITIONAL([CAIRO_IMG_LOADER], |
181 [test x"${image_loader}" = x"cairo"]) | |
182 | |
183 [if [ x"${image_loader}" = x"cairo" ]; then] | |
184 AC_DEFINE([CAIRO_IMG_LOADER]) | |
185 [if [ x"${graphic_engine}" != x"cairo" ]; then] | |
186 AC_MSG_ERROR([bad value cairo for --with-image-loader while value of --with-graphic-engine is not cairo]) | |
187 [fi] | |
188 [fi] | |
694
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
654
diff
changeset
|
189 |
1067 | 190 AM_CONDITIONAL([IMLIB2_IMG_LOADER], |
191 [test x"${image_loader}" = x"imlib2"]) | |
192 | |
193 [if [ x"${image_loader}" = x"imlib2" ]; then] | |
194 AC_DEFINE([IMLIB2_IMG_LOADER]) | |
195 [fi] | |
196 | |
197 AM_CONDITIONAL([XSHM], | |
198 [test x"${xshm}" = xtrue -a x"${graphic_engine}" = x"cairo" -a x$backend = x'X']) | |
199 | |
200 [if [ x"${xshm}" = xtrue -a x"${graphic_engine}" = x"cairo" -a x$backend = x'X' ]; then] | |
694
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
654
diff
changeset
|
201 AC_DEFINE([XSHM]) |
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
654
diff
changeset
|
202 [fi] |
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
654
diff
changeset
|
203 |
464
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
440
diff
changeset
|
204 # Checks for libraries. |
1067 | 205 [if [ x"${graphic_engine}" = x"openvg" ]; then] |
1073
d09f603438d8
Merge the work of improvement for graphic engine of openvg branch
Thinker K.F. Li <thinker@codemud.net>
parents:
1067
diff
changeset
|
206 AC_CHECK_HEADERS([EGL/egl.h],, [AC_MSG_ERROR([can not find EGL/egl.h])]) |
579
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
544
diff
changeset
|
207 [fi] |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
208 |
1067 | 209 [if [ x"${image_loader}" = x"imlib2" ]; then] |
603
39d27911c3ae
Remove mbe_image_surface_create_for_data()
Thinker K.F. Li <thinker@branda.to>
parents:
601
diff
changeset
|
210 PKG_CHECK_MODULES([imlib2], [imlib2 >= 1.4.1], , AC_MSG_ERROR([imlib2 >= 1.4.1 not found])) |
1067 | 211 [fi] |
212 | |
213 [if [ x"${graphic_engine}" = x"cairo" ]; then] | |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
214 PKG_CHECK_MODULES([cairo], [cairo >= 1.6], , AC_MSG_ERROR([cairo >= 1.6 not found])) |
918
92a97858c7e3
Fix the error message when pangocairo is not present.
pingooo
parents:
694
diff
changeset
|
215 #PKG_CHECK_MODULES([cairo2], [cairo2 >= 2.0], , AC_MSG_ERROR([cairo2 >= 2.0 not found])) |
633
6f71f1b8e4e7
Let compilation on SMP8655 succeeded.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
623
diff
changeset
|
216 [if [ x"${sh_text}" = xtrue ]; then] |
920 | 217 PKG_CHECK_MODULES([pangocairo], [pangocairo >= 1.0], , AC_MSG_ERROR([pangocairo >= 1.0 not found: use --disable-sh_text to configure without pangocairo.])) |
633
6f71f1b8e4e7
Let compilation on SMP8655 succeeded.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
623
diff
changeset
|
218 [fi] |
464
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
440
diff
changeset
|
219 [fi] |
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
440
diff
changeset
|
220 |
623
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
221 AC_CONFIG_FILES([ |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
222 Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
223 libmbfly.pc |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
224 libmbfly-uninstalled.pc |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
225 examples/Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
226 examples/calculator/Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
227 examples/svg2code_ex/Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
228 examples/tank/Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
229 examples/drag/Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
230 examples/dynamic/Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
231 examples/menu/Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
232 src/Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
233 include/Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
234 inkscape/Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
235 nodejs/Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
236 tools/Makefile |
ae787bcb475a
Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
544
diff
changeset
|
237 ]) |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
238 |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
239 AH_TEMPLATE([SH_TEXT],[Enable sh_text object]) |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
240 AH_TEMPLATE([SH_STEXT],[Enable sh_stext object]) |
466
cd6f57b9b104
Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents:
465
diff
changeset
|
241 AH_TEMPLATE([SKIA_GRAPH_ENGINE], [Enable Skia Graphic Engine]) |
579
e2c9117b1e12
Add an option to enable OpenVG graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
544
diff
changeset
|
242 AH_TEMPLATE([OPENVG_GRAPH_ENGINE], [Enable OpenVG Graphic Engine]) |
466
cd6f57b9b104
Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents:
465
diff
changeset
|
243 AH_TEMPLATE([CAIRO_GRAPH_ENGINE], [Enable Cairo Graphic Engine]) |
1067 | 244 AH_TEMPLATE([DFB_GRAPH_ENGINE], [Enable DirectFB Graphic Engine]) |
245 AH_TEMPLATE([CAIRO_IMG_LOADER], [Enable Cairo Image Loader]) | |
246 AH_TEMPLATE([IMLIB2_IMG_LOADER], [Enable Imlib2 Image Loader]) | |
654
21f944e79b19
Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
633
diff
changeset
|
247 AH_TEMPLATE([X_BACKEND], [Enable X backend]) |
21f944e79b19
Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
633
diff
changeset
|
248 AH_TEMPLATE([DFB_BACKEND], [Enable DirectFB backend]) |
694
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
654
diff
changeset
|
249 AH_TEMPLATE([XSHM], [Enable XSHM]) |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
250 |
169 | 251 AC_OUTPUT |