LDAP Macintosh README

The lber and ldap client libraries have been ported to Macintosh.
Build testing was done with Think C 5.0.4 and MPW 3.2, both running
under System 7.1.  The code is known to run under System 6.0.7 and
later, and it is believed to run under any System later than 6.0.

None of the clients included in the distribution have been tested on
the Mac.  The synchronous LDAP interface is also untested, although it
does build okay.

MAKING THE DISTRIBUTION
To build the ldap and lber libraries (easiest to do as one ThinkC project):

	1) create a new ThinkC project that contains the following files:
		liblber/decode.c
		liblber/encode.c
		liblber/io.c
		macintosh/tcp/dnr.c
		macintosh/tcp/tcp.c
		macintosh/open-macos.c
		macintosh/strings.c
	  plus all the .c files in libldap/, except test.c and open.c.

	2) put all of the .h files in h/, macintosh/, and macintosh/tcp
	   somewhere where in the same folder where the ThinkC project is
	   located.

	3) Add the MacTraps, MacTraps2, Unix, and ANSI-small libraries
	   (included with ThinkC) to the project.

	3) Bring up the Edit menu "Options..." dialog and set the following:
	     Language Settings:
		Strict Prototype Enforcement/Require Prototypes
	     Prefix:
		#define MACOS 1
		#define NEEDPROTOS 1
		#define NEEDGETOPT 1
		#define NO_USERINTERFACE 1

	     That if you want to build a version of the library that does
	     not have any global variables (such as for inclusion in a
	     driver or other code module), add a "#define NO_GLOBALS 1" to
	     the Prefix.

	4) Compile the project (Bring Up To Date under the Project menu)

	5) If you would like to use the libldap/test.c program to test the
	   library in an ugly console window, you will need to add the
	   test.c file itself and the full ANSI library (instead of
	   ANSI-small) to the project, and don't define NO_USERINTERFACE.

BUG REPORTING

    Bug reports should be sent to bug-ldap@terminator.cc.umich.edu.

README Last updated 10 August 1993 Mark Smith
