[Mesa-dev] Removing GLw from the main Mesa repository

Dan Nicholson dbn.lists at gmail.com
Fri Aug 5 11:05:19 PDT 2011


On Fri, Aug 5, 2011 at 7:25 AM, Benjamin Franzke
<benjaminfranzke at googlemail.com> wrote:
> There is nothing compiled since GLW_SOURCES is not substituted by configure:
> Makefile.am:29
>  libGLw_la_SOURCES = $(GLW_SOURCES)
>
> This would need AC_SUBST([GLW_SOURCES]) in configure.ac,
> but thats not allowed for _SOURCES variables, see automake output:
>
> configure.ac:96: `GLW_SOURCES' includes configure substitution `@GLW_SOURCES@'
> configure.ac:96: and is referred to from `libGLw_la_SOURCES';
> configure.ac:96: configure substitutions are not allowed in _SOURCES variables

With automake, we can do this a lot cleaner with an AM_CONDITIONAL.
Shortened version:

configure.ac:
AM_CONDITIONAL([ENABLE_MOTIF], [test "$enable_motif" = yes])

Makefile.am:
libGLw_la_SOURCES = GLwDrawA.c
libGLw_la_CFLAGS = $(GLW_CFLAGS)
libGLw_la_LIBADD = $(GLW_LIBS)
if ENABLE_MOTIF
libGLw_la_SOURCES += GLwMDrawA.c
libGLw_la_CFLAGS += $(MOTIF_CFLAGS)
libGLw_la_LIBADD += $(MOTIF_LIBS)
endif

--
Dan


More information about the mesa-dev mailing list