libarchive-static 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. data/ext/Makefile +6 -0
  2. data/ext/extconf.rb +61 -0
  3. data/ext/libarchive-0.1.1/COPYING.libarchive +60 -0
  4. data/ext/libarchive-0.1.1/LICENSE.libbzip2 +42 -0
  5. data/ext/libarchive-0.1.1/README.txt +143 -0
  6. data/ext/libarchive-0.1.1/ext/Makefile.in +0 -0
  7. data/ext/libarchive-0.1.1/ext/archive_read_support_compression.c +31 -0
  8. data/ext/libarchive-0.1.1/ext/archive_read_support_compression.h +6 -0
  9. data/ext/libarchive-0.1.1/ext/archive_read_support_format.c +32 -0
  10. data/ext/libarchive-0.1.1/ext/archive_read_support_format.h +6 -0
  11. data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.c +29 -0
  12. data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.h +6 -0
  13. data/ext/libarchive-0.1.1/ext/archive_write_set_compression.c +32 -0
  14. data/ext/libarchive-0.1.1/ext/archive_write_set_compression.h +6 -0
  15. data/ext/libarchive-0.1.1/ext/config.h.in +22 -0
  16. data/ext/libarchive-0.1.1/ext/configure +3904 -0
  17. data/ext/libarchive-0.1.1/ext/configure.in +11 -0
  18. data/ext/libarchive-0.1.1/ext/depend +19 -0
  19. data/ext/libarchive-0.1.1/ext/extconf.rb +6 -0
  20. data/ext/libarchive-0.1.1/ext/install-sh +250 -0
  21. data/ext/libarchive-0.1.1/ext/libarchive.c +89 -0
  22. data/ext/libarchive-0.1.1/ext/libarchive_archive.c +84 -0
  23. data/ext/libarchive-0.1.1/ext/libarchive_entry.c +1015 -0
  24. data/ext/libarchive-0.1.1/ext/libarchive_internal.h +155 -0
  25. data/ext/libarchive-0.1.1/ext/libarchive_reader.c +328 -0
  26. data/ext/libarchive-0.1.1/ext/libarchive_win32.h +52 -0
  27. data/ext/libarchive-0.1.1/ext/libarchive_writer.c +246 -0
  28. data/ext/libarchive-0.1.1/libarchive.c +1762 -0
  29. data/ext/libarchive-2.8.4/Makefile.in +7076 -0
  30. data/ext/libarchive-2.8.4/build/autoconf/check_stdcall_func.m4 +51 -0
  31. data/ext/libarchive-2.8.4/build/autoconf/compile +143 -0
  32. data/ext/libarchive-2.8.4/build/autoconf/config.guess +1502 -0
  33. data/ext/libarchive-2.8.4/build/autoconf/config.sub +1708 -0
  34. data/ext/libarchive-2.8.4/build/autoconf/depcomp +630 -0
  35. data/ext/libarchive-2.8.4/build/autoconf/install-sh +291 -0
  36. data/ext/libarchive-2.8.4/build/autoconf/la_uid_t.m4 +20 -0
  37. data/ext/libarchive-2.8.4/build/autoconf/ltmain.sh +8406 -0
  38. data/ext/libarchive-2.8.4/build/autoconf/missing +376 -0
  39. data/ext/libarchive-2.8.4/build/pkgconfig/libarchive.pc.in +10 -0
  40. data/ext/libarchive-2.8.4/config.h.in +772 -0
  41. data/ext/libarchive-2.8.4/configure +17916 -0
  42. data/ext/libarchive-2.8.4/libarchive/archive.h +741 -0
  43. data/ext/libarchive-2.8.4/libarchive/archive_check_magic.c +134 -0
  44. data/ext/libarchive-2.8.4/libarchive/archive_crc32.h +66 -0
  45. data/ext/libarchive-2.8.4/libarchive/archive_endian.h +162 -0
  46. data/ext/libarchive-2.8.4/libarchive/archive_entry.c +2202 -0
  47. data/ext/libarchive-2.8.4/libarchive/archive_entry.h +524 -0
  48. data/ext/libarchive-2.8.4/libarchive/archive_entry_copy_bhfi.c +74 -0
  49. data/ext/libarchive-2.8.4/libarchive/archive_entry_copy_stat.c +77 -0
  50. data/ext/libarchive-2.8.4/libarchive/archive_entry_link_resolver.c +405 -0
  51. data/ext/libarchive-2.8.4/libarchive/archive_entry_private.h +184 -0
  52. data/ext/libarchive-2.8.4/libarchive/archive_entry_stat.c +118 -0
  53. data/ext/libarchive-2.8.4/libarchive/archive_entry_strmode.c +87 -0
  54. data/ext/libarchive-2.8.4/libarchive/archive_entry_xattr.c +158 -0
  55. data/ext/libarchive-2.8.4/libarchive/archive_hash.h +281 -0
  56. data/ext/libarchive-2.8.4/libarchive/archive_platform.h +165 -0
  57. data/ext/libarchive-2.8.4/libarchive/archive_private.h +124 -0
  58. data/ext/libarchive-2.8.4/libarchive/archive_read.c +1249 -0
  59. data/ext/libarchive-2.8.4/libarchive/archive_read_data_into_fd.c +93 -0
  60. data/ext/libarchive-2.8.4/libarchive/archive_read_disk.c +198 -0
  61. data/ext/libarchive-2.8.4/libarchive/archive_read_disk_entry_from_file.c +570 -0
  62. data/ext/libarchive-2.8.4/libarchive/archive_read_disk_private.h +62 -0
  63. data/ext/libarchive-2.8.4/libarchive/archive_read_disk_set_standard_lookup.c +303 -0
  64. data/ext/libarchive-2.8.4/libarchive/archive_read_extract.c +182 -0
  65. data/ext/libarchive-2.8.4/libarchive/archive_read_open_fd.c +190 -0
  66. data/ext/libarchive-2.8.4/libarchive/archive_read_open_file.c +165 -0
  67. data/ext/libarchive-2.8.4/libarchive/archive_read_open_filename.c +272 -0
  68. data/ext/libarchive-2.8.4/libarchive/archive_read_open_memory.c +156 -0
  69. data/ext/libarchive-2.8.4/libarchive/archive_read_private.h +199 -0
  70. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_all.c +60 -0
  71. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_bzip2.c +353 -0
  72. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_compress.c +444 -0
  73. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_gzip.c +465 -0
  74. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_none.c +40 -0
  75. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_program.c +459 -0
  76. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_rpm.c +287 -0
  77. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_uu.c +627 -0
  78. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_xz.c +708 -0
  79. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_all.c +43 -0
  80. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_ar.c +584 -0
  81. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_cpio.c +777 -0
  82. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_empty.c +93 -0
  83. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_iso9660.c +2830 -0
  84. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_mtree.c +1304 -0
  85. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_raw.c +185 -0
  86. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_tar.c +2418 -0
  87. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_xar.c +3151 -0
  88. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_zip.c +903 -0
  89. data/ext/libarchive-2.8.4/libarchive/archive_string.c +453 -0
  90. data/ext/libarchive-2.8.4/libarchive/archive_string.h +148 -0
  91. data/ext/libarchive-2.8.4/libarchive/archive_string_sprintf.c +164 -0
  92. data/ext/libarchive-2.8.4/libarchive/archive_util.c +391 -0
  93. data/ext/libarchive-2.8.4/libarchive/archive_virtual.c +94 -0
  94. data/ext/libarchive-2.8.4/libarchive/archive_windows.c +1236 -0
  95. data/ext/libarchive-2.8.4/libarchive/archive_windows.h +347 -0
  96. data/ext/libarchive-2.8.4/libarchive/archive_write.c +466 -0
  97. data/ext/libarchive-2.8.4/libarchive/archive_write_disk.c +2628 -0
  98. data/ext/libarchive-2.8.4/libarchive/archive_write_disk_private.h +38 -0
  99. data/ext/libarchive-2.8.4/libarchive/archive_write_disk_set_standard_lookup.c +262 -0
  100. data/ext/libarchive-2.8.4/libarchive/archive_write_open_fd.c +141 -0
  101. data/ext/libarchive-2.8.4/libarchive/archive_write_open_file.c +105 -0
  102. data/ext/libarchive-2.8.4/libarchive/archive_write_open_filename.c +162 -0
  103. data/ext/libarchive-2.8.4/libarchive/archive_write_open_memory.c +126 -0
  104. data/ext/libarchive-2.8.4/libarchive/archive_write_private.h +122 -0
  105. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_bzip2.c +408 -0
  106. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_compress.c +492 -0
  107. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_gzip.c +477 -0
  108. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_none.c +257 -0
  109. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_program.c +347 -0
  110. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_xz.c +438 -0
  111. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format.c +72 -0
  112. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_ar.c +550 -0
  113. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_by_name.c +76 -0
  114. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio.c +344 -0
  115. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio_newc.c +295 -0
  116. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_mtree.c +1050 -0
  117. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_pax.c +1386 -0
  118. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_shar.c +626 -0
  119. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_ustar.c +587 -0
  120. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_zip.c +667 -0
  121. data/ext/libarchive-2.8.4/libarchive/config_freebsd.h +154 -0
  122. data/ext/libarchive-2.8.4/libarchive/filter_fork.c +161 -0
  123. data/ext/libarchive-2.8.4/libarchive/filter_fork.h +41 -0
  124. data/ext/libarchive-2.8.4/libarchive/filter_fork_windows.c +113 -0
  125. data/ext/libarchive-static-makefile +80 -0
  126. data/ext/libarchive-static-wrapper-makefile +22 -0
  127. data/ext/zlib-1.2.5/Makefile.in +257 -0
  128. data/ext/zlib-1.2.5/adler32.c +169 -0
  129. data/ext/zlib-1.2.5/compress.c +80 -0
  130. data/ext/zlib-1.2.5/configure +596 -0
  131. data/ext/zlib-1.2.5/crc32.c +442 -0
  132. data/ext/zlib-1.2.5/crc32.h +441 -0
  133. data/ext/zlib-1.2.5/deflate.c +1834 -0
  134. data/ext/zlib-1.2.5/deflate.h +342 -0
  135. data/ext/zlib-1.2.5/example.c +565 -0
  136. data/ext/zlib-1.2.5/gzclose.c +25 -0
  137. data/ext/zlib-1.2.5/gzguts.h +132 -0
  138. data/ext/zlib-1.2.5/gzlib.c +537 -0
  139. data/ext/zlib-1.2.5/gzread.c +653 -0
  140. data/ext/zlib-1.2.5/gzwrite.c +531 -0
  141. data/ext/zlib-1.2.5/infback.c +632 -0
  142. data/ext/zlib-1.2.5/inffast.c +340 -0
  143. data/ext/zlib-1.2.5/inffast.h +11 -0
  144. data/ext/zlib-1.2.5/inffixed.h +94 -0
  145. data/ext/zlib-1.2.5/inflate.c +1480 -0
  146. data/ext/zlib-1.2.5/inflate.h +122 -0
  147. data/ext/zlib-1.2.5/inftrees.c +330 -0
  148. data/ext/zlib-1.2.5/inftrees.h +62 -0
  149. data/ext/zlib-1.2.5/minigzip.c +440 -0
  150. data/ext/zlib-1.2.5/trees.c +1244 -0
  151. data/ext/zlib-1.2.5/trees.h +128 -0
  152. data/ext/zlib-1.2.5/uncompr.c +59 -0
  153. data/ext/zlib-1.2.5/zconf.h +428 -0
  154. data/ext/zlib-1.2.5/zlib.h +1613 -0
  155. data/ext/zlib-1.2.5/zutil.c +318 -0
  156. data/ext/zlib-1.2.5/zutil.h +274 -0
  157. metadata +211 -0
@@ -0,0 +1,291 @@
1
+ #!/bin/sh
2
+ #
3
+ # $NetBSD: install-sh.in,v 1.4 2007/07/12 18:32:50 jlam Exp $
4
+ # This script now also installs multiple files, but might choke on installing
5
+ # multiple files with spaces in the file names.
6
+ #
7
+ # install - install a program, script, or datafile
8
+ # This comes from X11R5 (mit/util/scripts/install.sh).
9
+ #
10
+ # Copyright 1991 by the Massachusetts Institute of Technology
11
+ #
12
+ # Permission to use, copy, modify, distribute, and sell this software and its
13
+ # documentation for any purpose is hereby granted without fee, provided that
14
+ # the above copyright notice appear in all copies and that both that
15
+ # copyright notice and this permission notice appear in supporting
16
+ # documentation, and that the name of M.I.T. not be used in advertising or
17
+ # publicity pertaining to distribution of the software without specific,
18
+ # written prior permission. M.I.T. makes no representations about the
19
+ # suitability of this software for any purpose. It is provided "as is"
20
+ # without express or implied warranty.
21
+ #
22
+ # Calling this script install-sh is preferred over install.sh, to prevent
23
+ # `make' implicit rules from creating a file called install from it
24
+ # when there is no Makefile.
25
+ #
26
+ # This script is compatible with the BSD install script, but was written
27
+ # from scratch.
28
+
29
+ # set DOITPROG to echo to test this script
30
+
31
+ # Don't use :- since 4.3BSD and earlier shells don't like it.
32
+ doit="${DOITPROG-}"
33
+
34
+
35
+ # put in absolute paths if you don't have them in your path; or use env. vars.
36
+
37
+ awkprog="${AWKPROG-awk}"
38
+ mvprog="${MVPROG-mv}"
39
+ cpprog="${CPPROG-cp}"
40
+ chmodprog="${CHMODPROG-chmod}"
41
+ chownprog="${CHOWNPROG-chown}"
42
+ chgrpprog="${CHGRPPROG-chgrp}"
43
+ stripprog="${STRIPPROG-strip}"
44
+ rmprog="${RMPROG-rm}"
45
+ mkdirprog="${MKDIRPROG-mkdir}"
46
+
47
+ instcmd="$mvprog"
48
+ pathcompchmodcmd="$chmodprog 755"
49
+ chmodcmd="$chmodprog 755"
50
+ chowncmd=""
51
+ chgrpcmd=""
52
+ stripcmd=""
53
+ stripflags=""
54
+ rmcmd="$rmprog -f"
55
+ mvcmd="$mvprog"
56
+ src=""
57
+ msrc=""
58
+ dst=""
59
+ dir_arg=""
60
+ suffix=""
61
+ suffixfmt=""
62
+
63
+ while [ x"$1" != x ]; do
64
+ case $1 in
65
+ -b) suffix=".old"
66
+ shift
67
+ continue;;
68
+
69
+ -B) suffixfmt="$2"
70
+ shift
71
+ shift
72
+ continue;;
73
+
74
+ -c) instcmd="$cpprog"
75
+ shift
76
+ continue;;
77
+
78
+ -d) dir_arg=true
79
+ shift
80
+ continue;;
81
+
82
+ -m) chmodcmd="$chmodprog $2"
83
+ shift
84
+ shift
85
+ continue;;
86
+
87
+ -o) chowncmd="$chownprog $2"
88
+ shift
89
+ shift
90
+ continue;;
91
+
92
+ -g) chgrpcmd="$chgrpprog $2"
93
+ shift
94
+ shift
95
+ continue;;
96
+
97
+ -s) stripcmd="$stripprog"
98
+ shift
99
+ continue;;
100
+
101
+ -S) stripcmd="$stripprog"
102
+ stripflags="-S $2 $stripflags"
103
+ shift
104
+ shift
105
+ continue;;
106
+
107
+ *) if [ x"$msrc" = x ]
108
+ then
109
+ msrc="$dst"
110
+ else
111
+ msrc="$msrc $dst"
112
+ fi
113
+ src="$dst"
114
+ dst="$1"
115
+ shift
116
+ continue;;
117
+ esac
118
+ done
119
+
120
+ if [ x"$dir_arg" = x ]
121
+ then
122
+ dstisfile=""
123
+ if [ ! -d "$dst" ]
124
+ then
125
+ if [ x"$msrc" = x"$src" ]
126
+ then
127
+ dstisfile=true
128
+ else
129
+ echo "install: destination is not a directory"
130
+ exit 1
131
+ fi
132
+ fi
133
+ else
134
+ msrc="$msrc $dst"
135
+ fi
136
+
137
+ if [ x"$msrc" = x ]
138
+ then
139
+ echo "install: no destination specified"
140
+ exit 1
141
+ fi
142
+
143
+ for srcarg in $msrc; do
144
+
145
+ if [ x"$dir_arg" != x ]; then
146
+
147
+ dstarg="$srcarg"
148
+ else
149
+ dstarg="$dst"
150
+
151
+ # Waiting for this to be detected by the "$instcmd $srcarg $dsttmp" command
152
+ # might cause directories to be created, which would be especially bad
153
+ # if $src (and thus $dsttmp) contains '*'.
154
+
155
+ if [ -f "$srcarg" ]
156
+ then
157
+ doinst="$instcmd"
158
+ elif [ -d "$srcarg" ]
159
+ then
160
+ echo "install: $srcarg: not a regular file"
161
+ exit 1
162
+ elif [ "$srcarg" = "/dev/null" ]
163
+ then
164
+ doinst="$cpprog"
165
+ else
166
+ echo "install: $srcarg does not exist"
167
+ exit 1
168
+ fi
169
+
170
+ # If destination is a directory, append the input filename; if your system
171
+ # does not like double slashes in filenames, you may need to add some logic
172
+
173
+ if [ -d "$dstarg" ]
174
+ then
175
+ dstarg="$dstarg"/`basename "$srcarg"`
176
+ fi
177
+ fi
178
+
179
+ ## this sed command emulates the dirname command
180
+ dstdir=`echo "$dstarg" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
181
+
182
+ # Make sure that the destination directory exists.
183
+ # this part is taken from Noah Friedman's mkinstalldirs script
184
+
185
+ # Skip lots of stat calls in the usual case.
186
+ if [ ! -d "$dstdir" ]; then
187
+ defaultIFS='
188
+ '
189
+ IFS="${IFS-${defaultIFS}}"
190
+
191
+ oIFS="${IFS}"
192
+ # Some sh's can't handle IFS=/ for some reason.
193
+ IFS='%'
194
+ set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
195
+ IFS="${oIFS}"
196
+
197
+ pathcomp=''
198
+
199
+ while [ $# -ne 0 ] ; do
200
+ pathcomp="${pathcomp}${1}"
201
+ shift
202
+
203
+ if [ ! -d "${pathcomp}" ] ;
204
+ then
205
+ $doit $mkdirprog "${pathcomp}"
206
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd "${pathcomp}"; else true ; fi &&
207
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "${pathcomp}"; else true ; fi &&
208
+ if [ x"$pathcompchmodcmd" != x ]; then $doit $pathcompchmodcmd "${pathcomp}"; else true ; fi
209
+
210
+ else
211
+ true
212
+ fi
213
+
214
+ pathcomp="${pathcomp}/"
215
+ done
216
+ fi
217
+
218
+ if [ x"$dir_arg" != x ]
219
+ then
220
+ if [ -d "$dstarg" ]; then
221
+ true
222
+ else
223
+ $doit $mkdirprog "$dstarg" &&
224
+
225
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dstarg"; else true ; fi &&
226
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dstarg"; else true ; fi &&
227
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dstarg"; else true ; fi
228
+ fi
229
+ else
230
+
231
+ if [ x"$dstisfile" = x ]
232
+ then
233
+ file=$srcarg
234
+ else
235
+ file=$dst
236
+ fi
237
+
238
+ dstfile=`basename "$file"`
239
+ dstfinal="$dstdir/$dstfile"
240
+
241
+ # Make a temp file name in the proper directory.
242
+
243
+ dsttmp=$dstdir/#inst.$$#
244
+
245
+ # Make a backup file name in the proper directory.
246
+ case x$suffixfmt in
247
+ *%*) suffix=`echo x |
248
+ $awkprog -v bname="$dstfinal" -v fmt="$suffixfmt" '
249
+ { cnt = 0;
250
+ do {
251
+ sfx = sprintf(fmt, cnt++);
252
+ name = bname sfx;
253
+ } while (system("test -f " name) == 0);
254
+ print sfx; }' -`;;
255
+ x) ;;
256
+ *) suffix="$suffixfmt";;
257
+ esac
258
+ dstbackup="$dstfinal$suffix"
259
+
260
+ # Move or copy the file name to the temp name
261
+
262
+ $doit $doinst $srcarg "$dsttmp" &&
263
+
264
+ trap "rm -f ${dsttmp}" 0 &&
265
+
266
+ # and set any options; do chmod last to preserve setuid bits
267
+
268
+ # If any of these fail, we abort the whole thing. If we want to
269
+ # ignore errors from any of these, just make sure not to ignore
270
+ # errors from the above "$doit $instcmd $src $dsttmp" command.
271
+
272
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else true;fi &&
273
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else true;fi &&
274
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $stripflags "$dsttmp"; else true;fi &&
275
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else true;fi &&
276
+
277
+ # Now rename the file to the real destination.
278
+
279
+ if [ x"$suffix" != x ] && [ -f "$dstfinal" ]
280
+ then
281
+ $doit $mvcmd "$dstfinal" "$dstbackup"
282
+ else
283
+ $doit $rmcmd -f "$dstfinal"
284
+ fi &&
285
+ $doit $mvcmd "$dsttmp" "$dstfinal"
286
+ fi
287
+
288
+ done &&
289
+
290
+
291
+ exit 0
@@ -0,0 +1,20 @@
1
+ # la_TYPE_UID_T
2
+ # -------------
3
+ AC_DEFUN([la_TYPE_UID_T],
4
+ [AC_REQUIRE([AC_CANONICAL_HOST])dnl
5
+ AC_CACHE_CHECK(for uid_t in sys/types.h, la_cv_type_uid_t,
6
+ [AC_EGREP_HEADER(uid_t, sys/types.h,
7
+ la_cv_type_uid_t=yes, la_cv_type_uid_t=no)])
8
+ if test $la_cv_type_uid_t = no; then
9
+ case $host in
10
+ *mingw*) def_uid_t=short ;;
11
+ *) def_uid_t=int ;;
12
+ esac
13
+ AC_DEFINE_UNQUOTED(uid_t, [$def_uid_t],
14
+ [Define to match typeof st_uid field of struct stat if <sys/types.h> doesn't define.])
15
+ AC_DEFINE_UNQUOTED(gid_t, [$def_uid_t],
16
+ [Define to match typeof st_gid field of struct stat if <sys/types.h> doesn't define.])
17
+ fi
18
+ ])
19
+ AU_ALIAS([AC_TYPE_UID_T], [la_TYPE_UID_T])
20
+