mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 12:36:09 -07:00
Add more check to detect missing header file for radmin support
This commit is contained in:
parent
f4b48c0513
commit
6e3f02b419
1 changed files with 21 additions and 8 deletions
29
configure
vendored
29
configure
vendored
|
@ -38,6 +38,7 @@ WSSL_LIB_PATH=""
|
|||
CURSES_PATH=""
|
||||
CURSES_IPATH=""
|
||||
CRYPTO_PATH=""
|
||||
GPGERROR_IPATH=""
|
||||
IDN_PATH=""
|
||||
IDN_IPATH=""
|
||||
PR29_IPATH=""
|
||||
|
@ -125,6 +126,7 @@ echo "Starting hydra auto configuration ..."
|
|||
rm -f Makefile.in
|
||||
SYSS=`uname -s 2> /dev/null`
|
||||
SYSO=`uname -o 2> /dev/null`
|
||||
SYSM=`uname -m 2> /dev/null`
|
||||
if [ "$SYSS" = "Linux" -o "$SYSS" = "OpenBSD" -o "$SYSS" = "FreeBSD" -o "$SYSS" = "NetBSD" -o "$SYSS" = "Darwin" ]; then
|
||||
SF=`uname -m | grep 64`
|
||||
if [ `uname -m` = "s390x" ]; then
|
||||
|
@ -260,22 +262,33 @@ if [ "$SSL_IPATH" = "/usr/include" ]; then
|
|||
SSL_IPATH=""
|
||||
fi
|
||||
|
||||
echo "Checking for gcrypt (libgcrypt.so) ..."
|
||||
echo "Checking for gcrypt (libgcrypt.so, gpg-error.h) ..."
|
||||
for i in $LIBDIRS ; do
|
||||
if [ "X" = "X$GCRYPT_PATH" ]; then
|
||||
if [ -f "$i/libgcrypt.so" -o -f "$i/libgcrypt.dylib" -o -f "$i/libgcrypt.a" -o -f "$i/libgcrypt.dll.a" -o -f "$i/libgcrypt.la" ]; then
|
||||
if [ -f "$i/libgcrypt.so" -o -f "$i/libgcrypt.dylib" -o -f "$i/libgcrypt.a" -o -f "$i/libgcrypt.dll.a" -o -f "$i/libgcrypt.la" ]; then
|
||||
HAVE_GCRYPT="y"
|
||||
fi
|
||||
done
|
||||
|
||||
for i in $INCDIRS ; do
|
||||
if [ "X" = "X$GPGERROR_IPATH" ]; then
|
||||
TMP_PATH=`/bin/ls $i/$SYSM*/gpg-error.h 2> /dev/null`
|
||||
if [ -n "$TMP_PATH" ]; then
|
||||
GPGERROR_IPATH="$i"
|
||||
else
|
||||
if [ -f "$i/gpg-error.h" ]; then
|
||||
GPGERROR_IPATH="$i"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if [ -n "$HAVE_GCRYPT" ]; then
|
||||
echo " ... found"
|
||||
|
||||
if [ -n "$HAVE_GCRYPT" -a "X" != "X$GPGERROR_IPATH" ]; then
|
||||
echo " ... found"
|
||||
else
|
||||
echo " ... gcrypt not found, radmin2 module disabled"
|
||||
echo " ... gcrypt not found, radmin2 module disabled"
|
||||
HAVE_GCRYPT=""
|
||||
fi
|
||||
|
||||
|
||||
|
||||
echo "Checking for idn (libidn.so) ..."
|
||||
for i in $LIBDIRS ; do
|
||||
if [ "X" = "X$IDN_PATH" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue