mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-16 18:36:03 +01:00
clean up test for libcurl
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12980 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
1275817417
commit
8fb57f3b16
1 changed files with 5 additions and 15 deletions
20
SConstruct
20
SConstruct
|
|
@ -530,22 +530,12 @@ if env['FFT_ANALYSIS']:
|
|||
conf.Finish()
|
||||
|
||||
if env['FREESOUND']:
|
||||
#
|
||||
# Check for curl header as well as the library
|
||||
#
|
||||
|
||||
if conf.CheckPKGVersion('libcurl', '7.0.0'):
|
||||
print 'FREESOUND support cannot be built without the development libraries for CURL 7.X.X or later'
|
||||
env['FREESOUND'] = 0;
|
||||
else:
|
||||
libraries['curl'] = LibraryInfo()
|
||||
|
||||
conf = Configure(libraries['curl'])
|
||||
|
||||
if conf.CheckHeader ('curl/curl.h') == False:
|
||||
print ('Ardour cannot be compiled without the curl headers, which do not seem to be installed')
|
||||
sys.exit (1)
|
||||
else:
|
||||
libraries['curl'].ParseConfig('pkg-config --cflags --libs libcurl')
|
||||
conf.Finish()
|
||||
else:
|
||||
print 'FREESOUND support is not enabled. Build with \'scons FREESOUND=1\' to enable.'
|
||||
libraries['curl'].ParseConfig('pkg-config --cflags --libs libcurl')
|
||||
|
||||
if env['LV2']:
|
||||
conf = env.Configure(custom_tests = { 'CheckPKGVersion' : CheckPKGVersion})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue