summaryrefslogtreecommitdiff
path: root/config_office
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-07-16 16:24:42 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-07-16 16:24:42 +0000
commitc5fc7ad8f3e02eb78f3275642e851302490503c9 (patch)
tree5f1d789058f39084037da4726bad981da3d8a54e /config_office
parentdb4d537970219b789baf76de1901e30a727dd149 (diff)
INTEGRATION: CWS ooo11rc2 (1.54.2); FILE MERGED
2003/07/15 03:12:44 svesik 1.54.2.5: #i14032#, #i15899# - need to be able to specifylocation of gnu patch and gnu copy (cp) on solaris, so provide --with-gnu-patch and --with-gnu-cp. Also, unitools.mk needs to pick the values up if set in the environment. 2003/07/14 16:02:41 mmeeks 1.54.2.4: Add --system-libart: #16721 2003/07/08 20:29:58 vq 1.54.2.3: #i14472# Allow also --disable-crashdump and fix Errormessage. 2003/07/08 15:49:48 vq 1.54.2.2: #i14472# let --enable-crashdump=.. accept only yes(=TRUE), TRUE and STATIC. 2003/07/07 10:36:49 vq 1.54.2.1: #i14472# Merge --enable-crashdump to RC2
Diffstat (limited to 'config_office')
-rw-r--r--config_office/configure.in79
1 files changed, 74 insertions, 5 deletions
diff --git a/config_office/configure.in b/config_office/configure.in
index 0bf6db346b4d..b93340a5d4d5 100644
--- a/config_office/configure.in
+++ b/config_office/configure.in
@@ -12,10 +12,16 @@ dnl * necessary to build OpenOffice.org
dnl *
dnl *
dnl ******************************************************************/
-AC_REVISION( $Revision: 1.54 $ )
+AC_REVISION( $Revision: 1.55 $ )
AC_PREREQ(2.50)
AC_INIT()
echo "$@" >config.parms
+AC_ARG_WITH(gnu-patch,
+[ --with-gnu-patch Specify location of GNU patch on Solaris
+],,)
+AC_ARG_WITH(gnu-cp,
+[ --with-gnu-cp Specify location of GNU cp on Solaris
+],,)
AC_ARG_WITH(gpc,
[ --without-gpc *NOT RECOMMENDED* Removes GPC code from
openoffice.org Reduces some graphics capability
@@ -23,6 +29,10 @@ AC_ARG_WITH(gpc,
This is required to allow some strict packagers to
comply with their distrubution policy.
],,)
+AC_ARG_ENABLE(libart,
+[ --enable-libart Enables the use of libart, instead of GPC for
+ polygon clipping.
+],,)
AC_ARG_ENABLE(gcc3,
[ --enable-gcc3 Deprecated: Now has no effect, checks compiler version.
],,)
@@ -37,6 +47,9 @@ AC_ARG_ENABLE(debug,
plus extra debugging code. Extra large build!
(enables -g compiler flag and dmake debug=true)
],,)
+AC_ARG_ENABLE(crashdump,
+[ --enable-crashdump: Enable the crashdump feature code.
+],,)
AC_ARG_ENABLE(static-gtk,
[ --enable-static-gtk: Modules that are linked against gtk libraries use
the static libraries instead of the dynmaic ones.
@@ -293,6 +306,23 @@ else
fi
dnl ===================================================================
+dnl Set the ENABLE_CRASHDUMP variable.
+dnl ===================================================================
+if test "$enable_crashdump" = "yes" -o "$enable_crashdump" = "TRUE"; then
+ ENABLE_CRASHDUMP="TRUE"
+else
+ if test "$enable_crashdump" = "STATIC"; then
+ ENABLE_CRASHDUMP="STATIC"
+ else
+ if test "$enable_crashdump" = "" -o "$enable_crashdump" = "no"; then
+ ENABLE_CRASHDUMP=""
+ else
+ AC_MSG_ERROR([--enable-crashdump only accepts yes, TRUE or STATIC as parameter.])
+ fi
+ fi
+fi
+
+dnl ===================================================================
dnl WINNT uses either 4nt or tcsh, all other O/S use tcsh.
dnl The following sets the with_use_shell variable.
dnl ===================================================================
@@ -1151,6 +1181,32 @@ AC_PATH_PROG(PATCH, patch)
if test -z "$PATCH"; then
AC_MSG_ERROR([\"patch\" not found in \$PATH, install the development tool named\"patch"\])
fi
+
+dnl On Solaris, check if --with-gnu-patch was used
+if test "$_os" = "SunOS"; then
+ if test -z "$with_gnu_patch"; then
+ GNUPATCH=$PATCH
+ else
+ if test -x "$with_gnu_patch"; then
+ GNUPATCH=$with_gnu_patch
+ else
+ AC_MSG_ERROR([--with-gnu-patch did not point to an executable])
+ fi
+ fi
+
+dnl We also need to check for --with-gnu-cp
+
+ if test -z "$with_gnu_cp"; then
+ GNUCP=gnucp
+ else
+ if test -x "$with_gnu_cp"; then
+ GNUCP=$with_gnu_cp
+ else
+ AC_MSG_ERROR([--with-gnu-cp did not point to an executable])
+ fi
+ fi
+fi
+
dnl ***************************************
dnl testing bash tools path on Windows
dnl ***************************************
@@ -1202,10 +1258,19 @@ else
fi
dnl ===================================================================
-dnl Test for the presence of the required gpc.{c,h} files
+dnl Test for the presence of the right polgyon clipping code
dnl ===================================================================
-if test "$with_gpc" != "no" ; then
+WITH_GPC=NO
+WITH_LIBART=NO
+
+if test -n "$enable_libart"; then
+ PKG_CHECK_MODULES( LIBART, libart-2.0 >= 2.3.13 )
+ AC_SUBST(LIBART_CFLAGS)
+ AC_SUBST(LIBART_LIBS)
+ WITH_LIBART=YES
+
+elif test "$with_gpc" != "no" ; then
WITH_GPC=YES
AC_MSG_CHECKING([GPC files])
@@ -1226,8 +1291,6 @@ if test "$with_gpc" != "no" ; then
AC_MSG_ERROR([GPC files not found
ftp://ftp.cs.man.ac.uk/pub/toby/gpc/gpc231.tar.Z and untar in external/gpc])
fi
-else
- WITH_GPC=NO
fi
dnl ===================================================================
@@ -1402,7 +1465,13 @@ AC_SUBST(PTHREAD_LIBS)
AC_SUBST(ENABLE_DEBUG)
AC_SUBST(ENABLE_STATIC_GTK)
AC_SUBST(ENVCFLAGSCXX)
+AC_SUBST(ENABLE_CRASHDUMP)
AC_SUBST(WITH_GPC)
+AC_SUBST(WITH_LIBART)
+AC_SUBST(LIBART_CFLAGS)
+AC_SUBST(LIBART_LIBS)
+AC_SUBST(GNUPATCH)
+AC_SUBST(GNUCP)
AC_OUTPUT([set_soenv])