apitrace/apitrace — pull request #65 by guanqun (2012-02-05 02:09:11+00:00)
Title: do not compile gui when other required packages are not there

Fix the typo so that correct variable is checked.

e.g. when qjson is installed but qt webkit is not installed, gui should not be installed, without this fix, it adds gui/ directory anyway. This would result later compilation errors for missing header files such as following:

In file included from /home/q/apitrace/gui/mainwindow.h:4:0,
from /home/q/apitrace/gui/mainwindow.cpp:1:
/home/q/apitrace/build/gui/ui_mainwindow.h:37:29: fatal error: QtWebKit/QWebView: No such file or directory
compilation terminated.

Please review.
Thanks!