Hello,

On Mon, Mar 07, 2005 at 02:07:41PM +0100, [EMAIL PROTECTED] wrote:
> AM_CFLAGS = -g -Wall -std=c99 -I$(top_srcdir)/include @ZZZ_CFLAGS@ 
> -DSYSCONFDIR=\"@[EMAIL PROTECTED]"
> zzz_LDADD = @ZZZ_LIBS@ $(top_builddir)/libzzz.la
> test1_LDADD = @ZZZ_LIBS@ $(top_builddir)/libzzz.la
> test2_LDADD = @ZZZ_LIBS@ $(top_builddir)/libzzz.la
> test3_LDADD = @ZZZ_LIBS@ $(top_builddir)/libzzz.la
...
> AC_SUBST(AM_CFLAGS) in configure.ac. However, now I've got two problems:
> 
> 1. I was able to escape variable expansion with a backslash
>    ("\$(top_srcdir)"), but @sysconfdir@ remains unexpanded.

for each AC_SUBSTed variable, automake adds a line like

        ZZZ_LIBS = @ZZZ_LIBS@

so there is generally no need to use the @...@ notation in Makefile.am.

Thus I believe that if you use

AC_SUBST(AM_CFLAGS,
  '-g -Wall -std=c99 -I$(top_srcdir)/include $(ZZZ_CFLAGS) 
-DSYSCONFDIR=\"$(sysconfdir)\"')

you'll get what you want.

HTH,
        Stepan Kasal


Reply via email to