Bug 570

Summary: configure --disable-FEATURE fix
Product: Portable OpenSSH Reporter: Roumen Petrov <bugtrack>
Component: Build systemAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: All   
OS: Linux   
Attachments:
Description Flags
proposed patch none

Description Roumen Petrov 2003-05-20 00:21:56 AEST
....
- Macro: AC_ARG_ENABLE (FEATURE, HELP-STRING, [ACTION-IF-GIVEN],
[ACTION-IF-NOT-GIVEN])

If the user gave `configure' the option `--enable-FEATURE' or
`--disable-FEATURE', run shell commands ACTION-IF-GIVEN.  If neither option was
given, run shell commands ACTION-IF-NOT-GIVEN.
....
Comment 1 Roumen Petrov 2003-05-20 00:24:16 AEST
Created attachment 306 [details]
proposed patch
Comment 2 Roumen Petrov 2003-06-27 21:46:03 AEST
When somebody explicitly use ./configure --enable-FEATURE for one of these fixed
in proposed patch this feature is disabled.
Comment 3 Darren Tucker 2003-06-27 22:40:07 AEST
Patch seems reasonable to me.

Unpatched:
$ ../configure --enable-lastlog
$ grep DISABLE_LAST config.h
#define DISABLE_LASTLOG 1

Patched:
$ ../configure --enable-lastlog
$ grep DISABLE_LASTLOG config.h
/* #undef DISABLE_LASTLOG */

We don't use the 3-argument AC_DEFINE*() macros at the moment, though.
Comment 4 Darren Tucker 2003-06-28 12:55:53 AEST
Applied, apart from the 3-arg AC_DEFINE_UNQUOTED changes.  Thanks.
Comment 5 Damien Miller 2004-04-14 12:24:19 AEST
Mass change of RESOLVED bugs to CLOSED