1## Process this file with Automake to create Makefile.in
2## Jim Blandy <jimb@red-bean.com> --- September 1997
3##
4##  	Copyright (C) 1998, 1999, 2001, 2006, 2007, 2008 Free Software Foundation, Inc.
5##
6##   This file is part of GUILE.
7##
8##   GUILE is free software; you can redistribute it and/or modify
9##   it under the terms of the GNU General Public License as
10##   published by the Free Software Foundation; either version 2, or
11##   (at your option) any later version.
12##
13##   GUILE is distributed in the hope that it will be useful, but
14##   WITHOUT ANY WARRANTY; without even the implied warranty of
15##   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16##   GNU General Public License for more details.
17##
18##   You should have received a copy of the GNU General Public
19##   License along with GUILE; see the file COPYING.  If not, write
20##   to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21##   Floor, Boston, MA 02110-1301 USA
22
23bin_SCRIPTS=guile-config
24CLEANFILES=guile-config
25EXTRA_DIST=guile-config.in guile.m4 ChangeLog-2008
26
27## FIXME: in the future there will be direct automake support for
28## doing this.  When that happens, switch over.
29aclocaldir = $(datadir)/aclocal
30aclocal_DATA = guile.m4
31
32## We use @-...-@ as the substitution brackets here, instead of the
33## usual @...@, so autoconf doesn't go and substitute the values
34## directly into the left-hand sides of the sed substitutions.  *sigh*
35guile-config: guile-config.in ${top_builddir}/libguile/libpath.h
36	rm -f guile-config.tmp
37	sed < ${srcdir}/guile-config.in > guile-config.tmp \
38	    -e 's|@-bindir-@|${bindir}|' \
39	    -e s:@-GUILE_VERSION-@:${GUILE_VERSION}:
40	chmod +x guile-config.tmp
41	mv guile-config.tmp guile-config
42
43## Get rid of any copies of the configuration script under the old
44## name, so people don't end up running ancient copies of it.
45install-exec-local:
46	rm -f ${bindir}/build-guile
47