summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-11-25 18:16:05 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-11-25 18:16:05 +0000
commit018025f0f36a4847df265c9948dbaf7073ed3245 (patch)
tree984c9a4bba06ef8abc02d0fbe81a70ec28c6f529 /configure
parent6421a5e923b0f695047b429e4176bca2873c5189 (diff)
downloads6-networking-018025f0f36a4847df265c9948dbaf7073ed3245.tar.xz
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure25
1 files changed, 25 insertions, 0 deletions
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>&-