Remove path name from test case
[binutils-gdb.git] / config / dejagnu.m4
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],
8 [
9 AC_MSG_CHECKING([for incompatibility between DejaGnu and GCC])
10 AC_MSG_RESULT([$ac_cv_dejagnu_compat])
11
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])
18
19 if test "$ac_cv_dejagnu_compat}" = no ; then
20 AC_MSG_RESULT([detected incompatibility between dejagnu version and gcc])
21 fi
22 ])