summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-09-01 01:46:54 +0200
committerJim Meyering <meyering@redhat.com>2012-09-01 21:28:12 +0200
commite6bd4e79139801fbf45a6eb381f105d826e75ca5 (patch)
treebacad6c804204c0d043cb2e76d376d7f74a006ca
parent10e7c73a6b4ae248d2e0c561c43febef901f8406 (diff)
downloadcoreutils-e6bd4e79139801fbf45a6eb381f105d826e75ca5.tar.xz
maint: simplify declaration of "libexec" programs
* configure.ac: No need to use 'gl_ADD_PROG' and an indirection variable '$optional_pkglib_progs' to declare the 'libstdbuf.so' "libexec" program; the decision to whether compile that program is not up to the user, but it only and simply depends on whether the 'stdbuf' "bin" program is to be built or not.
-rw-r--r--configure.ac10
1 files changed, 4 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index cd0dbe00d..51782a5b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -420,11 +420,11 @@ dnl of coreutils programs to be built only upon explicit user request,
dnl saving that list in the $no_install_progs_default shell variable.
m4_include([m4/cu-progs.m4])
-# Now that we know which programs will actually be built up, figure out
+# Now that we know which programs will actually be built, determine
# which optional helper progs should be compiled.
-optional_pkglib_progs=
case " $optional_bin_progs " in
- *' stdbuf '*) gl_ADD_PROG([optional_pkglib_progs], [libstdbuf.so]) ;;
+ *' stdbuf '*) pkglibexec_PROGRAMS='src/libstdbuf.so';;
+ *) pkglibexec_PROGRAMS='';;
esac
man1_MANS=`
@@ -448,9 +448,7 @@ EXTRA_MANS=`for p in $no_install_progs_default; do echo man/$p.1; done`
# with $(EXEEXT) appending on it, so we have to do it ourselves -- in
# this case, only for $(bin_PROGRAMS).
bin_PROGRAMS=`
- for p in $optional_bin_progs; do echo "src/$p\$(EXEEXT)"; done`
-pkglibexec_PROGRAMS=`
- for p in $optional_pkglib_progs; do echo src/$p; done`
+ for p in $optional_bin_progs; do echo src/"$p"'$(EXEEXT)'; done`
# Normalize whitespace.
man1_MANS=`echo $man1_MANS`