no_tooltool=1
if [[ $topsrcdir == *"mozilla"* ]]; then
  oldtopsrcdir=$topsrcdir
  topsrcdir=$(dirname $topsrcdir)
fi

. "$topsrcdir/build/unix/mozconfig.linux32"

ac_add_options --enable-application=suite
ac_add_options --enable-optimize
ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --enable-update-packaging
ac_add_options --disable-debug
ac_add_options --enable-tests
ac_add_options --disable-elf-hack
ac_add_options --enable-profiling

export CFLAGS="-gdwarf-2"
export CXXFLAGS="-gdwarf-2"

# Bug 1155007 temporary workaround. Needs to be
# backed out once we get a Socorro token generated.
unset SOCORRO_SYMBOL_UPLOAD_TOKEN_FILE

# For NSS symbols
export MOZ_DEBUG_SYMBOLS=1
ac_add_options --enable-debug-symbols="-gdwarf-2"
mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py'

# Needed to enable breakpad in application.ini
export MOZILLA_OFFICIAL=1

#Use ccache
ac_add_options --with-ccache=/usr/bin/ccache

. "$topsrcdir/suite/config/mozconfigs/mozconfig.linux.common"

export PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/usr/share/pkgconfig
. "$topsrcdir/build/unix/mozconfig.gtk"

if [ ! -z "$oldtopsrcdir" ]; then
  topsrcdir=$oldtopsrcdir
  oldtopsrcdir=""
fi
