2 oss4_option = get_option('oss4')
3 if not oss4_option.disabled()
5 message('Checking headers needed for Open Sound System 4 plugin...')
6 foreach hdr : ['fcntl.h', 'sys/ioctl.h', 'sys/stat.h', 'sys/types.h']
7 if have_oss4 and not cc.has_header(hdr)
12 if not have_oss4 and oss4_option.enabled()
13 error('OSS4 plugin was enabled but headers were not found')
18 message('Required headers found, building Open Sound System 4 plugin.')
21 'oss4-audio.c', 'oss4-property-probe.c', 'oss4-sink.c', 'oss4-source.c',
22 c_args : gst_plugins_good_args,
23 include_directories : [configinc, libsinc],
24 dependencies : [gstaudio_dep, gstbase_dep],
26 install_dir : plugins_install_dir)
28 message('Not building Open Sound System 4 plugin, required headers not found.')