From 4c034c1f72676a8ef0198768fc5a2e6a17aad9d7 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Mon, 17 May 2010 23:49:15 +0000 Subject: 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@263724 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- autoconf/ast_ext_lib.m4 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'autoconf') diff --git a/autoconf/ast_ext_lib.m4 b/autoconf/ast_ext_lib.m4 index 4038bfb12..112b90f65 100644 --- a/autoconf/ast_ext_lib.m4 +++ b/autoconf/ast_ext_lib.m4 @@ -36,6 +36,27 @@ 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 + ]) +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], -- cgit v1.2.3