summaryrefslogtreecommitdiff
path: root/m4/ax_string_strcasecmp.m4
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-07-24 00:01:16 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-07-24 00:01:16 +0200
commitcd67525a2d2a7c144c60722ae5915837e6cdb78c (patch)
treea8b2d76db4c837d579f1e561ae5dc7c397173a23 /m4/ax_string_strcasecmp.m4
parent608733e283eb153329b6f4a73513e132a85868b3 (diff)
downloadautoconf-archive-cd67525a2d2a7c144c60722ae5915837e6cdb78c.tar.gz
Replace obsolete AC_TRY_LINK macros with AC_LINK_IFELSE
Autoconf 2.50 (released in 2001) made several macros obsolete including the AC_TRY_LINK which should now be replaced with the AC_LINK_IFELSE. Refs: - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/AC_005fACT_005fIFELSE-vs-AC_005fTRY_005fACT.html - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
Diffstat (limited to 'm4/ax_string_strcasecmp.m4')
-rw-r--r--m4/ax_string_strcasecmp.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/m4/ax_string_strcasecmp.m4 b/m4/ax_string_strcasecmp.m4
index a5f2101..bf46365 100644
--- a/m4/ax_string_strcasecmp.m4
+++ b/m4/ax_string_strcasecmp.m4
@@ -31,17 +31,17 @@
# and this notice are preserved. This file is offered as-is, without any
# warranty.
-#serial 8
+#serial 9
AU_ALIAS([ETR_STRING_STRCASECMP], [AX_STRING_STRCASECMP])
AC_DEFUN([AX_STRING_STRCASECMP],
[
AC_CACHE_CHECK([for strcasecmp() in string.h], ac_cv_string_strcasecmp, [
- AC_TRY_LINK(
- [ #include <string.h> ],
- [ strcasecmp("foo", "bar"); ],
- ac_cv_string_strcasecmp=yes,
- ac_cv_string_strcasecmp=no)
+ AC_LINK_IFELSE([AC_LANG_PROGRAM(
+ [[#include <string.h>]],
+ [[strcasecmp("foo", "bar");]])],
+ [ac_cv_string_strcasecmp=yes],
+ [ac_cv_string_strcasecmp=no])
])
if test x"$ac_cv_string_strcasecmp" = "xyes"