gettimeofday() in order to solve problems with the construction of
shared libraries [1] ; configure only once; build only those
(dynamically-linked) executables that will be installed; set
USE_LDCONFIG; remove an unnecessary patch; don't mix toolchains; make
flags more uniform and remove obsolete flags; add test targets
PR: 159189 [1]
Submitted by: stephen (different version) [1]