* Lots of files: New address for FSF.
[bpt/guile.git] / libguile / Makefile.in
index cde3c58..de08c98 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.1n from Makefile.am
+# Makefile.in generated automatically by automake 1.1p from Makefile.am
 
 # Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
 # This Makefile.in is free software; the Free Software Foundation
@@ -30,7 +30,7 @@ pkgdatadir = $(datadir)/@PACKAGE@
 pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
 
-top_builddir = .
+top_builddir = ..
 
 ACLOCAL = @ACLOCAL@
 AUTOCONF = @AUTOCONF@
@@ -51,15 +51,27 @@ PRE_UNINSTALL = true
 POST_UNINSTALL = true
 host_alias = @host_alias@
 host_triplet = @host@
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
 AWK = @AWK@
 CC = @CC@
+CPP = @CPP@
 LIBLOBJS = @LIBLOBJS@
 LIBTOOL = @LIBTOOL@
 MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
 PACKAGE = @PACKAGE@
 RANLIB = @RANLIB@
 VERSION = @VERSION@
-module = @module@
+qtmd_h = @qtmd_h@
+qtmdb_s = @qtmdb_s@
+qtmdc_c = @qtmdc_c@
+qtmdc_o = @qtmdc_o@
+qtmds_o = @qtmds_o@
+qtmds_s = @qtmds_s@
+target_libs = @target_libs@
 xtra_PLUGIN_guile_libs = @xtra_PLUGIN_guile_libs@
 
 AUTOMAKE_OPTIONS = foreign
@@ -67,6 +79,10 @@ AUTOMAKE_OPTIONS = foreign
 INCLUDES = -I.. -I$(srcdir)/..
 
 lib_LTLIBRARIES = libguile.la
+bin_PROGRAMS = guile
+
+guile_SOURCES = guile.c
+guile_LDADD = libguile.la ${THREAD_LIBS}
 
 libguile_la_SOURCES = \
     alist.c append.c appinit.c arbiters.c async.c boolean.c chars.c \
@@ -76,19 +92,20 @@ libguile_la_SOURCES = \
     hashtab.c init.c ioext.c kw.c list.c load.c mallocs.c markers.c \
     mbstrings.c net_db.c numbers.c objprop.c options.c pairs.c ports.c \
     posix.c print.c procprop.c procs.c ramap.c read.c root.c scmsigs.c \
-    sequences.c simpos.c smob.c socket.c stackchk.c stime.c strings.c \
-    strop.c strorder.c strports.c struct.c symbols.c tag.c throw.c unif.c \
-    variable.c vectors.c version.c vports.c weaks.c
+    script.c sequences.c simpos.c smob.c socket.c stackchk.c stime.c \
+    strings.c strop.c strorder.c strports.c struct.c symbols.c tag.c \
+    throw.c unif.c variable.c vectors.c version.c vports.c weaks.c
+
 EXTRA_libguile_la_SOURCES = _scm.h \
     backtrace.c stacks.c debug.c srcprop.c \
     strerror.c inet_aton.c putenv.c \
-    threads.c
+    threads.c alloca.c
 
 noinst_HEADERS = coop-threads.c coop-threads.h coop.c
 
 libguile_la_DEPENDENCIES = @LIBLOBJS@
 libguile_la_LIBADD = @LIBLOBJS@
-libguile_la_LDFLAGS = -version-info 0:0 -rpath $(libdir)
+libguile_la_LDFLAGS = -version-info 1:0 -rpath $(libdir)
 
 include_HEADERS = libguile.h
 
@@ -96,14 +113,14 @@ include_HEADERS = libguile.h
 pkginclude_HEADERS = gh.h
 
 # These are headers visible as <libguile/mumble.h>.
-modincludedir = $(includedir)/@module@
+modincludedir = $(includedir)/libguile
 modinclude_HEADERS = __scm.h alist.h append.h arbiters.h async.h \
     backtrace.h boolean.h chars.h continuations.h debug.h dynl.h dynwind.h \
     eq.h error.h eval.h extchrs.h feature.h filesys.h fports.h gc.h \
     gdb_interface.h gdbint.h genio.h gsubr.h hash.h hashtab.h init.h \
     ioext.h kw.h list.h load.h mallocs.h markers.h mbstrings.h net_db.h \
     numbers.h objprop.h options.h pairs.h ports.h posix.h print.h \
-    procprop.h procs.h ramap.h read.h root.h scmhob.h scmsigs.h \
+    procprop.h procs.h ramap.h read.h root.h scmhob.h scmsigs.h script.h \
     sequences.h simpos.h smob.h socket.h srcprop.h stackchk.h stacks.h \
     stime.h strings.h strop.h strorder.h strports.h struct.h symbols.h \
     tag.h tags.h throw.h unif.h variable.h vectors.h version.h vports.h \
@@ -121,9 +138,8 @@ gh_test_c_LDADD = ${check_ldadd}
 gh_test_repl_SOURCES = gh_test_repl.c
 gh_test_repl_LDADD = ${check_ldadd}
 
-EXTRA_DIST = gscm.c gscm.h ChangeLog-scm dynl-dl.c dynl-dld.c dynl-shl.c \
-    dynl-vms.c DYNAMIC-LINKING PLUGIN/REQ PLUGIN/guile.config \
-    PLUGIN/guile.libs.in cpp_signal.c cpp_errno.c cpp_err_symbols.in \
+EXTRA_DIST = ChangeLog-scm dynl-dl.c dynl-dld.c dynl-shl.c \
+    dynl-vms.c DYNAMIC-LINKING cpp_signal.c cpp_errno.c cpp_err_symbols.in \
     cpp_sig_symbols.in cpp_cnvt.awk \
     coop-threads.h.cygnus coop-threads.c.cygnus mit-pthreads.h mit-pthreads.c \
     fsu-pthreads.h
@@ -134,10 +150,7 @@ MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
 
 CLEANFILES=cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new \
        cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-CONFIG_HEADER_IN = scmconfig.h.in
-CONFIG_HEADER_FULL = scmconfig.h
-mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = scmconfig.h
 CONFIG_CLEAN_FILES =  guile-snarf
 LTLIBRARIES =  $(lib_LTLIBRARIES)
@@ -155,10 +168,15 @@ gh_io.lo gh_list.lo gh_predicates.lo gsubr.lo hash.lo hashtab.lo \
 init.lo ioext.lo kw.lo list.lo load.lo mallocs.lo markers.lo \
 mbstrings.lo net_db.lo numbers.lo objprop.lo options.lo pairs.lo \
 ports.lo posix.lo print.lo procprop.lo procs.lo ramap.lo read.lo \
-root.lo scmsigs.lo sequences.lo simpos.lo smob.lo socket.lo stackchk.lo \
-stime.lo strings.lo strop.lo strorder.lo strports.lo struct.lo \
-symbols.lo tag.lo throw.lo unif.lo variable.lo vectors.lo version.lo \
-vports.lo weaks.lo
+root.lo scmsigs.lo script.lo sequences.lo simpos.lo smob.lo socket.lo \
+stackchk.lo stime.lo strings.lo strop.lo strorder.lo strports.lo \
+struct.lo symbols.lo tag.lo throw.lo unif.lo variable.lo vectors.lo \
+version.lo vports.lo weaks.lo
+PROGRAMS =  $(bin_PROGRAMS)
+
+guile_OBJECTS =  guile.o
+guile_DEPENDENCIES =  libguile.la
+guile_LDFLAGS = 
 gh_test_c_OBJECTS =  gh_test_c.o
 gh_test_c_DEPENDENCIES =  libguile.la
 gh_test_c_LDFLAGS = 
@@ -170,14 +188,13 @@ SCRIPTS =  $(bin_SCRIPTS)
 CFLAGS = @CFLAGS@
 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
-LINK = $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@
+LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
 DATA =  $(modinclude_DATA)
 
 HEADERS =  $(include_HEADERS) $(modinclude_HEADERS) $(noinst_HEADERS) \
 $(pkginclude_HEADERS)
 
-DIST_COMMON =  COPYING ChangeLog Makefile.am Makefile.in acconfig.h \
-acinclude.m4 aclocal.m4 configure configure.in guile-snarf.in \
+DIST_COMMON =  COPYING ChangeLog Makefile.am Makefile.in guile-snarf.in \
 scmconfig.h.in stamp-h.in
 
 
@@ -185,7 +202,7 @@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
 TAR = tar
 GZIP = --best
-DEP_FILES =  .deps/alist.P .deps/append.P .deps/appinit.P \
+DEP_FILES =  .deps/alist.P .deps/alloca.P .deps/append.P .deps/appinit.P \
 .deps/arbiters.P .deps/async.P .deps/backtrace.P .deps/boolean.P \
 .deps/chars.P .deps/continuations.P .deps/debug.P .deps/dynl.P \
 .deps/dynwind.P .deps/eq.P .deps/error.P .deps/eval.P .deps/extchrs.P \
@@ -193,48 +210,42 @@ DEP_FILES =  .deps/alist.P .deps/append.P .deps/appinit.P \
 .deps/gdbint.P .deps/genio.P .deps/gh_data.P .deps/gh_eval.P \
 .deps/gh_funcs.P .deps/gh_init.P .deps/gh_io.P .deps/gh_list.P \
 .deps/gh_predicates.P .deps/gh_test_c.P .deps/gh_test_repl.P \
-.deps/gsubr.P .deps/hash.P .deps/hashtab.P .deps/inet_aton.P \
-.deps/init.P .deps/ioext.P .deps/kw.P .deps/list.P .deps/load.P \
-.deps/mallocs.P .deps/markers.P .deps/mbstrings.P .deps/net_db.P \
-.deps/numbers.P .deps/objprop.P .deps/options.P .deps/pairs.P \
-.deps/ports.P .deps/posix.P .deps/print.P .deps/procprop.P \
-.deps/procs.P .deps/putenv.P .deps/ramap.P .deps/read.P .deps/root.P \
-.deps/scmsigs.P .deps/sequences.P .deps/simpos.P .deps/smob.P \
-.deps/socket.P .deps/srcprop.P .deps/stackchk.P .deps/stacks.P \
-.deps/stime.P .deps/strerror.P .deps/strings.P .deps/strop.P \
-.deps/strorder.P .deps/strports.P .deps/struct.P .deps/symbols.P \
-.deps/tag.P .deps/threads.P .deps/throw.P .deps/unif.P .deps/variable.P \
+.deps/gsubr.P .deps/guile.P .deps/hash.P .deps/hashtab.P \
+.deps/inet_aton.P .deps/init.P .deps/ioext.P .deps/kw.P .deps/list.P \
+.deps/load.P .deps/mallocs.P .deps/markers.P .deps/mbstrings.P \
+.deps/net_db.P .deps/numbers.P .deps/objprop.P .deps/options.P \
+.deps/pairs.P .deps/ports.P .deps/posix.P .deps/print.P \
+.deps/procprop.P .deps/procs.P .deps/putenv.P .deps/ramap.P \
+.deps/read.P .deps/root.P .deps/scmsigs.P .deps/script.P \
+.deps/sequences.P .deps/simpos.P .deps/smob.P .deps/socket.P \
+.deps/srcprop.P .deps/stackchk.P .deps/stacks.P .deps/stime.P \
+.deps/strerror.P .deps/strings.P .deps/strop.P .deps/strorder.P \
+.deps/strports.P .deps/struct.P .deps/symbols.P .deps/tag.P \
+.deps/threads.P .deps/throw.P .deps/unif.P .deps/variable.P \
 .deps/vectors.P .deps/version.P .deps/vports.P .deps/weaks.P
-SOURCES = $(libguile_la_SOURCES) $(EXTRA_libguile_la_SOURCES) $(gh_test_c_SOURCES) $(gh_test_repl_SOURCES)
-OBJECTS = $(libguile_la_OBJECTS) $(gh_test_c_OBJECTS) $(gh_test_repl_OBJECTS)
+SOURCES = $(libguile_la_SOURCES) $(EXTRA_libguile_la_SOURCES) $(guile_SOURCES) $(gh_test_c_SOURCES) $(gh_test_repl_SOURCES)
+OBJECTS = $(libguile_la_OBJECTS) $(guile_OBJECTS) $(gh_test_c_OBJECTS) $(gh_test_repl_OBJECTS)
 
 default: all
 
 .SUFFIXES:
-.SUFFIXES: .c .o .lo .x
+.SUFFIXES: .c .lo .o .x
 $(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
-       cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
+       cd $(top_srcdir) && $(AUTOMAKE) --foreign libguile/Makefile
 
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
        cd $(top_builddir) \
-         && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
-$(srcdir)/aclocal.m4: @MAINT@ configure.in  acinclude.m4
-       cd $(srcdir) && $(ACLOCAL)
+         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
-config.status: configure
-       $(SHELL) ./config.status --recheck
-$(srcdir)/configure: @MAINT@configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
-       cd $(srcdir) && $(AUTOCONF)
 
-$(CONFIG_HEADER): stamp-h
-stamp-h: $(CONFIG_HEADER_IN) $(top_builddir)/config.status
+scmconfig.h: stamp-h
+stamp-h: $(srcdir)/scmconfig.h.in $(top_builddir)/config.status
        cd $(top_builddir) \
-         && CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADER_FULL) \
+         && CONFIG_FILES= CONFIG_HEADERS=libguile/scmconfig.h \
             $(SHELL) ./config.status
        @echo timestamp > stamp-h
-$(srcdir)/$(CONFIG_HEADER_IN): @MAINT@stamp-h.in
-$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
+$(srcdir)/scmconfig.h.in: @MAINT@$(srcdir)/stamp-h.in
+$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) 
        cd $(top_srcdir) && $(AUTOHEADER)
        echo timestamp > $(srcdir)/stamp-h.in
 
@@ -243,11 +254,11 @@ mostlyclean-hdr:
 clean-hdr:
 
 distclean-hdr:
-       rm -f $(CONFIG_HEADER)
+       rm -f scmconfig.h
 
 maintainer-clean-hdr:
 guile-snarf: $(top_builddir)/config.status guile-snarf.in
-       cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
+       cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
 
 mostlyclean-libLTLIBRARIES:
 
@@ -303,6 +314,31 @@ maintainer-clean-libtool:
 libguile.la: $(libguile_la_OBJECTS) $(libguile_la_DEPENDENCIES)
        $(LINK) -rpath $(libdir) $(libguile_la_LDFLAGS) $(libguile_la_OBJECTS) $(libguile_la_LIBADD) $(LIBS)
 
+mostlyclean-binPROGRAMS:
+
+clean-binPROGRAMS:
+       test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
+
+distclean-binPROGRAMS:
+
+maintainer-clean-binPROGRAMS:
+
+install-binPROGRAMS: $(bin_PROGRAMS)
+       @$(NORMAL_INSTALL)
+       $(mkinstalldirs) $(bindir)
+       @list='$(bin_PROGRAMS)'; for p in $$list; do \
+         if test -f $$p; then \
+           echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
+           $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
+         else :; fi; \
+       done
+
+uninstall-binPROGRAMS:
+       $(NORMAL_UNINSTALL)
+       list='$(bin_PROGRAMS)'; for p in $$list; do \
+         rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
+       done
+
 mostlyclean-checkPROGRAMS:
 
 clean-checkPROGRAMS:
@@ -312,6 +348,10 @@ distclean-checkPROGRAMS:
 
 maintainer-clean-checkPROGRAMS:
 
+guile: $(guile_OBJECTS) $(guile_DEPENDENCIES)
+       @rm -f guile
+       $(LINK) $(guile_LDFLAGS) $(guile_OBJECTS) $(guile_LDADD) $(LIBS)
+
 gh_test_c: $(gh_test_c_OBJECTS) $(gh_test_c_DEPENDENCIES)
        @rm -f gh_test_c
        $(LINK) $(gh_test_c_LDFLAGS) $(gh_test_c_OBJECTS) $(gh_test_c_LDADD) $(LIBS)
@@ -408,9 +448,6 @@ ID: $(HEADERS) $(SOURCES)
 TAGS:  $(HEADERS) $(SOURCES) scmconfig.h.in $(TAGS_DEPENDENCIES)
        tags=; \
        here=`pwd`; \
-       list='$(SUBDIRS)'; for subdir in $$list; do \
-         test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
-       done; \
        test -z "$(ETAGS_ARGS)scmconfig.h.in$(SOURCES)$(HEADERS)$$tags" \
          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags scmconfig.h.in $(SOURCES) $(HEADERS) -o $$here/TAGS)
 
@@ -423,44 +460,15 @@ distclean-tags:
 
 maintainer-clean-tags:
 
-distdir = $(PACKAGE)-$(VERSION)
-# This target untars the dist file and tries a VPATH configuration.  Then
-# it guarantees that the distribution is self-contained by making another
-# tarfile.
-distcheck: dist
-       rm -rf $(distdir)
-       GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
-       mkdir $(distdir)/=build
-       mkdir $(distdir)/=inst
-       dc_install_base=`cd $(distdir)/=inst && pwd`; \
-       cd $(distdir)/=build \
-         && ../configure --srcdir=.. --prefix=$$dc_install_base \
-         && $(MAKE) \
-         && $(MAKE) dvi \
-         && $(MAKE) check \
-         && $(MAKE) install \
-         && $(MAKE) installcheck \
-         && $(MAKE) dist
-       rm -rf $(distdir)
-       @echo "========================"; \
-       echo "$(distdir).tar.gz is ready for distribution"; \
-       echo "========================"
-dist: distdir
-       -chmod -R a+r $(distdir)
-       GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
-       rm -rf $(distdir)
-dist-all: distdir
-       -chmod -R a+r $(distdir)
-       GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
-       rm -rf $(distdir)
+distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
+
+subdir = libguile
+
 distdir: $(DISTFILES)
-       rm -rf $(distdir)
-       mkdir $(distdir)
-       -chmod 755 $(distdir)
-       here=`pwd`; distdir=`cd $(distdir) && pwd` \
-         && cd $(srcdir) \
-         && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(srcdir) --output-dir=$$distdir --foreign
-       $(mkinstalldirs) $(distdir)/PLUGIN
+       here=`cd $(top_builddir) && pwd`; \
+       top_distdir=`cd $(top_distdir) && pwd`; \
+       cd $(top_srcdir) \
+         && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign libguile/Makefile
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          test -f $(distdir)/$$file \
@@ -483,17 +491,17 @@ distclean-depend:
 maintainer-clean-depend:
        rm -rf .deps
 
-.deps/%.P: $(srcdir)/%.c
+.deps/%.P: %.c
        @echo "Computing dependencies for $<..."
-       @o='o';                         \
-       test -n "$o" && o='$$o';        \
+       @o='o'; \
+       test -n "$o" && o='$$o'; \
        $(MKDEP) $< | sed "s,^\(.*\)\.o:,\1.$$o \1.l$$o $@:," > $@
 info:
 dvi:
 check: all $(check_PROGRAMS)
-       $(MAKE)
+       $(MAKE) check-local
 installcheck:
-install-exec: install-libLTLIBRARIES install-binSCRIPTS
+install-exec: install-libLTLIBRARIES install-binPROGRAMS install-binSCRIPTS
        @$(NORMAL_INSTALL)
 
 install-data: install-modincludeDATA install-includeHEADERS install-modincludeHEADERS install-pkgincludeHEADERS
@@ -502,15 +510,15 @@ install-data: install-modincludeDATA install-includeHEADERS install-modincludeHE
 install: install-exec install-data all
        @:
 
-uninstall: uninstall-libLTLIBRARIES uninstall-binSCRIPTS uninstall-modincludeDATA uninstall-includeHEADERS uninstall-modincludeHEADERS uninstall-pkgincludeHEADERS
+uninstall: uninstall-libLTLIBRARIES uninstall-binPROGRAMS uninstall-binSCRIPTS uninstall-modincludeDATA uninstall-includeHEADERS uninstall-modincludeHEADERS uninstall-pkgincludeHEADERS
 
-all: $(LTLIBRARIES) $(SCRIPTS) $(DATA) $(HEADERS) Makefile scmconfig.h
+all: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(DATA) $(HEADERS) scmconfig.h
 
 install-strip:
        $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
 installdirs:
-       $(mkinstalldirs)  $(libdir) $(bindir) $(modincludedir) $(includedir) \
-               $(modincludedir) $(pkgincludedir)
+       $(mkinstalldirs)  $(libdir) $(bindir) $(bindir) $(modincludedir) \
+               $(includedir) $(modincludedir) $(pkgincludedir)
 
 
 mostlyclean-generic:
@@ -521,7 +529,7 @@ clean-generic:
 
 distclean-generic:
        rm -f Makefile $(DISTCLEANFILES)
-       rm -f config.cache config.log stamp-h
+       rm -f config.cache config.log stamp-h stamp-h[0-9]*
        test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
 
 maintainer-clean-generic:
@@ -529,27 +537,28 @@ maintainer-clean-generic:
        test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
 mostlyclean:  mostlyclean-hdr mostlyclean-libLTLIBRARIES \
                mostlyclean-compile mostlyclean-libtool \
-               mostlyclean-checkPROGRAMS mostlyclean-tags \
-               mostlyclean-depend mostlyclean-generic
+               mostlyclean-binPROGRAMS mostlyclean-checkPROGRAMS \
+               mostlyclean-tags mostlyclean-depend mostlyclean-generic
 
 clean:  clean-hdr clean-libLTLIBRARIES clean-compile clean-libtool \
-               clean-checkPROGRAMS clean-tags clean-depend \
-               clean-generic mostlyclean
+               clean-binPROGRAMS clean-checkPROGRAMS clean-tags \
+               clean-depend clean-generic mostlyclean
 
 distclean:  distclean-hdr distclean-libLTLIBRARIES distclean-compile \
-               distclean-libtool distclean-checkPROGRAMS \
-               distclean-tags distclean-depend distclean-generic clean
+               distclean-libtool distclean-binPROGRAMS \
+               distclean-checkPROGRAMS distclean-tags distclean-depend \
+               distclean-generic clean
        rm -f config.status
        rm -f libtool
 
 maintainer-clean:  maintainer-clean-hdr maintainer-clean-libLTLIBRARIES \
                maintainer-clean-compile maintainer-clean-libtool \
+               maintainer-clean-binPROGRAMS \
                maintainer-clean-checkPROGRAMS maintainer-clean-tags \
                maintainer-clean-depend maintainer-clean-generic \
                distclean
        @echo "This command is intended for maintainers to use;"
        @echo "it deletes files that may require special tools to rebuild."
-       rm -f config.status
 
 .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
 maintainer-clean-hdr mostlyclean-libLTLIBRARIES \
@@ -558,6 +567,8 @@ maintainer-clean-libLTLIBRARIES uninstall-libLTLIBRARIES \
 install-libLTLIBRARIES mostlyclean-compile distclean-compile \
 clean-compile maintainer-clean-compile mostlyclean-libtool \
 distclean-libtool clean-libtool maintainer-clean-libtool \
+mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
+maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
 mostlyclean-checkPROGRAMS distclean-checkPROGRAMS clean-checkPROGRAMS \
 maintainer-clean-checkPROGRAMS uninstall-binSCRIPTS install-binSCRIPTS \
 uninstall-modincludeDATA install-modincludeDATA \
@@ -566,27 +577,35 @@ uninstall-modincludeHEADERS install-modincludeHEADERS \
 uninstall-pkgincludeHEADERS install-pkgincludeHEADERS tags \
 mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
 distdir mostlyclean-depend distclean-depend clean-depend \
-maintainer-clean-depend info dvi installcheck install-exec install-data \
-install uninstall all installdirs mostlyclean-generic distclean-generic \
-clean-generic maintainer-clean-generic clean mostlyclean distclean \
-maintainer-clean
+maintainer-clean-depend info dvi check-local installcheck install-exec \
+install-data install uninstall all installdirs mostlyclean-generic \
+distclean-generic clean-generic maintainer-clean-generic clean \
+mostlyclean distclean maintainer-clean
+
 
+check-local:
+       echo '(+ 1 2 3)' | ./gh_test_c; echo
+       echo '(+ 1 2 3)' | ./gh_test_repl; echo
 
 libpath.h: Makefile
-       echo '/* generated by Makefile */' > libpath.h
-       echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.h
-       echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$(VERSION)"' >> libpath.h
-       echo '#define SCM_SITE_DIR "$(pkgdatadir)/site"' >> libpath.h
+       rm -f libpath.tmp
+       echo '/* generated by Makefile */' > libpath.tmp
+       echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.tmp
+       echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$(VERSION)"' >>libpath.tmp
+       echo '#define SCM_SITE_DIR "$(pkgdatadir)/site"' >> libpath.tmp
+       mv libpath.tmp libpath.h
 .c.x:
        ./guile-snarf $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@
 
 cpp_err_symbols.c: cpp_err_symbols.in
        $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_err_symbols.in > \
-               cpp_err_symbols.c
+               cpp_err_symbols.tmp
+       mv cpp_err_symbols.tmp cpp_err_symbols.c
 
 cpp_sig_symbols.c: cpp_sig_symbols.in
        $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_sig_symbols.in > \
-               cpp_sig_symbols.c
+               cpp_sig_symbols.tmp
+       mv cpp_sig_symbols.tmp cpp_sig_symbols.c
 
 check_signals:
        gcc -undef -dM -E $(srcdir)/cpp_signal.c | egrep ' SIG[A-Z]+' \