3 ;;; GNU Mes --- Maxwell Equations of Software
4 ;;; Copyright © 2016,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
6 ;;; mes-0.scm: This file is part of GNU Mes.
8 ;;; GNU Mes is free software; you can redistribute it and/or modify it
9 ;;; under the terms of the GNU General Public License as published by
10 ;;; the Free Software Foundation; either version 3 of the License, or (at
11 ;;; your option) any later version.
13 ;;; GNU Mes is distributed in the hope that it will be useful, but
14 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;;; GNU General Public License for more details.
18 ;;; You should have received a copy of the GNU General Public License
19 ;;; along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
23 ;;; mes-0.scm is the first file being loaded into Guile. It provides
24 ;;; non-standard definitions that Mes modules and tests depend on.
28 (define-module (mes mes-0)
44 (define %host-type (string-append (utsname:machine (uname)) "linux-gnu")))
47 (define-macro (mes-use-module . rest) #t)
48 (define builtin? procedure?) ; not strictly true, but ok for tests/*.test
51 (define guile-1.8? (equal? (effective-version) "1.8"))
52 (define guile-2? (equal? (major-version) "2"))
53 (define EOF (if #f #f))
54 (define append2 append)
55 (define %arch (car (string-split %host-type #\-)))
56 (define %compiler "gnuc")