Hi,

Can anybody tell my why this code is not substituting the variable
WITH_OPENGL in my automake.am and how should I write it to work?

MDL_HAVE_OPENGL

AM_CONDITIONAL( WITH_OPENGL, test -n $GL_FLAGS)
#AM_CONDITIONAL( WITH_OPENGL, test -n $GL_LIBS)

AC_SUBST([WITH_OPENGL])

GL_FLAGS has contents. If I uncomment GL_LIBS configure complaints about
too many arguments. Anyway, just using GL_FLAGS this code in the
Makefile.am does not work:

if WITH_OPENGL
        EXECUTABLES = phan3D
else
        EXECUTABLES = 
endif

bin_PROGRAMS = $(EXECUTABLE)

Thanks,



Reply via email to