mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 06:50:22 +00:00
6c996bfc8f
* bootstrap (modules): Add time_r. * gnulib/m4/time_h.m4: New file. * gnulib/m4/time_r.m4: New file. * gnulib/lib/time_r.c: New file. * gnulib/tests/test-time.c: New file. * gnulib/lib/time.in.h: New file. * gnulib/lib/Makefile.am: Update. * gnulib/lib/fseeko.c: Likewise. * gnulib/lib/lstat.c: Likewise. * gnulib/lib/netdb.in.h: Likewise. * gnulib/lib/stdint.in.h: Likewise. * gnulib/lib/stdlib.in.h: Likewise. * gnulib/lib/sys_select.in.h: Likewise. * gnulib/lib/sys_stat.in.h: Likewise. * gnulib/lib/sys_time.in.h: Likewise. * gnulib/lib/unistd.in.h: Likewise. * gnulib/lib/wchar.in.h: Likewise. * gnulib/m4/codeset.m4: Likewise. * gnulib/m4/errno_h.m4: Likewise. * gnulib/m4/extensions.m4: Likewise. * gnulib/m4/getaddrinfo.m4: Likewise. * gnulib/m4/gettext.m4: Likewise. * gnulib/m4/glibc2.m4: Likewise. * gnulib/m4/glibc21.m4: Likewise. * gnulib/m4/gnulib-cache.m4: Likewise. * gnulib/m4/gnulib-comp.m4: Likewise. * gnulib/m4/iconv.m4: Likewise. * gnulib/m4/include_next.m4: Likewise. * gnulib/m4/intdiv0.m4: Likewise. * gnulib/m4/intlmacosx.m4: Likewise. * gnulib/m4/intmax.m4: Likewise. * gnulib/m4/inttypes-pri.m4: Likewise. * gnulib/m4/inttypes_h.m4: Likewise. * gnulib/m4/lcmessage.m4: Likewise. * gnulib/m4/lib-link.m4: Likewise. * gnulib/m4/lstat.m4: Likewise. * gnulib/m4/netdb_h.m4: Likewise. * gnulib/m4/nls.m4: Likewise. * gnulib/m4/po.m4: Likewise. * gnulib/m4/printf-posix.m4: Likewise. * gnulib/m4/printf.m4: Likewise. * gnulib/m4/progtest.m4: Likewise. * gnulib/m4/size_max.m4: Likewise. * gnulib/m4/sockets.m4: Likewise. * gnulib/m4/stdint.m4: Likewise. * gnulib/m4/stdint_h.m4: Likewise. * gnulib/m4/sys_ioctl_h.m4: Likewise. * gnulib/m4/threadlib.m4: Likewise. * gnulib/m4/uintmax_t.m4: Likewise. * gnulib/m4/visibility.m4: Likewise. * gnulib/m4/wchar.m4: Likewise. * gnulib/m4/wchar_t.m4: Likewise. * gnulib/m4/wint_t.m4: Likewise. * gnulib/m4/xsize.m4: Likewise. * gnulib/tests/Makefile.am: Likewise. * gnulib/tests/sockets.h: Likewise. * gnulib/tests/.cvsignore: Likewise. * gnulib/tests/.gitignore: Likewise. * tests/.gitignore: Likewise. * docs/examples/.gitignore: Likewise. * gnulib/lib/.cvsignore: Likewise. * gnulib/lib/.gitignore: Likewise. remove files associated with obsolete strpbrk module * gnulib/lib/strpbrk.c: Remove file. * gnulib/m4/strpbrk.m4: Remove file.
100 lines
3.5 KiB
Plaintext
100 lines
3.5 KiB
Plaintext
dnl A placeholder for ISO C99 <wchar.h>, for platforms that have issues.
|
|
|
|
dnl Copyright (C) 2007-2008 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.
|
|
|
|
dnl Written by Eric Blake.
|
|
|
|
# wchar.m4 serial 22
|
|
|
|
AC_DEFUN([gl_WCHAR_H],
|
|
[
|
|
AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
|
|
AC_CACHE_CHECK([whether <wchar.h> is standalone],
|
|
[gl_cv_header_wchar_h_standalone],
|
|
[AC_COMPILE_IFELSE([[#include <wchar.h>
|
|
wchar_t w;]],
|
|
[gl_cv_header_wchar_h_standalone=yes],
|
|
[gl_cv_header_wchar_h_standalone=no])])
|
|
|
|
AC_REQUIRE([gt_TYPE_WINT_T])
|
|
if test $gt_cv_c_wint_t = yes; then
|
|
HAVE_WINT_T=1
|
|
else
|
|
HAVE_WINT_T=0
|
|
fi
|
|
AC_SUBST([HAVE_WINT_T])
|
|
|
|
if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
|
|
WCHAR_H=wchar.h
|
|
fi
|
|
|
|
dnl Prepare for creating substitute <wchar.h>.
|
|
dnl Do it always: WCHAR_H may be empty here but can be set later.
|
|
dnl Check for <wchar.h> (missing in Linux uClibc when built without wide
|
|
dnl character support).
|
|
AC_CHECK_HEADERS_ONCE([wchar.h])
|
|
if test $ac_cv_header_wchar_h = yes; then
|
|
HAVE_WCHAR_H=1
|
|
else
|
|
HAVE_WCHAR_H=0
|
|
fi
|
|
AC_SUBST([HAVE_WCHAR_H])
|
|
gl_CHECK_NEXT_HEADERS([wchar.h])
|
|
])
|
|
|
|
dnl Unconditionally enables the replacement of <wchar.h>.
|
|
AC_DEFUN([gl_REPLACE_WCHAR_H],
|
|
[
|
|
AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
|
|
WCHAR_H=wchar.h
|
|
])
|
|
|
|
AC_DEFUN([gl_WCHAR_MODULE_INDICATOR],
|
|
[
|
|
dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
|
|
AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
|
|
GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
|
|
])
|
|
|
|
AC_DEFUN([gl_WCHAR_H_DEFAULTS],
|
|
[
|
|
GNULIB_BTOWC=0; AC_SUBST([GNULIB_BTOWC])
|
|
GNULIB_WCTOB=0; AC_SUBST([GNULIB_WCTOB])
|
|
GNULIB_MBSINIT=0; AC_SUBST([GNULIB_MBSINIT])
|
|
GNULIB_MBRTOWC=0; AC_SUBST([GNULIB_MBRTOWC])
|
|
GNULIB_MBRLEN=0; AC_SUBST([GNULIB_MBRLEN])
|
|
GNULIB_MBSRTOWCS=0; AC_SUBST([GNULIB_MBSRTOWCS])
|
|
GNULIB_MBSNRTOWCS=0; AC_SUBST([GNULIB_MBSNRTOWCS])
|
|
GNULIB_WCRTOMB=0; AC_SUBST([GNULIB_WCRTOMB])
|
|
GNULIB_WCSRTOMBS=0; AC_SUBST([GNULIB_WCSRTOMBS])
|
|
GNULIB_WCSNRTOMBS=0; AC_SUBST([GNULIB_WCSNRTOMBS])
|
|
GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH])
|
|
dnl Assume proper GNU behavior unless another module says otherwise.
|
|
HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC])
|
|
HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT])
|
|
HAVE_MBRTOWC=1; AC_SUBST([HAVE_MBRTOWC])
|
|
HAVE_MBRLEN=1; AC_SUBST([HAVE_MBRLEN])
|
|
HAVE_MBSRTOWCS=1; AC_SUBST([HAVE_MBSRTOWCS])
|
|
HAVE_MBSNRTOWCS=1; AC_SUBST([HAVE_MBSNRTOWCS])
|
|
HAVE_WCRTOMB=1; AC_SUBST([HAVE_WCRTOMB])
|
|
HAVE_WCSRTOMBS=1; AC_SUBST([HAVE_WCSRTOMBS])
|
|
HAVE_WCSNRTOMBS=1; AC_SUBST([HAVE_WCSNRTOMBS])
|
|
HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB])
|
|
HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH])
|
|
REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T])
|
|
REPLACE_BTOWC=0; AC_SUBST([REPLACE_BTOWC])
|
|
REPLACE_WCTOB=0; AC_SUBST([REPLACE_WCTOB])
|
|
REPLACE_MBSINIT=0; AC_SUBST([REPLACE_MBSINIT])
|
|
REPLACE_MBRTOWC=0; AC_SUBST([REPLACE_MBRTOWC])
|
|
REPLACE_MBRLEN=0; AC_SUBST([REPLACE_MBRLEN])
|
|
REPLACE_MBSRTOWCS=0; AC_SUBST([REPLACE_MBSRTOWCS])
|
|
REPLACE_MBSNRTOWCS=0;AC_SUBST([REPLACE_MBSNRTOWCS])
|
|
REPLACE_WCRTOMB=0; AC_SUBST([REPLACE_WCRTOMB])
|
|
REPLACE_WCSRTOMBS=0; AC_SUBST([REPLACE_WCSRTOMBS])
|
|
REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH])
|
|
WCHAR_H=''; AC_SUBST([WCHAR_H])
|
|
])
|