From a883f65ab94973d4c7948623186159f978517851 Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 9 Mar 2015 19:33:18 +0100 Subject: Bug 745870 - [PATCH] QT4's qmake is titled differently on Fedora 21 Corrected patch for the problem. Here nothing to be copied but multiple possibilities for executables are checked. --- addon/doxywizard/Makefile.in | 2 +- configure | 28 +++++++++++++++++++--------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/addon/doxywizard/Makefile.in b/addon/doxywizard/Makefile.in index fe0ac21..79b885e 100644 --- a/addon/doxywizard/Makefile.in +++ b/addon/doxywizard/Makefile.in @@ -10,7 +10,7 @@ # See the GNU General Public License for more details. # -QMAKE=$(QTDIR)/bin/qmake $(MKSPECS) +QMAKE=$(QTDIR)/bin/$(QMAKEEXE) $(MKSPECS) INCBUFSIZE=$(PYTHON) ../../src/increasebuffer.py all: Makefile.doxywizard diff --git a/configure b/configure index 544d06a..c7040be 100755 --- a/configure +++ b/configure @@ -363,18 +363,27 @@ if test "$f_wizard" = YES; then echo " QTDIR environment variable not set!" printf " Checking for Qt..." for d in /usr/{lib,share,qt}/{qt-4,qt4,qt,qt*,4} /usr; do - if test -x "$d/bin/qmake"; then - QTDIR=$d - break 2 - fi + for e in qmake gmake-qt4; do + if test -x "$d/bin/$e"; then + QTDIR=$d + QMAKEEXE=$e + break 2 + fi + done done else - if test -e "$QTDIR/bin/qmake"; then - printf " Detected Qt via the QTDIR environment variable..." - else + for e in qmake gmake-qt4; do + if test -x "$QTDIR/bin/$e"; then + if test -e "$QTDIR/bin/$e"; then + printf " Detected Qt via the QTDIR environment variable..." + QMAKEEXE=$e + fi + fi + done + if test -z "$QMAKEEXE"; then printf "ERROR Detected Qt via the QTDIR environment variable..." - echo ", but $QTDIR/bin/qmake does not exist." - echo " Set the QTDIR environment variable such that \$QTDIR/bin/qmake exists." + echo ", but $QTDIR/bin/qmake or variant does not exist." + echo " Set the QTDIR environment variable such that \$QTDIR/bin/qmake or variant exists." exit 2 fi fi @@ -771,6 +780,7 @@ INSTTOOL = $f_insttool DOXYDOCS = .. DOCDIR = $f_docdir QTDIR = $QTDIR +QMAKEEXE = $QMAKEEXE EOF if test "$f_dot" != NO; then -- cgit v0.12