
xz utilites are for now built with gcc
attempts were made to get it to build natively under APE with lots of frustration.

some standard modifications are done to config.sub etc to get configure to run.

gnu/gsh

CFLAGS="-std=c99 -D_POSIX_SOURCE -D_SUSV2_SOURCE -D_RESEARCH_SOURCE -D_REENTRANT_SOURCE -D_BSD_EXTENSION -D_NET_EXTENSION -D_LIMITS_EXTENSION -D_C99_SNPRINTF_EXTENSION -D_REGEXP_EXTENSION -DHAVE_SOCK_OPTS" SED=gsed AWK=gawk GREP=grep CPP="gcc -E" gl_cv_posix_shell=/bin/sh ac_cv_prog_cc_c99="gcc"  CC="gcc" CCAS="gcc" compiler="gcc" configure --prefix=/sys --exec-prefix=/$objtype --libdir=/$objtype/lib/gnu --includedir=/sys/include/gnu --datadir=/sys --mandir=/sys/man --docdir=/sys/lib/xz/doc --disable-shared --disable-threads --disable-nls --disable-assembler

I had to manually edit the Makefiles because of some weird issues
I also had to add /386/lib/gnu/libbsd.a to LIBS in src/xz to link some utilities.

--enable-assume-ram ?


NEW ATTEMPT WITH APE
with some of the later improvements to APE, a new attempt is made.

ape/psh

ape/cc modified to pass "-+" as default to cpp.

CFLAGS="-D_POSIX_SOURCE -D_SUSV2_SOURCE -D_RESEARCH_SOURCE -D_REENTRANT_SOURCE -D_BSD_EXTENSION -D_NET_EXTENSION -D_LIMITS_EXTENSION -D_REGEXP_EXTENSION -DHAVE_SOCK_OPTS" SED=gsed AWK=gawk GREP=grep gl_cv_posix_shell=/bin/sh ac_cv_prog_cc_c99="cc"  CPP="cc -E" CC="cc" CCAS="cc" compiler="cc" configure --prefix=/sys --exec-prefix=/$objtype --libdir=/$objtype/lib/ape --includedir=/sys/include/ape --datadir=/sys --mandir=/sys/man --docdir=/sys/lib/xz/doc --disable-shared --disable-threads --disable-nls --disable-assembler
