Only add linker option if it is not really there

This code is run unconditionally each time we do a reconfigure; if the
option is added at each time, they will accumulate (needlessly) on the
command-line, making it harder to inspect the log.
Merge pull request #445 from rolk/445_asneeded

Only add linker option if it is not really there