summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-10-24 12:40:52 +0200
committerMaria Matejka <mq@ucw.cz>2023-10-24 12:45:08 +0200
commit108c4cfaf3b0fda5daf4bccf2f1ea45d7f3a271d (patch)
tree843c594237fc4454e5d3207bde24d8fee74bda53 /aclocal.m4
parentc9b7b032110fbd49a5f084bfe3bc886e0e1edfe4 (diff)
Autoconf: minor reduction of redundancy
Joined BIRD_CHECK_GCC_OPTION and BIRD_ADD_GCC_OPTION.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 1613d680..3fdc446f 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -201,6 +201,12 @@ AC_DEFUN([BIRD_ADD_GCC_OPTION],
fi
])
+AC_DEFUN([BIRD_CHECK_AND_ADD_GCC_OPTION],
+[
+ BIRD_CHECK_GCC_OPTION($@)
+ BIRD_ADD_GCC_OPTION($1,$2)
+])
+
# BIRD_CHECK_PROG_FLAVOR_GNU(PROGRAM-PATH, IF-SUCCESS, [IF-FAILURE])
# copied from autoconf internal _AC_PATH_PROG_FLAVOR_GNU
AC_DEFUN([BIRD_CHECK_PROG_FLAVOR_GNU],