Try to fix linux for installations that don't have openssl includes.

This commit is contained in:
nhkeni
2024-02-15 18:08:58 -05:00
parent 252f70b4b3
commit 727740749e
2 changed files with 18 additions and 13 deletions
+3 -4
View File
@@ -240,7 +240,8 @@
#define GREPPATH "/bin/grep"
#endif
#ifndef CRASHREPORT
#ifdef NOCRASHREPORT
# ifndef CRASHREPORT
# ifdef MACOS
# define CRASHREPORT "/usr/bin/open"
# endif
@@ -253,9 +254,7 @@
# ifdef WIN32
# define CRASHREPORT /* builtin helper */
# endif
#endif
#ifdef MSDOS
# undef CRASHREPORT
# endif
#endif
#ifdef CRASHREPORT
+6
View File
@@ -110,7 +110,13 @@ endif #HAVE_NCURSESW
endif #MAKEFILE_SRC
endif #USE_CURSESLIB
# autodetect missing openssl header needed for CRASHREPORT
CROK=$(shell ls /usr/include/openssl/md4.h 2>/dev/null | wc -l )
ifeq "$(CROK)" "1"
AUTOLIBS=$(shell (../util/makedefs --grep-defined CRASHREPORT && echo "-lcrypto" ) || true )
else
NHCFLAGS+=-DNOCRASHREPORT
endif
# NetHack sources control
NHCFLAGS+=-DDLB