dnl Process this file with autoconf to produce a configure script.
AC_INIT([MIT/GNU Scheme microcode], [15.1], [bug-mit-scheme@gnu.org], [mit-scheme])
-AC_REVISION([$Id: configure.ac,v 1.57 2007/11/25 05:24:42 cph Exp $])
+AC_REVISION([$Id: configure.ac,v 1.58 2007/11/26 05:19:33 cph Exp $])
AC_CONFIG_SRCDIR([boot.c])
AC_CONFIG_HEADERS([config.h])
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
+
+CFLAGS=${EXTRA_CFLAGS}
+LDFLAGS=${EXTRA_LDFLAGS}
+
+if test x${MAC_ARCH} != x; then
+ CFLAGS="${CFLAGS} -arch ${MAC_ARCH}"
+ LDFLAGS="${LDFLAGS} -arch ${MAC_ARCH}"
+fi
+
if test ${GCC} = yes; then
if test ${enable_debugging} = no; then
- CFLAGS="-O3"
+ CFLAGS="${CFLAGS} -O3"
else
- CFLAGS="-O0 -g -DENABLE_DEBUGGING_TOOLS"
+ CFLAGS="${CFLAGS} -O0 -g -DENABLE_DEBUGGING_TOOLS"
LDFLAGS="${LDFLAGS} -g"
fi
CFLAGS="${CFLAGS} -Wall -Wundef -Wpointer-arith -Winline"
GNU_LD=yes
;;
darwin*)
+ MACOSX=yes
MACOSX_SYSROOT=/Developer/SDKs/MacOSX10.4u.sdk
if test -d ${MACOSX_SYSROOT}; then
MACOSX_CFLAGS="-mmacosx-version-min=10.4 -isysroot ${MACOSX_SYSROOT}"
MACOSX_LDFLAGS="${MACOSX_CFLAGS} -Wl,-syslibroot,${MACOSX_SYSROOT}"
CFLAGS="${CFLAGS} ${MACOSX_CFLAGS}"
- SCHEME_LDFLAGS="${SCHEME_LDFLAGS} ${MACOSX_LDFLAGS}"
- MODULE_CFLAGS="${MODULE_CFLAGS} ${MACOSX_CFLAGS}"
- MODULE_LDFLAGS="${MODULE_LDFLAGS} ${MACOSX_LDFLAGS}"
+ LDFLAGS="${LDFLAGS} ${MACOSX_LDFLAGS}"
fi
- MODULE_LDFLAGS="${MODULE_LDFLAGS} -bundle -bundle_loader scheme"
+ MODULE_LDFLAGS="${MODULE_LDFLAGS} -bundle -bundle_loader "'${SCHEME_EXE}'
;;
netbsd*)
DO_GCC_TESTS=yes
done
fi
-if test ${SCM_ARCH} = i386; then
- case ${host_os} in
- darwin*)
- SCHEME_LDFLAGS="${SCHEME_LDFLAGS} -Wl,-pagezero_size,04000000"
- ;;
- esac
+if test x${MACOSX} = xyes && test ${SCM_ARCH} = i386; then
+ SCHEME_LDFLAGS="${SCHEME_LDFLAGS} -Wl,-pagezero_size,04000000"
fi
AC_SUBST([AS_FLAGS])
#!/bin/sh
#
-# $Id: liarc-ld.in,v 1.2 2007/05/14 16:50:54 cph Exp $
+# $Id: liarc-ld.in,v 1.3 2007/11/26 05:19:34 cph Exp $
#
# Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
# 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
OUT=${1}
shift
+SCHEME_EXE=`dirname ${0}`/scheme
+
CMD="@CCLD@ @LDFLAGS@ @MODULE_LDFLAGS@ -o ${OUT} ${@}"
echo "${CMD}"
eval "${CMD}"
# -*- Makefile -*-
#
-# $Id: Makefile.in.in,v 1.61 2007/11/25 05:24:43 cph Exp $
+# $Id: Makefile.in.in,v 1.62 2007/11/26 05:19:35 cph Exp $
#
# Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
# 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
install-include:
$(mkinstalldirs) $(DESTDIR)$(AUXDIR)
- $(INSTALL_PROGRAM) liarc-cc liarc-ld $(DESTDIR)$(AUXDIR)/.
+ $(INSTALL_PROGRAM) liarc-cc $(DESTDIR)$(AUXDIR)/.
+ sed -e "s&^SCHEME_EXE=.*&SCHEME_EXE=$(bindir)/$(EXE_NAME)&" < liarc-ld > liarc-ld.install
+ $(INSTALL_PROGRAM) liarc-ld.install $(DESTDIR)$(AUXDIR)/liarc-ld
+ rm -f liarc-ld.install
$(mkinstalldirs) $(DESTDIR)$(AUXDIR)/include
$(INSTALL_DATA) *.h $(DESTDIR)$(AUXDIR)/include/.