-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config.w32 to allow building on Windows (#4)
- Loading branch information
1 parent
d6be44b
commit 0b684e5
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ARG_ENABLE("xpass", "Enable xpass support", "no"); | ||
|
||
if (PHP_XPASS != "no") { | ||
if (CHECK_LIB("crypt.lib", "xpass", PHP_XPASS) | ||
&& CHECK_HEADER_ADD_INCLUDE("crypt.h", "CLFAGS_XPASS", PHP_XPASS) | ||
&& CHECK_LIB("bcrypt.lib", "xpass", PHP_XPASS)) { | ||
AC_DEFINE("HAVE_XPASS", 1, "Have xpass support"); | ||
EXTENSION("xpass", "xpass.c"); | ||
AC_DEFINE("HAVE_CRYPT_YESCRYPT", 1, "Have yescrypt hash support"); | ||
AC_DEFINE("HAVE_CRYPT_SHA512", 1, "Have sha512 hash support"); | ||
} else { | ||
WARNING("xpass not enabled; libraries and headers not found"); | ||
} | ||
} |