From: Junio C Hamano Date: Tue, 28 Oct 2008 04:14:24 GMT Subject: Re: [PATCH] Add support for uintmax_t type on FreeBSD 4.9 Message-ID: <7v8ws9gxun.fsf@gitster.siamese.dyndns.org> In-Reply-To: <9a0027270810270623h4c0c34d0vcd92f61edff6da5@mail.gmail.com> "David Syzdek" writes: > The following should match against FreeBSD 4.x: > > FREEBSD_MAJOR := $(shell sh -c 'echo $(uname_R) |cut -d. -f1') > ifeq ($(FREEBSD_MAJOR),4) > NO_UINTMAX_T = YesPlease > NO_STRTOUMAX = YesPlease > endif > > Is the use of FREEBSD_MAJOR okay, or would another name be more appropriate? Other parts of the Makefile seems to do something like this: ifeq ($(shell expr "$(uname_R)" : '4\.'),2)