Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: George Bosilca (bosilca_at_[hidden])
Date: 2006-08-21 05:38:21


With autoconf 2.59 every C++ test generated by autoconf include the wrong
prototype of exit. I did patch my autoconf to add the missing exit
prototype (the one compatible with cl.exe) but next time I upgrade my
system, my modifications vanished. Between autoconf and libtool I spend a
fair amount of time handling Windows & Cygwin issues, at one point the
simplest solution was to basically remove all C++ tests from configure.
This approach went pretty well for a while, until the automatic C++
compiler test was added few weeks ago, as this test is there even if C++
support was disabled.

Anyway, for those not living on the edge, this commit will allow them to
configure and eventually compile Open MPI on Windows...

   Thanks,
     george.

On Mon, 21 Aug 2006, Ralf Wildenhues wrote:

> Revision 11268 makes me curious:
>
> | M /trunk/config/ompi_setup_cxx.m4
> |
> | Reorder the C++ compiler discovery stages. Check first the compiler vendor
> | before checking if we are able to compile the test program. This is required
> | for windows as the C++ conftest.c file generated by configure cannot be
> | compiled with the Microsoft cl.exe compiler (because of the exit function
> | prototype). So if we detect a vendor equal to microsoft we will assume
> | that the compiler is correctly installed (which is true on Windows most
> | of the time anyway).
>
> I believe to have killed all problematic exit cases from the OpenMPI
> configury some time ago. Did I miss any, or did the remaining ones
> come from some other package (so we can fix that one)? Which Autoconf
> version was used (2.60 should not use any exit declarations itself any
> more)?

"We must accept finite disappointment, but we must never lose infinite
hope."
                                   Martin Luther King