Rewrite SRFI-35 macros using `syntax-rules'.
[bpt/guile.git] / lib / Makefile.am
CommitLineData
103dc4d4
LC
1## DO NOT EDIT! GENERATED AUTOMATICALLY!
2## Process this file with automake to produce Makefile.in.
4a462e35 3# Copyright (C) 2002-2009 Free Software Foundation, Inc.
103dc4d4
LC
4#
5# This file is free software, distributed under the terms of the GNU
6# General Public License. As a special exception to the GNU General
7# Public License, this file may be distributed as part of a program
8# that contains a configuration script generated by Autoconf, under
9# the same distribution terms as the rest of that program.
10#
11# Generated by gnulib-tool.
f240aacb 12# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl --libtool --macro-prefix=gl --no-vc-files alloca-opt autobuild count-one-bits extensions flock fpieee full-read full-write putenv stdlib strcase strftime
103dc4d4
LC
13
14AUTOMAKE_OPTIONS = 1.5 gnits
15
aa7a939c 16SUBDIRS =
103dc4d4
LC
17noinst_HEADERS =
18noinst_LIBRARIES =
19noinst_LTLIBRARIES =
20EXTRA_DIST =
21BUILT_SOURCES =
22SUFFIXES =
23MOSTLYCLEANFILES = core *.stackdump
24MOSTLYCLEANDIRS =
25CLEANFILES =
26DISTCLEANFILES =
27MAINTAINERCLEANFILES =
28
29AM_CPPFLAGS =
f240aacb 30AM_CFLAGS =
103dc4d4
LC
31
32noinst_LTLIBRARIES += libgnu.la
33
34libgnu_la_SOURCES =
35libgnu_la_LIBADD = $(gl_LTLIBOBJS)
36libgnu_la_DEPENDENCIES = $(gl_LTLIBOBJS)
37EXTRA_libgnu_la_SOURCES =
38libgnu_la_LDFLAGS = $(AM_LDFLAGS)
39
103dc4d4
LC
40## begin gnulib module alloca-opt
41
42BUILT_SOURCES += $(ALLOCA_H)
43
44# We need the following in order to create <alloca.h> when the system
45# doesn't have one that works with the given compiler.
46alloca.h: alloca.in.h
47 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
48 cat $(srcdir)/alloca.in.h; \
49 } > $@-t
50 mv -f $@-t $@
51MOSTLYCLEANFILES += alloca.h alloca.h-t
52
53EXTRA_DIST += alloca.in.h
54
55## end gnulib module alloca-opt
56
4a462e35
NJ
57## begin gnulib module configmake
58
59# Retrieve values of the variables through 'configure' followed by
60# 'make', not directly through 'configure', so that a user who
61# sets some of these variables consistently on the 'make' command
62# line gets correct results.
63#
64# One advantage of this approach, compared to the classical
65# approach of adding -DLIBDIR=\"$(libdir)\" etc. to AM_CPPFLAGS,
66# is that it protects against the use of undefined variables.
67# If, say, $(libdir) is not set in the Makefile, LIBDIR is not
68# defined by this module, and code using LIBDIR gives a
69# compilation error.
70#
71# Another advantage is that 'make' output is shorter.
72#
73# Listed in the same order as the GNU makefile conventions.
74# The Automake-defined pkg* macros are appended, in the order
75# listed in the Automake 1.10a+ documentation.
76configmake.h: Makefile
f240aacb 77 rm -f $@-t
4a462e35
NJ
78 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
79 echo '#define PREFIX "$(prefix)"'; \
80 echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
81 echo '#define BINDIR "$(bindir)"'; \
82 echo '#define SBINDIR "$(sbindir)"'; \
83 echo '#define LIBEXECDIR "$(libexecdir)"'; \
84 echo '#define DATAROOTDIR "$(datarootdir)"'; \
85 echo '#define DATADIR "$(datadir)"'; \
86 echo '#define SYSCONFDIR "$(sysconfdir)"'; \
87 echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
88 echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
89 echo '#define INCLUDEDIR "$(includedir)"'; \
90 echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
91 echo '#define DOCDIR "$(docdir)"'; \
92 echo '#define INFODIR "$(infodir)"'; \
93 echo '#define HTMLDIR "$(htmldir)"'; \
94 echo '#define DVIDIR "$(dvidir)"'; \
95 echo '#define PDFDIR "$(pdfdir)"'; \
96 echo '#define PSDIR "$(psdir)"'; \
97 echo '#define LIBDIR "$(libdir)"'; \
98 echo '#define LISPDIR "$(lispdir)"'; \
99 echo '#define LOCALEDIR "$(localedir)"'; \
100 echo '#define MANDIR "$(mandir)"'; \
101 echo '#define MANEXT "$(manext)"'; \
102 echo '#define PKGDATADIR "$(pkgdatadir)"'; \
103 echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
104 echo '#define PKGLIBDIR "$(pkglibdir)"'; \
105 echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
106 } | sed '/""/d' > $@-t
f240aacb
LC
107 if test -f $@ && cmp $@-t $@ > /dev/null; then \
108 rm -f $@-t; \
109 else \
110 rm -f $@; mv $@-t $@; \
111 fi
112
4a462e35
NJ
113BUILT_SOURCES += configmake.h
114CLEANFILES += configmake.h configmake.h-t
115
116## end gnulib module configmake
117
d7014610
LC
118## begin gnulib module count-one-bits
119
120
121EXTRA_DIST += count-one-bits.h
122
123## end gnulib module count-one-bits
124
f240aacb
LC
125## begin gnulib module flock
126
127
128EXTRA_DIST += flock.c
129
130EXTRA_libgnu_la_SOURCES += flock.c
131
132## end gnulib module flock
133
9b36a80c
LC
134## begin gnulib module full-read
135
136libgnu_la_SOURCES += full-read.h full-read.c
137
138## end gnulib module full-read
139
140## begin gnulib module full-write
141
142libgnu_la_SOURCES += full-write.h full-write.c
143
144## end gnulib module full-write
145
103dc4d4
LC
146## begin gnulib module link-warning
147
148LINK_WARNING_H=$(top_srcdir)/build-aux/link-warning.h
149
150EXTRA_DIST += $(top_srcdir)/build-aux/link-warning.h
151
152## end gnulib module link-warning
153
4a462e35
NJ
154## begin gnulib module localcharset
155
156libgnu_la_SOURCES += localcharset.h localcharset.c
157
158# We need the following in order to install a simple file in $(libdir)
159# which is shared with other installed packages. We use a list of referencing
160# packages so that "make uninstall" will remove the file if and only if it
161# is not used by another installed package.
162# On systems with glibc-2.1 or newer, the file is redundant, therefore we
163# avoid installing it.
164
165all-local: charset.alias ref-add.sed ref-del.sed
166
167charset_alias = $(DESTDIR)$(libdir)/charset.alias
168charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
f240aacb
LC
169install-exec-local: install-exec-localcharset
170install-exec-localcharset: all-local
171 if test $(GLIBC21) = no; then \
172 case '$(host_os)' in \
173 darwin[56]*) \
174 need_charset_alias=true ;; \
175 darwin* | cygwin* | mingw* | pw32* | cegcc*) \
176 need_charset_alias=false ;; \
177 *) \
178 need_charset_alias=true ;; \
179 esac ; \
180 else \
181 need_charset_alias=false ; \
182 fi ; \
183 if $$need_charset_alias; then \
184 $(mkinstalldirs) $(DESTDIR)$(libdir) ; \
185 fi ; \
4a462e35
NJ
186 if test -f $(charset_alias); then \
187 sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
188 $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
189 rm -f $(charset_tmp) ; \
190 else \
f240aacb 191 if $$need_charset_alias; then \
4a462e35
NJ
192 sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
193 $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
194 rm -f $(charset_tmp) ; \
195 fi ; \
196 fi
197
f240aacb
LC
198uninstall-local: uninstall-localcharset
199uninstall-localcharset: all-local
4a462e35
NJ
200 if test -f $(charset_alias); then \
201 sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \
202 if grep '^# Packages using this file: $$' $(charset_tmp) \
203 > /dev/null; then \
204 rm -f $(charset_alias); \
205 else \
206 $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \
207 fi; \
208 rm -f $(charset_tmp); \
209 fi
210
211charset.alias: config.charset
212 rm -f t-$@ $@
213 $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@
214 mv t-$@ $@
215
216SUFFIXES += .sed .sin
217.sin.sed:
218 rm -f t-$@ $@
219 sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@
220 mv t-$@ $@
221
222CLEANFILES += charset.alias ref-add.sed ref-del.sed
223
224EXTRA_DIST += config.charset ref-add.sin ref-del.sin
225
226## end gnulib module localcharset
227
f240aacb
LC
228## begin gnulib module malloc-posix
229
230
231EXTRA_DIST += malloc.c
232
233EXTRA_libgnu_la_SOURCES += malloc.c
234
235## end gnulib module malloc-posix
236
4a462e35
NJ
237## begin gnulib module mbrlen
238
239
240EXTRA_DIST += mbrlen.c
241
242EXTRA_libgnu_la_SOURCES += mbrlen.c
243
244## end gnulib module mbrlen
245
246## begin gnulib module mbrtowc
247
248
249EXTRA_DIST += mbrtowc.c
250
251EXTRA_libgnu_la_SOURCES += mbrtowc.c
252
253## end gnulib module mbrtowc
254
255## begin gnulib module mbsinit
256
257
258EXTRA_DIST += mbsinit.c
259
260EXTRA_libgnu_la_SOURCES += mbsinit.c
261
262## end gnulib module mbsinit
263
f240aacb
LC
264## begin gnulib module putenv
265
266
267EXTRA_DIST += putenv.c
268
269EXTRA_libgnu_la_SOURCES += putenv.c
270
271## end gnulib module putenv
272
9b36a80c
LC
273## begin gnulib module safe-read
274
275
276EXTRA_DIST += safe-read.c safe-read.h
277
278EXTRA_libgnu_la_SOURCES += safe-read.c
279
280## end gnulib module safe-read
281
282## begin gnulib module safe-write
283
284
285EXTRA_DIST += safe-write.c safe-write.h
286
287EXTRA_libgnu_la_SOURCES += safe-write.c
288
289## end gnulib module safe-write
290
e65fc94b
LC
291## begin gnulib module stdbool
292
293BUILT_SOURCES += $(STDBOOL_H)
294
295# We need the following in order to create <stdbool.h> when the system
296# doesn't have one that works.
297stdbool.h: stdbool.in.h
298 rm -f $@-t $@
299 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
300 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
301 } > $@-t
302 mv $@-t $@
303MOSTLYCLEANFILES += stdbool.h stdbool.h-t
304
305EXTRA_DIST += stdbool.in.h
306
307## end gnulib module stdbool
308
f240aacb
LC
309## begin gnulib module stdint
310
311BUILT_SOURCES += $(STDINT_H)
312
313# We need the following in order to create <stdint.h> when the system
314# doesn't have one that works with the given compiler.
315stdint.h: stdint.in.h
316 rm -f $@-t $@
317 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
318 sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
319 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
320 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
321 -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
322 -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
323 -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
324 -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
325 -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
326 -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
327 -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
328 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
329 -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
330 -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
331 -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
332 -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
333 -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
334 -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
335 -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
336 -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
337 -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
338 -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
339 -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
340 -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
341 -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
342 < $(srcdir)/stdint.in.h; \
343 } > $@-t
344 mv $@-t $@
345MOSTLYCLEANFILES += stdint.h stdint.h-t
346
347EXTRA_DIST += stdint.in.h
348
349## end gnulib module stdint
350
351## begin gnulib module stdlib
352
353BUILT_SOURCES += stdlib.h
354
355# We need the following in order to create <stdlib.h> when the system
356# doesn't have one that works with the given compiler.
357stdlib.h: stdlib.in.h
358 rm -f $@-t $@
359 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
360 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
361 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
362 -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
363 -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
364 -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
365 -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
366 -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
367 -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
368 -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \
369 -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
370 -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
371 -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
372 -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
373 -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \
374 -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
375 -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
376 -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
377 -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \
378 -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \
379 -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
380 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
381 -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \
382 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
383 -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \
384 -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
385 -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \
386 -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
387 -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
388 -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \
389 -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
390 -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
391 -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
392 -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
393 -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
394 -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \
395 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
396 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
397 -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
398 -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
399 -e 's|@''VOID_UNSETENV''@|$(VOID_UNSETENV)|g' \
400 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
401 < $(srcdir)/stdlib.in.h; \
402 } > $@-t
403 mv $@-t $@
404MOSTLYCLEANFILES += stdlib.h stdlib.h-t
405
406EXTRA_DIST += stdlib.in.h
407
408## end gnulib module stdlib
409
103dc4d4
LC
410## begin gnulib module strcase
411
412
413EXTRA_DIST += strcasecmp.c strncasecmp.c
414
415EXTRA_libgnu_la_SOURCES += strcasecmp.c strncasecmp.c
416
417## end gnulib module strcase
418
4a462e35
NJ
419## begin gnulib module streq
420
421
422EXTRA_DIST += streq.h
423
424## end gnulib module streq
425
e65fc94b
LC
426## begin gnulib module strftime
427
428
429EXTRA_DIST += strftime.c strftime.h
430
431EXTRA_libgnu_la_SOURCES += strftime.c
432
433## end gnulib module strftime
434
103dc4d4
LC
435## begin gnulib module strings
436
437BUILT_SOURCES += strings.h
438
439# We need the following in order to create <strings.h> when the system
440# doesn't have one that works with the given compiler.
441strings.h: strings.in.h
442 rm -f $@-t $@
443 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
e65fc94b
LC
444 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
445 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
103dc4d4
LC
446 -e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
447 -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
448 -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
449 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
450 < $(srcdir)/strings.in.h; \
451 } > $@-t
452 mv $@-t $@
453MOSTLYCLEANFILES += strings.h strings.h-t
454
455EXTRA_DIST += strings.in.h
456
457## end gnulib module strings
458
f240aacb
LC
459## begin gnulib module sys_file
460
461BUILT_SOURCES += $(SYS_FILE_H)
462
463# We need the following in order to create <sys/file.h> when the system
464# has one that is incomplete.
465sys/file.h: sys_file.in.h
466 @MKDIR_P@ sys
467 rm -f $@-t $@
468 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
469 sed -e 's/@''HAVE_SYS_FILE_H''@/$(HAVE_SYS_FILE_H)/g' \
470 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
471 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
472 -e 's|@''NEXT_SYS_FILE_H''@|$(NEXT_SYS_FILE_H)|g' \
473 -e 's/@''HAVE_FLOCK''@/$(HAVE_FLOCK)/g' \
474 -e 's/@''GNULIB_FLOCK''@/$(GNULIB_FLOCK)/g' \
475 < $(srcdir)/sys_file.in.h; \
476 } > $@-t
477 mv $@-t $@
478MOSTLYCLEANFILES += sys/file.h sys/file.h-t
479MOSTLYCLEANDIRS += sys
480
481EXTRA_DIST += sys_file.in.h
482
483## end gnulib module sys_file
484
e65fc94b
LC
485## begin gnulib module time
486
487BUILT_SOURCES += time.h
488
489# We need the following in order to create <time.h> when the system
490# doesn't have one that works with the given compiler.
491time.h: time.in.h
492 rm -f $@-t $@
493 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
494 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
495 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
496 -e 's|@NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
497 -e 's|@REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
498 -e 's|@REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
499 -e 's|@REPLACE_STRPTIME''@|$(REPLACE_STRPTIME)|g' \
500 -e 's|@REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
501 -e 's|@SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
502 -e 's|@TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
503 < $(srcdir)/time.in.h; \
504 } > $@-t
505 mv $@-t $@
506MOSTLYCLEANFILES += time.h time.h-t
507
508EXTRA_DIST += time.in.h
509
510## end gnulib module time
511
512## begin gnulib module time_r
513
514
515EXTRA_DIST += time_r.c
516
517EXTRA_libgnu_la_SOURCES += time_r.c
518
519## end gnulib module time_r
520
9b36a80c
LC
521## begin gnulib module unistd
522
523BUILT_SOURCES += unistd.h
524
525# We need the following in order to create an empty placeholder for
526# <unistd.h> when the system doesn't have one.
527unistd.h: unistd.in.h
528 rm -f $@-t $@
529 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
530 sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
531 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
532 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
533 -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
534 -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
535 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
536 -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
537 -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
538 -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
539 -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
540 -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
541 -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
542 -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
543 -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
544 -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
545 -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
546 -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
547 -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
548 -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
549 -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
f240aacb 550 -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \
9b36a80c
LC
551 -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
552 -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
553 -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
554 -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
555 -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
556 -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
557 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
558 -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
559 -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
560 -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \
561 -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
562 -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
563 -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
564 -e 's|@''HAVE_GETUSERSHELL''@|$(HAVE_GETUSERSHELL)|g' \
f240aacb 565 -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
9b36a80c
LC
566 -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
567 -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
568 -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
569 -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
570 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
571 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
572 -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
573 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
574 -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
575 -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
576 -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
577 -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
578 -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
579 -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
580 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
581 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
582 < $(srcdir)/unistd.in.h; \
583 } > $@-t
584 mv $@-t $@
585MOSTLYCLEANFILES += unistd.h unistd.h-t
586
587EXTRA_DIST += unistd.in.h
588
589## end gnulib module unistd
590
d7014610
LC
591## begin gnulib module verify
592
593libgnu_la_SOURCES += verify.h
594
595## end gnulib module verify
596
e65fc94b
LC
597## begin gnulib module wchar
598
599BUILT_SOURCES += $(WCHAR_H)
600
601# We need the following in order to create <wchar.h> when the system
602# version does not work standalone.
603wchar.h: wchar.in.h
604 rm -f $@-t $@
605 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
606 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
607 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
608 -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
4a462e35
NJ
609 -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
610 -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \
611 -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \
612 -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \
613 -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \
614 -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \
615 -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \
616 -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \
617 -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \
618 -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \
619 -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \
e65fc94b 620 -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \
4a462e35
NJ
621 -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
622 -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
623 -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
624 -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
625 -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \
626 -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \
627 -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \
628 -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \
629 -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \
630 -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \
631 -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
e65fc94b 632 -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
4a462e35
NJ
633 -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
634 -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
635 -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
636 -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
637 -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
638 -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
639 -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \
640 -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \
641 -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \
642 -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
f240aacb 643 -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
e65fc94b
LC
644 -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
645 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
646 < $(srcdir)/wchar.in.h; \
647 } > $@-t
648 mv $@-t $@
649MOSTLYCLEANFILES += wchar.h wchar.h-t
650
651EXTRA_DIST += wchar.in.h
652
653## end gnulib module wchar
654
9b36a80c
LC
655## begin gnulib module write
656
657
658EXTRA_DIST += write.c
103dc4d4 659
9b36a80c 660EXTRA_libgnu_la_SOURCES += write.c
103dc4d4 661
9b36a80c 662## end gnulib module write
103dc4d4
LC
663
664
665mostlyclean-local: mostlyclean-generic
666 @for dir in '' $(MOSTLYCLEANDIRS); do \
667 if test -n "$$dir" && test -d $$dir; then \
668 echo "rmdir $$dir"; rmdir $$dir; \
669 fi; \
670 done; \
671 :