Re: detection and support of OpenMP

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

 



On Sun, May 27, 2007 at 10:53:06PM +0200, Bruno Haible wrote:
> Noah Misch wrote on Tuesday:
> > If we reach the stage of testing additional compiler options, the current $CC
> > $CFLAGS failed to compile the test program.  If that compiler treats `-openmp'
> > like `-o penmp', it will still fail to compile the test program.  Do we really
> > need this special care?
> > 
> > Possible simplifying patch:
...
> Well, your patch never got to trying the second, third, etc. possibility,
> due to the unconditional 'break'. I have tested the appended modified patch:
> it works with gcc (with result -fopenmp) and with Sun cc (with result -xopenmp),
> therefore I believe the other compilers will work as well. Also I added
> the necessary comments.
> 
> The good thing about your patch is that it gets rid of the compiler brand
> tests, thus the Fortran support should work fine with this version (untested).
> 
> 
> 2007-05-27  Noah Misch  <noah@xxxxxxxxxxxxxx>
>             Bruno Haible   <bruno@xxxxxxxxx>
> 
> 	* lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
> 	brand tests.

Thanks for checking and revising the patch.  I installed it.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux