From 018025f0f36a4847df265c9948dbaf7073ed3245 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 25 Nov 2016 18:16:05 +0000 Subject: Alpha version of the SSL work. Doesn't build yet, but I'm scared of losing it, so using git as storage. Will fix the stupid bugs now, the tricky bugs later. --- configure | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 644c6ce..e6a3d65 100755 --- a/configure +++ b/configure @@ -44,6 +44,10 @@ Optional features: --enable-absolute-paths do not rely on PATH to access this package's binaries, hardcode absolute BINDIR/foobar paths instead [disabled] +SSL support: + --enable-ssl=libressl|bearssl build SSL tools, w/ libtls or bearssl implementation [disabled] + --with-ssl-path=DIR search for SSL headers/libs in DIR/include and DIR/lib [/usr] + EOF exit 0 } @@ -149,6 +153,7 @@ addlibdpath='' vpaths='' vpathd='' build= +ssl= for arg ; do case "$arg" in @@ -177,6 +182,10 @@ for arg ; do --disable-slashpackage) sproot= ; slashpackage=false ;; --enable-absolute-paths|--enable-absolute-paths=yes) abspath=true ;; --disable-absolute-paths|--enable-absolute-paths=no) abspath=false ;; + --enable-ssl=libressl) ssl=tls ;; + --enable-ssl=bearssl) ssl=bearssl ;; + --disable-ssl|--enable-ssl=none) ssl= ;; + --with-ssl-path=*) var=${arg#*=} ; stripdir var ; addincpath="$addincpath -I$var/include" ; addlibspath="$addlibspath -L$var/lib" ; vpaths="$vpaths $var/lib" ; addlibdpath="$addlibdpath -L$var/lib" ; vpathd="$vpathd $var/lib" ;; --enable-*|--disable-*|--with-*|--without-*|--*dir=*) ;; --host=*|--target=*) target=${arg#*=} ;; --build=*) build=${arg#*=} ;; @@ -395,6 +404,11 @@ if $shared ; then else echo "DO_SHARED :=" fi +if test -n $ssl ; then + echo "SSL_IMPL := $ssl" +else + echo "SSL_IMPL :=" +fi exec 1>&3 3>&- echo " ... done." @@ -423,6 +437,17 @@ else echo "#define ${package_macro_name}_EXTBINPREFIX \"\"" fi echo "#define ${package_macro_name}_LIBEXECPREFIX \"$libexecdir/\"" +if test "tls" = "$ssl" ; then + echo "#define ${package_macro_name}_USE_TLS" +else + echo "#undef ${package_macro_name}_USE_TLS" +fi +if test "bearssl" = "$ssl" ; then + echo "#define ${package_macro_name}_USE_BEARSSL" +else + echo "#undef ${package_macro_name}_USE_BEARSSL" +fi + echo echo "#endif" exec 1>&3 3>&- -- cgit v1.2.3