> Hi Jason, > > * Jason Curl wrote on Thu, Aug 19, 2010 at 09:50:18PM CEST: > > I'm trying to write a macro that will iterate through a list of > > libraries looking for a function. If it is found, I wish to do a > > AC_SUBST on a variable dependent on the name of the library. > > The missing bit is that AC_SUBST wants its first argument to be an > m4-time literal. A shell variable doesn't fit the bill. Likewise > for AC_DEFINE. This is because other tools like autoheader and > automake need to know the variable/define names. > > So, you can either move the AC_SUBST out of the loop and do them in the > callers of the macro, where you know the literal name of the variable, > or replace the 'for lxlib' shell loop with an m4 AC_FOREACH loop and > adjust loop contents. > > Hope that helps. That helps a lot Ralf. Vielen Dank! > > Cheers, > Ralf -- GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 ¿/mtl.!* http://portal.gmx.net/de/go/dsl _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf