1 # DEJAGNU_CHECK_VERSION DEJAGNU_CHECK_VERSION
2 # --------------------------------------------------------------
3 # Test whether there is an incompatibility between DejaGnu and GCC versions.
4 # Older versions ( <= 1.5.1 ) of dejagnu.h use GNU inline semantics improperly.
5 # The issue presents itself as link-time errors complaining about undefined
6 # references to 'pass' and 'fail'.
7 AC_DEFUN([DEJAGNU_CHECK_VERSION],
9 AC_MSG_CHECKING([for incompatibility between DejaGnu and GCC])
10 AC_MSG_RESULT([$ac_cv_dejagnu_compat])
12 AC_TRY_LINK([#include <dejagnu.h>],
15 [ac_cv_dejagnu_compat=yes],
16 [ac_cv_dejagnu_compat=no])
17 AC_MSG_RESULT([$ac_cv_dejagnu_compat])
19 if test "$ac_cv_dejagnu_compat}" = no ; then
20 AC_MSG_RESULT([detected incompatibility between dejagnu version and gcc])