From e6b2919eb2ccafa6c727233cdb4db68af7bc19a5 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Thu, 8 May 2014 00:51:23 +0300 Subject: [PATCH] Support out of srcdir builds. --- configure | 3 ++- configure.ac | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b1176eef8..2710aa5ac 100755 --- a/configure +++ b/configure @@ -6697,8 +6697,9 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: Running qmake to generate the makefile..." >&5 $as_echo "$as_me: Running qmake to generate the makefile..." >&6;} +CONFDIR="$( cd "$( dirname "$0" )" && pwd )" -$QT_QMAKE qbittorrent.pro +$QT_QMAKE $CONFDIR/qbittorrent.pro ret="$?" diff --git a/configure.ac b/configure.ac index 292623013..845e5c17d 100644 --- a/configure.ac +++ b/configure.ac @@ -183,8 +183,9 @@ AC_OUTPUT(conf.pri) AC_MSG_NOTICE([Running qmake to generate the makefile...]) +CONFDIR="$( cd "$( dirname "$0" )" && pwd )" -$QT_QMAKE qbittorrent.pro +$QT_QMAKE [$CONFDIR]/qbittorrent.pro ret="$?"