m4-1.4.16

GNU M4 jest implementacją tradycyjnego UNIXowego procesora makr. Jest w większości kompatybilny z SRV4, ale posiada pewne rozszerzenia (np. przekazywanie więcej niż 9 pozycjonowanych parametrów do makr). GNU M4 posiada również wbudowane funkcje do włączania plików, wykonywania poleceń powłoki, robienia arytmetyki itp. Jednym z największych beneficjentów GNU M4 jest projekt GNU Autoconf.

Konfiguracja i kompilacja przy użyciu skryptu (w załączeniu):


soft@wega:~/m4% ./drf_m4-1.4.16_conf
cc: Sun C 5.10 SunOS_sparc 2009/06/03
usage: cc [ options] files.  Use 'cc -flags' for details
MANPATH=/usr/cluster/man:/usr/local/share/man:/usr/local/man:/usr/share/man
PATH=/usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin
CFLAGS=-fast
CPPFLAGS=-I/usr/local/include
CXXFLAGS=-fast
LDFLAGS=-L/usr/local/lib -R/usr/local/lib
=============================================
dmake clean [y|n] ?
n
=============================================
configure [y|n] ?
y
...
config.status: executing depfiles commands
config.status: executing stamp-h commands
=============================================

Kompilacja:


dmake [y|n] ?
y
dmake  all-recursive
Making all in .
Making all in examples
Making all in lib
...
dmake  all-recursive
Making all in .
Compilation successful
=============================================

Testowanie:


Test (dmake test || dmake check) [y|n] ?
y
...
m4 (GNU M4) 1.4.16
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
...
=======================
All 110 tests passed
(20 tests were not run)
=======================

Wszystkie testy przeszły pomyślnie, więc dmake install po przełączeniu na roota.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.