summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-04-11 03:28:50 +0200
committerBruno Haible <bruno@clisp.org>2009-04-11 03:28:50 +0200
commit3f5fe3223382a51a3057e0806aa02463addd12e4 (patch)
tree728ca17ee00821861f9c74380ac832aaccefbd67
parent2b6179194183abd250f9f0f3757c9b6b986feece (diff)
downloadlibunistring-3f5fe3223382a51a3057e0806aa02463addd12e4.tar.gz
Install all auxiliary include files in a subdirectory.
-rw-r--r--ChangeLog29
-rw-r--r--configure.ac1
-rw-r--r--gnulib-local/lib/unicase.h.diff2
-rw-r--r--gnulib-local/lib/uniconv.h.diff4
-rw-r--r--gnulib-local/lib/unictype.h.diff2
-rw-r--r--gnulib-local/lib/unilbrk.h.diff2
-rw-r--r--gnulib-local/lib/unistr.h.diff4
-rw-r--r--gnulib-local/lib/unitypes.h.diff2
-rw-r--r--gnulib-local/lib/uniwidth.h.diff2
-rw-r--r--lib/Makefile.am68
-rw-r--r--lib/unistring-notinline.h2
-rw-r--r--lib/unistring/inline.h (renamed from lib/unistring-inline.h)0
12 files changed, 85 insertions, 33 deletions
diff --git a/ChangeLog b/ChangeLog
index 9019a97..d8eb308 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,34 @@
2008-04-10 Bruno Haible <bruno@clisp.org>
+ Install all auxiliary include files in a subdirectory.
+ * lib/unistring/inline.h: Renamed from lib/unistring-inline.h.
+ * configure.ac: Invoke AC_PROG_MKDIR_P.
+ * lib/Makefile.am (nobase_include_HEADERS): Renamed from
+ include_HEADERS. Change unistring-inline.h to unistring/inline.h.
+ (nobase_nodist_include_HEADERS): Renamed from nodist_include_HEADERS.
+ Change unistring-*.h to unistring/*.h.
+ (unistring/stdbool.h): Renamed from unistring-stdbool.h. Ensure target
+ directory exists.
+ (unistring/stdint.h): Renamed from unistring-stdint.h. Ensure target
+ directory exists.
+ (unistring/localcharset.h): Renamed from unistring-localcharset.h.
+ Ensure target directory exists.
+ (unistring/iconveh.h): Renamed from unistring-iconveh.h Ensure target
+ directory exists.
+ (BUILT_SOURCES, MOSTLYCLEANFILES, CLEANFILES): Update.
+ (CLEANDIRS, CLEANDIRS_NOT_IN_SRCDIR): New variables.
+ (clean-local): New rule.
+ * gnulib-local/lib/unicase.h.diff: Update include statements.
+ * gnulib-local/lib/uniconv.h.diff: Likewise.
+ * gnulib-local/lib/unictype.h.diff: Likewise.
+ * gnulib-local/lib/unilbrk.h.diff: Likewise.
+ * gnulib-local/lib/unistr.h.diff: Likewise.
+ * gnulib-local/lib/unitypes.h.diff: Likewise.
+ * gnulib-local/lib/uniwidth.h.diff: Likewise.
+ * lib/unistring-notinline.h: Likewise.
+
+2008-04-10 Bruno Haible <bruno@clisp.org>
+
* doc/uniconv.h: Document the 'enum iconv_ilseq_handler' type.
2008-04-10 Bruno Haible <bruno@clisp.org>
diff --git a/configure.ac b/configure.ac
index 859739f..740516f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,7 @@ dnl Checks for basic programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
+AC_PROG_MKDIR_P
dnl Check for host type.
diff --git a/gnulib-local/lib/unicase.h.diff b/gnulib-local/lib/unicase.h.diff
index 1cf9eb3..1381770 100644
--- a/gnulib-local/lib/unicase.h.diff
+++ b/gnulib-local/lib/unicase.h.diff
@@ -13,7 +13,7 @@
#include "unitypes.h"
/* Get bool. */
-! #include <unistring-stdbool.h>
+! #include <unistring/stdbool.h>
/* Get size_t. */
#include <stddef.h>
diff --git a/gnulib-local/lib/uniconv.h.diff b/gnulib-local/lib/uniconv.h.diff
index 37f071d..d640323 100644
--- a/gnulib-local/lib/uniconv.h.diff
+++ b/gnulib-local/lib/uniconv.h.diff
@@ -19,10 +19,10 @@
#include "unitypes.h"
/* Get enum iconv_ilseq_handler. */
-! #include "unistring-iconveh.h"
+! #include <unistring/iconveh.h>
/* Get locale_charset() declaration. */
-! #include "unistring-localcharset.h"
+! #include <unistring/localcharset.h>
#ifdef __cplusplus
diff --git a/gnulib-local/lib/unictype.h.diff b/gnulib-local/lib/unictype.h.diff
index 65d5d53..cee4482 100644
--- a/gnulib-local/lib/unictype.h.diff
+++ b/gnulib-local/lib/unictype.h.diff
@@ -13,7 +13,7 @@
#include "unitypes.h"
/* Get bool. */
-! #include <unistring-stdbool.h>
+! #include <unistring/stdbool.h>
/* Get size_t. */
#include <stddef.h>
diff --git a/gnulib-local/lib/unilbrk.h.diff b/gnulib-local/lib/unilbrk.h.diff
index aea376a..a5b86c3 100644
--- a/gnulib-local/lib/unilbrk.h.diff
+++ b/gnulib-local/lib/unilbrk.h.diff
@@ -13,7 +13,7 @@
#include "unitypes.h"
/* Get locale_charset() declaration. */
-! #include "unistring-localcharset.h"
+! #include <unistring/localcharset.h>
#ifdef __cplusplus
diff --git a/gnulib-local/lib/unistr.h.diff b/gnulib-local/lib/unistr.h.diff
index 3989a24..4572049 100644
--- a/gnulib-local/lib/unistr.h.diff
+++ b/gnulib-local/lib/unistr.h.diff
@@ -15,10 +15,10 @@
#include "unitypes.h"
+ /* Get inline if available. */
-+ #include "unistring-inline.h"
++ #include <unistring/inline.h>
+
/* Get bool. */
-! #include <unistring-stdbool.h>
+! #include <unistring/stdbool.h>
/* Get size_t. */
#include <stddef.h>
diff --git a/gnulib-local/lib/unitypes.h.diff b/gnulib-local/lib/unitypes.h.diff
index f0544dd..39597ff 100644
--- a/gnulib-local/lib/unitypes.h.diff
+++ b/gnulib-local/lib/unitypes.h.diff
@@ -13,7 +13,7 @@
#define _UNITYPES_H
/* Get uint8_t, uint16_t, uint32_t. */
-! #include <unistring-stdint.h>
+! #include <unistring/stdint.h>
/* Type representing a Unicode character. */
typedef uint32_t ucs4_t;
diff --git a/gnulib-local/lib/uniwidth.h.diff b/gnulib-local/lib/uniwidth.h.diff
index 80c9f89..7448d4c 100644
--- a/gnulib-local/lib/uniwidth.h.diff
+++ b/gnulib-local/lib/uniwidth.h.diff
@@ -13,7 +13,7 @@
#include <stddef.h>
/* Get locale_charset() declaration. */
-! #include "unistring-localcharset.h"
+! #include <unistring/localcharset.h>
#ifdef __cplusplus
extern "C" {
diff --git a/lib/Makefile.am b/lib/Makefile.am
index eb367d7..4e8d6a6 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -27,7 +27,7 @@ SUFFIXES =
lib_LTLIBRARIES = libunistring.la
-include_HEADERS = \
+nobase_include_HEADERS = \
unitypes.h \
unistr.h \
uniconv.h \
@@ -39,7 +39,7 @@ include_HEADERS = \
unilbrk.h \
uninorm.h \
unicase.h \
- unistring-inline.h
+ unistring/inline.h
noinst_HEADERS = \
unistring-notinline.h
@@ -50,11 +50,12 @@ AM_CPPFLAGS = -DIN_LIBUNISTRING
include Makefile.gnulib
# The <stdbool.h> and <stdint.h> replacements that can be installed.
-nodist_include_HEADERS = \
- unistring-stdbool.h \
- unistring-stdint.h
+nobase_nodist_include_HEADERS = \
+ unistring/stdbool.h \
+ unistring/stdint.h
-unistring-stdbool.h : $(STDBOOL_H)
+unistring/stdbool.h : $(STDBOOL_H)
+ @MKDIR_P@ unistring
rm -f $@-t $@
if test -n '$(STDBOOL_H)'; then \
cp stdbool.h $@-t; \
@@ -64,11 +65,12 @@ unistring-stdbool.h : $(STDBOOL_H)
} > $@-t; \
fi
mv $@-t $@
-BUILT_SOURCES += unistring-stdbool.h
-MOSTLYCLEANFILES += unistring-stdbool.h-t
-CLEANFILES += unistring-stdbool.h
+BUILT_SOURCES += unistring/stdbool.h
+MOSTLYCLEANFILES += unistring/stdbool.h-t
+CLEANFILES += unistring/stdbool.h
-unistring-stdint.h : $(STDINT_H) stdint.mini.h
+unistring/stdint.h : $(STDINT_H) stdint.mini.h
+ @MKDIR_P@ unistring
rm -f $@-t $@
if test -n '$(STDINT_H)'; then \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
@@ -89,30 +91,50 @@ unistring-stdint.h : $(STDINT_H) stdint.mini.h
} > $@-t; \
fi
mv $@-t $@
-BUILT_SOURCES += unistring-stdint.h
-MOSTLYCLEANFILES += unistring-stdint.h-t
-CLEANFILES += unistring-stdint.h
+BUILT_SOURCES += unistring/stdint.h
+MOSTLYCLEANFILES += unistring/stdint.h-t
+CLEANFILES += unistring/stdint.h
EXTRA_DIST += stdint.mini.h
# localcharset.h is not public, but its contents is documented.
-nodist_include_HEADERS += unistring-localcharset.h
-unistring-localcharset.h : localcharset.h
+nobase_nodist_include_HEADERS += unistring/localcharset.h
+unistring/localcharset.h : localcharset.h
+ @MKDIR_P@ unistring
rm -f $@-t $@
cp $(srcdir)/localcharset.h $@-t
mv $@-t $@
-BUILT_SOURCES += unistring-localcharset.h
-MOSTLYCLEANFILES += unistring-localcharset.h-t
-CLEANFILES += unistring-localcharset.h
+BUILT_SOURCES += unistring/localcharset.h
+MOSTLYCLEANFILES += unistring/localcharset.h-t
+CLEANFILES += unistring/localcharset.h
# iconeh.h is not public, but its contents is documented.
-nodist_include_HEADERS += unistring-iconveh.h
-unistring-iconveh.h : iconveh.h
+nobase_nodist_include_HEADERS += unistring/iconveh.h
+unistring/iconveh.h : iconveh.h
+ @MKDIR_P@ unistring
rm -f $@-t $@
cp $(srcdir)/iconveh.h $@-t
mv $@-t $@
-BUILT_SOURCES += unistring-iconveh.h
-MOSTLYCLEANFILES += unistring-iconveh.h-t
-CLEANFILES += unistring-iconveh.h
+BUILT_SOURCES += unistring/iconveh.h
+MOSTLYCLEANFILES += unistring/iconveh.h-t
+CLEANFILES += unistring/iconveh.h
+
+# Directories that contain some CLEANFILES.
+CLEANDIRS =
+CLEANDIRS_NOT_IN_SRCDIR = unistring
+clean-local: clean-generic
+ @for dir in '' $(CLEANDIRS); do \
+ if test -n "$$dir" && test -d $$dir; then \
+ echo "rmdir $$dir"; rmdir $$dir; \
+ fi; \
+ done; \
+ if test '$(srcdir)' != '.'; then \
+ for dir in '' $(CLEANDIRS_NOT_IN_SRCDIR); do \
+ if test -n "$$dir" && test -d $$dir; then \
+ echo "rmdir $$dir"; rmdir $$dir; \
+ fi; \
+ done; \
+ fi; \
+ :
# Libtool's library version information for libunistring.
# See the libtool documentation, section "Library interface versions".
diff --git a/lib/unistring-notinline.h b/lib/unistring-notinline.h
index 8ef35ec..e7e5faa 100644
--- a/lib/unistring-notinline.h
+++ b/lib/unistring-notinline.h
@@ -16,7 +16,7 @@
/* Written by Bruno Haible <bruno@clisp.org>, 2009. */
-#include "unistring-inline.h"
+#include "unistring/inline.h"
#undef UNISTRING_HAVE_INLINE
#define UNISTRING_HAVE_INLINE 0
#undef HAVE_INLINE
diff --git a/lib/unistring-inline.h b/lib/unistring/inline.h
index bdb0b22..bdb0b22 100644
--- a/lib/unistring-inline.h
+++ b/lib/unistring/inline.h