- AC_CACHE_CHECK([for openssl], tinc_cv_openssl_include,
- [
- AC_ARG_WITH(openssl,
- [ --with-openssl=DIR OpenSSL library and headers prefix],
- [echo -ne 'prefix...'
- openssl_lib="$withval/lib"
- openssl_include="$withval/include"]
- )
- AC_ARG_WITH(openssl-include,
- [ --with-openssl-include=DIR OpenSSL headers directory],
- [echo -ne 'includes...'
- openssl_include="$withvall"]
- )
- AC_ARG_WITH(openssl-lib,
- [ --with-openssl-lib=DIR OpenSSL library directory],
- [echo -ne 'libraries...'
- openssl_lib="$withval"]
- )
+ AC_ARG_WITH(openssl,
+ AC_HELP_STRING([--with-openssl=DIR], [OpenSSL base directory, or:]),
+ [openssl="$withval"
+ CFLAGS="$CFLAGS -I$withval/include"
+ CPPFLAGS="$CPPFLAGS -I$withval/include"
+ LIBS="$LIBS -L$withval/lib"]
+ )