Only do LDCONFIG checks if USE_LDCONFIG is defined. Submitted by: Tatsuki Makino <tatsuki_makino@hotmail.com>