]> git.sur5r.net Git - openldap/blob - build/unproto/acc.sh
ITS#1991 fix + use struct berval
[openldap] / build / unproto / acc.sh
1 #!/bin/sh
2
3 # @(#) acc.sh 1.1 93/06/18 22:29:42
4 #
5 # Script to emulate most of an ANSI C compiler with a traditional UNIX
6 # C compiler.
7
8 # INCDIR should be the directory with auxiliary include files from the
9 # unproto source distribution (stdarg.h, stdlib.h, stddef.h, and other
10 # stuff that is missing from your compilation environment). With Ultrix
11 # 4.[0-2] you need unproto's stdarg.h even though the system provides
12 # one.
13 #
14 INCDIR=.
15
16 # CPPDIR should be the directory with the unprototypeing cpp filter
17 # (preferably the version with the PIPE_THROUGH_CPP feature).
18 #
19 CPPDIR=.
20
21 # DEFINES: you will want to define volatile and const, and maybe even
22 # __STDC__.
23 #
24 DEFINES="-Dvolatile= -Dconst= -D__STDC__"
25
26 # Possible problem: INCDIR should be listed after the user-specified -I
27 # command-line options, not before them as we do here. This is a problem
28 # only if you attempt to redefine system libraries.
29 #
30 # Choose one of the commands below that is appropriate for your system.
31 #
32 exec cc -Qpath ${CPPDIR} -I${INCDIR} ${DEFINES} "$@"    # SunOS 4.x
33 exec cc -tp -h${CPPDIR} -B -I${INCDIR} ${DEFINES} "$@"  # Ultrix 4.2
34 exec cc -Yp,${CPPDIR} -I${INCDIR} ${DEFINES} "$@"       # M88 SysV.3
35 exec cc -B${CPPDIR}/ -tp -I${INCDIR} ${DEFINES} "$@"    # System V.2