#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## host-make-4.2.1: configure ##########"
cd /home/ych/rk3568/buildroot
echo "[7m>>> host-make 4.2.1 Autoreconfiguring[27m"
cd /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/host-make-4.2.1/ &&  PATH="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin:/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" PKG_CONFIG="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/lib/pkgconfig:/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/share/pkgconfig" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm" CC="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/ccache /usr/bin/gcc" GCC="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/ccache /usr/bin/gcc" CXX="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/ccache /usr/bin/g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/include" CFLAGS="-O2 -I/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/include" CXXFLAGS="-O2 -I/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/include" LDFLAGS="-L/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/lib -Wl,-rpath,/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/lib" INTLTOOL_PERL=/usr/bin/perl ACLOCAL="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aclocal" AUTOCONF="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/autoconf -I "/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/aarch64-buildroot-linux-gnu/sysroot/usr/share/aclocal" -I "/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/share/aclocal"" AUTOHEADER="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/autoheader -I "/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/aarch64-buildroot-linux-gnu/sysroot/usr/share/aclocal" -I "/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/share/aclocal"" AUTOMAKE="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/automake" AUTOPOINT=/bin/true GTKDOCIZE=/bin/true /home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/autoreconf -f -i 
cd /home/ych/rk3568/buildroot
echo "[7m>>> host-make 4.2.1 Patching libtool[27m"
for i in `find /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/host-make-4.2.1 -name ltmain.sh`; do ltmain_version=`sed -n '/^[ \t]*VERSION=/{s/^[ \t]*VERSION=//;p;q;}' $i | sed -e 's/\([0-9]*\.[0-9]*\).*/\1/' -e 's/\"//'`; ltmain_patchlevel=`sed -n '/^[ \t]*VERSION=/{s/^[ \t]*VERSION=//;p;q;}' $i | sed -e 's/\([0-9]*\.[0-9]*\.*\)\([0-9]*\).*/\2/' -e 's/\"//'`; if test ${ltmain_version} = '1.5'; then patch -i support/libtool/buildroot-libtool-v1.5.patch ${i}; elif test ${ltmain_version} = "2.2"; then patch -i support/libtool/buildroot-libtool-v2.2.patch ${i}; elif test ${ltmain_version} = "2.4"; then if test ${ltmain_patchlevel:-0} -gt 2; then patch -i support/libtool/buildroot-libtool-v2.4.4.patch ${i}; else patch -i support/libtool/buildroot-libtool-v2.4.patch ${i}; fi fi done
cd /home/ych/rk3568/buildroot
(cd /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/host-make-4.2.1/ && rm -rf config.cache; PATH="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin:/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" PKG_CONFIG="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/lib/pkgconfig:/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/share/pkgconfig" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm" CC="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/ccache /usr/bin/gcc" GCC="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/ccache /usr/bin/gcc" CXX="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/ccache /usr/bin/g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/include" CFLAGS="-O2 -I/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/include" CXXFLAGS="-O2 -I/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/include" LDFLAGS="-L/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/lib -Wl,-rpath,/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/lib" INTLTOOL_PERL=/usr/bin/perl CFLAGS="-O2 -I/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/include" LDFLAGS="-L/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/lib -Wl,-rpath,/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/lib"  CONFIG_SITE=/dev/null ./configure --prefix="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host" --sysconfdir="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/etc" --localstatedir="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/var" --enable-shared --disable-static --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --disable-debug --with-xmlto=no --with-fop=no --disable-nls --disable-dependency-tracking  --without-guile --program-prefix=host- )
