Changed WM_OSDEP to use Conditional instead of Substitution

The automake documentation states that using substitution inside the
list of SOURCES will not work and calls for not doing it. The use
of 'EXTRA_xxx' made things look like they worked but is probably not
enough for corner cases.

This patches switches to the conditional method which will be safe.
This commit is contained in:
Christophe CURIS authored and Carlos R. Mafra committed 2013-05-10 19:37:47 +01:00
1 parent 7e424bf232
commit 664ab79add
2 files changed
+16 -3

No files matched your search

+4 -1
View File
@@ -101,7 +101,10 @@ AS_CASE(["$host"],
[*-apple-darwin*], [WM_OSDEP="darwin"],
[*-*-solaris*], [WM_OSDEP="stub"], dnl solaris.c when done
[WM_OSDEP="stub"])
AC_SUBST(WM_OSDEP)
AM_CONDITIONAL([WM_OSDEP_LINUX], [test "x$WM_OSDEP" = "xlinux"])
AM_CONDITIONAL([WM_OSDEP_BSD], [test "x$WM_OSDEP" = "xbsd"])
AM_CONDITIONAL([WM_OSDEP_DARWIN], [test "x$WM_OSDEP" = "xdarwin"])
AM_CONDITIONAL([WM_OSDEP_GENERIC], [test "x$WM_OSDEP" = "xstub"])
dnl the prefix