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
a7101eb4
Commit
a7101eb4
authored
Dec 08, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Simplify some library checks via check_lib()
parent
1818a640
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
configure
configure
+5
-7
No files found.
configure
View file @
a7101eb4
...
...
@@ -4506,7 +4506,7 @@ check_func mkstemp
check_func mmap
check_func mprotect
# Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
check_func_headers time.h nanosleep
||
{
check_func_headers time.h nanosleep
-lrt
&&
add_extralibs
-lrt
;
}
check_func_headers time.h nanosleep
||
check_lib time.h nanosleep
-lrt
check_func sched_getaffinity
check_func setrlimit
check_func strerror_r
...
...
@@ -4581,14 +4581,12 @@ fi
# do this before the optional library checks as some of them require pthreads
if
!
disabled pthreads
&&
!
enabled w32threads
;
then
enable
pthreads
if
check_
func
pthread_join
-pthread
;
then
if
check_
lib pthread.h
pthread_join
-pthread
;
then
add_cflags
-pthread
add_extralibs
-pthread
elif
check_func pthread_join
-pthreads
;
then
elif
check_lib pthread.h pthread_join
-pthreads
;
then
add_cflags
-pthreads
add_extralibs
-pthreads
elif
check_func pthread_join
-lpthreadGC2
;
then
add_extralibs
-lpthreadGC2
elif
check_lib pthread.h pthread_join
-lpthreadGC2
;
then
:
elif
check_lib pthread.h pthread_join
-lpthread
;
then
:
elif
!
check_func pthread_join
;
then
...
...
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