Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
aa692d54
Commit
aa692d54
authored
Jan 17, 2010
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: simplify libsdl check
Originally committed as revision 21268 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
14d36751
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
24 deletions
+4
-24
configure
configure
+4
-24
No files found.
configure
View file @
aa692d54
...
...
@@ -2462,31 +2462,14 @@ if enabled libdc1394; then
die
"ERROR: No version of libdc1394 found "
fi
disable sdl_too_old
disable sdl
SDL_CONFIG
=
"
${
cross_prefix
}
sdl-config"
if
"
${
SDL_CONFIG
}
"
--version
>
/dev/null 2>&1
;
then
sdl_cflags
=
$(
"
${
SDL_CONFIG
}
"
--cflags
)
sdl_libs
=
$(
"
${
SDL_CONFIG
}
"
--libs
)
temp_cflags
$sdl_cflags
temp_extralibs
$sdl_libs
if
check_lib2 SDL.h SDL_Init
;
then
_sdlversion
=
$(
"
${
SDL_CONFIG
}
"
--version
|
sed
's/[^0-9]//g'
)
if
test
"
$_sdlversion
"
-lt
121
;
then
enable
sdl_too_old
else
enable
sdl
check_cc
$sdl_cflags
<<
EOF
&& enable sdl_video_size
#include <SDL.h>
int main(int argc, char **argv){
const SDL_VideoInfo *vi = SDL_GetVideoInfo();
int w = vi->current_w;
return 0;
}
EOF
fi
fi
restore_flags
check_func_headers SDL.h SDL_Init
$sdl_cflags
$sdl_libs
&&
check_cpp_condition SDL.h
"(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201"
$sdl_cflags
&&
enable
sdl
&&
check_struct SDL.h SDL_VideoInfo current_w
$sdl_cflags
&&
enable
sdl_video_size
fi
texi2html
-version
>
/dev/null 2>&1
&&
enable
texi2html
||
disable texi2html
...
...
@@ -2733,9 +2716,6 @@ if enabled network; then
fi
echo
"threading support
${
thread_type
-no
}
"
echo
"SDL support
${
sdl
-no
}
"
if
enabled sdl_too_old
;
then
echo
"-> Your SDL version is too old - please upgrade to have FFplay/SDL support."
fi
echo
"Sun medialib support
${
mlib
-no
}
"
echo
"AVISynth enabled
${
avisynth
-no
}
"
echo
"libdc1394 support
${
libdc1394
-no
}
"
...
...
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