Commit e00e8639 authored by James Almer's avatar James Almer

Merge commit '71a49fe2'

* commit '71a49fe2':
  configure: Use cppflags check helper functions where appropriate
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents 407a7547 71a49fe2
...@@ -4816,18 +4816,12 @@ check_cxxflags -std=c++11 || check_cxxflags -std=c++0x ...@@ -4816,18 +4816,12 @@ check_cxxflags -std=c++11 || check_cxxflags -std=c++0x
# some compilers silently accept -std=c11, so we also need to check that the # some compilers silently accept -std=c11, so we also need to check that the
# version macro is defined properly # version macro is defined properly
if test_cflags_cc -std=c11 ctype.h "__STDC_VERSION__ >= 201112L"; then check_cpp_condition ctype.h "__STDC_VERSION__ >= 201112L" -std=c11 &&
add_cflags -std=c11 add_cflags -std=c11 ||
else
check_cflags -std=c99 check_cflags -std=c99
fi
check_cc -D_FILE_OFFSET_BITS=64 <<EOF && add_cppflags -D_FILE_OFFSET_BITS=64 check_cppflags -D_FILE_OFFSET_BITS=64
#include <stdlib.h> check_cppflags -D_LARGEFILE_SOURCE
EOF
check_cc -D_LARGEFILE_SOURCE <<EOF && add_cppflags -D_LARGEFILE_SOURCE
#include <stdlib.h>
EOF
add_host_cppflags -D_ISOC99_SOURCE add_host_cppflags -D_ISOC99_SOURCE
check_host_cflags -std=c99 check_host_cflags -std=c99
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment