003 File Manager
Current Path:
/usr/src/contrib/ntp/sntp/m4
usr
/
src
/
contrib
/
ntp
/
sntp
/
m4
/
📁
..
📄
ax_c99_struct_init.m4
(1.64 KB)
📄
define_dir.m4
(1.16 KB)
📄
hms_search_lib.m4
(701 B)
📄
libtool.m4
(298.56 KB)
📄
ltoptions.m4
(14.17 KB)
📄
ltsugar.m4
(4.28 KB)
📄
ltversion.m4
(699 B)
📄
lt~obsolete.m4
(6 KB)
📄
ntp_af_unspec.m4
(597 B)
📄
ntp_cacheversion.m4
(4.08 KB)
📄
ntp_compiler.m4
(5.15 KB)
📄
ntp_crosscompile.m4
(300 B)
📄
ntp_crypto_rand.m4
(1.41 KB)
📄
ntp_debug.m4
(549 B)
📄
ntp_dir_sep.m4
(589 B)
📄
ntp_facilitynames.m4
(797 B)
📄
ntp_googletest.m4
(1.35 KB)
📄
ntp_harden.m4
(1.19 KB)
📄
ntp_ipv6.m4
(10.55 KB)
📄
ntp_lib_m.m4
(388 B)
📄
ntp_libevent.m4
(6.34 KB)
📄
ntp_libntp.m4
(24.98 KB)
📄
ntp_lineeditlibs.m4
(2.9 KB)
📄
ntp_locinfo.m4
(3.2 KB)
📄
ntp_openssl.m4
(9.84 KB)
📄
ntp_pkg_config.m4
(673 B)
📄
ntp_problemtests.m4
(1.96 KB)
📄
ntp_prog_cc.m4
(460 B)
📄
ntp_rlimit.m4
(2.55 KB)
📄
ntp_sntp.m4
(643 B)
📄
ntp_sysexits.m4
(352 B)
📄
ntp_unitytest.m4
(531 B)
📄
ntp_ver_suffix.m4
(404 B)
📄
ntp_vpathhack.m4
(1.52 KB)
📄
openldap-thread-check.m4
(18.72 KB)
📄
openldap.m4
(32.08 KB)
📄
os_cflags.m4
(3.27 KB)
📄
snprintf.m4
(11.16 KB)
📄
sntp_problemtests.m4
(1.35 KB)
📄
version.m4
(39 B)
Editing: ax_c99_struct_init.m4
# =========================================================================== # http://www.gnu.org/software/autoconf-archive/ax_c99_struct_init.html # =========================================================================== # # SYNOPSIS # # AX_C99_STRUCT_INIT # # DESCRIPTION # # This macro defines MISSING_C99_STRUCT_INIT if the C compiler does not # supports the C99 tagged structure initialization. # # Given: struct foo_s {int i1; int i2; int i3;}; # one can write: # #if !define(MISSING_C99_STRUCT_INIT) # # define FOO_INIT(a, b, c) { .i1 = a, .i2 = b, .i3 = c } # #else # # define FOO_INIT(a, b, c) { a, b, c } # # static struct foo_s foo[] = { # FOO_INIT(1, 1, 1), # FOO_INIT(2, 2, 2), # FOO_INIT(0, 0, 0) # }; # # LICENSE # # Copyright (c) 2015 Network Time Foundation # # Author: Harlan Stenn <stenn@nwtime.org> # # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty provided the copyright notice # and this notice are preserved. This file is offered as-is, without any # warranty. #serial 1 AC_DEFUN([AX_C99_STRUCT_INIT], [ AC_MSG_CHECKING([whether the compiler supports C99 structure initialization]) AC_REQUIRE([AC_PROG_CC_C99]) AC_LANG_PUSH([C]) dnl AC_LINK_IFELSE? AC_COMPILE_IFELSE( [AC_LANG_SOURCE([[ struct foo_s {int i1; int i2;}; int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; } ]])], AC_MSG_RESULT([yes]), AC_MSG_RESULT([no]) AC_DEFINE([MISSING_C99_STRUCT_INIT], [1], [Define to 1 if the compiler does not support C99's structure initialization.]), ) AC_LANG_POP([C]) ]);
Upload File
Create Folder