diff options
author | Damien Miller <djm@mindrot.org> | 2011-01-25 12:16:15 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2011-01-25 12:16:15 +1100 |
commit | 71adf127e834e215017b22d61cb4cd4b75cf8ddc (patch) | |
tree | 0f547a038e6d9f1279a4ffc5d2bb40676a709d15 /configure.ac | |
parent | 6f8f04b860765da07938bfe1fef017b00c3a3d55 (diff) |
- (djm) [configure.ac Makefile.in ssh.c openbsd-compat/port-linux.c
openbsd-compat/port-linux.h] Move SELinux-specific code from ssh.c to
port-linux.c to avoid compilation errors. Add -lselinux to ssh when
building with SELinux support to avoid linking failure; report from
amk AT spamfence.net; ok dtucker
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 769e83594..0c46aebeb 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.469 2011/01/21 22:37:05 dtucker Exp $ | 1 | # $Id: configure.ac,v 1.470 2011/01/25 01:16:17 djm Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -15,7 +15,7 @@ | |||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | 16 | ||
17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18 | AC_REVISION($Revision: 1.469 $) | 18 | AC_REVISION($Revision: 1.470 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | 20 | ||
21 | # local macros | 21 | # local macros |
@@ -737,7 +737,6 @@ mips-sony-bsd|mips-sony-newsos4) | |||
737 | [ AC_DEFINE(USE_SOLARIS_PROCESS_CONTRACTS, 1, | 737 | [ AC_DEFINE(USE_SOLARIS_PROCESS_CONTRACTS, 1, |
738 | [Define if you have Solaris process contracts]) | 738 | [Define if you have Solaris process contracts]) |
739 | SSHDLIBS="$SSHDLIBS -lcontract" | 739 | SSHDLIBS="$SSHDLIBS -lcontract" |
740 | AC_SUBST(SSHDLIBS) | ||
741 | SPC_MSG="yes" ], ) | 740 | SPC_MSG="yes" ], ) |
742 | ], | 741 | ], |
743 | ) | 742 | ) |
@@ -748,7 +747,6 @@ mips-sony-bsd|mips-sony-newsos4) | |||
748 | [ AC_DEFINE(USE_SOLARIS_PROJECTS, 1, | 747 | [ AC_DEFINE(USE_SOLARIS_PROJECTS, 1, |
749 | [Define if you have Solaris projects]) | 748 | [Define if you have Solaris projects]) |
750 | SSHDLIBS="$SSHDLIBS -lproject" | 749 | SSHDLIBS="$SSHDLIBS -lproject" |
751 | AC_SUBST(SSHDLIBS) | ||
752 | SP_MSG="yes" ], ) | 750 | SP_MSG="yes" ], ) |
753 | ], | 751 | ], |
754 | ) | 752 | ) |
@@ -3515,11 +3513,14 @@ AC_ARG_WITH(selinux, | |||
3515 | LIBS="$LIBS -lselinux" | 3513 | LIBS="$LIBS -lselinux" |
3516 | ], | 3514 | ], |
3517 | AC_MSG_ERROR(SELinux support requires libselinux library)) | 3515 | AC_MSG_ERROR(SELinux support requires libselinux library)) |
3516 | SSHLIBS="$SSHLIBS $LIBSELINUX" | ||
3518 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | 3517 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" |
3519 | AC_CHECK_FUNCS(getseuserbyname get_default_context_with_level) | 3518 | AC_CHECK_FUNCS(getseuserbyname get_default_context_with_level) |
3520 | LIBS="$save_LIBS" | 3519 | LIBS="$save_LIBS" |
3521 | fi ] | 3520 | fi ] |
3522 | ) | 3521 | ) |
3522 | AC_SUBST(SSHLIBS) | ||
3523 | AC_SUBST(SSHDLIBS) | ||
3523 | 3524 | ||
3524 | # Check whether user wants Kerberos 5 support | 3525 | # Check whether user wants Kerberos 5 support |
3525 | KRB5_MSG="no" | 3526 | KRB5_MSG="no" |
@@ -4341,6 +4342,9 @@ echo " Libraries: ${LIBS}" | |||
4341 | if test ! -z "${SSHDLIBS}"; then | 4342 | if test ! -z "${SSHDLIBS}"; then |
4342 | echo " +for sshd: ${SSHDLIBS}" | 4343 | echo " +for sshd: ${SSHDLIBS}" |
4343 | fi | 4344 | fi |
4345 | if test ! -z "${SSHLIBS}"; then | ||
4346 | echo " +for ssh: ${SSHLIBS}" | ||
4347 | fi | ||
4344 | 4348 | ||
4345 | echo "" | 4349 | echo "" |
4346 | 4350 | ||