diff options
Diffstat (limited to 'bksys/kde.py')
-rw-r--r-- | bksys/kde.py | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/bksys/kde.py b/bksys/kde.py index 7d5ae2b..1f435da 100644 --- a/bksys/kde.py +++ b/bksys/kde.py @@ -166,25 +166,26 @@ def detect_kde(env): env.Exit(1) env['QT_MOC'] = moc - ## check for the tqt and kde includes - print "Checking for the tqt includes : ", - if qtincludes and os.path.isfile(qtincludes + "/tqt.h"): + ## check for the qt and kde includes + print "Checking for the qt includes : ", + if qtincludes and os.path.isfile(qtincludes + "/qlayout.h"): # The user told where to look for and it looks valid print GREEN + "ok " + qtincludes + NORMAL else: - if os.path.isfile(qtdir + "/include/tqt.h"): + if os.path.isfile(qtdir + "/include/qlayout.h"): # Automatic detection print GREEN + "ok " + qtdir + "/include/ " + NORMAL qtincludes = qtdir + "/include/" - elif os.path.isfile("/usr/include/tqt.h"): - print YELLOW + "the tqt headers were found in /usr/include/ " + NORMAL - qtincludes = "/usr/include" - elif os.path.isfile("/usr/include/tqt/tqt.h"): + elif os.path.isfile("/usr/include/qt3/qlayout.h"): # Debian probably - print YELLOW + "the tqt headers were found in /usr/include/tqt/ " + NORMAL - qtincludes = "/usr/include/tqt" + print YELLOW + "the qt headers were found in /usr/include/qt3/ " + NORMAL + qtincludes = "/usr/include/qt3" + elif os.path.isfile("/usr/include/qt4/Qt/qglobal.h"): + # Debian probably + print YELLOW + "the qt headers were found in /usr/include/qt4/ " + NORMAL + qtincludes = "/usr/include/qt4" else: - print RED + "the tqt headers were not found" + NORMAL + print RED + "the qt headers were not found" + NORMAL env.Exit(1) print "Checking for the kde includes : ", |