summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2011-07-20 10:29:22 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-27 12:02:42 +0100
commita601df4fec99302c4d4fec686674ea202a15cd8b (patch)
tree552532c446d662ca3230c1dc3685476ce63dbefa /meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch
parent7772a8893db25ab87025844a473f97ae56ddf170 (diff)
downloadpoky-a601df4fec99302c4d4fec686674ea202a15cd8b.tar.gz
at: enable pam support
add patches to make at enable pam support (From OE-Core rev: eabf5a639c94a016316bfd6707ee6e5bd676d85d) Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch')
-rw-r--r--meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch b/meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch
new file mode 100644
index 0000000000..1f73cdd07e
--- /dev/null
+++ b/meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch
@@ -0,0 +1,23 @@
1--- at-3.1.12/configure.ac 2011-06-23 14:51:03.653572945 +0800
2+++ at-3.1.12/configure.ac.new 2011-06-27 16:12:14.903572945 +0800
3@@ -81,10 +81,18 @@
4 AC_FUNC_VPRINTF
5 AC_FUNC_GETLOADAVG
6 AC_CHECK_FUNCS(getcwd mktime strftime setreuid setresuid sigaction waitpid)
7+
8+AC_ARG_WITH([pam],
9+ [AS_HELP_STRING([--without-pam], [without PAM support])])
10+
11+if test "x$with_pam" != xno; then
12 AC_CHECK_HEADERS(security/pam_appl.h, [
13 PAMLIB="-lpam"
14- AC_DEFINE(HAVE_PAM, 1, [Define to 1 for PAM support])
15-])
16+ AC_DEFINE(HAVE_PAM, 1, [Define to 1 for PAM support])],
17+ [if test "x$with_pam" = xyes; then
18+ AC_MSG_ERROR([PAM selected but security/pam_misc.h not found])
19+ fi])
20+fi
21
22 dnl Checking for programs
23