Suggested by Jonas Termansen <sortie@maxsi.org>.
* m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
* m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
lt_cv_sys_argz_works.
* m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
ac_cv_func_calloc_0_nonnull.
* m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
--enable-cross-guesses for gl_cv_func_realpath_works.
* m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
gl_cv_func_cbrtl_ieee.
* m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
gl_cv_func_ceil_ieee.
* m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
gl_cv_func_ceilf_ieee.
* m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
gl_cv_func_ceill_ieee.
* m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
ac_cv_func_chown_works.
(gl_FUNC_CHOWN): Obey --enable-cross-guesses for
gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
* m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
--enable-cross-guesses for gl_cv_struct_dirent_d_ino.
* m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
* m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
gl_cv_func_expl_works.
* m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
gl_cv_func_expm1_ieee.
* m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
gl_cv_func_expm1l_works.
* m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
gl_cv_func_open_directory_works.
* m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
--enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
(gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
gl_cv_func_fchownat_empty_filename_works.
* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
gl_cv_func_fdopendir_works.
* m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
gl_cv_func_floor_ieee.
* m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
gl_cv_func_floorf_ieee.
* m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
gl_cv_func_fma_works.
* m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
gl_cv_func_fmaf_works.
* m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
gl_cv_func_fmal_works.
* m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
gl_cv_func_fmod_ieee.
* m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
gl_cv_func_fmodf_ieee.
* m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
gl_cv_func_fmodl_ieee.
* m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
gl_cv_func_fpurge_works.
* m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
--enable-cross-guesses for gl_cv_func_getcwd_path_max.
* m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
gl_cv_func_getcwd_null.
(gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
* m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
gl_cv_func_working_getdelim.
* m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
(gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
gl_cv_func_getgroups_works.
* m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
am_cv_func_working_getline.
* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
for gl_cv_func_getopt_gnu.
* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
--enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
* m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
gl_cv_func_hypot_ieee.
* m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
gl_cv_func_hypotf_ieee.
* m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
gl_cv_func_hypotl_ieee.
* m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
--enable-cross-guesses for gl_cv_func_iconv_supports_utf.
* m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
gl_cv_func_link_works.
* m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
gl_cv_func_linkat_slash.
* m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
gl_cv_func_log_ieee.
* m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
gl_cv_func_logf_ieee.
* m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
gl_cv_func_logl_works.
* m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
gl_cv_func_log10_ieee.
* m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
gl_cv_func_log10f_ieee.
* m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
gl_cv_func_log10l_works.
* m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
gl_cv_func_log1p_ieee.
* m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
gl_cv_func_log1pf_ieee.
* m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
gl_cv_func_log1pl_ieee.
* m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
gl_cv_func_log2_ieee.
* m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
gl_cv_func_log2f_ieee.
* m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
--enable-cross-guesses for
gl_cv_func_lstat_dereferences_slashed_symlink.
* m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
* m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
gl_cv_C_locale_sans_EILSEQ.
* m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
gl_cv_func_memchr_works.
* m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
gl_cv_func_memmem_works_always.
(gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
gl_cv_func_memmem_works_fast.
* m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
gl_cv_func_mkdir_trailing_slash_works,
gl_cv_func_mkdir_trailing_dot_works.
* m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
gl_cv_func_mkfifo_works.
* m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
gl_cv_func_mknod_works.
* m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
gl_cv_func_working_mkstemp.
* m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
gl_cv_func_working_mktime.
* m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
gl_cv_func_modf_ieee.
* m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
gl_cv_func_modff_ieee.
* m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
gl_cv_func_modfl_ieee.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
gl_cv_func_nanosleep.
* m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
gl_cv_func_perror_works.
* m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
gl_cv_func_printf_sizes_c99.
(gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
gl_cv_func_printf_infinite.
(gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
gl_cv_func_printf_infinite_long_double.
(gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
gl_cv_func_printf_directive_a.
(gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
gl_cv_func_printf_directive_f.
(gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
gl_cv_func_printf_flag_zero.
(gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
gl_cv_func_printf_enomem.
(gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
gl_cv_func_snprintf_truncation_c99.
(gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
gl_cv_func_snprintf_retval_c99.
(gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
gl_cv_func_snprintf_directive_n.
(gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
gl_cv_func_vsnprintf_zerosize_c99.
* m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
gl_cv_func_pselect_detects_ebadf.
* m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
Obey --enable-cross-guesses for
gl_cv_pthread_rwlock_rdlock_prefer_writer.
* m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
gl_cv_func_ptsname_sets_errno.
* m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
gl_cv_func_svid_putenv.
* m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
gl_cv_func_readlink_works.
* m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
* m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
gl_cv_func_re_compile_pattern_working.
* m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
gl_cv_func_remainder_ieee.
* m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
gl_cv_func_remainderf_ieee.
* m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
gl_cv_func_remainderl_ieee.
* m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
gl_cv_func_rintl_works.
* m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
gl_cv_func_rmdir_works.
* m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
gl_cv_func_round_ieee.
* m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
gl_cv_func_roundf_ieee.
* m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
gl_cv_func_roundl_ieee.
* m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
gl_cv_func_select_detects_ebadf.
* m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
gl_cv_func_setenv_works.
(gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
gl_cv_func_unsetenv_works.
* m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
gl_cv_func_signbit, gl_cv_func_signbit_gcc.
* m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
gl_cv_func_sleep_works.
* m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
gl_cv_func_stat_file_slash.
* m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
gl_cv_func_stpncpy.
* m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
--enable-cross-guesses for gl_cv_func_strcasestr_works_always.
(gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
gl_cv_func_strcasestr_linear.
* m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
gl_cv_func_working_strerror.
(gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
gl_cv_func_strerror_0_works.
* m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
--enable-cross-guesses for gl_cv_func_strerror_r_works.
* m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
gl_cv_func_strstr_works_always.
(gl_FUNC_STRSTR): Obey --enable-cross-guesses for
gl_cv_func_strstr_linear.
* m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
gl_cv_func_strtod_works.
* m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
gl_cv_func_strtold_works.
* m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
gl_cv_func_symlink_works.
* m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
gl_cv_func_symlinkat_works.
* m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
gl_cv_func_trunc_ieee.
* m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
gl_cv_func_truncf_ieee.
* m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
gl_cv_func_truncl_ieee.
* m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
gl_cv_func_tzset_clobber.
* m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
gl_cv_func_ungetc_works.
* m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
* m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
gl_cv_func_usleep_works.
* m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
gl_cv_func_futimesat_works.
* m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
gl_cv_func_working_utimes.
* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
gl_cv_func_wcwidth_works.
* m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
* m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
links for testing. Obey --enable-cross-guesses for
gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
+2019-09-08 Bruno Haible <bruno@clisp.org>
+
+ Add option to assume the best, not the worst, when cross-compiling.
+ Suggested by Jonas Termansen <sortie@maxsi.org>.
+ * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
+ option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
+ * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
+ lt_cv_sys_argz_works.
+ * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
+ ac_cv_func_calloc_0_nonnull.
+ * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
+ --enable-cross-guesses for gl_cv_func_realpath_works.
+ * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
+ gl_cv_func_cbrtl_ieee.
+ * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
+ gl_cv_func_ceil_ieee.
+ * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
+ gl_cv_func_ceilf_ieee.
+ * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
+ gl_cv_func_ceill_ieee.
+ * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
+ ac_cv_func_chown_works.
+ (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
+ gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
+ * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
+ --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
+ * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
+ gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
+ * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
+ gl_cv_func_expl_works.
+ * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
+ gl_cv_func_expm1_ieee.
+ * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
+ gl_cv_func_expm1l_works.
+ * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
+ gl_cv_func_open_directory_works.
+ * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
+ --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
+ (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
+ gl_cv_func_fchownat_empty_filename_works.
+ * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
+ gl_cv_func_fdopendir_works.
+ * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
+ gl_cv_func_floor_ieee.
+ * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
+ gl_cv_func_floorf_ieee.
+ * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
+ gl_cv_func_fma_works.
+ * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
+ gl_cv_func_fmaf_works.
+ * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
+ gl_cv_func_fmal_works.
+ * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
+ gl_cv_func_fmod_ieee.
+ * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
+ gl_cv_func_fmodf_ieee.
+ * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
+ gl_cv_func_fmodl_ieee.
+ * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
+ gl_cv_func_fpurge_works.
+ * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
+ --enable-cross-guesses for gl_cv_func_getcwd_path_max.
+ * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
+ gl_cv_func_getcwd_null.
+ (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
+ * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
+ gl_cv_func_working_getdelim.
+ * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
+ ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
+ (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
+ gl_cv_func_getgroups_works.
+ * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
+ am_cv_func_working_getline.
+ * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
+ for gl_cv_func_getopt_gnu.
+ * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
+ --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
+ * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
+ gl_cv_func_hypot_ieee.
+ * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
+ gl_cv_func_hypotf_ieee.
+ * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
+ gl_cv_func_hypotl_ieee.
+ * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
+ --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
+ * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
+ gl_cv_func_link_works.
+ * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
+ gl_cv_func_linkat_slash.
+ * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
+ gl_cv_func_log_ieee.
+ * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
+ gl_cv_func_logf_ieee.
+ * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
+ gl_cv_func_logl_works.
+ * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
+ gl_cv_func_log10_ieee.
+ * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
+ gl_cv_func_log10f_ieee.
+ * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
+ gl_cv_func_log10l_works.
+ * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
+ gl_cv_func_log1p_ieee.
+ * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
+ gl_cv_func_log1pf_ieee.
+ * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
+ gl_cv_func_log1pl_ieee.
+ * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
+ gl_cv_func_log2_ieee.
+ * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
+ gl_cv_func_log2f_ieee.
+ * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
+ --enable-cross-guesses for
+ gl_cv_func_lstat_dereferences_slashed_symlink.
+ * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
+ ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
+ * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
+ gl_cv_C_locale_sans_EILSEQ.
+ * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
+ gl_cv_func_memchr_works.
+ * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
+ gl_cv_func_memmem_works_always.
+ (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
+ gl_cv_func_memmem_works_fast.
+ * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
+ gl_cv_func_mkdir_trailing_slash_works,
+ gl_cv_func_mkdir_trailing_dot_works.
+ * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
+ gl_cv_func_mkfifo_works.
+ * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
+ gl_cv_func_mknod_works.
+ * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
+ gl_cv_func_working_mkstemp.
+ * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
+ gl_cv_func_working_mktime.
+ * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
+ gl_cv_func_modf_ieee.
+ * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
+ gl_cv_func_modff_ieee.
+ * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
+ gl_cv_func_modfl_ieee.
+ * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
+ gl_cv_func_nanosleep.
+ * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
+ gl_cv_func_perror_works.
+ * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
+ gl_cv_func_printf_sizes_c99.
+ (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
+ gl_cv_func_printf_infinite.
+ (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
+ gl_cv_func_printf_infinite_long_double.
+ (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
+ gl_cv_func_printf_directive_a.
+ (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
+ gl_cv_func_printf_directive_f.
+ (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
+ gl_cv_func_printf_flag_zero.
+ (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
+ gl_cv_func_printf_enomem.
+ (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
+ gl_cv_func_snprintf_truncation_c99.
+ (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
+ gl_cv_func_snprintf_retval_c99.
+ (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
+ gl_cv_func_snprintf_directive_n.
+ (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
+ gl_cv_func_vsnprintf_zerosize_c99.
+ * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
+ gl_cv_func_pselect_detects_ebadf.
+ * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
+ Obey --enable-cross-guesses for
+ gl_cv_pthread_rwlock_rdlock_prefer_writer.
+ * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
+ gl_cv_func_ptsname_sets_errno.
+ * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
+ gl_cv_func_svid_putenv.
+ * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
+ gl_cv_func_readlink_works.
+ * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
+ ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
+ * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
+ gl_cv_func_re_compile_pattern_working.
+ * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
+ gl_cv_func_remainder_ieee.
+ * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
+ gl_cv_func_remainderf_ieee.
+ * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
+ gl_cv_func_remainderl_ieee.
+ * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
+ gl_cv_func_rintl_works.
+ * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
+ gl_cv_func_rmdir_works.
+ * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
+ gl_cv_func_round_ieee.
+ * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
+ gl_cv_func_roundf_ieee.
+ * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
+ gl_cv_func_roundl_ieee.
+ * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
+ gl_cv_func_select_detects_ebadf.
+ * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
+ gl_cv_func_setenv_works.
+ (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
+ gl_cv_func_unsetenv_works.
+ * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
+ gl_cv_func_signbit, gl_cv_func_signbit_gcc.
+ * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
+ gl_cv_func_sleep_works.
+ * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
+ gl_cv_func_stat_file_slash.
+ * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
+ gl_cv_func_stpncpy.
+ * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
+ --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
+ (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
+ gl_cv_func_strcasestr_linear.
+ * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
+ gl_cv_func_working_strerror.
+ (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
+ gl_cv_func_strerror_0_works.
+ * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
+ --enable-cross-guesses for gl_cv_func_strerror_r_works.
+ * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
+ gl_cv_func_strstr_works_always.
+ (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
+ gl_cv_func_strstr_linear.
+ * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
+ gl_cv_func_strtod_works.
+ * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
+ gl_cv_func_strtold_works.
+ * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
+ gl_cv_func_symlink_works.
+ * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
+ gl_cv_func_symlinkat_works.
+ * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
+ gl_cv_func_trunc_ieee.
+ * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
+ gl_cv_func_truncf_ieee.
+ * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
+ gl_cv_func_truncl_ieee.
+ * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
+ gl_cv_func_tzset_clobber.
+ * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
+ gl_cv_func_ungetc_works.
+ * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
+ gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
+ * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
+ gl_cv_func_usleep_works.
+ * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
+ gl_cv_func_futimesat_works.
+ * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
+ gl_cv_func_working_utimes.
+ * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
+ gl_cv_func_wcwidth_works.
+ * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
+ testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
+ * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
+ links for testing. Obey --enable-cross-guesses for
+ gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
+ gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
+
2019-09-08 Bruno Haible <bruno@clisp.org>
Clarify that cross-compilation guesses are guesses.
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
-# serial 12 argz.m4
+# serial 13 argz.m4
AC_DEFUN([gl_FUNC_ARGZ],
[gl_PREREQ_ARGZ
*cygwin*)
lt_cv_sys_argz_works=no
if test "$cross_compiling" != no; then
- lt_cv_sys_argz_works="guessing no"
+ lt_cv_sys_argz_works="$gl_cross_guess_normal"
else
lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
save_IFS=$IFS
-# calloc.m4 serial 19
+# calloc.m4 serial 20
# Copyright (C) 2004-2019 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
*-musl*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
# Guess yes on native Windows.
mingw*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
- # If we don't know, assume the worst.
- *) ac_cv_func_calloc_0_nonnull="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) ac_cv_func_calloc_0_nonnull="$gl_cross_guess_normal" ;;
esac
])])
case "$ac_cv_func_calloc_0_nonnull" in
-# canonicalize.m4 serial 30
+# canonicalize.m4 serial 31
dnl Copyright (C) 2003-2007, 2009-2019 Free Software Foundation, Inc.
*-musl*) gl_cv_func_realpath_works="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_realpath_works="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_realpath_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_realpath_works="$gl_cross_guess_normal" ;;
esac
])
rm -rf conftest.a conftest.d
-# cbrtl.m4 serial 9
+# cbrtl.m4 serial 10
dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_cbrtl_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_cbrtl_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_cbrtl_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_cbrtl_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# ceil.m4 serial 14
+# ceil.m4 serial 15
dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_ceil_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_ceil_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_ceil_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_ceil_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# ceilf.m4 serial 18
+# ceilf.m4 serial 19
dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_ceilf_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_ceilf_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_ceilf_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_ceilf_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# ceill.m4 serial 19
+# ceill.m4 serial 20
dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_ceill_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_ceill_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_ceill_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_ceill_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# serial 33
+# serial 34
# Determine whether we need the chown wrapper.
dnl Copyright (C) 1997-2001, 2003-2005, 2007, 2009-2019 Free Software
*-gnu* | gnu*) ac_cv_func_chown_works="guessing yes" ;;
# Guess no on native Windows.
mingw*) ac_cv_func_chown_works="guessing no" ;;
- # If we don't know, assume the worst.
- *) ac_cv_func_chown_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) ac_cv_func_chown_works="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.chown
*-gnu*) gl_cv_func_chown_slash_works="guessing yes" ;;
# Guess yes on musl systems.
*-musl*) gl_cv_func_chown_slash_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_chown_slash_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_chown_slash_works="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.link conftest.file])
*-gnu*) gl_cv_func_chown_ctime_works="guessing yes" ;;
# Guess yes on musl systems.
*-musl*) gl_cv_func_chown_ctime_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_chown_ctime_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_chown_ctime_works="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.file])
-# serial 19
+# serial 20
dnl From Jim Meyering.
dnl
linux*-musl*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_struct_dirent_d_ino="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_struct_dirent_d_ino="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_struct_dirent_d_ino="$gl_cross_guess_normal" ;;
esac
])])
case "$gl_cv_struct_dirent_d_ino" in
-# exp2l.m4 serial 8
+# exp2l.m4 serial 9
dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_exp2l_works="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_exp2l_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_exp2l_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_exp2l_works="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
*-musl*) gl_cv_func_exp2l_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_exp2l_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_exp2l_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_exp2l_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# expl.m4 serial 14
+# expl.m4 serial 15
dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_expl_works="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_expl_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_expl_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_expl_works="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# expm1.m4 serial 8
+# expm1.m4 serial 9
dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_expm1_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_expm1_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_expm1_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_expm1_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# expm1l.m4 serial 5
+# expm1l.m4 serial 6
dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_expm1l_works="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_expm1l_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_expm1l_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_expm1l_works="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# fchdir.m4 serial 24
+# fchdir.m4 serial 25
dnl Copyright (C) 2006-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-gnu* | gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_open_directory_works="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_open_directory_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_open_directory_works="$gl_cross_guess_normal" ;;
esac
])])
case "$gl_cv_func_open_directory_works" in
-# fchownat.m4 serial 4
+# fchownat.m4 serial 5
dnl Copyright (C) 2004-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
]])],
[gl_cv_func_fchownat_nofollow_works=yes],
[gl_cv_func_fchownat_nofollow_works=no],
- [gl_cv_func_fchownat_nofollow_works="guessing no"])
+ [gl_cv_func_fchownat_nofollow_works="$gl_cross_guess_normal"])
])
AS_IF([test "$gl_cv_func_fchownat_nofollow_works" != yes], [$1], [$2])
])
]])],
[gl_cv_func_fchownat_empty_filename_works=yes],
[gl_cv_func_fchownat_empty_filename_works=no],
- [gl_cv_func_fchownat_empty_filename_works="guessing no"])
+ [gl_cv_func_fchownat_empty_filename_works="$gl_cross_guess_normal"])
])
AS_IF([test "$gl_cv_func_fchownat_empty_filename_works" != yes], [$1], [$2])
])
-# serial 11
+# serial 12
# See if we need to provide fdopendir.
dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
*-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
# Guess yes on musl systems.
*-musl*) gl_cv_func_fdopendir_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_fdopendir_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_fdopendir_works="$gl_cross_guess_normal" ;;
esac
])])
case "$gl_cv_func_fdopendir_works" in
-# floor.m4 serial 13
+# floor.m4 serial 14
dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_floor_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_floor_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_floor_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_floor_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# floorf.m4 serial 17
+# floorf.m4 serial 18
dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_floorf_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_floorf_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_floorf_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_floorf_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# fma.m4 serial 3
+# fma.m4 serial 4
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_fma_works=no],
[dnl Guess yes on native Windows with MSVC.
dnl Otherwise guess no, even on glibc systems.
- gl_cv_func_fma_works="guessing no"
+ gl_cv_func_fma_works="$gl_cross_guess_normal"
case "$host_os" in
mingw*)
AC_EGREP_CPP([Known], [
-# fmaf.m4 serial 4
+# fmaf.m4 serial 5
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_fmaf_works=no],
[dnl Guess yes on native Windows with MSVC.
dnl Otherwise guess no, even on glibc systems.
- gl_cv_func_fmaf_works="guessing no"
+ gl_cv_func_fmaf_works="$gl_cross_guess_normal"
case "$host_os" in
mingw*)
AC_EGREP_CPP([Known], [
-# fmal.m4 serial 6
+# fmal.m4 serial 7
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_fmal_works=no],
[dnl Guess yes on native Windows with MSVC.
dnl Otherwise guess no, even on glibc systems.
- gl_cv_func_fmal_works="guessing no"
+ gl_cv_func_fmal_works="$gl_cross_guess_normal"
case "$host_os" in
mingw*)
AC_EGREP_CPP([Known], [
-# fmod.m4 serial 8
+# fmod.m4 serial 9
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_fmod_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_fmod_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_fmod_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_fmod_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# fmodf.m4 serial 10
+# fmodf.m4 serial 11
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_fmodf_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_fmodf_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_fmodf_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_fmodf_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# fmodl.m4 serial 10
+# fmodl.m4 serial 11
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_fmodl_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_fmodl_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_fmodl_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_fmodl_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# fpurge.m4 serial 9
+# fpurge.m4 serial 10
dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on musl systems.
*-musl*) gl_cv_func_fpurge_works="guessing yes" ;;
- # Guess no otherwise.
- *) gl_cv_func_fpurge_works="guessing no" ;;
+ # Otherwise obey --enable-cross-guesses.
+ *) gl_cv_func_fpurge_works="$gl_cross_guess_normal" ;;
esac
])
])
-# serial 22
+# serial 23
# Check for several getcwd bugs with long file names.
# If so, arrange to compile the wrapper function.
[# Cross-compilation guesses:
case "$host_os" in
aix*) # On AIX, it has the AIX bug.
- gl_cv_func_getcwd_path_max='no, it has the AIX bug' ;;
+ gl_cv_func_getcwd_path_max='guessing no, it has the AIX bug' ;;
gnu*) # On Hurd, it is 'yes'.
- gl_cv_func_getcwd_path_max=yes ;;
+ gl_cv_func_getcwd_path_max='guessing yes' ;;
linux* | kfreebsd*)
# On older Linux+glibc it's 'no, but it is partly working',
# on newer Linux+glibc it's 'yes'.
# On Linux+musl libc, it's 'no, but it is partly working'.
# On kFreeBSD+glibc, it's 'no, but it is partly working'.
- gl_cv_func_getcwd_path_max='no, but it is partly working' ;;
- *) # If we don't know, assume the worst.
- gl_cv_func_getcwd_path_max=no ;;
+ gl_cv_func_getcwd_path_max='guessing no, but it is partly working' ;;
+ *) # If we don't know, obey --enable-cross-guesses.
+ gl_cv_func_getcwd_path_max="$gl_cross_guess_normal" ;;
esac
])
])
# with or without modifications, as long as this notice is preserved.
# Written by Paul Eggert.
-# serial 17
+# serial 18
AC_DEFUN([gl_FUNC_GETCWD_NULL],
[
*-musl*) gl_cv_func_getcwd_null="guessing yes";;
# Guess yes on Cygwin.
cygwin*) gl_cv_func_getcwd_null="guessing yes";;
- # If we don't know, assume the worst.
- *) gl_cv_func_getcwd_null="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_getcwd_null="$gl_cross_guess_normal";;
esac
]])])
])
dnl Define HAVE_MINIMALLY_WORKING_GETCWD and HAVE_PARTLY_WORKING_GETCWD
dnl if appropriate.
case "$gl_cv_func_getcwd_path_max" in
- "no"|"no, it has the AIX bug") ;;
+ *"no" | *"no, it has the AIX bug") ;;
*)
AC_DEFINE([HAVE_MINIMALLY_WORKING_GETCWD], [1],
[Define to 1 if getcwd minimally works, that is, its result can be
;;
esac
case "$gl_cv_func_getcwd_path_max" in
- "no, but it is partly working")
+ *"no, but it is partly working")
AC_DEFINE([HAVE_PARTLY_WORKING_GETCWD], [1],
[Define to 1 if getcwd works, except it sometimes fails when it
shouldn't, setting errno to ERANGE, ENAMETOOLONG, or ENOENT.])
;;
- "yes, but with shorter paths")
+ *"yes, but with shorter paths")
AC_DEFINE([HAVE_GETCWD_SHORTER], [1],
[Define to 1 if getcwd works, but with shorter paths
than is generally tested with the replacement.])
-# getdelim.m4 serial 13
+# getdelim.m4 serial 14
dnl Copyright (C) 2005-2007, 2009-2019 Free Software Foundation, Inc.
dnl
[gl_cv_func_working_getdelim="guessing yes"],
[case "$host_os" in
*-musl*) gl_cv_func_working_getdelim="guessing yes" ;;
- *) gl_cv_func_working_getdelim="guessing no" ;;
+ *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
esac
])
])
-# serial 22
+# serial 23
dnl From Jim Meyering.
dnl A wrapper around AC_FUNC_GETGROUPS.
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
-m4_version_prereq([2.70], [] ,[
-
# This is taken from the following Autoconf patch:
# https://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=7fbb553727ed7e0e689a17594b58559ecf3ea6e9
AC_DEFUN([AC_FUNC_GETGROUPS],
*-gnu* | gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
# Guess yes on musl systems.
*-musl*) ac_cv_func_getgroups_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) ac_cv_func_getgroups_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) ac_cv_func_getgroups_works="$gl_cross_guess_normal" ;;
esac
])
])
LIBS=$ac_save_LIBS
])# AC_FUNC_GETGROUPS
-])
-
AC_DEFUN([gl_FUNC_GETGROUPS],
[
AC_REQUIRE([AC_TYPE_GETGROUPS])
*-gnu* | gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
# Guess yes on musl systems.
*-musl*) gl_cv_func_getgroups_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_getgroups_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_getgroups_works="$gl_cross_guess_normal" ;;
esac
])])
case "$gl_cv_func_getgroups_works" in
-# getline.m4 serial 29
+# getline.m4 serial 30
dnl Copyright (C) 1998-2003, 2005-2007, 2009-2019 Free Software Foundation,
dnl Inc.
[am_cv_func_working_getline="guessing yes"],
[case "$host_os" in
*-musl*) am_cv_func_working_getline="guessing yes" ;;
- *) am_cv_func_working_getline="guessing no" ;;
+ *) am_cv_func_working_getline="$gl_cross_guess_normal" ;;
esac
])
])
-# getopt.m4 serial 46
+# getopt.m4 serial 47
dnl Copyright (C) 2002-2006, 2008-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
]])],
[gl_cv_func_getopt_gnu=yes],
[gl_cv_func_getopt_gnu=no],
- [dnl Cross compiling. Assume the worst, even on glibc platforms.
- gl_cv_func_getopt_gnu="guessing no"
+ [dnl Cross compiling.
+ dnl Assume the worst, even on glibc platforms.
+ dnl But obey --enable-cross-guesses.
+ gl_cv_func_getopt_gnu="$gl_cross_guess_normal"
])
case $gl_had_POSIXLY_CORRECT in
exported) ;;
-# serial 26
+# serial 27
# Copyright (C) 2001-2003, 2005, 2007, 2009-2019 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
*-musl*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_gettimeofday_clobber="$gl_cross_guess_inverted" ;;
esac
])])
-# glob.m4 serial 22
+# glob.m4 serial 23
dnl Copyright (C) 2005-2007, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
if test $REPLACE_GLOB = 0; then
AC_CACHE_CHECK([whether glob lists broken symlinks],
[gl_cv_glob_lists_symlinks],
- [if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
- gl_cv_glob_lists_symlinks=maybe
+ [if test $cross_compiling != yes; then
+ if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
+ gl_cv_glob_lists_symlinks=maybe
+ else
+ # If we can't make a symlink, then we cannot test this issue. Be
+ # pessimistic about this.
+ gl_cv_glob_lists_symlinks=no
+ fi
+ if test $gl_cv_glob_lists_symlinks = maybe; then
+ AC_RUN_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[#include <stddef.h>
+ #include <glob.h>]],
+ [[glob_t found;
+ if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
+ return 1;
+ ]])],
+ [gl_cv_glob_lists_symlinks=yes],
+ [gl_cv_glob_lists_symlinks=no],
+ [dnl We don't get here.
+ :
+ ])
+ fi
+ rm -f conf$$-globtest
else
- # If we can't make a symlink, then we cannot test this issue. Be
- # pessimistic about this.
- gl_cv_glob_lists_symlinks=no
+ gl_cv_glob_lists_symlinks="$gl_cross_guess_normal"
fi
- if test $gl_cv_glob_lists_symlinks = maybe; then
- AC_RUN_IFELSE(
- [AC_LANG_PROGRAM(
- [[#include <stddef.h>
- #include <glob.h>]],
- [[glob_t found;
- if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
- return 1;
- ]])],
- [gl_cv_glob_lists_symlinks=yes],
- [gl_cv_glob_lists_symlinks=no],
- [gl_cv_glob_lists_symlinks="guessing no"])
- fi
- rm -f conf$$-globtest
])
case "$gl_cv_glob_lists_symlinks" in
*yes) ;;
-# gnulib-common.m4 serial 44
+# gnulib-common.m4 serial 45
dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
errno. */
#define _GL_ASYNC_SAFE
])
+ dnl Hint which direction to take regarding cross-compilation guesses:
+ dnl When a user installs a program on a platform they are not intimately
+ dnl familiar with, --enable-cross-guesses=conservative is the appropriate
+ dnl choice. It implements the "If we don't know, assume the worst" principle.
+ dnl However, when an operating system developer (on a platform which is not
+ dnl yet known to gnulib) builds packages for their platform, they want to
+ dnl expose, not hide, possible platform bugs; in this case,
+ dnl --enable-cross-guesses=risky is the appropriate choice.
+ dnl Sets the variables
+ dnl gl_cross_guess_normal (to be used when 'yes' is good and 'no' is bad),
+ dnl gl_cross_guess_inverted (to be used when 'no' is good and 'yes' is bad).
+ AC_ARG_ENABLE([cross-guesses],
+ [AS_HELP_STRING([--enable-cross-guesses={conservative|risky}],
+ [specify policy for cross-compilation guesses])],
+ [if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
+ AC_MSG_WARN([invalid argument supplied to --enable-cross-guesses])
+ enableval=conservative
+ fi
+ gl_cross_guesses="$enableval"],
+ [gl_cross_guesses=conservative])
+ if test $gl_cross_guesses = risky; then
+ gl_cross_guess_normal="guessing yes"
+ gl_cross_guess_inverted="guessing no"
+ else
+ gl_cross_guess_normal="guessing no"
+ gl_cross_guess_inverted="guessing yes"
+ fi
dnl Preparation for running test programs:
dnl Tell glibc to write diagnostics from -D_FORTIFY_SOURCE=2 to stderr, not
dnl to /dev/tty, so they can be redirected to log files. Such diagnostics
-# hypot.m4 serial 8
+# hypot.m4 serial 9
dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_hypot_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_hypot_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_hypot_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_hypot_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# hypotf.m4 serial 9
+# hypotf.m4 serial 10
dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_hypotf_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_hypotf_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_hypotf_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_hypotf_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# hypotl.m4 serial 10
+# hypotl.m4 serial 11
dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_hypotl_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_hypotl_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_hypotl_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_hypotl_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# iconv_open-utf.m4 serial 3
+# iconv_open-utf.m4 serial 4
dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl We know that GNU libiconv, GNU libc, musl libc, and Solaris >= 9 do.
dnl OSF/1 5.1 has these encodings, but inserts a BOM in the "to"
dnl direction.
- gl_cv_func_iconv_supports_utf="guessing no"
+ gl_cv_func_iconv_supports_utf="$gl_cross_guess_normal"
if test $gl_func_iconv_gnu = yes; then
gl_cv_func_iconv_supports_utf="guessing yes"
else
-# link.m4 serial 10
+# link.m4 serial 11
dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
linux-* | linux) gl_cv_func_link_works="guessing yes" ;;
# Guess yes on glibc systems.
*-gnu* | gnu*) gl_cv_func_link_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_link_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_link_works="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.a conftest.b conftest.lnk])
-# serial 9
+# serial 10
# See if we need to provide linkat replacement.
dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
linux-* | linux) gl_cv_func_linkat_slash="guessing yes";;
# Guess yes on glibc systems.
*-gnu* | gnu*) gl_cv_func_linkat_slash="guessing yes";;
- # If we don't know, assume the worst.
- *) gl_cv_func_linkat_slash="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_linkat_slash="$gl_cross_guess_normal";;
esac
])
rm -rf conftest.a conftest.b conftest.c conftest.d conftest.e conftest.s])
-# log.m4 serial 10
+# log.m4 serial 11
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_log_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_log_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_log_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_log_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# log10.m4 serial 10
+# log10.m4 serial 11
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_log10_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_log10_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_log10_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_log10_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# log10f.m4 serial 11
+# log10f.m4 serial 12
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_log10f_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_log10f_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_log10f_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_log10f_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# log10l.m4 serial 7
+# log10l.m4 serial 8
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_log10l_works="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_log10l_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_log10l_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_log10l_works="$gl_cross_guess_normal" ;;
esac
])
])
-# log1p.m4 serial 7
+# log1p.m4 serial 8
dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_log1p_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_log1p_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_log1p_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_log1p_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# log1pf.m4 serial 7
+# log1pf.m4 serial 8
dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_log1pf_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_log1pf_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_log1pf_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_log1pf_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# log1pl.m4 serial 7
+# log1pl.m4 serial 8
dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_log1pl_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_log1pl_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_log1pl_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_log1pl_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# log2.m4 serial 9
+# log2.m4 serial 10
dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_log2_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_log2_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_log2_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_log2_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# log2f.m4 serial 9
+# log2f.m4 serial 10
dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_log2f_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_log2f_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_log2f_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_log2f_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# logf.m4 serial 11
+# logf.m4 serial 12
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_logf_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_logf_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_logf_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_logf_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# logl.m4 serial 12
+# logl.m4 serial 13
dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_logl_works="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_logl_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_logl_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_logl_works="$gl_cross_guess_normal" ;;
esac
])
])
-# serial 32
+# serial 33
# Copyright (C) 1997-2001, 2003-2019 Free Software Foundation, Inc.
#
# Guess no on native Windows.
gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
*)
- # If we don't know, assume the worst.
- gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.sym conftest.file
-# malloc.m4 serial 19
+# malloc.m4 serial 20
dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
-m4_version_prereq([2.70], [] ,[
-
# This is adapted with modifications from upstream Autoconf here:
# https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=04be2b7a29d65d9a08e64e8e56e594c91749598c
AC_DEFUN([_AC_FUNC_MALLOC_IF],
*-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
| hpux* | solaris* | cygwin* | mingw*)
ac_cv_func_malloc_0_nonnull="guessing yes" ;;
- # If we don't know, assume the worst.
- *) ac_cv_func_malloc_0_nonnull="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
esac
])
])
esac
])# _AC_FUNC_MALLOC_IF
-])
-
# gl_FUNC_MALLOC_GNU
# ------------------
# Test whether 'malloc (0)' is handled like in GNU libc, and replace malloc if
-# mbrtowc.m4 serial 31 -*- coding: utf-8 -*-
+# mbrtowc.m4 serial 32 -*- coding: utf-8 -*-
dnl Copyright (C) 2001-2002, 2004-2005, 2008-2019 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
[
dnl Initial guess, used when cross-compiling or when no suitable locale
dnl is present.
- gl_cv_C_locale_sans_EILSEQ="guessing no"
+ gl_cv_C_locale_sans_EILSEQ="$gl_cross_guess_normal"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM(
-# memchr.m4 serial 14
+# memchr.m4 serial 15
dnl Copyright (C) 2002-2004, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_memchr_works="guessing yes" ;;
- # Be pessimistic for now.
- *) gl_cv_func_memchr_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
esac
])
])
-# memmem.m4 serial 25
+# memmem.m4 serial 26
dnl Copyright (C) 2002-2004, 2007-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
#endif
],
[gl_cv_func_memmem_works_always="guessing yes"],
- [gl_cv_func_memmem_works_always="guessing no"])
+ [gl_cv_func_memmem_works_always="$gl_cross_guess_normal"])
])
])
case "$gl_cv_func_memmem_works_always" in
#endif
],
[gl_cv_func_memmem_works_fast="guessing yes"],
- [gl_cv_func_memmem_works_fast="guessing no"])
+ [gl_cv_func_memmem_works_fast="$gl_cross_guess_normal"])
])
])
case "$gl_cv_func_memmem_works_fast" in
-# serial 15
+# serial 16
# Copyright (C) 2001, 2003-2004, 2006, 2008-2019 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
[gl_cv_func_mkdir_trailing_slash_works="guessing yes"],
[gl_cv_func_mkdir_trailing_slash_works="guessing no"])
;;
- # If we don't know, assume the worst.
- *) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_mkdir_trailing_slash_works="$gl_cross_guess_normal" ;;
esac
])
rm -rf conftest.dir
*-musl*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_mkdir_trailing_dot_works="$gl_cross_guess_normal" ;;
esac
])
rm -rf conftest.dir
-# serial 8
+# serial 9
# See if we need to provide mkfifo replacement.
dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
linux-* | linux) gl_cv_func_mkfifo_works="guessing yes" ;;
# Guess yes on glibc systems.
*-gnu* | gnu*) gl_cv_func_mkfifo_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_mkfifo_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_mkfifo_works="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.tmp conftest.lnk])
-# serial 7
+# serial 8
# See if we need to provide mknod replacement.
dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
linux-* | linux) gl_cv_func_mknod_works="guessing yes" ;;
# Guess yes on glibc systems.
*-gnu* | gnu*) gl_cv_func_mknod_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_mknod_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_mknod_works="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.fifo])
-#serial 26
+#serial 27
# Copyright (C) 2001, 2003-2007, 2009-2019 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
*-musl*) gl_cv_func_working_mkstemp="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_working_mkstemp="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_working_mkstemp="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_working_mkstemp="$gl_cross_guess_normal" ;;
esac
])
rm -rf conftest.mkstemp
-# serial 30
+# serial 31
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2019 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
[case "$host_os" in
# Guess no on native Windows.
mingw*) gl_cv_func_working_mktime="guessing no" ;;
- *) gl_cv_func_working_mktime="guessing no" ;;
+ *) gl_cv_func_working_mktime="$gl_cross_guess_normal" ;;
esac
])
])
-# modf.m4 serial 7
+# modf.m4 serial 8
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_modf_ieee="guessing yes"],
[gl_cv_func_modf_ieee="guessing no"])
;;
- # If we don't know, assume the worst.
- *) gl_cv_func_modf_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_modf_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# modff.m4 serial 9
+# modff.m4 serial 10
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_modff_ieee="guessing yes"],
[gl_cv_func_modff_ieee="guessing no"])
;;
- # If we don't know, assume the worst.
- *) gl_cv_func_modff_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_modff_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# modfl.m4 serial 7
+# modfl.m4 serial 8
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_modfl_ieee="guessing yes"],
[gl_cv_func_modfl_ieee="guessing no"])
;;
- # If we don't know, assume the worst.
- *) gl_cv_func_modfl_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_modfl_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# serial 38
+# serial 39
dnl From Jim Meyering.
dnl Check for the nanosleep function.
gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;;
mingw*) # Guess no on native Windows.
gl_cv_func_nanosleep='guessing no' ;;
- *) # If we don't know, assume the worst.
- gl_cv_func_nanosleep='guessing no' ;;
+ *) # If we don't know, obey --enable-cross-guesses.
+ gl_cv_func_nanosleep="$gl_cross_guess_normal" ;;
esac
])
])
-# perror.m4 serial 8
+# perror.m4 serial 9
dnl Copyright (C) 2008-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_perror_works="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_perror_works="guessing yes" ;;
- # Otherwise guess no.
- *) gl_cv_func_perror_works="guessing no" ;;
+ # Otherwise obey --enable-cross-guesses.
+ *) gl_cv_func_perror_works="$gl_cross_guess_normal" ;;
esac
])
])
-# printf.m4 serial 61
+# printf.m4 serial 62
dnl Copyright (C) 2003, 2007-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_printf_sizes_c99="guessing yes"],
[gl_cv_func_printf_sizes_c99="guessing no"])
;;
- # If we don't know, assume the worst.
- *) gl_cv_func_printf_sizes_c99="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_printf_sizes_c99="$gl_cross_guess_normal";;
esac
])
])
[gl_cv_func_printf_infinite="guessing yes"],
[gl_cv_func_printf_infinite="guessing no"])
;;
- # If we don't know, assume the worst.
- *) gl_cv_func_printf_infinite="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_printf_infinite="$gl_cross_guess_normal";;
esac
])
])
[gl_cv_func_printf_infinite_long_double="guessing yes"],
[gl_cv_func_printf_infinite_long_double="guessing no"])
;;
- # If we don't know, assume the worst.
- *) gl_cv_func_printf_infinite_long_double="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_printf_infinite_long_double="$gl_cross_guess_normal";;
esac
;;
esac
linux*-android*) gl_cv_func_printf_directive_a="guessing no";;
# Guess no on native Windows.
mingw*) gl_cv_func_printf_directive_a="guessing no";;
- # If we don't know, assume the worst.
- *) gl_cv_func_printf_directive_a="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_printf_directive_a="$gl_cross_guess_normal";;
esac
])
])
[gl_cv_func_printf_directive_f="guessing yes"],
[gl_cv_func_printf_directive_f="guessing no"])
;;
- # If we don't know, assume the worst.
- *) gl_cv_func_printf_directive_f="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_printf_directive_f="$gl_cross_guess_normal";;
esac
])
])
linux*-android*) gl_cv_func_printf_flag_zero="guessing no";;
# Guess no on native Windows.
mingw*) gl_cv_func_printf_flag_zero="guessing no";;
- # If we don't know, assume the worst.
- *) gl_cv_func_printf_flag_zero="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_printf_flag_zero="$gl_cross_guess_normal";;
esac
changequote([,])dnl
])
haiku*) gl_cv_func_printf_enomem="guessing yes";;
# Guess no on Android.
linux*-android*) gl_cv_func_printf_enomem="guessing no";;
- # If we don't know, assume the worst.
- *) gl_cv_func_printf_enomem="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_printf_enomem="$gl_cross_guess_normal";;
esac
changequote([,])dnl
fi
linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
# Guess no on native Windows.
mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";;
- # If we don't know, assume the worst.
- *) gl_cv_func_snprintf_truncation_c99="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
esac
changequote([,])dnl
])
[gl_cv_func_snprintf_retval_c99="guessing yes"],
[gl_cv_func_snprintf_retval_c99="guessing no"])
;;
- # If we don't know, assume the worst.
- *) gl_cv_func_snprintf_retval_c99="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
esac
])
])
linux*-android*) gl_cv_func_snprintf_directive_n="guessing no";;
# Guess no on native Windows.
mingw*) gl_cv_func_snprintf_directive_n="guessing no";;
- # If we don't know, assume the worst.
- *) gl_cv_func_snprintf_directive_n="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_snprintf_directive_n="$gl_cross_guess_normal";;
esac
changequote([,])dnl
])
linux*-android*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
# Guess yes on native Windows.
mingw* | pw*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
- # If we don't know, assume the worst.
- *) gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_vsnprintf_zerosize_c99="$gl_cross_guess_normal";;
esac
changequote([,])dnl
])
-# pselect.m4 serial 7
+# pselect.m4 serial 8
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
linux-* | linux) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
# Guess yes on glibc systems.
*-gnu* | gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_pselect_detects_ebadf="$gl_cross_guess_normal" ;;
esac
])
])
-# pthread_rwlock_rdlock.m4 serial 3
+# pthread_rwlock_rdlock.m4 serial 4
dnl Copyright (C) 2017-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no"
fi
;;
- # If we don't know, assume the worst.
- *) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# ptsname.m4 serial 6
+# ptsname.m4 serial 7
dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-gnu* | gnu*) gl_cv_func_ptsname_sets_errno="guessing yes" ;;
# Guess yes on musl systems.
*-musl*) gl_cv_func_ptsname_sets_errno="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_ptsname_sets_errno="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_ptsname_sets_errno="$gl_cross_guess_normal" ;;
esac
])])
case $gl_cv_func_ptsname_sets_errno in
-# putenv.m4 serial 23
+# putenv.m4 serial 24
dnl Copyright (C) 2002-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_svid_putenv="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_svid_putenv="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_svid_putenv="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_svid_putenv="$gl_cross_guess_normal" ;;
esac
])
])
-# readlink.m4 serial 14
+# readlink.m4 serial 15
dnl Copyright (C) 2003, 2007, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
linux-* | linux) gl_cv_func_readlink_works="guessing yes" ;;
# Guess yes on glibc systems.
*-gnu* | gnu*) gl_cv_func_readlink_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_readlink_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_readlink_works="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.link conftest.lnk2])
-# realloc.m4 serial 17
+# realloc.m4 serial 18
dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
-m4_version_prereq([2.70], [] ,[
-
# This is adapted with modifications from upstream Autoconf here:
# https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=04be2b7a29d65d9a08e64e8e56e594c91749598c
AC_DEFUN([_AC_FUNC_REALLOC_IF],
*-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
| hpux* | solaris* | cygwin* | mingw*)
ac_cv_func_realloc_0_nonnull="guessing yes" ;;
- # If we don't know, assume the worst.
- *) ac_cv_func_realloc_0_nonnull="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;;
esac
])
])
esac
])# AC_FUNC_REALLOC
-])
-
# gl_FUNC_REALLOC_GNU
# -------------------
# Test whether 'realloc (0, 0)' is handled like in GNU libc, and replace
-# serial 68
+# serial 69
# Copyright (C) 1996-2001, 2003-2019 Free Software Foundation, Inc.
#
[case "$host_os" in
# Guess no on native Windows.
mingw*) gl_cv_func_re_compile_pattern_working="guessing no" ;;
- # Otherwise, assume it is not working.
- *) gl_cv_func_re_compile_pattern_working="guessing no" ;;
+ # Otherwise obey --enable-cross-guesses.
+ *) gl_cv_func_re_compile_pattern_working="$gl_cross_guess_normal" ;;
esac
])
])
-# remainder.m4 serial 8
+# remainder.m4 serial 9
dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_remainder_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_remainder_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_remainder_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_remainder_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# remainderf.m4 serial 12
+# remainderf.m4 serial 13
dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_remainderf_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_remainderf_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_remainderf_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_remainderf_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# remainderl.m4 serial 11
+# remainderl.m4 serial 12
dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_remainderl_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_remainderl_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_remainderl_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_remainderl_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# serial 31
+# serial 32
# Copyright (C) 2001, 2003, 2005-2006, 2009-2019 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
*-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_rename_slash_dst_works="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_rename_slash_dst_works="$gl_cross_guess_normal" ;;
esac
])
rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
*-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_rename_slash_src_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_rename_slash_src_works="$gl_cross_guess_normal" ;;
esac
])
rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
AC_CACHE_CHECK([whether rename manages hard links correctly],
[gl_cv_func_rename_link_works],
[if test $ac_cv_func_link = yes; then
- rm -rf conftest.f conftest.f1 conftest.f2
- if touch conftest.f conftest.f2 && ln conftest.f conftest.f1 &&
- set x `ls -i conftest.f conftest.f1` && test "$2" = "$4"; then
- AC_RUN_IFELSE(
- [AC_LANG_PROGRAM([[
-# include <errno.h>
-# include <stdio.h>
-# include <stdlib.h>
-# include <unistd.h>
- ]],
- [[int result = 0;
- if (rename ("conftest.f", "conftest.f1"))
- result |= 1;
- if (unlink ("conftest.f1"))
- result |= 2;
+ if test $cross_compiling != yes; then
+ rm -rf conftest.f conftest.f1 conftest.f2
+ if touch conftest.f conftest.f2 && ln conftest.f conftest.f1 &&
+ set x `ls -i conftest.f conftest.f1` && test "$2" = "$4"; then
+ AC_RUN_IFELSE(
+ [AC_LANG_PROGRAM([[
+# include <errno.h>
+# include <stdio.h>
+# include <stdlib.h>
+# include <unistd.h>
+ ]],
+ [[int result = 0;
+ if (rename ("conftest.f", "conftest.f1"))
+ result |= 1;
+ if (unlink ("conftest.f1"))
+ result |= 2;
- /* Allow either the POSIX-required behavior, where the
- previous rename kept conftest.f, or the (better) NetBSD
- behavior, where it removed conftest.f. */
- if (rename ("conftest.f", "conftest.f") != 0
- && errno != ENOENT)
- result |= 4;
+ /* Allow either the POSIX-required behavior, where the
+ previous rename kept conftest.f, or the (better) NetBSD
+ behavior, where it removed conftest.f. */
+ if (rename ("conftest.f", "conftest.f") != 0
+ && errno != ENOENT)
+ result |= 4;
- if (rename ("conftest.f1", "conftest.f1") == 0)
- result |= 8;
- if (rename ("conftest.f2", "conftest.f2") != 0)
- result |= 16;
- return result;
- ]])],
- [gl_cv_func_rename_link_works=yes],
- [gl_cv_func_rename_link_works=no],
- dnl When crosscompiling, assume rename is broken.
- [case "$host_os" in
- # Guess yes on Linux systems.
- linux-* | linux) gl_cv_func_rename_link_works="guessing yes" ;;
- # Guess yes on glibc systems.
- *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
- # Guess yes on native Windows.
- mingw*) gl_cv_func_rename_link_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_rename_link_works="guessing no" ;;
- esac
- ])
+ if (rename ("conftest.f1", "conftest.f1") == 0)
+ result |= 8;
+ if (rename ("conftest.f2", "conftest.f2") != 0)
+ result |= 16;
+ return result;
+ ]])],
+ [gl_cv_func_rename_link_works=yes],
+ [gl_cv_func_rename_link_works=no],
+ [dnl We don't get here.
+ :
+ ])
+ else
+ gl_cv_func_rename_link_works="guessing no"
+ fi
+ rm -rf conftest.f conftest.f1 conftest.f2
else
- gl_cv_func_rename_link_works="guessing no"
+ dnl When crosscompiling, assume rename is broken.
+ case "$host_os" in
+ # Guess yes on Linux systems.
+ linux-* | linux) gl_cv_func_rename_link_works="guessing yes" ;;
+ # Guess yes on glibc systems.
+ *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
+ # Guess yes on native Windows.
+ mingw*) gl_cv_func_rename_link_works="guessing yes" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_rename_link_works="$gl_cross_guess_normal" ;;
+ esac
fi
- rm -rf conftest.f conftest.f1 conftest.f2
else
gl_cv_func_rename_link_works=yes
fi
*-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_rename_dest_works="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_rename_dest_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_rename_dest_works="$gl_cross_guess_normal" ;;
esac
])
rm -rf conftest.f conftest.d1 conftest.d2
-# rintl.m4 serial 6
+# rintl.m4 serial 7
dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_rintl_works="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_rintl_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_rintl_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_rintl_works="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# rmdir.m4 serial 16
+# rmdir.m4 serial 17
dnl Copyright (C) 2002, 2005, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-gnu* | gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_rmdir_works="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_rmdir_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_rmdir_works="$gl_cross_guess_normal" ;;
esac
])
rm -rf conftest.dir conftest.file])
-# round.m4 serial 21
+# round.m4 serial 22
dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_round_ieee="guessing yes"],
[gl_cv_func_round_ieee="guessing no"])
;;
- # If we don't know, assume the worst.
- *) gl_cv_func_round_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_round_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# roundf.m4 serial 22
+# roundf.m4 serial 23
dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_roundf_ieee="guessing yes"],
[gl_cv_func_roundf_ieee="guessing no"])
;;
- # If we don't know, assume the worst.
- *) gl_cv_func_roundf_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_roundf_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# roundl.m4 serial 19
+# roundl.m4 serial 20
dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_roundl_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_roundl_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_roundl_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_roundl_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# select.m4 serial 10
+# select.m4 serial 11
dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
# Guess yes on glibc systems.
*-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_select_detects_ebadf="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;;
esac
])
])
-# setenv.m4 serial 28
+# setenv.m4 serial 29
dnl Copyright (C) 2001-2004, 2006-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
# Guess yes on musl systems.
*-musl*) gl_cv_func_setenv_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_setenv_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;;
esac
])])
case "$gl_cv_func_setenv_works" in
[case "$host_os" in
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_unsetenv_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;;
esac
])])
case "$gl_cv_func_unsetenv_works" in
-# signbit.m4 serial 17
+# signbit.m4 serial 18
dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_signbit="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_signbit="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_signbit="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_signbit="$gl_cross_guess_normal" ;;
esac
])
])
gl_cv_func_signbit_gcc="guessing no"
fi
;;
- # If we don't know, assume the worst.
- *) gl_cv_func_signbit_gcc="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_signbit_gcc="$gl_cross_guess_normal" ;;
esac
])
])
-# sleep.m4 serial 10
+# sleep.m4 serial 11
dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_sleep_works="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_sleep_works="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_sleep_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_sleep_works="$gl_cross_guess_normal" ;;
esac
])])
case "$gl_cv_func_sleep_works" in
-# serial 15
+# serial 16
# Copyright (C) 2009-2019 Free Software Foundation, Inc.
#
linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
# Guess yes on glibc systems.
*-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_stat_file_slash="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.tmp conftest.lnk])
-# stpncpy.m4 serial 17
+# stpncpy.m4 serial 18
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2019 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
], [gl_cv_func_stpncpy="guessing yes"],
[case "$host_os" in
*-musl*) gl_cv_func_stpncpy="guessing yes" ;;
- *) gl_cv_func_stpncpy="guessing no" ;;
+ *) gl_cv_func_stpncpy="$gl_cross_guess_normal" ;;
esac
])
])
-# strcasestr.m4 serial 24
+# strcasestr.m4 serial 25
dnl Copyright (C) 2005, 2007-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
#endif
],
[gl_cv_func_strcasestr_works_always="guessing yes"],
- [gl_cv_func_strcasestr_works_always="guessing no"])
+ [gl_cv_func_strcasestr_works_always="$gl_cross_guess_normal"])
])
])
case "$gl_cv_func_strcasestr_works_always" in
#endif
],
[gl_cv_func_strcasestr_linear="guessing yes"],
- [gl_cv_func_strcasestr_linear="guessing no"])
+ [gl_cv_func_strcasestr_linear="$gl_cross_guess_normal"])
])
])
case "$gl_cv_func_strcasestr_linear" in
-# strerror.m4 serial 20
+# strerror.m4 serial 21
dnl Copyright (C) 2002, 2007-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
# Guess yes on musl systems.
*-musl*) gl_cv_func_working_strerror="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_working_strerror="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
esac
])
])
*-musl*) gl_cv_func_strerror_0_works="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_strerror_0_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
esac
])
])
-# strerror_r.m4 serial 19
+# strerror_r.m4 serial 20
dnl Copyright (C) 2002, 2007-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_func_strerror_r_works=no],
[dnl Guess no on all platforms that have __xpg_strerror_r,
dnl at least until fixed glibc and cygwin are more common.
- gl_cv_func_strerror_r_works="guessing no"
+ gl_cv_func_strerror_r_works="$gl_cross_guess_normal"
])
])
fi
-# strstr.m4 serial 20
+# strstr.m4 serial 21
dnl Copyright (C) 2008-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
#endif
],
[gl_cv_func_strstr_works_always="guessing yes"],
- [gl_cv_func_strstr_works_always="guessing no"])
+ [gl_cv_func_strstr_works_always="$gl_cross_guess_normal"])
])
])
case "$gl_cv_func_strstr_works_always" in
#endif
],
[gl_cv_func_strstr_linear="guessing yes"],
- [gl_cv_func_strstr_linear="guessing no"])
+ [gl_cv_func_strstr_linear="$gl_cross_guess_normal"])
])
])
case "$gl_cv_func_strstr_linear" in
-# strtod.m4 serial 25
+# strtod.m4 serial 26
dnl Copyright (C) 2002-2003, 2006-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_strtod_works="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_strtod_works="guessing yes" ;;
- *) gl_cv_func_strtod_works="guessing no" ;;
+ *) gl_cv_func_strtod_works="$gl_cross_guess_normal" ;;
esac
])
])
-# strtold.m4 serial 4
+# strtold.m4 serial 5
dnl Copyright (C) 2002-2003, 2006-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[case "$host_os" in
# Guess yes on musl systems.
*-musl*) gl_cv_func_strtold_works="guessing yes" ;;
- *) gl_cv_func_strtold_works="guessing no" ;;
+ *) gl_cv_func_strtold_works="$gl_cross_guess_normal" ;;
esac
])
])
-# serial 8
+# serial 9
# See if we need to provide symlink replacement.
dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
linux-* | linux) gl_cv_func_symlink_works="guessing yes" ;;
# Guess yes on glibc systems.
*-gnu* | gnu*) gl_cv_func_symlink_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_symlink_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_symlink_works="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.f conftest.link conftest.lnk2])
-# serial 9
+# serial 10
# See if we need to provide symlinkat replacement.
dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
linux-* | linux) gl_cv_func_symlinkat_works="guessing yes" ;;
# Guess yes on glibc systems.
*-gnu* | gnu*) gl_cv_func_symlinkat_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_symlinkat_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_symlinkat_works="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.f conftest.link conftest.lnk2])
-# trunc.m4 serial 14
+# trunc.m4 serial 15
dnl Copyright (C) 2007, 2010-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_trunc_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_trunc_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_trunc_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_trunc_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# truncf.m4 serial 14
+# truncf.m4 serial 15
dnl Copyright (C) 2007, 2010-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_truncf_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_truncf_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_truncf_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_truncf_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# truncl.m4 serial 16
+# truncl.m4 serial 17
dnl Copyright (C) 2007-2008, 2010-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_truncl_ieee="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_truncl_ieee="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_truncl_ieee="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_truncl_ieee="$gl_cross_guess_normal" ;;
esac
])
LIBS="$save_LIBS"
-# serial 12
+# serial 13
# Copyright (C) 2003, 2007, 2009-2019 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
*-musl*) gl_cv_func_tzset_clobber="guessing no" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_tzset_clobber="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_tzset_clobber="guessing yes" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_tzset_clobber="$gl_cross_guess_inverted" ;;
esac
])
])
-# ungetc.m4 serial 7
+# ungetc.m4 serial 8
dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-android*) gl_cv_func_ungetc_works="guessing yes" ;;
# Guess yes on native Windows.
mingw*) gl_cv_func_ungetc_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_ungetc_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_ungetc_works="$gl_cross_guess_normal" ;;
esac
])
])
-# unlink.m4 serial 13
+# unlink.m4 serial 14
dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-gnu*) gl_cv_func_unlink_honors_slashes="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_unlink_honors_slashes="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_unlink_honors_slashes="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_unlink_honors_slashes="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.file conftest.lnk])
]])],
[gl_cv_func_unlink_parent_fails=yes],
[gl_cv_func_unlink_parent_fails=no],
- [# If we don't know, assume the worst.
- gl_cv_func_unlink_parent_fails="guessing no"
+ [# If we don't know, obey --enable-cross-guesses.
+ gl_cv_func_unlink_parent_fails="$gl_cross_guess_normal"
])
unset GL_SUBDIR_FOR_UNLINK
rm -rf "$tmp"
-# usleep.m4 serial 6
+# usleep.m4 serial 7
dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_usleep_works="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_usleep_works="guessing no" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_usleep_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_usleep_works="$gl_cross_guess_normal" ;;
esac
])])
case "$gl_cv_func_usleep_works" in
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
-dnl serial 9
+dnl serial 10
AC_DEFUN([gl_UTIMENS],
[
linux-* | linux) gl_cv_func_futimesat_works="guessing yes" ;;
# Guess yes on glibc systems.
*-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
- # If we don't know, assume the worst.
- *) gl_cv_func_futimesat_works="guessing no" ;;
+ # If we don't know, obey --enable-cross-guesses.
+ *) gl_cv_func_futimesat_works="$gl_cross_guess_normal" ;;
esac
])
rm -f conftest.file])
# Detect some bugs in glibc's implementation of utimes.
-# serial 6
+# serial 7
dnl Copyright (C) 2003-2005, 2009-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
*-musl*) gl_cv_func_working_utimes="guessing yes" ;;
# Guess no on native Windows.
mingw*) gl_cv_func_working_utimes="guessing no" ;;
- *) gl_cv_func_working_utimes="guessing no" ;;
+ *) gl_cv_func_working_utimes="$gl_cross_guess_normal" ;;
esac
])
])
-# wcwidth.m4 serial 29
+# wcwidth.m4 serial 30
dnl Copyright (C) 2006-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*-musl*) gl_cv_func_wcwidth_works="guessing yes";;
# Guess yes on AIX 7 systems.
aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
- *) gl_cv_func_wcwidth_works="guessing no";;
+ *) gl_cv_func_wcwidth_works="$gl_cross_guess_normal";;
esac
changequote([,])dnl
])