]> code.delx.au - gnu-emacs/blob - nt/gnulib.mk
Merge from origin/emacs-24
[gnu-emacs] / nt / gnulib.mk
1 ## This file is an edited copy if ../lib/gnulib.mk.
2 ##
3 ## The purpose of the edits is to avoid generating any headers
4 ## which would conflict with either the headers we have in nt/inc,
5 ## or with MinGW system headers and subsequent redirection of some
6 ## functions in nt/inc/ms-w32.h.
7 ##
8 ## In general, do NOT remove anything from ../lib/gnulib.mk that
9 ## doesn't need to be removed, to minimize the differences from
10 ## upstream gnulib.mk and thus make the maintenance easier. Every
11 ## header file whose generation is controlled by configure-time tests
12 ## does NOT need to be removed; instead, force the configure script to
13 ## accept whatever MinGW has to offer, by defining the appropriate
14 ## Autoconf variable in the nt/mingw-cfg.site file. Headers that are
15 ## generated conditionally have the tell-tale "if GL_GENERATE_foo_H"
16 ## condition before their Makefile snippet in this file. Likewise, do
17 ## NOT remove gnulib modules which introduce header files that don't
18 ## exist in MinGW and in nt/inc/, since they cannot possibly clash
19 ## with anything. Gnulib modules that introduce source *.c files also
20 ## need not be removed; if they define functions that could clash with
21 ## the w32 substitutes in Emacs, disable their compilation by defining
22 ## suitable variables in nt/mingw-cfg.site.
23 ##
24 ## Process this file with automake to produce Makefile.in.
25 # Copyright (C) 2002-2015 Free Software Foundation, Inc.
26 #
27 # This file is free software; you can redistribute it and/or modify
28 # it under the terms of the GNU General Public License as published by
29 # the Free Software Foundation; either version 3 of the License, or
30 # (at your option) any later version.
31 #
32 # This file is distributed in the hope that it will be useful,
33 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 # GNU General Public License for more details.
36 #
37 # You should have received a copy of the GNU General Public License
38 # along with this file. If not, see <http://www.gnu.org/licenses/>.
39 #
40 # As a special exception to the GNU General Public License,
41 # this file may be distributed as part of a program that
42 # contains a configuration script generated by Autoconf, under
43 # the same distribution terms as the rest of that program.
44 #
45 # Generated by gnulib-tool.
46 # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=close --avoid=dup --avoid=fchdir --avoid=fstat --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow --avoid=open --avoid=openat-die --avoid=opendir --avoid=raise --avoid=save-cwd --avoid=select --avoid=sigprocmask --avoid=stdarg --avoid=stdbool --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt binary-io byteswap c-ctype c-strcase careadlinkat close-stream count-one-bits count-trailing-zeros crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl fcntl-h fdatasync fdopendir filemode fstatat fsync getloadavg getopt-gnu gettime gettimeofday intprops largefile lstat manywarnings memrchr mkostemp mktime pipe2 pselect pthread_sigmask putenv qacl readlink readlinkat sig2str socklen stat-time stdalign stddef stdio stpcpy strftime strtoimax strtoumax symlink sys_stat sys_time time time_r timer-time timespec-add timespec-sub unsetenv update-copyright utimens vla warnings
47
48
49 MOSTLYCLEANFILES += core *.stackdump
50
51 noinst_LIBRARIES += libgnu.a
52
53 libgnu_a_SOURCES =
54 libgnu_a_LIBADD = $(gl_LIBOBJS)
55 libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
56 EXTRA_libgnu_a_SOURCES =
57
58 ## begin gnulib module absolute-header
59
60 # Use this preprocessor expression to decide whether #include_next works.
61 # Do not rely on a 'configure'-time test for this, since the expression
62 # might appear in an installed header, which is used by some other compiler.
63 HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER)
64
65 ## end gnulib module absolute-header
66
67 ## begin gnulib module alloca-opt
68
69 BUILT_SOURCES += $(ALLOCA_H)
70
71 # We need the following in order to create <alloca.h> when the system
72 # doesn't have one that works with the given compiler.
73 if GL_GENERATE_ALLOCA_H
74 alloca.h: alloca.in.h $(top_builddir)/config.status
75 $(AM_V_GEN)rm -f $@-t $@ && \
76 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
77 cat $(srcdir)/alloca.in.h; \
78 } > $@-t && \
79 mv -f $@-t $@
80 else
81 alloca.h: $(top_builddir)/config.status
82 rm -f $@
83 endif
84 MOSTLYCLEANFILES += alloca.h alloca.h-t
85
86 EXTRA_DIST += alloca.in.h
87
88 ## end gnulib module alloca-opt
89
90 ## begin gnulib module binary-io
91
92 libgnu_a_SOURCES += binary-io.h binary-io.c
93
94 ## end gnulib module binary-io
95
96 ## begin gnulib module byteswap
97
98 BUILT_SOURCES += $(BYTESWAP_H)
99
100 # We need the following in order to create <byteswap.h> when the system
101 # doesn't have one.
102 if GL_GENERATE_BYTESWAP_H
103 byteswap.h: byteswap.in.h $(top_builddir)/config.status
104 $(AM_V_GEN)rm -f $@-t $@ && \
105 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
106 cat $(srcdir)/byteswap.in.h; \
107 } > $@-t && \
108 mv -f $@-t $@
109 else
110 byteswap.h: $(top_builddir)/config.status
111 rm -f $@
112 endif
113 MOSTLYCLEANFILES += byteswap.h byteswap.h-t
114
115 EXTRA_DIST += byteswap.in.h
116
117 ## end gnulib module byteswap
118
119 ## begin gnulib module c-ctype
120
121 libgnu_a_SOURCES += c-ctype.h c-ctype.c
122
123 ## end gnulib module c-ctype
124
125 ## begin gnulib module c-strcase
126
127 libgnu_a_SOURCES += c-strcase.h c-strcasecmp.c c-strncasecmp.c
128
129 ## end gnulib module c-strcase
130
131 ## begin gnulib module close-stream
132
133 libgnu_a_SOURCES += close-stream.c
134
135 EXTRA_DIST += close-stream.h
136
137 ## end gnulib module close-stream
138
139 ## begin gnulib module count-one-bits
140
141 libgnu_a_SOURCES += count-one-bits.c
142
143 EXTRA_DIST += count-one-bits.h
144
145 ## end gnulib module count-one-bits
146
147 ## begin gnulib module count-trailing-zeros
148
149 libgnu_a_SOURCES += count-trailing-zeros.c
150
151 EXTRA_DIST += count-trailing-zeros.h
152
153 ## end gnulib module count-trailing-zeros
154
155 ## begin gnulib module crypto/md5
156
157 libgnu_a_SOURCES += md5.c
158
159 EXTRA_DIST += gl_openssl.h md5.h
160
161 ## end gnulib module crypto/md5
162
163 ## begin gnulib module crypto/sha1
164
165 libgnu_a_SOURCES += sha1.c
166
167 EXTRA_DIST += gl_openssl.h sha1.h
168
169 ## end gnulib module crypto/sha1
170
171 ## begin gnulib module crypto/sha256
172
173 libgnu_a_SOURCES += sha256.c
174
175 EXTRA_DIST += gl_openssl.h sha256.h
176
177 ## end gnulib module crypto/sha256
178
179 ## begin gnulib module crypto/sha512
180
181 libgnu_a_SOURCES += sha512.c
182
183 EXTRA_DIST += gl_openssl.h sha512.h
184
185 ## end gnulib module crypto/sha512
186
187 ## begin gnulib module dosname
188
189 if gl_GNULIB_ENABLED_dosname
190
191 endif
192 EXTRA_DIST += dosname.h
193
194 ## end gnulib module dosname
195
196 ## begin gnulib module dtoastr
197
198 libgnu_a_SOURCES += dtoastr.c
199
200 EXTRA_DIST += ftoastr.c ftoastr.h
201
202 EXTRA_libgnu_a_SOURCES += ftoastr.c
203
204 ## end gnulib module dtoastr
205
206 ## begin gnulib module dtotimespec
207
208 libgnu_a_SOURCES += dtotimespec.c
209
210 ## end gnulib module dtotimespec
211
212 ## begin gnulib module dup2
213
214
215 EXTRA_DIST += dup2.c
216
217 EXTRA_libgnu_a_SOURCES += dup2.c
218
219 ## end gnulib module dup2
220
221 ## begin gnulib module errno
222
223 BUILT_SOURCES += $(ERRNO_H)
224
225 # We need the following in order to create <errno.h> when the system
226 # doesn't have one that is POSIX compliant.
227 if GL_GENERATE_ERRNO_H
228 errno.h: errno.in.h $(top_builddir)/config.status
229 $(AM_V_GEN)rm -f $@-t $@ && \
230 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
231 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
232 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
233 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
234 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
235 -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \
236 -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \
237 -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \
238 -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \
239 -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \
240 -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
241 -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
242 < $(srcdir)/errno.in.h; \
243 } > $@-t && \
244 mv $@-t $@
245 else
246 errno.h: $(top_builddir)/config.status
247 rm -f $@
248 endif
249 MOSTLYCLEANFILES += errno.h errno.h-t
250
251 EXTRA_DIST += errno.in.h
252
253 ## end gnulib module errno
254
255 ## begin gnulib module euidaccess
256
257 if gl_GNULIB_ENABLED_euidaccess
258
259 endif
260 EXTRA_DIST += euidaccess.c
261
262 EXTRA_libgnu_a_SOURCES += euidaccess.c
263
264 ## end gnulib module euidaccess
265
266 ## begin gnulib module execinfo
267
268 BUILT_SOURCES += $(EXECINFO_H)
269
270 # We need the following in order to create <execinfo.h> when the system
271 # doesn't have one that works.
272 if GL_GENERATE_EXECINFO_H
273 execinfo.h: execinfo.in.h $(top_builddir)/config.status
274 $(AM_V_GEN)rm -f $@-t $@ && \
275 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
276 cat $(srcdir)/execinfo.in.h; \
277 } > $@-t && \
278 mv $@-t $@
279 else
280 execinfo.h: $(top_builddir)/config.status
281 rm -f $@
282 endif
283 MOSTLYCLEANFILES += execinfo.h execinfo.h-t
284
285 EXTRA_DIST += execinfo.c execinfo.in.h
286
287 EXTRA_libgnu_a_SOURCES += execinfo.c
288
289 ## end gnulib module execinfo
290
291 ## begin gnulib module faccessat
292
293
294 EXTRA_DIST += at-func.c faccessat.c
295
296 EXTRA_libgnu_a_SOURCES += at-func.c faccessat.c
297
298 ## end gnulib module faccessat
299
300 ## begin gnulib module fdatasync
301
302
303 EXTRA_DIST += fdatasync.c
304
305 EXTRA_libgnu_a_SOURCES += fdatasync.c
306
307 ## end gnulib module fdatasync
308
309 ## begin gnulib module fdopendir
310
311
312 EXTRA_DIST += fdopendir.c
313
314 EXTRA_libgnu_a_SOURCES += fdopendir.c
315
316 ## end gnulib module fdopendir
317
318 ## begin gnulib module filemode
319
320 libgnu_a_SOURCES += filemode.c
321
322 EXTRA_DIST += filemode.h
323
324 ## end gnulib module filemode
325
326 ## begin gnulib module fpending
327
328
329 EXTRA_DIST += fpending.c fpending.h
330
331 EXTRA_libgnu_a_SOURCES += fpending.c
332
333 ## end gnulib module fpending
334
335 ## begin gnulib module fstatat
336
337
338 EXTRA_DIST += at-func.c fstatat.c
339
340 EXTRA_libgnu_a_SOURCES += at-func.c fstatat.c
341
342 ## end gnulib module fstatat
343
344 ## begin gnulib module fsync
345
346
347 EXTRA_DIST += fsync.c
348
349 EXTRA_libgnu_a_SOURCES += fsync.c
350
351 ## end gnulib module fsync
352
353 ## begin gnulib module getdtablesize
354
355 if gl_GNULIB_ENABLED_getdtablesize
356
357 endif
358 EXTRA_DIST += getdtablesize.c
359
360 EXTRA_libgnu_a_SOURCES += getdtablesize.c
361
362 ## end gnulib module getdtablesize
363
364 ## begin gnulib module getgroups
365
366 if gl_GNULIB_ENABLED_getgroups
367
368 endif
369 EXTRA_DIST += getgroups.c
370
371 EXTRA_libgnu_a_SOURCES += getgroups.c
372
373 ## end gnulib module getgroups
374
375 ## begin gnulib module getloadavg
376
377
378 EXTRA_DIST += getloadavg.c
379
380 EXTRA_libgnu_a_SOURCES += getloadavg.c
381
382 ## end gnulib module getloadavg
383
384 ## begin gnulib module getopt-posix
385
386 BUILT_SOURCES += $(GETOPT_H)
387
388 # We need the following in order to create <getopt.h> when the system
389 # doesn't have one that works with the given compiler.
390 getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
391 $(AM_V_GEN)rm -f $@-t $@ && \
392 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
393 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
394 -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
395 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
396 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
397 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
398 -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
399 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
400 < $(srcdir)/getopt.in.h; \
401 } > $@-t && \
402 mv -f $@-t $@
403 MOSTLYCLEANFILES += getopt.h getopt.h-t
404
405 EXTRA_DIST += getopt.c getopt.in.h getopt1.c getopt_int.h
406
407 EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c
408
409 ## end gnulib module getopt-posix
410
411 ## begin gnulib module gettext-h
412
413 if gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36
414 libgnu_a_SOURCES += gettext.h
415
416 endif
417 ## end gnulib module gettext-h
418
419 ## begin gnulib module gettime
420
421 libgnu_a_SOURCES += gettime.c
422
423 ## end gnulib module gettime
424
425 ## begin gnulib module gettimeofday
426
427
428 EXTRA_DIST += gettimeofday.c
429
430 EXTRA_libgnu_a_SOURCES += gettimeofday.c
431
432 ## end gnulib module gettimeofday
433
434 ## begin gnulib module group-member
435
436 if gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1
437
438 endif
439 EXTRA_DIST += group-member.c
440
441 EXTRA_libgnu_a_SOURCES += group-member.c
442
443 ## end gnulib module group-member
444
445 ## begin gnulib module intprops
446
447
448 EXTRA_DIST += intprops.h
449
450 ## end gnulib module intprops
451
452 ## begin gnulib module lstat
453
454
455 EXTRA_DIST += lstat.c
456
457 EXTRA_libgnu_a_SOURCES += lstat.c
458
459 ## end gnulib module lstat
460
461 ## begin gnulib module memrchr
462
463
464 EXTRA_DIST += memrchr.c
465
466 EXTRA_libgnu_a_SOURCES += memrchr.c
467
468 ## end gnulib module memrchr
469
470 ## begin gnulib module mktime
471
472
473 EXTRA_DIST += mktime-internal.h mktime.c
474
475 EXTRA_libgnu_a_SOURCES += mktime.c
476
477 ## end gnulib module mktime
478
479 ## begin gnulib module openat-h
480
481 if gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7
482
483 endif
484 EXTRA_DIST += openat.h
485
486 ## end gnulib module openat-h
487
488 ## begin gnulib module pathmax
489
490 if gl_GNULIB_ENABLED_pathmax
491
492 endif
493 EXTRA_DIST += pathmax.h
494
495 ## end gnulib module pathmax
496
497 ## begin gnulib module pselect
498
499
500 EXTRA_DIST += pselect.c
501
502 EXTRA_libgnu_a_SOURCES += pselect.c
503
504 ## end gnulib module pselect
505
506 ## begin gnulib module pthread_sigmask
507
508
509 EXTRA_DIST += pthread_sigmask.c
510
511 EXTRA_libgnu_a_SOURCES += pthread_sigmask.c
512
513 ## end gnulib module pthread_sigmask
514
515 ## begin gnulib module putenv
516
517
518 EXTRA_DIST += putenv.c
519
520 EXTRA_libgnu_a_SOURCES += putenv.c
521
522 ## end gnulib module putenv
523
524 ## begin gnulib module qacl
525
526 libgnu_a_SOURCES += acl-errno-valid.c file-has-acl.c qcopy-acl.c
527
528 EXTRA_DIST += acl-internal.h acl.h acl_entries.c
529
530 EXTRA_libgnu_a_SOURCES += acl_entries.c
531
532 ## end gnulib module qacl
533
534 ## begin gnulib module readlink
535
536
537 EXTRA_DIST += readlink.c
538
539 EXTRA_libgnu_a_SOURCES += readlink.c
540
541 ## end gnulib module readlink
542
543 ## begin gnulib module readlinkat
544
545
546 EXTRA_DIST += at-func.c readlinkat.c
547
548 EXTRA_libgnu_a_SOURCES += at-func.c readlinkat.c
549
550 ## end gnulib module readlinkat
551
552 ## begin gnulib module root-uid
553
554 if gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c
555
556 endif
557 EXTRA_DIST += root-uid.h
558
559 ## end gnulib module root-uid
560
561 ## begin gnulib module sig2str
562
563
564 EXTRA_DIST += sig2str.c sig2str.h
565
566 EXTRA_libgnu_a_SOURCES += sig2str.c
567
568 ## end gnulib module sig2str
569
570 ## begin gnulib module snippet/_Noreturn
571
572 # Because this Makefile snippet defines a variable used by other
573 # gnulib Makefile snippets, it must be present in all Makefile.am that
574 # need it. This is ensured by the applicability 'all' defined above.
575
576 _NORETURN_H=$(top_srcdir)/build-aux/snippet/_Noreturn.h
577
578 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/_Noreturn.h
579
580 ## end gnulib module snippet/_Noreturn
581
582 ## begin gnulib module snippet/arg-nonnull
583
584 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
585 # statements but through direct file reference. Therefore this snippet must be
586 # present in all Makefile.am that need it. This is ensured by the applicability
587 # 'all' defined above.
588
589 BUILT_SOURCES += arg-nonnull.h
590 # The arg-nonnull.h that gets inserted into generated .h files is the same as
591 # build-aux/snippet/arg-nonnull.h, except that it has the copyright header cut
592 # off.
593 arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h
594 $(AM_V_GEN)rm -f $@-t $@ && \
595 sed -n -e '/GL_ARG_NONNULL/,$$p' \
596 < $(top_srcdir)/build-aux/snippet/arg-nonnull.h \
597 > $@-t && \
598 mv $@-t $@
599 MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
600
601 ARG_NONNULL_H=arg-nonnull.h
602
603 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/arg-nonnull.h
604
605 ## end gnulib module snippet/arg-nonnull
606
607 ## begin gnulib module snippet/c++defs
608
609 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
610 # statements but through direct file reference. Therefore this snippet must be
611 # present in all Makefile.am that need it. This is ensured by the applicability
612 # 'all' defined above.
613
614 BUILT_SOURCES += c++defs.h
615 # The c++defs.h that gets inserted into generated .h files is the same as
616 # build-aux/snippet/c++defs.h, except that it has the copyright header cut off.
617 c++defs.h: $(top_srcdir)/build-aux/snippet/c++defs.h
618 $(AM_V_GEN)rm -f $@-t $@ && \
619 sed -n -e '/_GL_CXXDEFS/,$$p' \
620 < $(top_srcdir)/build-aux/snippet/c++defs.h \
621 > $@-t && \
622 mv $@-t $@
623 MOSTLYCLEANFILES += c++defs.h c++defs.h-t
624
625 CXXDEFS_H=c++defs.h
626
627 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/c++defs.h
628
629 ## end gnulib module snippet/c++defs
630
631 ## begin gnulib module snippet/warn-on-use
632
633 BUILT_SOURCES += warn-on-use.h
634 # The warn-on-use.h that gets inserted into generated .h files is the same as
635 # build-aux/snippet/warn-on-use.h, except that it has the copyright header cut
636 # off.
637 warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h
638 $(AM_V_GEN)rm -f $@-t $@ && \
639 sed -n -e '/^.ifndef/,$$p' \
640 < $(top_srcdir)/build-aux/snippet/warn-on-use.h \
641 > $@-t && \
642 mv $@-t $@
643 MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
644
645 WARN_ON_USE_H=warn-on-use.h
646
647 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/warn-on-use.h
648
649 ## end gnulib module snippet/warn-on-use
650
651 ## begin gnulib module stat
652
653 if gl_GNULIB_ENABLED_stat
654
655 endif
656 EXTRA_DIST += stat.c
657
658 EXTRA_libgnu_a_SOURCES += stat.c
659
660 ## end gnulib module stat
661
662 ## begin gnulib module stat-time
663
664 libgnu_a_SOURCES += stat-time.c
665
666 EXTRA_DIST += stat-time.h
667
668 ## end gnulib module stat-time
669
670 ## begin gnulib module stdalign
671
672 BUILT_SOURCES += $(STDALIGN_H)
673
674 # We need the following in order to create <stdalign.h> when the system
675 # doesn't have one that works.
676 if GL_GENERATE_STDALIGN_H
677 stdalign.h: stdalign.in.h $(top_builddir)/config.status
678 $(AM_V_GEN)rm -f $@-t $@ && \
679 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
680 cat $(srcdir)/stdalign.in.h; \
681 } > $@-t && \
682 mv $@-t $@
683 else
684 stdalign.h: $(top_builddir)/config.status
685 rm -f $@
686 endif
687 MOSTLYCLEANFILES += stdalign.h stdalign.h-t
688
689 EXTRA_DIST += stdalign.in.h
690
691 ## end gnulib module stdalign
692
693 ## begin gnulib module stddef
694
695 BUILT_SOURCES += $(STDDEF_H)
696
697 # We need the following in order to create <stddef.h> when the system
698 # doesn't have one that works with the given compiler.
699 if GL_GENERATE_STDDEF_H
700 stddef.h: stddef.in.h $(top_builddir)/config.status
701 $(AM_V_GEN)rm -f $@-t $@ && \
702 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
703 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
704 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
705 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
706 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
707 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
708 -e 's|@''HAVE_MAX_ALIGN_T''@|$(HAVE_MAX_ALIGN_T)|g' \
709 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
710 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
711 < $(srcdir)/stddef.in.h; \
712 } > $@-t && \
713 mv $@-t $@
714 else
715 stddef.h: $(top_builddir)/config.status
716 rm -f $@
717 endif
718 MOSTLYCLEANFILES += stddef.h stddef.h-t
719
720 EXTRA_DIST += stddef.in.h
721
722 ## end gnulib module stddef
723
724 ## begin gnulib module stdint
725
726 BUILT_SOURCES += $(STDINT_H)
727
728 # We need the following in order to create <stdint.h> when the system
729 # doesn't have one that works with the given compiler.
730 if GL_GENERATE_STDINT_H
731 stdint.h: stdint.in.h $(top_builddir)/config.status
732 $(AM_V_GEN)rm -f $@-t $@ && \
733 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
734 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
735 -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
736 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
737 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
738 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
739 -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
740 -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
741 -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
742 -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
743 -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
744 -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \
745 -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
746 -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
747 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
748 -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
749 -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
750 -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
751 -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
752 -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
753 -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
754 -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
755 -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
756 -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
757 -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
758 -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
759 -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
760 -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
761 < $(srcdir)/stdint.in.h; \
762 } > $@-t && \
763 mv $@-t $@
764 else
765 stdint.h: $(top_builddir)/config.status
766 rm -f $@
767 endif
768 MOSTLYCLEANFILES += stdint.h stdint.h-t
769
770 EXTRA_DIST += stdint.in.h
771
772 ## end gnulib module stdint
773
774 ## begin gnulib module stpcpy
775
776
777 EXTRA_DIST += stpcpy.c
778
779 EXTRA_libgnu_a_SOURCES += stpcpy.c
780
781 ## end gnulib module stpcpy
782
783 ## begin gnulib module strftime
784
785 libgnu_a_SOURCES += strftime.c
786
787 EXTRA_DIST += strftime.h
788
789 ## end gnulib module strftime
790
791 ## begin gnulib module string
792
793 BUILT_SOURCES += string.h
794
795 # We need the following in order to create <string.h> when the system
796 # doesn't have one that works with the given compiler.
797 string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
798 $(AM_V_GEN)rm -f $@-t $@ && \
799 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
800 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
801 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
802 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
803 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
804 -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \
805 -e 's/@''GNULIB_FFSL''@/$(GNULIB_FFSL)/g' \
806 -e 's/@''GNULIB_FFSLL''@/$(GNULIB_FFSLL)/g' \
807 -e 's/@''GNULIB_MBSLEN''@/$(GNULIB_MBSLEN)/g' \
808 -e 's/@''GNULIB_MBSNLEN''@/$(GNULIB_MBSNLEN)/g' \
809 -e 's/@''GNULIB_MBSCHR''@/$(GNULIB_MBSCHR)/g' \
810 -e 's/@''GNULIB_MBSRCHR''@/$(GNULIB_MBSRCHR)/g' \
811 -e 's/@''GNULIB_MBSSTR''@/$(GNULIB_MBSSTR)/g' \
812 -e 's/@''GNULIB_MBSCASECMP''@/$(GNULIB_MBSCASECMP)/g' \
813 -e 's/@''GNULIB_MBSNCASECMP''@/$(GNULIB_MBSNCASECMP)/g' \
814 -e 's/@''GNULIB_MBSPCASECMP''@/$(GNULIB_MBSPCASECMP)/g' \
815 -e 's/@''GNULIB_MBSCASESTR''@/$(GNULIB_MBSCASESTR)/g' \
816 -e 's/@''GNULIB_MBSCSPN''@/$(GNULIB_MBSCSPN)/g' \
817 -e 's/@''GNULIB_MBSPBRK''@/$(GNULIB_MBSPBRK)/g' \
818 -e 's/@''GNULIB_MBSSPN''@/$(GNULIB_MBSSPN)/g' \
819 -e 's/@''GNULIB_MBSSEP''@/$(GNULIB_MBSSEP)/g' \
820 -e 's/@''GNULIB_MBSTOK_R''@/$(GNULIB_MBSTOK_R)/g' \
821 -e 's/@''GNULIB_MEMCHR''@/$(GNULIB_MEMCHR)/g' \
822 -e 's/@''GNULIB_MEMMEM''@/$(GNULIB_MEMMEM)/g' \
823 -e 's/@''GNULIB_MEMPCPY''@/$(GNULIB_MEMPCPY)/g' \
824 -e 's/@''GNULIB_MEMRCHR''@/$(GNULIB_MEMRCHR)/g' \
825 -e 's/@''GNULIB_RAWMEMCHR''@/$(GNULIB_RAWMEMCHR)/g' \
826 -e 's/@''GNULIB_STPCPY''@/$(GNULIB_STPCPY)/g' \
827 -e 's/@''GNULIB_STPNCPY''@/$(GNULIB_STPNCPY)/g' \
828 -e 's/@''GNULIB_STRCHRNUL''@/$(GNULIB_STRCHRNUL)/g' \
829 -e 's/@''GNULIB_STRDUP''@/$(GNULIB_STRDUP)/g' \
830 -e 's/@''GNULIB_STRNCAT''@/$(GNULIB_STRNCAT)/g' \
831 -e 's/@''GNULIB_STRNDUP''@/$(GNULIB_STRNDUP)/g' \
832 -e 's/@''GNULIB_STRNLEN''@/$(GNULIB_STRNLEN)/g' \
833 -e 's/@''GNULIB_STRPBRK''@/$(GNULIB_STRPBRK)/g' \
834 -e 's/@''GNULIB_STRSEP''@/$(GNULIB_STRSEP)/g' \
835 -e 's/@''GNULIB_STRSTR''@/$(GNULIB_STRSTR)/g' \
836 -e 's/@''GNULIB_STRCASESTR''@/$(GNULIB_STRCASESTR)/g' \
837 -e 's/@''GNULIB_STRTOK_R''@/$(GNULIB_STRTOK_R)/g' \
838 -e 's/@''GNULIB_STRERROR''@/$(GNULIB_STRERROR)/g' \
839 -e 's/@''GNULIB_STRERROR_R''@/$(GNULIB_STRERROR_R)/g' \
840 -e 's/@''GNULIB_STRSIGNAL''@/$(GNULIB_STRSIGNAL)/g' \
841 -e 's/@''GNULIB_STRVERSCMP''@/$(GNULIB_STRVERSCMP)/g' \
842 < $(srcdir)/string.in.h | \
843 sed -e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \
844 -e 's|@''HAVE_FFSLL''@|$(HAVE_FFSLL)|g' \
845 -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \
846 -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \
847 -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
848 -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
849 -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
850 -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \
851 -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
852 -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
853 -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
854 -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
855 -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
856 -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
857 -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
858 -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
859 -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
860 -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
861 -e 's|@''HAVE_DECL_STRERROR_R''@|$(HAVE_DECL_STRERROR_R)|g' \
862 -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
863 -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
864 -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
865 -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
866 -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
867 -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
868 -e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \
869 -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
870 -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
871 -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
872 -e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \
873 -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \
874 -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \
875 -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \
876 -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
877 -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
878 -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
879 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
880 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
881 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
882 < $(srcdir)/string.in.h; \
883 } > $@-t && \
884 mv $@-t $@
885 MOSTLYCLEANFILES += string.h string.h-t
886
887 EXTRA_DIST += string.in.h
888
889 ## end gnulib module string
890
891 ## begin gnulib module strtoimax
892
893
894 EXTRA_DIST += strtoimax.c
895
896 EXTRA_libgnu_a_SOURCES += strtoimax.c
897
898 ## end gnulib module strtoimax
899
900 ## begin gnulib module strtoll
901
902 if gl_GNULIB_ENABLED_strtoll
903
904 endif
905 EXTRA_DIST += strtol.c strtoll.c
906
907 EXTRA_libgnu_a_SOURCES += strtol.c strtoll.c
908
909 ## end gnulib module strtoll
910
911 ## begin gnulib module strtoull
912
913 if gl_GNULIB_ENABLED_strtoull
914
915 endif
916 EXTRA_DIST += strtol.c strtoul.c strtoull.c
917
918 EXTRA_libgnu_a_SOURCES += strtol.c strtoul.c strtoull.c
919
920 ## end gnulib module strtoull
921
922 ## begin gnulib module strtoumax
923
924
925 EXTRA_DIST += strtoimax.c strtoumax.c
926
927 EXTRA_libgnu_a_SOURCES += strtoimax.c strtoumax.c
928
929 ## end gnulib module strtoumax
930
931 ## begin gnulib module symlink
932
933
934 EXTRA_DIST += symlink.c
935
936 EXTRA_libgnu_a_SOURCES += symlink.c
937
938 ## end gnulib module symlink
939
940 ## begin gnulib module time_r
941
942
943 EXTRA_DIST += time_r.c
944
945 EXTRA_libgnu_a_SOURCES += time_r.c
946
947 ## end gnulib module time_r
948
949 ## begin gnulib module timespec
950
951 libgnu_a_SOURCES += timespec.c
952
953 EXTRA_DIST += timespec.h
954
955 ## end gnulib module timespec
956
957 ## begin gnulib module timespec-add
958
959 libgnu_a_SOURCES += timespec-add.c
960
961 ## end gnulib module timespec-add
962
963 ## begin gnulib module timespec-sub
964
965 libgnu_a_SOURCES += timespec-sub.c
966
967 ## end gnulib module timespec-sub
968
969 ## begin gnulib module u64
970
971 libgnu_a_SOURCES += u64.c
972
973 EXTRA_DIST += u64.h
974
975 ## end gnulib module u64
976
977 ## begin gnulib module unsetenv
978
979
980 EXTRA_DIST += unsetenv.c
981
982 EXTRA_libgnu_a_SOURCES += unsetenv.c
983
984 ## end gnulib module unsetenv
985
986 ## begin gnulib module update-copyright
987
988
989 EXTRA_DIST += $(top_srcdir)/build-aux/update-copyright
990
991 ## end gnulib module update-copyright
992
993 ## begin gnulib module utimens
994
995 libgnu_a_SOURCES += utimens.c
996
997 EXTRA_DIST += utimens.h
998
999 ## end gnulib module utimens
1000
1001 ## begin gnulib module verify
1002
1003 EXTRA_DIST += verify.h
1004
1005 ## end gnulib module verify
1006
1007 ## begin gnulib module vla
1008
1009
1010 EXTRA_DIST += vla.h
1011
1012 ## end gnulib module vla
1013
1014 ## begin gnulib module xalloc-oversized
1015
1016 if gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec
1017
1018 endif
1019 EXTRA_DIST += xalloc-oversized.h
1020
1021 ## end gnulib module xalloc-oversized
1022
1023
1024 mostlyclean-local: mostlyclean-generic
1025 @for dir in '' $(MOSTLYCLEANDIRS); do \
1026 if test -n "$$dir" && test -d $$dir; then \
1027 echo "rmdir $$dir"; rmdir $$dir; \
1028 fi; \
1029 done; \
1030 :