1 --- configure.ac.orig 2014-09-27 12:55:02.445395745 +0200
2 +++ configure.ac 2014-09-27 12:55:39.848729357 +0200
4 [nss_crypt=$enableval],
6 if test x$nss_crypt = xyes; then
7 - nss_includes=-I$(nss-config --includedir 2>/dev/null)
8 - if test $? -ne 0; then
9 - AC_MSG_ERROR([cannot find include directory with nss-config])
11 + nss_includes='-I/usr/include/nss -I/usr/include/nspr'
13 CFLAGS="$CFLAGS $nss_includes"
14 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([typedef int PRBool;
15 --- crypt/Makefile.orig 2014-09-27 13:04:28.422466311 +0200
16 +++ crypt/Makefile 2014-09-27 13:05:00.672466567 +0200
20 ifeq ($(nss-crypt),yes)
21 -CPPFLAGS-sha256-crypt.c = -DUSE_NSS -I$(shell nss-config --includedir)
22 -CPPFLAGS-sha512-crypt.c = -DUSE_NSS -I$(shell nss-config --includedir)
23 -CPPFLAGS-md5-crypt.c = -DUSE_NSS -I$(shell nss-config --includedir)
24 +CPPFLAGS-sha256-crypt.c = -DUSE_NSS -I/usr/include/nss -I/usr/include/nspr
25 +CPPFLAGS-sha512-crypt.c = -DUSE_NSS -I/usr/include/nss -I/usr/include/nspr
26 +CPPFLAGS-md5-crypt.c = -DUSE_NSS -I/usr/include/nss -I/usr/include/nspr
27 LDLIBS-crypt.so = -lfreebl3
29 libcrypt-routines += md5 sha256 sha512