common/autoconf/basics.m4
changeset 25882 bd4315f0084b
parent 25854 98ce0879ab4c
child 26130 2ea1262921e0
equal deleted inserted replaced
25881:ca196298fe11 25882:bd4315f0084b
   375   BASIC_REQUIRE_PROGS(CAT, cat)
   375   BASIC_REQUIRE_PROGS(CAT, cat)
   376   BASIC_REQUIRE_PROGS(CHMOD, chmod)
   376   BASIC_REQUIRE_PROGS(CHMOD, chmod)
   377   BASIC_REQUIRE_PROGS(CMP, cmp)
   377   BASIC_REQUIRE_PROGS(CMP, cmp)
   378   BASIC_REQUIRE_PROGS(COMM, comm)
   378   BASIC_REQUIRE_PROGS(COMM, comm)
   379   BASIC_REQUIRE_PROGS(CP, cp)
   379   BASIC_REQUIRE_PROGS(CP, cp)
   380   BASIC_REQUIRE_PROGS(CPIO, cpio)
       
   381   BASIC_REQUIRE_PROGS(CUT, cut)
   380   BASIC_REQUIRE_PROGS(CUT, cut)
   382   BASIC_REQUIRE_PROGS(DATE, date)
   381   BASIC_REQUIRE_PROGS(DATE, date)
   383   BASIC_REQUIRE_PROGS(DIFF, [gdiff diff])
   382   BASIC_REQUIRE_PROGS(DIFF, [gdiff diff])
   384   BASIC_REQUIRE_PROGS(DIRNAME, dirname)
   383   BASIC_REQUIRE_PROGS(DIRNAME, dirname)
   385   BASIC_REQUIRE_PROGS(ECHO, echo)
   384   BASIC_REQUIRE_PROGS(ECHO, echo)
   425   # These are not required on all platforms
   424   # These are not required on all platforms
   426   BASIC_PATH_PROGS(CYGPATH, cygpath)
   425   BASIC_PATH_PROGS(CYGPATH, cygpath)
   427   BASIC_PATH_PROGS(READLINK, [greadlink readlink])
   426   BASIC_PATH_PROGS(READLINK, [greadlink readlink])
   428   BASIC_PATH_PROGS(DF, df)
   427   BASIC_PATH_PROGS(DF, df)
   429   BASIC_PATH_PROGS(SETFILE, SetFile)
   428   BASIC_PATH_PROGS(SETFILE, SetFile)
       
   429   BASIC_PATH_PROGS(CPIO, [cpio bsdcpio])
   430 ])
   430 ])
   431 
   431 
   432 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
   432 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
   433 AC_DEFUN_ONCE([BASIC_SETUP_PATHS],
   433 AC_DEFUN_ONCE([BASIC_SETUP_PATHS],
   434 [
   434 [
   952 
   952 
   953 # Check that source files have basic read permissions set. This might
   953 # Check that source files have basic read permissions set. This might
   954 # not be the case in cygwin in certain conditions.
   954 # not be the case in cygwin in certain conditions.
   955 AC_DEFUN_ONCE([BASIC_CHECK_SRC_PERMS],
   955 AC_DEFUN_ONCE([BASIC_CHECK_SRC_PERMS],
   956 [
   956 [
   957   if test x"$OPENJDK_BUILD_OS" = xwindows; then
   957   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
   958     file_to_test="$SRC_ROOT/LICENSE"
   958     file_to_test="$SRC_ROOT/LICENSE"
   959     if test `$STAT -c '%a' "$file_to_test"` -lt 400; then
   959     if test `$STAT -c '%a' "$file_to_test"` -lt 400; then
   960       AC_MSG_ERROR([Bad file permissions on src files. This is usually caused by cloning the repositories with a non cygwin hg in a directory not created in cygwin.])
   960       AC_MSG_ERROR([Bad file permissions on src files. This is usually caused by cloning the repositories with a non cygwin hg in a directory not created in cygwin.])
   961     fi
   961     fi
   962   fi
   962   fi