Require 2.50, and use AC_LIBSOURCES freely.
* tests/asm.tests: Formatting changes.
Exercise AM_PROG_AS.
+2001-10-21 Akim Demaille <akim@epita.fr>
+
+ * m4/regex.m4: Use AC_LIBOBJ.
+ Require 2.50, and use AC_LIBSOURCES freely.
+ * tests/asm.tests: Formatting changes.
+ Exercise AM_PROG_AS.
+
2001-10-21 Akim Demaille <akim@epita.fr>
* tests/install.test: This test is an empty shell, do not run
-# Figure out how to run the assembler.
+# Figure out how to run the assembler. -*- Autoconf -*-
+
+# serial 2
# Copyright 2001 Free Software Foundation, Inc.
# 02111-1307, USA.
# AM_PROG_AS
+# ----------
AC_DEFUN([AM_PROG_AS],
[# By default we simply use the C compiler to build assembly code.
AC_REQUIRE([AC_PROG_CC])
-## --------------------------------- ##
+## --------------------------------- ## -*- Autoconf -*-
## Check if --with-regex was given. ##
## --------------------------------- ##
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
-# serial 2
+# serial 3
+AC_PREREQ(2.50)
# AM_WITH_REGEX
# -------------
# FIXME: This macro seems quite obsolete now since rx doesn't seem to
# be maintained, while regex is.
AC_DEFUN([AM_WITH_REGEX],
-[ifdef([AC_LIBSOURCES],
- [AC_LIBSOURCES([rx.h, rx.c, regex.c, regex.h])])dnl
+[AC_LIBSOURCES([rx.h, rx.c, regex.c, regex.h])dnl
AC_MSG_CHECKING([which of GNU rx or gawk's regex is wanted])
AC_ARG_WITH(regex,
[ --without-regex use GNU rx in lieu of gawk's regex for matching],
[am_cv_gnu_regex=yes],
[am_cv_gnu_regex=no])])
if test $am_cv_gnu_regex = no; then
- LIBOBJS="$LIBOBJS regex.$ac_objext"
+ AC_LIBOBJ([regex])
fi
else
AC_MSG_RESULT(rx)
- AC_CHECK_FUNC(re_rx_search, , [LIBOBJS="$LIBOBJS rx.$ac_objext"])
+ AC_CHECK_FUNC(re_rx_search, , [AC_LIBOBJ([rx])])
fi
AC_SUBST(LIBOBJS)dnl
])
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AWK = @AWK@
+DEFS = @DEFS@
DEPDIR = @DEPDIR@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LIBS = @LIBS@
+MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
PERL = @PERL@
+SET_MAKE = @SET_MAKE@
VERSION = @VERSION@
-am__include = @am__include@
-am__quote = @am__quote@
+build_alias = @build_alias@
+host_alias = @host_alias@
install_sh = @install_sh@
+program_transform_name = @program_transform_name@
+target_alias = @target_alias@
XFAIL_TESTS = condd.test subdir5.test auxdir2.test cond17.test nobase.test
info.test \
insh.test \
insh2.test \
-install.test \
install2.test \
installsh.test \
instdata.test \
. $srcdir/defs || exit 1
-cat > configure.in << 'END'
-AC_INIT
-AM_INIT_AUTOMAKE(nonesuch, nonesuch)
-AC_SUBST(ASFLAGS)
-AC_OUTPUT(Makefile)
-END
-
cat > Makefile.am << 'END'
noinst_PROGRAMS = maude
maude_SOURCES = maude.s
: > maude.s
-# Should fail because we need cc and as.
+# Should fail because we need CC and AS.
echo 1
+cat > configure.in << 'END'
+AC_INIT
+AM_INIT_AUTOMAKE(nonesuch, nonesuch)
+AC_SUBST(ASFLAGS)
+AC_OUTPUT(Makefile)
+END
+
$ACLOCAL || exit 1
$AUTOMAKE && exit 1
+# We still need AS.
+echo 2
cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
AC_OUTPUT(Makefile)
END
-# We still need as.
-echo 2
$ACLOCAL || exit 1
$AUTOMAKE && exit 1
+# We need ASFLAGS.
+echo 3
cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
AC_OUTPUT(Makefile)
END
-# We need ASFLAGS.
-echo 3
$ACLOCAL || exit 1
$AUTOMAKE && exit 1
+# We have every needed, expect a success.
+echo 4
cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
AC_OUTPUT(Makefile)
END
-echo 4
-$ACLOCAL || exit 1
-$AUTOMAKE
+$ACLOCAL || exit 1
+$AUTOMAKE || exit 1
+
+
+# We have every needed, expect a success.
+echo 5
+cat > configure.in << 'END'
+AC_INIT
+AM_INIT_AUTOMAKE(nonesuch, nonesuch)
+AC_PROG_AS
+END
+
+$ACLOCAL || exit 1
+$AUTOMAKE || exit 1
+
+exit 0