libstoken [1] implements a "software token" that generates one-time passwords from RSA SecurID 128-bit (AES) token seeds. [1] http://stoken.sf.net/ Signed-off-by: Kevin Cernekee <cernekee at gmail.com> --- Makefile.am | 4 ++-- configure.ac | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 7ab813c..8b844b1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,8 +14,8 @@ man8_MANS = openconnect.8 AM_CPPFLAGS = -DLOCALEDIR="\"$(localedir)\"" openconnect_SOURCES = xml.c main.c dtls.c cstp.c mainloop.c tun.c -openconnect_CFLAGS = $(SSL_CFLAGS) $(DTLS_SSL_CFLAGS) $(LIBXML2_CFLAGS) $(LIBPROXY_CFLAGS) $(ZLIB_CFLAGS) -openconnect_LDADD = libopenconnect.la $(SSL_LIBS) $(DTLS_SSL_LIBS) $(LIBXML2_LIBS) $(LIBPROXY_LIBS) $(ZLIB_LIBS) $(LIBINTL) +openconnect_CFLAGS = $(SSL_CFLAGS) $(DTLS_SSL_CFLAGS) $(LIBXML2_CFLAGS) $(LIBPROXY_CFLAGS) $(ZLIB_CFLAGS) $(LIBSTOKEN_CFLAGS) +openconnect_LDADD = libopenconnect.la $(SSL_LIBS) $(DTLS_SSL_LIBS) $(LIBXML2_LIBS) $(LIBPROXY_LIBS) $(ZLIB_LIBS) $(LIBINTL) $(LIBSTOKEN_LIBS) library_srcs = ssl.c http.c auth.c library.c compat.c lib_srcs_gnutls = gnutls.c gnutls_pkcs12.c gnutls_tpm.c diff --git a/configure.ac b/configure.ac index a7ef502..430fe77 100644 --- a/configure.ac +++ b/configure.ac @@ -438,6 +438,12 @@ if (test "$libproxy_pkg" = "no"); then LIBS="$oldLIBS" fi +PKG_CHECK_MODULES(LIBSTOKEN, stoken, + [AC_SUBST(LIBSTOKEN_PC, stoken) + AC_DEFINE([LIBSTOKEN_HDR], ["stoken.h"]) + libstoken_pkg=yes], + libstoken_pkg=no) + AC_CHECK_HEADER([if_tun.h], [AC_DEFINE([IF_TUN_HDR], ["if_tun.h"])], [AC_CHECK_HEADER([linux/if_tun.h], -- 1.7.5.4