GTK, autoconf and FreeBSD



Hi.

First of all, apologies if this has already been answered. I have attempted
to RTFFAQ and RTF list archives, but couldn't find anything relevant.

On FreeBSD, the gtk-config script is renamed to gtk<version>-config, and
the following change is made to gtk.m4 so that the autoconf macros work:

colon:pak21:~$ cat /usr/ports/x11-toolkits/gtk12/files/patch-gtk.m4 
--- gtk.m4.orig Fri Feb  9 22:56:43 2001
+++ gtk.m4      Fri Feb  9 22:57:20 2001
@@ -37,7 +37,7 @@
      fi
   fi
 
-  AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
+  AC_PATH_PROG(GTK_CONFIG, gtk-config, gtk12-config, no)
   min_gtk_version=ifelse([$1], ,0.99.7,$1)
   AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
   no_gtk=""

Whilst this works OK for on a FreeBSD box, when I try taking a tarball
of my automake/autoconf'd program[1] from the FreeBSD box to a Linux box
(Debian unstable, running GTK 1.2.10), it then flunks, because it's not
finding gtk-config (due to the new AC_PATH_PROG call setting PATH to
`no', I think).

Has anyone else tried doing this and got it to work, or is it just that
the FreeBSD patch is broken?

[1] http://www.srcf.ucam.org/~pak21/spectrum/fuse.html for anyone who
cares.

Thanks in advance for any help,

Phil

-- 
  Philip Kendall <pak21 srcf ucam org>
  http://www.srcf.ucam.org/~pak21/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]