fixes broken "ssl" configure option behavior.diff -r1.7 -r1.8 pkgsrc/net/tnftp/options.mk
(obache)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: options.mk,v 1.7 2014/12/21 09:11:40 obache Exp $ | 1 | # $NetBSD: options.mk,v 1.8 2015/01/19 11:15:37 obache Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.tnftp | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.tnftp | |
4 | PKG_SUPPORTED_OPTIONS= inet6 ssl | 4 | PKG_SUPPORTED_OPTIONS= inet6 ssl | |
5 | PKG_OPTIONS_OPTIONAL_GROUPS+= socks | 5 | PKG_OPTIONS_OPTIONAL_GROUPS+= socks | |
6 | PKG_OPTIONS_GROUP.socks= socks5 | 6 | PKG_OPTIONS_GROUP.socks= socks5 | |
7 | PKG_SUGGESTED_OPTIONS= inet6 | 7 | PKG_SUGGESTED_OPTIONS= inet6 | |
8 | 8 | |||
9 | CHECK_BUILTIN.openssl:= yes | 9 | CHECK_BUILTIN.openssl:= yes | |
10 | .include "../../security/openssl/builtin.mk" | 10 | .include "../../security/openssl/builtin.mk" | |
11 | CHECK_BUILTIN.openssl:= no | 11 | CHECK_BUILTIN.openssl:= no | |
12 | 12 | |||
13 | .if !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) | 13 | .if !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) | |
14 | PKG_SUGGESTED_OPTIONS+= ssl | 14 | PKG_SUGGESTED_OPTIONS+= ssl | |
@@ -20,19 +20,19 @@ PKG_SUGGESTED_OPTIONS+= ssl | @@ -20,19 +20,19 @@ PKG_SUGGESTED_OPTIONS+= ssl | |||
20 | CONFIGURE_ARGS+= --with-socks | 20 | CONFIGURE_ARGS+= --with-socks | |
21 | .include "../../net/socks5/buildlink3.mk" | 21 | .include "../../net/socks5/buildlink3.mk" | |
22 | .else | 22 | .else | |
23 | CONFIGURE_ARGS+= --without-socks | 23 | CONFIGURE_ARGS+= --without-socks | |
24 | .endif | 24 | .endif | |
25 | 25 | |||
26 | .if !empty(PKG_OPTIONS:Minet6) | 26 | .if !empty(PKG_OPTIONS:Minet6) | |
27 | CONFIGURE_ARGS+= --enable-ipv6 | 27 | CONFIGURE_ARGS+= --enable-ipv6 | |
28 | .else | 28 | .else | |
29 | CONFIGURE_ARGS+= --disable-ipv6 | 29 | CONFIGURE_ARGS+= --disable-ipv6 | |
30 | .endif | 30 | .endif | |
31 | 31 | |||
32 | .if !empty(PKG_OPTIONS:Mssl) | 32 | .if !empty(PKG_OPTIONS:Mssl) | |
33 | CONFIGURE_ARGS+= --with-ssl=yes | 33 | CONFIGURE_ARGS+= --enable-ssl | |
34 | .include "../../security/openssl/buildlink3.mk" | 34 | .include "../../security/openssl/buildlink3.mk" | |
35 | CONFIGURE_ARGS+= --with-openssl=${SSLBASE} | 35 | CONFIGURE_ARGS+= --with-openssl=${SSLBASE} | |
36 | .else | 36 | .else | |
37 | CONFIGURE_ARGS+= --with-ssl=no | 37 | CONFIGURE_ARGS+= --disable-ssl | |
38 | .endif | 38 | .endif |
@@ -3140,29 +3140,29 @@ if test "${enable_editcomplete+set}" = s | @@ -3140,29 +3140,29 @@ if test "${enable_editcomplete+set}" = s | |||
3140 | else | 3140 | else | |
3141 | opt_editcomplete=yes | 3141 | opt_editcomplete=yes | |
3142 | fi | 3142 | fi | |
3143 | 3143 | |||
3144 | # Check whether --enable-ipv6 was given. | 3144 | # Check whether --enable-ipv6 was given. | |
3145 | if test "${enable_ipv6+set}" = set; then : | 3145 | if test "${enable_ipv6+set}" = set; then : | |
3146 | enableval=$enable_ipv6; opt_ipv6=$enableval | 3146 | enableval=$enable_ipv6; opt_ipv6=$enableval | |
3147 | else | 3147 | else | |
3148 | opt_ipv6=yes | 3148 | opt_ipv6=yes | |
3149 | fi | 3149 | fi | |
3150 | 3150 | |||
3151 | # Check whether --enable-ssl was given. | 3151 | # Check whether --enable-ssl was given. | |
3152 | if test "${enable_ssl+set}" = set; then : | 3152 | if test "${enable_ssl+set}" = set; then : | |
3153 | enableval=$enable_ssl; opt_ssl=$enableval | 3153 | enableval=$enable_ssl; with_ssl=$enableval | |
3154 | else | 3154 | else | |
3155 | opt_ssl=auto | 3155 | with_ssl=auto | |
3156 | fi | 3156 | fi | |
3157 | 3157 | |||
3158 | 3158 | |||
3159 | # Check whether --with-socks was given. | 3159 | # Check whether --with-socks was given. | |
3160 | if test "${with_socks+set}" = set; then : | 3160 | if test "${with_socks+set}" = set; then : | |
3161 | withval=$with_socks; | 3161 | withval=$with_socks; | |
3162 | else | 3162 | else | |
3163 | with_socks=auto | 3163 | with_socks=auto | |
3164 | fi | 3164 | fi | |
3165 | 3165 | |||
3166 | 3166 | |||
3167 | # | 3167 | # | |
3168 | # Autoheader templates symbols. | 3168 | # Autoheader templates symbols. |
@@ -1,25 +1,25 @@ | @@ -1,25 +1,25 @@ | |||
1 | # $NetBSD: configure.ac,v 1.4 2014/11/04 22:38:26 agc Exp $ | 1 | # $NetBSD: configure.ac,v 1.5 2015/01/19 11:15:37 obache Exp $ | |
2 | # | 2 | # | |
3 | # Process this file with autoconf to produce a configure script. | 3 | # Process this file with autoconf to produce a configure script. | |
4 | 4 | |||
5 | AC_INIT([tnftp], [20141104], [lukem@NetBSD.org]) | 5 | AC_INIT([tnftp], [20141104], [lukem@NetBSD.org]) | |
6 | AC_PREREQ([2.69]) | 6 | AC_PREREQ([2.69]) | |
7 | 7 | |||
8 | AC_COPYRIGHT([ | 8 | AC_COPYRIGHT([ | |
9 | Copyright (c) 1999-2014 The NetBSD Foundation, Inc. | 9 | Copyright (c) 1999-2014 The NetBSD Foundation, Inc. | |
10 | All rights reserved. | 10 | All rights reserved. | |
11 | ]) | 11 | ]) | |
12 | AC_REVISION([$Revision: 1.4 $]) | 12 | AC_REVISION([$Revision: 1.5 $]) | |
13 | 13 | |||
14 | AS_SHELL_SANITIZE() | 14 | AS_SHELL_SANITIZE() | |
15 | 15 | |||
16 | AC_CONFIG_SRCDIR([tnftp.h]) | 16 | AC_CONFIG_SRCDIR([tnftp.h]) | |
17 | AC_CONFIG_AUX_DIR([buildaux]) | 17 | AC_CONFIG_AUX_DIR([buildaux]) | |
18 | AC_CONFIG_MACRO_DIR([buildaux]) | 18 | AC_CONFIG_MACRO_DIR([buildaux]) | |
19 | AC_CONFIG_HEADERS([tnftp_config.h]) | 19 | AC_CONFIG_HEADERS([tnftp_config.h]) | |
20 | AC_CONFIG_LIBOBJ_DIR([libnetbsd]) | 20 | AC_CONFIG_LIBOBJ_DIR([libnetbsd]) | |
21 | 21 | |||
22 | AM_INIT_AUTOMAKE([-Wall -Werror foreign nostdinc silent-rules]) | 22 | AM_INIT_AUTOMAKE([-Wall -Werror foreign nostdinc silent-rules]) | |
23 | AM_MAINTAINER_MODE() | 23 | AM_MAINTAINER_MODE() | |
24 | 24 | |||
25 | # | 25 | # | |
@@ -31,28 +31,28 @@ AC_ARG_ENABLE([editcomplete], | @@ -31,28 +31,28 @@ AC_ARG_ENABLE([editcomplete], | |||
31 | [default=enabled]])], | 31 | [default=enabled]])], | |
32 | [opt_editcomplete=$enableval], | 32 | [opt_editcomplete=$enableval], | |
33 | [opt_editcomplete=yes]) | 33 | [opt_editcomplete=yes]) | |
34 | AC_ARG_ENABLE([ipv6], | 34 | AC_ARG_ENABLE([ipv6], | |
35 | [AS_HELP_STRING([--enable-ipv6], | 35 | [AS_HELP_STRING([--enable-ipv6], | |
36 | [enable IPv6 support (if your OS supports it) | 36 | [enable IPv6 support (if your OS supports it) | |
37 | [default=enabled]])], | 37 | [default=enabled]])], | |
38 | [opt_ipv6=$enableval], | 38 | [opt_ipv6=$enableval], | |
39 | [opt_ipv6=yes]) | 39 | [opt_ipv6=yes]) | |
40 | AC_ARG_ENABLE([ssl], | 40 | AC_ARG_ENABLE([ssl], | |
41 | [AS_HELP_STRING([--enable-ssl], | 41 | [AS_HELP_STRING([--enable-ssl], | |
42 | [enable SSL support (requires --with-openssl) | 42 | [enable SSL support (requires --with-openssl) | |
43 | [default=auto]])], | 43 | [default=auto]])], | |
44 | [opt_ssl=$enableval], | 44 | [with_ssl=$enableval], | |
45 | [opt_ssl=auto]) | 45 | [with_ssl=auto]) | |
46 | AC_ARG_WITH([socks], | 46 | AC_ARG_WITH([socks], | |
47 | [AS_HELP_STRING([--with-socks], | 47 | [AS_HELP_STRING([--with-socks], | |
48 | [enable support for (Dante) SOCKS5 proxy | 48 | [enable support for (Dante) SOCKS5 proxy | |
49 | [default=auto]])], | 49 | [default=auto]])], | |
50 | [], | 50 | [], | |
51 | [with_socks=auto]) | 51 | [with_socks=auto]) | |
52 | 52 | |||
53 | # | 53 | # | |
54 | # Autoheader templates symbols. | 54 | # Autoheader templates symbols. | |
55 | # | 55 | # | |
56 | AH_TEMPLATE([HAVE_POLL], | 56 | AH_TEMPLATE([HAVE_POLL], | |
57 | [Define if we have poll() and it is not emulated.]) | 57 | [Define if we have poll() and it is not emulated.]) | |
58 | AH_TEMPLATE([HAVE_PRINTF_QD], | 58 | AH_TEMPLATE([HAVE_PRINTF_QD], |