Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-devhelp
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-devhelp@g.o
From: Justin <justin@...>
Subject: Re: autotools and as-needed
Date: Wed, 12 Aug 2009 08:38:12 +0200
Thomas Kahle schrieb:
> 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
> 
> 

Perhaps you will find a hint in Diego's blog. I think he wrote about
configure checks which fail with as-needed and how to fix them.

justin

Attachment:
signature.asc (OpenPGP digital signature)
References:
autotools and as-needed
-- Thomas Kahle
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
autotools and as-needed
Next by thread:
Re: autotools and as-needed
Previous by date:
autotools and as-needed
Next by date:
Re: autotools and as-needed


Updated Jun 03, 2012

Summary: Archive of the gentoo-devhelp mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.