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${exec_prefix}" = "xNONE"; then
20 if test "x${prefix}" = "xNONE"; then
21 bindir="${ac_default_prefix}/bin";
23 bindir="${prefix}/bin";
26 if test "x${prefix}" = "xNONE"; then
27 bindir="${ac_default_prefix}/bin";
29 bindir="${prefix}/bin";
33 if test "x${exec_prefix}" = "xNONE"; then
34 if test "x${prefix}" = "xNONE"; then
35 libdir="${ac_default_prefix}/lib";
37 libdir="${prefix}/lib";
40 if test "x${prefix}" = "xNONE"; then
41 libdir="${ac_default_prefix}/lib";
43 libdir="${prefix}/lib";
47 dnl Set PACKAGE_DATA_DIR in config.h.
48 if test "x${datadir}" = 'x${prefix}/share'; then
49 if test "x${prefix}" = "xNONE"; then
50 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}", [Package Data Directory])
52 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", [Package Data Directory])
55 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}", [Package 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])
87 VSTART=`echo $v | awk -F_ '{printf("%s", $1);}'`
88 V1=`echo $VSTART | awk -F\. '{printf("%s", $1);}'`
89 V2=`echo $VSTART | awk -F\. '{printf("%s", $2);}'`
90 V3=`echo $VSTART | awk -F\. '{printf("%s", $3);}'`
92 VEND=`echo $v | awk -F_ '{printf("%s", $2);}'`
93 if test -n "$VEND"; then
94 V4=`echo $VEND | sed s/pre//`
97 V2=$(( $V2 * 10000 ));
98 V1=$(( $V1 * 1000000 ));
99 V=$(( $V4 + $V3 + $V2 + $V1 ));
104 AC_ARG_WITH(eet-config,
105 [ --with-eet-config=EET_CONFIG use eet-config specified ],
108 echo "using "$EET_CONFIG" for eet-config";
110 if [ test -z "$EET_CONFIG" ]; then
112 AC_PATH_PROG(EET_CONFIG, $PROG, "", $PATH)
117 AC_ARG_WITH(evas-config,
118 [ --with-evas-config=EVAS_CONFIG use evas-config specified ],
120 EVAS_CONFIG=$withval;
121 echo "using "$EVAS_CONFIG" for evas-config";
123 if [ test -z "$EVAS_CONFIG" ]; then
125 AC_PATH_PROG(EVAS_CONFIG, $PROG, "", $PATH)
130 AC_ARG_WITH(edje-config,
131 [ --with-edje-config=EDJE_CONFIG use edje-config specified ],
133 EDJE_CONFIG=$withval;
134 echo "using "$EDJE_CONFIG" for edje-config";
136 if [ test -z "$EDJE_CONFIG" ]; then
138 AC_PATH_PROG(EDJE_CONFIG, $PROG, "", $PATH)
143 AC_ARG_WITH(ecore-config,
144 [ --with-ecore-config=ECORE_CONFIG use ecore-config specified ],
146 ECORE_CONFIG=$withval;
147 echo "using "$ECORE_CONFIG" for ecore-config";
149 if [ test -z "$ECORE_CONFIG" ]; then
151 AC_PATH_PROG(ECORE_CONFIG, $PROG, "", $PATH)
156 AC_ARG_WITH(embryo-config,
157 [ --with-embryo-config=EMBRYO_CONFIG use embryo-config specified ],
159 EMBRYO_CONFIG=$withval;
160 echo "using "$EMBRYO_CONFIG" for embryo-config";
162 if [ test -z "$EMBRYO_CONFIG" ]; then
163 PROG="embryo-config";
164 AC_PATH_PROG(EMBRYO_CONFIG, $PROG, "", $PATH)
169 AC_ARG_WITH(xine-config,
170 [ --with-xine-config=XINE_CONFIG use xine-config specified ],
172 XINE_CONFIG=$withval;
173 echo "using "$XINE_CONFIG" for xine-config";
175 if [ test -z "$XINE_CONFIG" ]; then
177 AC_PATH_PROG(XINE_CONFIG, $PROG, "", $PATH)
182 V=`$ECORE_CONFIG --version`
186 if test $VV -lt $VVM; then
187 echo "Error. Ecore is not at least "$VM". It is "$V". Abort."
191 V=`$EVAS_CONFIG --version`
195 if test $VV -lt $VVM; then
196 echo "Error. Evas is not at least "$VM". It is "$V". Abort."
200 V=`$EDJE_CONFIG --version`
204 if test $VV -lt $VVM; then
205 echo "Error. Edje is not at least "$VM". It is "$V". Abort."
209 V=`$XINE_CONFIG --version`
213 if test $VV -lt $VVM; then
214 echo "Error. Xine is not at least "$VM". It is "$V". Abort."
218 my_cflags=`$EVAS_CONFIG --cflags`" "`$ECORE_CONFIG --cflags`
219 my_libs=`$EVAS_CONFIG --libs`" "`$ECORE_CONFIG --libs`
223 edje_cflags=`$EDJE_CONFIG --cflags`
224 edje_libs=`$EDJE_CONFIG --libs`
225 AC_SUBST(edje_cflags)
228 xine_cflags=`$XINE_CONFIG --cflags`
229 xine_libs=`$XINE_CONFIG --libs`
230 xine_plugins=`$XINE_CONFIG --plugindir`
232 AC_SUBST(xine_cflags)
234 AC_SUBST(xine_plugins)
236 AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
237 AC_SUBST(dlopen_libs)
239 requirements="eet evas ecore edje libxine"
240 AC_SUBST(requirements)
248 src/modules/xine/Makefile
253 chmod +x emotion-config