[Libreoffice-commits] .: 4 commits - configure.in solenv/gbuild
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Apr 13 12:38:10 PDT 2011
configure.in | 127 +++++++++++++++++++++-----------------
solenv/gbuild/platform/windows.mk | 2
2 files changed, 72 insertions(+), 57 deletions(-)
New commits:
commit 9751c9cf0f1bcf4379d789629e2c3ef29ecf13e5
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 13 20:32:56 2011 +0100
qt4 moc is available in /usr/bin as moc-qt4 on fedora
diff --git a/configure.in b/configure.in
index bdf5d72..6f65e46 100755
--- a/configure.in
+++ b/configure.in
@@ -6910,10 +6910,14 @@ if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
fi
dnl Check for Meta Object Compiler
- AC_PATH_PROG( MOC4, moc, no, [`dirname $qt_lib_dir`/bin:$QT4DIR/bin:$PATH] )
+
+ AC_PATH_PROG( MOC4, moc-qt4, no, [`dirname $qt_lib_dir`/bin:$QT4DIR/bin:$PATH] )
if test "$MOC4" = "no" ; then
- AC_MSG_ERROR([Qt Meta Object Compiler not found. Please specify
+ AC_PATH_PROG( MOC4, moc, no, [`dirname $qt_lib_dir`/bin:$QT4DIR/bin:$PATH] )
+ if test "$MOC4" = "no" ; then
+ AC_MSG_ERROR([Qt Meta Object Compiler not found. Please specify
the root of your Qt installation by exporting QT4DIR before running "configure".])
+ fi
fi
dnl Check for KDE4 headers
commit 1cd742e270cc60510232f86fbc7b52ad7efa2b8a
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 13 20:26:47 2011 +0100
move this in here so that on windows we convert paths to win format
diff --git a/solenv/gbuild/platform/windows.mk b/solenv/gbuild/platform/windows.mk
index d41a04a..e0d611c 100755
--- a/solenv/gbuild/platform/windows.mk
+++ b/solenv/gbuild/platform/windows.mk
@@ -422,6 +422,7 @@ $(call gb_Helper_abbreviate_dirs_native,\
$(call gb_Helper_convert_native,$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
$(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
$(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
+ $(foreach extraobjectlist,$(EXTRAOBJECTLISTS),$(shell cat $(extraobjectlist))) \
$(PCHOBJS))) && \
$(gb_LINK) \
$(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
@@ -429,7 +430,6 @@ $(call gb_Helper_abbreviate_dirs_native,\
$(if $(filter Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \
$(LDFLAGS) \
@$${RESPONSEFILE} \
- $(foreach extraobjectlist,$(EXTRAOBJECTLISTS),@$(extraobjectlist)) \
$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib))) \
$(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_filename,$(lib))) \
$(if $(DLLTARGET),-out:$(DLLTARGET) -implib:$(1),-out:$(1)); RC=$$?; rm $${RESPONSEFILE} \
commit c8fdd50e24595b87a809f1b83946260ec6d8645d
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Apr 12 16:37:14 2011 +0100
more than just x86_64 supports multilib
diff --git a/configure.in b/configure.in
index 9148160..bdf5d72 100755
--- a/configure.in
+++ b/configure.in
@@ -2746,51 +2746,51 @@ fi
dnl ===================================================================
dnl Checks for what the default STL should be
dnl ===================================================================
- AC_MSG_CHECKING([Whether building STLPort library makes sense])
- BUILD_STLPORT="no"
- if test "$_os" = "Linux"; then
- case "$host_cpu" in
- i?86)
- case "$host_os" in k*bsd*-gnu*)
- BUILD_STLPORT="no"
+AC_MSG_CHECKING([Whether building STLPort library makes sense])
+BUILD_STLPORT="no"
+if test "$_os" = "Linux"; then
+ case "$host_cpu" in
+ i?86)
+ case "$host_os" in k*bsd*-gnu*)
+ BUILD_STLPORT="no"
;;
- *)
- BUILD_STLPORT="yes"
+ *)
+ BUILD_STLPORT="yes"
;;
esac
- ;;
- *)
- BUILD_STLPORT="no"
- ;;
- esac
- elif test "$_os" = "SunOS"; then
- BUILD_STLPORT="yes"
- elif test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then
- BUILD_STLPORT="yes"
- elif test "$_os" = "OS2"; then
- BUILD_STLPORT="yes"
- elif test "$_os" = "FreeBSD"; then
- BUILD_STLPORT="yes"
- fi
- if test "$BUILD_STLPORT" = "yes" ; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- fi
+ ;;
+ *)
+ BUILD_STLPORT="no"
+ ;;
+ esac
+elif test "$_os" = "SunOS"; then
+ BUILD_STLPORT="yes"
+elif test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then
+ BUILD_STLPORT="yes"
+elif test "$_os" = "OS2"; then
+ BUILD_STLPORT="yes"
+elif test "$_os" = "FreeBSD"; then
+ BUILD_STLPORT="yes"
+fi
+if test "$BUILD_STLPORT" = "yes" ; then
+ AC_MSG_RESULT([yes])
+else
+ AC_MSG_RESULT([no])
+fi
- AC_MSG_CHECKING([Whether STLPort library will be actually built])
- if test "$with_stlport" = "auto" -o "$BUILD_STLPORT" = "no"; then
- with_stlport=$BUILD_STLPORT
- fi
- if test "$with_stlport" = "yes" ; then
- AC_MSG_RESULT([yes])
- WITH_STLPORT=YES
- SCPDEFS="$SCPDEFS -DWITH_STLPORT"
- BUILD_TYPE="$BUILD_TYPE STLPORT"
- else
- WITH_STLPORT=NO
- AC_MSG_RESULT([no])
- fi
+AC_MSG_CHECKING([Whether STLPort library will be actually built])
+if test "$with_stlport" = "auto" -o "$BUILD_STLPORT" = "no"; then
+ with_stlport=$BUILD_STLPORT
+fi
+if test "$with_stlport" = "yes" ; then
+ AC_MSG_RESULT([yes])
+ WITH_STLPORT=YES
+ SCPDEFS="$SCPDEFS -DWITH_STLPORT"
+ BUILD_TYPE="$BUILD_TYPE STLPORT"
+else
+ WITH_STLPORT=NO
+ AC_MSG_RESULT([no])
+fi
AC_SUBST(WITH_STLPORT)
@@ -6678,6 +6678,17 @@ AS_IF([test "x$enable_ext_scripting_python" = "xyes"], [
])
AC_SUBST(ENABLE_SCRIPTING_PYTHON)
+supports_multilib=
+case "$host_cpu" in
+ x86_64 | powerpc64 | s390x)
+ if test "$SIZEOF_LONG" = "8"; then
+ supports_multilib="yes"
+ fi
+ ;;
+ *)
+ ;;
+esac
+
dnl ===================================================================
dnl Check whether the Qt3 and KDE3 libraries are available.
dnl ===================================================================
@@ -6689,7 +6700,7 @@ if test "$_os" != "OpenBSD"; then
fi
if test "$test_kde" = "yes" -a "$ENABLE_KDE" = "TRUE" ; then
dnl Search paths for Qt3 and KDE3
- if test "$host_cpu" != "x86_64" ; then
+ if test -z "$supports_multilib" ; 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 /usr/local/include/X11/qt3 $x_includes"
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 /usr/local/lib/qt3 $x_libraries"
else
@@ -6698,13 +6709,13 @@ if test "$test_kde" = "yes" -a "$ENABLE_KDE" = "TRUE" ; then
fi
if test -n "$QTDIR" ; then
qt_incdirs="$QTDIR/include $qt_incdirs"
- if test "$host_cpu" != "x86_64" ; then
+ if test -z "$supports_multilib" ; then
qt_libdirs="$QTDIR/lib $qt_libdirs"
else
qt_libdirs="$QTDIR/lib64 $QTDIR/lib $qt_libdirs"
fi
fi
- if test "$host_cpu" != "x86_64" ; then
+ if test -z "$supports_multilib" ; then
kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /opt/kde3/include /opt/kde/include $x_includes"
kde_libdirs="/usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib/kde3 /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/kde/lib /usr/X11R6/kde/lib /usr/lib $x_libraries"
else
@@ -6713,7 +6724,7 @@ if test "$test_kde" = "yes" -a "$ENABLE_KDE" = "TRUE" ; then
fi
if test -n "$KDEDIR" ; then
kde_incdirs="$KDEDIR/include $kde_incdirs"
- if test "$host_cpu" != "x86_64" ; then
+ if test -z "$supports_multilib" ; then
kde_libdirs="$KDEDIR/lib $kde_libdirs"
else
kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib $kde_libdirs"
@@ -6824,14 +6835,14 @@ if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
kde_incdirs="/usr/include /usr/include/kde4 $x_includes"
kde_libdirs="/usr/lib /usr/lib/kde4 /usr/lib/kde4/devel $x_libraries"
- if test "$host_cpu" = "x86_64" ; then
+ if test -n "$supports_multilib" ; then
qt_libdirs="$qt_libdirs /usr/lib64/qt4 /usr/lib64/qt /usr/lib64"
kde_libdirs="$kde_libdirs /usr/lib64 /usr/lib64/kde4 /usr/lib64/kde4/devel"
fi
if test -n "$QTDIR" ; then
qt_incdirs="$QTDIR/include $qt_incdirs"
- if test "$host_cpu" != "x86_64" ; then
+ if test -z "$supports_multilib" ; then
qt_libdirs="$QTDIR/lib $qt_libdirs"
else
qt_libdirs="$QTDIR/lib64 $QTDIR/lib $qt_libdirs"
@@ -6839,7 +6850,7 @@ if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
fi
if test -n "$QT4DIR" ; then
qt_incdirs="$QT4DIR/include $qt_incdirs"
- if test "$host_cpu" != "x86_64" ; then
+ if test -z "$supports_multilib" ; then
qt_libdirs="$QT4DIR/lib $qt_libdirs"
else
qt_libdirs="$QT4DIR/lib64 $QT4DIR/lib $qt_libdirs"
@@ -6848,7 +6859,7 @@ if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
if test -n "$KDEDIR" ; then
kde_incdirs="$KDEDIR/include $kde_incdirs"
- if test "$host_cpu" != "x86_64" ; then
+ if test -z "$supports_multilib" ; then
kde_libdirs="$KDEDIR/lib $kde_libdirs"
else
kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib $kde_libdirs"
@@ -6856,7 +6867,7 @@ if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
fi
if test -n "$KDE4DIR" ; then
kde_incdirs="$KDE4DIR/include $KDE4DIR/include/kde4 $kde_incdirs"
- if test "$host_cpu" != "x86_64" ; then
+ if test -z "$supports_multilib" ; then
kde_libdirs="$KDE4DIR/lib $kde_libdirs"
else
kde_libdirs="$KDE4DIR/lib64 $KDE4DIR/lib $kde_libdirs"
commit 721a6b7f777b27815ebd18adcfa048f2c67d161a
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Apr 12 16:19:16 2011 +0100
get --enable-kde4 to work out-of-the-box on fedora
diff --git a/configure.in b/configure.in
index fa8bc6a..9148160 100755
--- a/configure.in
+++ b/configure.in
@@ -6821,12 +6821,12 @@ if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
qt_incdirs="$QT4INC /usr/include/qt4 /usr/include $x_includes"
qt_libdirs="$QT4LIB /usr/lib $x_libraries"
- kde_incdirs="/usr/include $x_includes"
- kde_libdirs="/usr/lib $x_libraries"
+ kde_incdirs="/usr/include /usr/include/kde4 $x_includes"
+ kde_libdirs="/usr/lib /usr/lib/kde4 /usr/lib/kde4/devel $x_libraries"
if test "$host_cpu" = "x86_64" ; then
qt_libdirs="$qt_libdirs /usr/lib64/qt4 /usr/lib64/qt /usr/lib64"
- kde_libdirs="$kde_libdirs /usr/lib64 /usr/lib64/kde4"
+ kde_libdirs="$kde_libdirs /usr/lib64 /usr/lib64/kde4 /usr/lib64/kde4/devel"
fi
if test -n "$QTDIR" ; then
@@ -6855,7 +6855,7 @@ if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
fi
fi
if test -n "$KDE4DIR" ; then
- kde_incdirs="$KDE4DIR/include $kde_incdirs"
+ kde_incdirs="$KDE4DIR/include $KDE4DIR/include/kde4 $kde_incdirs"
if test "$host_cpu" != "x86_64" ; then
kde_libdirs="$KDE4DIR/lib $kde_libdirs"
else
More information about the Libreoffice-commits
mailing list