[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-cppi] [PATCH 14/19] build: part two of using subdir-objects: handle
From: |
Jim Meyering |
Subject: |
[bug-cppi] [PATCH 14/19] build: part two of using subdir-objects: handle e.g., GETOPT_H |
Date: |
Wed, 25 Jan 2012 09:22:51 +0100 |
From: Jim Meyering <address@hidden>
* configure.ac: Prepend lib/ to the value of each /_H$/ = /\.h$/
substituted variable, converting each <var,value> pair, e.g.,
<GETOPT_H,getopt.h> to <GETOPT_H,lib/getopt.h>.
---
configure.ac | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index eb003ae..2c91d04 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,6 +83,20 @@ AC_HEADER_ASSERT
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.17])
-AC_CONFIG_FILES([Makefile po/Makefile.in])
+# This is copied from bison. FIXME: keep it in sync!
+# We use gnulib, but from lib/local.mk instead of lib/Makefile.am.
+# So prefix paths with lib/. See also etc/prefix-gnulib-mk.
+gl_LIBOBJS=`echo "$gl_LIBOBJS" | sed -e 's, , lib/,g'`
+# Listing the names of the variables to prefix is error-prone.
+# Rather, adjust all the AC_SUBST variables whose name ends in '_H',
+# and whose content ends in '.h'.
+for ac_var in $ac_subst_vars
+do
+ eval "ac_val=\$$ac_var"
+ case $ac_var=$ac_val in
+ (*_H=*.h) eval "$ac_var=lib/\$$ac_var";;
+ esac
+done
+AC_CONFIG_FILES([Makefile po/Makefile.in])
AC_OUTPUT
--
1.7.9.rc2.2.g183d6
- [bug-cppi] [PATCH 08/19] maint: .gitignore: ignore/adjust a few more, (continued)
- [bug-cppi] [PATCH 08/19] maint: .gitignore: ignore/adjust a few more, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 03/19] maint: remove useless artifacts copied from coreutils, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 09/19] build: remove obsolete settings from cfg.mk, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 10/19] maint: update init.sh from gnulib, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 11/19] maint: remove redundant build output, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 05/19] build: don't recurse into man/ when building, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 07/19] build: don't recurse into tests/ when building, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 12/19] maint: use gnulib's getopt-gnu, not the deprecated getopt module, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 13/19] maint: tweak m4 quoting in AC_CONFIG_FILES, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 06/19] tests: add the help-version test, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 14/19] build: part two of using subdir-objects: handle e.g., GETOPT_H,
Jim Meyering <=
- [bug-cppi] [PATCH 17/19] version 1.16, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 18/19] maint: post-release administrivia, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 15/19] build: don't depend on help2man when building from dist tarball, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 16/19] doc: NEWS: mention our non-recursive make scheme, Jim Meyering, 2012/01/25
- [bug-cppi] [PATCH 19/19] build: don't require /usr/bin/perl, Jim Meyering, 2012/01/25