GNU TLS detection with SCons.

This commit is contained in:
Vincent Richard 2005-11-16 20:17:30 +00:00
parent 1b38cbeb3f
commit 1b6fb91cad

View File

@ -597,7 +597,8 @@ if env['with_sasl'] == 'yes':
env.ParseConfig('pkg-config --cflags --libs libgsasl')
if env['with_tls'] == 'yes':
env.ParseConfig('pkg-config --cflags --libs libgnutls')
libgnutls_pc = os.popen("pkg-config --list-all | grep gnutls | cut -f 1 -d ' '").read()
env.ParseConfig('pkg-config --cflags --libs ' + libgnutls_pc)
# Generate help text for command line options
Help(opts.GenerateHelpText(env))