Merge from vendor branch SENDMAIL:
[dragonfly.git] / contrib / sendmail-8.13.8 / devtools / Site / site.config.m4.sample
1 dnl #####################################################################
2 dnl ###                                                               ###
3 dnl ### This is a sample "site.config.m4".  It is not intended to be  ###
4 dnl ### used directly.  It is intended to illustrate, by example,     ###
5 dnl ### how to make your own site configuration file.                 ###
6 dnl ###                                                               ###
7 dnl #####################################################################
8 dnl $Id: site.config.m4.sample,v 1.1 2003/01/11 17:09:25 ca Exp $
9
10 dnl #####################################################################
11 dnl ###                                                               ###
12 dnl ### This illustrates how to turn off an option that is defined by ###
13 dnl ### default.  Check your compiler documentation to make sure that ###
14 dnl ### it supports "-U".                                             ###
15 dnl ###                                                               ###
16 dnl #####################################################################
17
18 dnl ### Changes to disable the default NIS support
19 APPENDDEF(`confENVDEF', `-UNIS')
20
21 dnl #####################################################################
22 dnl ###                                                               ###
23 dnl ### The next group of statements illustrates how to add support   ###
24 dnl ### for a particular map class.  If you have not heard of this    ###
25 dnl ### particular map type, then you probably don't need it.         ###
26 dnl ###                                                               ###
27 dnl ### Note that the map define goes in confMAPDEF, and that any     ###
28 dnl ### special library must be defined.  Note, also that include     ###
29 dnl ### directories and library directories must also be defined if   ###
30 dnl ### they are places that your compiler does not automatically     ###
31 dnl ### search.                                                       ###
32 dnl ###                                                               ###
33 dnl #####################################################################
34
35 dnl ### Changes for PH_MAP support.
36 APPENDDEF(`confMAPDEF',`-DPH_MAP')
37 APPENDDEF(`confLIBS', `-lphclient')
38 APPENDDEF(`confINCDIRS', `-I/opt/nph/include')
39 APPENDDEF(`confLIBDIRS', `-L/opt/nph/lib')
40
41 dnl #####################################################################
42 dnl ###                                                               ###
43 dnl ### The next group illustrates how to add support for a compile   ###
44 dnl ### time option.  In addition to the compile time define, any     ###
45 dnl ### required libraries must be given.  In addition, include and   ###
46 dnl ### library directories must be given if they are not standardly  ###
47 dnl ### searched by your compiler.                                    ###
48 dnl ###                                                               ###
49 dnl ### Note the "-R" for the library directory.  On some systems,    ###
50 dnl ### that can be used to tell the run time loader where to find    ###
51 dnl ### dynamic libraries (shared objects).  Check your system        ###
52 dnl ### documentation (man ld) to see if this is appropriate for your ###
53 dnl ### system.                                                       ###
54 dnl ###                                                               ###
55 dnl #####################################################################
56
57 dnl ### Changes for STARTTLS support
58 APPENDDEF(`confENVDEF',`-DSTARTTLS')
59 APPENDDEF(`confLIBS', `-lssl -lcrypto')
60 APPENDDEF(`confLIBDIRS', `-L/usr/local/ssl/lib -R/usr/local/ssl/lib')
61 APPENDDEF(`confINCDIRS', `-I/usr/local/ssl/include')
62