#!/bin/sh set -o errexit # First argument of this script is the package name. # Remaining arguments are additional configure options. PACKAGE=${1} shift CONFIGURE_OPTS=${*} # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${PACKAGE} cd ${LFS_TMP}/${PACKAGE} # Make sure that Flex doesn't try to include headers from /usr/include. cp -v Makefile.in{,.orig} sed "s/-I@includedir@//g" Makefile.in.orig > Makefile.in cd ${LFS_TMP}/${PACKAGE}-build # When Cross Compiling the configure script does not determine the correct # values for the following, Set the values manually: cat > config.cache << EOF ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes EOF ${SCRDIR}/cis-common ${PACKAGE} "${CONFIGURE_OPTS} --cache-file=config.cache" exit $?