Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
39b9b363
Commit
39b9b363
authored
Nov 14, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extras/tools: check if autotools are recent enough
parent
98f09b5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
extras/tools/bootstrap
extras/tools/bootstrap
+17
-4
No files found.
extras/tools/bootstrap
View file @
39b9b363
...
...
@@ -25,17 +25,30 @@ then
fi
check
()
{
# FIXME : add version check: automake 1.11, autoconf 2.67 libtool 2.2
if
!
$1
--version
>
/dev/null 2>&1
then
echo
"
$1
not found"
NEEDED
=
"
$NEEDED
.
$1
"
else
# found, need to check version ?
[
-z
"
$2
"
]
&&
return
# no
# we only check GNU tools, their version have the form MAJOR.MINOR
gotver
=
`
$1
--version
|
head
-1
|
sed
s/
'.* '
//
`
gotmajor
=
`
echo
$gotver
|cut
-d
.
-f1
`
gotminor
=
`
echo
$gotver
|cut
-d
.
-f2
`
needmajor
=
`
echo
$2
|cut
-d
.
-f1
`
needminor
=
`
echo
$2
|cut
-d
.
-f2
`
if
[
"
$needmajor
"
-gt
"
$gotmajor
"
-o
"
$needmajor
"
-eq
"
$gotmajor
"
-a
"
$needminor
"
-gt
"
$gotminor
"
]
then
echo
"
$1
too old"
NEEDED
=
"
$NEEDED
.
$1
"
fi
fi
}
check autoconf
check automake
check libtool
check autoconf
2.67
check automake
1.11
check libtool
2.2
check pkg-config
check xz
check cmake
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment