diff --git a/aclocal.m4 b/aclocal.m4 index ae291592d..28943513e 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -25,7 +25,7 @@ AC_SUBST(install_suffix) # - the object file produced by AC_COMPILE_IFELSE is called "conftest.$ac_objext" # - the nm(1) utility is available, and its name is "nm". AC_DEFUN([_AX_C_UNDERSCORES_MATCH_IF], -[AC_COMPILE_IFELSE([void underscore(void){}], +[AC_COMPILE_IFELSE([AC_LANG_SOURCE([void underscore(void){}])], [AS_IF([nm conftest.$ac_objext|grep $1 >/dev/null 2>/dev/null],[$2],[$3])], [AC_MSG_ERROR([underscore test crashed])] )])