>>>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:
Alexandre> On Jan 18, 2001, "Lars J. Aas" <[EMAIL PROTECTED]> wrote:
>> I've attached a config.log that shows more problems with exit().
Alexandre> We should probably move the '' case first. This will
Alexandre> probably work with VC++, and will be fine for most existing
Alexandre> C++ compilers.
Of course!!! Great idea!!!
Lars, does it work as expected? It works like a charm with g++:
| /tmp % cat configure.ac
| AC_INIT
| AC_LANG_COMPILER
| AC_OUTPUT
| /tmp % ace
| /tmp % ~duret_g/usr/bin/g++ --version
| 2.97
| /tmp % ./configure CC=~duret_g/usr/bin/g++
| checking for gcc... /home/lrde/stud/duret_g/usr/bin/g++
| checking whether the C compiler works... yes
| checking whether we are cross compiling... no
| checking whether we are using the GNU C compiler... yes
| checking for object suffix... o
| checking for executable suffix...
| checking whether /home/lrde/stud/duret_g/usr/bin/g++ accepts -g... yes
| configure: creating ./config.status
| /tmp % grep exit config.log
| configure:1463: `exit' undeclared (first use this function)
| exit (42);
| extern "C" void std::exit (int) throw (); using std::exit;
| configure: exit 0
it has chosen the full one, and with 2.95.3:
| /tmp % ./configure CC=g++
| checking for gcc... g++
| checking whether the C compiler works... yes
| checking whether we are cross compiling... no
| checking whether we are using the GNU C compiler... yes
| checking for object suffix... o
| checking for executable suffix...
| checking whether g++ accepts -g... yes
| configure: creating ./config.status
| /tmp % grep exit config.log
| configure: exit 0
it chose the empty one.