autotools: add supported for deprecated option.

This commit is contained in:
Cedric Bail 2014-02-21 22:13:00 +09:00
parent dae9eacb14
commit 868202349a
2 changed files with 24 additions and 5 deletions

View File

@ -143,6 +143,7 @@ AC_ARG_WITH([dbus-services],
[dbusservicedir=$withval]) [dbusservicedir=$withval])
AC_SUBST(dbusservicedir) AC_SUBST(dbusservicedir)
efl_deprecated_option="no"
EFL_WITH_BIN([edje], [edje-cc]) EFL_WITH_BIN([edje], [edje-cc])
@ -4367,3 +4368,15 @@ if test "x$prefix" != "x/usr"; then
echo "" echo ""
echo "#-------------------------------------------------------------------#" echo "#-------------------------------------------------------------------#"
fi fi
if test "x${efl_deprecated_option}" = "xyes"; then
echo ""
echo "#-------------------------------------------------------------------#"
echo "##==-- ALERT --==##"
echo "#-------------------------------------------------------------------#"
echo ""
echo " Your build script is using a deprecated option. It will get b0rken"
echo "with the next release of EFL. You better update it now than later."
echo ""
echo "#-------------------------------------------------------------------#"
fi

View File

@ -10,17 +10,23 @@ m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl
m4_pushdef([UP], m4_translit([[$2]], [-a-z], [_A-Z]))dnl m4_pushdef([UP], m4_translit([[$2]], [-a-z], [_A-Z]))dnl
dnl configure option dnl configure option
_efl_with_binary=""
_efl_binary_define="no"
AC_ARG_WITH([$2], AC_ARG_WITH([$2],
[AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])], [AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])],
[ [
_efl_with_binary=${withval} _efl_with_binary=${withval}
_efl_binary_define="yes" _efl_binary_define="yes"
], ], [])
AC_ARG_WITH([bin-$2],
[AC_HELP_STRING([--with-bin-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@ DEPRECATED])],
[ [
_efl_with_binary="" _efl_with_binary=${withval}
_efl_binary_define="no" _efl_binary_define="yes"
] efl_deprecated_option="yes"
) ], [])
DOWN=${_efl_with_binary} DOWN=${_efl_with_binary}
AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}]) AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])