[m-rev.] for review: configure with older autoconf

Peter Wang wangp at students.csse.unimelb.edu.au
Fri Jul 20 16:33:41 AEST 2007


Estimated hours taken: 0.1
Branches: main

aclocal.m4:
	Copy AC_ERLANG_PATH_ERLC, AC_ERLANG_PATH_ERL from autoconf-2.60
	(renaming them) since so that configure can be generated with older
	versions of autoconf.

Index: aclocal.m4
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/aclocal.m4,v
retrieving revision 1.27
diff -u -r1.27 aclocal.m4
--- aclocal.m4	20 Jul 2007 01:21:59 -0000	1.27
+++ aclocal.m4	20 Jul 2007 06:27:41 -0000
@@ -354,10 +354,34 @@
 #
 # Erlang configuration
 #
+
+# copy of AC_ERLANG_PATH_ERLC from autoconf-2.60
+AC_DEFUN([MERCURY_ERLANG_PATH_ERLC],
+[AC_ARG_VAR([ERLC], [Erlang/OTP compiler command [autodetected]])dnl
+if test -n "$ERLC"; then
+    AC_MSG_CHECKING([for erlc])
+    AC_MSG_RESULT([$ERLC])
+else
+    AC_PATH_TOOL(ERLC, erlc, [$1], [$2])
+fi
+AC_ARG_VAR([ERLCFLAGS], [Erlang/OTP compiler flags [none]])dnl
+])
+
+# copy of AC_ERLANG_PATH_ERL from autoconf-2.60
+AC_DEFUN([MERCURY_ERLANG_PATH_ERL],
+[AC_ARG_VAR([ERL], [Erlang/OTP interpreter command [autodetected]])dnl
+if test -n "$ERL"; then
+    AC_MSG_CHECKING([for erl])
+    AC_MSG_RESULT([$ERL])
+else
+    AC_PATH_TOOL(ERL, erl, [$1], [$2])[]dnl
+fi
+])
+
 AC_DEFUN(MERCURY_CHECK_ERLANG,
 [
-AC_ERLANG_PATH_ERLC
-AC_ERLANG_PATH_ERL
+MERCURY_ERLANG_PATH_ERLC
+MERCURY_ERLANG_PATH_ERL
 
 if test "$ERLC" != "" -a "$ERL" != ""; then
 	mercury_cv_erlang="yes"
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list