ref: 38ee09740775bfbd25280edd4c41cbe30d383333
dir: /src/optional-fmts.in/
define(`OPT_FORMAT', if HAVE_$2 if STATIC_$2 libsox_la_SOURCES += $3 libsox_la_LIBADD += @$2_LIBS@ sox_LDADD += @$2_LIBS@ else libsox_fmt_$1_la_SOURCES = $3 libsox_fmt_$1_la_LIBADD = libsox.la @$2_LIBS@ pkglib_LTLIBRARIES += libsox_fmt_$1.la endif endif ) OPT_FORMAT(alsa, ALSA, alsa.c) OPT_FORMAT(amr_nb, AMRNB, amr-nb.c amr.h amr1.h amr2.h) OPT_FORMAT(amr_wb, AMRWB, amr-wb.c amr.h amr1.h amr2.h) OPT_FORMAT(ao, AO, ao.c) OPT_FORMAT(coreaudio, COREAUDIO, coreaudio.c) OPT_FORMAT(ffmpeg, FFMPEG, ffmpeg.c ffmpeg.h) OPT_FORMAT(flac, FLAC, flac.c) OPT_FORMAT(gsm, GSM, gsm.c) OPT_FORMAT(lpc10, LPC10, lpc10.c) OPT_FORMAT(mp3, MP3, mp3.c mp3-duration.h) OPT_FORMAT(oss, OSS, oss.c) OPT_FORMAT(pulseaudio, PULSEAUDIO, pulseaudio.c) OPT_FORMAT(sndio, SNDIO, sndio.c) OPT_FORMAT(sunau, SUN_AUDIO, sunaudio.c) OPT_FORMAT(vorbis, OGG_VORBIS, vorbis.c vorbis1.h) OPT_FORMAT(wavpack, WAVPACK, wavpack.c) if HAVE_SNDFILE if STATIC_SNDFILE libsox_la_SOURCES += sndfile.c caf.c mat4.c mat5.c paf.c fap.c w64.c xi.c pvf.c sd2.c libsox_la_CFLAGS += @SNDFILE_CFLAGS@ libsox_la_LIBADD += @SNDFILE_LIBS@ sox_LDADD += @SNDFILE_LIBS@ else libsox_fmt_sndfile_la_SOURCES = sndfile.c libsox_fmt_sndfile_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ libsox_fmt_sndfile_la_LIBADD = libsox.la @SNDFILE_LIBS@ libsox_fmt_caf_la_SOURCES = caf.c sndfile.c libsox_fmt_caf_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ libsox_fmt_caf_la_LIBADD = libsox.la @SNDFILE_LIBS@ libsox_fmt_mat4_la_SOURCES = mat4.c sndfile.c libsox_fmt_mat4_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ libsox_fmt_mat4_la_LIBADD = libsox.la @SNDFILE_LIBS@ libsox_fmt_mat5_la_SOURCES = mat5.c sndfile.c libsox_fmt_mat5_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ libsox_fmt_mat5_la_LIBADD = libsox.la @SNDFILE_LIBS@ libsox_fmt_paf_la_SOURCES = paf.c sndfile.c libsox_fmt_paf_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ libsox_fmt_paf_la_LIBADD = libsox.la @SNDFILE_LIBS@ libsox_fmt_fap_la_SOURCES = fap.c sndfile.c libsox_fmt_fap_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ libsox_fmt_fap_la_LIBADD = libsox.la @SNDFILE_LIBS@ libsox_fmt_w64_la_SOURCES = w64.c sndfile.c libsox_fmt_w64_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ libsox_fmt_w64_la_LIBADD = libsox.la @SNDFILE_LIBS@ libsox_fmt_xi_la_SOURCES = xi.c sndfile.c libsox_fmt_wi_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ libsox_fmt_xi_la_LIBADD = libsox.la @SNDFILE_LIBS@ libsox_fmt_pvf_la_SOURCES = pvf.c sndfile.c libsox_fmt_pvf_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ libsox_fmt_pvf_la_LIBADD = libsox.la @SNDFILE_LIBS@ libsox_fmt_sd2_la_SOURCES = sd2.c sndfile.c libsox_fmt_sd2_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ libsox_fmt_sd2_la_LIBADD = libsox.la @SNDFILE_LIBS@ pkglib_LTLIBRARIES += libsox_fmt_sndfile.la libsox_fmt_caf.la libsox_fmt_mat4.la libsox_fmt_mat5.la libsox_fmt_paf.la libsox_fmt_fap.la libsox_fmt_w64.la libsox_fmt_xi.la libsox_fmt_pvf.la libsox_fmt_sd2.la endif endif