common/autoconf/basics.m4

changeset 2219
cb1203f48728
parent 2215
7a73b8b4ac8a
child 2224
20daa32eec6f
equal deleted inserted replaced
2216:0c4c976612d3 2219:cb1203f48728
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 [
857 857
858 # Check that source files have basic read permissions set. This might 858 # Check that source files have basic read permissions set. This might
859 # not be the case in cygwin in certain conditions. 859 # not be the case in cygwin in certain conditions.
860 AC_DEFUN_ONCE([BASIC_CHECK_SRC_PERMS], 860 AC_DEFUN_ONCE([BASIC_CHECK_SRC_PERMS],
861 [ 861 [
862 if test x"$OPENJDK_BUILD_OS" = xwindows; then 862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
863 file_to_test="$SRC_ROOT/LICENSE" 863 file_to_test="$SRC_ROOT/LICENSE"
864 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 864 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then
865 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.]) 865 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.])
866 fi 866 fi
867 fi 867 fi

mercurial