Browse Source

config.m4 PHP openssl parameters

viest 2 years ago
parent
commit
053e05d8db
1 changed files with 6 additions and 1 deletions
  1. 6 1
      config.m4

+ 6 - 1
config.m4

@@ -96,7 +96,12 @@ if test "$PHP_XLSWRITER" != "no"; then
         done
 
         if test -z "$OPENSSL_DIR"; then
-            AC_MSG_ERROR([openssl library not found])
+            PHP_SETUP_OPENSSL(XLSWRITER_SHARED_LIBADD,
+            [
+                AC_DEFINE(USE_OPENSSL_MD5, 1, [ use openssl md5 ])
+            ], [
+                AC_MSG_ERROR([openssl library not found])
+            ])
         else
             PHP_ADD_INCLUDE($OPENSSL_DIR/include)