profiles/dv_*, consumer_avformat.c, producer_avformat.c: bugfix (1912796) to override...
[melted] / src / modules / sox / configure
index 5336c69..f3b2c36 100755 (executable)
@@ -62,8 +62,12 @@ then
                                $LDD "$sox" | grep libsamplerate > /dev/null
                                [ $? -eq 0 ] && libsamplerate="-lsamplerate"
 
+                               # determine if we need libsfx
+                               $LDD $(which sox) | grep libsfx  > /dev/null
+                               [ $? -eq 0 ] && libsfx="-lsfx"
+
                                echo "CFLAGS += -DSOX14 -I$soxdir/include" > config.mak
-                               echo "LDFLAGS += -L$soxdir/$LIBDIR -lsox -lsfx $libsamplerate" >> config.mak
+                               echo "LDFLAGS += -L$soxdir/$LIBDIR -lsox $libsfx $libsamplerate" >> config.mak
                        fi
                fi
        fi