1 dnl Process this file with autoconf to produce a configure script.
3 # get rid of that stupid cache mechanism
7 AM_INIT_AUTOMAKE(emotion, 0.0.1.004)
8 AM_CONFIG_HEADER(config.h)
19 if test "x${bindir}" = 'x${exec_prefix}/bin'; then
20 if test "x${exec_prefix}" = "xNONE"; then
21 if test "x${prefix}" = "xNONE"; then
22 bindir="${ac_default_prefix}/bin";
24 bindir="${prefix}/bin";
27 if test "x${prefix}" = "xNONE"; then
28 bindir="${ac_default_prefix}/bin";
30 bindir="${prefix}/bin";
35 if test "x${libdir}" = 'x${exec_prefix}/lib'; then
36 if test "x${exec_prefix}" = "xNONE"; then
37 if test "x${prefix}" = "xNONE"; then
38 libdir="${ac_default_prefix}/lib";
40 libdir="${prefix}/lib";
43 if test "x${prefix}" = "xNONE"; then
44 libdir="${ac_default_prefix}/lib";
46 libdir="${prefix}/lib";
51 dnl Set PACKAGE_DATA_DIR in config.h.
52 if test "x${prefix}" = "xNONE"; then
53 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}", [Shared Data Directory])
55 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", [Shared Data Directory])
58 dnl Set PACKAGE_BIN_DIR in config.h.
59 if test "x${bindir}" = 'xNONE'; then
60 if test "x${prefix}" = "xNONE"; then
61 AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin", [Install Location for Executables])
63 AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin", [Install Location for Executables])
66 AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}", [Install Location for Executables])
69 dnl Set PACKAGE_LIB_DIR in config.h.
70 if test "x${libdir}" = 'xNONE'; then
71 if test "x${prefix}" = "xNONE"; then
72 AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib", [Install Location for Libraries])
74 AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib", [Install Location for Libraries])
77 AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}", [Install Location for Libraries])
80 dnl Set PACKAGE_SOURCE_DIR in config.h.
81 packagesrcdir=`cd $srcdir && pwd`
82 AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source Directory])
84 PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9])
85 PKG_CHECK_MODULES(EDJE, [edje >= 0.5.0])
86 PKG_CHECK_MODULES(ECORE, [ecore >= 0.9.9 ecore-evas >= 0.9.9 ecore-job >= 0.9.9])
88 save_CPPFLAGS=$CPPFLAGS
89 CPPFLAGS="$CPPFLAGS $ECORE_CFLAGS"
90 AC_CHECK_HEADERS(Ecore_X.h Ecore_Fb.h)
91 CPPFLAGS=$save_CPPFLAGS
94 AC_HELP_STRING([--disable-xine],[disable xine support @<:@default=auto@:>@]),
95 [enable_xine=$enableval],[enable_xine=auto])
97 if test "$enable_xine" != "no" ; then
98 PKG_CHECK_MODULES(XINE, [libxine >= 1.1.1], [HAVE_XINE="yes"])
100 if test "$enable_xine$HAVE_XINE" = "yesno" ; then
101 AC_MSG_RESULT(xine not found)
104 AC_ARG_ENABLE(gstreamer,
105 AC_HELP_STRING([--disable-gstreamer],[disable gstreamer support @<:@default=auto@:>@]),
106 [enable_gstreamer=$enableval],[enable_gstreamer=auto])
109 if test "$enable_gstreamer" != "no" ; then
111 dnl Gstreamer version requirement
116 PKG_CHECK_MODULES(GST, \
117 gstreamer-$GST_MAJORMINOR >= $GST_REQS,
118 HAVE_GSTREAMER="yes",
121 PKG_CHECK_MODULES(GSTPLUG, \
122 gstreamer-plugins-base-$GST_MAJORMINOR >= $GSTPLUG_REQS,
126 AM_GST_ELEMENT_CHECK(
128 [HAVE_GSTFFMPEG="yes"],
129 [HAVE_GSTFFMPEG="no"])
131 AM_GST_ELEMENT_CHECK(
133 [HAVE_GSTCDIOCDDASRC="yes"],
134 [HAVE_GSTCDIOCDDASRC="no"])
136 if test "$enable_gstreamer$HAVE_GSTREAMER" = "yesno" ; then
137 AC_MSG_RESULT(gstreamer not found)
139 if test "$HAVE_GSTPLUG" = "no"; then
140 if test "$HAVE_GSTREAMER" = "no" ; then
143 AC_MSG_WARN([You should install gstreamer plugins and gst-ffmpeg to properly decode your video and audio files])
144 GSTPLUG_MSG="no (you should install gst-plugins-base and gst-ffmpeg)"
147 if test "$HAVE_GSTFFMPEG" = "no"; then
148 if test "$HAVE_GSTREAMER" = "no" ; then
151 AC_MSG_WARN([You should install gstreamer plugins and gst-ffmpeg to properly decode your video and audio files])
152 GSTPLUG_MSG="no (you should install gst-plugins-base and gst-ffmpeg)"
158 if test "$HAVE_GSTCDIOCDDASRC" = "no"; then
159 AC_MSG_WARN([You should install gstreamer-plugins-good and make sure that the cdiocddasrc element is installed])
160 GSTCDDA_MSG="no (you should install gst-plugins-good and the cdiocddasrc element)"
165 if test "$HAVE_XINE$HAVE_GSTREAMER" = "nono" ; then
166 AC_MSG_ERROR([Xine or Gstreamer must be installed to build emotion])
169 AM_CONDITIONAL([BUILD_XINE_MODULE], [test "$HAVE_XINE" = yes])
170 AM_CONDITIONAL([BUILD_GSTREAMER_MODULE], [test "$HAVE_GSTREAMER" = yes])
172 AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
173 AC_SUBST(dlopen_libs)
187 chmod +x emotion-config
191 #####################################################################
197 echo "------------------------------------------------------------------------"
198 echo "$PACKAGE $VERSION"
199 echo "------------------------------------------------------------------------"
201 echo "Configuration Options Summary:"
204 echo " Xine...............: $HAVE_XINE"
205 echo " Gstreamer..........: $HAVE_GSTREAMER"
206 echo " Gstreamer plugins..: $GSTPLUG_MSG"
207 echo " Gstreamer FFmpeg...: $HAVE_GSTFFMPEG"
208 echo " Gstreamer CDDA.....: $GSTCDDA_MSG"
210 echo " Compilation..........: make"
212 echo " Installation.........: make install"
214 echo " prefix.........: $prefix"
215 echo " binaries.......: $bindir"
216 echo " libraries......: $libdir"
217 echo " headers........: $includedir"