diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-07-27 19:30:38 +0200 |
---|---|---|
committer | Tomáš Mráz <tmraz@redhat.com> | 2020-08-03 16:15:47 +0200 |
commit | 47b485db1c90749d0a67ad3fcf809d4143d29a2b (patch) | |
tree | 45fcd68f07237a88adb11432a109d479970bd791 /m4/japhar_grep_cflags.m4 | |
parent | ba5a375570fc35112cb29c182ecb7abae2b49056 (diff) | |
download | pam-47b485db1c90749d0a67ad3fcf809d4143d29a2b.tar.gz pam-47b485db1c90749d0a67ad3fcf809d4143d29a2b.tar.bz2 pam-47b485db1c90749d0a67ad3fcf809d4143d29a2b.zip |
autotools: update deprecated macros
see https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
- update AC_HELP_STRING to AS_HELP_STRING
- update AC_TRY_COMPILE to AC_COMPILE_IFELSE
- update AC_TRY_RUN to AC_RUN_IFELSE
- update AC_TRY_LINK to AC_LINK_IFELSE
Diffstat (limited to 'm4/japhar_grep_cflags.m4')
-rw-r--r-- | m4/japhar_grep_cflags.m4 | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/m4/japhar_grep_cflags.m4 b/m4/japhar_grep_cflags.m4 index cf2ea4a5..d0b05f07 100644 --- a/m4/japhar_grep_cflags.m4 +++ b/m4/japhar_grep_cflags.m4 @@ -22,7 +22,8 @@ dnl AC_DEFUN([AC_C___ATTRIBUTE__], [ AC_MSG_CHECKING(for __attribute__) AC_CACHE_VAL(ac_cv___attribute__, [ -AC_TRY_COMPILE([ +AC_COMPILE_IFELSE([ +AC_LANG_PROGRAM([[ #include <stdlib.h> static void foo (void) __attribute__ ((unused)); @@ -31,12 +32,12 @@ foo (void) { exit(1); } -], -[ +]], +[[ exit (0); -], -ac_cv___attribute__=yes, -ac_cv___attribute__=no)]) +]])], +[ac_cv___attribute__=yes], +[ac_cv___attribute__=no])]) if test "$ac_cv___attribute__" = "yes"; then AC_DEFINE(UNUSED, __attribute__ ((unused)), [define if your compiler has __att ribute__ ((unused))]) |