diff options
author | delphij <delphij@FreeBSD.org> | 2013-05-30 20:51:22 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-05-30 20:51:22 +0000 |
commit | cc86f133652d396d6f3dac311d20761a9ee00ad9 (patch) | |
tree | f1ffd0911b49d93d246ae1677dd73d297cd2d92d /contrib/tcpdump/configure.in | |
parent | 0c381861b05890dec1e89030d37c6dbea3c12ca5 (diff) | |
parent | a765887ce77351bac1c77be2cf18a3a66a602fc5 (diff) | |
download | FreeBSD-src-cc86f133652d396d6f3dac311d20761a9ee00ad9.zip FreeBSD-src-cc86f133652d396d6f3dac311d20761a9ee00ad9.tar.gz |
MFV: tcpdump 4.4.0.
MFC after: 4 weeks
Diffstat (limited to 'contrib/tcpdump/configure.in')
-rw-r--r-- | contrib/tcpdump/configure.in | 73 |
1 files changed, 7 insertions, 66 deletions
diff --git a/contrib/tcpdump/configure.in b/contrib/tcpdump/configure.in index 8864238..14a60e1 100644 --- a/contrib/tcpdump/configure.in +++ b/contrib/tcpdump/configure.in @@ -994,13 +994,13 @@ AC_LBL_UNALIGNED_ACCESS AC_VAR_H_ERRNO -# Check for SSLeay -AC_MSG_CHECKING(whether to use SSLeay libcrypto) +# Check for OpenSSL libcrypto +AC_MSG_CHECKING(whether to use OpenSSL libcrypto) # Specify location for both includes and libraries. -want_libcrypto=youmama +want_libcrypto=ifavailable AC_ARG_WITH(crypto, - AS_HELP_STRING([--with-crypto@<:@=PATH@:>@], - [use SSLeay libcrypto (located in directory PATH, if supplied). @<:@default=yes, if available@:>@]), + AS_HELP_STRING([--with-crypto], + [use OpenSSL libcrypto @<:@default=yes, if available@:>@]), [ if test $withval = no then @@ -1010,10 +1010,6 @@ AC_ARG_WITH(crypto, then want_libcrypto=yes AC_MSG_RESULT(yes) - else - want_libcrypto=yes - AC_MSG_RESULT(yes) - crypto_dir=$withval fi ],[ # @@ -1023,63 +1019,8 @@ AC_ARG_WITH(crypto, AC_MSG_RESULT([yes, if available]) ]) if test "$want_libcrypto" != "no"; then - ac_cv_ssleay_path=no - incdir=no - if test "x$crypto_dir" = x; then - # - # Location not specified; check the default locations. - # - AC_MSG_CHECKING(where SSLeay is located) - dirs="/usr /usr/local /usr/local/ssl /usr/pkg" - if test "x${host_alias}" != x; then - dirs="/usr/${host_alias} $dirs" - fi - for dir in $dirs; do - AC_LBL_SSLEAY($dir) - - if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then - break; - else - ac_cv_ssleay_path=no - incdir=no - fi - done - if test "$ac_cv_ssleay_path" != no; then - AC_MSG_RESULT($ac_cv_ssleay_path) - fi - else - AC_MSG_CHECKING(for SSLeay in $crypto_dir) - AC_LBL_SSLEAY($crypto_dir) - if test "$ac_cv_ssleay_path" != no; then - AC_MSG_RESULT(found) - fi - fi - if test "$ac_cv_ssleay_path" != no; then - V_INCLS="$V_INCLS $incdir" - if test "$dir" != "/usr"; then - LDFLAGS="-L$dir/lib $LDFLAGS" - fi - if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then - LIBS="$LIBS -lRSAglue" - fi - if test -f $ac_cv_ssleay_path/lib/librsaref.a; then - LIBS="$LIBS -lrsaref" - fi - AC_CHECK_LIB(crypto, DES_cbc_encrypt) - - savedcppflags="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $V_INCLS" - AC_CHECK_HEADERS(openssl/evp.h) - CPPFLAGS="$savedcppflags" - else - # - # Not found. Did the user explicitly ask for it? - # - AC_MSG_RESULT(not found) - if test "$want_libcrypto" = yes; then - AC_MSG_ERROR(SSLeay not found) - fi - fi + AC_CHECK_LIB(crypto, DES_cbc_encrypt) + AC_CHECK_HEADERS(openssl/evp.h) fi dnl |