+# Rippers with USEPIPE support
+# FIXME # Include here all the rippers we can figure out support pipes
+PIPE_cdparanoia="-"
+
+# Encoders with USEPIPE support
+# FIXME # Include here all the encoders we can figure out support pipes
+PIPE_lame="-"
+PIPE_oggenc="-"
+
+# Figure out if we can use pipes with the ripper/encoder combination
+# exit otherwise
+if [ "$USEPIPES" = "y" ]; then
+ PIPERIPPERSVARCHECK="PIPE_${CDROMREADER}"
+ case "$OUTPUT" in
+ mp3)
+ PIPEENCODERSVARCHECK="PIPE_$MP3ENCODERSYNTAX" ;;
+ ogg)
+ PIPEENCODERSVARCHECK="PIPE_$OGGENCODERSYNTAX" ;;
+ flac)
+ PIPEENCODERSVARCHECK="PIPE_$FLACENCODERSYTNAX" ;;
+ spx)
+ PIPEENCODERSVARCHECK="PIPE_$SPEEXENCODER" ;;
+ mpc)
+ PIPEENCODERSVARCHECK="PIPE_$MPPENCODER" ;;
+ esac
+ if [ ! -n "${!PIPERIPPERSVARCHECK}" ] ; then
+ echo "abcde error: no support for pipes with given ripper" >&2
+ echo "read the USEPIPES file from the source tarball to help" >&2
+ echo "on a Debian system, read /usr/share/doc/abcde/USEPIPES.gz" >&2
+ exit 1;
+ fi
+ if [ ! -n "${!PIPEENCODERSVARCHECK}" ] ; then
+ echo "abcde error: no support for pipes with given encoder" >&2
+ echo "read the USEPIPES file from the source tarball to help" >&2
+ echo "on a Debian system, read /usr/share/doc/abcde/USEPIPES.gz" >&2
+ exit 1;
+ fi
+fi
+