use AC_OPENMP if available (autoconf >= 2.62)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Wishlist
|
Alex Valavanis |
Bug Description
Current situation:
Inkscape uses the external macro AX_OPENMP to detect whether the current compiler supports OpenMP.
While this macro seems to work as expected on Linux, it fails to detect OpenMP support of Apple's GCC-4.2 and llvm-gcc-4.2 [1].
Checking for OpenMP support succeeds (even on OS X) if using AC_OPENMP provided by current autoconf versions (>= 2.62) [2].
Proposed solution (patch):
Add test and use AC_OPENMP if available, else resort to external macro AX_OPENMP.
This allows to build Inkscape with OpenMP support (multi-threaded rendering of filter effects) on OS X systems using a current autoconf version and Apple's GCC 4.2 / llvm-gcc-4.2 compilers. The patch should not negatively affect older build systems which might still use autoconf < 2.62.
Patch tested with Inkscape 0.48+devel r11261 using
- autoconf 2.68, GCC 4.2 (Mac OS X 10.5.8, 32bit Intel)
- autoconf 2.68, llvm-gcc-4.2 (OS X 10.7.2, 64bit)
---
[1] <http://
[2] <http://
Related branches
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Patch seems to work on OS X 10.6.8, but when executing the filter code appears to go into an infinite loop. Autoconf detection was good, though.