Correct PCRE_CHECK

This commit is contained in:
Vladimir Dubrovin 2026-03-27 18:04:40 +03:00
parent 3a2223b798
commit 4a3bd4a068
5 changed files with 8 additions and 5 deletions

View File

@ -28,7 +28,10 @@ jobs:
run: ln -s Makefile.Linux Makefile
- name: Linux libraries
if: ${{ startsWith(matrix.target, 'ubuntu') }}
run: sudo apt install libssl-dev libpam-dev
run: sudo apt install libssl-dev libpam-dev libpcre libpcre-dev
- name: Mac libraries
if: ${{ startsWith(matrix.target, 'macos') }}
run: brew install pcre
- name: ln Mac
if: ${{ startsWith(matrix.target, 'macos') }}
run: ln -s Makefile.FreeBSD Makefile

View File

@ -40,7 +40,7 @@ ifeq ($(PAM_CHECK), true)
PLUGINS += PamAuth
endif
PCRE_CHECK = $(shell echo "\#include <pcre.h>\\n int main(){return 0;}" | cc -x c $(CFLAGS) $(LDFLAGS) -l pcre -o testpcre - 2>/dev/null && rm testpcre && echo true||echo false)
ifeq ($(OPENSSL_CHECK), true)
ifeq ($(PCRE_CHECK), true)
PLUGINS += PCREPlugin
endif

View File

@ -42,7 +42,7 @@ ifeq ($(OPENSSL_CHECK), true)
PLUGINS += SSLPlugin
endif
PCRE_CHECK = $(shell echo "#include <pcre.h>\\n int main(){return 0;}" | cc -x c $(CFLAGS) $(LDFLAGS) -l pcre -o testpcre - 2>/dev/null && rm testpcre && echo true||echo false)
ifeq ($(OPENSSL_CHECK), true)
ifeq ($(PCRE_CHECK), true)
PLUGINS += PCREPlugin
endif
PAM_CHECK = $(shell echo "#include <security/pam_appl.h>\\n int main(){return 0;}" | cc -x c $(CFLAGS) $(LDFLAGS) -l pam -o testpam - 2>/dev/null && rm testpam && echo true||echo false)

View File

@ -42,7 +42,7 @@ ifeq ($(OPENSSL_CHECK), true)
PLUGINS += SSLPlugin
endif
PCRE_CHECK = $(shell echo "#include <pcre.h>\\n int main(){return 0;}" | cc -x c $(CFLAGS) $(LDFLAGS) -l pcre -o testpcre - 2>/dev/null && rm testpcre && echo true||echo false)
ifeq ($(OPENSSL_CHECK), true)
ifeq ($(PCRE_CHECK), true)
PLUGINS += PCREPlugin
endif
PAM_CHECK = $(shell echo "#include <security/pam_appl.h>\\n int main(){return 0;}" | cc -x c $(CFLAGS) $(LDFLAGS) -l pam -o testpam - 2>/dev/null && rm testpam && echo true||echo false)

View File

@ -44,7 +44,7 @@ ifeq ($(PAM_CHECK), true)
PLUGINS += PamAuth
endif
PCRE_CHECK = $(shell echo "\#include <pcre.h>\\n int main(){return 0;}" | cc -x c $(CFLAGS) $(LDFLAGS) -l pcre -o testpcre - 2>/dev/null && rm testpcre && echo true||echo false)
ifeq ($(OPENSSL_CHECK), true)
ifeq ($(PCRE_CHECK), true)
PLUGINS += PCREPlugin
endif
include Makefile.inc