summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-04-10 19:52:20 +0200
committerBruno Haible <bruno@clisp.org>2009-04-10 22:28:44 +0200
commitf942a32fae64439263111e4f682fbdaafe8f575d (patch)
tree8d4d6547bb0ec4154d72370d8e0a6ce2f1f85efe /autogen.sh
parent64eec30401d5937d492deee444ac2125877580f2 (diff)
downloadlibunistring-f942a32fae64439263111e4f682fbdaafe8f575d.tar.gz
Replace HAVE_INLINE in installed include files.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index a047652..2d75090 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -402,6 +402,12 @@ if test $skip_gnulib = false; then
$GNULIB_TOOL --lib=libunistring --source-base=lib --m4-base=gnulib-m4 --tests-base=tests \
--with-tests --lgpl --makefile-name=Makefile.gnulib --libtool --local-dir=gnulib-local \
--import $GNULIB_MODULES
+ # Change lib/unistr.h to be usable standalone.
+ sed -e 's/ifdef GNULIB_[A-Za-z0-9_]*/if 1/' -e 's/defined GNULIB_[A-Za-z0-9_]*/1/g' \
+ -e 's/HAVE_INLINE/UNISTRING_HAVE_INLINE/g' \
+ < lib/unistr.h \
+ > lib/unistr.h.tmp \
+ && mv lib/unistr.h.tmp lib/unistr.h
$GNULIB_TOOL --copy-file build-aux/config.guess; chmod a+x build-aux/config.guess
$GNULIB_TOOL --copy-file build-aux/config.sub; chmod a+x build-aux/config.sub
# If we got no texinfo.tex so far, take the snapshot from gnulib.