(Reuters) - Hewlett-Packard Co and attorneys representing shareholders have agreed to settle litigation over its troubled $11.1 billion acquisition of British software company Autonomy Corp, according to a source familiar with the negotiations.