Gentoo Archives: gentoo-devhelp

From: Thomas Kahle <tom111@×××.de>
To: gentoo-devhelp@l.g.o
Subject: [gentoo-devhelp] autotools and as-needed
Date: Tue, 11 Aug 2009 22:05:54
Message-Id: 4A81EAAC.3060906@gmx.de
1 Hi,
2 the following check in configure.ac fails with --as-needed but works
3 without it. Any hints what is wrong ? Thanks / Thomas
4
5 --------------------
6
7 if test $BUILD_ntl = no
8 then AC_LANG(C++)
9 AC_CHECK_HEADER(NTL/version.h,,BUILD_ntl=yes)
10 AC_MSG_CHECKING(for ntl library)
11 FOUND=
12 SAVELIBS=$LIBS
13 for lib in "" "-lntl" "-lntl -lgf2x"
14 do test "$lib" && LIBS="$lib $LIBS"
15 AC_LINK_IFELSE( [
16 #include <NTL/tools.h>
17 int main () { _ntl_GetTime(); }
18 ],
19 FOUND=yes; break;,
20 LIBS=$SAVELIBS)
21 done
22 if test "$FOUND"
23 then if test "$lib"
24 then AC_MSG_RESULT([$lib])
25 else AC_MSG_RESULT([none needed])
26 fi
27 else AC_MSG_RESULT(none found)
28 BUILD_ntl=yes
29 fi
30 fi
31
32
33 --
34 Thomas Kahle
35
36 The fundamental theorem of algebra is open source. Like any other
37 mathematical theorem it can be applied free of charge and everybody
38 has access to its proof and can convince himself how it works. Why
39 should software be any different?

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-devhelp] autotools and as-needed Justin <justin@×××××××××.net>
Re: [gentoo-devhelp] autotools and as-needed Mike Frysinger <vapier@g.o>
Re: [gentoo-devhelp] autotools and as-needed Justin <justin@×××××××××.net>
Re: [gentoo-devhelp] autotools and as-needed Peter Volkov <pva@g.o>