Ticket #329: moc_location

File moc_location, 1.0 KB (added by Pini, 14 years ago)
Line 
1Index: navit/configure.in
2===================================================================
3--- navit.orig/configure.in     2009-03-30 15:13:31.000000000 +0200
4+++ navit/configure.in  2009-03-30 15:47:07.000000000 +0200
5@@ -642,6 +642,8 @@
6 fi
7 if test "x${graphics_qt_qpainter}" = "xyes" ; then
8        AC_DEFINE(USE_GRAPICS_QT_QPAINTER, 1, [Build with graphics qt_qpainter])
9+       MOC=`pkg-config QtGui --variable=moc_location`
10+       AC_SUBST(MOC)
11 fi
12 AC_SUBST(QT_GUI_CFLAGS)
13 AC_SUBST(QT_GUI_LIBS)
14Index: navit/navit/graphics/qt_qpainter/Makefile.am
15===================================================================
16--- navit.orig/navit/graphics/qt_qpainter/Makefile.am   2009-03-30 15:47:42.000000000 +0200
17+++ navit/navit/graphics/qt_qpainter/Makefile.am        2009-03-30 15:48:31.000000000 +0200
18@@ -5,4 +5,4 @@
19 libgraphics_qt_qpainter_la_LDFLAGS = @QT_GUI_LIBS@ -module
20 BUILT_SOURCES = graphics_qt_qpainter.moc
21 graphics_qt_qpainter.moc:
22-       moc $(srcdir)/graphics_qt_qpainter.cpp >graphics_qt_qpainter.moc
23+       @MOC@ $(srcdir)/graphics_qt_qpainter.cpp >graphics_qt_qpainter.moc