[PATCH] config: Update obsolete autoconf macro

Indu Bhagat ibhagatgnu@gmail.com
Thu Aug 14 00:59:33 GMT 2025


On 2025-08-12 8:53 p.m., Pietro Monteiro wrote:
> The file config/dejagnu.m4 only exists in the binutils-gdb tree and
> its only used by libsframe.  There's no changes to generated files.
> 
> -- >8 --
> Change AC_TRY_LINK to AC_LINK_IFELSE in config/dejagnu.m4.
> ---
>   config/dejagnu.m4 | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/config/dejagnu.m4 b/config/dejagnu.m4
> index 0606e42cb53..e0ed81830b2 100644
> --- a/config/dejagnu.m4
> +++ b/config/dejagnu.m4
> @@ -9,9 +9,9 @@ AC_DEFUN([DEJAGNU_CHECK_VERSION],
>     AC_MSG_CHECKING([for incompatibility between DejaGnu and GCC])
>     AC_MSG_RESULT([$ac_cv_dejagnu_compat])
>   
> -  AC_TRY_LINK([#include <dejagnu.h>],
> -	      [pass ("test foo");
> -	       return 0;],
> +  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <dejagnu.h>]],
> +				  [[pass ("test foo");
> +	       return 0;]])],
>   	      [ac_cv_dejagnu_compat=yes],
>   	      [ac_cv_dejagnu_compat=no])
>     AC_MSG_RESULT([$ac_cv_dejagnu_compat])

Reviewed-by: Indu Bhagat <indu.bhagat@oracle.com>

Thanks for the patch.


More information about the Binutils mailing list