I have an variable declared in configure.ac:
MY_VERSION="0:0:0"
AC_SUBST(MY_VERSION)
AC_MSG_NOTICE([$MY_VERSION])
The value of the variable is printed out correctly during ./configure phase.
In Makefile.am there's following line:
libmylib_la_LDFLAGS = -version-info @MY_VERSION@
In the linker command line it expands correctly to "-version-info 0:0:0" on all systems except Solaris. On solaris (SunOS 5.10 Generic_141414-10 sun4u sparc SUNW,Sun-Blade-100) I get "-version-info" with no version number.
Any idea what may have gone wrong?