Skip to content

Commit fc52248

Browse files
Correctly detect FreeBSD when configuring.
Thanks to yurivict for helping. Closes qbittorrent#2962.
1 parent 4725022 commit fc52248

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4263,7 +4263,7 @@ fi
42634263
# Detect OS
42644264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS is FreeBSD" >&5
42654265
$as_echo_n "checking whether OS is FreeBSD... " >&6; }
4266-
if test "x$host_os" = "x*FreeBSD*"; then :
4266+
if expr "$host_os" : ".*freebsd.*" > /dev/null; then :
42674267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42684268
$as_echo "yes" >&6; }
42694269
LIBS="-lexecinfo $LIBS"

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ AC_ARG_ENABLE(qt-dbus,
7474

7575
# Detect OS
7676
AC_MSG_CHECKING([whether OS is FreeBSD])
77-
AS_IF([test "x$host_os" = "x*FreeBSD*"],
77+
AS_IF([expr "$host_os" : ".*freebsd.*" > /dev/null],
7878
[AC_MSG_RESULT([yes])
7979
LIBS="-lexecinfo $LIBS"],
8080
[AC_MSG_RESULT([no])])

0 commit comments

Comments
 (0)