#!/bin/sh
confopts=""
makeopts=""
while test $ opt="$1"
shift
case "$opt" in
-*)
confopts="$confopts $opt"
;;
*)
makeopts="$makeopts $opt"
;;
esac
done
if test "x$makeopts" = x; then
makeopts="clean check"
fi
makeopts="-j`sysctl -n hw.activecpu` $makeopts"
echo ./configure ... $confopts
./configure --enable-debug --enable-unit-tests \
--enable-pie --with-pam-module=opendirectory \
--with-archflags="-arch i386 -arch x86_64 -arch ppc" \
--with-ldarchflags="-arch i386 -arch x86_64" \
--with-adminkey="system.print.admin" \
--with-operkey="system.print.operator" \
--disable-bannertops --disable-pdftops --disable-texttops \
$confopts || exit 1
echo make $makeopts
make $makeopts