mk_source_dir  $SOURCE_DIRECTORY  &&
cd             $SOURCE_DIRECTORY  &&
unpack_file    ''                 &&
cd             comm-1.9.1            &&

cp -v $SPELL_DIRECTORY/blfs-mozconfig .mozconfig &&

#cp -v $SPELL_DIRECTORY/blfs-mozconfig mozilla/.mozconfig &&

if [[ "$SEAMONKEY_CAIRO" == "y" ]]; then
   sed -i '78iac_add_options --enable-system-cairo' .mozconfig
else
   sed -i '78iac_add_options --disable-system-cairo' .mozconfig
fi &&

if [[ "$SEAMONKEY_MAILNEWS" == "n" ]]; then
   sed -i '78iac_add_options --disable-mailnews' .mozconfig
fi &&

if [[ "$SEAMONKEY_COMPOSER" == "n" ]]; then
   sed -i '78iac_add_options --disable-composer' .mozconfig
fi &&

if [[ "$SEAMONKEY_JS" == "y" ]]; then
   sed -i '78iac_add_options --enable-xpctools' .mozconfig
else
   sed -i '78iac_add_options --disable-xpctools' .mozconfig
fi &&

if [[ "$SEAMONKEY_XINERAMA" == "y" ]]; then
   sed -i '78iac_add_options --enable-xinerama' .mozconfig
fi &&

if [[ "$SEAMONKEY_PANGO" == "y" ]]; then
   sed -i '78iac_add_options --enable-pango' .mozconfig
fi

echo "ac_add_options --disable-crashreporter" >> .mozconfig
