- Timestamp:
- May 18, 2006, 2:26:34 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/acinclude.m4
r7661 r7669 85 85 QT_INCLUDE_DIRECTORY="" 86 86 QT_LIB_DIRECTORY="" 87 87 QT_BIN_DIRECTORY="" 88 88 89 89 QT_COMMON_INCLUDE_DIRECTORIES=" … … 95 95 `ls -dr /opt/qt*/include 2>/dev/null` 96 96 `ls -dr /Developer/qt*/include 2>/dev/null` 97 `ls -dr /c/Qt/*/include 2>/dev/null` 97 98 " 98 99 … … 101 102 /usr/include 102 103 `ls -dr /usr/lib/qt* 2>/dev/null` 103 `ls -dr /usr/lib/qt* 2>/dev/null`104 104 `ls -dr /usr/local/qt*/lib 2>/dev/null` 105 105 `ls -dr /opt/qt*/lib 2>/dev/null` 106 106 `ls -dr /Developer/qt*/lib 2>/dev/null` 107 `ls -dr /c/Qt/*/lib 2>/dev/null` 107 108 " 108 109 109 ## Search in all IncludeDirectories for QT-includes 110 QT_COMMON_BIN_DIRECTORIES=" 111 `ls -dr ${QT_PREFIX}/bin 2>/dev/null` 112 /usr/bin 113 `ls -dr /usr/bin/qt* 2>/dev/null` 114 `ls -dr /usr/local/qt*/bin 2>/dev/null` 115 `ls -dr /opt/qt*/bin 2>/dev/null` 116 `ls -dr /Developer/qt*/bin 2>/dev/null` 117 `ls -dr /c/Qt/*/bin 2>/dev/null` 118 " 119 120 ## Search in all IncludeDirectories for QT-includes 110 121 for _include_directory in ${QT_COMMON_INCLUDE_DIRECTORIES} 111 122 do 112 if test -e ${_include_directory}/Qt /QtCore; then123 if test -e ${_include_directory}/QtCore/QtCoreApplication ; then 113 124 QT_INCLUDE_DIRECTORY=${_include_directory} 114 125 break … … 124 135 for _lib_directory in ${QT_COMMON_LIB_DIRECTORIES} 125 136 do 126 if test -e ${_lib_directory}/libQtCore.so || test -e ${_lib_directory}/libQtCore .dll; then137 if test -e ${_lib_directory}/libQtCore.so || test -e ${_lib_directory}/libQtCore4.a ; then 127 138 QT_LIB_DIRECTORY=${_lib_directory} 128 139 break … … 133 144 else 134 145 AC_MSG_ERROR([Qt LIB not found]) 146 fi 147 148 ## Search in all BINDirectories for QT-executables 149 for _bin_directory in ${QT_COMMON_BIN_DIRECTORIES} 150 do 151 if test -e ${_bin_directory}/moc || test -e ${_bin_directory}/moc.exe ; then 152 QT_BIN_DIRECTORY=${_bin_directory} 153 break 154 fi 155 done 156 if test -n ${QT_BIN_DIRECTORY} ; then 157 echo "Qt-Bin Directory is: ${QT_BIN_DIRECTORY}" 158 else 159 QT_BIN_DIRECTORY=${QT_PREFIX}/bin 135 160 fi 136 161 … … 139 164 QT_CXXFLAGS="-I${QT_INCLUDE_DIRECTORY}" 140 165 LDFLAGS="${LDFLAGS} -L${QT_LIB_DIRECTORY} -Wl,-rpath -Wl,${QT_LIB_DIRECTORY}" 141 QT_BIN_DIR="${QT_PREFIX}/bin"142 166 143 167 CACHED_CPPFLAG=${CPPFLAGS} … … 173 197 echo "QT_CXXFLAGS = ${QT_CXXFLAGS}" 174 198 echo "QT_LD_FLAGS = ${QT_LDFLAGS}" 199 echo "QT_BIN_DIRECTORY = ${QT_BIN_DIRECTORY}" 175 200 176 201 AC_SUBST([QT_LIBS]) … … 181 206 # QT - MOC # 182 207 #----------# 183 AC_PATH_PROG([QT_MOC], [moc], [no], ["${QT_BIN_DIR }:${PATH}"])208 AC_PATH_PROG([QT_MOC], [moc], [no], ["${QT_BIN_DIRECTORY}:${PATH}"]) 184 209 if test x${QT_MOC} = xno ; then 185 210 AC_MSG_ERROR([QT MOC not found]) … … 187 212 AC_SUBST([QT_MOC]) 188 213 189 AC_PATH_PROG([QT_UIC], [uic], [no], ["${QT_BIN_DIR }:${PATH}"])214 AC_PATH_PROG([QT_UIC], [uic], [no], ["${QT_BIN_DIRECTORY}:${PATH}"]) 190 215 # if test x${QT_UIC} = xno ; then 191 216 # AC_MSG_WARN([QT UIC not found]) … … 193 218 AC_SUBST([QT_UIC]) 194 219 195 AC_PATH_PROG([QT_RCC], [rcc], [no], ["${QT_BIN_DIR }:${PATH}"])220 AC_PATH_PROG([QT_RCC], [rcc], [no], ["${QT_BIN_DIRECTORY}:${PATH}"]) 196 221 # if test x${QT_RCC} = xno ; then 197 222 # AC_MSG_WARN([QT RCC not found]) -
trunk/configure.ac
r7661 r7669 573 573 # QT # 574 574 #----# 575 AX_CHECK_QT([${QT_PREFIX}], [QtCore ],, [http://www.trolltech.com])575 AX_CHECK_QT([${QT_PREFIX}], [QtCore QtCore4],, [http://www.trolltech.com]) 576 576 if test x$have_qt = xno ; then 577 577 WITH_QT=no
Note: See TracChangeset
for help on using the changeset viewer.