Jump to content
  • Advertisement

Archived

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

LonelyStar

setting platform specific Libraries with autoconf

This topic is 5303 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 Makefile.am! 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
Advertisement
To do that it''d go something like this:

AC_CANONICAL_HOST

case "$host_os" in
*mingw*)
echo "Windows stuff";;
*)
echo "Unix stuff";;
esac

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 GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!