diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-04 01:41:25 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-04 01:41:25 +0000 |
commit | f50546f548395ab3d6fda45f4c781f701668c01c (patch) | |
tree | c1ea8f7fc6d39e1a2af84c637455a6577f7cd718 /autoconf | |
parent | f4733a17a145677c0f0d79ac6fcdf0b07cd4e716 (diff) |
Merged revisions 263724,267819 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r263724 | tilghman | 2010-05-17 18:49:15 -0500 (Mon, 17 May 2010) | 8 lines
Cache sound tarfiles in a common directory, such that a clean reinstall does not force a re-download of the tarballs.
(closes issue #15370)
Reported by: pprindeville
Patches:
asterisk-trunk-bugid15370.patch uploaded by pprindeville (license 347)
Tested by: pprindeville, tilghman, seanbright
........
r267819 | tilghman | 2010-06-03 20:36:46 -0500 (Thu, 03 Jun 2010) | 2 lines
If there's a default, turn it on, even when the option isn't specified.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@267820 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/ast_ext_lib.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/autoconf/ast_ext_lib.m4 b/autoconf/ast_ext_lib.m4 index d35d51598..5e675dbe9 100644 --- a/autoconf/ast_ext_lib.m4 +++ b/autoconf/ast_ext_lib.m4 @@ -36,6 +36,28 @@ AC_DEFUN([AST_EXT_LIB_SETUP], AC_SUBST([PBX_$1]) ]) +# AST_OPTION_ONLY([option name], [option variable], [option description], [default value]) +AC_DEFUN([AST_OPTION_ONLY], +[ +AC_ARG_WITH([$1], AC_HELP_STRING([--with-$1=PATH], [use $3 in PATH]), + [ + case ${withval} in + n|no) + unset $2 + ;; + *) + if test "x${$2}" = "x"; then + m4_ifval($4, [$2="$4"], [:]) + else + $2="${withval}" + fi + ;; + esac + ], + [m4_ifval($4, [$2="$4"])]) +AC_SUBST($2) +]) + # AST_EXT_LIB_SETUP_DEPENDENT([package symbol name], [package friendly name], [master package symbol name], [master package option name]) AC_DEFUN([AST_EXT_LIB_SETUP_DEPENDENT], |