9
# Check for Qt4 version of qmake.
11
# $QMAKE4 is set to absolute name of the executable if found.
19
# Copyright (c) 2007 YAMAMOTO Kengo <yamaken AT bp.iij4u.or.jp>
21
# Copying and distribution of this file, with or without
22
# modification, are permitted in any medium without royalty provided
23
# the copyright notice and this notice are preserved.
25
AC_DEFUN([AX_PATH_QMAKE4], [
26
ax_guessed_qt4_dirs="/usr/lib/qt4/bin:/usr/local/lib/qt4/bin:/usr/qt4/bin:/usr/local/qt4/bin:${QT4DIR}/bin:${QTDIR}/bin"
28
AC_PATH_PROGS(_QMAKE4, [qmake-qt4 qmake4], [], ["$with_qt/bin:$PATH:$ax_guessed_qt4_dirs"])
29
AC_PATH_PROGS(_QMAKE, [qmake], [], ["$with_qt/bin:$PATH:$ax_guessed_qt4_dirs"])
31
AC_CACHE_CHECK([for Qt4 version of qmake], ax_cv_path_QMAKE4, [
33
for qmake4 in ${_QMAKE4} ${_QMAKE}; do
34
if ($qmake4 --version 2>&1 | $EGREP -q 'Qt.*[[Vv]]ersion 4.[[3456789]]'); then
36
ax_cv_path_QMAKE4="$qmake4"
41
if test "x$ax_cv_path_QMAKE4" = "xno"; then
43
ophcrack requires Qt toolkit version 4.3 or later.
44
Please disable the GUI via '--disable-gui',
45
or see http://www.trolltech.com/ to obtain it.])