support: add ccache support to configure script
This commit is contained in:
parent
3e41a7610d
commit
6c3aca2880
1 changed files with 14 additions and 0 deletions
14
configure
vendored
14
configure
vendored
|
@ -32,6 +32,7 @@ OPTIONS=(
|
||||||
"curl:auto"
|
"curl:auto"
|
||||||
"epoll:auto"
|
"epoll:auto"
|
||||||
"uriparser:auto"
|
"uriparser:auto"
|
||||||
|
"ccache:auto"
|
||||||
"bundle:no"
|
"bundle:no"
|
||||||
"dvbcsa:no"
|
"dvbcsa:no"
|
||||||
"kqueue:no"
|
"kqueue:no"
|
||||||
|
@ -53,6 +54,19 @@ echo "Checking support/features"
|
||||||
#
|
#
|
||||||
# Compiler
|
# Compiler
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Use ccache
|
||||||
|
if enabled_or_auto ccache; then
|
||||||
|
which ccache &> /dev/null
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "$CC" | grep -q ccache || CC="ccache $CC"
|
||||||
|
enable ccache
|
||||||
|
elif enabled ccache; then
|
||||||
|
die "ccache not found, try --disable-ccache"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Valiate compiler
|
||||||
check_cc || die 'No C compiler found'
|
check_cc || die 'No C compiler found'
|
||||||
check_cc_header execinfo
|
check_cc_header execinfo
|
||||||
check_cc_option mmx
|
check_cc_option mmx
|
||||||
|
|
Loading…
Add table
Reference in a new issue