On Fri, Jan 26, 2007 at 09:50:25AM +0000, Keith MARSHALL wrote:
> Bob Rossi wrote, quoting me:
> > I changed the line as you
> > suggested. Now the Makefile has it too. However, when I run this on
> > msys, $(EXEEXT) must expand to nothing, cause there is no .exe.
> No. $(EXEEXT) must expand to whatever is appropriate for the executable
> file naming convention for the host; if you are using MinGW as your
> compiler, it *must* expand to `.exe', whether you use MSYS or not. Do
> note that EXEEXT is initialised when your configure script invokes the
> first instance of AC_PROG_CC, AC_PROG_CXX or kin, from your configure.ac,
> so you *must* include at least one of that family.
> You did add the appropriate declarations for EXEEXT and INSTALL_PROGRAM
> to your Makefile.in, didn't you? Something like
> EXEEXT = @EXEEXT@
> INSTALL_PROGRAM = @INSTALL_PROGRAM@
> somewhere in the autoconf declarations preamble; if you omit those, then
> these will expand to nothing, but it's your omission, not a problem with
> autoconf's behaviour.
OK, I screwed up then. I'll retry this.
Thanks for the help!
> You also need to ensure that configure.ac includes AC_PROG_INSTALL, so
> that INSTALL_PROGRAM will be appropriately defined. See the autoconf
> manual, for more details.
OK. I will.