Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
autoconf中的libc宏_Autoconf_Libc - Fatal编程技术网

autoconf中的libc宏

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

我想写一个宏来查找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
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

对于glibc/eglibc,您可以从中所述的
获取此信息。其他libc实现将有所不同