4.104.114.84.95
Line | |
---|
1 | dnl |
---|
2 | dnl $Id$ |
---|
3 | dnl |
---|
4 | |
---|
5 | dnl macro to detect mkdir |
---|
6 | AC_DEFUN(RTEMS_PATH_MKDIR, |
---|
7 | [AC_PATH_PROG(MKDIR,mkdir) |
---|
8 | ]) |
---|
9 | |
---|
10 | dnl macro to check for mkdir -p |
---|
11 | AC_DEFUN(RTEMS_PROG_MKDIR_P, |
---|
12 | [ |
---|
13 | AC_REQUIRE([RTEMS_PATH_MKDIR]) |
---|
14 | AC_MSG_CHECKING([for working $MKDIR -p]) |
---|
15 | AC_CACHE_VAL(rtems_cv_prog_mkdir_p, |
---|
16 | [rm -rf conftestdata |
---|
17 | if $MKDIR -p conftestdata 2>/dev/null ;then |
---|
18 | rtems_cv_prog_MKDIR_P="yes" |
---|
19 | else |
---|
20 | rtems_cv_prog_MKDIR_P="no" |
---|
21 | fi])dnl |
---|
22 | rm -rf conftestdata |
---|
23 | AC_MSG_RESULT($rtems_cv_prog_MKDIR_P) |
---|
24 | ]) |
---|
25 | |
---|
26 | dnl macro to check for mkdir -m 0755 |
---|
27 | AC_DEFUN(RTEMS_PROG_MKDIR_M, |
---|
28 | [ |
---|
29 | AC_REQUIRE([RTEMS_PATH_MKDIR]) |
---|
30 | AC_MSG_CHECKING([for working $MKDIR -m 0755]) |
---|
31 | AC_CACHE_VAL(rtems_cv_prog_MKDIR_P, |
---|
32 | [rm -rf conftestdata |
---|
33 | if $MKDIR -m 0775 conftestdata 2>/dev/null; then |
---|
34 | rtems_cv_prog_MKDIR_M="yes" |
---|
35 | else |
---|
36 | rtems_cv_prog_MKDIR_M="no" |
---|
37 | fi])dnl |
---|
38 | rm -rf conftestdata |
---|
39 | AC_MSG_RESULT($rtems_cv_prog_MKDIR_M) |
---|
40 | ]) |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.