common/autoconf/basics.m4
changeset 43046 717ce6d4eaa1
parent 42136 f872c8278074
child 43050 318848ed8345
equal deleted inserted replaced
43045:17b5e2fe0130 43046:717ce6d4eaa1
     1 #
     1 #
     2 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
  1009 AC_DEFUN([BASIC_CHECK_TAR],
  1009 AC_DEFUN([BASIC_CHECK_TAR],
  1010 [
  1010 [
  1011   # Test which kind of tar was found
  1011   # Test which kind of tar was found
  1012   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
  1012   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
  1013     TAR_TYPE="gnu"
  1013     TAR_TYPE="gnu"
       
  1014   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
       
  1015     TAR_TYPE="bsd"
  1014   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
  1016   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
  1015     TAR_TYPE="bsd"
  1017     TAR_TYPE="bsd"
  1016   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
  1018   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
  1017     TAR_TYPE="solaris"
  1019     TAR_TYPE="solaris"
  1018   fi
  1020   fi