]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compile in the non-xwidget case
authorJoakim Verona <joakim@verona.se>
Sat, 14 Feb 2015 20:53:17 +0000 (21:53 +0100)
committerJoakim Verona <joakim@verona.se>
Sat, 14 Feb 2015 20:53:17 +0000 (21:53 +0100)
configure.ac
src/Makefile.in

index 82554ecb423715971ca819f8454d33a9829381ff..f3b22338323eaaa7ed8d1f06628a316c29dd6e31 100644 (file)
@@ -2529,7 +2529,7 @@ fi
 HAVE_XWIDGETS=no
 HAVE_WEBKIT=no
 HAVE_GIR=no
-
+XWDIGETS_OBJ=
 if test "$with_xwidgets" != "no" && test "$USE_GTK_TOOLKIT" = "GTK3" &&
    test "$window_system" != "none"
 then
@@ -2557,6 +2557,7 @@ then
   if test $HAVE_GIR = yes; then
      AC_DEFINE([HAVE_GIR], 1, [Define to 1 if you have GIR support.])
   fi
+  XWDIGETS_OBJ=xwidget.o
 fi
 
 CFLAGS=$OLD_CFLAGS
index 81977dbfec2a5764f70f22c96b39c35015e432e2..1493e891607771fd17a5ff7dedf9e26cd210117d 100644 (file)
@@ -379,13 +379,12 @@ base_obj = dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \
        process.o gnutls.o callproc.o \
        region-cache.o sound.o atimer.o \
        doprnt.o intervals.o textprop.o composite.o xml.o $(NOTIFY_OBJ) \
-       xwidget.o \
+       $(XWIDGETS_OBJ) \
        profiler.o decompress.o \
        $(MSDOS_OBJ) $(MSDOS_X_OBJ) $(NS_OBJ) $(CYGWIN_OBJ) $(FONT_OBJ) \
        $(W32_OBJ) $(WINDOW_SYSTEM_OBJ) $(XGSELOBJ)
 obj = $(base_obj) $(NS_OBJC_OBJ)
 
-xwidget.o: xwidget.c xwidget.h
 ## Object files used on some machine or other.
 ## These go in the DOC file on all machines in case they are needed.
 ## Some of them have no DOC entries, but it does no harm to have them