瀏覽代碼

config.m4 PHP openssl parameters

viest 2 年之前
父節點
當前提交
053e05d8db
共有 1 個文件被更改,包括 6 次插入1 次删除
  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)