1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

modula2comp-script: New module.

* m4/modula2comp.m4: New file.
* modules/modula2comp-script: New file.
This commit is contained in:
Bruno Haible
2025-04-25 00:56:09 +02:00
parent 4a1b37a571
commit c0e56f571e
3 changed files with 58 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2025-04-24 Bruno Haible <bruno@clisp.org>
modula2comp-script: New module.
* m4/modula2comp.m4: New file.
* modules/modula2comp-script: New file.
2025-04-24 Bruno Haible <bruno@clisp.org> 2025-04-24 Bruno Haible <bruno@clisp.org>
fbufmode: Don't require peeking into the FILE structure on recent Haiku. fbufmode: Don't require peeking into the FILE structure on recent Haiku.

34
m4/modula2comp.m4 Normal file
View File

@@ -0,0 +1,34 @@
# modula2comp.m4
# serial 1
dnl Copyright (C) 2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This file is offered as-is, without any warranty.
# Checks for a Modula-2 implementation.
# Sets M2C and M2FLAGS (options that can be used with "$M2C").
AC_DEFUN([gt_MODULA2COMP],
[
AC_MSG_CHECKING([for GNU Modula-2 compiler])
pushdef([AC_MSG_CHECKING],[:])dnl
pushdef([AC_CHECKING],[:])dnl
pushdef([AC_MSG_RESULT],[:])dnl
AC_ARG_VAR([M2C], [Modula-2 compiler command])
AC_ARG_VAR([M2FLAGS], [Modula-2 compiler options])
AC_CHECK_TOOLS([M2C], [gm2])
popdef([AC_MSG_RESULT])dnl
popdef([AC_CHECKING])dnl
popdef([AC_MSG_CHECKING])dnl
if test -n "$M2C"; then
ac_result="$M2C"
else
ac_result="no"
fi
AC_MSG_RESULT([$ac_result])
AC_SUBST([M2C])
if test -z "$M2FLAGS" && test -n "$M2C"; then
M2FLAGS="-g -O2"
fi
AC_SUBST([M2FLAGS])
])

View File

@@ -0,0 +1,18 @@
Description:
Support for compiling Modula-2 programs.
Files:
m4/modula2comp.m4
Depends-on:
configure.ac:
AC_REQUIRE([gt_MODULA2COMP])
Makefile.am:
License:
GPLed build tool
Maintainer:
all