AC_DEFUN([AC_WX_PROG_XLCC],
[AC_LANG_PUSH(C)
_AC_WX_LANG_COMPILER_XLC
-XLCC=`test $wx_compiler_xlc = yes && echo yes`
+XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
AC_LANG_POP(C)
])
AC_DEFUN([AC_WX_PROG_XLCXX],
[AC_LANG_PUSH(C++)
_AC_WX_LANG_COMPILER_XLC
-XLCXX=`test $wx_compiler_xlc = yes && echo yes`
+XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
AC_LANG_POP(C++)
])
+dnl ===========================================================================
+dnl Objective-C(++) related macros
+dnl ===========================================================================
+m4_define([AC_WX_LANG_OBJECTIVEC],
+[AC_LANG(C)
+ac_ext=m
+])
+
+m4_define([AC_WX_LANG_OBJECTIVECPLUSPLUS],
+[AC_LANG(C++)
+ac_ext=mm
+])
dnl ===========================================================================
dnl macros to find the a file in the list of include/lib paths