]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - crypto/openssh/freebsd-configure.sh
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / crypto / openssh / freebsd-configure.sh
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 configure_args="
7     --prefix=/usr
8     --sysconfdir=/etc/ssh
9     --with-pam
10     --with-tcp-wrappers
11     --with-libedit
12     --with-ssl-engine
13     --without-xauth
14
15
16 set -e
17
18 # generate config.h with krb5 and stash it
19 sh configure $configure_args --with-kerberos5
20 mv config.log config.log.orig
21 mv config.h config.h.orig
22
23 # generate config.h without krb5
24 sh configure $configure_args --without-kerberos5
25
26 # extract the difference
27 echo '/* $Free''BSD$ */' > krb5_config.h
28 diff -u config.h.orig config.h |
29         sed -n '/^-#define/s/^-//p' |
30         grep -Ff /dev/stdin config.h.orig >> krb5_config.h