mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Fix issues with bundled pjproject cached download.
Previously when testing I had a preexisting makeopts in ASTTOPDIR. The ordering of configure.ac causes --with-externals-cache to be processed after third-party configure. In cases where the Asterisk clone is cleaned it would cause pjproject to be downloaded to /tmp. This moves processing of the externals cache and sounds cache to happen before third-party configure. This also addresses a possible issue with the third-party Makefile. If TMPDIR is set by the environment it would override the path given to --with-externals-cache. ASTERISK-26416 Change-Id: Ifab7f35bfcd5a31a31a3a4353cc26a68c8c6592d
This commit is contained in:
committed by
George Joseph
parent
dd6fc1bb7d
commit
aa39a87697
113
configure
vendored
113
configure
vendored
@@ -827,8 +827,6 @@ PBX_SPANDSP
|
||||
SPANDSP_DIR
|
||||
SPANDSP_INCLUDE
|
||||
SPANDSP_LIB
|
||||
EXTERNALS_CACHE_DIR
|
||||
SOUNDS_CACHE_DIR
|
||||
PBX_SDL_IMAGE
|
||||
SDL_IMAGE_DIR
|
||||
SDL_IMAGE_INCLUDE
|
||||
@@ -1207,6 +1205,8 @@ AST_CLANG_BLOCKS
|
||||
AST_CLANG_BLOCKS_LIBS
|
||||
AST_NESTED_FUNCTIONS
|
||||
AST_CODE_COVERAGE
|
||||
EXTERNALS_CACHE_DIR
|
||||
SOUNDS_CACHE_DIR
|
||||
AST_DEVMODE_STRICT
|
||||
AST_DEVMODE
|
||||
NOISY_BUILD
|
||||
@@ -1359,6 +1359,8 @@ ac_user_opts='
|
||||
enable_option_checking
|
||||
with_gnu_ld
|
||||
enable_dev_mode
|
||||
with_sounds_cache
|
||||
with_externals_cache
|
||||
enable_coverage
|
||||
with_pjproject_bundled
|
||||
with_asound
|
||||
@@ -1421,8 +1423,6 @@ with_fftw3
|
||||
with_resample
|
||||
with_sdl
|
||||
with_SDL_image
|
||||
with_sounds_cache
|
||||
with_externals_cache
|
||||
with_spandsp
|
||||
with_ss7
|
||||
with_speex
|
||||
@@ -2115,6 +2115,10 @@ Optional Packages:
|
||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
||||
--with-sounds-cache=PATH
|
||||
use cached sound tarfiles in PATH
|
||||
--with-externals-cache=PATH
|
||||
use cached external module tarfiles in PATH
|
||||
--with-pjproject-bundled
|
||||
Use bundled pjproject libraries
|
||||
--with-asound=PATH use Advanced Linux Sound Architecture files in PATH
|
||||
@@ -2181,10 +2185,6 @@ Optional Packages:
|
||||
--with-resample=PATH use LIBRESAMPLE files in PATH
|
||||
--with-sdl=PATH use Sdl files in PATH
|
||||
--with-SDL_image=PATH use Sdl Image files in PATH
|
||||
--with-sounds-cache=PATH
|
||||
use cached sound tarfiles in PATH
|
||||
--with-externals-cache=PATH
|
||||
use cached external module tarfiles in PATH
|
||||
--with-spandsp=PATH use SPANDSP files in PATH
|
||||
--with-ss7=PATH use ISDN SS7 files in PATH
|
||||
--with-speex=PATH use Speex files in PATH
|
||||
@@ -8991,6 +8991,55 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Check whether --with-sounds-cache was given.
|
||||
if test "${with_sounds_cache+set}" = set; then :
|
||||
withval=$with_sounds_cache;
|
||||
case ${withval} in
|
||||
n|no)
|
||||
unset SOUNDS_CACHE_DIR
|
||||
;;
|
||||
*)
|
||||
if test "x${withval}" = "x"; then
|
||||
:
|
||||
else
|
||||
SOUNDS_CACHE_DIR="${withval}"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
else
|
||||
:
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Check whether --with-externals-cache was given.
|
||||
if test "${with_externals_cache+set}" = set; then :
|
||||
withval=$with_externals_cache;
|
||||
case ${withval} in
|
||||
n|no)
|
||||
unset EXTERNALS_CACHE_DIR
|
||||
;;
|
||||
*)
|
||||
if test "x${withval}" = "x"; then
|
||||
:
|
||||
else
|
||||
EXTERNALS_CACHE_DIR="${withval}"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
else
|
||||
:
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
AST_CODE_COVERAGE=no
|
||||
# Check whether --enable-coverage was given.
|
||||
if test "${enable_coverage+set}" = set; then :
|
||||
@@ -11948,54 +11997,6 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
# Check whether --with-sounds-cache was given.
|
||||
if test "${with_sounds_cache+set}" = set; then :
|
||||
withval=$with_sounds_cache;
|
||||
case ${withval} in
|
||||
n|no)
|
||||
unset SOUNDS_CACHE_DIR
|
||||
;;
|
||||
*)
|
||||
if test "x${withval}" = "x"; then
|
||||
:
|
||||
else
|
||||
SOUNDS_CACHE_DIR="${withval}"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
else
|
||||
:
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Check whether --with-externals-cache was given.
|
||||
if test "${with_externals_cache+set}" = set; then :
|
||||
withval=$with_externals_cache;
|
||||
case ${withval} in
|
||||
n|no)
|
||||
unset EXTERNALS_CACHE_DIR
|
||||
;;
|
||||
*)
|
||||
if test "x${withval}" = "x"; then
|
||||
:
|
||||
else
|
||||
EXTERNALS_CACHE_DIR="${withval}"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
else
|
||||
:
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
SPANDSP_DESCRIP="SPANDSP"
|
||||
SPANDSP_OPTION="spandsp"
|
||||
PBX_SPANDSP=0
|
||||
|
Reference in New Issue
Block a user