summaryrefslogtreecommitdiff
path: root/packages/sudo
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2006-09-20 21:23:23 +0000
committerJamie Lenehan <lenehan@twibble.org>2006-09-20 21:23:23 +0000
commit9b50e151d11f03936311b793dd1dc9aa386c6981 (patch)
treea866ed3ba68abd018483a765843c428dca3c3b5f /packages/sudo
parent97741e39b3a4ddc61b954fa07d8b5837271699fa (diff)
sudo 1.6.8p12: Fix the autoconf patch. The AC_LINK_IFELSE test that was
being patched in is incorrect - this fixes the test. Closes #1422.
Diffstat (limited to 'packages/sudo')
-rw-r--r--packages/sudo/files/autofoo.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/sudo/files/autofoo.patch b/packages/sudo/files/autofoo.patch
index 516e209e23..ddfd98b452 100644
--- a/packages/sudo/files/autofoo.patch
+++ b/packages/sudo/files/autofoo.patch
@@ -181,13 +181,13 @@ Index: sudo-1.6.8p6/aclocal.m4
-AC_MSG_RESULT(yes), AC_MSG_RESULT(no))])
+
+AC_DEFUN([SUDO_LONG_LONG], [AC_MSG_CHECKING(for long long support)
-+AC_LINK_IFELSE([long long foo = 1000; foo /= 10;],
-+ AC_DEFINE(HAVE_LONG_LONG, 1, [Define if your compiler supports the "long long" type.])
++AC_LINK_IFELSE([AC_LANG_PROGRAM([long long foo = 1000; foo /= 10;]),]
++ [AC_DEFINE(HAVE_LONG_LONG, 1, [Define if your compiler supports the "long long" type.])
+ AC_CHECK_SIZEOF([long])
+ AC_CHECK_SIZEOF([long long])
+ if x"$ac_cv_sizeof_long" = x"$ac_cv_sizeof_long_long"; then
+ AC_DEFINE(LONG_IS_QUAD, 1, [Define if sizeof(long) == sizeof(long long).])
-+ fi
++ fi]
+, AC_MSG_RESULT(yes), AC_MSG_RESULT(no))])
dnl