Skip to content

Commit

Permalink
Fix #173 - qmake detection in configure
Browse files Browse the repository at this point in the history
Fix finding qmake5 when requested and installed alongside qmake.
  • Loading branch information
crumpled-acronym authored Oct 29, 2024
1 parent 71a8db3 commit ce22b58
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
9 changes: 4 additions & 5 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -469,14 +469,13 @@ else
echo no
fi ; fi
if [ "$WANT_QMAKE6" = "1" ]; then
QMAKE=""; fi
if [ "$HAVE_QMAKE" = "1" ]; then
QMAKE_BIN="${QMAKE}"
else
if [ "$HAVE_QMAKE6" = "1" ]; then
QMAKE_BIN="${QMAKE6}"
else
case "$undefined_variable" in 0|"") echo ; echo "ERROR: Missing qmake" >&2 ; echo ; exit 1 ;; esac; fi; fi
case "$undefined_variable" in 0|"") echo ; echo "ERROR: Missing qmake6" >&2 ; echo ; exit 1 ;; esac; fi
else
if [ "$HAVE_QMAKE" = "1" ]; then
QMAKE_BIN="${QMAKE}"; fi; fi
if [ "$QMAKE_BIN" = """" ]; then
case "$undefined_variable" in 0|"") echo ; echo "ERROR: Missing qmake" >&2 ; echo ; exit 1 ;; esac; fi
WANT_PYTHON="0"
Expand Down
22 changes: 11 additions & 11 deletions configure.acr
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ CHKPRG QMAKE6 qmake6
(( CHKPRG! LRELEASE lrelease ))

ARG_WITH WANT_QMAKE6 qmake6 ignore qmake in path when qmake6 is found ;
IF WANT_QMAKE6 {
QMAKE = "" ;
}

IFEQ HAVE_QMAKE 1 ; {
QMAKE_BIN = ${QMAKE} ;
IFEQ WANT_QMAKE6 1 ; {
IFEQ HAVE_QMAKE6 1 ; {
QMAKE_BIN = ${QMAKE6} ;
}{
DIENOW Missing qmake6 ;
}
}{
IFEQ HAVE_QMAKE6 1 ; {
QMAKE_BIN = ${QMAKE6} ;
}{
DIENOW Missing qmake ;
}
IFEQ HAVE_QMAKE 1 ; {
QMAKE_BIN = ${QMAKE} ;
}

}

IFEQ QMAKE_BIN "" ; {
DIENOW Missing qmake ;
DIENOW Missing qmake ;
}

WANT_PYTHON = 0 ;
Expand Down

0 comments on commit ce22b58

Please sign in to comment.