Addresses #1531 fix newbrt/ make checko2 in windows

git-svn-id: file:///svn/toku/tokudb@9961 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Yoni Fogel 2013-04-16 23:57:43 -04:00
parent c1a8d03b11
commit 1e1031f1ce

View file

@ -110,8 +110,9 @@ check: bins
%$(BINSUF): $(NEWBRT) $(LIBPORTABILITY)
checko2: SHELL=/bin/bash
checko2:
@if [[ "$(OPTFLAGS)" =~ "-O([2-3])" ]] ; then \
@shopt -s compat31; if [[ "$(OPTFLAGS)" =~ "-O([2-3x])" ]] ; then \
echo OPTFLAGS=$(OPTFLAGS) ok; \
else \
echo OPTFLAGS=$(OPTFLAGS) bad; exit 1; \