On Wed, 6 Mar 2002, Paul Eggert wrote: >> From: Lars Clausen <[EMAIL PROTECTED]> >> Date: 06 Mar 2002 13:07:48 -0600 >> >> Earlier we used hand-built macros to check for Freetype, but since >> we have to check the version, we now use the AC_CHECK_FT2 macro. > > AC_CHECK_FT2 is not part of Autoconf, so possibly this is a problem > with your definition of this macro, not with Autoconf itself.
I know it isn't, the problem is when freetype isn't installed, I still need to be able to run the configure script. >> ./configure: line 6267: syntax error near unexpected token >> `AC_CHECK_FT2(2.0.5,' ./configure: line 6267: ` AC_CHECK_FT2(2.0.5,' > > This looks like the macro AC_CHECK_FT2 was not defined. It needs to > be defined to valid shell commands, even if those commands are not > executed; otherwise the shell script won't parse. That's what I'm trying, but how can I define it to an empty macro only when it isn't already defined? I've been trying to use the m4 ifdef to do this, but it seems the AC_DEFUN is still run when AC_CHECK_FT2 is defined prior to this. Here's the best I could come up with. Any better ideas? ifdef(AC_CHECK_FT2,,AC_DEFUN(AC_CHECK_FT2,)) -Lars -- Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor "I do not agree with a word that you say, but I |---------------------------- will defend to the death your right to say it." | Where are we going, and --Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbasket?