aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-04-06 00:04:53 -0700
committerPaul Eggert2011-04-06 00:04:53 -0700
commit54fc1789b3451b42d3b243cc7cf7e10f3711a51e (patch)
tree8976c197c638557dc166a28971423cdca6fe7cd4
parent41cf7d1aec986e1b92ca14231ac4ec242c233d45 (diff)
parentb69769da408705e40929b793d79d3bfe6a3a5a48 (diff)
downloademacs-54fc1789b3451b42d3b243cc7cf7e10f3711a51e.tar.gz
emacs-54fc1789b3451b42d3b243cc7cf7e10f3711a51e.zip
* lib/gnulib.mk, m4/stdbool.m4, m4/stddef_h.m4, m4/stdint.m4: Merge from gnulib.
-rw-r--r--lib/gnulib.mk33
-rw-r--r--m4/stdbool.m43
-rw-r--r--m4/stddef_h.m46
-rw-r--r--m4/stdint.m43
4 files changed, 32 insertions, 13 deletions
diff --git a/lib/gnulib.mk b/lib/gnulib.mk
index bb5bdcf852e..d2fd6698030 100644
--- a/lib/gnulib.mk
+++ b/lib/gnulib.mk
@@ -127,7 +127,7 @@ BUILT_SOURCES += $(GETOPT_H)
127 127
128# We need the following in order to create <getopt.h> when the system 128# We need the following in order to create <getopt.h> when the system
129# doesn't have one that works with the given compiler. 129# doesn't have one that works with the given compiler.
130getopt.h: getopt.in.h $(ARG_NONNULL_H) 130getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
131 $(AM_V_GEN)rm -f $@-t $@ && \ 131 $(AM_V_GEN)rm -f $@-t $@ && \
132 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 132 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
133 sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \ 133 sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
@@ -208,12 +208,17 @@ BUILT_SOURCES += $(STDBOOL_H)
208 208
209# We need the following in order to create <stdbool.h> when the system 209# We need the following in order to create <stdbool.h> when the system
210# doesn't have one that works. 210# doesn't have one that works.
211stdbool.h: stdbool.in.h 211if GL_GENERATE_STDBOOL_H
212stdbool.h: stdbool.in.h $(top_builddir)/config.status
212 $(AM_V_GEN)rm -f $@-t $@ && \ 213 $(AM_V_GEN)rm -f $@-t $@ && \
213 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 214 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
214 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ 215 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
215 } > $@-t && \ 216 } > $@-t && \
216 mv $@-t $@ 217 mv $@-t $@
218else
219stdbool.h: $(top_builddir)/config.status
220 rm -f $@
221endif
217MOSTLYCLEANFILES += stdbool.h stdbool.h-t 222MOSTLYCLEANFILES += stdbool.h stdbool.h-t
218 223
219EXTRA_DIST += stdbool.in.h 224EXTRA_DIST += stdbool.in.h
@@ -226,7 +231,8 @@ BUILT_SOURCES += $(STDDEF_H)
226 231
227# We need the following in order to create <stddef.h> when the system 232# We need the following in order to create <stddef.h> when the system
228# doesn't have one that works with the given compiler. 233# doesn't have one that works with the given compiler.
229stddef.h: stddef.in.h 234if GL_GENERATE_STDDEF_H
235stddef.h: stddef.in.h $(top_builddir)/config.status
230 $(AM_V_GEN)rm -f $@-t $@ && \ 236 $(AM_V_GEN)rm -f $@-t $@ && \
231 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ 237 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
232 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ 238 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
@@ -238,6 +244,10 @@ stddef.h: stddef.in.h
238 < $(srcdir)/stddef.in.h; \ 244 < $(srcdir)/stddef.in.h; \
239 } > $@-t && \ 245 } > $@-t && \
240 mv $@-t $@ 246 mv $@-t $@
247else
248stddef.h: $(top_builddir)/config.status
249 rm -f $@
250endif
241MOSTLYCLEANFILES += stddef.h stddef.h-t 251MOSTLYCLEANFILES += stddef.h stddef.h-t
242 252
243EXTRA_DIST += stddef.in.h 253EXTRA_DIST += stddef.in.h
@@ -250,7 +260,8 @@ BUILT_SOURCES += $(STDINT_H)
250 260
251# We need the following in order to create <stdint.h> when the system 261# We need the following in order to create <stdint.h> when the system
252# doesn't have one that works with the given compiler. 262# doesn't have one that works with the given compiler.
253stdint.h: stdint.in.h 263if GL_GENERATE_STDINT_H
264stdint.h: stdint.in.h $(top_builddir)/config.status
254 $(AM_V_GEN)rm -f $@-t $@ && \ 265 $(AM_V_GEN)rm -f $@-t $@ && \
255 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 266 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
256 sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ 267 sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
@@ -282,6 +293,10 @@ stdint.h: stdint.in.h
282 < $(srcdir)/stdint.in.h; \ 293 < $(srcdir)/stdint.in.h; \
283 } > $@-t && \ 294 } > $@-t && \
284 mv $@-t $@ 295 mv $@-t $@
296else
297stdint.h: $(top_builddir)/config.status
298 rm -f $@
299endif
285MOSTLYCLEANFILES += stdint.h stdint.h-t 300MOSTLYCLEANFILES += stdint.h stdint.h-t
286 301
287EXTRA_DIST += stdint.in.h 302EXTRA_DIST += stdint.in.h
@@ -294,7 +309,7 @@ BUILT_SOURCES += stdio.h
294 309
295# We need the following in order to create <stdio.h> when the system 310# We need the following in order to create <stdio.h> when the system
296# doesn't have one that works with the given compiler. 311# doesn't have one that works with the given compiler.
297stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) 312stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
298 $(AM_V_GEN)rm -f $@-t $@ && \ 313 $(AM_V_GEN)rm -f $@-t $@ && \
299 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ 314 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
300 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ 315 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
@@ -405,7 +420,7 @@ BUILT_SOURCES += stdlib.h
405 420
406# We need the following in order to create <stdlib.h> when the system 421# We need the following in order to create <stdlib.h> when the system
407# doesn't have one that works with the given compiler. 422# doesn't have one that works with the given compiler.
408stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) 423stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
409 $(AM_V_GEN)rm -f $@-t $@ && \ 424 $(AM_V_GEN)rm -f $@-t $@ && \
410 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ 425 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
411 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ 426 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
@@ -512,7 +527,7 @@ BUILT_SOURCES += sys/stat.h
512 527
513# We need the following in order to create <sys/stat.h> when the system 528# We need the following in order to create <sys/stat.h> when the system
514# has one that is incomplete. 529# has one that is incomplete.
515sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) 530sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
516 $(AM_V_at)$(MKDIR_P) sys 531 $(AM_V_at)$(MKDIR_P) sys
517 $(AM_V_GEN)rm -f $@-t $@ && \ 532 $(AM_V_GEN)rm -f $@-t $@ && \
518 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 533 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
@@ -571,7 +586,7 @@ BUILT_SOURCES += time.h
571 586
572# We need the following in order to create <time.h> when the system 587# We need the following in order to create <time.h> when the system
573# doesn't have one that works with the given compiler. 588# doesn't have one that works with the given compiler.
574time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) 589time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
575 $(AM_V_GEN)rm -f $@-t $@ && \ 590 $(AM_V_GEN)rm -f $@-t $@ && \
576 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ 591 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
577 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ 592 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
@@ -621,7 +636,7 @@ BUILT_SOURCES += unistd.h
621 636
622# We need the following in order to create an empty placeholder for 637# We need the following in order to create an empty placeholder for
623# <unistd.h> when the system doesn't have one. 638# <unistd.h> when the system doesn't have one.
624unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) 639unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
625 $(AM_V_GEN)rm -f $@-t $@ && \ 640 $(AM_V_GEN)rm -f $@-t $@ && \
626 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 641 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
627 sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ 642 sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
diff --git a/m4/stdbool.m4 b/m4/stdbool.m4
index 838cf0f4679..1ebf3e6808c 100644
--- a/m4/stdbool.m4
+++ b/m4/stdbool.m4
@@ -5,7 +5,7 @@ dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
7 7
8#serial 4 8#serial 5
9 9
10# Prepare for substituting <stdbool.h> if it is not supported. 10# Prepare for substituting <stdbool.h> if it is not supported.
11 11
@@ -21,6 +21,7 @@ AC_DEFUN([AM_STDBOOL_H],
21 STDBOOL_H='stdbool.h' 21 STDBOOL_H='stdbool.h'
22 fi 22 fi
23 AC_SUBST([STDBOOL_H]) 23 AC_SUBST([STDBOOL_H])
24 AM_CONDITIONAL([GL_GENERATE_STDBOOL_H], [test -n "$STDBOOL_H"])
24 25
25 if test "$ac_cv_type__Bool" = yes; then 26 if test "$ac_cv_type__Bool" = yes; then
26 HAVE__BOOL=1 27 HAVE__BOOL=1
diff --git a/m4/stddef_h.m4 b/m4/stddef_h.m4
index 1942b6aa0df..1ae2344318e 100644
--- a/m4/stddef_h.m4
+++ b/m4/stddef_h.m4
@@ -1,5 +1,5 @@
1dnl A placeholder for POSIX 2008 <stddef.h>, for platforms that have issues. 1dnl A placeholder for POSIX 2008 <stddef.h>, for platforms that have issues.
2# stddef_h.m4 serial 3 2# stddef_h.m4 serial 4
3dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
@@ -9,6 +9,7 @@ AC_DEFUN([gl_STDDEF_H],
9[ 9[
10 AC_REQUIRE([gl_STDDEF_H_DEFAULTS]) 10 AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
11 AC_REQUIRE([gt_TYPE_WCHAR_T]) 11 AC_REQUIRE([gt_TYPE_WCHAR_T])
12 STDDEF_H=
12 if test $gt_cv_c_wchar_t = no; then 13 if test $gt_cv_c_wchar_t = no; then
13 HAVE_WCHAR_T=0 14 HAVE_WCHAR_T=0
14 STDDEF_H=stddef.h 15 STDDEF_H=stddef.h
@@ -24,6 +25,8 @@ AC_DEFUN([gl_STDDEF_H],
24 REPLACE_NULL=1 25 REPLACE_NULL=1
25 STDDEF_H=stddef.h 26 STDDEF_H=stddef.h
26 fi 27 fi
28 AC_SUBST([STDDEF_H])
29 AM_CONDITIONAL([GL_GENERATE_STDDEF_H], [test -n "$STDDEF_H"])
27 if test -n "$STDDEF_H"; then 30 if test -n "$STDDEF_H"; then
28 gl_NEXT_HEADERS([stddef.h]) 31 gl_NEXT_HEADERS([stddef.h])
29 fi 32 fi
@@ -41,5 +44,4 @@ AC_DEFUN([gl_STDDEF_H_DEFAULTS],
41 dnl Assume proper GNU behavior unless another module says otherwise. 44 dnl Assume proper GNU behavior unless another module says otherwise.
42 REPLACE_NULL=0; AC_SUBST([REPLACE_NULL]) 45 REPLACE_NULL=0; AC_SUBST([REPLACE_NULL])
43 HAVE_WCHAR_T=1; AC_SUBST([HAVE_WCHAR_T]) 46 HAVE_WCHAR_T=1; AC_SUBST([HAVE_WCHAR_T])
44 STDDEF_H=''; AC_SUBST([STDDEF_H])
45]) 47])
diff --git a/m4/stdint.m4 b/m4/stdint.m4
index e7d0d0765a2..dff37fe1bf9 100644
--- a/m4/stdint.m4
+++ b/m4/stdint.m4
@@ -1,4 +1,4 @@
1# stdint.m4 serial 39 1# stdint.m4 serial 40
2dnl Copyright (C) 2001-2011 Free Software Foundation, Inc. 2dnl Copyright (C) 2001-2011 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -305,6 +305,7 @@ static const char *macro_values[] =
305 STDINT_H=stdint.h 305 STDINT_H=stdint.h
306 fi 306 fi
307 AC_SUBST([STDINT_H]) 307 AC_SUBST([STDINT_H])
308 AM_CONDITIONAL([GL_GENERATE_STDINT_H], [test -n "$STDINT_H"])
308]) 309])
309 310
310dnl gl_STDINT_BITSIZEOF(TYPES, INCLUDES) 311dnl gl_STDINT_BITSIZEOF(TYPES, INCLUDES)