1With directory layout differences between Red Hat, Debian, Suse and
2other distros one needs to set the variables for the elements below
3
4-----------------+------------------+---------------+----------------+
5                 | Red Hat          |  Debian       |  Suse          |
6-----------------+------------------+---------------+----------------+
7CONFIG_LEAF_DIR  | sysconfig        | default       | sysconfig      |
8INITD_DIR        | /etc/rc.d/init.d | /etc/init.d   | /etc/init.d    |
9-----------------+------------------+---------------+----------------+
10
11The existence of these directories are tested at build-time (on the
12build host) and for some scripts at run-time.  If the Red Hat
13directory exists, it is used; otherwise the Debian one is used.
14
15The INITD_DIR path can be changed with configure --with-initddir=DIR.
16The CONFIG_LEAF_DIR name can be changed with configure
17--with-sysconfig-leaf-dir=SUBDIR.
18
19To add support for new distributions that don't use the above locations,
20one must grep for the above elements and add appropriate checks.
21
22For example if a new distro uses /etc/bork as its config dir, it's not
23sufficient to set CONFIG_LEAF_DIR=bork; one must also add tests for the
24existence of the bork dir in every context where config files are read.
25
26
27