changeset 4663:f60d55c02567

add --disable-xembed configure option Add option to disable XEmbed support. This can be useful to avoid compilation issues on non-X11 systems.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fr, 05 Okt 2018 22:05:08 +0200
parents 0cb3ef492f54
children 67b70f024568
files configure.ac src/xembed.cc
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Fr Sep 15 18:59:19 2017 +0200
+++ b/configure.ac	Fr Okt 05 22:05:08 2018 +0200
@@ -40,6 +40,8 @@
 AC_ARG_ENABLE(threaded-dns,[  --disable-threaded-dns  Disable the advantage of a reentrant resolver library],
               enable_threaded_dns=$enableval, enable_threaded_dns=yes)
 AC_ARG_ENABLE(rtfl,   [  --enable-rtfl           Build with rtfl messages (for debugging rendering)])
+AC_ARG_ENABLE(xembed,[  --disable-xembed       Don't compile with X11 XEmbed support],
+                    , enable_xembed=yes)
 AC_PROG_CC
 AC_PROG_CXX
 AC_PROG_RANLIB
@@ -459,6 +461,9 @@
 if test "x$enable_rtfl" = "xyes" ; then
   CXXFLAGS="$CXXFLAGS -DDBG_RTFL"
 fi
+if test "x$enable_xembed" = "xno" ; then
+  CXXFLAGS="$CFLAGS -DDISABLE_XEMBED"
+fi
 
 dnl -----------------------
 dnl Checks for header files
--- a/src/xembed.cc	Fr Sep 15 18:59:19 2017 +0200
+++ b/src/xembed.cc	Fr Okt 05 22:05:08 2018 +0200
@@ -18,7 +18,7 @@
 
 #include "xembed.hh"
 
-#if !(defined(WIN32) || defined(__APPLE__))
+#if !( defined(DISABLE_XEMBED) || defined(WIN32) || defined(__APPLE__) )
 #include <FL/x.H>
 
 typedef enum {