Check for xlC and add -qunique to CXXFLAGS if we're using it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
31
acinclude.m4
31
acinclude.m4
@@ -48,6 +48,37 @@ fi
|
||||
]) dnl AC_DEFUN
|
||||
|
||||
|
||||
dnl Based on autoconf _AC_LANG_COMPILER_GNU
|
||||
AC_DEFUN([_AC_WX_LANG_COMPILER_XLC],
|
||||
[AC_CACHE_CHECK([whether we are using the IBM xlC _AC_LANG compiler],
|
||||
[wx_cv_[]_AC_LANG_ABBREV[]_compiler_xlc],
|
||||
[AC_TRY_COMPILE([],[#ifndef __xlC__
|
||||
choke me
|
||||
#endif
|
||||
],
|
||||
[wx_compiler_xlc=yes],
|
||||
[wx_compiler_xlc=no])
|
||||
wx_cv_[]_AC_LANG_ABBREV[]_compiler_xlc=$wx_compiler_xlc
|
||||
])
|
||||
])
|
||||
|
||||
dnl Loosely based on autoconf AC_PROG_CC
|
||||
AC_DEFUN([AC_WX_PROG_XLCC],
|
||||
[AC_LANG_PUSH(C)
|
||||
_AC_WX_LANG_COMPILER_XLC
|
||||
XLCC=`test $wx_compiler_xlc = yes && echo yes`
|
||||
AC_LANG_POP(C)
|
||||
])
|
||||
|
||||
dnl Loosely based on autoconf AC_PROG_CXX
|
||||
AC_DEFUN([AC_WX_PROG_XLCXX],
|
||||
[AC_LANG_PUSH(C++)
|
||||
_AC_WX_LANG_COMPILER_XLC
|
||||
XLCXX=`test $wx_compiler_xlc = yes && echo yes`
|
||||
AC_LANG_POP(C++)
|
||||
])
|
||||
|
||||
|
||||
dnl ===========================================================================
|
||||
dnl macros to find the a file in the list of include/lib paths
|
||||
dnl ===========================================================================
|
||||
|
Reference in New Issue
Block a user