SAN FRANCISCO — Hewlett-Packard Co. has agreed to pay $100 million to end a shareholder class action over the company’s ill-fated 2011 acquisition of British software firm Autonomy.

If approved, the proposed settlement would resolve claims that the company’s directors misled shareholders about Autonomy’s value before writing down the purchase by $8.8 billion in 2012.