Skip to content

Commit

Permalink
Add check on FreeBSD version
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Jul 12, 2024
1 parent 3a4ff8a commit 8e8cb0e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions configure.ac.in
Original file line number Diff line number Diff line change
Expand Up @@ -541,11 +541,12 @@ AS_VAR_IF(with_hiredis, yes, [
pkg-config --exists hiredis
if test "$?" -ne 1; then
HIREDIS_INC="`pkg-config --cflags hiredis` -I/usr/include/hiredis"
#if test $SYSTEM = "FreeBSD"; then
# HIREDIS_LIB="/usr/local/lib/libhiredis.a"
#else
if test $SYSTEM = "FreeBSD" && $FREEBSD_VERSION != "15"; then
dnl> Note: on freebsd 15 .a is not installed
HIREDIS_LIB="/usr/local/lib/libhiredis.a"
else
HIREDIS_LIB="`pkg-config --libs hiredis`"
#fi
fi
else
echo "Please install hiredis package prerequisite"
exit -1
Expand Down

0 comments on commit 8e8cb0e

Please sign in to comment.