summaryrefslogtreecommitdiff
path: root/libc/nis
diff options
context:
space:
mode:
authorjimb <jimb@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2007-08-22 21:26:59 +0000
committerjimb <jimb@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2007-08-22 21:26:59 +0000
commite81c4393dba969b3d0bc62729c881348477a3b8c (patch)
tree8be686fad42f0424fe59e329c2e1dbf2fe496375 /libc/nis
parenta5441c14ff3294955d02ab747711a91cbc44ea48 (diff)
downloadeglibc2-e81c4393dba969b3d0bc62729c881348477a3b8c.tar.gz
Implement the OPTION_EGLIBC_DB_ALIASES option group.
* option-groups.def (OPTION_EGLIBC_DB_ALIASES): New entry. * option-groups.defaults (OPTION_EGLIBC_DB_ALIASES): Initialize. * inet/Makefile (routines): Move getaliasent_r, getaliasent, getaliasname, and getaliasname_r into the group. * nss/Makefile (databases-y): Move alias into the option group. (CFLAGS-getent.c): Define OPTION_EGLIBC_DB_ALIASES as appropriate. * nss/getent.c (print_aliases, aliases_keys): Define these functions only if OPTION_EGLIBC_DB_ALIASES is enabled. (DA): New macro. (databases): Use DA to decide whether to include the aliases database in the list. * nis/Makefile (databases-y): Renamed from databases; uses changed. Put alias in the group. git-svn-id: svn://svn.eglibc.org/trunk@3241 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/nis')
-rw-r--r--libc/nis/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/libc/nis/Makefile b/libc/nis/Makefile
index 17425f6c6..b0ff354a7 100644
--- a/libc/nis/Makefile
+++ b/libc/nis/Makefile
@@ -31,8 +31,9 @@ distribute := nss-nis.h nss-nisplus.h nis_intern.h Banner \
# These are the databases available for the nis (and perhaps later nisplus)
# service. This must be a superset of the services in nss.
-databases = proto service hosts network grp pwd rpc ethers \
- spwd netgrp alias publickey
+databases-y := proto service hosts network grp pwd rpc ethers \
+ spwd netgrp publickey
+databases-$(OPTION_EGLIBC_DB_ALIASES) += alias
# Specify rules for the nss_* modules.
# The 'compat' module includes nis support, and the 'nss' directory
@@ -67,11 +68,11 @@ libnsl-routines = yp_xdr ypclnt ypupdate_xdr \
libnss_compat-routines := $(addprefix compat-,grp pwd spwd initgroups)
libnss_compat-inhibit-o = $(filter-out .os,$(object-suffixes))
-libnss_nis-routines := $(addprefix nis-,$(databases)) nis-initgroups \
+libnss_nis-routines := $(addprefix nis-,$(databases-y)) nis-initgroups \
nss-nis
libnss_nis-inhibit-o = $(filter-out .os,$(object-suffixes))
-libnss_nisplus-routines := $(addprefix nisplus-,$(databases)) nisplus-parser \
+libnss_nisplus-routines := $(addprefix nisplus-,$(databases-y)) nisplus-parser \
nss-nisplus nisplus-initgroups
libnss_nisplus-inhibit-o = $(filter-out .os,$(object-suffixes))