Codebase list dosfstools / 1af2468
Import upstream version 4.2+git20210612.1.f414e32 Debian Janitor 2 years ago
17 changed file(s) with 1909 addition(s) and 577 deletion(s). Raw diff Collapse all Expand all
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
225225 DIST_ARCHIVES = $(distdir).tar.gz
226226 GZIP_ENV = --best
227227 DIST_TARGETS = dist-gzip
228 # Exists only to be overridden by the user if desired.
229 AM_DISTCHECK_DVI_TARGET = dvi
228230 distuninstallcheck_listfiles = find . -type f -print
229231 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
230232 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
590592 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
591593 $(am__post_remove_distdir)
592594
595 dist-zstd: distdir
596 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
597 $(am__post_remove_distdir)
598
593599 dist-tarZ: distdir
594600 @echo WARNING: "Support for distribution archives compressed with" \
595601 "legacy program 'compress' is deprecated." >&2
632638 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
633639 *.zip*) \
634640 unzip $(distdir).zip ;;\
641 *.tar.zst*) \
642 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
635643 esac
636644 chmod -R a-w $(distdir)
637645 chmod u+w $(distdir)
647655 $(DISTCHECK_CONFIGURE_FLAGS) \
648656 --srcdir=../.. --prefix="$$dc_install_base" \
649657 && $(MAKE) $(AM_MAKEFLAGS) \
650 && $(MAKE) $(AM_MAKEFLAGS) dvi \
658 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
651659 && $(MAKE) $(AM_MAKEFLAGS) check \
652660 && $(MAKE) $(AM_MAKEFLAGS) install \
653661 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
811819 am--refresh check check-am clean clean-cscope clean-generic \
812820 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
813821 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
814 distcheck distclean distclean-generic distclean-tags \
822 dist-zstd distcheck distclean distclean-generic distclean-tags \
815823 distcleancheck distdir distuninstallcheck dvi dvi-am html \
816824 html-am info info-am install install-am install-data \
817825 install-data-am install-dist_docDATA install-dvi \
0 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.3 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
22 # iconv.m4 serial 19 (gettext-0.18.2)
23 dnl Copyright (C) 2000-2002, 2007-2014, 2016 Free Software Foundation, Inc.
22 # host-cpu-c-abi.m4 serial 13
23 dnl Copyright (C) 2002-2020 Free Software Foundation, Inc.
24 dnl This file is free software; the Free Software Foundation
25 dnl gives unlimited permission to copy and/or distribute it,
26 dnl with or without modifications, as long as this notice is preserved.
27
28 dnl From Bruno Haible and Sam Steingold.
29
30 dnl Sets the HOST_CPU variable to the canonical name of the CPU.
31 dnl Sets the HOST_CPU_C_ABI variable to the canonical name of the CPU with its
32 dnl C language ABI (application binary interface).
33 dnl Also defines __${HOST_CPU}__ and __${HOST_CPU_C_ABI}__ as C macros in
34 dnl config.h.
35 dnl
36 dnl This canonical name can be used to select a particular assembly language
37 dnl source file that will interoperate with C code on the given host.
38 dnl
39 dnl For example:
40 dnl * 'i386' and 'sparc' are different canonical names, because code for i386
41 dnl will not run on SPARC CPUs and vice versa. They have different
42 dnl instruction sets.
43 dnl * 'sparc' and 'sparc64' are different canonical names, because code for
44 dnl 'sparc' and code for 'sparc64' cannot be linked together: 'sparc' code
45 dnl contains 32-bit instructions, whereas 'sparc64' code contains 64-bit
46 dnl instructions. A process on a SPARC CPU can be in 32-bit mode or in 64-bit
47 dnl mode, but not both.
48 dnl * 'mips' and 'mipsn32' are different canonical names, because they use
49 dnl different argument passing and return conventions for C functions, and
50 dnl although the instruction set of 'mips' is a large subset of the
51 dnl instruction set of 'mipsn32'.
52 dnl * 'mipsn32' and 'mips64' are different canonical names, because they use
53 dnl different sizes for the C types like 'int' and 'void *', and although
54 dnl the instruction sets of 'mipsn32' and 'mips64' are the same.
55 dnl * The same canonical name is used for different endiannesses. You can
56 dnl determine the endianness through preprocessor symbols:
57 dnl - 'arm': test __ARMEL__.
58 dnl - 'mips', 'mipsn32', 'mips64': test _MIPSEB vs. _MIPSEL.
59 dnl - 'powerpc64': test _BIG_ENDIAN vs. _LITTLE_ENDIAN.
60 dnl * The same name 'i386' is used for CPUs of type i386, i486, i586
61 dnl (Pentium), AMD K7, Pentium II, Pentium IV, etc., because
62 dnl - Instructions that do not exist on all of these CPUs (cmpxchg,
63 dnl MMX, SSE, SSE2, 3DNow! etc.) are not frequently used. If your
64 dnl assembly language source files use such instructions, you will
65 dnl need to make the distinction.
66 dnl - Speed of execution of the common instruction set is reasonable across
67 dnl the entire family of CPUs. If you have assembly language source files
68 dnl that are optimized for particular CPU types (like GNU gmp has), you
69 dnl will need to make the distinction.
70 dnl See <https://en.wikipedia.org/wiki/X86_instruction_listings>.
71 AC_DEFUN([gl_HOST_CPU_C_ABI],
72 [
73 AC_REQUIRE([AC_CANONICAL_HOST])
74 AC_REQUIRE([gl_C_ASM])
75 AC_CACHE_CHECK([host CPU and C ABI], [gl_cv_host_cpu_c_abi],
76 [case "$host_cpu" in
77
78 changequote(,)dnl
79 i[34567]86 )
80 changequote([,])dnl
81 gl_cv_host_cpu_c_abi=i386
82 ;;
83
84 x86_64 )
85 # On x86_64 systems, the C compiler may be generating code in one of
86 # these ABIs:
87 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
88 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
89 # with native Windows (mingw, MSVC).
90 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
91 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
92 AC_COMPILE_IFELSE(
93 [AC_LANG_SOURCE(
94 [[#if (defined __x86_64__ || defined __amd64__ \
95 || defined _M_X64 || defined _M_AMD64)
96 int ok;
97 #else
98 error fail
99 #endif
100 ]])],
101 [AC_COMPILE_IFELSE(
102 [AC_LANG_SOURCE(
103 [[#if defined __ILP32__ || defined _ILP32
104 int ok;
105 #else
106 error fail
107 #endif
108 ]])],
109 [gl_cv_host_cpu_c_abi=x86_64-x32],
110 [gl_cv_host_cpu_c_abi=x86_64])],
111 [gl_cv_host_cpu_c_abi=i386])
112 ;;
113
114 changequote(,)dnl
115 alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
116 changequote([,])dnl
117 gl_cv_host_cpu_c_abi=alpha
118 ;;
119
120 arm* | aarch64 )
121 # Assume arm with EABI.
122 # On arm64 systems, the C compiler may be generating code in one of
123 # these ABIs:
124 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
125 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
126 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
127 AC_COMPILE_IFELSE(
128 [AC_LANG_SOURCE(
129 [[#ifdef __aarch64__
130 int ok;
131 #else
132 error fail
133 #endif
134 ]])],
135 [AC_COMPILE_IFELSE(
136 [AC_LANG_SOURCE(
137 [[#if defined __ILP32__ || defined _ILP32
138 int ok;
139 #else
140 error fail
141 #endif
142 ]])],
143 [gl_cv_host_cpu_c_abi=arm64-ilp32],
144 [gl_cv_host_cpu_c_abi=arm64])],
145 [# Don't distinguish little-endian and big-endian arm, since they
146 # don't require different machine code for simple operations and
147 # since the user can distinguish them through the preprocessor
148 # defines __ARMEL__ vs. __ARMEB__.
149 # But distinguish arm which passes floating-point arguments and
150 # return values in integer registers (r0, r1, ...) - this is
151 # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
152 # passes them in float registers (s0, s1, ...) and double registers
153 # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
154 # sets the preprocessor defines __ARM_PCS (for the first case) and
155 # __ARM_PCS_VFP (for the second case), but older GCC does not.
156 echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c
157 # Look for a reference to the register d0 in the .s file.
158 AC_TRY_COMMAND(${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c) >/dev/null 2>&1
159 if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then
160 gl_cv_host_cpu_c_abi=armhf
161 else
162 gl_cv_host_cpu_c_abi=arm
163 fi
164 rm -f conftest*
165 ])
166 ;;
167
168 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
169 # On hppa, the C compiler may be generating 32-bit code or 64-bit
170 # code. In the latter case, it defines _LP64 and __LP64__.
171 AC_COMPILE_IFELSE(
172 [AC_LANG_SOURCE(
173 [[#ifdef __LP64__
174 int ok;
175 #else
176 error fail
177 #endif
178 ]])],
179 [gl_cv_host_cpu_c_abi=hppa64],
180 [gl_cv_host_cpu_c_abi=hppa])
181 ;;
182
183 ia64* )
184 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
185 # 32-bit code. In the latter case, it defines _ILP32.
186 AC_COMPILE_IFELSE(
187 [AC_LANG_SOURCE(
188 [[#ifdef _ILP32
189 int ok;
190 #else
191 error fail
192 #endif
193 ]])],
194 [gl_cv_host_cpu_c_abi=ia64-ilp32],
195 [gl_cv_host_cpu_c_abi=ia64])
196 ;;
197
198 mips* )
199 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
200 # at 32.
201 AC_COMPILE_IFELSE(
202 [AC_LANG_SOURCE(
203 [[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
204 int ok;
205 #else
206 error fail
207 #endif
208 ]])],
209 [gl_cv_host_cpu_c_abi=mips64],
210 [# In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
211 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
212 # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
213 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
214 AC_COMPILE_IFELSE(
215 [AC_LANG_SOURCE(
216 [[#if (_MIPS_SIM == _ABIN32)
217 int ok;
218 #else
219 error fail
220 #endif
221 ]])],
222 [gl_cv_host_cpu_c_abi=mipsn32],
223 [gl_cv_host_cpu_c_abi=mips])])
224 ;;
225
226 powerpc* )
227 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
228 # No need to distinguish them here; the caller may distinguish
229 # them based on the OS.
230 # On powerpc64 systems, the C compiler may still be generating
231 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
232 # be generating 64-bit code.
233 AC_COMPILE_IFELSE(
234 [AC_LANG_SOURCE(
235 [[#if defined __powerpc64__ || defined _ARCH_PPC64
236 int ok;
237 #else
238 error fail
239 #endif
240 ]])],
241 [# On powerpc64, there are two ABIs on Linux: The AIX compatible
242 # one and the ELFv2 one. The latter defines _CALL_ELF=2.
243 AC_COMPILE_IFELSE(
244 [AC_LANG_SOURCE(
245 [[#if defined _CALL_ELF && _CALL_ELF == 2
246 int ok;
247 #else
248 error fail
249 #endif
250 ]])],
251 [gl_cv_host_cpu_c_abi=powerpc64-elfv2],
252 [gl_cv_host_cpu_c_abi=powerpc64])
253 ],
254 [gl_cv_host_cpu_c_abi=powerpc])
255 ;;
256
257 rs6000 )
258 gl_cv_host_cpu_c_abi=powerpc
259 ;;
260
261 riscv32 | riscv64 )
262 # There are 2 architectures (with variants): rv32* and rv64*.
263 AC_COMPILE_IFELSE(
264 [AC_LANG_SOURCE(
265 [[#if __riscv_xlen == 64
266 int ok;
267 #else
268 error fail
269 #endif
270 ]])],
271 [cpu=riscv64],
272 [cpu=riscv32])
273 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
274 # Size of 'long' and 'void *':
275 AC_COMPILE_IFELSE(
276 [AC_LANG_SOURCE(
277 [[#if defined __LP64__
278 int ok;
279 #else
280 error fail
281 #endif
282 ]])],
283 [main_abi=lp64],
284 [main_abi=ilp32])
285 # Float ABIs:
286 # __riscv_float_abi_double:
287 # 'float' and 'double' are passed in floating-point registers.
288 # __riscv_float_abi_single:
289 # 'float' are passed in floating-point registers.
290 # __riscv_float_abi_soft:
291 # No values are passed in floating-point registers.
292 AC_COMPILE_IFELSE(
293 [AC_LANG_SOURCE(
294 [[#if defined __riscv_float_abi_double
295 int ok;
296 #else
297 error fail
298 #endif
299 ]])],
300 [float_abi=d],
301 [AC_COMPILE_IFELSE(
302 [AC_LANG_SOURCE(
303 [[#if defined __riscv_float_abi_single
304 int ok;
305 #else
306 error fail
307 #endif
308 ]])],
309 [float_abi=f],
310 [float_abi=''])
311 ])
312 gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
313 ;;
314
315 s390* )
316 # On s390x, the C compiler may be generating 64-bit (= s390x) code
317 # or 31-bit (= s390) code.
318 AC_COMPILE_IFELSE(
319 [AC_LANG_SOURCE(
320 [[#if defined __LP64__ || defined __s390x__
321 int ok;
322 #else
323 error fail
324 #endif
325 ]])],
326 [gl_cv_host_cpu_c_abi=s390x],
327 [gl_cv_host_cpu_c_abi=s390])
328 ;;
329
330 sparc | sparc64 )
331 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
332 # C compiler still generates 32-bit code.
333 AC_COMPILE_IFELSE(
334 [AC_LANG_SOURCE(
335 [[#if defined __sparcv9 || defined __arch64__
336 int ok;
337 #else
338 error fail
339 #endif
340 ]])],
341 [gl_cv_host_cpu_c_abi=sparc64],
342 [gl_cv_host_cpu_c_abi=sparc])
343 ;;
344
345 *)
346 gl_cv_host_cpu_c_abi="$host_cpu"
347 ;;
348 esac
349 ])
350
351 dnl In most cases, $HOST_CPU and $HOST_CPU_C_ABI are the same.
352 HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
353 HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi"
354 AC_SUBST([HOST_CPU])
355 AC_SUBST([HOST_CPU_C_ABI])
356
357 # This was
358 # AC_DEFINE_UNQUOTED([__${HOST_CPU}__])
359 # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__])
360 # earlier, but KAI C++ 3.2d doesn't like this.
361 sed -e 's/-/_/g' >> confdefs.h <<EOF
362 #ifndef __${HOST_CPU}__
363 #define __${HOST_CPU}__ 1
364 #endif
365 #ifndef __${HOST_CPU_C_ABI}__
366 #define __${HOST_CPU_C_ABI}__ 1
367 #endif
368 EOF
369 AH_TOP([/* CPU and C ABI indicator */
370 #ifndef __i386__
371 #undef __i386__
372 #endif
373 #ifndef __x86_64_x32__
374 #undef __x86_64_x32__
375 #endif
376 #ifndef __x86_64__
377 #undef __x86_64__
378 #endif
379 #ifndef __alpha__
380 #undef __alpha__
381 #endif
382 #ifndef __arm__
383 #undef __arm__
384 #endif
385 #ifndef __armhf__
386 #undef __armhf__
387 #endif
388 #ifndef __arm64_ilp32__
389 #undef __arm64_ilp32__
390 #endif
391 #ifndef __arm64__
392 #undef __arm64__
393 #endif
394 #ifndef __hppa__
395 #undef __hppa__
396 #endif
397 #ifndef __hppa64__
398 #undef __hppa64__
399 #endif
400 #ifndef __ia64_ilp32__
401 #undef __ia64_ilp32__
402 #endif
403 #ifndef __ia64__
404 #undef __ia64__
405 #endif
406 #ifndef __m68k__
407 #undef __m68k__
408 #endif
409 #ifndef __mips__
410 #undef __mips__
411 #endif
412 #ifndef __mipsn32__
413 #undef __mipsn32__
414 #endif
415 #ifndef __mips64__
416 #undef __mips64__
417 #endif
418 #ifndef __powerpc__
419 #undef __powerpc__
420 #endif
421 #ifndef __powerpc64__
422 #undef __powerpc64__
423 #endif
424 #ifndef __powerpc64_elfv2__
425 #undef __powerpc64_elfv2__
426 #endif
427 #ifndef __riscv32__
428 #undef __riscv32__
429 #endif
430 #ifndef __riscv64__
431 #undef __riscv64__
432 #endif
433 #ifndef __riscv32_ilp32__
434 #undef __riscv32_ilp32__
435 #endif
436 #ifndef __riscv32_ilp32f__
437 #undef __riscv32_ilp32f__
438 #endif
439 #ifndef __riscv32_ilp32d__
440 #undef __riscv32_ilp32d__
441 #endif
442 #ifndef __riscv64_ilp32__
443 #undef __riscv64_ilp32__
444 #endif
445 #ifndef __riscv64_ilp32f__
446 #undef __riscv64_ilp32f__
447 #endif
448 #ifndef __riscv64_ilp32d__
449 #undef __riscv64_ilp32d__
450 #endif
451 #ifndef __riscv64_lp64__
452 #undef __riscv64_lp64__
453 #endif
454 #ifndef __riscv64_lp64f__
455 #undef __riscv64_lp64f__
456 #endif
457 #ifndef __riscv64_lp64d__
458 #undef __riscv64_lp64d__
459 #endif
460 #ifndef __s390__
461 #undef __s390__
462 #endif
463 #ifndef __s390x__
464 #undef __s390x__
465 #endif
466 #ifndef __sh__
467 #undef __sh__
468 #endif
469 #ifndef __sparc__
470 #undef __sparc__
471 #endif
472 #ifndef __sparc64__
473 #undef __sparc64__
474 #endif
475 ])
476
477 ])
478
479
480 dnl Sets the HOST_CPU_C_ABI_32BIT variable to 'yes' if the C language ABI
481 dnl (application binary interface) is a 32-bit one, to 'no' if it is a 64-bit
482 dnl one, or to 'unknown' if unknown.
483 dnl This is a simplified variant of gl_HOST_CPU_C_ABI.
484 AC_DEFUN([gl_HOST_CPU_C_ABI_32BIT],
485 [
486 AC_REQUIRE([AC_CANONICAL_HOST])
487 AC_CACHE_CHECK([32-bit host C ABI], [gl_cv_host_cpu_c_abi_32bit],
488 [if test -n "$gl_cv_host_cpu_c_abi"; then
489 case "$gl_cv_host_cpu_c_abi" in
490 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
491 gl_cv_host_cpu_c_abi_32bit=yes ;;
492 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
493 gl_cv_host_cpu_c_abi_32bit=no ;;
494 *)
495 gl_cv_host_cpu_c_abi_32bit=unknown ;;
496 esac
497 else
498 case "$host_cpu" in
499
500 # CPUs that only support a 32-bit ABI.
501 arc \
502 | bfin \
503 | cris* \
504 | csky \
505 | epiphany \
506 | ft32 \
507 | h8300 \
508 | m68k \
509 | microblaze | microblazeel \
510 | nds32 | nds32le | nds32be \
511 | nios2 | nios2eb | nios2el \
512 | or1k* \
513 | or32 \
514 | sh | sh[1234] | sh[1234]e[lb] \
515 | tic6x \
516 | xtensa* )
517 gl_cv_host_cpu_c_abi_32bit=yes
518 ;;
519
520 # CPUs that only support a 64-bit ABI.
521 changequote(,)dnl
522 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
523 | mmix )
524 changequote([,])dnl
525 gl_cv_host_cpu_c_abi_32bit=no
526 ;;
527
528 changequote(,)dnl
529 i[34567]86 )
530 changequote([,])dnl
531 gl_cv_host_cpu_c_abi_32bit=yes
532 ;;
533
534 x86_64 )
535 # On x86_64 systems, the C compiler may be generating code in one of
536 # these ABIs:
537 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
538 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
539 # with native Windows (mingw, MSVC).
540 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
541 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
542 AC_COMPILE_IFELSE(
543 [AC_LANG_SOURCE(
544 [[#if (defined __x86_64__ || defined __amd64__ \
545 || defined _M_X64 || defined _M_AMD64) \
546 && !(defined __ILP32__ || defined _ILP32)
547 int ok;
548 #else
549 error fail
550 #endif
551 ]])],
552 [gl_cv_host_cpu_c_abi_32bit=no],
553 [gl_cv_host_cpu_c_abi_32bit=yes])
554 ;;
555
556 arm* | aarch64 )
557 # Assume arm with EABI.
558 # On arm64 systems, the C compiler may be generating code in one of
559 # these ABIs:
560 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
561 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
562 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
563 AC_COMPILE_IFELSE(
564 [AC_LANG_SOURCE(
565 [[#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
566 int ok;
567 #else
568 error fail
569 #endif
570 ]])],
571 [gl_cv_host_cpu_c_abi_32bit=no],
572 [gl_cv_host_cpu_c_abi_32bit=yes])
573 ;;
574
575 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
576 # On hppa, the C compiler may be generating 32-bit code or 64-bit
577 # code. In the latter case, it defines _LP64 and __LP64__.
578 AC_COMPILE_IFELSE(
579 [AC_LANG_SOURCE(
580 [[#ifdef __LP64__
581 int ok;
582 #else
583 error fail
584 #endif
585 ]])],
586 [gl_cv_host_cpu_c_abi_32bit=no],
587 [gl_cv_host_cpu_c_abi_32bit=yes])
588 ;;
589
590 ia64* )
591 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
592 # 32-bit code. In the latter case, it defines _ILP32.
593 AC_COMPILE_IFELSE(
594 [AC_LANG_SOURCE(
595 [[#ifdef _ILP32
596 int ok;
597 #else
598 error fail
599 #endif
600 ]])],
601 [gl_cv_host_cpu_c_abi_32bit=yes],
602 [gl_cv_host_cpu_c_abi_32bit=no])
603 ;;
604
605 mips* )
606 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
607 # at 32.
608 AC_COMPILE_IFELSE(
609 [AC_LANG_SOURCE(
610 [[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
611 int ok;
612 #else
613 error fail
614 #endif
615 ]])],
616 [gl_cv_host_cpu_c_abi_32bit=no],
617 [gl_cv_host_cpu_c_abi_32bit=yes])
618 ;;
619
620 powerpc* )
621 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
622 # No need to distinguish them here; the caller may distinguish
623 # them based on the OS.
624 # On powerpc64 systems, the C compiler may still be generating
625 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
626 # be generating 64-bit code.
627 AC_COMPILE_IFELSE(
628 [AC_LANG_SOURCE(
629 [[#if defined __powerpc64__ || defined _ARCH_PPC64
630 int ok;
631 #else
632 error fail
633 #endif
634 ]])],
635 [gl_cv_host_cpu_c_abi_32bit=no],
636 [gl_cv_host_cpu_c_abi_32bit=yes])
637 ;;
638
639 rs6000 )
640 gl_cv_host_cpu_c_abi_32bit=yes
641 ;;
642
643 riscv32 | riscv64 )
644 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
645 # Size of 'long' and 'void *':
646 AC_COMPILE_IFELSE(
647 [AC_LANG_SOURCE(
648 [[#if defined __LP64__
649 int ok;
650 #else
651 error fail
652 #endif
653 ]])],
654 [gl_cv_host_cpu_c_abi_32bit=no],
655 [gl_cv_host_cpu_c_abi_32bit=yes])
656 ;;
657
658 s390* )
659 # On s390x, the C compiler may be generating 64-bit (= s390x) code
660 # or 31-bit (= s390) code.
661 AC_COMPILE_IFELSE(
662 [AC_LANG_SOURCE(
663 [[#if defined __LP64__ || defined __s390x__
664 int ok;
665 #else
666 error fail
667 #endif
668 ]])],
669 [gl_cv_host_cpu_c_abi_32bit=no],
670 [gl_cv_host_cpu_c_abi_32bit=yes])
671 ;;
672
673 sparc | sparc64 )
674 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
675 # C compiler still generates 32-bit code.
676 AC_COMPILE_IFELSE(
677 [AC_LANG_SOURCE(
678 [[#if defined __sparcv9 || defined __arch64__
679 int ok;
680 #else
681 error fail
682 #endif
683 ]])],
684 [gl_cv_host_cpu_c_abi_32bit=no],
685 [gl_cv_host_cpu_c_abi_32bit=yes])
686 ;;
687
688 *)
689 gl_cv_host_cpu_c_abi_32bit=unknown
690 ;;
691 esac
692 fi
693 ])
694
695 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
696 ])
697
698 # iconv.m4 serial 21
699 dnl Copyright (C) 2000-2002, 2007-2014, 2016-2020 Free Software Foundation,
700 dnl Inc.
24701 dnl This file is free software; the Free Software Foundation
25702 dnl gives unlimited permission to copy and/or distribute it,
26703 dnl with or without modifications, as long as this notice is preserved.
188865 #endif
189866 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
190867 provided. */
191 if (/* Try standardized names. */
192 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
193 /* Try IRIX, OSF/1 names. */
194 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
195 /* Try AIX names. */
196 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
197 /* Try HP-UX names. */
198 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
199 result |= 16;
868 {
869 /* Try standardized names. */
870 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
871 /* Try IRIX, OSF/1 names. */
872 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
873 /* Try AIX names. */
874 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
875 /* Try HP-UX names. */
876 iconv_t cd4 = iconv_open ("utf8", "eucJP");
877 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
878 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
879 result |= 16;
880 if (cd1 != (iconv_t)(-1))
881 iconv_close (cd1);
882 if (cd2 != (iconv_t)(-1))
883 iconv_close (cd2);
884 if (cd3 != (iconv_t)(-1))
885 iconv_close (cd3);
886 if (cd4 != (iconv_t)(-1))
887 iconv_close (cd4);
888 }
200889 return result;
201890 ]])],
202891 [am_cv_func_iconv_works=yes], ,
279968 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
280969 AC_MSG_RESULT([
281970 $am_cv_proto_iconv])
282 AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
283 [Define as const if the declaration of iconv() needs const.])
284 dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>.
285 m4_ifdef([gl_ICONV_H_DEFAULTS],
286 [AC_REQUIRE([gl_ICONV_H_DEFAULTS])
287 if test -n "$am_cv_proto_iconv_arg1"; then
288 ICONV_CONST="const"
289 fi
290 ])
971 else
972 dnl When compiling GNU libiconv on a system that does not have iconv yet,
973 dnl pick the POSIX compliant declaration without 'const'.
974 am_cv_proto_iconv_arg1=""
291975 fi
976 AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
977 [Define as const if the declaration of iconv() needs const.])
978 dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>.
979 m4_ifdef([gl_ICONV_H_DEFAULTS],
980 [AC_REQUIRE([gl_ICONV_H_DEFAULTS])
981 if test -n "$am_cv_proto_iconv_arg1"; then
982 ICONV_CONST="const"
983 fi
984 ])
292985 ])
293986
294 # lib-ld.m4 serial 6
295 dnl Copyright (C) 1996-2003, 2009-2016 Free Software Foundation, Inc.
987 # lib-ld.m4 serial 9
988 dnl Copyright (C) 1996-2003, 2009-2020 Free Software Foundation, Inc.
296989 dnl This file is free software; the Free Software Foundation
297990 dnl gives unlimited permission to copy and/or distribute it,
298991 dnl with or without modifications, as long as this notice is preserved.
3401033 }
3411034 fi
3421035
343 ac_prog=ld
344 if test "$GCC" = yes; then
345 # Check if gcc -print-prog-name=ld gives a path.
1036 if test -n "$LD"; then
1037 AC_MSG_CHECKING([for ld])
1038 elif test "$GCC" = yes; then
3461039 AC_MSG_CHECKING([for ld used by $CC])
347 case $host in
348 *-*-mingw*)
349 # gcc leaves a trailing carriage return which upsets mingw
350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
351 *)
352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
353 esac
354 case $ac_prog in
355 # Accept absolute paths.
356 [[\\/]]* | ?:[[\\/]]*)
357 re_direlt='/[[^/]][[^/]]*/\.\./'
358 # Canonicalize the pathname of ld
359 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
360 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
361 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
362 done
363 test -z "$LD" && LD="$ac_prog"
364 ;;
365 "")
366 # If it fails, then pretend we aren't using GCC.
367 ac_prog=ld
368 ;;
369 *)
370 # If it is relative, then search for the first ld in PATH.
371 with_gnu_ld=unknown
372 ;;
373 esac
3741040 elif test "$with_gnu_ld" = yes; then
3751041 AC_MSG_CHECKING([for GNU ld])
3761042 else
3771043 AC_MSG_CHECKING([for non-GNU ld])
3781044 fi
379 AC_CACHE_VAL([acl_cv_path_LD],
380 [if test -z "$LD"; then
381 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
382 for ac_dir in $PATH; do
383 IFS="$acl_save_ifs"
384 test -z "$ac_dir" && ac_dir=.
385 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
386 acl_cv_path_LD="$ac_dir/$ac_prog"
387 # Check to see if the program is GNU ld. I'd rather use --version,
388 # but apparently some variants of GNU ld only accept -v.
389 # Break only if it was the GNU/non-GNU ld that we prefer.
390 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
391 *GNU* | *'with BFD'*)
392 test "$with_gnu_ld" != no && break
393 ;;
394 *)
395 test "$with_gnu_ld" != yes && break
396 ;;
1045 if test -n "$LD"; then
1046 # Let the user override the test with a path.
1047 :
1048 else
1049 AC_CACHE_VAL([acl_cv_path_LD],
1050 [
1051 acl_cv_path_LD= # Final result of this test
1052 ac_prog=ld # Program to search in $PATH
1053 if test "$GCC" = yes; then
1054 # Check if gcc -print-prog-name=ld gives a path.
1055 case $host in
1056 *-*-mingw*)
1057 # gcc leaves a trailing carriage return which upsets mingw
1058 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1059 *)
1060 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
1061 esac
1062 case $acl_output in
1063 # Accept absolute paths.
1064 [[\\/]]* | ?:[[\\/]]*)
1065 re_direlt='/[[^/]][[^/]]*/\.\./'
1066 # Canonicalize the pathname of ld
1067 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
1068 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
1069 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
1070 done
1071 # Got the pathname. No search in PATH is needed.
1072 acl_cv_path_LD="$acl_output"
1073 ac_prog=
1074 ;;
1075 "")
1076 # If it fails, then pretend we aren't using GCC.
1077 ;;
1078 *)
1079 # If it is relative, then search for the first ld in PATH.
1080 with_gnu_ld=unknown
1081 ;;
3971082 esac
3981083 fi
399 done
400 IFS="$acl_save_ifs"
401 else
402 acl_cv_path_LD="$LD" # Let the user override the test with a path.
403 fi])
404 LD="$acl_cv_path_LD"
1084 if test -n "$ac_prog"; then
1085 # Search for $ac_prog in $PATH.
1086 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1087 for ac_dir in $PATH; do
1088 IFS="$acl_save_ifs"
1089 test -z "$ac_dir" && ac_dir=.
1090 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1091 acl_cv_path_LD="$ac_dir/$ac_prog"
1092 # Check to see if the program is GNU ld. I'd rather use --version,
1093 # but apparently some variants of GNU ld only accept -v.
1094 # Break only if it was the GNU/non-GNU ld that we prefer.
1095 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
1096 *GNU* | *'with BFD'*)
1097 test "$with_gnu_ld" != no && break
1098 ;;
1099 *)
1100 test "$with_gnu_ld" != yes && break
1101 ;;
1102 esac
1103 fi
1104 done
1105 IFS="$acl_save_ifs"
1106 fi
1107 case $host in
1108 *-*-aix*)
1109 AC_COMPILE_IFELSE(
1110 [AC_LANG_SOURCE(
1111 [[#if defined __powerpc64__ || defined _ARCH_PPC64
1112 int ok;
1113 #else
1114 error fail
1115 #endif
1116 ]])],
1117 [# The compiler produces 64-bit code. Add option '-b64' so that the
1118 # linker groks 64-bit object files.
1119 case "$acl_cv_path_LD " in
1120 *" -b64 "*) ;;
1121 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
1122 esac
1123 ], [])
1124 ;;
1125 sparc64-*-netbsd*)
1126 AC_COMPILE_IFELSE(
1127 [AC_LANG_SOURCE(
1128 [[#if defined __sparcv9 || defined __arch64__
1129 int ok;
1130 #else
1131 error fail
1132 #endif
1133 ]])],
1134 [],
1135 [# The compiler produces 32-bit code. Add option '-m elf32_sparc'
1136 # so that the linker groks 32-bit object files.
1137 case "$acl_cv_path_LD " in
1138 *" -m elf32_sparc "*) ;;
1139 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
1140 esac
1141 ])
1142 ;;
1143 esac
1144 ])
1145 LD="$acl_cv_path_LD"
1146 fi
4051147 if test -n "$LD"; then
4061148 AC_MSG_RESULT([$LD])
4071149 else
4081150 AC_MSG_RESULT([no])
1151 AC_MSG_ERROR([no acceptable ld found in \$PATH])
4091152 fi
410 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4111153 AC_LIB_PROG_LD_GNU
4121154 ])
4131155
414 # lib-link.m4 serial 26 (gettext-0.18.2)
415 dnl Copyright (C) 2001-2016 Free Software Foundation, Inc.
1156 # lib-link.m4 serial 31
1157 dnl Copyright (C) 2001-2020 Free Software Foundation, Inc.
4161158 dnl This file is free software; the Free Software Foundation
4171159 dnl gives unlimited permission to copy and/or distribute it,
4181160 dnl with or without modifications, as long as this notice is preserved.
4191161
4201162 dnl From Bruno Haible.
4211163
422 AC_PREREQ([2.54])
1164 AC_PREREQ([2.61])
4231165
4241166 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
4251167 dnl the libraries corresponding to explicit and implicit dependencies.
5371279 dnl acl_hardcode_minus_L.
5381280 AC_DEFUN([AC_LIB_RPATH],
5391281 [
540 dnl Tell automake >= 1.10 to complain if config.rpath is missing.
541 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
1282 dnl Complain if config.rpath is missing.
1283 AC_REQUIRE_AUX_FILE([config.rpath])
5421284 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
5431285 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
5441286 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
6001342 pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
6011343 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
6021344 pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
603 dnl Autoconf >= 2.61 supports dots in --with options.
604 pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)])
6051345 dnl By default, look in $includedir and $libdir.
6061346 use_additional=yes
6071347 AC_LIB_WITH_FINAL_PREFIX([
6081348 eval additional_includedir=\"$includedir\"
6091349 eval additional_libdir=\"$libdir\"
1350 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
1351 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
6101352 ])
611 AC_ARG_WITH(P_A_C_K[-prefix],
612 [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
613 --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
1353 AC_ARG_WITH(PACK[-prefix],
1354 [[ --with-]]PACK[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
1355 --without-]]PACK[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
6141356 [
6151357 if test "X$withval" = "Xno"; then
6161358 use_additional=no
6191361 AC_LIB_WITH_FINAL_PREFIX([
6201362 eval additional_includedir=\"$includedir\"
6211363 eval additional_libdir=\"$libdir\"
1364 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
1365 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
6221366 ])
6231367 else
6241368 additional_includedir="$withval/include"
6251369 additional_libdir="$withval/$acl_libdirstem"
626 if test "$acl_libdirstem2" != "$acl_libdirstem" \
627 && ! test -d "$withval/$acl_libdirstem"; then
628 additional_libdir="$withval/$acl_libdirstem2"
629 fi
1370 additional_libdir2="$withval/$acl_libdirstem2"
1371 additional_libdir3="$withval/$acl_libdirstem3"
6301372 fi
6311373 fi
6321374 ])
1375 if test "X$additional_libdir2" = "X$additional_libdir"; then
1376 additional_libdir2=
1377 fi
1378 if test "X$additional_libdir3" = "X$additional_libdir"; then
1379 additional_libdir3=
1380 fi
6331381 dnl Search the library and its dependencies in $additional_libdir and
6341382 dnl $LDFLAGS. Using breadth-first-seach.
6351383 LIB[]NAME=
6851433 shrext=
6861434 fi
6871435 if test $use_additional = yes; then
688 dir="$additional_libdir"
689 dnl The same code as in the loop below:
690 dnl First look for a shared library.
691 if test -n "$acl_shlibext"; then
692 if test -f "$dir/$libname$shrext"; then
693 found_dir="$dir"
694 found_so="$dir/$libname$shrext"
695 else
696 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
697 ver=`(cd "$dir" && \
698 for f in "$libname$shrext".*; do echo "$f"; done \
699 | sed -e "s,^$libname$shrext\\\\.,," \
700 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
701 | sed 1q ) 2>/dev/null`
702 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
703 found_dir="$dir"
704 found_so="$dir/$libname$shrext.$ver"
705 fi
706 else
707 eval library_names=\"$acl_library_names_spec\"
708 for f in $library_names; do
709 if test -f "$dir/$f"; then
710 found_dir="$dir"
711 found_so="$dir/$f"
712 break
713 fi
714 done
715 fi
716 fi
717 fi
718 dnl Then look for a static library.
719 if test "X$found_dir" = "X"; then
720 if test -f "$dir/$libname.$acl_libext"; then
721 found_dir="$dir"
722 found_a="$dir/$libname.$acl_libext"
723 fi
724 fi
725 if test "X$found_dir" != "X"; then
726 if test -f "$dir/$libname.la"; then
727 found_la="$dir/$libname.la"
728 fi
729 fi
730 fi
731 if test "X$found_dir" = "X"; then
732 for x in $LDFLAGS $LTLIB[]NAME; do
733 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
734 case "$x" in
735 -L*)
736 dir=`echo "X$x" | sed -e 's/^X-L//'`
1436 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
1437 if test "X$found_dir" = "X"; then
1438 eval dir=\$$additional_libdir_variable
1439 if test -n "$dir"; then
1440 dnl The same code as in the loop below:
7371441 dnl First look for a shared library.
7381442 if test -n "$acl_shlibext"; then
739 if test -f "$dir/$libname$shrext"; then
1443 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7401444 found_dir="$dir"
7411445 found_so="$dir/$libname$shrext"
7421446 else
7461450 | sed -e "s,^$libname$shrext\\\\.,," \
7471451 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7481452 | sed 1q ) 2>/dev/null`
749 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
1453 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7501454 found_dir="$dir"
7511455 found_so="$dir/$libname$shrext.$ver"
7521456 fi
7531457 else
7541458 eval library_names=\"$acl_library_names_spec\"
7551459 for f in $library_names; do
756 if test -f "$dir/$f"; then
1460 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7571461 found_dir="$dir"
7581462 found_so="$dir/$f"
7591463 break
7641468 fi
7651469 dnl Then look for a static library.
7661470 if test "X$found_dir" = "X"; then
767 if test -f "$dir/$libname.$acl_libext"; then
1471 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
1472 found_dir="$dir"
1473 found_a="$dir/$libname.$acl_libext"
1474 fi
1475 fi
1476 if test "X$found_dir" != "X"; then
1477 if test -f "$dir/$libname.la"; then
1478 found_la="$dir/$libname.la"
1479 fi
1480 fi
1481 fi
1482 fi
1483 done
1484 fi
1485 if test "X$found_dir" = "X"; then
1486 for x in $LDFLAGS $LTLIB[]NAME; do
1487 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1488 case "$x" in
1489 -L*)
1490 dir=`echo "X$x" | sed -e 's/^X-L//'`
1491 dnl First look for a shared library.
1492 if test -n "$acl_shlibext"; then
1493 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
1494 found_dir="$dir"
1495 found_so="$dir/$libname$shrext"
1496 else
1497 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
1498 ver=`(cd "$dir" && \
1499 for f in "$libname$shrext".*; do echo "$f"; done \
1500 | sed -e "s,^$libname$shrext\\\\.,," \
1501 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
1502 | sed 1q ) 2>/dev/null`
1503 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
1504 found_dir="$dir"
1505 found_so="$dir/$libname$shrext.$ver"
1506 fi
1507 else
1508 eval library_names=\"$acl_library_names_spec\"
1509 for f in $library_names; do
1510 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
1511 found_dir="$dir"
1512 found_so="$dir/$f"
1513 break
1514 fi
1515 done
1516 fi
1517 fi
1518 fi
1519 dnl Then look for a static library.
1520 if test "X$found_dir" = "X"; then
1521 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7681522 found_dir="$dir"
7691523 found_a="$dir/$libname.$acl_libext"
7701524 fi
7901544 dnl standard /usr/lib.
7911545 if test "$enable_rpath" = no \
7921546 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
793 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
1547 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
1548 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
7941549 dnl No hardcoding is needed.
7951550 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
7961551 else
8901645 fi
8911646 additional_includedir="$basedir/include"
8921647 ;;
1648 */$acl_libdirstem3 | */$acl_libdirstem3/)
1649 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
1650 if test "$name" = '$1'; then
1651 LIB[]NAME[]_PREFIX="$basedir"
1652 fi
1653 additional_includedir="$basedir/include"
1654 ;;
8931655 esac
8941656 if test "X$additional_includedir" != "X"; then
8951657 dnl Potentially add $additional_includedir to $INCNAME.
9401702 for dep in $dependency_libs; do
9411703 case "$dep" in
9421704 -L*)
943 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
944 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
1705 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
1706 dnl Potentially add $dependency_libdir to $LIBNAME and $LTLIBNAME.
9451707 dnl But don't add it
9461708 dnl 1. if it's the standard /usr/lib,
9471709 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
9481710 dnl 3. if it's already present in $LDFLAGS or the already
9491711 dnl constructed $LIBNAME,
9501712 dnl 4. if it doesn't exist as a directory.
951 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
952 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
1713 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
1714 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
1715 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9531716 haveit=
954 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
955 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
1717 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
1718 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
1719 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9561720 if test -n "$GCC"; then
9571721 case $host_os in
9581722 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9631727 haveit=
9641728 for x in $LDFLAGS $LIB[]NAME; do
9651729 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
966 if test "X$x" = "X-L$additional_libdir"; then
1730 if test "X$x" = "X-L$dependency_libdir"; then
9671731 haveit=yes
9681732 break
9691733 fi
9701734 done
9711735 if test -z "$haveit"; then
972 if test -d "$additional_libdir"; then
973 dnl Really add $additional_libdir to $LIBNAME.
974 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
1736 if test -d "$dependency_libdir"; then
1737 dnl Really add $dependency_libdir to $LIBNAME.
1738 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$dependency_libdir"
9751739 fi
9761740 fi
9771741 haveit=
9781742 for x in $LDFLAGS $LTLIB[]NAME; do
9791743 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
980 if test "X$x" = "X-L$additional_libdir"; then
1744 if test "X$x" = "X-L$dependency_libdir"; then
9811745 haveit=yes
9821746 break
9831747 fi
9841748 done
9851749 if test -z "$haveit"; then
986 if test -d "$additional_libdir"; then
987 dnl Really add $additional_libdir to $LTLIBNAME.
988 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
1750 if test -d "$dependency_libdir"; then
1751 dnl Really add $dependency_libdir to $LTLIBNAME.
1752 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$dependency_libdir"
9891753 fi
9901754 fi
9911755 fi
10831847 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
10841848 done
10851849 fi
1086 popdef([P_A_C_K])
10871850 popdef([PACKLIBS])
10881851 popdef([PACKUP])
10891852 popdef([PACK])
11341897 dir="$next"
11351898 dnl No need to hardcode the standard /usr/lib.
11361899 if test "X$dir" != "X/usr/$acl_libdirstem" \
1137 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
1900 && test "X$dir" != "X/usr/$acl_libdirstem2" \
1901 && test "X$dir" != "X/usr/$acl_libdirstem3"; then
11381902 rpathdirs="$rpathdirs $dir"
11391903 fi
11401904 next=
11441908 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
11451909 dnl No need to hardcode the standard /usr/lib.
11461910 if test "X$dir" != "X/usr/$acl_libdirstem" \
1147 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
1911 && test "X$dir" != "X/usr/$acl_libdirstem2" \
1912 && test "X$dir" != "X/usr/$acl_libdirstem3"; then
11481913 rpathdirs="$rpathdirs $dir"
11491914 fi
11501915 next= ;;
11891954 AC_SUBST([$1])
11901955 ])
11911956
1192 # lib-prefix.m4 serial 7 (gettext-0.18)
1193 dnl Copyright (C) 2001-2005, 2008-2016 Free Software Foundation, Inc.
1957 # lib-prefix.m4 serial 17
1958 dnl Copyright (C) 2001-2005, 2008-2020 Free Software Foundation, Inc.
11941959 dnl This file is free software; the Free Software Foundation
11951960 dnl gives unlimited permission to copy and/or distribute it,
11961961 dnl with or without modifications, as long as this notice is preserved.
11971962
11981963 dnl From Bruno Haible.
1199
1200 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
1201 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
1202 dnl require excessive bracketing.
1203 ifdef([AC_HELP_STRING],
1204 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
1205 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
12061964
12071965 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
12081966 dnl to access previously installed libraries. The basic assumption is that
12231981 eval additional_includedir=\"$includedir\"
12241982 eval additional_libdir=\"$libdir\"
12251983 ])
1226 AC_LIB_ARG_WITH([lib-prefix],
1227 [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
1228 --without-lib-prefix don't search for libraries in includedir and libdir],
1984 AC_ARG_WITH([lib-prefix],
1985 [[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
1986 --without-lib-prefix don't search for libraries in includedir and libdir]],
12291987 [
12301988 if test "X$withval" = "Xno"; then
12311989 use_additional=no
13452103 ])
13462104
13472105 dnl AC_LIB_PREPARE_MULTILIB creates
1348 dnl - a variable acl_libdirstem, containing the basename of the libdir, either
1349 dnl "lib" or "lib64" or "lib/64",
1350 dnl - a variable acl_libdirstem2, as a secondary possible value for
1351 dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
1352 dnl "lib/amd64".
2106 dnl - a function acl_is_expected_elfclass, that tests whether standard input
2107 dn; has a 32-bit or 64-bit ELF header, depending on the host CPU ABI,
2108 dnl - 3 variables acl_libdirstem, acl_libdirstem2, acl_libdirstem3, containing
2109 dnl the basename of the libdir to try in turn, either "lib" or "lib64" or
2110 dnl "lib/64" or "lib32" or "lib/sparcv9" or "lib/amd64" or similar.
13532111 AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
13542112 [
1355 dnl There is no formal standard regarding lib and lib64.
1356 dnl On glibc systems, the current practice is that on a system supporting
2113 dnl There is no formal standard regarding lib, lib32, and lib64.
2114 dnl On most glibc systems, the current practice is that on a system supporting
13572115 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
1358 dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
1359 dnl the compiler's default mode by looking at the compiler's library search
1360 dnl path. If at least one of its elements ends in /lib64 or points to a
1361 dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
1362 dnl Otherwise we use the default, namely "lib".
2116 dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. However, on
2117 dnl Arch Linux based distributions, it's the opposite: 32-bit libraries go
2118 dnl under $prefix/lib32 and 64-bit libraries go under $prefix/lib.
2119 dnl We determine the compiler's default mode by looking at the compiler's
2120 dnl library search path. If at least one of its elements ends in /lib64 or
2121 dnl points to a directory whose absolute pathname ends in /lib64, we use that
2122 dnl for 64-bit ABIs. Similarly for 32-bit ABIs. Otherwise we use the default,
2123 dnl namely "lib".
13632124 dnl On Solaris systems, the current practice is that on a system supporting
13642125 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
13652126 dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
13662127 dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
13672128 AC_REQUIRE([AC_CANONICAL_HOST])
1368 acl_libdirstem=lib
1369 acl_libdirstem2=
1370 case "$host_os" in
1371 solaris*)
1372 dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
1373 dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
1374 dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
1375 dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
1376 dnl symlink is missing, so we set acl_libdirstem2 too.
1377 AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
1378 [AC_EGREP_CPP([sixtyfour bits], [
1379 #ifdef _LP64
1380 sixtyfour bits
1381 #endif
1382 ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
1383 ])
1384 if test $gl_cv_solaris_64bit = yes; then
1385 acl_libdirstem=lib/64
1386 case "$host_cpu" in
1387 sparc*) acl_libdirstem2=lib/sparcv9 ;;
1388 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
1389 esac
1390 fi
1391 ;;
1392 *)
1393 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
1394 if test -n "$searchpath"; then
1395 acl_save_IFS="${IFS= }"; IFS=":"
1396 for searchdir in $searchpath; do
1397 if test -d "$searchdir"; then
1398 case "$searchdir" in
1399 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
1400 */../ | */.. )
1401 # Better ignore directories of this form. They are misleading.
1402 ;;
1403 *) searchdir=`cd "$searchdir" && pwd`
1404 case "$searchdir" in
1405 */lib64 ) acl_libdirstem=lib64 ;;
1406 esac ;;
1407 esac
1408 fi
1409 done
1410 IFS="$acl_save_IFS"
1411 fi
1412 ;;
1413 esac
1414 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
2129 AC_REQUIRE([gl_HOST_CPU_C_ABI_32BIT])
2130
2131 AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf],
2132 [AC_EGREP_CPP([Extensible Linking Format],
2133 [#ifdef __ELF__
2134 Extensible Linking Format
2135 #endif
2136 ],
2137 [gl_cv_elf=yes],
2138 [gl_cv_elf=no])
2139 ])
2140 if test $gl_cv_elf; then
2141 # Extract the ELF class of a file (5th byte) in decimal.
2142 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
2143 if od -A x < /dev/null >/dev/null 2>/dev/null; then
2144 # Use POSIX od.
2145 func_elfclass ()
2146 {
2147 od -A n -t d1 -j 4 -N 1
2148 }
2149 else
2150 # Use BSD hexdump.
2151 func_elfclass ()
2152 {
2153 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
2154 echo
2155 }
2156 fi
2157 changequote(,)dnl
2158 case $HOST_CPU_C_ABI_32BIT in
2159 yes)
2160 # 32-bit ABI.
2161 acl_is_expected_elfclass ()
2162 {
2163 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
2164 }
2165 ;;
2166 no)
2167 # 64-bit ABI.
2168 acl_is_expected_elfclass ()
2169 {
2170 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
2171 }
2172 ;;
2173 *)
2174 # Unknown.
2175 acl_is_expected_elfclass ()
2176 {
2177 :
2178 }
2179 ;;
2180 esac
2181 changequote([,])dnl
2182 else
2183 acl_is_expected_elfclass ()
2184 {
2185 :
2186 }
2187 fi
2188
2189 dnl Allow the user to override the result by setting acl_cv_libdirstems.
2190 AC_CACHE_CHECK([for the common suffixes of directories in the library search path],
2191 [acl_cv_libdirstems],
2192 [dnl Try 'lib' first, because that's the default for libdir in GNU, see
2193 dnl <https://www.gnu.org/prep/standards/html_node/Directory-Variables.html>.
2194 acl_libdirstem=lib
2195 acl_libdirstem2=
2196 acl_libdirstem3=
2197 case "$host_os" in
2198 solaris*)
2199 dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
2200 dnl <https://docs.oracle.com/cd/E19253-01/816-5138/dev-env/index.html>.
2201 dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
2202 dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
2203 dnl symlink is missing, so we set acl_libdirstem2 too.
2204 if test $HOST_CPU_C_ABI_32BIT = no; then
2205 acl_libdirstem2=lib/64
2206 case "$host_cpu" in
2207 sparc*) acl_libdirstem3=lib/sparcv9 ;;
2208 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
2209 esac
2210 fi
2211 ;;
2212 *)
2213 dnl If $CC generates code for a 32-bit ABI, the libraries are
2214 dnl surely under $prefix/lib or $prefix/lib32, not $prefix/lib64.
2215 dnl Similarly, if $CC generates code for a 64-bit ABI, the libraries
2216 dnl are surely under $prefix/lib or $prefix/lib64, not $prefix/lib32.
2217 dnl Find the compiler's search path. However, non-system compilers
2218 dnl sometimes have odd library search paths. But we can't simply invoke
2219 dnl '/usr/bin/gcc -print-search-dirs' because that would not take into
2220 dnl account the -m32/-m31 or -m64 options from the $CC or $CFLAGS.
2221 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
2222 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
2223 if test $HOST_CPU_C_ABI_32BIT != no; then
2224 # 32-bit or unknown ABI.
2225 if test -d /usr/lib32; then
2226 acl_libdirstem2=lib32
2227 fi
2228 fi
2229 if test $HOST_CPU_C_ABI_32BIT != yes; then
2230 # 64-bit or unknown ABI.
2231 if test -d /usr/lib64; then
2232 acl_libdirstem3=lib64
2233 fi
2234 fi
2235 if test -n "$searchpath"; then
2236 acl_save_IFS="${IFS= }"; IFS=":"
2237 for searchdir in $searchpath; do
2238 if test -d "$searchdir"; then
2239 case "$searchdir" in
2240 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
2241 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
2242 */../ | */.. )
2243 # Better ignore directories of this form. They are misleading.
2244 ;;
2245 *) searchdir=`cd "$searchdir" && pwd`
2246 case "$searchdir" in
2247 */lib32 ) acl_libdirstem2=lib32 ;;
2248 */lib64 ) acl_libdirstem3=lib64 ;;
2249 esac ;;
2250 esac
2251 fi
2252 done
2253 IFS="$acl_save_IFS"
2254 if test $HOST_CPU_C_ABI_32BIT = yes; then
2255 # 32-bit ABI.
2256 acl_libdirstem3=
2257 fi
2258 if test $HOST_CPU_C_ABI_32BIT = no; then
2259 # 64-bit ABI.
2260 acl_libdirstem2=
2261 fi
2262 fi
2263 ;;
2264 esac
2265 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
2266 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
2267 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
2268 ])
2269 dnl Decompose acl_cv_libdirstems into acl_libdirstem, acl_libdirstem2, and
2270 dnl acl_libdirstem3.
2271 changequote(,)dnl
2272 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
2273 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
2274 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
2275 changequote([,])dnl
14152276 ])
14162277
1417 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
2278 # Copyright (C) 2002-2020 Free Software Foundation, Inc.
14182279 #
14192280 # This file is free software; the Free Software Foundation
14202281 # gives unlimited permission to copy and/or distribute it,
14292290 [am__api_version='1.16'
14302291 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
14312292 dnl require some minimum version. Point them to the right macro.
1432 m4_if([$1], [1.16.1], [],
2293 m4_if([$1], [1.16.3], [],
14332294 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
14342295 ])
14352296
14452306 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
14462307 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
14472308 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1448 [AM_AUTOMAKE_VERSION([1.16.1])dnl
2309 [AM_AUTOMAKE_VERSION([1.16.3])dnl
14492310 m4_ifndef([AC_AUTOCONF_VERSION],
14502311 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
14512312 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
14522313
14532314 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
14542315
1455 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
2316 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
14562317 #
14572318 # This file is free software; the Free Software Foundation
14582319 # gives unlimited permission to copy and/or distribute it,
15042365
15052366 # AM_CONDITIONAL -*- Autoconf -*-
15062367
1507 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
2368 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
15082369 #
15092370 # This file is free software; the Free Software Foundation
15102371 # gives unlimited permission to copy and/or distribute it,
15352396 Usually this means the macro was only invoked conditionally.]])
15362397 fi])])
15372398
1538 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
2399 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
15392400 #
15402401 # This file is free software; the Free Software Foundation
15412402 # gives unlimited permission to copy and/or distribute it,
17262587
17272588 # Generate code to set up dependency tracking. -*- Autoconf -*-
17282589
1729 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
2590 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
17302591 #
17312592 # This file is free software; the Free Software Foundation
17322593 # gives unlimited permission to copy and/or distribute it,
17652626 done
17662627 if test $am_rc -ne 0; then
17672628 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
1768 for automatic dependency tracking. Try re-running configure with the
2629 for automatic dependency tracking. If GNU make was not used, consider
2630 re-running the configure script with MAKE="gmake" (or whatever is
2631 necessary). You can also try re-running configure with the
17692632 '--disable-dependency-tracking' option to at least be able to build
17702633 the package (albeit without support for automatic dependency tracking).])
17712634 fi
17922655
17932656 # Do all the work for Automake. -*- Autoconf -*-
17942657
1795 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
2658 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
17962659 #
17972660 # This file is free software; the Free Software Foundation
17982661 # gives unlimited permission to copy and/or distribute it,
19892852 done
19902853 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
19912854
1992 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
2855 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
19932856 #
19942857 # This file is free software; the Free Software Foundation
19952858 # gives unlimited permission to copy and/or distribute it,
20102873 fi
20112874 AC_SUBST([install_sh])])
20122875
2013 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
2876 # Copyright (C) 2003-2020 Free Software Foundation, Inc.
20142877 #
20152878 # This file is free software; the Free Software Foundation
20162879 # gives unlimited permission to copy and/or distribute it,
20312894
20322895 # Check to see how 'make' treats includes. -*- Autoconf -*-
20332896
2034 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
2897 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
20352898 #
20362899 # This file is free software; the Free Software Foundation
20372900 # gives unlimited permission to copy and/or distribute it,
20742937
20752938 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
20762939
2077 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
2940 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
20782941 #
20792942 # This file is free software; the Free Software Foundation
20802943 # gives unlimited permission to copy and/or distribute it,
20952958 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
20962959 AC_REQUIRE_AUX_FILE([missing])dnl
20972960 if test x"${MISSING+set}" != xset; then
2098 case $am_aux_dir in
2099 *\ * | *\ *)
2100 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2101 *)
2102 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2103 esac
2961 MISSING="\${SHELL} '$am_aux_dir/missing'"
21042962 fi
21052963 # Use eval to expand $SHELL
21062964 if eval "$MISSING --is-lightweight"; then
21132971
21142972 # Helper functions for option handling. -*- Autoconf -*-
21152973
2116 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
2974 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
21172975 #
21182976 # This file is free software; the Free Software Foundation
21192977 # gives unlimited permission to copy and/or distribute it,
21423000 AC_DEFUN([_AM_IF_OPTION],
21433001 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
21443002
2145 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
3003 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
21463004 #
21473005 # This file is free software; the Free Software Foundation
21483006 # gives unlimited permission to copy and/or distribute it,
21893047 # For backward compatibility.
21903048 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
21913049
2192 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
3050 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
21933051 #
21943052 # This file is free software; the Free Software Foundation
21953053 # gives unlimited permission to copy and/or distribute it,
22083066
22093067 # Check to make sure that the build environment is sane. -*- Autoconf -*-
22103068
2211 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
3069 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
22123070 #
22133071 # This file is free software; the Free Software Foundation
22143072 # gives unlimited permission to copy and/or distribute it,
22893147 rm -f conftest.file
22903148 ])
22913149
2292 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
3150 # Copyright (C) 2009-2020 Free Software Foundation, Inc.
22933151 #
22943152 # This file is free software; the Free Software Foundation
22953153 # gives unlimited permission to copy and/or distribute it,
23493207 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
23503208 ])
23513209
2352 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
3210 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
23533211 #
23543212 # This file is free software; the Free Software Foundation
23553213 # gives unlimited permission to copy and/or distribute it,
23773235 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
23783236 AC_SUBST([INSTALL_STRIP_PROGRAM])])
23793237
2380 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
3238 # Copyright (C) 2006-2020 Free Software Foundation, Inc.
23813239 #
23823240 # This file is free software; the Free Software Foundation
23833241 # gives unlimited permission to copy and/or distribute it,
23963254
23973255 # Check how to create a tarball. -*- Autoconf -*-
23983256
2399 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
3257 # Copyright (C) 2004-2020 Free Software Foundation, Inc.
24003258 #
24013259 # This file is free software; the Free Software Foundation
24023260 # gives unlimited permission to copy and/or distribute it,
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
5252 MINGW*)
5353 file_conv=mingw
5454 ;;
55 CYGWIN*)
55 CYGWIN* | MSYS*)
5656 file_conv=cygwin
5757 ;;
5858 *)
6666 mingw/*)
6767 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6868 ;;
69 cygwin/*)
69 cygwin/* | msys/*)
7070 file=`cygpath -m "$file" || echo "$file"`
7171 ;;
7272 wine/*)
11 # Output a system dependent set of variables, describing how to set the
22 # run time search path of shared libraries in an executable.
33 #
4 # Copyright 1996-2016 Free Software Foundation, Inc.
4 # Copyright 1996-2020 Free Software Foundation, Inc.
55 # Taken from GNU libtool, 2001
66 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
77 #
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for dosfstools 4.2.
2 # Generated by GNU Autoconf 2.69 for dosfstools 4.2+git.
33 #
44 #
55 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
576576 # Identity of this package.
577577 PACKAGE_NAME='dosfstools'
578578 PACKAGE_TARNAME='dosfstools'
579 PACKAGE_VERSION='4.2'
580 PACKAGE_STRING='dosfstools 4.2'
579 PACKAGE_VERSION='4.2+git'
580 PACKAGE_STRING='dosfstools 4.2+git'
581581 PACKAGE_BUGREPORT=''
582582 PACKAGE_URL=''
583583
12971297 # Omit some internal or obsolete options to make the list less imposing.
12981298 # This message is too long to be a string in the A/UX 3.1 sh.
12991299 cat <<_ACEOF
1300 \`configure' configures dosfstools 4.2 to adapt to many kinds of systems.
1300 \`configure' configures dosfstools 4.2+git to adapt to many kinds of systems.
13011301
13021302 Usage: $0 [OPTION]... [VAR=VALUE]...
13031303
13681368
13691369 if test -n "$ac_init_help"; then
13701370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of dosfstools 4.2:";;
1371 short | recursive ) echo "Configuration of dosfstools 4.2+git:";;
13721372 esac
13731373 cat <<\_ACEOF
13741374
14741474 test -n "$ac_init_help" && exit $ac_status
14751475 if $ac_init_version; then
14761476 cat <<\_ACEOF
1477 dosfstools configure 4.2
1477 dosfstools configure 4.2+git
14781478 generated by GNU Autoconf 2.69
14791479
14801480 Copyright (C) 2012 Free Software Foundation, Inc.
18851885 This file contains any messages produced by compilers while
18861886 running configure, to aid debugging if configure makes a mistake.
18871887
1888 It was created by dosfstools $as_me 4.2, which was
1888 It was created by dosfstools $as_me 4.2+git, which was
18891889 generated by GNU Autoconf 2.69. Invocation command line was
18901890
18911891 $ $0 $@
24402440 am_aux_dir=`cd "$ac_aux_dir" && pwd`
24412441
24422442 if test x"${MISSING+set}" != xset; then
2443 case $am_aux_dir in
2444 *\ * | *\ *)
2445 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2446 *)
2447 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2448 esac
2443 MISSING="\${SHELL} '$am_aux_dir/missing'"
24492444 fi
24502445 # Use eval to expand $SHELL
24512446 if eval "$MISSING --is-lightweight"; then
27502745
27512746 # Define the identity of the package.
27522747 PACKAGE='dosfstools'
2753 VERSION='4.2'
2748 VERSION='4.2+git'
27542749
27552750
27562751 cat >>confdefs.h <<_ACEOF
55125507 }
55135508 fi
55145509
5515 ac_prog=ld
5516 if test "$GCC" = yes; then
5517 # Check if gcc -print-prog-name=ld gives a path.
5510 if test -n "$LD"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
5512 $as_echo_n "checking for ld... " >&6; }
5513 elif test "$GCC" = yes; then
55185514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
55195515 $as_echo_n "checking for ld used by $CC... " >&6; }
5520 case $host in
5521 *-*-mingw*)
5522 # gcc leaves a trailing carriage return which upsets mingw
5523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5524 *)
5525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5526 esac
5527 case $ac_prog in
5528 # Accept absolute paths.
5529 [\\/]* | ?:[\\/]*)
5530 re_direlt='/[^/][^/]*/\.\./'
5531 # Canonicalize the pathname of ld
5532 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5533 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5534 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5535 done
5536 test -z "$LD" && LD="$ac_prog"
5537 ;;
5538 "")
5539 # If it fails, then pretend we aren't using GCC.
5540 ac_prog=ld
5541 ;;
5542 *)
5543 # If it is relative, then search for the first ld in PATH.
5544 with_gnu_ld=unknown
5545 ;;
5546 esac
55475516 elif test "$with_gnu_ld" = yes; then
55485517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
55495518 $as_echo_n "checking for GNU ld... " >&6; }
55515520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
55525521 $as_echo_n "checking for non-GNU ld... " >&6; }
55535522 fi
5554 if ${acl_cv_path_LD+:} false; then :
5523 if test -n "$LD"; then
5524 # Let the user override the test with a path.
5525 :
5526 else
5527 if ${acl_cv_path_LD+:} false; then :
55555528 $as_echo_n "(cached) " >&6
55565529 else
5557 if test -z "$LD"; then
5558 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5559 for ac_dir in $PATH; do
5560 IFS="$acl_save_ifs"
5561 test -z "$ac_dir" && ac_dir=.
5562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5563 acl_cv_path_LD="$ac_dir/$ac_prog"
5564 # Check to see if the program is GNU ld. I'd rather use --version,
5565 # but apparently some variants of GNU ld only accept -v.
5566 # Break only if it was the GNU/non-GNU ld that we prefer.
5567 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5568 *GNU* | *'with BFD'*)
5569 test "$with_gnu_ld" != no && break
5570 ;;
5571 *)
5572 test "$with_gnu_ld" != yes && break
5573 ;;
5530
5531 acl_cv_path_LD= # Final result of this test
5532 ac_prog=ld # Program to search in $PATH
5533 if test "$GCC" = yes; then
5534 # Check if gcc -print-prog-name=ld gives a path.
5535 case $host in
5536 *-*-mingw*)
5537 # gcc leaves a trailing carriage return which upsets mingw
5538 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5539 *)
5540 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
5541 esac
5542 case $acl_output in
5543 # Accept absolute paths.
5544 [\\/]* | ?:[\\/]*)
5545 re_direlt='/[^/][^/]*/\.\./'
5546 # Canonicalize the pathname of ld
5547 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
5548 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
5549 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
5550 done
5551 # Got the pathname. No search in PATH is needed.
5552 acl_cv_path_LD="$acl_output"
5553 ac_prog=
5554 ;;
5555 "")
5556 # If it fails, then pretend we aren't using GCC.
5557 ;;
5558 *)
5559 # If it is relative, then search for the first ld in PATH.
5560 with_gnu_ld=unknown
5561 ;;
55745562 esac
55755563 fi
5576 done
5577 IFS="$acl_save_ifs"
5578 else
5579 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5580 fi
5581 fi
5582
5583 LD="$acl_cv_path_LD"
5564 if test -n "$ac_prog"; then
5565 # Search for $ac_prog in $PATH.
5566 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5567 for ac_dir in $PATH; do
5568 IFS="$acl_save_ifs"
5569 test -z "$ac_dir" && ac_dir=.
5570 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5571 acl_cv_path_LD="$ac_dir/$ac_prog"
5572 # Check to see if the program is GNU ld. I'd rather use --version,
5573 # but apparently some variants of GNU ld only accept -v.
5574 # Break only if it was the GNU/non-GNU ld that we prefer.
5575 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5576 *GNU* | *'with BFD'*)
5577 test "$with_gnu_ld" != no && break
5578 ;;
5579 *)
5580 test "$with_gnu_ld" != yes && break
5581 ;;
5582 esac
5583 fi
5584 done
5585 IFS="$acl_save_ifs"
5586 fi
5587 case $host in
5588 *-*-aix*)
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 #if defined __powerpc64__ || defined _ARCH_PPC64
5592 int ok;
5593 #else
5594 error fail
5595 #endif
5596
5597 _ACEOF
5598 if ac_fn_c_try_compile "$LINENO"; then :
5599 # The compiler produces 64-bit code. Add option '-b64' so that the
5600 # linker groks 64-bit object files.
5601 case "$acl_cv_path_LD " in
5602 *" -b64 "*) ;;
5603 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
5604 esac
5605
5606 fi
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 ;;
5609 sparc64-*-netbsd*)
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #if defined __sparcv9 || defined __arch64__
5613 int ok;
5614 #else
5615 error fail
5616 #endif
5617
5618 _ACEOF
5619 if ac_fn_c_try_compile "$LINENO"; then :
5620
5621 else
5622 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
5623 # so that the linker groks 32-bit object files.
5624 case "$acl_cv_path_LD " in
5625 *" -m elf32_sparc "*) ;;
5626 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
5627 esac
5628
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 ;;
5632 esac
5633
5634 fi
5635
5636 LD="$acl_cv_path_LD"
5637 fi
55845638 if test -n "$LD"; then
55855639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
55865640 $as_echo "$LD" >&6; }
55875641 else
55885642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55895643 $as_echo "no" >&6; }
5590 fi
5591 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5644 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5645 fi
55925646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
55935647 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
55945648 if ${acl_cv_prog_gnu_ld+:} false; then :
56455699
56465700
56475701
5648 acl_libdirstem=lib
5649 acl_libdirstem2=
5650 case "$host_os" in
5651 solaris*)
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5653 $as_echo_n "checking for 64-bit host... " >&6; }
5654 if ${gl_cv_solaris_64bit+:} false; then :
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
5703 $as_echo_n "checking 32-bit host C ABI... " >&6; }
5704 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$gl_cv_host_cpu_c_abi"; then
5708 case "$gl_cv_host_cpu_c_abi" in
5709 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
5710 gl_cv_host_cpu_c_abi_32bit=yes ;;
5711 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
5712 gl_cv_host_cpu_c_abi_32bit=no ;;
5713 *)
5714 gl_cv_host_cpu_c_abi_32bit=unknown ;;
5715 esac
5716 else
5717 case "$host_cpu" in
5718
5719 # CPUs that only support a 32-bit ABI.
5720 arc \
5721 | bfin \
5722 | cris* \
5723 | csky \
5724 | epiphany \
5725 | ft32 \
5726 | h8300 \
5727 | m68k \
5728 | microblaze | microblazeel \
5729 | nds32 | nds32le | nds32be \
5730 | nios2 | nios2eb | nios2el \
5731 | or1k* \
5732 | or32 \
5733 | sh | sh1234 | sh1234elb \
5734 | tic6x \
5735 | xtensa* )
5736 gl_cv_host_cpu_c_abi_32bit=yes
5737 ;;
5738
5739 # CPUs that only support a 64-bit ABI.
5740 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
5741 | mmix )
5742 gl_cv_host_cpu_c_abi_32bit=no
5743 ;;
5744
5745 i[34567]86 )
5746 gl_cv_host_cpu_c_abi_32bit=yes
5747 ;;
5748
5749 x86_64 )
5750 # On x86_64 systems, the C compiler may be generating code in one of
5751 # these ABIs:
5752 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
5753 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
5754 # with native Windows (mingw, MSVC).
5755 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
5756 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #if (defined __x86_64__ || defined __amd64__ \
5760 || defined _M_X64 || defined _M_AMD64) \
5761 && !(defined __ILP32__ || defined _ILP32)
5762 int ok;
5763 #else
5764 error fail
5765 #endif
5766
5767 _ACEOF
5768 if ac_fn_c_try_compile "$LINENO"; then :
5769 gl_cv_host_cpu_c_abi_32bit=no
5770 else
5771 gl_cv_host_cpu_c_abi_32bit=yes
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 ;;
5775
5776 arm* | aarch64 )
5777 # Assume arm with EABI.
5778 # On arm64 systems, the C compiler may be generating code in one of
5779 # these ABIs:
5780 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
5781 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
5782 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
5786 int ok;
5787 #else
5788 error fail
5789 #endif
5790
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"; then :
5793 gl_cv_host_cpu_c_abi_32bit=no
5794 else
5795 gl_cv_host_cpu_c_abi_32bit=yes
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 ;;
5799
5800 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
5801 # On hppa, the C compiler may be generating 32-bit code or 64-bit
5802 # code. In the latter case, it defines _LP64 and __LP64__.
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 #ifdef __LP64__
5806 int ok;
5807 #else
5808 error fail
5809 #endif
5810
5811 _ACEOF
5812 if ac_fn_c_try_compile "$LINENO"; then :
5813 gl_cv_host_cpu_c_abi_32bit=no
5814 else
5815 gl_cv_host_cpu_c_abi_32bit=yes
5816 fi
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 ;;
5819
5820 ia64* )
5821 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
5822 # 32-bit code. In the latter case, it defines _ILP32.
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 #ifdef _ILP32
5826 int ok;
5827 #else
5828 error fail
5829 #endif
5830
5831 _ACEOF
5832 if ac_fn_c_try_compile "$LINENO"; then :
5833 gl_cv_host_cpu_c_abi_32bit=yes
5834 else
5835 gl_cv_host_cpu_c_abi_32bit=no
5836 fi
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 ;;
5839
5840 mips* )
5841 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
5842 # at 32.
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
5846 int ok;
5847 #else
5848 error fail
5849 #endif
5850
5851 _ACEOF
5852 if ac_fn_c_try_compile "$LINENO"; then :
5853 gl_cv_host_cpu_c_abi_32bit=no
5854 else
5855 gl_cv_host_cpu_c_abi_32bit=yes
5856 fi
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 ;;
5859
5860 powerpc* )
5861 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
5862 # No need to distinguish them here; the caller may distinguish
5863 # them based on the OS.
5864 # On powerpc64 systems, the C compiler may still be generating
5865 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
5866 # be generating 64-bit code.
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 #if defined __powerpc64__ || defined _ARCH_PPC64
5870 int ok;
5871 #else
5872 error fail
5873 #endif
5874
5875 _ACEOF
5876 if ac_fn_c_try_compile "$LINENO"; then :
5877 gl_cv_host_cpu_c_abi_32bit=no
5878 else
5879 gl_cv_host_cpu_c_abi_32bit=yes
5880 fi
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 ;;
5883
5884 rs6000 )
5885 gl_cv_host_cpu_c_abi_32bit=yes
5886 ;;
5887
5888 riscv32 | riscv64 )
5889 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
5890 # Size of 'long' and 'void *':
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893 #if defined __LP64__
5894 int ok;
5895 #else
5896 error fail
5897 #endif
5898
5899 _ACEOF
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901 gl_cv_host_cpu_c_abi_32bit=no
5902 else
5903 gl_cv_host_cpu_c_abi_32bit=yes
5904 fi
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 ;;
5907
5908 s390* )
5909 # On s390x, the C compiler may be generating 64-bit (= s390x) code
5910 # or 31-bit (= s390) code.
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 #if defined __LP64__ || defined __s390x__
5914 int ok;
5915 #else
5916 error fail
5917 #endif
5918
5919 _ACEOF
5920 if ac_fn_c_try_compile "$LINENO"; then :
5921 gl_cv_host_cpu_c_abi_32bit=no
5922 else
5923 gl_cv_host_cpu_c_abi_32bit=yes
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 ;;
5927
5928 sparc | sparc64 )
5929 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
5930 # C compiler still generates 32-bit code.
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 #if defined __sparcv9 || defined __arch64__
5934 int ok;
5935 #else
5936 error fail
5937 #endif
5938
5939 _ACEOF
5940 if ac_fn_c_try_compile "$LINENO"; then :
5941 gl_cv_host_cpu_c_abi_32bit=no
5942 else
5943 gl_cv_host_cpu_c_abi_32bit=yes
5944 fi
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 ;;
5947
5948 *)
5949 gl_cv_host_cpu_c_abi_32bit=unknown
5950 ;;
5951 esac
5952 fi
5953
5954 fi
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
5956 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
5957
5958 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
5959
5960
5961
5962
5963
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
5965 $as_echo_n "checking for ELF binary format... " >&6; }
5966 if ${gl_cv_elf+:} false; then :
56555967 $as_echo_n "(cached) " >&6
56565968 else
56575969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56585970 /* end confdefs.h. */
5659
5660 #ifdef _LP64
5661 sixtyfour bits
5662 #endif
5971 #ifdef __ELF__
5972 Extensible Linking Format
5973 #endif
56635974
56645975 _ACEOF
56655976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5666 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5667 gl_cv_solaris_64bit=yes
5668 else
5669 gl_cv_solaris_64bit=no
5977 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
5978 gl_cv_elf=yes
5979 else
5980 gl_cv_elf=no
56705981 fi
56715982 rm -f conftest*
56725983
56735984
56745985 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5676 $as_echo "$gl_cv_solaris_64bit" >&6; }
5677 if test $gl_cv_solaris_64bit = yes; then
5678 acl_libdirstem=lib/64
5679 case "$host_cpu" in
5680 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5681 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5682 esac
5683 fi
5684 ;;
5685 *)
5686 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5687 if test -n "$searchpath"; then
5688 acl_save_IFS="${IFS= }"; IFS=":"
5689 for searchdir in $searchpath; do
5690 if test -d "$searchdir"; then
5691 case "$searchdir" in
5692 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5693 */../ | */.. )
5694 # Better ignore directories of this form. They are misleading.
5695 ;;
5696 *) searchdir=`cd "$searchdir" && pwd`
5697 case "$searchdir" in
5698 */lib64 ) acl_libdirstem=lib64 ;;
5699 esac ;;
5700 esac
5701 fi
5702 done
5703 IFS="$acl_save_IFS"
5704 fi
5705 ;;
5706 esac
5707 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5708
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
5987 $as_echo "$gl_cv_elf" >&6; }
5988 if test $gl_cv_elf; then
5989 # Extract the ELF class of a file (5th byte) in decimal.
5990 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
5991 if od -A x < /dev/null >/dev/null 2>/dev/null; then
5992 # Use POSIX od.
5993 func_elfclass ()
5994 {
5995 od -A n -t d1 -j 4 -N 1
5996 }
5997 else
5998 # Use BSD hexdump.
5999 func_elfclass ()
6000 {
6001 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
6002 echo
6003 }
6004 fi
6005 case $HOST_CPU_C_ABI_32BIT in
6006 yes)
6007 # 32-bit ABI.
6008 acl_is_expected_elfclass ()
6009 {
6010 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
6011 }
6012 ;;
6013 no)
6014 # 64-bit ABI.
6015 acl_is_expected_elfclass ()
6016 {
6017 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
6018 }
6019 ;;
6020 *)
6021 # Unknown.
6022 acl_is_expected_elfclass ()
6023 {
6024 :
6025 }
6026 ;;
6027 esac
6028 else
6029 acl_is_expected_elfclass ()
6030 {
6031 :
6032 }
6033 fi
6034
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
6036 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
6037 if ${acl_cv_libdirstems+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 acl_libdirstem=lib
6041 acl_libdirstem2=
6042 acl_libdirstem3=
6043 case "$host_os" in
6044 solaris*)
6045 if test $HOST_CPU_C_ABI_32BIT = no; then
6046 acl_libdirstem2=lib/64
6047 case "$host_cpu" in
6048 sparc*) acl_libdirstem3=lib/sparcv9 ;;
6049 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
6050 esac
6051 fi
6052 ;;
6053 *)
6054 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
6055 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6056 if test $HOST_CPU_C_ABI_32BIT != no; then
6057 # 32-bit or unknown ABI.
6058 if test -d /usr/lib32; then
6059 acl_libdirstem2=lib32
6060 fi
6061 fi
6062 if test $HOST_CPU_C_ABI_32BIT != yes; then
6063 # 64-bit or unknown ABI.
6064 if test -d /usr/lib64; then
6065 acl_libdirstem3=lib64
6066 fi
6067 fi
6068 if test -n "$searchpath"; then
6069 acl_save_IFS="${IFS= }"; IFS=":"
6070 for searchdir in $searchpath; do
6071 if test -d "$searchdir"; then
6072 case "$searchdir" in
6073 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
6074 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
6075 */../ | */.. )
6076 # Better ignore directories of this form. They are misleading.
6077 ;;
6078 *) searchdir=`cd "$searchdir" && pwd`
6079 case "$searchdir" in
6080 */lib32 ) acl_libdirstem2=lib32 ;;
6081 */lib64 ) acl_libdirstem3=lib64 ;;
6082 esac ;;
6083 esac
6084 fi
6085 done
6086 IFS="$acl_save_IFS"
6087 if test $HOST_CPU_C_ABI_32BIT = yes; then
6088 # 32-bit ABI.
6089 acl_libdirstem3=
6090 fi
6091 if test $HOST_CPU_C_ABI_32BIT = no; then
6092 # 64-bit ABI.
6093 acl_libdirstem2=
6094 fi
6095 fi
6096 ;;
6097 esac
6098 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6099 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
6100 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
6101
6102 fi
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
6104 $as_echo "$acl_cv_libdirstems" >&6; }
6105 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
6106 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
6107 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
57096108
57106109
57116110
57266125
57276126 eval additional_includedir=\"$includedir\"
57286127 eval additional_libdir=\"$libdir\"
6128 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
6129 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57296130
57306131 exec_prefix="$acl_save_exec_prefix"
57316132 prefix="$acl_save_prefix"
57466147
57476148 eval additional_includedir=\"$includedir\"
57486149 eval additional_libdir=\"$libdir\"
6150 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
6151 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57496152
57506153 exec_prefix="$acl_save_exec_prefix"
57516154 prefix="$acl_save_prefix"
57536156 else
57546157 additional_includedir="$withval/include"
57556158 additional_libdir="$withval/$acl_libdirstem"
5756 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5757 && ! test -d "$withval/$acl_libdirstem"; then
5758 additional_libdir="$withval/$acl_libdirstem2"
5759 fi
6159 additional_libdir2="$withval/$acl_libdirstem2"
6160 additional_libdir3="$withval/$acl_libdirstem3"
57606161 fi
57616162 fi
57626163
57636164 fi
57646165
6166 if test "X$additional_libdir2" = "X$additional_libdir"; then
6167 additional_libdir2=
6168 fi
6169 if test "X$additional_libdir3" = "X$additional_libdir"; then
6170 additional_libdir3=
6171 fi
57656172 LIBICONV=
57666173 LTLIBICONV=
57676174 INCICONV=
58076214 shrext=
58086215 fi
58096216 if test $use_additional = yes; then
5810 dir="$additional_libdir"
5811 if test -n "$acl_shlibext"; then
5812 if test -f "$dir/$libname$shrext"; then
5813 found_dir="$dir"
5814 found_so="$dir/$libname$shrext"
5815 else
5816 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5817 ver=`(cd "$dir" && \
5818 for f in "$libname$shrext".*; do echo "$f"; done \
5819 | sed -e "s,^$libname$shrext\\\\.,," \
5820 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5821 | sed 1q ) 2>/dev/null`
5822 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5823 found_dir="$dir"
5824 found_so="$dir/$libname$shrext.$ver"
5825 fi
5826 else
5827 eval library_names=\"$acl_library_names_spec\"
5828 for f in $library_names; do
5829 if test -f "$dir/$f"; then
5830 found_dir="$dir"
5831 found_so="$dir/$f"
5832 break
5833 fi
5834 done
5835 fi
5836 fi
5837 fi
5838 if test "X$found_dir" = "X"; then
5839 if test -f "$dir/$libname.$acl_libext"; then
5840 found_dir="$dir"
5841 found_a="$dir/$libname.$acl_libext"
5842 fi
5843 fi
5844 if test "X$found_dir" != "X"; then
5845 if test -f "$dir/$libname.la"; then
5846 found_la="$dir/$libname.la"
5847 fi
5848 fi
5849 fi
5850 if test "X$found_dir" = "X"; then
5851 for x in $LDFLAGS $LTLIBICONV; do
5852
5853 acl_save_prefix="$prefix"
5854 prefix="$acl_final_prefix"
5855 acl_save_exec_prefix="$exec_prefix"
5856 exec_prefix="$acl_final_exec_prefix"
5857 eval x=\"$x\"
5858 exec_prefix="$acl_save_exec_prefix"
5859 prefix="$acl_save_prefix"
5860
5861 case "$x" in
5862 -L*)
5863 dir=`echo "X$x" | sed -e 's/^X-L//'`
5864 if test -n "$acl_shlibext"; then
5865 if test -f "$dir/$libname$shrext"; then
6217 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
6218 if test "X$found_dir" = "X"; then
6219 eval dir=\$$additional_libdir_variable
6220 if test -n "$dir"; then
6221 if test -n "$acl_shlibext"; then
6222 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
58666223 found_dir="$dir"
58676224 found_so="$dir/$libname$shrext"
58686225 else
58726229 | sed -e "s,^$libname$shrext\\\\.,," \
58736230 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
58746231 | sed 1q ) 2>/dev/null`
5875 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6232 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
58766233 found_dir="$dir"
58776234 found_so="$dir/$libname$shrext.$ver"
58786235 fi
58796236 else
58806237 eval library_names=\"$acl_library_names_spec\"
58816238 for f in $library_names; do
5882 if test -f "$dir/$f"; then
6239 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
58836240 found_dir="$dir"
58846241 found_so="$dir/$f"
58856242 break
58896246 fi
58906247 fi
58916248 if test "X$found_dir" = "X"; then
5892 if test -f "$dir/$libname.$acl_libext"; then
6249 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
6250 found_dir="$dir"
6251 found_a="$dir/$libname.$acl_libext"
6252 fi
6253 fi
6254 if test "X$found_dir" != "X"; then
6255 if test -f "$dir/$libname.la"; then
6256 found_la="$dir/$libname.la"
6257 fi
6258 fi
6259 fi
6260 fi
6261 done
6262 fi
6263 if test "X$found_dir" = "X"; then
6264 for x in $LDFLAGS $LTLIBICONV; do
6265
6266 acl_save_prefix="$prefix"
6267 prefix="$acl_final_prefix"
6268 acl_save_exec_prefix="$exec_prefix"
6269 exec_prefix="$acl_final_exec_prefix"
6270 eval x=\"$x\"
6271 exec_prefix="$acl_save_exec_prefix"
6272 prefix="$acl_save_prefix"
6273
6274 case "$x" in
6275 -L*)
6276 dir=`echo "X$x" | sed -e 's/^X-L//'`
6277 if test -n "$acl_shlibext"; then
6278 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
6279 found_dir="$dir"
6280 found_so="$dir/$libname$shrext"
6281 else
6282 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6283 ver=`(cd "$dir" && \
6284 for f in "$libname$shrext".*; do echo "$f"; done \
6285 | sed -e "s,^$libname$shrext\\\\.,," \
6286 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6287 | sed 1q ) 2>/dev/null`
6288 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
6289 found_dir="$dir"
6290 found_so="$dir/$libname$shrext.$ver"
6291 fi
6292 else
6293 eval library_names=\"$acl_library_names_spec\"
6294 for f in $library_names; do
6295 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
6296 found_dir="$dir"
6297 found_so="$dir/$f"
6298 break
6299 fi
6300 done
6301 fi
6302 fi
6303 fi
6304 if test "X$found_dir" = "X"; then
6305 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
58936306 found_dir="$dir"
58946307 found_a="$dir/$libname.$acl_libext"
58956308 fi
59116324 if test "X$found_so" != "X"; then
59126325 if test "$enable_rpath" = no \
59136326 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5914 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6327 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
6328 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
59156329 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
59166330 else
59176331 haveit=
59906404 fi
59916405 additional_includedir="$basedir/include"
59926406 ;;
6407 */$acl_libdirstem3 | */$acl_libdirstem3/)
6408 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
6409 if test "$name" = 'iconv'; then
6410 LIBICONV_PREFIX="$basedir"
6411 fi
6412 additional_includedir="$basedir/include"
6413 ;;
59936414 esac
59946415 if test "X$additional_includedir" != "X"; then
59956416 if test "X$additional_includedir" != "X/usr/include"; then
60356456 for dep in $dependency_libs; do
60366457 case "$dep" in
60376458 -L*)
6038 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6039 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6040 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6459 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6460 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
6461 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
6462 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
60416463 haveit=
6042 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6043 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6464 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
6465 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
6466 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
60446467 if test -n "$GCC"; then
60456468 case $host_os in
60466469 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
60596482 exec_prefix="$acl_save_exec_prefix"
60606483 prefix="$acl_save_prefix"
60616484
6062 if test "X$x" = "X-L$additional_libdir"; then
6485 if test "X$x" = "X-L$dependency_libdir"; then
60636486 haveit=yes
60646487 break
60656488 fi
60666489 done
60676490 if test -z "$haveit"; then
6068 if test -d "$additional_libdir"; then
6069 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6491 if test -d "$dependency_libdir"; then
6492 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
60706493 fi
60716494 fi
60726495 haveit=
60806503 exec_prefix="$acl_save_exec_prefix"
60816504 prefix="$acl_save_prefix"
60826505
6083 if test "X$x" = "X-L$additional_libdir"; then
6506 if test "X$x" = "X-L$dependency_libdir"; then
60846507 haveit=yes
60856508 break
60866509 fi
60876510 done
60886511 if test -z "$haveit"; then
6089 if test -d "$additional_libdir"; then
6090 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6512 if test -d "$dependency_libdir"; then
6513 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
60916514 fi
60926515 fi
60936516 fi
61656588 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
61666589 done
61676590 fi
6168
61696591
61706592
61716593
63776799 #endif
63786800 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
63796801 provided. */
6380 if (/* Try standardized names. */
6381 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6382 /* Try IRIX, OSF/1 names. */
6383 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6384 /* Try AIX names. */
6385 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6386 /* Try HP-UX names. */
6387 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6388 result |= 16;
6802 {
6803 /* Try standardized names. */
6804 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
6805 /* Try IRIX, OSF/1 names. */
6806 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
6807 /* Try AIX names. */
6808 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
6809 /* Try HP-UX names. */
6810 iconv_t cd4 = iconv_open ("utf8", "eucJP");
6811 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
6812 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
6813 result |= 16;
6814 if (cd1 != (iconv_t)(-1))
6815 iconv_close (cd1);
6816 if (cd2 != (iconv_t)(-1))
6817 iconv_close (cd2);
6818 if (cd3 != (iconv_t)(-1))
6819 iconv_close (cd3);
6820 if (cd4 != (iconv_t)(-1))
6821 iconv_close (cd4);
6822 }
63896823 return result;
63906824
63916825 ;
64756909 $am_cv_proto_iconv" >&5
64766910 $as_echo "
64776911 $am_cv_proto_iconv" >&6; }
6912 else
6913 am_cv_proto_iconv_arg1=""
6914 fi
64786915
64796916 cat >>confdefs.h <<_ACEOF
64806917 #define ICONV_CONST $am_cv_proto_iconv_arg1
64816918 _ACEOF
64826919
64836920
6484 fi
64856921
64866922 fi
64876923
71157551 # report actual input values of CONFIG_FILES etc. instead of their
71167552 # values after options handling.
71177553 ac_log="
7118 This file was extended by dosfstools $as_me 4.2, which was
7554 This file was extended by dosfstools $as_me 4.2+git, which was
71197555 generated by GNU Autoconf 2.69. Invocation command line was
71207556
71217557 CONFIG_FILES = $CONFIG_FILES
71727608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71737609 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
71747610 ac_cs_version="\\
7175 dosfstools config.status 4.2
7611 dosfstools config.status 4.2+git
71767612 configured by $0, generated by GNU Autoconf 2.69,
71777613 with options \\"\$ac_cs_config\\"
71787614
78108246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
78118247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
78128248 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7813 for automatic dependency tracking. Try re-running configure with the
8249 for automatic dependency tracking. If GNU make was not used, consider
8250 re-running the configure script with MAKE=\"gmake\" (or whatever is
8251 necessary). You can also try re-running configure with the
78148252 '--disable-dependency-tracking' option to at least be able to build
78158253 the package (albeit without support for automatic dependency tracking).
78168254 See \`config.log' for more details" "$LINENO" 5; }
1313 # You should have received a copy of the GNU General Public License
1414 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
16 AC_INIT([dosfstools], [4.2])
16 AC_INIT([dosfstools], [4.2+git])
1717 AC_SUBST([RELEASE_DATE], [2021-01-31])
1818 AM_INIT_AUTOMAKE([1.11 foreign subdir-objects parallel-tests])
1919
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2018-03-11.20; # UTC
3 scriptversion=2020-11-14.01; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
6868 # Desired mode of installed file.
6969 mode=0755
7070
71 # Create dirs (including intermediate dirs) using mode 755.
72 # This is like GNU 'install' as of coreutils 8.32 (2020).
73 mkdir_umask=22
74
75 backupsuffix=
7176 chgrpcmd=
7277 chmodcmd=$chmodprog
7378 chowncmd=
98103 --version display version info and exit.
99104
100105 -c (ignored)
101 -C install only if different (preserve the last data modification time)
106 -C install only if different (preserve data modification time)
102107 -d create directories instead of installing files.
103108 -g GROUP $chgrpprog installed files to GROUP.
104109 -m MODE $chmodprog installed files to MODE.
105110 -o USER $chownprog installed files to USER.
111 -p pass -p to $cpprog.
106112 -s $stripprog installed files.
113 -S SUFFIX attempt to back up existing files, with suffix SUFFIX.
107114 -t DIRECTORY install into DIRECTORY.
108115 -T report an error if DSTFILE is a directory.
109116
110117 Environment variables override the default commands:
111118 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
112119 RMPROG STRIPPROG
120
121 By default, rm is invoked with -f; when overridden with RMPROG,
122 it's up to you to specify -f if you want it.
123
124 If -S is not specified, no backups are attempted.
125
126 Email bug reports to bug-automake@gnu.org.
127 Automake home page: https://www.gnu.org/software/automake/
113128 "
114129
115130 while test $# -ne 0; do
136151 -o) chowncmd="$chownprog $2"
137152 shift;;
138153
154 -p) cpprog="$cpprog -p";;
155
139156 -s) stripcmd=$stripprog;;
157
158 -S) backupsuffix="$2"
159 shift;;
140160
141161 -t)
142162 is_target_a_directory=always
254274 dstdir=$dst
255275 test -d "$dstdir"
256276 dstdir_status=$?
277 # Don't chown directories that already exist.
278 if test $dstdir_status = 0; then
279 chowncmd=""
280 fi
257281 else
258282
259283 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
300324 if test $dstdir_status != 0; then
301325 case $posix_mkdir in
302326 '')
303 # Create intermediate dirs using mode 755 as modified by the umask.
304 # This is like FreeBSD 'install' as of 1997-10-28.
305 umask=`umask`
306 case $stripcmd.$umask in
307 # Optimize common cases.
308 *[2367][2367]) mkdir_umask=$umask;;
309 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
310
311 *[0-7])
312 mkdir_umask=`expr $umask + 22 \
313 - $umask % 100 % 40 + $umask % 20 \
314 - $umask % 10 % 4 + $umask % 2
315 `;;
316 *) mkdir_umask=$umask,go-w;;
317 esac
318
319327 # With -d, create the new directory with the user-specified mode.
320328 # Otherwise, rely on $mkdir_umask.
321329 if test -n "$dir_arg"; then
325333 fi
326334
327335 posix_mkdir=false
328 case $umask in
329 *[123567][0-7][0-7])
330 # POSIX mkdir -p sets u+wx bits regardless of umask, which
331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
332 ;;
333 *)
334 # Note that $RANDOM variable is not portable (e.g. dash); Use it
335 # here however when possible just to lower collision chance.
336 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
337
338 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
339
340 # Because "mkdir -p" follows existing symlinks and we likely work
341 # directly in world-writeable /tmp, make sure that the '$tmpdir'
342 # directory is successfully created first before we actually test
343 # 'mkdir -p' feature.
344 if (umask $mkdir_umask &&
345 $mkdirprog $mkdir_mode "$tmpdir" &&
346 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
347 then
348 if test -z "$dir_arg" || {
349 # Check for POSIX incompatibilities with -m.
350 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
351 # other-writable bit of parent directory when it shouldn't.
352 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
353 test_tmpdir="$tmpdir/a"
354 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
355 case $ls_ld_tmpdir in
356 d????-?r-*) different_mode=700;;
357 d????-?--*) different_mode=755;;
358 *) false;;
359 esac &&
360 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
361 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
362 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
363 }
364 }
365 then posix_mkdir=:
366 fi
367 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
368 else
369 # Remove any dirs left behind by ancient mkdir implementations.
370 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
371 fi
372 trap '' 0;;
373 esac;;
336 # The $RANDOM variable is not portable (e.g., dash). Use it
337 # here however when possible just to lower collision chance.
338 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
339
340 trap '
341 ret=$?
342 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
343 exit $ret
344 ' 0
345
346 # Because "mkdir -p" follows existing symlinks and we likely work
347 # directly in world-writeable /tmp, make sure that the '$tmpdir'
348 # directory is successfully created first before we actually test
349 # 'mkdir -p'.
350 if (umask $mkdir_umask &&
351 $mkdirprog $mkdir_mode "$tmpdir" &&
352 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
353 then
354 if test -z "$dir_arg" || {
355 # Check for POSIX incompatibilities with -m.
356 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
357 # other-writable bit of parent directory when it shouldn't.
358 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
359 test_tmpdir="$tmpdir/a"
360 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
361 case $ls_ld_tmpdir in
362 d????-?r-*) different_mode=700;;
363 d????-?--*) different_mode=755;;
364 *) false;;
365 esac &&
366 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
367 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
368 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
369 }
370 }
371 then posix_mkdir=:
372 fi
373 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
374 else
375 # Remove any dirs left behind by ancient mkdir implementations.
376 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
377 fi
378 trap '' 0;;
374379 esac
375380
376381 if
381386 then :
382387 else
383388
384 # The umask is ridiculous, or mkdir does not conform to POSIX,
389 # mkdir does not conform to POSIX,
385390 # or it failed possibly due to a race condition. Create the
386391 # directory the slow way, step by step, checking for races as we go.
387392
410415 prefixes=
411416 else
412417 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
418 (umask $mkdir_umask &&
414419 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415420 # Don't fail if two instances are running concurrently.
416421 test -d "$prefix" || exit 1
450455 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
451456
452457 # Copy the file name to the temp name.
453 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
458 (umask $cp_umask &&
459 { test -z "$stripcmd" || {
460 # Create $dsttmp read-write so that cp doesn't create it read-only,
461 # which would cause strip to fail.
462 if test -z "$doit"; then
463 : >"$dsttmp" # No need to fork-exec 'touch'.
464 else
465 $doit touch "$dsttmp"
466 fi
467 }
468 } &&
469 $doit_exec $cpprog "$src" "$dsttmp") &&
454470
455471 # and set any options; do chmod last to preserve setuid bits.
456472 #
476492 then
477493 rm -f "$dsttmp"
478494 else
495 # If $backupsuffix is set, and the file being installed
496 # already exists, attempt a backup. Don't worry if it fails,
497 # e.g., if mv doesn't support -f.
498 if test -n "$backupsuffix" && test -f "$dst"; then
499 $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
500 fi
501
479502 # Rename the file to the real destination.
480503 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
481504
490513 # file should still install successfully.
491514 {
492515 test ! -f "$dst" ||
493 $doit $rmcmd -f "$dst" 2>/dev/null ||
516 $doit $rmcmd "$dst" 2>/dev/null ||
494517 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
495 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
518 { $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
496519 } ||
497520 { echo "$0: cannot unlink or rename $dst" >&2
498521 (exit 1); exit 1
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
181181 }
182182
183183
184 static void usage(int error, int usage_only)
184 static void usage(char *name, int error, int usage_only)
185185 {
186186 FILE *f = error ? stderr : stdout;
187187 int status = error ? 1 : 0;
188188
189 fprintf(f, "Usage: fatlabel [OPTIONS] DEVICE [NEW]\n");
189 fprintf(f, "fatlabel " VERSION " (" VERSION_DATE ")\n");
190 fprintf(f, "Usage: %s [OPTIONS] DEVICE [NEW]\n", name);
190191 if (usage_only)
191192 exit(status);
192193
239240 codepage = strtol(optarg, &tmp, 10);
240241 if (!*optarg || isspace(*optarg) || *tmp || errno || codepage < 0 || codepage > INT_MAX) {
241242 fprintf(stderr, "Invalid codepage : %s\n", optarg);
242 usage(1, 0);
243 usage(argv[0], 1, 0);
243244 }
244245 if (!set_dos_codepage(codepage))
245 usage(1, 0);
246 usage(argv[0], 1, 0);
246247 break;
247248
248249 case 'V':
251252 break;
252253
253254 case 'h':
254 usage(0, 0);
255 usage(argv[0], 0, 0);
255256 break;
256257
257258 case '?':
258 usage(1, 0);
259 usage(argv[0], 1, 0);
259260 exit(1);
260261
261262 default:
273274 } else if (optind == argc - 1) {
274275 change = false;
275276 } else {
276 usage(1, 1);
277 usage(argv[0], 1, 1);
277278 }
278279
279280 if (change || reset)
123123 rw = interactive = 1;
124124 check_atari();
125125
126 printf("fsck.fat " VERSION " (" VERSION_DATE ")\n");
127
126128 while ((c = getopt_long(argc, argv, "Aac:d:bfF:lnprStu:UvVwy",
127129 long_options, NULL)) != -1)
128130 switch (c) {
227229 if (optind != argc - 1)
228230 usage(argv[0], 2);
229231
230 printf("fsck.fat " VERSION " (" VERSION_DATE ")\n");
231232 fs_open(argv[optind], rw);
232233
233234 read_boot(&fs);
10941094 partition[3] = 0;
10951095
10961096 /* Partition type */
1097 if (le16toh(bs.heads) > 254 || le16toh(bs.secs_track) > 63) { /* CHS values are out of range for MBR, use LBA */
1097 if (le16toh(bs.heads) > 255 || le16toh(bs.secs_track) > 63) { /* CHS values are out of range for MBR, use LBA */
10981098 if (size_fat != 32)
10991099 partition[4] = 0x0E; /* BIG FAT16 (LBA) */
11001100 else
11111111 partition[4] = 0x0C; /* FAT32 (LBA) */
11121112
11131113 /* CHS address of the last sector */
1114 if (le16toh(bs.heads) > 254 || le16toh(bs.secs_track) > 63 || num_sectors >= le16toh(bs.secs_track) * le16toh(bs.heads) * 1024) {
1114 if (le16toh(bs.heads) > 255 || le16toh(bs.secs_track) > 63 || num_sectors >= le16toh(bs.secs_track) * le16toh(bs.heads) * 1024) {
11151115 /* If CHS address is too large use tuple (1023, 254, 63) */
11161116 partition[5] = 254;
11171117 partition[6] = 255;
12151215 device_name, le16toh(bs.heads),
12161216 (le16toh(bs.heads) != 1) ? "s" : "", le16toh(bs.secs_track),
12171217 (le16toh(bs.secs_track) != 1) ? "s" : "");
1218 printf("hidden sectors 0x%04x;\n", hidden_sectors);
1218 printf("hidden sectors %u;\n", hidden_sectors);
12191219 printf("logical sector size is %d,\n", sector_size);
12201220 printf("using 0x%02x media descriptor, with %u sectors;\n",
12211221 (int)(bs.media), (unsigned)num_sectors);
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 2011-2018 Free Software Foundation, Inc.
5 # Copyright (C) 2011-2020 Free Software Foundation, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
4141 {
4242 cat <<END
4343 Usage:
44 test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
45 [--expect-failure={yes|no}] [--color-tests={yes|no}]
46 [--enable-hard-errors={yes|no}] [--]
44 test-driver --test-name NAME --log-file PATH --trs-file PATH
45 [--expect-failure {yes|no}] [--color-tests {yes|no}]
46 [--enable-hard-errors {yes|no}] [--]
4747 TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
48
4849 The '--test-name', '--log-file' and '--trs-file' options are mandatory.
50 See the GNU Automake documentation for information.
4951 END
5052 }
5153
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.3 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
298298 bases='$(TEST_LOGS)'; \
299299 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
300300 bases=`echo $$bases`
301 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
301302 RECHECK_LOGS = $(TEST_LOGS)
302303 AM_RECURSIVE_TARGETS = check recheck
303304 TEST_SUITE_LOG = test-suite.log
708709 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
709710 fi; \
710711 echo "$${col}$$br$${std}"; \
711 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
712 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
712713 echo "$${col}$$br$${std}"; \
713714 create_testsuite_report --maybe-color; \
714715 echo "$$col$$br$$std"; \
4040 fi
4141
4242
43 if [ -f "$testname.args" ]; then
44 ARGS=$(cat "$testname.args")
43 if [ -f "${srcdir}/${testname}.args" ]; then
44 ARGS=$(cat "${srcdir}/${testname}.args")
4545 else
4646 ARGS=
4747 fi