| 227 | |
---|
| 228 | # Provide a way for users to compile newer libffado which will work |
---|
| 229 | # against older jack installations which will not accept the new API |
---|
| 230 | # version reported at runtime. |
---|
| 231 | good_jack1 = conf.CheckPKG('jack < 1.9.0') and conf.CheckPKG('jack >= 0.122.0') |
---|
| 232 | good_jack2 = conf.CheckPKG('jack >= 1.9.9') |
---|
| 233 | if env['ENABLE_SETBUFFERSIZE_API_VER'] == 'auto': |
---|
| 234 | if not(good_jack1 or good_jack2): |
---|
| 235 | FFADO_API_VERSION="8" |
---|
| 236 | print """ |
---|
| 237 | Installed jack does not support FFADO setbuffersize API: will report earlier |
---|
| 238 | API version at runtime |
---|
| 239 | """ |
---|
| 240 | else: |
---|
| 241 | print "Installed jack supports FFADO setbuffersize API" |
---|
| 242 | elif env['ENABLE_SETBUFFERSIZE_API_VER'] == 'true': |
---|
| 243 | if (not(good_jack1) and not(good_jack2)): |
---|
| 244 | print """ |
---|
| 245 | SetBufferSize API version is enabled but no suitable version of jack has been |
---|
| 246 | found. The resulting FFADO would cause your jackd to abort with "incompatible |
---|
| 247 | FFADO version". Please upgrade to jack1 >=0.122.0 or jack2 >=1.9.9, or set |
---|
| 248 | ENABLE_SETBUFFERSIZE_API_VER to "auto" or "false". |
---|
| 249 | """ |
---|
| 250 | # Although it's not strictly an error, in almost every case that |
---|
| 251 | # this occurs the user will want to know about it and fix the |
---|
| 252 | # problem, so we exit so they're guaranteed of seeing the above |
---|
| 253 | # message. |
---|
| 254 | Exit( 1 ) |
---|
| 255 | else: |
---|
| 256 | print "Will reporting SetBufferSize API at runtime" |
---|
| 257 | else: |
---|
| 258 | FFADO_API_VERSION="8" |
---|
| 259 | print "Will not report SetBufferSize API at runtime" |
---|