#!/bin/sh GLOBAL_ERROR_INDICATOR=0 check_for_application() { for PROG in "$@" do which "$PROG" >/dev/null 2>&1 if test $? -ne 0; then cat >&2 </dev/null 2>/dev/null if test $? -eq 0; then libtoolize=libtoolize else glibtoolize --version >/dev/null 2>/dev/null if test $? -eq 0; then libtoolize=glibtoolize else cat >&2 <" >> src/gnulib_config.h cp libtool libtool_bak sed -i "s%\$LTCC \$LTCFLAGS\(.*cwrapper.*\)%\$LTCC \1%" libtool make make install cp "${GNULIB_DIR}/libgnu.dll" "${INSTALL_DIR}" cp "${MINGW_ROOT}/bin/zlib1.dll" "${INSTALL_DIR}" cp "${MINGW_ROOT}/bin/libwinpthread-1.dll" "${INSTALL_DIR}" cp "${MINGW_ROOT}/bin/libdl.dll" "${INSTALL_DIR}" echo "Done." } os_name="$(uname)" if test "${os_name#CYGWIN}" != "$os_name"; then build_cygwin else build fi