Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
225e21ef
Commit
225e21ef
authored
Feb 11, 2007
by
Måns Rullgård
Browse files
simplify SDL check
Originally committed as revision 7922 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
30f35ab0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
configure
configure
+5
-9
No files found.
configure
View file @
225e21ef
...
...
@@ -1666,21 +1666,17 @@ fi
sdl_too_old
=
no
sdl
=
no
SDL_CONFIG
=
"
${
cross_prefix
}
sdl-config"
if
(
"
${
SDL_CONFIG
}
"
--version
)
>
/dev/null 2>&1
;
then
temp_cflags
`
"
${
SDL_CONFIG
}
"
--cflags
`
if
"
${
SDL_CONFIG
}
"
--version
>
/dev/null 2>&1
;
then
sdl_cflags
=
`
"
${
SDL_CONFIG
}
"
--cflags
`
temp_cflags
$sdl_cflags
temp_extralibs
`
"
${
SDL_CONFIG
}
"
--libs
`
check_ld
<<
EOF
#include <SDL.h>
#undef main /* We don't want SDL to override our main() */
int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
EOF
if
test
$?
=
0
;
then
if
check_lib SDL.h SDL_Init
;
then
_sdlversion
=
`
"
${
SDL_CONFIG
}
"
--version
|
sed
's/[^0-9]//g'
`
if
test
"
$_sdlversion
"
-lt
121
;
then
sdl_too_old
=
yes
else
sdl
=
yes
check_cc
<<
EOF
&& sdl_video_size=yes ||
sdl_video_size
=no
check_cc
$sdl_cflags
<<
EOF
&& enable
sdl_video_size
#include <SDL.h>
int main(void){
const SDL_VideoInfo *vi = SDL_GetVideoInfo();
...
...
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