library: start with better thread class
[libeflvala.git] / configure.ac
blob21e979d70680cd5481d640b89285c586296c0b3d
1 AC_INIT([libeflvala], [0.0.0.1], [mlauer@vanille-media.de], [libeflvala])
2 AC_CONFIG_SRCDIR([Makefile.am])
3 AC_CONFIG_HEADERS(config.h)
4 AM_INIT_AUTOMAKE([dist-bzip2])
6 AC_PROG_CC
7 AM_PROG_CC_C_O
8 AC_DISABLE_STATIC
9 AC_PROG_LIBTOOL
11 AC_PATH_PROG(VALAC, valac, valac)
12 AC_SUBST(VALAC)
14 AC_SUBST(CFLAGS)
15 AC_SUBST(CPPFLAGS)
16 AC_SUBST(LDFLAGS)
18 EVAS_REQUIRED=0.0.0
19 ECORE_REQUIRED=0.0.0
20 ELM_REQUIRED=0.0.0
21 GLIB_REQUIRED=2.18.0
23 PKG_CHECK_MODULES(DEPS,
24   evas >= $EVAS_REQUIRED
25   ecore >= $ECORE_REQUIRED
26   elementary >= $ELM_REQUIRED
27   glib-2.0 >= $GLIB_REQUIRED
28   gobject-2.0 >= $GLIB_REQUIRED)
29 AC_SUBST(DEPS_CFLAGS)
30 AC_SUBST(DEPS_LIBS)
32 PKG_CHECK_MODULES(THREAD,
33   gthread-2.0 >= $GLIB_REQUIRED)
34 AC_SUBST(THREAD_CFLAGS)
35 AC_SUBST(THREAD_LIBS)
37 AC_ARG_WITH(edje-cc,
38 [  --with-edje-cc=PATH  specify a specific path to edje_cc],
40   v=$withval;
41   edje_cc=$v
42   echo "  Enlightenment edje_cc explicitly set to "$edje_cc;
43 ],[
44   edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
46 AC_SUBST(edje_cc)
49 # shall we compile the library? [default=yes]
50 AC_ARG_ENABLE(library,      [  --disable-library        skip building the eflvala library [[default=no]]])
51 AM_CONDITIONAL(MAKE_LIBRARY, test x$enable_library != xno)
52 AC_MSG_CHECKING([whether to compile the eflvala library])
53 if test "$enable_library" != no; then
54   AC_MSG_RESULT(yes)
55 else
56   AC_MSG_RESULT(no)
58     
59 # shall we compile the examples? [default=yes]
60 AC_ARG_ENABLE(examples,      [  --disable-examples      skip building the examples [[default=no]]])
61 AM_CONDITIONAL(MAKE_EXAMPLES, test x$enable_examples != xno)
62 AC_MSG_CHECKING([whether to compile the example apps])
63 if test "$enable_examples" != no; then
64   AC_MSG_RESULT(yes)
65 else
66   AC_MSG_RESULT(no)
70 AC_CONFIG_FILES([
71   Makefile
72   data/Makefile
73   data/images/Makefile
74   data/objects/Makefile
75   eflvala/Makefile
76   vapi/Makefile
77   tests/Makefile
78   examples/Makefile
79   examples/vapi/Makefile
80   examples/library/Makefile
81   eflvala-1.0.pc])
83 AC_OUTPUT