autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Invocation of compiler by AC_LINK_IFELSE


From: Miguel Guedes
Subject: Invocation of compiler by AC_LINK_IFELSE
Date: Thu, 18 Jul 2013 10:59:47 +0000 (UTC)
User-agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)

Hello,


I am using AC_LANG_PROGRAM wrapped inside AC_LINK_IFELSE to test for 
libboost_system and it invokes gcc/g++ in the following way:

configure:3975: g++ -o conftest -g -O2  -lboost_system conftest.cpp

The above results in a few errors and doesn't link even though the 
library in question is present in the system.  This is because the source 
file should be at the front in the call to g++, e.g.:

  g++ conftest.cpp -o conftest -g -O2  -lboost_system

What can be done to overcome this limitation?  Can the parameter order be 
customized somehow or perhaps some other macro be used?


Miguel 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]