Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
poppler
poppler
Commits
9c64b8c7
Commit
9c64b8c7
authored
Jan 31, 2007
by
Albert Astals Cid
Browse files
* m4/qt.m4: Fix Qt4 detection on Mac. Patch by Benjamin Reed <ranger@befunk.com>
parent
1b81192f
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
9c64b8c7
2007-01-31 Albert Astals Cid <aacid@kde.org>
* m4/qt.m4: Fix Qt4 detection on Mac. Patch by Benjamin Reed
<ranger@befunk.com>
2007-01-28 Albert Astals Cid <aacid@kde.org>
* glib/poppler-document.cc: Plug memory leak in poppler-document.
...
...
m4/qt.m4
View file @
9c64b8c7
...
...
@@ -111,6 +111,7 @@ dnl What to test
qt4_test_include="QtCore/QCoreApplication"
qt4_test_la_library="libQtCore.la"
qt4_test_library="libQtCore.so"
qt4_test_framework="QtCore.framework"
qt4_windows_test_library="QtCore4.dll"
dnl Check for Qt4 headers
...
...
@@ -143,6 +144,12 @@ for qt4_check in $qt4_libdirs ; do
windows_qt="yes"
break
fi
if test -d "$qt4_check/$qt4_test_framework"; then
qt4_libdir="$qt4_check"
mac_qt="yes"
break
fi
done
AC_MSG_RESULT([$qt4_libdir])
...
...
@@ -155,9 +162,11 @@ fi
if test "x$have_qt4" == "xyes"; then
$1[]_CXXFLAGS="-I$qt4_incdir"
if test x$windows_qt = xyes; then
$1[]_LIBS="-L$qt4_libdir -lQtCore4 -lQtGui4 -lQtXml4"
$1[]_LIBS="-L$qt4_libdir -lQtCore4 -lQtGui4 -lQtXml4"
elif test x$mac_qt = xyes; then
$1[]_LIBS="-L$qt4_libdir -Wl,-F$qt4_libdir -framework QtCore -framework QtGui -framework QtXml"
else
$1[]_LIBS="-L$qt4_libdir -lQtCore -lQtGui -lQtXml"
$1[]_LIBS="-L$qt4_libdir -lQtCore -lQtGui -lQtXml"
fi
ifelse([$2], , :, [$2])
else
...
...
@@ -191,6 +200,7 @@ dnl What to test
qt4test_test_include="QtTest/QtTest"
qt4test_test_la_library="libQtTest.la"
qt4test_test_library="libQtTest.so"
qt4test_test_framework="QtTest.framework"
dnl Check for QtTestLib headers
AC_MSG_CHECKING([for QtTestLib headers])
...
...
@@ -216,6 +226,12 @@ for qt4test_check in $qt4_libdirs ; do
qt4test_libdir="$qt4test_check"
break
fi
if test -d "$qt4test_check/$qt4test_test_framework" ; then
qt4test_libdir="$qt4test_check"
mac_test=yes
break
fi
done
AC_MSG_RESULT([$qt4test_libdir])
...
...
@@ -227,7 +243,11 @@ fi
if test "x$have_qt4testlib" == "xyes"; then
$1[]_CXXFLAGS="-I$qt4test_incdir"
$1[]_LIBS="-L$qt4test_libdir -lQtTest"
if test x$mac_test = xyes; then
$1[]_LIBS="-L$qt4test_libdir -Wl,-F$qt4test_libdir -framework QtTest"
else
$1[]_LIBS="-L$qt4test_libdir -lQtTest"
fi
ifelse([$2], , :, [$2])
else
ifelse([$3], , [AC_MSG_FAILURE(dnl
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment