Merge from vendor branch CVS:
[dragonfly.git] / contrib / sendmail-8.13.8 / devtools / OS / LUNA
1 #       $Id: LUNA,v 8.11 2002/03/21 23:59:25 gshapiro Exp $
2
3 dnl     DO NOT EDIT THIS FILE.
4 dnl     Place personal settings in devtools/Site/site.config.m4
5
6 define(`confBEFORE', `dirent.h stddef.h stdlib.h unistd.h limits.h time.h sys/time.h')
7 define(`confMAPDEF', `-DNDBM')
8 define(`confMBINDIR', `/usr/lib')
9 define(`confSBINDIR', `/usr/etc')
10 define(`confUBINDIR', `/usr/ucb')
11 define(`confEBINDIR', `/usr/lib')
12 PUSHDIVERT(3)
13 dirent.h:
14         echo "#include <sys/dir.h>" > dirent.h
15         echo "#define dirent    direct" >> dirent.h
16
17 stddef.h unistd.h limits.h:
18         if [ -f /usr/include/$@ ]; then \
19                 ln -s /usr/include/$@ .; \
20         else \
21                 cp /dev/null $@; \
22         fi
23
24 stdlib.h:
25         if [ -f /usr/include/stdlib.h ]; then \
26                 ln -s /usr/include/stdlib.h .; \
27         else \
28                 if [ -f /usr/include/libc.h ]; then \
29                         ln -s /usr/include/libc.h stdlib.h; \
30                 else \
31                         cp /dev/null stdlib.h; \
32                 fi; \
33         fi
34
35 # just for UNIOS-B
36 time.h:
37         echo "#ifndef _LOCAL_TIME_H_" > time.h
38         echo "#define _LOCAL_TIME_H_" >> time.h
39         cat /usr/include/time.h >> time.h
40         echo "#endif" >> time.h
41
42 sys/time.h:
43         -mkdir sys
44         echo "#ifndef _LOCAL_SYS_TIME_H_" > sys/time.h
45         echo "#define _LOCAL_SYS_TIME_H_" >> sys/time.h
46         cat /usr/include/sys/time.h >> sys/time.h
47         echo "#endif" >> sys/time.h
48 POPDIVERT