Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
libdvdread
Commits
f42e87f8
Commit
f42e87f8
authored
Jun 06, 2008
by
Nico Sabbi
Browse files
simplified try_libtool_executable()
parent
b82fc7d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
autogen.sh
View file @
f42e87f8
...
...
@@ -85,17 +85,13 @@ run_autoconf () {
#-------------------
try_libtool_executable
()
{
libtool
=
$1
set
--
`
type
$libtool
2>/dev/null
`
RETVAL
=
$?
NUM_RESULT
=
$#
RESULT_FILE
=
$3
if
[
$RETVAL
-eq
0
-a
$NUM_RESULT
-eq
3
-a
-f
"
$RESULT_FILE
"
]
;
then
LT
=
"
`
$libtool
--version
|
awk
'{ print $4 }'
|
sed
-e
's/[a-zA-Z\ \.\(\)\-\;]//g'
`
"
if
test
"
$LT
"
-ne
""
;
then
LIBTOOL_MIN
=
"
`
echo
$LIBTOOL_MIN
|
sed
-e
's/[a-zA-Z\ \.\(\)\-]//g'
`
"
if
test
$LT
-lt
100
;
then
LT
=
`
expr
$LT
\*
10
`
fi
if
[
`
expr
$LT
`
-ge
$LIBTOOL_MIN
]
;
then
if
[
`
expr
"
$LT
"
`
-ge
$LIBTOOL_MIN
]
;
then
libtool_ok
=
yes
fi
fi
...
...
Write
Preview
Supports
Markdown
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