Ignore:
Timestamp:
Mar 14, 2018, 10:28:10 PM (7 years ago)
Author:
bird
Message:

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk

  • trunk/src/kmk/acinclude.m4

    r2591 r3140  
    22dnl
    33dnl Automake will incorporate this into its generated aclocal.m4.
    4 dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
    5 dnl 2008, 2009, 2010 Free Software Foundation, Inc.
     4dnl Copyright (C) 1998-2016 Free Software Foundation, Inc.
    65dnl This file is part of GNU Make.
    76dnl
     
    101100dnl ---------------------------------------------------------------------------
    102101dnl From Paul Eggert <eggert@twinsun.com>
     102dnl Update for Darwin by Troy Runkel <Troy.Runkel@mathworks.com>
     103dnl Update for AIX by Olexiy Buyanskyy (Savannah bug 32485)
    103104
    104105AC_DEFUN([AC_STRUCT_ST_MTIM_NSEC],
    105  [AC_CACHE_CHECK([for nanoseconds field of struct stat.st_mtim],
     106 [AC_CACHE_CHECK([for nanoseconds field of struct stat],
    106107   ac_cv_struct_st_mtim_nsec,
    107108   [ac_save_CPPFLAGS="$CPPFLAGS"
    108109    ac_cv_struct_st_mtim_nsec=no
    109     # tv_nsec -- the usual case
    110     # _tv_nsec -- Solaris 2.6, if
     110    # st_mtim.tv_nsec -- the usual case
     111    # st_mtim._tv_nsec -- Solaris 2.6, if
    111112    #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
    112113    #    && !defined __EXTENSIONS__)
    113     # st__tim.tv_nsec -- UnixWare 2.1.2
    114     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
     114    # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
     115    # st_mtime_n -- AIX 5.2 and above
     116    # st_mtimespec.tv_nsec -- Darwin (Mac OSX)
     117    for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do
    115118      CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
    116119      AC_TRY_COMPILE([#include <sys/types.h>
    117120#include <sys/stat.h>
    118         ], [struct stat s; s.st_mtim.ST_MTIM_NSEC;],
     121        ], [struct stat s; s.ST_MTIM_NSEC;],
    119122        [ac_cv_struct_st_mtim_nsec=$ac_val; break])
    120123    done
Note: See TracChangeset for help on using the changeset viewer.