mirror of
https://github.com/rfc1036/whois.git
synced 2026-05-03 06:51:09 +00:00
mkpasswd: support the new libxcrypt 4.x
This commit is contained in:
parent
71cf1ca7e1
commit
5fc64b5eba
6
Makefile
6
Makefile
@ -51,10 +51,12 @@ whois_OBJECTS += simple_recode.o
|
|||||||
DEFS += -DHAVE_ICONV
|
DEFS += -DHAVE_ICONV
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef HAVE_XCRYPT
|
ifeq ($(shell $(PKG_CONFIG) --exists 'libxcrypt >= 4.1' || echo NO),)
|
||||||
|
DEFS += -DHAVE_LINUX_CRYPT_GENSALT $(shell $(PKG_CONFIG) --cflags libcrypt)
|
||||||
|
mkpasswd_LDADD += $(shell $(PKG_CONFIG) --libs libcrypt)
|
||||||
|
else ifdef HAVE_XCRYPT
|
||||||
mkpasswd_LDADD += -lxcrypt
|
mkpasswd_LDADD += -lxcrypt
|
||||||
DEFS += -DHAVE_XCRYPT -DHAVE_LINUX_CRYPT_GENSALT
|
DEFS += -DHAVE_XCRYPT -DHAVE_LINUX_CRYPT_GENSALT
|
||||||
else
|
|
||||||
ifdef HAVE_LINUX_CRYPT_GENSALT
|
ifdef HAVE_LINUX_CRYPT_GENSALT
|
||||||
# owl and openSUSE have crypt_gensalt(3) in the libc's libcrypt
|
# owl and openSUSE have crypt_gensalt(3) in the libc's libcrypt
|
||||||
DEFS += -DHAVE_LINUX_CRYPT_GENSALT
|
DEFS += -DHAVE_LINUX_CRYPT_GENSALT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user