summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authormarcus <marcus>2003-10-12 22:35:16 +0000
committermarcus <marcus>2003-10-12 22:35:16 +0000
commit1360ee229371ef101d3fc44efb25607ee86cd3e0 (patch)
treea71e10ff7aa86229b9142d1d78d565ea44e6aa08 /acinclude.m4
parent5f8d051dba30f9885e250faed28e418d4a11af49 (diff)
2003-10-12 Marcus Brinkmann <marcus@gnu.org>
* acinclude.m4: New file. * configure.ac: Include laden/config.m4, wortel/config.m4, and physmem/config.m4. laden/ 2003-10-12 Marcus Brinkmann <marcus@gnu.org> * config.m4: New file. * Makefile.am (laden_LDFLAGS): Replace load address with @HURD_LADEN_LOAD_ADDRESS@. physmem/ 2003-10-12 Marcus Brinkmann <marcus@gnu.org> * config.m4: New file. * Makefile.am (physmem_LDFLAGS): Replace load address with @HURD_PHYSMEM_LOAD_ADDRESS@. wortel/ 2003-10-12 Marcus Brinkmann <marcus@gnu.org> * config.m4: New file. * Makefile.am (wortel_LDFLAGS): Replace load address with @HURD_WORTEL_LOAD_ADDRESS@.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m433
1 files changed, 33 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
new file mode 100644
index 0000000..b35e542
--- /dev/null
+++ b/acinclude.m4
@@ -0,0 +1,33 @@
+# acinclude.m4 - Macro definitions
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# Written by Marcus Brinkmann.
+#
+# This file is part of the GNU Hurd.
+#
+# The GNU Hurd is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# The GNU Hurd is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+
+# HURD_LOAD_ADDRESS([module], [default-link-address])
+#
+# For the module MODULE, set the default link address to
+# DEFAULT-LINK-ADDRESS, and add an option --with-MODULE-load-address.
+
+AC_DEFUN(HURD_LOAD_ADDRESS,
+ [AC_ARG_WITH([$1-loadaddr],
+ AC_HELP_STRING([--with-$1-loadaddr],
+ [$1 load address @<:@$2@:>@]),
+ hurd_$1_load_address=$withval,
+ hurd_$1_load_address=$2)
+ HURD_[]translit($1, [a-z], [A-Z])_LOAD_ADDRESS=$hurd_$1_load_address
+ AC_SUBST(HURD_[]translit($1, [a-z], [A-Z])_LOAD_ADDRESS)])