Merge pull request #627 from proski/openssl
Check for openssl binary in configure, don't fail if not found
This commit is contained in:
commit
92d9f2e37e
@ -145,6 +145,10 @@ AC_SUBST(DLOPEN_LIBS)
|
|||||||
PKG_CHECK_MODULES([OPENSSL], [openssl >= 0], [],
|
PKG_CHECK_MODULES([OPENSSL], [openssl >= 0], [],
|
||||||
[AC_MSG_ERROR([please install libssl-dev or openssl-devel])])
|
[AC_MSG_ERROR([please install libssl-dev or openssl-devel])])
|
||||||
|
|
||||||
|
# look for openssl binary
|
||||||
|
OPENSSL_BIN=`$PKG_CONFIG --variable=exec_prefix openssl`/bin
|
||||||
|
AC_PATH_PROGS([OPENSSL], [openssl], [:], [$OPENSSL_BIN:$PATH])
|
||||||
|
|
||||||
# checking for pam variation
|
# checking for pam variation
|
||||||
# Linux-PAM is used in Linux systems
|
# Linux-PAM is used in Linux systems
|
||||||
# OpenPAM is used by FreeBSD, NetBSD, DragonFly BSD and OS X
|
# OpenPAM is used by FreeBSD, NetBSD, DragonFly BSD and OS X
|
||||||
|
@ -23,7 +23,7 @@ install-data-hook:
|
|||||||
./xrdp-keygen xrdp $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini; \
|
./xrdp-keygen xrdp $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini; \
|
||||||
fi && \
|
fi && \
|
||||||
if [ ! -f $(DESTDIR)$(xrdpsysconfdir)/cert.pem ]; then \
|
if [ ! -f $(DESTDIR)$(xrdpsysconfdir)/cert.pem ]; then \
|
||||||
openssl req -x509 -newkey rsa:2048 -sha256 -nodes \
|
$(OPENSSL) req -x509 -newkey rsa:2048 -sha256 -nodes \
|
||||||
-keyout $(DESTDIR)$(xrdpsysconfdir)/key.pem -out \
|
-keyout $(DESTDIR)$(xrdpsysconfdir)/key.pem -out \
|
||||||
$(DESTDIR)$(xrdpsysconfdir)/cert.pem -days 365 \
|
$(DESTDIR)$(xrdpsysconfdir)/cert.pem -days 365 \
|
||||||
-subj /C=US/ST=CA/L=Sunnyvale/O=xrdp/CN=www.xrdp.org \
|
-subj /C=US/ST=CA/L=Sunnyvale/O=xrdp/CN=www.xrdp.org \
|
||||||
|
Loading…
Reference in New Issue
Block a user