Automatic date update in version.in
[binutils-gdb.git] / config / dejagnu.m4
blob0606e42cb53274d49e75f164fd1d12cc791b6861
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>],
13               [pass ("test foo");
14                return 0;],
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])
21   fi