dnl Process this file with autoconf to produce a configure script.
AC_INIT([MIT/GNU Scheme microcode], [14.18], [bug-mit-scheme@gnu.org], [mit-scheme])
-AC_REVISION([$Id: configure.ac,v 1.20 2007/01/08 14:45:17 cph Exp $])
+AC_REVISION([$Id: configure.ac,v 1.21 2007/01/09 03:56:12 cph Exp $])
AC_CONFIG_SRCDIR([boot.c])
AC_CONFIG_HEADERS([config.h])
AC_PROG_MAKE_SET
dnl Substitution variables to be filled in below.
AS_FLAGS=
GC_HEAD_FILES=
-LIB_X11=
M4_FLAGS=
OPTIONAL_BASES=
OPTIONAL_OBJECTS=
fi
dnl Add support for X if present.
-if test "${no_x}" = "yes"; then
- LIB_X11=
-else
- LIB_X11=-lX11
+if test "${no_x}" != "yes"; then
+ if test "x${x_includes}" != x; then
+ FOO=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
+ CFLAGS="${CFLAGS} ${FOO}"
+ fi
+ if test "x${x_libraries}" != x; then
+ FOO=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
+ LIBS="${LIBS} ${FOO}"
+ fi
+ LIBS="${LIBS} -lX11"
OPTIONAL_BASES="${OPTIONAL_BASES} x11base x11term x11graph x11color"
fi
AC_SUBST([AS_FLAGS])
AC_SUBST([GC_HEAD_FILES])
-AC_SUBST([LIB_X11])
AC_SUBST([M4_FLAGS])
AC_SUBST([OPTIONAL_OBJECTS])
AC_SUBST([OPTIONAL_SOURCES])
# -*- Makefile -*-
#
-# $Id: Makefile.in.in,v 1.38 2007/01/08 14:45:17 cph Exp $
+# $Id: Makefile.in.in,v 1.39 2007/01/09 03:56:24 cph Exp $
#
# Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
# 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
OPTIONAL_SOURCES = @OPTIONAL_SOURCES@ $(COMPILED_SOURCES)
OPTIONAL_OBJECTS = @OPTIONAL_OBJECTS@ $(COMPILED_OBJECTS)
STATIC_LIBS = @STATIC_PREFIX@ @STATIC_LIBS@ @STATIC_SUFFIX@
-X_LIBS = @LIB_X11@
PRBFISH_LIBS = @PRBFISH_LIBS@
PRMD5_LIBS = @PRMD5_LIBS@
scheme_OBJECTS = $(SHARED_OBJECTS) $(STD_GC_OBJECTS) usrdef.o
scheme_DEPENDENCIES =
scheme_LDFLAGS = @DLD_LDFLAGS@
-scheme_LIBS = $(STATIC_LIBS) $(X_LIBS) $(LIBS)
+scheme_LIBS = $(STATIC_LIBS) $(LIBS)
bchscheme_SOURCES = $(SHARED_SOURCES) $(BCH_GC_SOURCES) bchdef.c
bchscheme_OBJECTS = $(SHARED_OBJECTS) $(BCH_GC_OBJECTS) bchdef.o
bchscheme_DEPENDENCIES =
bchscheme_LDFLAGS = @DLD_LDFLAGS@
-bchscheme_LIBS = $(STATIC_LIBS) $(X_LIBS) $(LIBS)
+bchscheme_LIBS = $(STATIC_LIBS) $(LIBS)
bchdrn_SOURCES = bchdrn.c bchutl.c
bchdrn_OBJECTS = bchdrn.o bchutl.o