summaryrefslogtreecommitdiff
path: root/debian/patches/00_autoconf_update.patch
blob: 644cb0231aff557aeb441d464944349eb2237075 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
#DPATCHLEVEL=1

2004-10-25  Guillem Jover  <guillem@hadrons.org>

	* Drivers.macros (AC_DRIVER_CLASS): Use AH_TEMPLATE.
	(AC_DRIVER): Set the value for the AC_DEFINE and AC_DEFINE_UNQUOTED
	to 1.

2004-09-15  Guillem Jover  <guillem@hadrons.org>

	* aclocal.m4 (AC_PROG_CC_LOCAL, AC_PROG_CC_WORKS_LOCAL): Removed.
	* version.m4: New file.
	* Makefile.in: Use PACKAGE_VERSION, not VERSION.
	* doc/Makefile.in: Likewise.
	* version.c.in: Likewise. Use PACKAGE_NAME, not "GNUmach".
	* i386/linux/Makefile.in (configure): Change its source to
	configure.ac.

	* aclocal.m4: Add missing quotations.
	* Drivers.macros: Likewise.
	* configure.in: Likewise. Include version.m4 and use PACKAGE and
	VERSION m4 macros from it.
	* i386/configure.in: Likewise.
	(AC_INIT): Use new syntax and move source check to AC_CONFIG_SRCDIR.
	* i386/linux/configure.ac: Likewise. Use m4_sinclude, not sinclude.
	* linux/configure.in: Likewise.

	* i386/configure.in: Update AC_DEFINE to the new three argument form.
	* i386/linux/configure.ac: Move AC_DEFINE inside AC_ARG_ENABLE.

	* configure.in: Use AC_CONFIG_LINKS, not AC_LINK_FILES.
	* linux/configure.in: Likewise.

	* i386/configure.in: Call AC_CONFIG_FILES and use the new form of
	AC_OUTPUT.
	* i386/linux/configure.ac: Likewise.
	* linux/configure.in: Likewise

	* configure.in: Use AS_HELP_STRING in AC_ARG_ENABLE help strings.
	* Drivers.macros: Likewise.
	* i386/configure.in: Likewise.
	* i386/linux/configure.ac: Likewise.

2004-09-06  Neal H. Walfield  <neal@cs.uml.edu>

	* configure.in: Update to use autoconf 2.57.
	Do not error out if host_os is not GNU.
	Update AC_DEFINEs to the required three argument form.
	Don't call AC_CHECK_TOOL(CC, gcc) and AC_PROG_CC_LOCAL, just use
	AC_PROG_CC.
	AC_SUBST(LDFLAGS).
	Refactor AC_CONFIG_SUBDIRS to not do variable substitution.
	Call AC_CONFIG_FILES and use the new form of AC_OUTPUT.
	* i386/configure.in: Require autoconf 2.57.
	* linux/configure.in: Likewise.
	* i386/linux/Drivers.in: Move from here...
	* i386/linux/configure.ac: ... to here to conform to the
	environment autoreconf expects.
	(hurd_host_CPU): New macro.
	Call AC_PROG_CC, not AC_PROG_CC_LOCAL.
	AC_SUBST(LD_FLAGS).
	(flashpoint): Update AC_DEFINE to the new three argument form.
	* Drivers.macros (AC_DRIVER): Update AC_DEFINE to the new three
	argument form.


diff -Naur gnumach-20040915.orig/aclocal.m4 gnumach-20040915/aclocal.m4
--- gnumach-20040915.orig/aclocal.m4	1999-05-01 02:34:20.000000000 +0200
+++ gnumach-20040915/aclocal.m4	2004-09-18 20:36:32.000000000 +0200
@@ -2,80 +2,10 @@
 dnl In the situation that cross-linking is impossible, the variable
 dnl `cross_linkable' will be substituted with "yes".
 
-dnl
-AC_DEFUN(AC_PROG_CC_LOCAL,
-[AC_BEFORE([$0], [AC_PROG_CPP])dnl
-AC_CHECK_PROG(CC, gcc, gcc)
-if test -z "$CC"; then
-  AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
-  test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
-fi
-
-AC_PROG_CC_WORKS_LOCAL
-AC_PROG_CC_GNU
-
-if test $ac_cv_prog_gcc = yes; then
-  GCC=yes
-dnl Check whether -g works, even if CFLAGS is set, in case the package
-dnl plays around with CFLAGS (such as to build both debugging and
-dnl normal versions of a library), tasteless as that idea is.
-  ac_test_CFLAGS="${CFLAGS+set}"
-  ac_save_CFLAGS="$CFLAGS"
-  CFLAGS=
-dnl  AC_PROG_CC_G
-  if test "$ac_test_CFLAGS" = set; then
-    CFLAGS="$ac_save_CFLAGS"
-dnl # This doesn't work on Linux (libc-4.5.26): Because of differences between
-dnl # the shared and the static libraries there are less symbols available
-dnl # without -g than with -g. It is therefore better to run the configuration
-dnl # without -g and to add -g afterwards than the contrary. So don't add
-dnl # -g to the CFLAGS now.
-dnl  elif test $ac_cv_prog_cc_g = yes; then
-dnl    CFLAGS="-g -O"
-  else
-dnl    CFLAGS="-O"
-    # Add "-O" to both the CC and CPP commands, to eliminate possible confusion
-    # that results from __OPTIMIZE__ being defined for CC but not CPP.
-changequote(, )dnl
-    if echo "$CC " | grep ' -O[1-9 ]' > /dev/null 2>&1; then
-changequote([, ])dnl
-      : # already optimizing
-    else
-      CC="$CC -O"
-      ac_cv_prog_CC="$CC"
-    fi
-  fi
-else
-  GCC=
-dnl # See above.
-dnl   test "${CFLAGS+set}" = set || CFLAGS="-g"
-fi
-])
-
-AC_DEFUN(AC_PROG_CC_WORKS_LOCAL,
-[AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works])
-AC_LANG_SAVE
-AC_LANG_C
-AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross)
-AC_LANG_RESTORE
-AC_MSG_RESULT($ac_cv_prog_cc_works)
-if test $ac_cv_prog_cc_works = no; then
- cross_linkable=no
- ac_cv_prog_cc_cross=yes
- # AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.])
-else
- cross_linkable=yes
-fi
-AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler])
-AC_MSG_RESULT($ac_cv_prog_cc_cross)
-AC_SUBST(cross_linkable)
-cross_compiling=$ac_cv_prog_cc_cross
-])
-
-AC_DEFUN(hurd_SYSTYPE,
+AC_DEFUN([hurd_SYSTYPE],
 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 case "$host_cpu" in
 i[[3456]]86)	systype=i386 ;;
 *)		systype="$host_cpu" ;;
 esac
-AC_SUBST(systype)])
+AC_SUBST([systype])])
diff -Naur gnumach-20040915.orig/configure.in gnumach-20040915/configure.in
--- gnumach-20040915.orig/configure.in	2002-05-23 02:06:36.000000000 +0200
+++ gnumach-20040915/configure.in	2004-09-18 20:36:32.000000000 +0200
@@ -1,5 +1,5 @@
 dnl Configure script for GNU Mach.
-dnl Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
+dnl Copyright 1997, 1998, 1999, 2004 Free Software Foundation, Inc.
 
 dnl Permission to use, copy, modify and distribute this software and its
 dnl documentation is hereby granted, provided that both the copyright
@@ -12,11 +12,11 @@
 dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
 dnl USE OF THIS SOFTWARE.
 
-AC_INIT(kern/ipc_kobject.c)
-AC_PREREQ(2.12)
+m4_include([version.m4])
 
-VERSION=1.3
-AC_SUBST(VERSION)
+AC_INIT([PACKAGE], [VERSION], [bug-hurd@gnu.org], [gnumach])
+AC_CONFIG_SRCDIR([kern/ipc_kobject.c])
+AC_PREREQ(2.57)
 
 #
 # Deduce output var `systype' from configuration parms.
@@ -28,27 +28,23 @@
 *) AC_MSG_ERROR([unsupported CPU type]) ;;
 esac
 
-case "$host_os" in
-gnu*) ;;
-*) AC_MSG_ERROR([sorry, this is the gnu os, not $host_os]) ;;
-esac
-
-AC_SUBST(systype)
-AC_SUBST(cross_compiling)
+AC_SUBST([systype])
+AC_SUBST([cross_compiling])
 
 # Default prefix is / for the kernel.
-AC_PREFIX_DEFAULT()
+AC_PREFIX_DEFAULT([])
 
 #
 # Options
 #
-AC_ARG_ENABLE(kdb,
-[  --enable-kdb             enable use of in-kernel debugger],
-[test "x$enableval" = xno || AC_DEFINE(MACH_KDB)])
-
-AC_ARG_ENABLE(kmsg,
-[  --enable-kmsg            enable use of kmsg device [default=yes]],
-[test "x$enableval" = xno || AC_DEFINE(MACH_KMSG)], [AC_DEFINE(MACH_KMSG)])
+AC_ARG_ENABLE([kdb],
+AS_HELP_STRING([--enable-kdb], [enable use of in-kernel debugger]),
+[test "x$enableval" = xno || AC_DEFINE([MACH_KDB], [1], [enable use of in-kernel debugger])])
+
+AC_ARG_ENABLE([kmsg],
+AS_HELP_STRING([--enable-kmsg], [enable use of kmsg device [[default=yes]]]),
+[test "x$enableval" = xno || AC_DEFINE([MACH_KMSG], [], [enable use of kmsg device])],
+			    [AC_DEFINE([MACH_KMSG], [], [enable use of kmsg device])])
 
 #
 # Programs
@@ -56,23 +52,24 @@
 
 AC_PROG_INSTALL
 AC_PROG_AWK
+AC_PROG_CC
 
-AC_CHECK_TOOL(CC, gcc)
-# That check handles cross-compilation well, but AC_PROG_CC tests for GCC
-# and sets default CFLAGS nicely for us, so do that too.
-AC_PROG_CC_LOCAL
-
-AC_CHECK_TOOL(LD, ld)
-AC_CHECK_TOOL(NM, nm)
+AC_CHECK_TOOL([LD], [ld])
+AC_SUBST([LDFLAGS])
+AC_CHECK_TOOL([NM], [nm])
 
-AC_CHECK_TOOL(MIG, mig, mig)
+AC_CHECK_TOOL([MIG], [mig], [mig])
 
 # Set up `machine' link in build directory for easier header file location.
-AC_LINK_FILES(${systype}/${systype},machine)
+AC_CONFIG_LINKS([machine:${systype}/${systype}])
+
+AC_CONFIG_SUBDIRS([linux])
 
 # Do machine-specific configuration last so that it can override anything
 # set above if necessary.
+if test "$systype" = i386; then
+  AC_CONFIG_SUBDIRS([i386])
+fi
 
-AC_CONFIG_SUBDIRS(linux ${systype})
-
-AC_OUTPUT(Makefile version.c doc/Makefile)
+AC_CONFIG_FILES([Makefile version.c doc/Makefile])
+AC_OUTPUT
diff -Naur gnumach-20040915.orig/doc/Makefile.in gnumach-20040915/doc/Makefile.in
--- gnumach-20040915.orig/doc/Makefile.in	2002-05-23 02:06:35.000000000 +0200
+++ gnumach-20040915/doc/Makefile.in	2004-09-18 20:36:32.000000000 +0200
@@ -1,5 +1,5 @@
 #
-#   Copyright (C) 2001,02 Free Software Foundation, Inc.
+#   Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
 #
 #   This program is free software; you can redistribute it and/or
 #   modify it under the terms of the GNU General Public License as
@@ -15,7 +15,7 @@
 #   along with this program; if not, write to the Free Software
 #   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-mach-version := @VERSION@
+mach-version := @PACKAGE_VERSION@
 targets := mach.info
 
 # Variables from `configure'.
diff -Naur gnumach-20040915.orig/Drivers.macros gnumach-20040915/Drivers.macros
--- gnumach-20040915.orig/Drivers.macros	1999-07-23 08:48:59.000000000 +0200
+++ gnumach-20040915/Drivers.macros	2004-09-18 20:36:32.000000000 +0200
@@ -13,15 +13,16 @@
 dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
 dnl USE OF THIS SOFTWARE.
 
-AC_SUBST(device_drivers)
+AC_SUBST([device_drivers])
 
 dnl AC_DRIVER_ALIAS(alias, canonical) makes --enable-alias have the
 dnl same effect as --enable-canonical.
 
-AC_DEFUN(AC_DRIVER_ALIAS, [
+AC_DEFUN([AC_DRIVER_ALIAS], [
 [#] Checking for alias [$1]
-AC_ARG_ENABLE([$1],,
-enable_[$2]="$enable_[$1]"
+AC_ARG_ENABLE([$1],
+  AS_HELP_STRING([--enable-$1], [enable driver alias $1 for $2]),
+  [enable_$2="$enable_$1"]
 )])
 
 dnl AC_DRIVER_CLASS(name,option,files) defines a class of drivers.  If
@@ -30,9 +31,10 @@
 dnl the specified files to the output variable `device_drivers'.  This
 dnl macro must precede the use of any corresponding AC_DRIVER macros.
 
-AC_DEFUN(AC_DRIVER_CLASS, [
-driver_class_[$1]_option=[$2]
-driver_class_[$1]_files="[$3]"
+AC_DEFUN([AC_DRIVER_CLASS], [
+AH_TEMPLATE([$2], [Driver Class $1])
+driver_class_$1_option=$2
+driver_class_$1_files="$3"
 ])
 
 dnl AC_DRIVER(name,option,files [,class]) detects option --enable-name.  If
@@ -40,16 +42,17 @@
 dnl added to the output variable `device_drivers'.  The driver is of class
 dnl `class'; see the comments on AC_DRIVER_CLASS for more information.
 
-AC_DEFUN(AC_DRIVER, [
+AC_DEFUN([AC_DRIVER], [
 [#] Checking for device driver option [$1]
-AC_ARG_ENABLE([$1],,
+AC_ARG_ENABLE([$1],
+AS_HELP_STRING([--enable-$1], [enable driver $1]), [
 if test "x$enableval" != xno; then
-AC_DEFINE([$2])
+AC_DEFINE([$2], [1], [$1])
 device_drivers="$device_drivers [$3]"
 if test "${driver_class_[$4]_selected+set}" != set; then
   driver_class_[$4]_selected=yes
-  AC_DEFINE_UNQUOTED($driver_class_[$4]_option)
+  AC_DEFINE_UNQUOTED([$driver_class_$4_option], [1])
   device_drivers="$device_drivers $driver_class_[$4]_files"
 fi
 fi
-)])
+])])
diff -Naur gnumach-20040915.orig/i386/configure.in gnumach-20040915/i386/configure.in
--- gnumach-20040915.orig/i386/configure.in	1999-05-01 02:34:11.000000000 +0200
+++ gnumach-20040915/i386/configure.in	2004-09-18 20:36:32.000000000 +0200
@@ -1,5 +1,5 @@
 dnl Configure script for i386
-dnl Copyright 1999 Free Software Foundation, Inc.
+dnl Copyright 1999, 2004 Free Software Foundation, Inc.
 
 dnl Permission to use, copy, modify and distribute this software and its
 dnl documentation is hereby granted, provided that both the copyright
@@ -13,22 +13,26 @@
 dnl USE OF THIS SOFTWARE.
 
 
-AC_INIT(i386/i386asm.sym)
-AC_PREREQ(2.12)
+m4_include([../version.m4])
+
+AC_INIT([PACKAGE], [VERSION])
+AC_CONFIG_SRCDIR([i386/i386asm.sym])
+AC_PREREQ(2.57)
 
 #
 # Options
 #
-AC_ARG_ENABLE(lpr,
-[  --enable-lpr             enable use of lpr device],
-[test "x$enableval" = xno || AC_DEFINE(MACH_LPR)])
+AC_ARG_ENABLE([lpr],
+AS_HELP_STRING([--enable-lpr], [enable use of lpr device]),
+[test "x$enableval" = xno || AC_DEFINE([MACH_LPR], [], [enable mach lpr])])
 
 #
 # Programs
 #
-AC_CHECK_TOOL(LD, ld)
-AC_CHECK_TOOL(MAKE, make)
+AC_CHECK_TOOL([LD], [ld])
+AC_CHECK_TOOL([MAKE], [make])
 
-AC_CONFIG_SUBDIRS(linux)
+AC_CONFIG_SUBDIRS([linux])
 
-AC_OUTPUT(Makefile)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
diff -Naur gnumach-20040915.orig/i386/linux/configure.ac gnumach-20040915/i386/linux/configure.ac
--- gnumach-20040915.orig/i386/linux/configure.ac	2001-05-27 14:44:22.000000000 +0200
+++ gnumach-20040915/i386/linux/configure.ac	2004-09-18 20:36:32.000000000 +0200
@@ -1,5 +1,5 @@
 dnl Device driver options for i386
-dnl Copyright 1997, 1999 Free Software Foundation, Inc.
+dnl Copyright 1997, 1999, 2004 Free Software Foundation, Inc.
 
 dnl Permission to use, copy, modify and distribute this software and its
 dnl documentation is hereby granted, provided that both the copyright
@@ -12,94 +12,103 @@
 dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
 dnl USE OF THIS SOFTWARE.
 
-AC_INIT(dev/include/linux/autoconf.h)
-AC_PREREQ(2.12)
+m4_include([../../version.m4])
 
-sinclude([../../Drivers.macros])
-sinclude([../../aclocal.m4])
+AC_INIT([PACKAGE], [VERSION])
+AC_CONFIG_SRCDIR([dev/include/linux/autoconf.h])
+AC_PREREQ(2.57)
 
-AC_CONFIG_HEADER(device-drivers.h)
+m4_sinclude([../../Drivers.macros])
+m4_sinclude([../../aclocal.m4])
+
+AC_CONFIG_HEADER([device-drivers.h])
 
 dnl Check the cpu type.
 
 AC_CANONICAL_HOST
 
+dnl Which host CPU
+AC_DEFUN([hurd_host_CPU], [
+  AC_DEFINE([CONFIG_M$1], [], [$1])
+  AC_DEFINE([CPU], [$1], [CPU])
+])
+
+
 case "$host_cpu" in
-i386) AC_DEFINE(CONFIG_M386)
-      AC_DEFINE(CPU, 386)    ;;
-i486) AC_DEFINE(CONFIG_M486)
-      AC_DEFINE(CPU, 486)    ;;
-i586) AC_DEFINE(CONFIG_M586)
-      AC_DEFINE(CPU, 586)    ;;
-i686) AC_DEFINE(CONFIG_M686)
-      AC_DEFINE(CPU, 686)    ;;
-*)    AC_DEFINE(CONFIG_M486)
-      AC_DEFINE(CPU, 486)    ;;
+i386) hurd_host_CPU([386]) ;;
+i486) hurd_host_CPU([486]) ;;
+i586) hurd_host_CPU([586]) ;;
+i686) hurd_host_CPU([686]) ;;
+*)    hurd_host_CPU([486]) ;;
 esac
 
 hurd_SYSTYPE
 
-AC_CHECK_TOOL(CC, gcc)
-AC_PROG_CC_LOCAL
+AC_CHECK_TOOL([CC], [gcc])
+AC_PROG_CC
 
-AC_CHECK_TOOL(LD, ld)
+AC_CHECK_TOOL([LD], [ld])
+AC_SUBST([LDFLAGS])
 
 
 dnl Aliases have to come first.
 
-AC_DRIVER_ALIAS(3c501, el1)
-AC_DRIVER_ALIAS(3c503, el2)
-AC_DRIVER_ALIAS(3c509, el3)
-AC_DRIVER_ALIAS(3c579, el3)
-AC_DRIVER_ALIAS(3c59x, vortex)
-AC_DRIVER_ALIAS(3c90x, vortex)
-AC_DRIVER_ALIAS(hpj2577, hp100)
-AC_DRIVER_ALIAS(hpj2573, hp100)
-AC_DRIVER_ALIAS(hpj2585, hp100)
-AC_DRIVER_ALIAS(hp27248b, hp100)
-AC_DRIVER_ALIAS(eth32, eth16i)
-AC_DRIVER_ALIAS(znote, znet)
-AC_DRIVER_ALIAS(de100, depca)
-AC_DRIVER_ALIAS(de101, depca)
-AC_DRIVER_ALIAS(de200, depca)
-AC_DRIVER_ALIAS(de201, depca)
-AC_DRIVER_ALIAS(de202, depca)
-AC_DRIVER_ALIAS(de210, depca)
-AC_DRIVER_ALIAS(de422, depca)
-AC_DRIVER_ALIAS(de203, ewrk3)
-AC_DRIVER_ALIAS(de204, ewrk3)
-AC_DRIVER_ALIAS(de205, ewrk3)
-AC_DRIVER_ALIAS(de425, de4x5)
-AC_DRIVER_ALIAS(de434, de4x5)
-AC_DRIVER_ALIAS(de435, de4x5)
-AC_DRIVER_ALIAS(de450, de4x5)
-AC_DRIVER_ALIAS(de500, de4x5)
-AC_DRIVER_ALIAS(3c507, el16)
-AC_DRIVER_ALIAS(3c505, elplus)
-AC_DRIVER_ALIAS(ne1000, ne2000)
-AC_DRIVER_ALIAS(ne, ne2000)
-AC_DRIVER_ALIAS(at1500, lance)
-AC_DRIVER_ALIAS(ne2100, lance)
-AC_DRIVER_ALIAS(tulip, elcp)
-AC_DRIVER_ALIAS(rtl8129, rtl8139)
-AC_DRIVER_ALIAS(aha2825, aha152x)
-AC_DRIVER_ALIAS(ncr53c400, ncr5380)
-AC_DRIVER_ALIAS(t128f, t128)
-AC_DRIVER_ALIAS(t228, t128)
-AC_DRIVER_ALIAS(am79c974, am53c974)
-AC_DRIVER_ALIAS(dtc3180, dtc3280)
-AC_DRIVER_ALIAS(dc390w, ncr53c8xx)
-AC_DRIVER_ALIAS(dc390u, ncr53c8xx)
-AC_DRIVER_ALIAS(dc390f, ncr53c8xx)
-AC_DRIVER_ALIAS(dc390, dc390t)
-AC_DRIVER_ALIAS(epic100, epic)
+AC_DRIVER_ALIAS([3c501], [el1])
+AC_DRIVER_ALIAS([3c503], [el2])
+AC_DRIVER_ALIAS([3c509], [el3])
+AC_DRIVER_ALIAS([3c579], [el3])
+AC_DRIVER_ALIAS([3c59x], [vortex])
+AC_DRIVER_ALIAS([3c90x], [vortex])
+AC_DRIVER_ALIAS([hpj2577], [hp100])
+AC_DRIVER_ALIAS([hpj2573], [hp100])
+AC_DRIVER_ALIAS([hpj2585], [hp100])
+AC_DRIVER_ALIAS([hp27248b], [hp100])
+AC_DRIVER_ALIAS([eth32], [eth16i])
+AC_DRIVER_ALIAS([znote], [znet])
+AC_DRIVER_ALIAS([de100], [depca])
+AC_DRIVER_ALIAS([de101], [depca])
+AC_DRIVER_ALIAS([de200], [depca])
+AC_DRIVER_ALIAS([de201], [depca])
+AC_DRIVER_ALIAS([de202], [depca])
+AC_DRIVER_ALIAS([de210], [depca])
+AC_DRIVER_ALIAS([de422], [depca])
+AC_DRIVER_ALIAS([de203], [ewrk3])
+AC_DRIVER_ALIAS([de204], [ewrk3])
+AC_DRIVER_ALIAS([de205], [ewrk3])
+AC_DRIVER_ALIAS([de425], [de4x5])
+AC_DRIVER_ALIAS([de434], [de4x5])
+AC_DRIVER_ALIAS([de435], [de4x5])
+AC_DRIVER_ALIAS([de450], [de4x5])
+AC_DRIVER_ALIAS([de500], [de4x5])
+AC_DRIVER_ALIAS([3c507], [el16])
+AC_DRIVER_ALIAS([3c505], [elplus])
+AC_DRIVER_ALIAS([ne1000], [ne2000])
+AC_DRIVER_ALIAS([ne], [ne2000])
+AC_DRIVER_ALIAS([at1500], [lance])
+AC_DRIVER_ALIAS([ne2100], [lance])
+AC_DRIVER_ALIAS([tulip], [elcp])
+AC_DRIVER_ALIAS([rtl8129], [rtl8139])
+AC_DRIVER_ALIAS([aha2825], [aha152x])
+AC_DRIVER_ALIAS([ncr53c400], [ncr5380])
+AC_DRIVER_ALIAS([t128f], [t128])
+AC_DRIVER_ALIAS([t228], [t128])
+AC_DRIVER_ALIAS([am79c974], [am53c974])
+AC_DRIVER_ALIAS([dtc3180], [dtc3280])
+AC_DRIVER_ALIAS([dc390w], [ncr53c8xx])
+AC_DRIVER_ALIAS([dc390u], [ncr53c8xx])
+AC_DRIVER_ALIAS([dc390f], [ncr53c8xx])
+AC_DRIVER_ALIAS([dc390], [dc390t])
+AC_DRIVER_ALIAS([epic100], [epic])
 
 
 dnl Kinds of drivers that have gobs of source files that get brought in.
 
-AC_DRIVER_CLASS(scsi, CONFIG_SCSI, constants.o hosts.o scsi.o scsi_ioctl.o scsi_proc.o scsicam.o sd.o sd_ioctl.o sr.o sr_ioctl.o)
+AC_DRIVER_CLASS([scsi], [CONFIG_SCSI], [ \
+  constants.o hosts.o scsi.o scsi_ioctl.o scsi_proc.o scsicam.o sd.o \
+  sd_ioctl.o sr.o sr_ioctl.o])
 
-AC_DRIVER_CLASS(net, CONFIG_INET, auto_irq.o net.o Space.o dev.o net_init.o)
+AC_DRIVER_CLASS([net], [CONFIG_INET], [ \
+  auto_irq.o net.o Space.o dev.o net_init.o])
 
 dnl Strictly speaking, we could have a `linux' option too, but it's
 dnl not possible to built a useful kernel without at least one Linux
@@ -109,98 +118,102 @@
 dnl
 dnl linux_DRIVER(machname, MACRO, linuxname, class)
 dnl
-AC_DEFUN([linux_DRIVER],[AC_DRIVER_ALIAS($3, $1)
-AC_DRIVER($1, CONFIG_$2, $3.o, $4)])dnl
+AC_DEFUN([linux_DRIVER], [
+  AC_DRIVER_ALIAS([$3], [$1])
+  AC_DRIVER([$1], [CONFIG_$2], [$3.o], [$4])
+])dnl
 
 dnl non-SCSI Disk controllers
 
-AC_DRIVER(floppy, CONFIG_BLK_DEV_FD, floppy.o)
-AC_DRIVER(ide, CONFIG_BLK_DEV_IDE, cmd640.o ide-cd.o ide.o rz1000.o triton.o)
+AC_DRIVER([floppy], [CONFIG_BLK_DEV_FD], [floppy.o])
+AC_DRIVER([ide], [CONFIG_BLK_DEV_IDE], [ \
+  cmd640.o ide-cd.o ide.o rz1000.o triton.o])
 
 
 dnl SCSI Disk controllers
 
-linux_DRIVER(advansys, SCSI_ADVANSYS, advansys, scsi)
-linux_DRIVER(buslogic, SCSI_BUSLOGIC, BusLogic, scsi)
-linux_DRIVER(u1434f, SCSI_U14_34F, u14-34f, scsi)
-linux_DRIVER(ultrastor, SCSI_ULTRASTOR, ultrastor, scsi)
-linux_DRIVER(aha152x, SCSI_AHA152X, aha152x, scsi)
-linux_DRIVER(aha1542, SCSI_AHA1542, aha1542, scsi)
-linux_DRIVER(aha1740, SCSI_AHA1740, aha1740, scsi)
-linux_DRIVER(aic7xxx, SCSI_AIC7XXX, aic7xxx, scsi)
-linux_DRIVER(futuredomain, SCSI_FUTURE_DOMAIN, fdomain, scsi)
-linux_DRIVER(in2000, SCSI_IN2000, in2000, scsi)
-linux_DRIVER(ncr5380, SCSI_GENERIC_NCR5380, g_NCR5380, scsi)
-linux_DRIVER(ncr53c406a, SCSI_NCR53C406A, NCR53c406a, scsi)
-linux_DRIVER(pas16, SCSI_PASS16, pas16, scsi)
-linux_DRIVER(seagate, SCSI_SEAGATE, seagate, scsi)
-linux_DRIVER(t128, SCSI_T128, t128, scsi)
-linux_DRIVER(ncr53c7xx, SCSI_NCR53C7xx, 53c78xx, scsi)
-linux_DRIVER(eatadma, SCSI_EATA_DMA, eata_dma, scsi)
-linux_DRIVER(eatapio, SCSI_EATA_PIO, eata_pio, scsi)
-linux_DRIVER(wd7000, SCSI_7000FASST, wd7000, scsi)
-linux_DRIVER(eata, SCSI_EATA, eata, scsi)
-linux_DRIVER(am53c974, SCSI_AM53C974, AM53C974, scsi)
-linux_DRIVER(dtc3280, SCSI_DTC3280, dtc, scsi)
-linux_DRIVER(ncr53c8xx, SCSI_NCR53C8XX, ncr53c8xx, scsi)
-linux_DRIVER(dc390t, SCSI_DC390T, tmscsim, scsi)
-linux_DRIVER(ppa, SCSI_PPA, ppa, scsi)
-linux_DRIVER(qlogicfas, SCSI_QLOGIC_FAS, qlogicfas, scsi)
-linux_DRIVER(qlogicisp, SCSI_QLOGIC_ISP, qlogicisp, scsi)
-linux_DRIVER(gdth, SCSI_GDTH, gdth, scsi)
+linux_DRIVER([advansys], [SCSI_ADVANSYS], [advansys], [scsi])
+linux_DRIVER([buslogic], [SCSI_BUSLOGIC], [BusLogic], [scsi])
+linux_DRIVER([u1434f], [SCSI_U14_34F], [u14-34f], [scsi])
+linux_DRIVER([ultrastor], [SCSI_ULTRASTOR], [ultrastor], [scsi])
+linux_DRIVER([aha152x], [SCSI_AHA152X], [aha152x], [scsi])
+linux_DRIVER([aha1542], [SCSI_AHA1542], [aha1542], [scsi])
+linux_DRIVER([aha1740], [SCSI_AHA1740], [aha1740], [scsi])
+linux_DRIVER([aic7xxx], [SCSI_AIC7XXX], [aic7xxx], [scsi])
+linux_DRIVER([futuredomain], [SCSI_FUTURE_DOMAIN], [fdomain], [scsi])
+linux_DRIVER([in2000], [SCSI_IN2000], [in2000], [scsi])
+linux_DRIVER([ncr5380], [SCSI_GENERIC_NCR5380], [g_NCR5380], [scsi])
+linux_DRIVER([ncr53c406a], [SCSI_NCR53C406A], [NCR53c406a], [scsi])
+linux_DRIVER([pas16], [SCSI_PASS16], [pas16], [scsi])
+linux_DRIVER([seagate], [SCSI_SEAGATE], [seagate], [scsi])
+linux_DRIVER([t128], [SCSI_T128], [t128], [scsi])
+linux_DRIVER([ncr53c7xx], [SCSI_NCR53C7xx], [53c78xx], [scsi])
+linux_DRIVER([eatadma], [SCSI_EATA_DMA], [eata_dma], [scsi])
+linux_DRIVER([eatapio], [SCSI_EATA_PIO], [eata_pio], [scsi])
+linux_DRIVER([wd7000], [SCSI_7000FASST], [wd7000], [scsi])
+linux_DRIVER([eata], [SCSI_EATA], [eata], [scsi])
+linux_DRIVER([am53c974], [SCSI_AM53C974], [AM53C974], [scsi])
+linux_DRIVER([dtc3280], [SCSI_DTC3280], [dtc], [scsi])
+linux_DRIVER([ncr53c8xx], [SCSI_NCR53C8XX], [ncr53c8xx], [scsi])
+linux_DRIVER([dc390t], [SCSI_DC390T], [tmscsim], [scsi])
+linux_DRIVER([ppa], [SCSI_PPA], [ppa], [scsi])
+linux_DRIVER([qlogicfas], [SCSI_QLOGIC_FAS], [qlogicfas], [scsi])
+linux_DRIVER([qlogicisp], [SCSI_QLOGIC_ISP], [qlogicisp], [scsi])
+linux_DRIVER([gdth], [SCSI_GDTH], [gdth], [scsi])
 dnl Dirty implementation...
 
-AC_ARG_ENABLE(flashpoint,,[
-if test ${enableval} = no; then
-  AC_DEFINE(CONFIG_SCSI_OMIT_FLASHPOINT)
-fi
-])
+AC_ARG_ENABLE([flashpoint],
+  AS_HELP_STRING([--enable-flashpoint], [enable SCSI flashpoint [[default=no]]]),
+  [test x"$enableval" = xno &&
+   AC_DEFINE([CONFIG_SCSI_OMIT_FLASHPOINT], [], [scsi omit flashpoint])])
 
 
 dnl Ethernet controllers
 
-AC_DRIVER(ne2000, CONFIG_NE2000, ne.o 8390.o, net)
-AC_DRIVER(el2, CONFIG_EL2, 3c503.o 8390.o, net)
-linux_DRIVER(el3, EL3, 3c509, net)
-AC_DRIVER(wd80x3, CONFIG_WD80x3, wd.o 8390.o, net)
-linux_DRIVER(el1, EL1, 3c501, net)
-AC_DRIVER(ul, CONFIG_ULTRA, smc-ultra.o 8390.o, net)
-AC_DRIVER(ul32, CONFIG_ULTRA32, smc-ultra32.o 8390.o, net)
-AC_DRIVER(hplanplus, CONFIG_HPLAN_PLUS, hp-plus.o 8390.o, net)
-AC_DRIVER(hplan, CONFIG_HPLAN, hp.o 8390.o, net)
-linux_DRIVER(vortex, VORTEX, 3c59x, net)
-linux_DRIVER(seeq8005, SEEQ8005, seeq8005, net)
-linux_DRIVER(hp100, HP100, hp100, net)
-AC_DRIVER(ac3200, CONFIG_AC3200, ac3200.o 8390.o, net)
-AC_DRIVER(e2100, CONFIG_E2100, e2100.o 8390.o, net)
-linux_DRIVER(at1700, AT1700, at1700, net)
-linux_DRIVER(eth16i, ETH16I, eth16i, net)
-linux_DRIVER(znet, ZNET, znet, net)
-linux_DRIVER(eexpress, EEXPRESS, eexpress, net)
-linux_DRIVER(eexpresspro, EEXPRESS_PRO, eepro, net)
-linux_DRIVER(eexpresspro100, EEXPRESS_PRO100B, eepro100, net)
-linux_DRIVER(depca, DEPCA, depca, net)
-linux_DRIVER(ewrk3, EWRK3, ewrk3, net)
-linux_DRIVER(de4x5, DE4X5, de4x5, net)
-linux_DRIVER(apricot, APRICOT, apricot, net)
-linux_DRIVER(wavelan, WAVELAN, wavelan, net)
-linux_DRIVER(el16, EL16, 3c507, net)
-linux_DRIVER(elplus, ELPLUS, 3c505, net)
-linux_DRIVER(de600, DE600, de600, net)
-linux_DRIVER(de620, DE620, de620, net)
-linux_DRIVER(skg16, SK_G16, sk_g16, net)
-linux_DRIVER(ni52, NI52, ni52, net)
-linux_DRIVER(ni65, NI65, ni65, net)
-linux_DRIVER(atp, ATP, atp, net)
-linux_DRIVER(lance, LANCE, lance, net)
-linux_DRIVER(elcp, DEC_ELCP, tulip, net)
-linux_DRIVER(fmv18x, FMV18X, fmv18x, net)
-linux_DRIVER(3c515, 3C515, 3c515, net)
-linux_DRIVER(pcnet32, PCNET32, pcnet32, net)
-AC_DRIVER(ne2kpci, CONFIG_NE2K_PCI, ne2k-pci.o 8390.o, net)
-linux_DRIVER(yellowfin, YELLOWFIN, yellowfin, net)
-linux_DRIVER(rtl8139, RTL8139, rtl8139, net)
-linux_DRIVER(epic, EPIC, epic100, net)
-linux_DRIVER(tlan, TLAN, tlan, net)
-linux_DRIVER(viarhine, VIA_RHINE, via-rhine, net)
-AC_OUTPUT(Makefile)
+AC_DRIVER([ne2000], [CONFIG_NE2000], [ne.o 8390.o], [net])
+AC_DRIVER([el2], [CONFIG_EL2], [3c503.o 8390.o], [net])
+linux_DRIVER([el3], [EL3], [3c509], [net])
+AC_DRIVER([wd80x3], [CONFIG_WD80x3], [wd.o 8390.o], [net])
+linux_DRIVER([el1], [EL1], [3c501], [net])
+AC_DRIVER([ul], [CONFIG_ULTRA], [smc-ultra.o 8390.o], [net])
+AC_DRIVER([ul32], [CONFIG_ULTRA32], [smc-ultra32.o 8390.o], [net])
+AC_DRIVER([hplanplus], [CONFIG_HPLAN_PLUS], [hp-plus.o 8390.o], [net])
+AC_DRIVER([hplan], [CONFIG_HPLAN], [hp.o 8390.o], [net])
+linux_DRIVER([vortex], [VORTEX], [3c59x], [net])
+linux_DRIVER([seeq8005], [SEEQ8005], [seeq8005], [net])
+linux_DRIVER([hp100], [HP100], [hp100], [net])
+AC_DRIVER([ac3200], [CONFIG_AC3200], [ac3200.o 8390.o], [net])
+AC_DRIVER([e2100], [CONFIG_E2100], [e2100.o 8390.o], [net])
+linux_DRIVER([at1700], [AT1700], [at1700], [net])
+linux_DRIVER([eth16i], [ETH16I], [eth16i], [net])
+linux_DRIVER([znet], [ZNET], [znet], [net])
+linux_DRIVER([eexpress], [EEXPRESS], [eexpress], [net])
+linux_DRIVER([eexpresspro], [EEXPRESS_PRO], [eepro], [net])
+linux_DRIVER([eexpresspro100], [EEXPRESS_PRO100B], [eepro100], [net])
+linux_DRIVER([depca], [DEPCA], [depca], [net])
+linux_DRIVER([ewrk3], [EWRK3], [ewrk3], [net])
+linux_DRIVER([de4x5], [DE4X5], [de4x5], [net])
+linux_DRIVER([apricot], [APRICOT], [apricot], [net])
+linux_DRIVER([wavelan], [WAVELAN], [wavelan], [net])
+linux_DRIVER([el16], [EL16], [3c507], [net])
+linux_DRIVER([elplus], [ELPLUS], [3c505], [net])
+linux_DRIVER([de600], [DE600], [de600], [net])
+linux_DRIVER([de620], [DE620], [de620], [net])
+linux_DRIVER([skg16], [SK_G16], [sk_g16], [net])
+linux_DRIVER([ni52], [NI52], [ni52], [net])
+linux_DRIVER([ni65], [NI65], [ni65], [net])
+linux_DRIVER([atp], [ATP], [atp], [net])
+linux_DRIVER([lance], [LANCE], [lance], [net])
+linux_DRIVER([elcp], [DEC_ELCP], [tulip], [net])
+linux_DRIVER([fmv18x], [FMV18X], [fmv18x], [net])
+linux_DRIVER([3c515], [3C515], [3c515], [net])
+linux_DRIVER([pcnet32], [PCNET32], [pcnet32], [net])
+AC_DRIVER([ne2kpci], [CONFIG_NE2K_PCI], [ne2k-pci.o 8390.o], [net])
+linux_DRIVER([yellowfin], [YELLOWFIN], [yellowfin], [net])
+linux_DRIVER([rtl8139], [RTL8139], [rtl8139], [net])
+linux_DRIVER([epic], [EPIC], [epic100], [net])
+linux_DRIVER([tlan], [TLAN], [tlan], [net])
+linux_DRIVER([viarhine], [VIA_RHINE], [via-rhine], [net])
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
diff -Naur gnumach-20040915.orig/i386/linux/Makefile.in gnumach-20040915/i386/linux/Makefile.in
--- gnumach-20040915.orig/i386/linux/Makefile.in	2001-05-27 14:44:22.000000000 +0200
+++ gnumach-20040915/i386/linux/Makefile.in	2004-09-18 20:36:32.000000000 +0200
@@ -175,8 +175,8 @@
 
 # Autoconf support
 
-$(srcdir)/configure: $(srcdir)/Drivers.in $(srcdir)/../../Drivers.macros
-	cd $(srcdir) && rm -f configure && autoconf Drivers.in > configure
+$(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/../../Drivers.macros
+	cd $(srcdir) && autoconf
 
 device-drivers.h: $(srcdir)/Makefile.in config.status
 	./config.status
diff -Naur gnumach-20040915.orig/linux/configure.in gnumach-20040915/linux/configure.in
--- gnumach-20040915.orig/linux/configure.in	1999-05-22 01:22:33.000000000 +0200
+++ gnumach-20040915/linux/configure.in	2004-09-18 20:36:32.000000000 +0200
@@ -1,5 +1,5 @@
 dnl Configure script for linux code snarfed into GNU Mach.
-dnl Copyright 1999 Free Software Foundation, Inc.
+dnl Copyright 1999, 2004 Free Software Foundation, Inc.
 
 dnl Permission to use, copy, modify and distribute this software and its
 dnl documentation is hereby granted, provided that both the copyright
@@ -12,16 +12,23 @@
 dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
 dnl USE OF THIS SOFTWARE.
 
-AC_INIT(src/include/linux/version.h)
-AC_PREREQ(2.12)
-sinclude([../aclocal.m4])
+m4_include([../version.m4])
+
+AC_INIT([PACKAGE],[VERSION])
+AC_CONFIG_SRCDIR([src/include/linux/version.h])
+AC_PREREQ(2.57)
+
+m4_sinclude([../aclocal.m4])
 
 hurd_SYSTYPE
 
-AC_LINK_FILES(src/include/asm-${systype} dev/include/asm-${systype},
-              src/include/asm dev/include/asm)
+AC_CONFIG_LINKS([src/include/asm:src/include/asm-${systype}
+		 dev/include/asm:dev/include/asm-${systype}])
 
 dnl We need to write these bogus output files to make autoconf create
 dnl the directories where the directory symlinks need to go.
-AC_OUTPUT(src/.dummy:dummy.in dev/.dummy:dummy.in
-          src/include/.dummy:dummy.in dev/include/.dummy:dummy.in)
+AC_CONFIG_FILES([src/.dummy:dummy.in
+		 dev/.dummy:dummy.in
+		 src/include/.dummy:dummy.in
+		 dev/include/.dummy:dummy.in])
+AC_OUTPUT
diff -Naur gnumach-20040915.orig/Makefile.in gnumach-20040915/Makefile.in
--- gnumach-20040915.orig/Makefile.in	2004-01-14 23:28:25.000000000 +0100
+++ gnumach-20040915/Makefile.in	2004-09-18 20:36:32.000000000 +0200
@@ -1,5 +1,5 @@
 # Makefile for Mach 4 kernel directory
-# Copyright 1997, 1999 Free Software Foundation, Inc.
+# Copyright 1997, 1999, 2004 Free Software Foundation, Inc.
 #
 # Permission to use, copy, modify and distribute this software and its
 # documentation is hereby granted, provided that both the copyright
@@ -19,7 +19,7 @@
 srcdir=@srcdir@
 systype=@systype@
 prefix=@prefix@
-version = @VERSION@
+version = @PACKAGE_VERSION@
 
 exec_prefix=$(prefix)
 
diff -Naur gnumach-20040915.orig/version.c.in gnumach-20040915/version.c.in
--- gnumach-20040915.orig/version.c.in	2002-05-23 02:06:36.000000000 +0200
+++ gnumach-20040915/version.c.in	2004-09-18 20:36:32.000000000 +0200
@@ -1,2 +1,2 @@
 /* @configure_input@ */
-const char version[] = "GNUmach @VERSION@";
+const char version[] = "@PACKAGE_NAME@ @PACKAGE_VERSION@";
diff -Naur gnumach-20040915.orig/version.m4 gnumach-20040915/version.m4
--- gnumach-20040915.orig/version.m4	1970-01-01 01:00:00.000000000 +0100
+++ gnumach-20040915/version.m4	2004-09-18 20:36:32.000000000 +0200
@@ -0,0 +1,3 @@
+m4_define([PACKAGE],[GNU Mach])
+m4_define([VERSION],[1.3])
+