Bug 211386

Summary: Need configure option for debug defines
Product: [Retired] 389 Reporter: Nathan Kinder <nkinder>
Component: Directory ServerAssignee: Nathan Kinder <nkinder>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0.2CC: nhosoi, rmeggins
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 16:55:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 152373, 240316    
Attachments:
Description Flags
Proposed Fix none

Description Nathan Kinder 2006-10-18 21:13:24 UTC
We have some defines that are needed only when building a debug build.

The attached diffs add a new configure option (--enable-debug) that will add
these defines when specified.  Debug and optimize compiler flags will still need
to be specified with CFLAGS and CXXFLAGS on the command-line when configure is run.

I also fixed a problem with the setting of the default installation prefix in
configure.ac that was noticed when testing this fix.

Note:  I have removed the files generated by autoreconf (Makefile.in and
configure) from the diffs to make it easier to review.

Comment 1 Nathan Kinder 2006-10-18 21:13:24 UTC
Created attachment 138836 [details]
Proposed Fix

Comment 2 Rich Megginson 2006-10-18 21:27:34 UTC
Looks good.

Comment 3 Nathan Kinder 2006-10-18 21:41:40 UTC
Checked into ldapserver (HEAD).  Thanks to Rich for the review!

Checking in Makefile.am;
/cvs/dirsec/ldapserver/Makefile.am,v  <--  Makefile.am
new revision: 1.3; previous revision: 1.2
done
Checking in Makefile.in;
/cvs/dirsec/ldapserver/Makefile.in,v  <--  Makefile.in
new revision: 1.3; previous revision: 1.2
done
Checking in configure;
/cvs/dirsec/ldapserver/configure,v  <--  configure
new revision: 1.2; previous revision: 1.1
done
Checking in configure.ac;
/cvs/dirsec/ldapserver/configure.ac,v  <--  configure.ac
new revision: 1.2; previous revision: 1.1
done

Comment 4 Nathan Kinder 2007-12-21 18:17:54 UTC
Verified that the "--enable-debug" configure option defined DEBUG and MCC_DEBUG.