summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-07-28 12:59:54 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-07-28 12:59:54 +0000
commit274d990f4785b10a2704da3f2315e24249ad6c3a (patch)
tree177c7e3d07d7f13f77c894d585701878e5e13818 /configure
parent9ab9af4f54737e6534d691cc8d149137c32a30a9 (diff)
downloadexecline-274d990f4785b10a2704da3f2315e24249ad6c3a.tar.gz
execline-274d990f4785b10a2704da3f2315e24249ad6c3a.tar.xz
execline-274d990f4785b10a2704da3f2315e24249ad6c3a.zip
Add nsss support (for homeof)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index d8c3307..8ddb019 100755
--- a/configure
+++ b/configure
@@ -45,6 +45,7 @@ Optional features:
   --enable-slashpackage[=ROOT]  assume /package installation at ROOT [disabled]
   --enable-absolute-paths       do not rely on PATH to access this package's binaries,
                                   hardcode absolute BINDIR/foobar paths instead [disabled]
+  --enable-nsss                 use the nsss library for user information [disabled]
 
 EOF
 exit 0
@@ -149,6 +150,7 @@ static=true
 allpic=detect
 slashpackage=false
 abspath=false
+usensss=false
 sproot=
 home=
 exthome=
@@ -191,6 +193,8 @@ for arg ; do
     --disable-slashpackage) sproot= ; slashpackage=false ;;
     --enable-absolute-paths|--enable-absolute-paths=yes) abspath=true ;;
     --disable-absolute-paths|--enable-absolute-paths=no) abspath=false ;;
+    --enable-nsss|--enable-nsss=yes) usensss=true ;;
+    --disable-nsss|--enable-nsss=no) usensss=false ;;
     --enable-*|--disable-*|--with-*|--without-*|--*dir=*) ;;
     --host=*|--target=*) target=${arg#*=} ;;
     --build=*) build=${arg#*=} ;;
@@ -434,6 +438,11 @@ if $allpic ; then
 else
   echo "STATIC_LIBS_ARE_PIC :="
 fi
+if $usensss ; then
+  echo "LIBNSSS := -lnsss"
+else
+  echo "LIBNSSS :="
+fi
 
 exec 1>&3 3>&-
 echo "  ... done."