From 640fb7a108eec6242c85481fbc0093f67147918b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 10 Sep 2012 16:38:03 +0200 Subject: build: new module to convert lib/ to non-recursive make * gl/modules/non-recursive-gnulib-prefix-hack: New module. * gl/m4/non-recursive-gnulib-prefix-hack.m4: (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): This is the snippet that this module inserts near the end of configure. * gl/build-aux/prefix-gnulib-mk: New script, from bison. Changes from the code in bison: (prefix_assignment): Split a long line. (prefix): Add trailing slashes to avoid a single false match. Prefix imaxtostr.c and the other *tostr.c file names manually. Also, use $prefix in place of hard-coded "lib/". --- gl/modules/non-recursive-gnulib-prefix-hack | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 gl/modules/non-recursive-gnulib-prefix-hack (limited to 'gl/modules/non-recursive-gnulib-prefix-hack') diff --git a/gl/modules/non-recursive-gnulib-prefix-hack b/gl/modules/non-recursive-gnulib-prefix-hack new file mode 100644 index 000000000..26cd9149c --- /dev/null +++ b/gl/modules/non-recursive-gnulib-prefix-hack @@ -0,0 +1,25 @@ +Description: +Compute a good buffer size for dealing with two files. + +Files: +build-aux/prefix-gnulib-mk +m4/non-recursive-gnulib-prefix-hack.m4 + +Depends-on: + +configure.ac: +dnl Run our hack near the end, just before config.status creation. +dnl It must happen late, i.e., after gl_LIBOBJS has been finalized. +AC_CONFIG_COMMANDS_PRE([ + gl_NON_RECURSIVE_GNULIB_PREFIX_HACK([lib]) + ]) + +Makefile.am: + +Include: + +License: +unlimited + +Maintainer: +Jim Meyering -- cgit v1.2.3-54-g00ecf