I want to write Makefile.am and/or configure.in to only compile certains files if a certain argument is given to the configure script.
I'd suppose I should append certain files to the SOURCES variable if the argument is given. I was able to detect if a certain argument was given using AC_ARG_ENABLE in configure.in although I don't know how to change Makefile.am to change which sources are to be compiled given the condition in configure.in.
Thanks