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)
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${datadir}" = 'x${prefix}/share'; then
53 if test "x${prefix}" = "xNONE"; then
54 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}", [Package Data Directory])
56 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", [Package Data Directory])
59 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}", [Package Data Directory])
62 dnl Set PACKAGE_BIN_DIR in config.h.
63 if test "x${bindir}" = 'xNONE'; then
64 if test "x${prefix}" = "xNONE"; then
65 AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin", [Install Location for Executables])
67 AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin", [Install Location for Executables])
70 AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}", [Install Location for Executables])
73 dnl Set PACKAGE_LIB_DIR in config.h.
74 if test "x${libdir}" = 'xNONE'; then
75 if test "x${prefix}" = "xNONE"; then
76 AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib", [Install Location for Libraries])
78 AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib", [Install Location for Libraries])
81 AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}", [Install Location for Libraries])
84 dnl Set PACKAGE_SOURCE_DIR in config.h.
85 packagesrcdir=`cd $srcdir && pwd`
86 AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source Directory])
91 VSTART=`echo $v | awk -F_ '{printf("%s", $1);}'`
92 V1=`echo $VSTART | awk -F\. '{printf("%s", $1);}'`
93 V2=`echo $VSTART | awk -F\. '{printf("%s", $2);}'`
94 V3=`echo $VSTART | awk -F\. '{printf("%s", $3);}'`
96 VEND=`echo $v | awk -F_ '{printf("%s", $2);}'`
97 if test -n "$VEND"; then
98 V4=`echo $VEND | sed s/pre//`
101 V2=$(( $V2 * 10000 ));
102 V1=$(( $V1 * 1000000 ));
103 V=$(( $V4 + $V3 + $V2 + $V1 ));
108 AC_ARG_WITH(eet-config, [ --with-eet-config=EET_CONFIG use eet-config specified ],
109 [ EET_CONFIG=$withval;
110 echo "using "$EET_CONFIG" for eet-config";
112 if test -z "$EET_CONFIG"; then
114 AC_PATH_PROG(EET_CONFIG, $PROG, "", $PATH)
117 eet_cflags=`$EET_CONFIG --cflags`
118 eet_libs=`$EET_CONFIG --libs`
121 AC_ARG_WITH(evas-config, [ --with-evas-config=EVAS_CONFIG use evas-config specified ],
122 [ EVAS_CONFIG=$withval;
123 echo "using "$EVAS_CONFIG" for evas-config";
125 if test -z "$EVAS_CONFIG"; then
127 AC_PATH_PROG(EVAS_CONFIG, $PROG, "", $PATH)
130 evas_cflags=`$EVAS_CONFIG --cflags`
131 evas_libs=`$EVAS_CONFIG --libs`
134 AC_ARG_WITH(edje-config, [ --with-edje-config=EDJE_CONFIG use edje-config specified ],
135 [ EDJE_CONFIG=$withval;
136 echo "using "$EDJE_CONFIG" for edje-config";
138 if test -z "$EDJE_CONFIG"; then
140 AC_PATH_PROG(EDJE_CONFIG, $PROG, "", $PATH)
143 edje_cflags=`$EDJE_CONFIG --cflags`
144 edje_libs=`$EDJE_CONFIG --libs`
147 AC_ARG_WITH(ecore-config, [ --with-ecore-config=ECORE_CONFIG use ecore-config specified ],
148 [ ECORE_CONFIG=$withval;
149 echo "using "$ECORE_CONFIG" for ecore-config";
151 if test -z "$ECORE_CONFIG"; then
153 AC_PATH_PROG(ECORE_CONFIG, $PROG, "", $PATH)
156 ecore_cflags=`$ECORE_CONFIG --cflags`
157 ecore_libs=`$ECORE_CONFIG --libs`
160 AC_ARG_WITH(embryo-config, [ --with-embryo-config=EMBRYO_CONFIG use embryo-config specified ],
161 [ EMBRYO_CONFIG=$withval;
162 echo "using "$EMBRYO_CONFIG" for embryo-config";
164 if test -z "$EMBRYO_CONFIG"; then
165 PROG="embryo-config";
166 AC_PATH_PROG(EMBRYO_CONFIG, $PROG, "", $PATH)
169 embryo_cflags=`$EMBRYO_CONFIG --cflags`
170 embryo_libs=`$EMBRYO_CONFIG --libs`
173 AC_ARG_WITH(xine-config, [ --with-xine-config=XINE_CONFIG use xine-config specified ],
174 [ XINE_CONFIG=$withval;
175 echo "using "$XINE_CONFIG" for xine-config";
177 if test -z "$XINE_CONFIG"; then
179 AC_PATH_PROG(XINE_CONFIG, $PROG, "", $PATH)
182 xine_cflags=`$XINE_CONFIG --cflags`
183 xine_libs=`$XINE_CONFIG --libs`
186 V=`$ECORE_CONFIG --version`
187 if test -z "$V"; then
188 echo "Error. Ecore is not installed or $ECORE_CONFIG cannot be found. Abort."
194 if test $VV -lt $VVM; then
195 echo "Error. Ecore is not at least "$VM". It is "$V". Abort."
199 V=`$EVAS_CONFIG --version`
200 if test -z "$V"; then
201 echo "Error. Evas is not installed or $EVAS_CONFIG cannot be found. Abort."
207 if test $VV -lt $VVM; then
208 echo "Error. Evas is not at least "$VM". It is "$V". Abort."
212 V=`$EDJE_CONFIG --version`
213 if test -z "$V"; then
214 echo "Error. Edje is not installed or $EDJE_CONFIG cannot be found. Abort."
220 if test $VV -lt $VVM; then
221 echo "Error. Edje is not at least "$VM". It is "$V". Abort."
225 V=`$XINE_CONFIG --version`
226 if test -z "$V"; then
227 echo "Error. Xine is not installed or $XINE_CONFIG cannot be found. Abort."
233 if test $VV -lt $VVM; then
234 echo "Error. Xine is not at least "$VM". It is "$V". Abort."
238 my_cflags=`$EVAS_CONFIG --cflags`" "`$ECORE_CONFIG --cflags`
239 my_libs=`$EVAS_CONFIG --libs`" "`$ECORE_CONFIG --libs`
243 edje_cflags=`$EDJE_CONFIG --cflags`
244 edje_libs=`$EDJE_CONFIG --libs`
245 AC_SUBST(edje_cflags)
248 xine_cflags=`$XINE_CONFIG --cflags`
249 xine_libs=`$XINE_CONFIG --libs`
250 xine_plugins=`$XINE_CONFIG --plugindir`
252 AC_SUBST(xine_cflags)
254 AC_SUBST(xine_plugins)
256 AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
257 AC_SUBST(dlopen_libs)
259 requirements="eet evas ecore edje libxine"
260 AC_SUBST(requirements)
268 src/modules/xine/Makefile
273 chmod +x emotion-config