[poppler] m4/qt.m4

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Mar 8 15:57:24 PST 2008


 m4/qt.m4 |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

New commits:
commit 32637db19dd80a9b8452f86eb677b10e77290627
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sun Mar 9 00:57:08 2008 +0100

    proper lib64 Qt detection
    
    Fixes bug 14583

diff --git a/m4/qt.m4 b/m4/qt.m4
index 8320bbc..c309e75 100644
--- a/m4/qt.m4
+++ b/m4/qt.m4
@@ -7,11 +7,20 @@
 AC_DEFUN([POPPLER_FIND_QT],
 [
 dnl Search paths for Qt 
-qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib/qt3/include /usr/lib/qt/include /usr/share/qt3/include"
-qt_libdirs="$QTLIB /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib"
+if test "$build_cpu" != "x86_64" ; then
+    qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib/qt3/include /usr/lib/qt/include /usr/share/qt3/include"
+    qt_libdirs="$QTLIB /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib"
+else
+    qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib64/qt3/include /usr/lib64/qt/include /usr/share/qt3/include /usr/lib/qt3/include /usr/lib/qt/include"
+    qt_libdirs="$QTLIB /usr/local/qt/lib64 /usr/lib64/qt /usr/lib64 /usr/X11R6/lib64/X11/qt /usr/X11R6/lib64/qt /usr/lib64/qt3/lib64 /usr/lib64/qt/lib64 /usr/share/qt3/lib64 /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib"
+fi
 if test -n "$QTDIR" ; then
     qt_incdirs="$QTDIR/include $qt_incdirs"
-    qt_libdirs="$QTDIR/lib $qt_libdirs"
+    if test "$build_cpu" != "x86_64" ; then
+        qt_libdirs="$QTDIR/lib $qt_libdirs"
+    else
+        qt_libdirs="$QTDIR/lib64 $QTDIR/lib $qt_libdirs"
+    fi
 fi
 
 dnl What to test


More information about the poppler mailing list