version 1.192, 2007/06/24 21:01:45
|
version 1.200, 2007/12/31 17:34:58
|
Line 1
|
Line 1
|
dnl Process this file with autoconf to produce a configure script. |
dnl Process this file with autoconf to produce a configure script. |
|
|
#Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006 Free Software Foundation, Inc. |
#Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007 Free Software Foundation, Inc. |
|
|
#This file is part of Gforth. |
#This file is part of Gforth. |
|
|
Line 591 AC_MSG_RESULT($ac_noreorder_blocks)
|
Line 591 AC_MSG_RESULT($ac_noreorder_blocks)
|
AC_MSG_CHECKING([if $CC understands -falign-labels=1]) |
AC_MSG_CHECKING([if $CC understands -falign-labels=1]) |
CFLAGS_1="$CFLAGS" |
CFLAGS_1="$CFLAGS" |
CFLAGS="$CFLAGS -falign-labels=1" |
CFLAGS="$CFLAGS -falign-labels=1" |
AC_TRY_COMPILE(,,ac_noreorder_blocks=yes;ENGINE_FLAGS="$ENGINE_FLAGS -falign-labels=1",ac_align_labels=no) |
AC_TRY_COMPILE(,,ac_align_labels=yes;ENGINE_FLAGS="$ENGINE_FLAGS -falign-labels=1",ac_align_labels=no) |
CFLAGS="$CFLAGS_1" |
CFLAGS="$CFLAGS_1" |
AC_MSG_RESULT($ac_align_labels) |
AC_MSG_RESULT($ac_align_labels) |
|
|
|
# Try if GCC understands -falign-loops=1 |
|
AC_MSG_CHECKING([if $CC understands -falign-loops=1]) |
|
CFLAGS_1="$CFLAGS" |
|
CFLAGS="$CFLAGS -falign-loops=1" |
|
AC_TRY_COMPILE(,,ac_align_loops=yes;ENGINE_FLAGS="$ENGINE_FLAGS -falign-loops=1",ac_align_loops=no) |
|
CFLAGS="$CFLAGS_1" |
|
AC_MSG_RESULT($ac_align_loops) |
|
|
|
# Try if GCC understands -falign-jumps=1 |
|
AC_MSG_CHECKING([if $CC understands -falign-jumps=1]) |
|
CFLAGS_1="$CFLAGS" |
|
CFLAGS="$CFLAGS -falign-jumps=1" |
|
AC_TRY_COMPILE(,,ac_align_jumps=yes;ENGINE_FLAGS="$ENGINE_FLAGS -falign-jumps=1",ac_align_jumps=no) |
|
CFLAGS="$CFLAGS_1" |
|
AC_MSG_RESULT($ac_align_jumps) |
|
|
# Try if GCC understands __attribute__((unused)) |
# Try if GCC understands __attribute__((unused)) |
AC_MSG_CHECKING([how to suppress 'unused variable' warnings]) |
AC_MSG_CHECKING([how to suppress 'unused variable' warnings]) |
AC_TRY_COMPILE(,[int __attribute__((unused)) foo;], MAYBE_UNUSED='__attribute__((unused))',) |
AC_TRY_COMPILE(,[int __attribute__((unused)) foo;], MAYBE_UNUSED='__attribute__((unused))',) |
AC_DEFINE_UNQUOTED(MAYBE_UNUSED,$MAYBE_UNUSED,[attribute for possibly unused variables]) |
AC_DEFINE_UNQUOTED(MAYBE_UNUSED,$MAYBE_UNUSED,[attribute for possibly unused variables]) |
AC_MSG_RESULT($MAYBE_UNUSED) |
AC_MSG_RESULT($MAYBE_UNUSED) |
|
|
|
#try if m4 understands -s |
|
AC_MSG_CHECKING([how to invoke m4]) |
|
if m4 -s /dev/null >/dev/null 2>&1; then |
|
M4="m4 -s" |
|
else |
|
M4=m4 |
|
fi |
|
AC_SUBST(M4) |
|
AC_DEFINE_UNQUOTED(M4,"$M4",[How to invoke m4]) |
|
AC_MSG_RESULT($M4) |
|
|
echo "machine='$machine'" |
echo "machine='$machine'" |
|
|
dnl AC_CHECK_PROG(asm_fs,asm.fs,arch/$machine/asm.fs,,$srcdir/arch/$machine) |
dnl AC_CHECK_PROG(asm_fs,asm.fs,arch/$machine/asm.fs,,$srcdir/arch/$machine) |
Line 768 AC_PROG_LN_S
|
Line 795 AC_PROG_LN_S
|
AC_PROG_INSTALL |
AC_PROG_INSTALL |
AC_CHECK_PROGS(TEXI2DVI,texi2dvi4a2ps texi2dvi) |
AC_CHECK_PROGS(TEXI2DVI,texi2dvi4a2ps texi2dvi) |
|
|
|
dnl MacOS X has a libtool that does something else |
|
AC_CHECK_PROGS(GNU_LIBTOOL,glibtool libtool) |
|
|
dnl Checks for library functions |
dnl Checks for library functions |
dnl This check is just for making later checks link with libm. |
dnl This check is just for making later checks link with libm. |
dnl using sin here is no good idea since it is built-into gcc and typechecked |
dnl using sin here is no good idea since it is built-into gcc and typechecked |
AC_CHECK_LIB(m,asin) |
AC_CHECK_LIB(m,asin) |
|
AC_CHECK_LIB(ltdl,lt_dlinit) |
AC_CHECK_LIB(dl,dlopen) |
AC_CHECK_LIB(dl,dlopen) |
dnl check for libffi 2.x |
dnl check for libffi 2.x |
AC_CHECK_LIB(ffi,ffi_call) |
AC_CHECK_LIB(ffi,ffi_call) |
Line 845 chmod +x vmgen
|
Line 876 chmod +x vmgen
|
chmod +x build-ec |
chmod +x build-ec |
test -d kernel||mkdir kernel |
test -d kernel||mkdir kernel |
$srcdir/mkinstalldirs include/gforth/$PACKAGE_VERSION |
$srcdir/mkinstalldirs include/gforth/$PACKAGE_VERSION |
ln -s ../../../engine/config.h ../../../engine/libcc.h include/gforth/$PACKAGE_VERSION]],[[PACKAGE_VERSION=$PACKAGE_VERSION]]) |
ln -sf ../../../engine/config.h ../../../engine/libcc.h include/gforth/$PACKAGE_VERSION]],[[PACKAGE_VERSION=$PACKAGE_VERSION]]) |
AC_OUTPUT |
AC_OUTPUT |
|
|