aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.seed7
-rw-r--r--src/lib/Makefile.in3
2 files changed, 7 insertions, 3 deletions
diff --git a/configure.seed b/configure.seed
index 946557a33..bce16c7c4 100644
--- a/configure.seed
+++ b/configure.seed
@@ -52,7 +52,12 @@ else
AC_CHECK_LIB([numa], [numa_available], [LIBNUMA="-lnuma"])
fi
-
+if test -z `which clang`; then
+CC=gcc
+else
+CC=clang
+fi
+
HS_LIB=
HS_INC=
diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in
index 62f1b12a2..a0ac4a574 100644
--- a/src/lib/Makefile.in
+++ b/src/lib/Makefile.in
@@ -6,7 +6,6 @@
# make Makefile
#
-OS := $(shell uname -s)
#
# Installation directories
@@ -14,7 +13,7 @@ OS := $(shell uname -s)
prefix = /usr/local
libdir = ${prefix}/lib
includedir = ${prefix}/include/ndpi
-CC = gcc
+CC = @CC@
CFLAGS += -fPIC -DPIC -I../include -Ithird_party/include -DNDPI_LIB_COMPILATION -g
RANLIB = ranlib