From 9090862d95918200622f59c0dd97f49433117d8b Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Thu, 3 Jun 2010 00:20:46 -0700 Subject: [PATCH] scons: Warn user and fail if cannot find libcrypto. Signed-off-by: Ben Greear --- xorp/site_scons/config/allconfig.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xorp/site_scons/config/allconfig.py b/xorp/site_scons/config/allconfig.py index 6161a736c..4b3125e3d 100644 --- a/xorp/site_scons/config/allconfig.py +++ b/xorp/site_scons/config/allconfig.py @@ -728,6 +728,11 @@ def DoAllConfig(env, conf, host_os): sys.exit(1) has_libcrypto = conf.CheckLib('crypto') + if not has_libcrypto: + print "\nERROR: Cannot find required crypto library." + print " clear the configure cache before re-building." + sys.exit(1) + has_md5_init = conf.CheckFunc('MD5_Init') ########## @@ -756,7 +761,7 @@ def DoAllConfig(env, conf, host_os): print "\nWARNING: PCAP-BPF is not supported on this system," print " socket filtering will not work." print " This is not a real problem, just a small performance" - print " loss when using.multiple virtual routers on the same system." + print " loss when using multiple virtual routers on the same system.\n" ########## # curses for cli/libtecla