diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-12-21 01:18:21 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-12-21 01:18:21 (GMT) |
commit | 43e1d6150db62e35fd28aacbd805beaa6a903c70 (patch) | |
tree | 59ff449c3ce8be5a7a2fd270772ea9d591b5e63b /bison.pri | |
parent | 0de73575287d16be8e5004d19dbdc942cb917537 (diff) |
download and build bison if needed. detect better on BSD
Diffstat (limited to 'bison.pri')
-rw-r--r-- | bison.pri | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -19,11 +19,19 @@ win32 { unix:freebsd-g++ { # on bsd /usr/bin/bison is outdated, dont use it - QMAKE_YACC = /usr/local/bin/bison + exists(/usr/local/bin/bison) { + QMAKE_YACC = /usr/local/bin/bison + } else { # look in $PATH + QMAKE_YACC = bison + } } unix:netbsd* { - QMAKE_YACC = /usr/pkg/bin/bison + exists(/usr/pkg/bin/bison) { + QMAKE_YACC = /usr/pkg/bin/bison + } else { # look in $PATH + QMAKE_YACC = bison + } } unix:linux* { |