-------------------- ./configure --prefix=/usr --sharedlibdir=/lib Mon Jan 16 17:22:56 EST 2017 Using ar Checking for x86_64-pc-linux-gnu-gcc... === ztest26757.c === extern int getchar(); int hello() {return getchar();} === x86_64-pc-linux-gnu-gcc -c ztest26757.c ./configure: 182: ./configure: x86_64-pc-linux-gnu-gcc: not found ... using cc Checking for obsessive-compulsive compiler options... === ztest26757.c === int foo() { return 0; } === cc -c -march=native -O2 -pipe ztest26757.c Checking for shared library support... === ztest26757.c === extern int getchar(); int hello() {return getchar();} === cc -w -c -march=native -O2 -pipe ztest26757.c cc -shared -march=native -O2 -pipe -o ztest26757.so ztest26757.o /usr/bin/ld: ztest26757.o: relocation R_X86_64_PC32 against symbol `getchar@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status (exit code 1) No shared library support; try without defining CC and CFLAGS Building static library libz.a version 1.2.11 with cc. === ztest26757.c === #include #include size_t dummy = 0; === cc -c -march=native -O2 -pipe ztest26757.c Checking for size_t... Yes. === ztest26757.c === #include off64_t dummy = 0; === cc -c -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 ztest26757.c Checking for off64_t... Yes. Checking for fseeko... Yes. === ztest26757.c === #include #include int main() { return strlen(strerror(errno)); } === cc -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -o ztest26757 ztest26757.c Checking for strerror... Yes. === ztest26757.c === #include int main() { return 0; } === cc -c -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 ztest26757.c Checking for unistd.h... Yes. === ztest26757.c === #include int main() { return 0; } === cc -c -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 ztest26757.c Checking for stdarg.h... Yes. === ztest26757.c === #include #include #include "zconf.h" int main() { #ifndef STDC choke me #endif return 0; } === cc -c -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 ztest26757.c Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf(). === ztest26757.c === #include #include int mytest(const char *fmt, ...) { char buf[20]; va_list ap; va_start(ap, fmt); vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); return 0; } int main() { return (mytest("Hello%d\n", 1)); } === cc -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -o ztest26757 ztest26757.c Checking for vsnprintf() in stdio.h... Yes. === ztest26757.c === #include #include int mytest(const char *fmt, ...) { int n; char buf[20]; va_list ap; va_start(ap, fmt); n = vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); return n; } int main() { return (mytest("Hello%d\n", 1)); } === cc -c -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 ztest26757.c Checking for return value of vsnprintf()... Yes. ALL = static all64 AR = ar ARFLAGS = rc CC = cc CFLAGS = -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 CPP = cc -E EXE = LDCONFIG = ldconfig LDFLAGS = LDSHARED = cc LDSHAREDLIBC = -lc OBJC = $(OBJZ) $(OBJG) PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG) RANLIB = ranlib SFLAGS = -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 SHAREDLIB = SHAREDLIBM = SHAREDLIBV = STATICLIB = libz.a TEST = all teststatic test64 VER = 1.2.11 Z_U4 = SRCDIR = exec_prefix = ${prefix} includedir = ${prefix}/include libdir = ${exec_prefix}/lib mandir = ${prefix}/share/man prefix = /usr sharedlibdir = /lib uname = linux --------------------