29
29
RECOMMENDED_PANDOC_VERSION=2.19.2
30
30
31
31
# ##############################################################################
32
- # Setup the most fundamental tools that relies on not much else to set up,
33
- # but is used by much of the early bootstrap code .
32
+ # Setup the most fundamental tools, used for setting up build platform and
33
+ # path handling .
34
34
AC_DEFUN_ONCE ( [ BASIC_SETUP_FUNDAMENTAL_TOOLS] ,
35
35
[
36
36
# Bootstrapping: These tools are needed by UTIL_LOOKUP_PROGS
@@ -42,15 +42,34 @@ AC_DEFUN_ONCE([BASIC_SETUP_FUNDAMENTAL_TOOLS],
42
42
UTIL_CHECK_NONEMPTY(FILE)
43
43
AC_PATH_PROGS ( LDD , ldd )
44
44
45
- # First are all the fundamental required tools.
45
+ # Required tools
46
+ UTIL_REQUIRE_PROGS(ECHO, echo)
47
+ UTIL_REQUIRE_PROGS(TR, tr)
48
+ UTIL_REQUIRE_PROGS(UNAME, uname)
49
+ UTIL_REQUIRE_PROGS(WC, wc)
50
+
51
+ # Required tools with some special treatment
52
+ UTIL_REQUIRE_SPECIAL(EGREP, [ AC_PROG_EGREP ] )
53
+ UTIL_REQUIRE_SPECIAL(SED, [ AC_PROG_SED ] )
54
+
55
+ # Tools only needed on some platforms
56
+ UTIL_LOOKUP_PROGS(PATHTOOL, cygpath wslpath)
57
+ UTIL_LOOKUP_PROGS(CMD, cmd.exe, $PATH:/cygdrive/c/windows/system32:/mnt/c/windows/system32:/c/windows/system32)
58
+ ] )
59
+
60
+ # ##############################################################################
61
+ # Setup further tools that should be resolved early but after setting up
62
+ # build platform and path handling.
63
+ AC_DEFUN_ONCE ( [ BASIC_SETUP_TOOLS] ,
64
+ [
65
+ # Required tools
46
66
UTIL_REQUIRE_PROGS(BASH, bash)
47
67
UTIL_REQUIRE_PROGS(CAT, cat)
48
68
UTIL_REQUIRE_PROGS(CHMOD, chmod)
49
69
UTIL_REQUIRE_PROGS(CP, cp)
50
70
UTIL_REQUIRE_PROGS(CUT, cut)
51
71
UTIL_REQUIRE_PROGS(DATE, date)
52
72
UTIL_REQUIRE_PROGS(DIFF, gdiff diff)
53
- UTIL_REQUIRE_PROGS(ECHO, echo)
54
73
UTIL_REQUIRE_PROGS(EXPR, expr)
55
74
UTIL_REQUIRE_PROGS(FIND, find)
56
75
UTIL_REQUIRE_PROGS(GUNZIP, gunzip)
@@ -72,16 +91,11 @@ AC_DEFUN_ONCE([BASIC_SETUP_FUNDAMENTAL_TOOLS],
72
91
UTIL_REQUIRE_PROGS(TAR, gtar tar)
73
92
UTIL_REQUIRE_PROGS(TEE, tee)
74
93
UTIL_REQUIRE_PROGS(TOUCH, touch)
75
- UTIL_REQUIRE_PROGS(TR, tr)
76
- UTIL_REQUIRE_PROGS(UNAME, uname)
77
- UTIL_REQUIRE_PROGS(WC, wc)
78
94
UTIL_REQUIRE_PROGS(XARGS, xargs)
79
95
80
- # Then required tools that require some special treatment.
96
+ # Required tools with some special treatment
81
97
UTIL_REQUIRE_SPECIAL(GREP, [ AC_PROG_GREP ] )
82
- UTIL_REQUIRE_SPECIAL(EGREP, [ AC_PROG_EGREP ] )
83
98
UTIL_REQUIRE_SPECIAL(FGREP, [ AC_PROG_FGREP ] )
84
- UTIL_REQUIRE_SPECIAL(SED, [ AC_PROG_SED ] )
85
99
86
100
# Optional tools, we can do without them
87
101
UTIL_LOOKUP_PROGS(DF, df)
@@ -90,10 +104,8 @@ AC_DEFUN_ONCE([BASIC_SETUP_FUNDAMENTAL_TOOLS],
90
104
UTIL_LOOKUP_PROGS(READLINK, greadlink readlink)
91
105
UTIL_LOOKUP_PROGS(WHOAMI, whoami)
92
106
93
- # These are only needed on some platforms
94
- UTIL_LOOKUP_PROGS(PATHTOOL, cygpath wslpath)
107
+ # Tools only needed on some platforms
95
108
UTIL_LOOKUP_PROGS(LSB_RELEASE, lsb_release)
96
- UTIL_LOOKUP_PROGS(CMD, cmd.exe, $PATH:/cygdrive/c/windows/system32:/mnt/c/windows/system32:/c/windows/system32)
97
109
98
110
# For compare.sh only
99
111
UTIL_LOOKUP_PROGS(CMP, cmp)
0 commit comments