shithub: sox

Download patch

ref: f181687fefb3d4225c1aa372e40047975a4a67b2
parent: d36796e6eb47e6b6906f73ca1cb52650d77ce29d
author: robs <robs>
date: Fri Feb 20 02:24:45 EST 2009

allow to easily check all opt formats loaded dynamically

--- a/configure.ac
+++ b/configure.ac
@@ -65,6 +65,8 @@
 AC_PROG_LIBTOOL
 AC_SUBST(LIBTOOL_DEPS)
 
+AC_ARG_WITH(dyn-default,AC_HELP_STRING([--with-dyn-default],[Default to loading optional formats dynamically]),opt_default=dyn,opt_default=yes)
+
 AC_ARG_WITH(pkgconfigdir,
     AC_HELP_STRING([--with-pkgconfigdir],
                    [location to install .pc files or "no" to disable (default=$(libdir)/pkgconfig)]))
@@ -525,7 +527,7 @@
 echo "flac.......................$using_flac"
 echo "gsm........................$using_gsm $gsm_option"
 echo "lpc10......................$using_lpc10 $lpc10_option"
-echo "mp3........................$using_mp3$mp3_option"
+echo "mp3........................$using_mp3"
 echo " id3tag....................$using_id3tag"
 echo " lame......................$using_lame"
 echo " mad.......................$using_mad"
--- a/m4/optional-fmt.m4
+++ b/m4/optional-fmt.m4
@@ -10,7 +10,7 @@
       AC_MSG_FAILURE([not using libltdl; cannot load $1 dynamically])
     fi
   elif test "_$with_$1" = _; then
-    using_$1=yes
+    using_$1=$opt_default
   elif test "_$with_$1" != _yes -a "_$with_$1" != _no; then
     AC_MSG_FAILURE([invalid selection --with-$1=$with_$1])
   fi