Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-devhelp
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-devhelp@g.o
From: Thomas Kahle <tom111@...>
Subject: autotools and as-needed
Date: Wed, 12 Aug 2009 00:03:24 +0200
Hi,
the following check in configure.ac fails with --as-needed but works
without it. Any hints what is wrong ? Thanks / Thomas

--------------------

if test $BUILD_ntl = no
then AC_LANG(C++)
     AC_CHECK_HEADER(NTL/version.h,,BUILD_ntl=yes)
     AC_MSG_CHECKING(for ntl library)
     FOUND=
     SAVELIBS=$LIBS
     for lib in "" "-lntl" "-lntl -lgf2x"
     do  test "$lib" && LIBS="$lib $LIBS"
	 AC_LINK_IFELSE( [
		 #include <NTL/tools.h>
		 int main () { _ntl_GetTime(); }
		 ],
	     FOUND=yes; break;,
	     LIBS=$SAVELIBS)
     done
     if test "$FOUND"
     then if test "$lib"
	 then AC_MSG_RESULT([$lib])
	 else AC_MSG_RESULT([none needed])
	 fi
     else AC_MSG_RESULT(none found)
	 BUILD_ntl=yes
     fi
fi


-- 
Thomas Kahle

The fundamental theorem of algebra is open source. Like any other
mathematical theorem it can be applied free of charge and everybody
has access to its proof and can convince himself how it works. Why
should software be any different?

Attachment:
signature.asc (OpenPGP digital signature)
Replies:
Re: autotools and as-needed
-- Peter Volkov
Re: autotools and as-needed
-- Justin
Re: autotools and as-needed
-- Mike Frysinger
Re: autotools and as-needed
-- Justin
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
ebuild environment
Next by thread:
Re: autotools and as-needed
Previous by date:
Re: Re: ebuild environment
Next by date:
Re: autotools and as-needed


Updated Nov 16, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.