1 2 3if HAVE_ALSA 4if STATIC_ALSA 5 libsox_la_SOURCES += alsa.c 6if STATIC_LIBSOX_ONLY 7 sox_LDADD += @ALSA_LIBS@ 8else 9 libsox_la_LIBADD += @ALSA_LIBS@ 10endif 11else 12 libsox_fmt_alsa_la_SOURCES = alsa.c 13 libsox_fmt_alsa_la_LIBADD = libsox.la @ALSA_LIBS@ 14 pkglib_LTLIBRARIES += libsox_fmt_alsa.la 15endif 16endif 17 18if HAVE_AMRNB 19if STATIC_AMRNB 20 libsox_la_SOURCES += amr-nb.c amr.h 21if STATIC_LIBSOX_ONLY 22 sox_LDADD += @AMRNB_LIBS@ 23else 24 libsox_la_LIBADD += @AMRNB_LIBS@ 25endif 26else 27 libsox_fmt_amr_nb_la_SOURCES = amr-nb.c amr.h 28 libsox_fmt_amr_nb_la_LIBADD = libsox.la @AMRNB_LIBS@ 29 pkglib_LTLIBRARIES += libsox_fmt_amr_nb.la 30endif 31endif 32 33if HAVE_AMRWB 34if STATIC_AMRWB 35 libsox_la_SOURCES += amr-wb.c amr.h 36if STATIC_LIBSOX_ONLY 37 sox_LDADD += @AMRWB_LIBS@ 38else 39 libsox_la_LIBADD += @AMRWB_LIBS@ 40endif 41else 42 libsox_fmt_amr_wb_la_SOURCES = amr-wb.c amr.h 43 libsox_fmt_amr_wb_la_LIBADD = libsox.la @AMRWB_LIBS@ 44 pkglib_LTLIBRARIES += libsox_fmt_amr_wb.la 45endif 46endif 47 48if HAVE_AO 49if STATIC_AO 50 libsox_la_SOURCES += ao.c 51if STATIC_LIBSOX_ONLY 52 sox_LDADD += @AO_LIBS@ 53else 54 libsox_la_LIBADD += @AO_LIBS@ 55endif 56else 57 libsox_fmt_ao_la_SOURCES = ao.c 58 libsox_fmt_ao_la_LIBADD = libsox.la @AO_LIBS@ 59 pkglib_LTLIBRARIES += libsox_fmt_ao.la 60endif 61endif 62 63if HAVE_COREAUDIO 64if STATIC_COREAUDIO 65 libsox_la_SOURCES += coreaudio.c 66if STATIC_LIBSOX_ONLY 67 sox_LDADD += @COREAUDIO_LIBS@ 68else 69 libsox_la_LIBADD += @COREAUDIO_LIBS@ 70endif 71else 72 libsox_fmt_coreaudio_la_SOURCES = coreaudio.c 73 libsox_fmt_coreaudio_la_LIBADD = libsox.la @COREAUDIO_LIBS@ 74 pkglib_LTLIBRARIES += libsox_fmt_coreaudio.la 75endif 76endif 77 78if HAVE_FLAC 79if STATIC_FLAC 80 libsox_la_SOURCES += flac.c 81if STATIC_LIBSOX_ONLY 82 sox_LDADD += @FLAC_LIBS@ 83else 84 libsox_la_LIBADD += @FLAC_LIBS@ 85endif 86else 87 libsox_fmt_flac_la_SOURCES = flac.c 88 libsox_fmt_flac_la_LIBADD = libsox.la @FLAC_LIBS@ 89 pkglib_LTLIBRARIES += libsox_fmt_flac.la 90endif 91endif 92 93if HAVE_GSM 94if STATIC_GSM 95 libsox_la_SOURCES += gsm.c 96if STATIC_LIBSOX_ONLY 97 sox_LDADD += @GSM_LIBS@ 98else 99 libsox_la_LIBADD += @GSM_LIBS@ 100endif 101else 102 libsox_fmt_gsm_la_SOURCES = gsm.c 103 libsox_fmt_gsm_la_LIBADD = libsox.la @GSM_LIBS@ 104 pkglib_LTLIBRARIES += libsox_fmt_gsm.la 105endif 106endif 107 108if HAVE_LPC10 109if STATIC_LPC10 110 libsox_la_SOURCES += lpc10.c 111if STATIC_LIBSOX_ONLY 112 sox_LDADD += @LPC10_LIBS@ 113else 114 libsox_la_LIBADD += @LPC10_LIBS@ 115endif 116else 117 libsox_fmt_lpc10_la_SOURCES = lpc10.c 118 libsox_fmt_lpc10_la_LIBADD = libsox.la @LPC10_LIBS@ 119 pkglib_LTLIBRARIES += libsox_fmt_lpc10.la 120endif 121endif 122 123if HAVE_MP3 124if STATIC_MP3 125 libsox_la_SOURCES += mp3.c mp3-util.h 126if STATIC_LIBSOX_ONLY 127 sox_LDADD += @MP3_LIBS@ 128else 129 libsox_la_LIBADD += @MP3_LIBS@ 130endif 131else 132 libsox_fmt_mp3_la_SOURCES = mp3.c mp3-util.h 133 libsox_fmt_mp3_la_LIBADD = libsox.la @MP3_LIBS@ 134 pkglib_LTLIBRARIES += libsox_fmt_mp3.la 135endif 136endif 137 138if HAVE_OPUS 139if STATIC_OPUS 140 libsox_la_SOURCES += opus.c 141 libsox_la_CFLAGS += @OPUS_CFLAGS@ 142if STATIC_LIBSOX_ONLY 143 sox_LDADD += @OPUS_LIBS@ 144else 145 libsox_la_LIBADD += @OPUS_LIBS@ 146endif 147else 148 libsox_fmt_opus_la_SOURCES = opus.c 149 libsox_fmt_opus_la_CFLAGS = @OPUS_CFLAGS@ 150 libsox_fmt_opus_la_LIBADD = libsox.la @OPUS_LIBS@ 151 pkglib_LTLIBRARIES += libsox_fmt_opus.la 152endif 153endif 154 155if HAVE_OSS 156if STATIC_OSS 157 libsox_la_SOURCES += oss.c 158if STATIC_LIBSOX_ONLY 159 sox_LDADD += @OSS_LIBS@ 160else 161 libsox_la_LIBADD += @OSS_LIBS@ 162endif 163else 164 libsox_fmt_oss_la_SOURCES = oss.c 165 libsox_fmt_oss_la_LIBADD = libsox.la @OSS_LIBS@ 166 pkglib_LTLIBRARIES += libsox_fmt_oss.la 167endif 168endif 169 170if HAVE_PULSEAUDIO 171if STATIC_PULSEAUDIO 172 libsox_la_SOURCES += pulseaudio.c 173if STATIC_LIBSOX_ONLY 174 sox_LDADD += @PULSEAUDIO_LIBS@ 175else 176 libsox_la_LIBADD += @PULSEAUDIO_LIBS@ 177endif 178else 179 libsox_fmt_pulseaudio_la_SOURCES = pulseaudio.c 180 libsox_fmt_pulseaudio_la_LIBADD = libsox.la @PULSEAUDIO_LIBS@ 181 pkglib_LTLIBRARIES += libsox_fmt_pulseaudio.la 182endif 183endif 184 185if HAVE_WAVEAUDIO 186if STATIC_WAVEAUDIO 187 libsox_la_SOURCES += waveaudio.c 188if STATIC_LIBSOX_ONLY 189 sox_LDADD += @WAVEAUDIO_LIBS@ 190else 191 libsox_la_LIBADD += @WAVEAUDIO_LIBS@ 192endif 193else 194 libsox_fmt_waveaudio_la_SOURCES = waveaudio.c 195 libsox_fmt_waveaudio_la_LIBADD = libsox.la @WAVEAUDIO_LIBS@ 196 pkglib_LTLIBRARIES += libsox_fmt_waveaudio.la 197endif 198endif 199 200if HAVE_SNDIO 201if STATIC_SNDIO 202 libsox_la_SOURCES += sndio.c 203 libsox_la_LIBADD += @SNDIO_LIBS@ 204if STATIC_LIBSOX_ONLY 205 sox_LDADD += @SNDIO_LIBS@ 206else 207 libsox_la_LIBADD += @SNDIO_LIBS@ 208endif 209else 210 libsox_fmt_sndio_la_SOURCES = sndio.c 211 libsox_fmt_sndio_la_LIBADD = libsox.la @SNDIO_LIBS@ 212 pkglib_LTLIBRARIES += libsox_fmt_sndio.la 213endif 214endif 215 216if HAVE_SUN_AUDIO 217if STATIC_SUN_AUDIO 218 libsox_la_SOURCES += sunaudio.c 219if STATIC_LIBSOX_ONLY 220 sox_LDADD += @SUN_AUDIO_LIBS@ 221else 222 libsox_la_LIBADD += @SUN_AUDIO_LIBS@ 223endif 224else 225 libsox_fmt_sunau_la_SOURCES = sunaudio.c 226 libsox_fmt_sunau_la_LIBADD = libsox.la @SUN_AUDIO_LIBS@ 227 pkglib_LTLIBRARIES += libsox_fmt_sunau.la 228endif 229endif 230 231if HAVE_OGG_VORBIS 232if STATIC_OGG_VORBIS 233 libsox_la_SOURCES += vorbis.c 234if STATIC_LIBSOX_ONLY 235 sox_LDADD += @OGG_VORBIS_LIBS@ 236else 237 libsox_la_LIBADD += @OGG_VORBIS_LIBS@ 238endif 239else 240 libsox_fmt_vorbis_la_SOURCES = vorbis.c 241 libsox_fmt_vorbis_la_LIBADD = libsox.la @OGG_VORBIS_LIBS@ 242 pkglib_LTLIBRARIES += libsox_fmt_vorbis.la 243endif 244endif 245 246if HAVE_WAVPACK 247if STATIC_WAVPACK 248 libsox_la_SOURCES += wavpack.c 249if STATIC_LIBSOX_ONLY 250 sox_LDADD += @WAVPACK_LIBS@ 251else 252 libsox_la_LIBADD += @WAVPACK_LIBS@ 253endif 254else 255 libsox_fmt_wavpack_la_SOURCES = wavpack.c 256 libsox_fmt_wavpack_la_LIBADD = libsox.la @WAVPACK_LIBS@ 257 pkglib_LTLIBRARIES += libsox_fmt_wavpack.la 258endif 259endif 260 261 262if HAVE_SNDFILE 263if STATIC_SNDFILE 264 libsox_la_SOURCES += sndfile.c caf.c mat4.c mat5.c paf.c fap.c w64.c xi.c pvf.c sd2.c 265 libsox_la_CFLAGS += @SNDFILE_CFLAGS@ 266if STATIC_LIBSOX_ONLY 267 sox_LDADD += @SNDFILE_LIBS@ 268else 269 libsox_la_LIBADD += @SNDFILE_LIBS@ 270endif 271else 272libsox_fmt_sndfile_la_SOURCES = sndfile.c 273libsox_fmt_sndfile_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ 274libsox_fmt_sndfile_la_LIBADD = libsox.la @SNDFILE_LIBS@ 275libsox_fmt_caf_la_SOURCES = caf.c sndfile.c 276libsox_fmt_caf_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ 277libsox_fmt_caf_la_LIBADD = libsox.la @SNDFILE_LIBS@ 278libsox_fmt_mat4_la_SOURCES = mat4.c sndfile.c 279libsox_fmt_mat4_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ 280libsox_fmt_mat4_la_LIBADD = libsox.la @SNDFILE_LIBS@ 281libsox_fmt_mat5_la_SOURCES = mat5.c sndfile.c 282libsox_fmt_mat5_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ 283libsox_fmt_mat5_la_LIBADD = libsox.la @SNDFILE_LIBS@ 284libsox_fmt_paf_la_SOURCES = paf.c sndfile.c 285libsox_fmt_paf_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ 286libsox_fmt_paf_la_LIBADD = libsox.la @SNDFILE_LIBS@ 287libsox_fmt_fap_la_SOURCES = fap.c sndfile.c 288libsox_fmt_fap_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ 289libsox_fmt_fap_la_LIBADD = libsox.la @SNDFILE_LIBS@ 290libsox_fmt_w64_la_SOURCES = w64.c sndfile.c 291libsox_fmt_w64_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ 292libsox_fmt_w64_la_LIBADD = libsox.la @SNDFILE_LIBS@ 293libsox_fmt_xi_la_SOURCES = xi.c sndfile.c 294libsox_fmt_wi_la_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ 295libsox_fmt_xi_la_LIBADD = libsox.la @SNDFILE_LIBS@ 296libsox_fmt_pvf_la_SOURCES = pvf.c sndfile.c 297libsox_fmt_pvf_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ 298libsox_fmt_pvf_la_LIBADD = libsox.la @SNDFILE_LIBS@ 299libsox_fmt_sd2_la_SOURCES = sd2.c sndfile.c 300libsox_fmt_sd2_CFLAGS = @WARN_CFLAGS@ @SNDFILE_CFLAGS@ 301libsox_fmt_sd2_la_LIBADD = libsox.la @SNDFILE_LIBS@ 302pkglib_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 303endif 304endif 305 306