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