shithub: sox

Download patch

ref: 200bd01fbb0339862dd62bd4a03da97b5a552f05
parent: b9e77a7ff0997a63ed568b9573e3725eb69c87d3
author: cbagwell <cbagwell>
date: Sun Nov 29 20:42:06 EST 2009

Fix disabling of sndfile support introduced with dlopen support.

--- a/configure.ac
+++ b/configure.ac
@@ -485,7 +485,7 @@
 dnl When enable_dl_sndfile, do not let SOX_PATH_SNDFILE add libraries
 dnl to be linked in (since they will be dlopen()'ed instead).
 ac_sox_save_SNDFILE_LIBS="$SNDFILE_LIBS"
-SOX_PATH_SNDFILE(using_sndfile=no)
+SOX_PATH_SNDFILE(tmp_using_sndfile=yes, tmp_using_sndfile=no)
 AC_ARG_ENABLE(dl_sndfile,
 	      AC_HELP_STRING([--enable-dl-sndfile], 
 			     [Dlopen sndfile instead of linking in.]),
@@ -498,7 +498,7 @@
     SNDFILE_LIBS="$ac_sox_save_SNDFILE_LIBS"
   fi
 fi
-AC_OPTIONAL_FORMAT(sndfile, SNDFILE)
+AC_OPTIONAL_FORMAT(sndfile, SNDFILE, [using_sndfile=$tmp_using_sndfile])
 
 AC_OPTIONAL_FORMAT(ffmpeg, FFMPEG, [SOX_PATH_FFMPEG(, using_ffmpeg=no)])