1 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [1])
4 m4_define([v_min], [0])
5 m4_define([v_mic], [0])
6 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
7 m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
8 m4_define([lt_rev], m4_eval(v_maj + v_min))
9 m4_define([lt_cur], v_mic)
10 m4_define([lt_age], v_min)
11 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
12 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14 AC_INIT([edje-multisense-plugin], [v_ver])
16 AC_CONFIG_SRCDIR([configure.ac])
17 AC_CONFIG_MACRO_DIR([m4])
22 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
23 AM_CONFIG_HEADER([config.h])
24 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
27 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
28 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
31 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
32 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
33 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
34 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
35 AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
36 AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
37 AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
38 AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
39 version_info="lt_rev:lt_cur:lt_age"
41 AC_SUBST(version_info)
42 AC_SUBST(release_info)
43 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
44 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
48 AC_DEFINE_UNQUOTED([SHARED_LIB_SUFFIX], ["$shrext_cmds"], [Suffix for shared objects])
52 ### Default options with respect to host
56 MODULE_ARCH="$host_os-$host_cpu"
61 MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
67 requirement_edje_multisense_plugin=""
70 AC_DEFINE_UNQUOTED(MODULE_ARCH, "${MODULE_ARCH}", "Module architecture")
72 ### Checks for programs
78 # Check whether pkg-config supports Requires.private
80 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
81 pkgconfig_requires_private="Requires.private"
83 pkgconfig_requires_private="Requires"
85 AC_SUBST(pkgconfig_requires_private)
87 AC_ARG_ENABLE(gcc-werror,
88 AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles]))
90 dnl Use -Wall if we have gcc.
92 if test "x$ac_cv_prog_gcc" = xyes ; then
93 CFLAGS="$CFLAGS -Wall"
95 if test x$enable_gcc_werror = "xyes" ; then
96 CFLAGS="$CFLAGS -Werror"
100 # Dependencies for the library
101 PKG_CHECK_MODULES([MINIMAL],
107 PKG_CHECK_MODULES([MULTISENSE_PLUGIN],
114 requirement_edje_multisense_plugin="edje >= 1.0.0 mm-sound >= 1.0 ${requirement_edje_multisense_plugin}"
116 AC_DEFINE(EAPI, __attribute__ ((visibility("default"))), "Public API Visibility")
119 PKG_CHECK_MODULES(LIBREMIX, remix >= 0.2.4,
120 HAVE_LIB_REMIX="yes", HAVE_LIB_REMIX="no")
122 if test "$HAVE_LIB_REMIX" = "yes" ; then
123 AC_DEFINE([HAVE_LIB_REMIX], [], [Define if libremix version found])
124 requirement_edje_multisense_plugin="remix >= 0.2.4 ${requirement_edje_multisense_plugin}"
125 PACKAGE_PLUGIN_DIR=`pkg-config --variable=libdir remix`"/remix"
126 AC_SUBST(PACKAGE_PLUGIN_DIR)
127 AC_DEFINE_UNQUOTED(PACKAGE_PLUGIN_DIR, "$PACKAGE_PLUGIN_DIR", [Set the plugin directory for remix])
128 AC_DEFINE(__REMIX_PLUGIN__, 1, "Set to REMIX Plugin type")
130 PACKAGE_PLUGIN_DIR=""
132 AM_CONDITIONAL(HAVE_LIB_REMIX, test "x${HAVE_LIB_REMIX}" = xyes)
134 MULTISENSE_PLUGIN_CFLAGS="${MULTISENSE_PLUGIN_CFLAGS}"
135 MULTISENSE_PLUGIN_LIBS="${MULTISENSE_PLUGIN_LIBS}"
137 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.21,
138 HAVE_LIBSNDFILE1="yes", HAVE_LIBSNDFILE1="no")
140 if test "$HAVE_LIBSNDFILE1" = "yes" ; then
141 AC_DEFINE([HAVE_LIBSNDFILE1], [], [Define if libsndfile version 1 found])
142 AC_SUBST(SNDFILE_LIBS)
143 AC_SUBST(SNDFILE_CFLAGS)
145 AC_CHECK_LIB(sndfile, sf_open, HAVE_LIBSNDFILE1="maybe")
146 if test "$HAVE_LIBSNDFILE1" = "maybe" ; then
149 *** libsndfile-1.0.21 or greater seems to exist on your system, however
150 *** the pkg-config tool cannot find its build information.
152 *** Please set your PKG_CONFIG_PATH environment variable to include the
153 *** directory in which sndfile.pc was installed. For example, sndfile.pc
154 *** is installed in /usr/local/lib/pkgconfig by default; if that is the
157 *** export PKG_CONFIG_PATH="\$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
159 *** then run this ./configure again. If you configured libsndfile with a
160 *** different --prefix option, replace /usr/local above with that prefix.
165 AM_CONDITIONAL(HAVE_LIBSNDFILE1, test "x${HAVE_LIBSNDFILE1}" = xyes)
167 ### Checks for header files
168 AC_CHECK_HEADERS([locale.h])
170 ### Checks for compiler characteristics
178 MULTISENSE_PLUGIN_CFLAGS="${MULTISENSE_PLUGIN_CFLAGS} -D_WIN32_WCE=0x0420"
181 MULTISENSE_PLUGIN_CFLAGS="${MULTISENSE_PLUGIN_CFLAGS} -mwin32 -D_WIN32_WCE=0x0420"
186 ### Checks for linker characteristics
187 lt_enable_auto_import=""
190 lt_enable_auto_import="-Wl,--enable-auto-import"
193 AC_SUBST(lt_enable_auto_import)
196 ### Checks for library functions
201 AC_DEFINE([HAVE_REALPATH], [1], [Define to 1 if you have the `realpath' function.])
204 AC_CHECK_FUNCS([realpath])
208 AC_SUBST(requirement_edje_multisense_plugin)
212 src/tizen_sound_player/Makefile
215 #####################################################################
219 echo "------------------------------------------------------------------------"
220 echo "$PACKAGE $VERSION"
221 echo "------------------------------------------------------------------------"
223 echo "Configuration Options Summary:"
225 echo "Compilation............: make (or gmake)"
226 echo " CPPFLAGS.............: $CPPFLAGS"
227 echo " CFLAGS...............: $CFLAGS"
228 echo " LDFLAGS..............: $LDFLAGS"
230 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
231 echo " prefix...............: $prefix"