elm.vapi: major update; catch up with changes up to upstream rev 45522
[libeflvala.git] / configure.ac
blob0c4fd03b0460c8dfa5b7ce9ea0c4ef2d799acb9a
1 AC_INIT([libeflvala], [0.0.2.0], [mlauer@vanille-media.de], [libeflvala])
2 AC_CONFIG_SRCDIR([Makefile.am])
3 AC_CONFIG_HEADERS(config.h)
4 AM_INIT_AUTOMAKE([dist-bzip2])
5 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
7 AC_PROG_CC
8 AM_PROG_CC_C_O
9 AC_DISABLE_STATIC
10 AC_PROG_LIBTOOL
12 AC_PATH_PROG(VALAC, valac, valac)
13 AC_SUBST(VALAC)
15 AC_SUBST(CFLAGS)
16 AC_SUBST(CPPFLAGS)
17 AC_SUBST(LDFLAGS)
19 VALA_REQUIRED=0.7.7
20 EINA_REQUIRED=0.0.0
21 EVAS_REQUIRED=0.0.0
22 ECORE_REQUIRED=0.0.0
23 ELM_REQUIRED=0.0.0
24 GLIB_REQUIRED=2.18.0
25 DBUS_REQUIRED=1.1.1
26 DBUS_GLIB_REQUIRED=0.74
28 PKG_CHECK_MODULES(VALA,
29   vala-1.0 >= $VALA_REQUIRED)
31 PKG_CHECK_MODULES(DEPS,
32   dbus-1 >= $DBUS_REQUIRED
33   dbus-glib-1 >= $DBUS_GLIB_REQUIRED
34   eina-0 >= $EINA_REQUIRED
35   evas >= $EVAS_REQUIRED
36   ecore >= $ECORE_REQUIRED
37   elementary >= $ELM_REQUIRED
38   glib-2.0 >= $GLIB_REQUIRED
39   gobject-2.0 >= $GLIB_REQUIRED)
40 AC_SUBST(DEPS_CFLAGS)
41 AC_SUBST(DEPS_LIBS)
43 PKG_CHECK_MODULES(THREAD,
44   gthread-2.0 >= $GLIB_REQUIRED)
45 AC_SUBST(THREAD_CFLAGS)
46 AC_SUBST(THREAD_LIBS)
48 AC_ARG_WITH(edje-cc,
49 [  --with-edje-cc=PATH  specify a specific path to edje_cc],
51   v=$withval;
52   edje_cc=$v
53   echo "  Enlightenment edje_cc explicitly set to "$edje_cc;
54 ],[
55   edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
57 AC_SUBST(edje_cc)
60 # shall we compile the library? [default=yes]
61 AC_ARG_ENABLE(library,      [  --disable-library        skip building the eflvala library [[default=no]]])
62 AM_CONDITIONAL(MAKE_LIBRARY, test x$enable_library != xno)
63 AC_MSG_CHECKING([whether to compile the eflvala library])
64 if test "$enable_library" != no; then
65   AC_MSG_RESULT(yes)
66 else
67   AC_MSG_RESULT(no)
70 # shall we compile the examples? [default=yes]
71 AC_ARG_ENABLE(examples,      [  --disable-examples      skip building the examples [[default=no]]])
72 AM_CONDITIONAL(MAKE_EXAMPLES, test x$enable_examples != xno)
73 AC_MSG_CHECKING([whether to compile the example apps])
74 if test "$enable_examples" != no; then
75   AC_MSG_RESULT(yes)
76 else
77   AC_MSG_RESULT(no)
81 AC_CONFIG_FILES([
82   Makefile
83   data/Makefile
84   data/images/Makefile
85   data/objects/Makefile
86   eflvala/Makefile
87   vapi/Makefile
88   tests/Makefile
89   examples/Makefile
90   examples/eina/Makefile
91   examples/ecore/Makefile
92   examples/ecore-signals/Makefile
93   examples/ecore-glib/Makefile
94   examples/edje/Makefile
95   examples/elementary/Makefile
96   examples/library/Makefile
97   examples/library/mainloops/Makefile
98   examples/library/viewstates/Makefile
99   eflvala-1.0.pc])
101 AC_OUTPUT