- Timestamp:
- May 4, 2006, 4:17:13 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/acinclude.m4
r7534 r7536 83 83 _found_lib="" 84 84 QT_PREFIX="$1" 85 86 87 QT_LIBS="" 88 QT_CXXFLAGS="-I${QT_PREFIX}/include" 89 LDFLAGS="${LDFLAGS} -L${QT_PREFIX}/lib -Wl,-rpath -Wl,${QT_PREFIX}/lib" 90 QT_BIN_DIR="${QT_PREFIX}/bin" 91 92 QT_COMMON_INCLUDE_DIRECTORIES="/usr/include 93 `ls -dr ${QTDIR}/include 2>/dev/null` 85 QT_INCLUDE_DIRECTORY="" 86 QT_LIB_DIRECTORY="" 87 88 89 QT_COMMON_INCLUDE_DIRECTORIES=" 90 `ls -dr ${QT_PREFIX}/include 2>/dev/null` 91 /usr/include 94 92 `ls -dr /usr/include/qt* 2>/dev/null` 95 93 `ls -dr /usr/lib/qt*/include 2>/dev/null` … … 99 97 " 100 98 101 QT_COMMON_LIB_DIRECTORIES="" 99 QT_COMMON_LIB_DIRECTORIES=" 100 `ls -dr ${QT_PREFIX}/lib 2>/dev/null` 101 /usr/include 102 `ls -dr /usr/lib/qt* 2>/dev/null` 103 `ls -dr /usr/lib/qt* 2>/dev/null` 104 `ls -dr /usr/local/qt*/lib 2>/dev/null` 105 `ls -dr /opt/qt*/lib 2>/dev/null` 106 `ls -dr /Developer/qt*/lib 2>/dev/null` 107 " 108 109 ## Search in all IncludeDirectories for QT-includes 110 for _include_directory in ${QT_COMMON_INCLUDE_DIRECTORIES} 111 do 112 if test -e ${_include_directory}/Qt/QtCore ; then 113 QT_INCLUDE_DIRECTORY=${_include_directory} 114 break 115 fi 116 done 117 if test -n ${QT_INCLUDE_DIRECTORY} ; then 118 echo "Qt-Include Directory is: ${QT_INCLUDE_DIRECTORY}" 119 else 120 AC_MSG_ERROR([Qt Headers not found]) 121 fi 122 123 ## Search in all LibraryDirectories for QT-includes 124 for _lib_directory in ${QT_COMMON_LIB_DIRECTORIES} 125 do 126 if test -e ${_lib_directory}/libQtCore.so || test -e ${_lib_directory}/libQtCore.dll ; then 127 QT_LIB_DIRECTORY=${_lib_directory} 128 break 129 fi 130 done 131 if test -n ${QT_LIB_DIRECTORY} ; then 132 echo "Qt-Library Directory is: ${QT_LIB_DIRECTORY}" 133 else 134 AC_MSG_ERROR([Qt LIB not found]) 135 fi 136 137 ## Setting up the Environment Variables. 138 QT_LIBS="" 139 QT_CXXFLAGS="-I${QT_INCLUDE_DIRECTORY}" 140 LDFLAGS="${LDFLAGS} -L${QT_LIB_DIRECTORY} -Wl,-rpath -Wl,${QT_LIB_DIRECTORY}" 141 QT_BIN_DIR="${QT_PREFIX}/bin" 102 142 103 143 CACHED_CPPFLAG=${CPPFLAGS}
Note: See TracChangeset
for help on using the changeset viewer.