5 dnl We do not quite know how the version number of the xlc
6 dnl corresponds to the value of __IBMCC__ but 440 (decimal)
7 dnl seems to be the first compiler that works for us.
11 dnl lslpp says __IBMCC__
17 AC_DEFUN(AC_AIX_CC_GOOD, [
21 AC_CHECK_PROGS(AIXCC, "$CC" xlc /usr/vac/bin/xlc gcc)
23 AC_CHECK_PROGS(AIXCC, xlc /usr/vac/bin/xlc gcc)
26 AC_MSG_CHECKING(whether CC is a good enough Aix cc)
27 AC_CACHE_VAL(ac_cv_aix_cc_good,
32 int main(void) { return __IBMC__ < $XLCVERSION;}
34 ac_cv_aix_cc_good=yes,
37 AC_MSG_RESULT($ac_cv_aix_cc_good)])
38 if test "$ac_cv_aix_cc_good" = "yes"; then
39 AC_CHECK_PROGS(CC, "$AIXCC")