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
26aa098d
Commit
26aa098d
authored
Jun 06, 2008
by
Nico Sabbi
Browse files
simplified detect_autoconf() and removed some unexplainable nonsense
parent
95839d3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
autogen.sh
View file @
26aa098d
...
...
@@ -39,19 +39,13 @@ detect_configure_ac() {
# AUTOCONF
#-------------------
detect_autoconf
()
{
set
--
`
type
autoconf 2>/dev/null
`
RETVAL
=
$?
NUM_RESULT
=
$#
RESULT_FILE
=
$3
if
[
$RETVAL
-eq
0
-a
$NUM_RESULT
-eq
3
-a
-f
"
$RESULT_FILE
"
]
;
then
AC
=
"
`
autoconf
--version
|
sed
-n
1p |
sed
-e
's/[a-zA-Z\ \.\(\)\-]//g'
`
"
AUTOCONF_MIN
=
"
`
echo
$AUTOCONF_MIN
|
sed
-e
's/[a-zA-Z\ \.\(\)\-]//g'
`
"
if
test
$AC
-lt
100
;
then
AC
=
`
expr
$AC
\*
10
`
fi
AUTOCONF_MIN
=
"
`
echo
$AUTOCONF_MIN
|
sed
-e
's/[a-zA-Z\ \.\(\)\-]//g'
`
"
if
[
`
expr
$AC
`
-ge
$AUTOCONF_MIN
]
;
then
autoconf_ok
=
yes
fi
else
echo
echo
"**Error**: You must have
\`
autoconf' >=
$AUTOCONF_MIN
installed to"
...
...
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