diff options
author | Vincent Richard <[email protected]> | 2005-12-15 19:41:02 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-12-15 19:41:02 +0000 |
commit | 14d30ac458af6216e790481c1593110cdaa01b3c (patch) | |
tree | 32fe3a7f477dee4d560f8af59ee97cba10debb16 | |
parent | Fixed segfault in destructor when chaining 3 exceptions or more. (diff) | |
download | vmime-14d30ac458af6216e790481c1593110cdaa01b3c.tar.gz vmime-14d30ac458af6216e790481c1593110cdaa01b3c.zip |
Enhanced detection of GnuTLS (SCons).
-rw-r--r-- | SConstruct | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -597,7 +597,10 @@ if env['with_sasl'] == 'yes': env.ParseConfig('pkg-config --cflags --libs libgsasl') if env['with_tls'] == 'yes': - libgnutls_pc = os.popen("pkg-config --list-all | grep gnutls | cut -f 1 -d ' '").read() + libgnutls_pc = string.strip(os.popen("pkg-config --list-all | grep '^libgnutls[ ]' | cut -f 1 -d ' '").read()) + if len(libgnutls_pc) == 0: + libgnutls_pc = string.strip(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 |