Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
* New: check qmake version in configure
Browse files Browse the repository at this point in the history
  • Loading branch information
bylee20 committed Jan 17, 2015
1 parent 023b7d6 commit 00c63b4
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,24 @@ setup_dirs
setup_features
setup_build

# check qmake is valid
printf "checking for qmake ... "
if [ -z "$(LANG=en_US.UTF-8 $qmake -v | grep "version 5.")" ]; then
echo "no"
echo "'$qmake' is not a valid qmake executable."
exit
else
echo "yes"
fi

add_defines BOMI_SKINS_PATH "\"$skindir\""
add_defines BOMI_IMPORTS_PATH "\"$importdir\""
add_defines BOMI_DEFAULT_SKIN "\"$defaultskin\""

if has_arg release ; then defines="$defines BOMI_RELEASE"; fi
if has_arg release ; then
add_defines BOMI_RELEASE 1
else
add_defines BOMI_RELEASE 0
fi

parse_file() {
cp $1.in $1
Expand Down

0 comments on commit 00c63b4

Please sign in to comment.