prefer python 3m
@@ -63,6 +63,14 @@ CFLAGS += -Wall -g -Wno-pointer-sign -I include/ \
AFL_FUZZ_FILES = $(wildcard src/afl-fuzz*.c)
+ifneq "$(shell which python3m)" ""
+ ifneq "$(shell which python3m-config)" ""
+ PYTHON_INCLUDE ?= $(shell python3m-config --includes)
+ PYTHON_LIB ?= $(shell python3m-config --ldflags)
+ PYTHON_VERSION ?= $(strip $(shell python3m --version 2>&1))
+ endif
+endif
+
ifneq "$(shell which python3)" ""
ifneq "$(shell which python3-config)" ""
PYTHON_INCLUDE ?= $(shell python3-config --includes)
