Skip to content

Commit

Permalink
Add config.w32 to allow building on Windows (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 authored and remicollet committed Dec 11, 2024
1 parent d6be44b commit 0b684e5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config.w32
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");
}
}

0 comments on commit 0b684e5

Please sign in to comment.