autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_PROG_CC not working


From: Pavel Roskin
Subject: Re: AC_PROG_CC not working
Date: Wed, 11 Oct 2000 17:06:01 -0400 (EDT)

Hello, Peter!

> This equivalency only affects stat() and the PATH search of the shell.  So
> you can write makefiles like this:
> 
> fooprog: $(OBJS)
>       $(CC) -o $@ $^
> 
> install: fooprog
>       $(INSTALL) fooprog$(EXEEXT) $(bindir)
> 
> and they will work.  But it probably doesn't in general on other systems
> that have executable extensions.  In fact, I'd have no idea how to act in
> face of arbitrary $(EXEEXT) values.

We (Autoconf) just need to supply the right EXEEXT. Dealing with it is a
problem of Automake and Make.

Since EXEEXT="" makes "cp" fail it's not a good choice. So instead of
doing "test contest -ef contest.exe" do "cp contest contest.ac_" and
reverse the logic (i.e. if "cp" fails we use ".exe")

Regards,
Pavel Roskin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]