From 5852c5e318f89ef7ec17277778ef7cfc51eb23a4 Mon Sep 17 00:00:00 2001 From: Zach Bacon <11doctorwhocanada@gmail.com> Date: Wed, 20 Jan 2016 18:26:55 -0500 Subject: [PATCH] tests if qmake is in path properly --- m4/qbittorrent.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/qbittorrent.m4 b/m4/qbittorrent.m4 index 9e9fc0f2e..7fbf482d5 100644 --- a/m4/qbittorrent.m4 +++ b/m4/qbittorrent.m4 @@ -36,9 +36,9 @@ AC_DEFUN([FIND_QT5], [host_bins]) ]) -AS_IF([$QT_QMAKE/qmake], +AS_IF([test -f "$QT_QMAKE/qmake"], [QT_QMAKE="$QT_QMAKE/qmake"], - [AS_IF([$QT_QMAKE/qmake-qt5], + [AS_IF([test -f "$QT_QMAKE/qmake-qt5"] [QT_QMAKE="$QT_QMAKE/qmake-qt5"], [QT_QMAKE=""]) ])