Mercurial > MadButterfly
annotate configure.ac @ 435:2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Since sh_text depends on pango, and we want a version of MadButterfly
without Pango (lite version), we make sh_text and sh_stext optional.
User can choice which one to enable.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 29 Jul 2009 20:22:36 +0800 |
parents | 7f7855df2af0 |
children | dae45d3c27a6 |
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]) |
169 | 7 AC_CONFIG_HEADER([config.h]) |
8 AM_INIT_AUTOMAKE([foreign]) | |
9 | |
10 # Checks for programs. | |
11 AC_PROG_CC | |
182
7d1497608c2f
Polish scripts of GNU Build System.
"Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>"
parents:
178
diff
changeset
|
12 LT_INIT |
184
13c1d49c198b
Add AC_PROG_LIBTOOL to make older libtool compatible.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
182
diff
changeset
|
13 AC_PROG_LIBTOOL |
169 | 14 |
15 # Checks for libraries. | |
401
271f88e7e2a6
Change required cairo version back to 1.6
john.cylee@gmail.com
parents:
351
diff
changeset
|
16 PKG_CHECK_MODULES([cairo], [cairo >= 1.6], , AC_MSG_ERROR([cairo >= 1.6 not found])) |
408
7f7855df2af0
Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents:
402
diff
changeset
|
17 PKG_CHECK_MODULES([pangocairo], [pangocairo >= 1.0], , AC_MSG_ERROR([pangocairo >= 1.0 not found])) |
169 | 18 |
19 # Checks for header files. | |
20 AC_PATH_X | |
21 AC_HEADER_STDC | |
22 AC_CHECK_HEADERS([stdint.h stdlib.h string.h sys/time.h unistd.h]) | |
23 | |
24 # Checks for typedefs, structures, and compiler characteristics. | |
25 AC_C_CONST | |
26 AC_TYPE_SIZE_T | |
27 AC_HEADER_TIME | |
28 AC_STRUCT_TM | |
29 AC_TYPE_UINT32_T | |
30 AC_TYPE_UINT64_T | |
31 | |
32 # Checks for library functions. | |
33 AC_FUNC_MALLOC | |
34 AC_FUNC_REALLOC | |
35 AC_FUNC_SELECT_ARGTYPES | |
36 AC_CHECK_FUNCS([gettimeofday memset select sqrt strdup]) | |
37 | |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
38 AC_ARG_ENABLE([testcase], |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
39 [--enable-testcase Turn on sh_text], |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
40 [case "${enableval}" in |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
41 yes) testcase=true ;; |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
42 no) testcase=false ;; |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
43 *) AC_MSG_ERROR([bad value ${enableval} for --enable-testcase]) ;; |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
44 esac],[testcase=false]) |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
45 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
|
46 |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
47 AC_ARG_ENABLE([sh_text], |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
48 [--disable-sh_text Turn off sh_text], |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
49 [case "${enableval}" in |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
50 yes) sh_text=true ;; |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
51 no) sh_text=false ;; |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
52 *) AC_MSG_ERROR([bad value ${enableval} for --disable-sh_text]) ;; |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
53 esac],[sh_text=true]) |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
54 AM_CONDITIONAL([SH_TEXT], [test x$sh_text = xtrue]) |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
55 [if [ x"${sh_text}" = xtrue ]; then] |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
56 AC_DEFINE([SH_TEXT]) |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
57 [fi] |
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], |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
60 [--disable-sh_stext Turn off sh_stext], |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
61 [case "${enableval}" in |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
62 yes) sh_stext=true ;; |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
63 no) sh_stext=false ;; |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
64 *) AC_MSG_ERROR([bad value ${enableval} for --disable-sh_stext]) ;; |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
65 esac],[sh_stext=true]) |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
66 AM_CONDITIONAL([SH_STEXT], [test x$sh_stext = xtrue]) |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
67 [if [ x"${sh_stext}" = xtrue ]; then] |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
68 AC_DEFINE([SH_STEXT]) |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
69 [fi] |
408
7f7855df2af0
Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents:
402
diff
changeset
|
70 |
169 | 71 AC_CONFIG_FILES([Makefile |
72 libmbfly.pc | |
351
4ae9888bbde6
Added libmbfly-uninstalled.pc.in to compile libmbfly-based application without installation of library
Ben Lau <xbenlau@gmail.com>
parents:
296
diff
changeset
|
73 libmbfly-uninstalled.pc |
178 | 74 examples/Makefile |
75 examples/calculator/Makefile | |
76 examples/svg2code_ex/Makefile | |
188
a7358d9127c8
autotoolize examples/tank
Thinker K.F. Li <thinker@branda.to>
parents:
185
diff
changeset
|
77 examples/tank/Makefile |
200 | 78 examples/drag/Makefile |
296
2e97e8082d83
* Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
280
diff
changeset
|
79 examples/dynamic/Makefile |
2e97e8082d83
* Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
280
diff
changeset
|
80 examples/menu/Makefile |
174
9008ac31efbd
Install scripts and M4 macros in tools/ sub-directory.
Thinker K.F. Li <thinker@branda.to>
parents:
169
diff
changeset
|
81 src/Makefile |
185
c7e5b8779bb5
Move header files into include/mb/ subdirectory and remove symlink 'mb'.
Thinker K.F. Li <thinker@branda.to>
parents:
184
diff
changeset
|
82 include/Makefile |
256
cac9ad3df633
* use Autotool to install inkscape ext. of MadButterfly ( experimental! )
"Mat <MatLinuxer2@gmail.com>"
parents:
201
diff
changeset
|
83 inkscape/Makefile |
174
9008ac31efbd
Install scripts and M4 macros in tools/ sub-directory.
Thinker K.F. Li <thinker@branda.to>
parents:
169
diff
changeset
|
84 tools/Makefile]) |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
85 |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
86 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
|
87 AH_TEMPLATE([SH_STEXT],[Enable sh_stext object]) |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
408
diff
changeset
|
88 |
169 | 89 AC_OUTPUT |