Skip to content

Commit

Permalink
configure: add --disable-ladspa-host
Browse files Browse the repository at this point in the history
allows explicitly disabling the ladspa-host effect to avoid
unwanted linking against libtool.
  • Loading branch information
N-R-K committed Jun 20, 2024
1 parent 58a9d0c commit 4841c74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Options:
--disable-mad
--disable-pulse
--disable-ladspa_dsp
--disable-ladspa-host
--debug-build
--prefix=path (default: $PREFIX)
--bindir=path (default: $BINDIR)
Expand Down Expand Up @@ -50,6 +51,7 @@ for i in "$@"; do
--disable-mad) CONFIG_DISABLE_MAD=y ;;
--disable-pulse) CONFIG_DISABLE_PULSE=y ;;
--disable-ladspa_dsp) CONFIG_DISABLE_LADSPA_DSP=y ;;
--disable-ladspa-host) CONFIG_DISABLE_LADSPA_HOST=y ;;
--debug-build) CONFIG_DEBUG_BUILD=y ;;
--prefix=*) PREFIX="${i#--prefix=}" ;;
--bindir=*) BINDIR="${i#--bindir=}" ;;
Expand Down Expand Up @@ -106,7 +108,7 @@ if [ "$CONFIG_DISABLE_DSP" != "y" ]; then
TARGETS="$TARGETS dsp"
INSTALL_TARGETS="$INSTALL_TARGETS install_dsp"
UNINSTALL_TARGETS="$UNINSTALL_TARGETS uninstall_dsp"
if check_header ladspa.h && check_header ltdl.h && check_lib ltdl; then
if [ "$CONFIG_DISABLE_LADSPA_HOST" != "y" ] && check_header ladspa.h && check_header ltdl.h && check_lib ltdl; then
DSP_OPTIONAL_OBJECTS="$DSP_OPTIONAL_OBJECTS ladspa_host.o"
DSP_EXTRA_LIBS="$DSP_EXTRA_LIBS -lltdl"
DSP_EXTRA_CFLAGS="$DSP_EXTRA_CFLAGS -DENABLE_LADSPA_HOST"
Expand Down Expand Up @@ -139,7 +141,7 @@ if [ "$CONFIG_DISABLE_LADSPA_DSP" != "y" ] && check_header ladspa.h; then
INSTALL_TARGETS="$INSTALL_TARGETS install_ladspa_dsp"
UNINSTALL_TARGETS="$UNINSTALL_TARGETS uninstall_ladspa_dsp"
unset INCLUDE_CODECS
if check_header ltdl.h && check_lib ltdl; then
if [ "$CONFIG_DISABLE_LADSPA_HOST" != "y" ] && check_header ltdl.h && check_lib ltdl; then
LADSPA_DSP_OPTIONAL_OBJECTS="$LADSPA_DSP_OPTIONAL_OBJECTS ladspa_host.o"
LADSPA_DSP_EXTRA_LIBS="$LADSPA_DSP_EXTRA_LIBS -lltdl"
LADSPA_DSP_EXTRA_CFLAGS="$LADSPA_DSP_EXTRA_CFLAGS -DENABLE_LADSPA_HOST"
Expand Down

0 comments on commit 4841c74

Please sign in to comment.