configure: don't accept -enable-headless where it won't work

Don't even try to build --enable-headless where GUIBASE would not
be unx.

Change-Id: I6e5a6d3071317171f42c0b1336502cec50ba72fa
This commit is contained in:
Riccardo Magliocchetti 2012-11-01 18:48:53 +01:00
parent a4ec5de5ed
commit f3c09cc3c4

View File

@ -3945,6 +3945,9 @@ solaris*)
esac
if test "$enable_headless" = "yes"; then
if test "$GUIBASE" != "unx"; then
AC_MSG_ERROR([$host_os operating system is not suitable to build LibreOffice with --enable-headless])
fi
GUIBASE=headless
fi