[Mono-list] my automake dislikes variable names in io-layer/Makefile.am

Nick Drochak ndrochak@gol.com
Sun, 11 Nov 2001 09:51:51 +0900


Dick,

When I autogen.sh in mono, I got this error:

mono/io-layer/Makefile.am:56: invalid unused variable name:
`WINDOWS_SOURCES'
mono/io-layer/Makefile.am:47: invalid unused variable name:
`OTHER_SOURCES'
**Error**: automake failed.


There is an excellent, and short, description of why here:
http://sources.redhat.com/ml/automake/2001-08/msg00046.html

Essentially, it comes down to the fact that variables ending in
"_SOURCES" are special. Since nothing 'useful' is done with those
variables, the error is reported.

I changed the names of the variables so that autogen.sh could complete.
Please see the diff below...

Regards,
Nick D.


Index: mono/io-layer/Makefile.am
===================================================================
RCS file: /cvs/public/mono/mono/io-layer/Makefile.am,v
retrieving revision 1.2
diff -u -r1.2 Makefile.am
--- mono/io-layer/Makefile.am   2001/11/10 07:32:15     1.2
+++ mono/io-layer/Makefile.am   2001/11/10 20:55:42
@@ -20,7 +20,7 @@
        wapi.h          \
        #

-OTHER_SOURCES = \
+OTHER_SRC = \
        error.c                 \
        error.h                 \
        handles.c               \
@@ -50,22 +50,22 @@
        io-layer.h              \
        #

-WINDOWS_SOURCES = \
+WINDOWS_SRC = \
        io-layer.h              \
        io-layer-dummy.c        \
        #

 if PLATFORM_WIN32
-libwapi_a_SOURCES = $(WINDOWS_SOURCES)
+libwapi_a_SOURCES = $(WINDOWS_SRC)
 libwapiinclude_HEADERS = $(WINDOWS_H)
 else
-libwapi_a_SOURCES = $(OTHER_SOURCES)
+libwapi_a_SOURCES = $(OTHER_SRC)
 libwapiinclude_HEADERS = $(OTHER_H)
 endif

 EXTRA_DIST =   \
-       $(WINDOWS_SOURCES)      \
-       $(OTHER_SOURCES)        \
+       $(WINDOWS_SRC)  \
+       $(OTHER_SRC)    \
        #