depends  gtk+2  '--enable-default-toolkit=gtk2'  &&
depends  jpeg   '--with-system-jpeg'             &&
depends  libidl '--with-libIDL'                  &&
depends  libxft                                  &&
depends  libpng '--with-system-png'              &&
depends  nspr   '--with-system-nspr'             &&
depends  perl                                    &&
depends  xorg-libs  '--with-x'                   &&
depends  zip                                     &&
depends  zlib   '--with-system-zlib'             &&

#Not tested
optional_depends  openldap                         \
                  '--enable-ldap'                  \
                  '--disable-ldap'                 \
                  'LDAP support'                   &&
# Disabled until we get system nspr 4.6.1
#optional_depends  nspr                             \
#                  '--with-system-nspr'             \
#                  '--without-system-nspr'          \
#                  'NSPR support'                   &&
optional_depends  nss                              \
                  '--enable-crypto'                \
                  '--disable-crypto'               \
                  'for encrypted communications support (e.g. https://), recommended' &&
optional_depends  gnome-vfs2                       \
                  "--enable-gnomevfs"              \
                  "--disable-gnomevfs"             \
                   "for smb:// url support (if enabled in gnome-vfs)"  &&
optional_depends  libgnomeui                       \
                  "--enable-gnomeui"               \
                  "--disable-gnomeui"              \
                  "For GNOME UI support"           &&

#Seems to only build with cairo
if  [[  "$XULRUNNER_RENDER"  == "cairo"  ]];  then
  depends cairo "--enable-system-cairo --enable-svg --enable-svg-renderer=cairo"
fi
if  [[  "$XULRUNNER_RENDER"  == "libart_lgpl"  ]];  then
  depends libart_lgpl "--enable-svg --enable-svg-renderer=libart"
fi
