Save RSA public and private keys to a separate file, instead of
[tinc] / m4 / openssl.m4
index 0db5097..2d24258 100644 (file)
@@ -37,16 +37,16 @@ if test "$tinc_cv_openssl_lib" != "none given" ; then
   LIBS="$LIBS -L$tinc_cv_openssl_lib"
 fi
 if test "$tinc_cv_openssl_include" != "none given" ; then
   LIBS="$LIBS -L$tinc_cv_openssl_lib"
 fi
 if test "$tinc_cv_openssl_include" != "none given" ; then
-  INCLUDES="$INCLUDES -I$tinc_cv_openssl_include"
+  CFLAGS="$CFLAGS -I$tinc_cv_openssl_include"
 fi
 
 osi=found
 fi
 
 osi=found
-AC_CHECK_HEADERS(evp.h rsa.h rand.h err.h sha.h,
+AC_CHECK_HEADERS(evp.h rsa.h rand.h err.h sha.h pem.h,
 [], [osi=none; break])
 
 if test "$osi" = "none" ; then
   osi=found
 [], [osi=none; break])
 
 if test "$osi" = "none" ; then
   osi=found
-  AC_CHECK_HEADERS(openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h,
+  AC_CHECK_HEADERS(openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h openssl/pem.h,
   [], [osi=none; break])
 fi
 
   [], [osi=none; break])
 fi