| echo "ERROR: missing argument for --build-dir option" >&2 |
| echo "ERROR: Unexpected argument: $1" >&2 |
| if [ -z "${builddir}" ]; then |
| echo "ERROR: --build-dir option not specified" >&2 |
| if [ -e "${builddir}" ]; then |
| echo "ERROR: directory entry named '${builddir}' already exists" >&2 |
| cflags+=" -Wmissing-include-dirs" |
| cflags+=" -Wnested-externs" |
| cflags+=" -Wpointer-arith" |
| cflags+=" -Wredundant-decls" |
| CFLAGS="${cflags}" ../configure --enable-examples-build --enable-tests-build "$@" |
| if [ "${install}" = "yes" ]; then |