Sendmail Compile-Time Configuration
Giorgos Keramidas
keramida at ceid.upatras.gr
Fri Apr 28 16:37:27 UTC 2006
On 2006-04-28 05:07, Duane Whitty <duane at greenmeadow.ca> wrote:
>Duane Whitty wrote:
>>Duane Whitty wrote:
>>> I'm adding LDAP support to my Sendmail configuration. I couldn't seem
>>> to find the appropriate m4 file in which to declare my APPENDDEF
>>> statements. My course of action was to include
>>> SENDMAIL_CFLAGS+=-DLDAPMAP in make.conf. Does this seem like the
>>> correct way to do this for FreeBSD 6-STABLE?
That would be `/etc/make.conf'.
>> Answering myself:
>>
>> I gues this isn't correct:
>>
>> /usr/src/lib/libmilter/../../contrib/sendmail/include/sm/config.h:148:20:
>> lber.h: No such file or directory
>>
>> /usr/src/lib/libmilter/../../contrib/sendmail/include/sm/config.h:149:20:
>> ldap.h: No such file or directory
>>
>> mkdep: compile failed
>> *** Error code 1
>>
>> I'll be continuing to work on this but hopefully someone
>> here will have dealt with this previously
>
> Maybe SENDMAIL_ADDITIONAL_MC in make.conf will work
> with the needed APPENDDEF statements in my ldap.mc file?
No, you probably want something similar to the way SASL2 support is
compiled into the base-system version of Sendmail. In my `make.conf'
I have the following:
SENDMAIL_CFLAGS= -I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS= -L/usr/local/lib
SENDMAIL_LDADD= -lsasl2
While adding stuff to these variables please keep in mind that GCC on
FreeBSD has a major difference from the default GCC behavior: it does *not*
add /usr/local/include to the default include path or /usr/local/lib to the
default library search path. So you will have to add them yourself, as
shown above.
- Giorgos
More information about the freebsd-questions
mailing list