aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2020-06-28 12:58:21 -0700
committerJens Axboe <axboe@kernel.dk>2020-06-28 14:03:56 -0600
commit532eddd959281957a8cdb13b49e5215e0144fcda (patch)
treeb0f7368ac39b8cd691413dcc3559373f409556fe /configure
parenta865ad5415324824a09f66b7bf2ca13d5c10befa (diff)
downloadliburing-532eddd959281957a8cdb13b49e5215e0144fcda.tar.gz
configure: Use $CC and $CXX as default compilers if set
This change causes .travis.yml to use the compilers configured in the $CC and $CXX variables. Additionally, make the configure script show the compiler names. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index c02a978..223192b 100755
--- a/configure
+++ b/configure
@@ -9,8 +9,8 @@ else
TMPDIR1="/tmp"
fi
-cc=gcc
-cxx=g++
+cc=${CC:-gcc}
+cxx=${CXX:-g++}
for opt do
optarg=$(expr "x$opt" : 'x[^=]*=\(.*\)')
@@ -315,7 +315,9 @@ if test "$has_cxx" = "yes"; then
fi
echo "CC=$cc" >> $config_host_mak
+print_config "CC" "$cc"
echo "CXX=$cxx" >> $config_host_mak
+print_config "CXX" "$cxx"
# generate compat.h
compat_h="src/include/liburing/compat.h"