autotools: add supported for deprecated option.
authorCedric Bail <cedric.bail@free.fr>
Fri, 21 Feb 2014 13:13:00 +0000 (22:13 +0900)
committerCedric Bail <cedric.bail@free.fr>
Fri, 21 Feb 2014 13:13:00 +0000 (22:13 +0900)
configure.ac
m4/efl_binary.m4

index 3ef01b0..17fdc20 100644 (file)
@@ -143,6 +143,7 @@ AC_ARG_WITH([dbus-services],
    [dbusservicedir=$withval])
 AC_SUBST(dbusservicedir)
 
+efl_deprecated_option="no"
 EFL_WITH_BIN([edje], [edje-cc])
 
 
@@ -4367,3 +4368,15 @@ if test "x$prefix" != "x/usr"; then
   echo ""
   echo "#-------------------------------------------------------------------#"
 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
index 2d0aea7..a86a41d 100644 (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
 dnl configure option
 
+_efl_with_binary=""
+_efl_binary_define="no"
+
 AC_ARG_WITH([$2],
    [AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])],
    [
     _efl_with_binary=${withval}
     _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_binary_define="no"
-   ]
-)
+    _efl_with_binary=${withval}
+    _efl_binary_define="yes"
+    efl_deprecated_option="yes"
+   ], [])
 
 DOWN=${_efl_with_binary}
 AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])