Print this page
8982 Support building with OpenSSL 1.1

@@ -24,10 +24,11 @@
 # Copyright (c) 2012 by Delphix. All rights reserved.
 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
 # Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
 # Copyright 2016 Toomas Soome <tsoome@me.com>
 # Copyright 2017 Joyent, Inc.
+# Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
 #
 
 #
 # Makefile for system source
 #

@@ -286,6 +287,16 @@
                 $(ECHO) $(JAVAC);                       \
                 $(JAVA_ROOT)/bin/java -fullversion 2>&1 | head -1;      \
         else                                            \
                 $(ECHO) No Java compiler found;         \
                 exit 1;                                 \
+        fi
+
+openssl-version:
+        @if [ -x "$(OPENSSL)" ]; then                           \
+                $(ECHO) $(OPENSSL);                             \
+                $(OPENSSL) version;                             \
+                $(OPENSSL) version -f |                         \
+                    $(SED) -n '/_API/{s/.*_API/    API/;s/ -.*//;p;}'; \
+        else                                                    \
+                $(ECHO) No OpenSSL utility found;               \
         fi