(Reuters) - Hewlett-Packard Co and attorneys representing shareholders confirmed on Monday they had agreed to settle litigation over the $11.1 billion acquisition of British software company Autonomy Corp.