autotools - Automake: variable not expanded on Solaris -


i have variable declared in configure.ac:

my_version="0:0:0" ac_subst(my_version) ac_msg_notice([$my_version]) 

the value of variable printed out correctly during ./configure phase.

in makefile.am there's following line:

libmylib_la_ldflags = -version-info @my_version@ 

in linker command line expands correctly "-version-info 0:0:0" on systems except solaris. on solaris (sunos 5.10 generic_141414-10 sun4u sparc sunw,sun-blade-100) "-version-info" no version number.

any idea may have gone wrong?

(a bit of shot in dark here, but…)

my guess either or version defined on solaris whatever reason. try usign

ac_subst([my_version]) 

instead, way you're telling m4 explicitly define that.

also igor said, use $(my_version) (although unrelated this.)


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -