autoconf中的libc宏
我想写一个宏来查找libc。我发现ldd-version选项可用于查找版本。它提供了很多信息,但我只想要版本,如何获得版本autoconf中的libc宏,autoconf,libc,Autoconf,Libc,我想写一个宏来查找libc。我发现ldd-version选项可用于查找版本。它提供了很多信息,但我只想要版本,如何获得版本 $ldd --version ldd (Ubuntu EGLIBC 2.12.1-0ubuntu6) 2.12.1 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warra
$ldd --version
ldd (Ubuntu EGLIBC 2.12.1-0ubuntu6) 2.12.1
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
对于glibc/eglibc,您可以从中所述的
获取此信息。其他libc实现将有所不同