md5, sha1, sha256, sha512: fix compile error in c++ mode
[gnulib.git] / modules / uniname / base
index 77eda97..58aa84d 100644 (file)
@@ -2,14 +2,25 @@ Description:
 Base layer for Unicode character names.
 
 Files:
-lib/uniname.h
+lib/uniname.in.h
+m4/libunistring-base.m4
 
 Depends-on:
 unitypes
 
 configure.ac:
+gl_LIBUNISTRING_LIBHEADER([0.9], [uniname.h])
 
 Makefile.am:
+BUILT_SOURCES += $(LIBUNISTRING_UNINAME_H)
+
+uniname.h: uniname.in.h
+       $(AM_V_GEN)rm -f $@-t $@ && \
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         cat $(srcdir)/uniname.in.h; \
+       } > $@-t && \
+       mv -f $@-t $@
+MOSTLYCLEANFILES += uniname.h uniname.h-t
 
 Include:
 "uniname.h"