default_pre_build &&
  # patch setup to show less menue options
  # and to skip menue if config is allready there
cd $SOURCE_DIRECTORY &&
patch -p0 < $SCRIPT_DIRECTORY/setup.diff &&
if [[ -z "$LIRCOPTS" ]] ;  then
  message "Executing setup..." &&
  ./setup.sh &&

  # Extract ./configure options from the generated script
  # We need to make these OPTS a one-liner, otherwise bad things happen
  LIRCOPTS="$(gawk '
BEGIN {
  opts = ""
}
/^--/ {
  opts = opts " " $1
}
END {
  print opts
}
' configure.sh)" &&
  persistent_add LIRCOPTS
fi
