add option to choose moc; refs #32

master
Marc Wäckerlin 13 years ago
parent 216be027d2
commit 7176effe41
  1. 7
      configure.in
  2. 3
      install-64-and-32-bit-linux.sh

@ -177,7 +177,12 @@ else
CPPFLAGS+=" -DUNICODE -DQT_NO_DEBUG" CPPFLAGS+=" -DUNICODE -DQT_NO_DEBUG"
CPPFLAGS+=" -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WEBKIT_LIB -DQT_CORE_LIB" CPPFLAGS+=" -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WEBKIT_LIB -DQT_CORE_LIB"
CPPFLAGS+=" -I$QTINCDIR" CPPFLAGS+=" -I$QTINCDIR"
AC_CHECK_PROGS([MOC], [moc-qt4 moc-mac moc]) AC_ARG_WITH([moc],
AC_HELP_STRING([--with-moc=/path/to/moc],
[to specify the path to qt4 moc.]),
[MOC="$withval"],
[MOC=""])
AC_CHECK_PROGS([MOC], [$MOC moc-qt4 moc-mac moc])
test -n "$MOC" || AC_MSG_ERROR([moc for Qt 4 not found!]) test -n "$MOC" || AC_MSG_ERROR([moc for Qt 4 not found!])
AC_SUBST(MOC) AC_SUBST(MOC)
AC_CHECK_PROGS([RCC], [rcc-qt4 rcc-mac rcc]) AC_CHECK_PROGS([RCC], [rcc-qt4 rcc-mac rcc])

@ -11,7 +11,8 @@ LDFLAGS="-L/opt/local/i586-mingw32msvc/lib" \
./configure \ ./configure \
--prefix=/opt/local/i586-mingw32msvc \ --prefix=/opt/local/i586-mingw32msvc \
--build=x86_64 \ --build=x86_64 \
--host=i586-mingw32msvc && \ --host=i586-mingw32msvc \
--with-moc=/usr/local/Trolltech/Qt-4.8.0/bin/moc && \
make && \ make && \
sudo make install && \ sudo make install && \
make clean && \ make clean && \

Loading…
Cancel
Save