Fix OSX: Checking linker has version script flag

Add extra macro dir 'm4'
Add macro 'AX_CHECK_LINK_FLAG'
Checking flag "-Wl,--version-script"
New AM_CONDITIONAL "HAVE_VERSION_SCRIPT"