/*
 * BSD 4.3
 */
#if (defined(vax) && !defined(ultrix)) || defined(ibm032)
#define LintCFlag -C
#define ProfCcFlags -pg
#endif

#if defined(vax) && !defined(ultrix)
#define AnsiCcCmd gcc -pipe
#define AnsiLdCmd gcc -pipe
#endif

#ifdef ibm032
#define AnsiCcCmd cc -Hon=read_only_strings
#endif


/*
 * DEC ULTRIX
 */
#if defined(ultrix) && defined(mips)
#define LintFlags -DPOSIX
#define CcFlags LintFlags
#endif


/*
 * IBM AIX
 */
#if defined(_AIX)
#define BsdLibs -lbsd
#define BsdFlags -D_BSD -D_BSD_INCLUDES

#define LdLibs BsdLibs
#define LintFlags BsdFlags -DAIXV=AIXV -DPOSIX

#if AIXV > 30
/* AIX 3.1 */
#define NOLINT
#define CcFlags LintFlags
#define CcCmd cc -qlanglvl=extended
#define AnsiCcCmd c89 -qro -D_ALL_SOURCE

#if !defined(UseInstalled) || defined(UseSharedLibs)
#define LdPath -L$(ATHLIBDIR)/shared -L$(ATHLIBDIR)

#define static_program(prog,objs,ldflags,libs)				@@\
all::	prog								@@\
prog::	objs								@@\
	$(LD) ldflags $(LDFLAGS) -o prog objs -L$(ATHLIBDIR) libs $(LDLIBS) @@\
clean::									@@\
	$(RM) prog
#endif

#else
/* AIX 1.2 */
#define CcFlags LintFlags -q
#define RmCmd rm -fs
#endif
#endif	/* _AIX */


/*
 * MAC A/UX
 */
#ifdef _AUX_SOURCE
#define NOLINT
#define RanLibCmd \:

/* We do not use -ZP as this undefines all other symbols which can
 * cause the system header files to break.
 */
#define LintFlags -DPOSIX -D_POSIX_SOURCE -D_BSD_SOURCE
#define CcFlags LintFlags
#define LdLibs -lposix
#endif
