f60d55c02567 — Johannes Hofmann 5 years ago
add --disable-xembed configure option

Add option to disable XEmbed support.
This can be useful to avoid compilation issues on non-X11 systems.
2 files changed, 6 insertions(+), 1 deletions(-)

M configure.ac
M src/xembed.cc
M configure.ac +5 -0
@@ 40,6 40,8 @@ AC_ARG_ENABLE(gif,    [  --disable-gif  
 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 @@ fi
 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

          
M src/xembed.cc +1 -1
@@ 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 {