gtk: Replace leftover references to gtk+-2.0 with gtk+-3.0.
authorMatt Birkholz <matt@birkholz.chandler.az.us>
Mon, 8 Apr 2013 03:01:27 +0000 (20:01 -0700)
committerMatt Birkholz <matt@birkholz.chandler.az.us>
Mon, 8 Apr 2013 03:01:27 +0000 (20:01 -0700)
doc/ffi/ffi.texinfo
src/configure.ac

index da6c87eceef717aad9233a8570fb0afb5e291518..d98a475281645c08fb338cfc8f6c49ce1c5e21d5 100644 (file)
@@ -152,11 +152,11 @@ data types is given in a case sensitive @file{.cdecl} file.  The C
 declarations look like this:
 
 @smallexample
-(extern (* GtkWidget)              @r{; gtk+-2.4.0/gtk/gtkwindow.h}
+(extern (* GtkWidget)
         gtk_window_new
         (type GtkWindowType))
 
-(typedef GtkWindowType             @r{; gtk+-2.4.0/gtk/gtkenums.h}
+(typedef GtkWindowType
          (enum
           (GTK_WINDOW_TOPLEVEL)
           (GTK_WINDOW_POPUP)))
@@ -657,10 +657,10 @@ install-example: build-example
 build-example: prhello-shim.so prhello-types.bin prhello-const.bin
 
 prhello-shim.so: prhello-shim.o
-       $(CC) -shared -fPIC -o $@ $^ `pkg-config --libs gtk+-2.0`
+       $(CC) -shared -fPIC -o $@ $^ `pkg-config --libs gtk+-3.0`
 
 prhello-shim.o: prhello-shim.c
-       $(CC) -I../lib -Wall -fPIC `pkg-config --cflags gtk+-2.0` -o $@ -c $<
+       $(CC) -I../lib -Wall -fPIC `pkg-config --cflags gtk+-3.0` -o $@ -c $<
 
 prhello-shim.c prhello-const.c prhello-types.bin: prhello.cdecl
        (echo "(load-option 'FFI)"; \
@@ -675,10 +675,10 @@ prhello-const.scm: prhello-const
 
 prhello-const: prhello-const.o
        @rm -f $@
-       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ `pkg-config --libs gtk+-2.0`
+       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ `pkg-config --libs gtk+-3.0`
 
 prhello-const.o: prhello-const.c
-       $(CC) `pkg-config --cflags gtk+-2.0` $(CFLAGS) -o $@ -c $<
+       $(CC) `pkg-config --cflags gtk+-3.0` $(CFLAGS) -o $@ -c $<
 @end verbatim
 @end example
 
index a13e84f11c7097dc719686ce8168024f68211b51..57ade1fc616eda49f5bdfc6d6118f15920ee58be 100644 (file)
@@ -167,11 +167,11 @@ if test "${with_gtk}" = "yes"; then
 elif test "${with_gtk}" = "no"; then
     AC_MSG_RESULT([by request... no])
 elif test "${with_gtk}" = "auto"; then
-    if pkg-config --exists gtk+-2.0 2>/dev/null; then
+    if pkg-config --exists gtk+-3.0 2>/dev/null; then
        AC_MSG_RESULT([yes])
        with_gtk=yes
     else
-       AC_MSG_RESULT([no Gtk 2.0... no])
+       AC_MSG_RESULT([no Gtk 3.0... no])
        with_gtk=no
     fi
 fi