forked from enlightenment/efl
Use a macro to add a specific path for efl tools (edje_cc and eet, here)
See usage in efl_binary.m4 SVN revision: 51514
This commit is contained in:
parent
f54ec7ad85
commit
0f5c7a96f2
|
@ -180,17 +180,6 @@ PKG_CHECK_MODULES([ELEMENTARY],
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_ARG_WITH(eet-eet,
|
|
||||||
[ --with-eet-eet=PATH specify a specific path to eet utility],
|
|
||||||
[
|
|
||||||
v=$withval;
|
|
||||||
eet_eet=$v
|
|
||||||
echo " Elementary eet explicitly set to "$eet_eet;
|
|
||||||
],[
|
|
||||||
eet_eet=$(pkg-config --variable=prefix eet)/bin/eet
|
|
||||||
])
|
|
||||||
AC_SUBST(eet_eet)
|
|
||||||
|
|
||||||
requirement_elm="edje >= ${EDJE_VERSION} ecore-file >= 1.0.0 ecore-evas >= 1.0.0 ecore >= 1.0.0 evas >= 1.0.0 eet >= 1.4.0 eina >= 1.0.0 ${requirement_elm}"
|
requirement_elm="edje >= ${EDJE_VERSION} ecore-file >= 1.0.0 ecore-evas >= 1.0.0 ecore >= 1.0.0 evas >= 1.0.0 eet >= 1.4.0 eina >= 1.0.0 ${requirement_elm}"
|
||||||
|
|
||||||
have_elementary_x="no"
|
have_elementary_x="no"
|
||||||
|
@ -432,21 +421,13 @@ ELM_LIBINTL_H_DEF="#undef"
|
||||||
AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"])
|
AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"])
|
||||||
AC_SUBST(ELM_LIBINTL_H_DEF)
|
AC_SUBST(ELM_LIBINTL_H_DEF)
|
||||||
|
|
||||||
AC_ARG_WITH(edje-cc,
|
|
||||||
[ --with-edje-cc=PATH specify a specific path to edje_cc],
|
|
||||||
[
|
|
||||||
v=$withval;
|
|
||||||
edje_cc=$v
|
|
||||||
echo " Elementary edje_cc explicitly set to "$edje_cc;
|
|
||||||
],[
|
|
||||||
edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
|
|
||||||
])
|
|
||||||
AC_SUBST(edje_cc)
|
|
||||||
|
|
||||||
my_libs="-lm"
|
my_libs="-lm"
|
||||||
AC_SUBST(my_libs)
|
AC_SUBST(my_libs)
|
||||||
AC_SUBST(requirement_elm)
|
AC_SUBST(requirement_elm)
|
||||||
|
|
||||||
|
EFL_WITH_BIN([eet], [eet-eet], [eet])
|
||||||
|
EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
|
||||||
|
|
||||||
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
|
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
|
||||||
|
|
||||||
AC_OUTPUT([
|
AC_OUTPUT([
|
||||||
|
@ -499,6 +480,7 @@ echo " EFreet.............: ${have_elementary_efreet}"
|
||||||
echo " EWeather...........: ${have_elementary_eweather}"
|
echo " EWeather...........: ${have_elementary_eweather}"
|
||||||
echo " Ethumb.............: ${have_elementary_ethumb}"
|
echo " Ethumb.............: ${have_elementary_ethumb}"
|
||||||
echo
|
echo
|
||||||
|
echo " eet..................: ${eet_eet}"
|
||||||
echo " edje_cc..............: ${edje_cc}"
|
echo " edje_cc..............: ${edje_cc}"
|
||||||
echo
|
echo
|
||||||
echo "Compilation............: make (or gmake)"
|
echo "Compilation............: make (or gmake)"
|
||||||
|
|
|
@ -0,0 +1,71 @@
|
||||||
|
dnl Copyright (C) 2010 Vincent Torri <vtorri at univ-evry dot fr>
|
||||||
|
dnl That code is public domain and can be freely used or copied.
|
||||||
|
|
||||||
|
dnl Macro that check if a binary is built or not
|
||||||
|
|
||||||
|
dnl Usage: EFL_ENABLE_BIN(binary)
|
||||||
|
dnl Call AC_SUBST(BINARY_PRG) (BINARY is the uppercase of binary, - being tranformed into _)
|
||||||
|
dnl Define have_binary (- is tranformed into _)
|
||||||
|
dnl Define conditional BUILD_BINARY (BINARY is the uppercase of binary, - being tranformed into _)
|
||||||
|
|
||||||
|
AC_DEFUN([EFL_ENABLE_BIN],
|
||||||
|
[
|
||||||
|
|
||||||
|
m4_pushdef([UP], m4_translit([[$1]], [-a-z], [_A-Z]))dnl
|
||||||
|
m4_pushdef([DOWN], m4_translit([[$1]], [-A-Z], [_a-z]))dnl
|
||||||
|
|
||||||
|
have_[]m4_defn([DOWN])="yes"
|
||||||
|
|
||||||
|
dnl configure option
|
||||||
|
|
||||||
|
AC_ARG_ENABLE([$1],
|
||||||
|
[AC_HELP_STRING([--disable-$1], [disable building of ]DOWN)],
|
||||||
|
[
|
||||||
|
if test "x${enableval}" = "xyes" ; then
|
||||||
|
have_[]m4_defn([DOWN])="yes"
|
||||||
|
else
|
||||||
|
have_[]m4_defn([DOWN])="no"
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether to build ]DOWN[ binary])
|
||||||
|
AC_MSG_RESULT([$have_[]m4_defn([DOWN])])
|
||||||
|
|
||||||
|
if test "x$have_[]m4_defn([DOWN])" = "xyes"; then
|
||||||
|
UP[]_PRG=DOWN[${EXEEXT}]
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(UP[]_PRG)
|
||||||
|
|
||||||
|
AM_CONDITIONAL(BUILD_[]UP, test "x$have_[]m4_defn([DOWN])" = "xyes")
|
||||||
|
|
||||||
|
AS_IF([test "x$have_[]m4_defn([DOWN])" = "xyes"], [$2], [$3])
|
||||||
|
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl Macro that check if a binary is built or not
|
||||||
|
|
||||||
|
dnl Usage: EFL_WITH_BIN(package, binary, default_value)
|
||||||
|
dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being tranformed into _ by default, or the value set by the user)
|
||||||
|
|
||||||
|
AC_DEFUN([EFL_WITH_BIN],
|
||||||
|
[
|
||||||
|
|
||||||
|
m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl
|
||||||
|
|
||||||
|
dnl configure option
|
||||||
|
|
||||||
|
AC_ARG_WITH([$2],
|
||||||
|
[AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=$3@:>@])],
|
||||||
|
[_efl_with_binary=${withval}],
|
||||||
|
[_efl_with_binary=$(pkg-config --variable=prefix $1)/bin/$3])
|
||||||
|
|
||||||
|
DOWN=${_efl_with_binary}
|
||||||
|
AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])
|
||||||
|
|
||||||
|
with_binary_[]m4_defn([DOWN])=${_efl_with_binary}
|
||||||
|
|
||||||
|
AC_SUBST(DOWN)
|
||||||
|
|
||||||
|
])
|
Loading…
Reference in New Issue