summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2014-02-21 22:13:00 +0900
committerCedric Bail <cedric.bail@free.fr>2014-02-21 22:13:00 +0900
commit868202349ab7161e4a4aabc1d6cd153084d82d59 (patch)
tree9facf73386f671d495e58520a90f3d2ded4856cb /m4
parentdae9eacb142340968d78e8dd1a45d98ebca3b7f6 (diff)
autotools: add supported for deprecated option.
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_binary.m416
1 files changed, 11 insertions, 5 deletions
diff --git a/m4/efl_binary.m4 b/m4/efl_binary.m4
index 2d0aea7..a86a41d 100644
--- a/m4/efl_binary.m4
+++ b/m4/efl_binary.m4
@@ -10,17 +10,23 @@ m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl
10m4_pushdef([UP], m4_translit([[$2]], [-a-z], [_A-Z]))dnl 10m4_pushdef([UP], m4_translit([[$2]], [-a-z], [_A-Z]))dnl
11dnl configure option 11dnl configure option
12 12
13_efl_with_binary=""
14_efl_binary_define="no"
15
13AC_ARG_WITH([$2], 16AC_ARG_WITH([$2],
14 [AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])], 17 [AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])],
15 [ 18 [
16 _efl_with_binary=${withval} 19 _efl_with_binary=${withval}
17 _efl_binary_define="yes" 20 _efl_binary_define="yes"
18 ], 21 ], [])
22
23AC_ARG_WITH([bin-$2],
24 [AC_HELP_STRING([--with-bin-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@ DEPRECATED])],
19 [ 25 [
20 _efl_with_binary="" 26 _efl_with_binary=${withval}
21 _efl_binary_define="no" 27 _efl_binary_define="yes"
22 ] 28 efl_deprecated_option="yes"
23) 29 ], [])
24 30
25DOWN=${_efl_with_binary} 31DOWN=${_efl_with_binary}
26AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}]) 32AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])