Remove ancient unused check for FLAC/OGG support

Our build-systems do not even have sndfile-info, and we use
pkg-config now
This commit is contained in:
Robin Gareus 2022-09-08 02:22:01 +02:00
parent 922970e338
commit 5579cf3289
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 0 additions and 19 deletions

View File

@ -284,20 +284,6 @@ libardour_sources = [
'worker.cc'
]
def flac_supported():
cmd = subprocess.Popen ("sndfile-info testfile.flac",
stdout = subprocess.PIPE,
stderr = subprocess.STDOUT, shell = True)
out = cmd.communicate()[0].decode('utf-8')
return re.search ('unknown format', out) is None
def ogg_supported():
cmd = subprocess.Popen ("sndfile-info testfile.ogg",
stdout = subprocess.PIPE,
stderr = subprocess.STDOUT, shell = True)
out = cmd.communicate()[0].decode('utf-8')
return re.search ('unknown format', out) is None
def options(opt):
autowaf.set_options(opt)
@ -366,11 +352,6 @@ def configure(conf):
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD',mandatory=False)
if flac_supported():
conf.define ('HAVE_FLAC', 1)
if ogg_supported():
conf.define ('HAVE_OGG', 1)
conf.write_config_header('libardour-config.h', remove=False)
# Boost headers

Binary file not shown.

Binary file not shown.