| 1 | --- m4/ax_opencl.m4.orig 2010-01-22 01:51:24.000000000 +0900 |
| 2 | +++ m4/ax_opencl.m4 2010-04-06 03:54:50.000000000 +0900 |
| 3 | @@ -93,13 +93,13 @@ |
| 4 | [ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS" |
| 5 | AC_LINK_IFELSE([AX_OPENCL_PROGRAM], |
| 6 | [ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break], |
| 7 | - [ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS" |
| 8 | + [ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS" |
| 9 | AC_LINK_IFELSE([AX_OPENCL_PROGRAM], |
| 10 | [ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break])])]) |
| 11 | done |
| 12 | |
| 13 | AS_IF([test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes], |
| 14 | - [LIBS='-framework OpenCL' |
| 15 | + [LIBS='-Wl,-framework,OpenCL' |
| 16 | AC_LINK_IFELSE([AX_OPENCL_PROGRAM], |
| 17 | [ax_cv_check_cl_libcl=$LIBS])]) |
| 18 | |