Permalink
Browse files

Move to old-code

svn path=/old-code/; revision=156219
  • Loading branch information...
1 parent 472e365 commit 0faecf4c017df67e51bf7aa700feaf419322611a @migueldeicaza migueldeicaza committed Apr 27, 2010
View
@@ -0,0 +1,10 @@
+Makefile.in
+aclocal.m4
+autom4te.cache
+config.guess
+config.h.in
+config.sub
+configure
+libtool
+ltmain.sh
+stamp-h.in
View
No changes.
No changes.
@@ -0,0 +1 @@
+SUBDIRS = mono
View
No changes.
View
No changes.
View
@@ -0,0 +1,43 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+PKG_NAME="mono-guile"
+
+(test -f $srcdir/configure.in \
+ && test -f $srcdir/autogen.sh \
+ && test -d $srcdir/mono) || {
+ echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+ echo " top-level $PKG_NAME directory"
+ exit 1
+}
+
+DIE=0
+
+# This is a bit complicated here since we can't use gnome-config yet.
+# It'll be easier after switching to pkg-config since we can then
+# use pkg-config to find the gnome-autogen.sh script.
+
+gnome_autogen=
+gnome_datadir=
+
+ifs_save="$IFS"; IFS=":"
+for dir in $PATH ; do
+ test -z "$dir" && dir=.
+ if test -f $dir/gnome-autogen.sh ; then
+ gnome_autogen="$dir/gnome-autogen.sh"
+ gnome_datadir=`echo $dir | sed -e 's,/bin$,/share,'`
+ break
+ fi
+done
+IFS="$ifs_save"
+
+if test -z "$gnome_autogen" ; then
+ echo "You need to install the gnome-common module and make"
+ echo "sure the gnome-autogen.sh script is in your \$PATH."
+ exit 1
+fi
+
+GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen
@@ -0,0 +1,80 @@
+AC_PREREQ(2.52)
+AC_INIT(configure.in)
+
+AM_CONFIG_HEADER(config.h)
+AM_INIT_AUTOMAKE(mono-guile, 0.1)
+
+AM_MAINTAINER_MODE
+
+GNOME_COMMON_INIT
+GNOME_PLATFORM_GNOME_2(yes, force)
+
+AC_ISC_POSIX
+AC_PROG_CC
+AC_STDC_HEADERS
+AM_PROG_LIBTOOL
+AC_PROG_YACC
+AC_PATH_PROGS(PATH_TO_XRDB, "xrdb")
+
+AC_SUBST(CFLAGS)
+AC_SUBST(CPPFLAGS)
+AC_SUBST(LDFLAGS)
+
+GNOME_COMPILE_WARNINGS(maximum)
+
+# Don't use AC_PROG_AWK since we need the full pathname.
+AC_PATH_PROGS(AWK, mawk gawk nawk awk, )
+AC_PATH_PROGS(PERL, perl5 perl)
+
+# define a MAINT-like variable REBUILD which is set if Perl
+# and awk are found, so autogenerated sources can be rebuilt
+AC_ARG_ENABLE(rebuilds, [ --disable-rebuilds disable all source autogeneration rules],,enable_rebuilds=yes)
+REBUILD=\#
+if test "x$enable_rebuilds" = "xyes" && \
+ test -n "$PERL" && \
+ $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
+ test -n "$AWK" ; then
+ REBUILD=
+fi
+AC_SUBST(REBUILD)
+
+#
+# Check for Guile
+#
+AC_MSG_CHECKING(for Guile)
+guile-config link > /dev/null || {
+ echo "configure: cannot find guile-config; is Guile installed?" 1>&2
+ exit 1
+}
+GUILE_CFLAGS="`guile-config compile`"
+GUILE_LIBS="`guile-config link`"
+AC_SUBST(GUILE_CFLAGS)
+AC_SUBST(GUILE_LIBS)
+AC_MSG_RESULT(yes)
+
+#
+# Check for G-Wrap
+#
+AC_MSG_CHECKING(for G-Wrap)
+g-wrap-config --version > /dev/null || {
+ echo "configure: cannot find g-wrap-config; is G-Wrap installed?" 1>&2
+ exit 1
+}
+GWRAP_CFLAGS="`g-wrap-config --c-compile-args guile`"
+GWRAP_LIBS="`g-wrap-config --c-link-args guile`"
+AC_SUBST(GWRAP_CFLAGS)
+AC_SUBST(GWRAP_LIBS)
+AC_MSG_RESULT(yes)
+
+#
+# Start of pkg-config checks
+#
+PKG_CHECK_MODULES(GUILE_MONO, mono >= 0.16)
+AC_SUBST(GUILE_MONO_CFLAGS)
+AC_SUBST(GUILE_MONO_LIBS)
+
+AC_OUTPUT([
+Makefile
+mono/Makefile
+])
+
@@ -0,0 +1,9 @@
+.deps
+.libs
+*.lo
+*.x
+*.la
+guile-mono.c
+guile-mono.h
+guile-mono.html
+guile-mono.scm
@@ -0,0 +1,57 @@
+schemelibdir = $(pkgdatadir)/$(VERSION)
+
+INCLUDES = \
+ -I. \
+ -I$(srcdir) \
+ -I$(top_srcdir) \
+ $(WARN_CFLAGS) \
+ $(GUILE_MONO_CFLAGS) \
+ $(GUILE_CFLAGS) \
+ $(GWRAP_CFLAGS) \
+ -DGUILE_GOBJECT_DIR=\""$(schemelibdir)"\" \
+ -Werror -Wno-unused
+
+ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \
+ --regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/'
+
+guilemoduledir = $(datadir)/guile/mono
+
+guilemodule_DATA = guile-mono.scm mono.scm
+
+lib_LTLIBRARIES = libguile-mono.la
+
+libguile_mono_la_SOURCES = \
+ guile-mono-module.c \
+ guile-mono-module.h \
+ guile-mono.c
+
+libguile_mono_la_LIBADD = \
+ $(GUILE_MONO_LIBS) -lgc \
+ $(GUILE_LIBS) \
+ $(GWRAP_LIBS)
+
+libguile_mono_la_LDFLAGS = \
+ -export-dynamic
+
+DOT_X_FILES = \
+ guile-mono-module.x
+
+SUFFIXES = .x
+.c.x:
+ guile-snarf $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ \
+ || { rm $@; false; }
+
+guile-mono.h guile-mono.c guile-mono.html: guile-mono.gwp
+ FLAVOR=gnome guile -c \
+ "(set! %load-path (cons \"$(top_srcdir)\" %load-path)) \
+ (primitive-load \"$(srcdir)/guile-mono.gwp\")"
+
+BUILT_SOURCES = \
+ guile-mono.h guile-mono.c guile-mono.html \
+ $(DOT_X_FILES)
+
+CLEANFILES = $(BUILT_SOURCES)
+
+
+EXTRA_DIST = guile-mono.scm guile-mono.gwp
+
Oops, something went wrong. Retry.

0 comments on commit 0faecf4

Please sign in to comment.