Error: cannot run C compiled programs
I build macOS framework by buildVLCKit.sh that appear the following error:
(cd m4; ./configure --prefix=/Users/shawn/Desktop/VLCKit/libvlc/vlc/extras/tools/build && /Applications/Xcode.app/Contents/Developer/usr/bin/make && /Applications/Xcode.app/Contents/Developer/usr/bin/make install)
81 7328k 81 5995k 0 0 517k 0 0:00:14 0:00:11 0:00:03 814kchecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/Users/shawn/Desktop/VLCKit/libvlc/vlc/extras/tools/m4':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
make: *** [.m4] Error 1
make: *** Waiting for unfinished jobs....
100 7328k 100 7328k 0 0 589k 0 0:00:12 0:00:12 --:--:-- 1021k
97 4289k 97 4168k 0 0 520k 0 0:00:08 0:00:08 --:--:-- 708kcmake-3.8.2.tar.gz: OK
100 4289k 100 4289k 0 0 514k 0 0:00:08 0:00:08 --:--:-- 720k
apache-ant-1.9.7.tar.bz2: OK
100 1927k 100 1927k 0 0 351k 0 0:00:05 0:00:05 --:--:-- 429k
bison-3.0.4.tar.xz: OK
VLCKit origin: master
System version: macOS Sierra 10.12.6
Xcode version: 9.2
How do I fix this problem? Appreciate if any suggestion or idea.
Thanks in advance.