summaryrefslogtreecommitdiff
path: root/m4/sudo.m4
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>2016-11-17 10:16:51 -0700
committerTodd C. Miller <Todd.Miller@courtesan.com>2016-11-17 10:16:51 -0700
commite3fe0347b6d779a316fb18c49a6090918f092322 (patch)
treedbac45181fd85241f4ea490e2fef762d1e96d32e /m4/sudo.m4
parentdd1c7ecfcf3fd508a0745d06ade3e4e9a8aa092b (diff)
downloadsudo-e3fe0347b6d779a316fb18c49a6090918f092322.tar.gz
Use AX_APPEND_FLAG instead of SUDO_APPEND_CPPFLAGS and direct
modification of LDFLAGS.
Diffstat (limited to 'm4/sudo.m4')
-rw-r--r--m4/sudo.m431
1 files changed, 4 insertions, 27 deletions
diff --git a/m4/sudo.m4 b/m4/sudo.m4
index 3111b7225..97e62a316 100644
--- a/m4/sudo.m4
+++ b/m4/sudo.m4
@@ -346,33 +346,10 @@ dnl Append a libpath to an LDFLAGS style variable if not already present.
dnl Also appends to the _R version unless rpath is disabled.
dnl
AC_DEFUN([SUDO_APPEND_LIBPATH], [
- case "${$1}" in
- *"-L$2"|*"-L$2 ")
- ;;
- *)
- $1="${$1} -L$2"
- if test X"$enable_rpath" = X"yes"; then
- $1_R="${$1_R} -R$2"
- fi
- ;;
- esac
-])
-
-dnl
-dnl Append a directory to CPPFLAGS if not already present.
-dnl
-AC_DEFUN([SUDO_APPEND_CPPFLAGS], [
- case "${CPPFLAGS}" in
- *"$1"|*"$1 ")
- ;;
- *)
- if test X"${CPPFLAGS}" = X""; then
- CPPFLAGS="$1"
- else
- CPPFLAGS="${CPPFLAGS} $1"
- fi
- ;;
- esac
+ AX_APPEND_FLAG([-L$2], [$1])
+ if test X"$enable_rpath" = X"yes"; then
+ AX_APPEND_FLAG([-R$2], [$1_R])
+ fi
])
dnl