2002-04-25 11:17:54 +02:00
|
|
|
|
|
|
|
AC_INIT(README)
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
2002-08-04 07:24:31 +02:00
|
|
|
AM_INIT_AUTOMAKE(gtk-sharp, 0.4)
|
2002-04-25 11:17:54 +02:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
AC_CHECK_TOOL(CC, gcc, gcc)
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
dnl may require a specific autoconf version
|
|
|
|
dnl AC_PROG_CC_FOR_BUILD
|
|
|
|
dnl CC_FOR_BUILD not automatically detected
|
|
|
|
CC_FOR_BUILD=$CC
|
|
|
|
BUILD_EXEEXT=
|
|
|
|
if test "x$cross_compiling" = "xyes"; then
|
|
|
|
CC_FOR_BUILD=cc
|
|
|
|
BUILD_EXEEXT=""
|
|
|
|
fi
|
|
|
|
AC_SUBST(CC_FOR_BUILD)
|
|
|
|
AC_SUBST(HOST_CC)
|
|
|
|
AC_SUBST(BUILD_EXEEXT)
|
|
|
|
|
|
|
|
# Set STDC_HEADERS
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
# not 64 bit clean in cross-compile
|
|
|
|
AC_CHECK_SIZEOF(void *, 4)
|
|
|
|
|
|
|
|
CFLAGS='-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings'
|
|
|
|
|
|
|
|
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
|
|
|
if test "x$PKG_CONFIG" = "xno"; then
|
|
|
|
AC_MSG_ERROR([You need to install pkg-config])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl for use on the build system
|
|
|
|
dnl pkg-config is stupid
|
2002-06-10 14:34:09 +02:00
|
|
|
BUILD_GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
|
|
|
|
BUILD_GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
|
|
|
|
AC_SUBST(BUILD_GTK_CFLAGS)
|
|
|
|
AC_SUBST(BUILD_GTK_LIBS)
|
2002-04-25 11:17:54 +02:00
|
|
|
|
|
|
|
PKG_PATH=
|
|
|
|
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir],
|
|
|
|
if test x$with_crosspkgdir = "x"; then
|
|
|
|
if test -s $PKG_CONFIG_PATH; then
|
|
|
|
PKG_PATH=$PKG_CONFIG_PATH
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
PKG_PATH=$with_crosspkgdir
|
|
|
|
PKG_CONFIG_PATH=$PKG_PATH
|
|
|
|
export PKG_CONFIG_PATH
|
|
|
|
fi
|
|
|
|
)
|
|
|
|
|
2002-07-05 22:22:21 +02:00
|
|
|
|
2002-04-25 11:17:54 +02:00
|
|
|
## Versions of dependencies
|
2002-07-05 22:22:21 +02:00
|
|
|
GNOME_REQUIRED_VERSION=2.0.0
|
2002-06-10 14:34:09 +02:00
|
|
|
GTK_REQUIRED_VERSION=2.0.0
|
2002-08-13 16:01:14 +02:00
|
|
|
PKG_CHECK_MODULES(BASE_DEPENDENCIES, libgnomecanvas-2.0 >= $GNOME_REQUIRED_VERSION libgnomeui-2.0 >= $GNOME_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION gmodule-2.0 >= $GTK_REQUIRED_VERSION, enable_gnome=yes, enable_gnome=no)
|
2002-07-05 22:22:21 +02:00
|
|
|
|
|
|
|
if test "x$enable_gnome" = "xno"; then
|
|
|
|
PKG_CHECK_MODULES(BASE_DEPENDENCIES, gtk+-2.0 >= $GTK_REQUIRED_VERSION gmodule-2.0 >= $GTK_REQUIRED_VERSION)
|
|
|
|
fi
|
2002-04-25 11:17:54 +02:00
|
|
|
|
2002-08-12 21:14:44 +02:00
|
|
|
GLADE_REQUIRED_VERSION=2.0.0
|
|
|
|
PKG_CHECK_MODULES(GLADE_DEPENDENCIES, libglade-2.0 >= $GLADE_REQUIRED_VERSION, enable_glade=yes, enable_glade=no)
|
|
|
|
if test "x$enable_glade" = "xyes"; then
|
|
|
|
BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS $GLADE_DEPENDENCIES_CFLAGS"
|
|
|
|
BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS $GLADE_DEPENDENCIES_LIBS"
|
|
|
|
fi
|
2002-04-25 11:17:54 +02:00
|
|
|
|
2002-09-01 12:28:11 +02:00
|
|
|
LIBGDA_REQUIRED_VERSION=0.8.193
|
|
|
|
PKG_CHECK_MODULES(LIBGDA_DEPENDENCIES, libgda >= $LIBGDA_REQUIRED_VERSION, enable_gda=yes, enable_gda=no)
|
|
|
|
if test "x$enable_gda" = "xyes"; then
|
|
|
|
BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS $LIBGDA_DEPENDENCIES_CFLAGS"
|
|
|
|
BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS $LIBGDA_DEPENDENCIES_LIBS"
|
|
|
|
fi
|
|
|
|
|
2002-07-05 22:22:21 +02:00
|
|
|
AC_SUBST(BASE_DEPENDENCIES_CFLAGS)
|
|
|
|
AC_SUBST(BASE_DEPENDENCIES_LIBS)
|
2002-04-25 11:17:54 +02:00
|
|
|
|
2002-07-05 22:22:21 +02:00
|
|
|
AM_CONDITIONAL(ENABLE_GNOME, test "x$enable_gnome" = "xyes")
|
2002-08-12 21:14:44 +02:00
|
|
|
AM_CONDITIONAL(ENABLE_GLADE, test "x$enable_glade" = "xyes")
|
2002-09-01 12:28:11 +02:00
|
|
|
AM_CONDITIONAL(ENABLE_GDA, test "x$enable_gda" = "xyes")
|
2002-04-25 11:17:54 +02:00
|
|
|
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
glue/Makefile
|
2002-08-20 22:46:14 +02:00
|
|
|
parser/Makefile
|
2002-08-20 22:54:28 +02:00
|
|
|
generator/Makefile
|
|
|
|
api/Makefile
|
2002-05-02 23:57:41 +02:00
|
|
|
glib/Makefile
|
|
|
|
pango/Makefile
|
|
|
|
atk/Makefile
|
2002-08-15 18:44:41 +02:00
|
|
|
art/Makefile
|
2002-05-02 23:57:41 +02:00
|
|
|
gdk/Makefile
|
|
|
|
gtk/Makefile
|
2002-08-12 21:14:44 +02:00
|
|
|
glade/Makefile
|
2002-06-26 Rachel Hestilow <hestilow@ximian.com>
* configure.in, makefile, makefile.win32: add gnome.
* doc/index.html, netdoc.xsl: Add gnome.
* gdk/Event.cs: New manual wrap for GdkEvent.
* generator/ClassBase.cs: Add methods GetProperty,
GetPropertyRecursively, GetMethodRecursively.
Move Parent property here from ObjectGen.cs. Pass this pointer
into Property.
* generator/Ctor.cs: Generate docs.
* generator/Method.cs, Property.cs: Tag method as "new" if a
Method/Property with the same name is found in the class hierarchy.
* generator/SignalHandler.cs: Correctly wrap complex signal argument
types. Add gnome directory.
* generator/SymbolTable.cs: Add manually wrapped types hash
(contains GLib.GSList and Gdk.Event). Add method IsManuallyWrapped.
* glib/SList.cs: Add constructor from IntPtr.
* glue/slist.c, glue/event.c: Added (field accessor glue).
* glue/Makefile.am: Update.
* parser/Gtk.metadata: Add new signal renames for new signals
exposed by GdkEvent changes.
* parser/README, parser/build.pl: Add libgnome, libgnomecanvas,
libgnomeui.
* parser/gapi2xml.pl: Handle literal-length array parameters,
and NULL property doc strings.
* sample/: Add new test GnomeHelloWorld.cs.
* gnome/: Added.
* parser/Gnome.metadata: Added.
svn path=/trunk/gtk-sharp/; revision=5461
2002-06-26 10:36:05 +02:00
|
|
|
gnome/Makefile
|
2002-09-01 12:28:11 +02:00
|
|
|
gda/Makefile
|
2002-05-02 23:57:41 +02:00
|
|
|
sample/Makefile
|
2002-04-25 11:17:54 +02:00
|
|
|
])
|
|
|
|
|
|
|
|
echo "
|
|
|
|
|
|
|
|
Now do a "make linux" or "make windows" to build Gtk#.
|
|
|
|
|
|
|
|
"
|