@@ -60,46 +60,6 @@ AC_CHECK_HEADERS([limits.h sys/select.h sys/time.h sys/ioctl.h pty.h util.h term
6060AC_CHECK_LIB ( [ network] ,[ socket] )
6161AC_CHECK_LIB ( [ util] ,[ forkpty] )
6262
63- # liboqs
64- ENABLED_LIBOQS="no"
65- tryliboqsdir=""
66- AC_ARG_WITH ( [ liboqs] ,
67- [ AS_HELP_STRING ( [ --with-liboqs=PATH] ,[ Path to liboqs install (default /usr/local) EXPERIMENTAL!] ) ] ,
68- [
69- AC_MSG_CHECKING ( [ for liboqs] )
70- CPPFLAGS="$CPPFLAGS -DWOLFSSH_HAVE_LIBOQS"
71- LIBS="$LIBS -loqs"
72-
73- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <oqs/common.h>] ] , [ [ OQS_init(); ] ] ) ] , [ liboqs_linked=yes ] ,[ liboqs_linked=no ] )
74-
75- if test "x$liboqs_linked" = "xno" ; then
76- if test "x$withval" != "xno" ; then
77- tryliboqsdir=$withval
78- fi
79- if test "x$withval" = "xyes" ; then
80- tryliboqsdir="/usr/local"
81- fi
82-
83- LDFLAGS="$AM_LDFLAGS $LDFLAGS -L$tryliboqsdir/lib"
84- CPPFLAGS="$CPPFLAGS -I$tryliboqsdir/include"
85-
86- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <oqs/common.h>] ] , [ [ OQS_init(); ] ] ) ] , [ liboqs_linked=yes ] ,[ liboqs_linked=no ] )
87-
88- if test "x$liboqs_linked" = "xno" ; then
89- AC_MSG_ERROR ( [ liboqs isn't found.
90- If it's already installed, specify its path using --with-liboqs=/dir/] )
91- fi
92- AC_MSG_RESULT ( [ yes] )
93- AM_LDFLAGS="$AM_LDFLAGS -L$tryliboqsdir/lib"
94- else
95- AC_MSG_RESULT ( [ yes] )
96- fi
97-
98- AM_CFLAGS="$AM_CFLAGS -DWOLFSSH_HAVE_LIBOQS"
99- ENABLED_LIBOQS="yes"
100- ]
101- )
102-
10363# wolfssl
10464AC_MSG_CHECKING ( [ for wolfSSL] )
10565if test "x$prefix" = "xNONE"
@@ -365,4 +325,3 @@ AS_ECHO([" * agent: $ENABLED_AGENT"])
365325AS_ECHO ( [ " * TCP/IP Forwarding: $ENABLED_FWD"] )
366326AS_ECHO ( [ " * X.509 Certs: $ENABLED_CERTS"] )
367327AS_ECHO ( [ " * Examples: $ENABLED_EXAMPLES"] )
368- AS_ECHO ( [ " * liboqs Integration: $ENABLED_LIBOQS"] )
0 commit comments