Resolves: bug 222398
Bug Description: Allow building on Fedora
Reviewed by: ???
Fix Description: There are a few issues with building on Fedora (5 or
1) Need to be able to build with db4.2, db4.3, db4.4, etc. This version
auto-detects the db version from the db.h file it finds. In order to use a
different db version, just use configure --with-db=path or
--with-db-inc=path that points to a
2) mozldap and svrcore are now part of Fedora, so we need to look for those
components. Look for mozldap6 first to allow building on RHEL-4 as well.
mozldap now includes libldif, so add that to the link line.
svrcore-devel is now just svrcore - a svrcore runtime package and a
svrcore-devel build time package.
3) FHS means FHS - /etc, /var/, prefix=/usr and exec_prefix=/usr. It
make any sense to talk about FHS under a prefix. This means the default
will do /opt/fedora-ds/etc, var, lib, bin, share, and so on instead of
/opt/fedora-ds/usr/etc. --with-fhs resets prefix=/usr and
exec_prefix=/usr, and overrides the default settings for sysconfdir and
So, different build types:
FHS - use configure --with-fhs - uses /etc, /var, /usr/lib, /usr/share, etc.
Nothing - configure - uses /opt/fedora-ds/etc/, var/, bin/, lib/, etc.
GNU style - configure --prefix=/usr/local - /usr/local/etc,
/usr/local/bin, /usr/local/var, and so on
Developers can use configure --prefix=/home/user/fds && make && make
install to install local versions
Platforms tested: FC-6
Flag Day: no
Doc impact: no