Also check for rand.h and err.h. If any of these files does not
exist, try the next alternative path.
This commit is contained in:
parent
c5c8e99afd
commit
8eb60d0ccd
1 changed files with 6 additions and 7 deletions
|
@ -40,15 +40,14 @@ if test "$tinc_cv_openssl_include" != "none given" ; then
|
||||||
INCLUDES="$INCLUDES -I$tinc_cv_openssl_include"
|
INCLUDES="$INCLUDES -I$tinc_cv_openssl_include"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
osi=none
|
osi=found
|
||||||
AC_CHECK_HEADERS(evp.h rsa.h,
|
AC_CHECK_HEADERS(evp.h rsa.h rand.h err.h,
|
||||||
[osi=found
|
[], [osi=none; break])
|
||||||
break])
|
|
||||||
|
|
||||||
if test "$osi" = "none" ; then
|
if test "$osi" = "none" ; then
|
||||||
AC_CHECK_HEADERS(openssl/evp.h openssl/rsa.h,
|
osi=found
|
||||||
[osi=found
|
AC_CHECK_HEADERS(openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h,
|
||||||
break])
|
[], [osi=none; break])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue