Advertisement Jump to content


This topic is now archived and is closed to further replies.


setting platform specific Libraries with autoconf

This topic is 5396 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everybody, I am working on an autotoolset project which should run under Linux and WIn32 (MinGW). I have problems binding in system-specific libarys. Under Linux I need: libXxf86vm and under MinGW i need: libws2_32 What I would like to do is a AC_SUBST(SYSTEM_DEP_LIB,libws2_32) on MinGW and the other way around on Linux. edit: That wy I could just do packagename_LDADD = @SYSTEM_DEP_LIB@ in my! But I have problems finding out on whcih system I am. Googling I found AC_CONICAL_SYSTEM but I did not find out how I could use it. So how can I find out if the system is MinGW or Linux? Beter ways of doing this are also very welcome. Thanks! [edited by - LonelyStar on April 12, 2004 9:36:23 PM]

Share this post

Link to post
Share on other sites
To do that it''d go something like this:


case "$host_os" in
echo "Windows stuff";;
echo "Unix stuff";;

However, a better solution is to just check for each of the libraries (with AC_CHECK_LIB) and use the one that''s found.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!