summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-06-13 13:28:18 +0000
committerLaurent Bercot <ska@appnovation.com>2022-06-13 13:28:18 +0000
commitf397b21ae0336ed2d6e22a9c7394a2a17497ad32 (patch)
treee5982c18bf29b9920b97002959037ce26945ceb1 /configure
parent5646d591d90d2fd78a4aeb8e313a1c50a11776c2 (diff)
downloads6-linux-init-f397b21ae0336ed2d6e22a9c7394a2a17497ad32.tar.xz
Make scandir compile-time configurable
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 3dac442..47b57b8 100755
--- a/configure
+++ b/configure
@@ -25,6 +25,7 @@ Fine tuning of the installation directories:
--includedir=DIR C header files [PREFIX/include]
--skeldir=DIR script skeleton files [PREFIX/etc/s6-linux-init/skel]
--tmpfsdir=DIR assume the initial tmpfs will be mounted on DIR [/run]
+ --scandir=DIR use tmpfsdir/DIR as the s6-svscan directory [service]
If no --prefix option is given, by default libdir (but not dynlibdir) will be
/usr/lib/$package, and includedir will be /usr/include.
@@ -177,6 +178,7 @@ vpathd=''
build=
skeldir='$prefix/etc/s6-linux-init/skel'
tmpfsdir=/run
+scandir=service
utmps=false
for arg ; do
@@ -212,6 +214,7 @@ for arg ; do
--disable-nsss|--enable-nsss=no) usensss=false ;;
--skeldir=*) skeldir=${arg#*=} ;;
--tmpfsdir=*) tmpfsdir=${arg#*=} ;;
+ --scandir=*) scandir=${arg#*=} ;;
--enable-utmps|--enable-utmps=yes) utmps=true ;;
--disable-utmps|--enable-utmps=no) utmps=false ;;
--enable-*|--disable-*|--with-*|--without-*|--*dir=*) ;;
@@ -525,6 +528,7 @@ fi
echo "#define ${package_macro_name}_LIBEXECPREFIX \"$libexecdir/\""
echo "#define ${package_macro_name}_SKELDIR \"$skeldir\""
echo "#define ${package_macro_name}_TMPFS \"$tmpfsdir\""
+echo "#define ${package_macro_name}_SCANDIR \"$scandir\""
echo
if $utmps ; then
echo "#define ${package_macro_name}_UTMPD_PATH \"$utmpd_path\""