summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-04-29 03:44:29 +0200
committerBruno Haible <bruno@clisp.org>2009-04-29 03:44:29 +0200
commitcccd2787a7a3049e290db81121671f2d463a3bca (patch)
tree03d5eeaf4c2aa4c0fec6795f3d5c86f19840efa6 /lib
parent0d3435fe1c247ece368b27ee7d1f44045a8f5177 (diff)
downloadlibunistring-cccd2787a7a3049e290db81121671f2d463a3bca.tar.gz
Make VPATH builds work off a git checkout.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 4b709c6..199be73 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -219,7 +219,14 @@ config.h: $(BUILT_SOURCES) libunistring.sym
done; \
} 5>&1 \
| sed -e 's,.* ,,' | LC_ALL=C sort | LC_ALL=C uniq \
- | LC_ALL=C join -v 1 - $(srcdir)/libunistring.sym \
+ | { \
+ if test -f libunistring.sym; then \
+ symfile='libunistring.sym'; \
+ else \
+ symfile='$(srcdir)/libunistring.sym'; \
+ fi; \
+ LC_ALL=C join -v 1 - $$symfile; \
+ } \
| sed -e 's,^\(.*\)$$,#define \1 libunistring_\1,' > config.h-t && \
if test -f config.h; then \
cat config.h-t >> config.h; \