- case "$ac_cv_build" in
- *-*-linux*)
- dnl #### who would ever _not_ be running the distro's libc?
- dnl Whose silly question is this? -hroptatyr
- dnl Maybe it would be better to get/augment this info with ldd?
- if test -f /etc/redhat-release ; then
- libc_version=`rpm -q glibc`
- elif test -f /etc/debian_version ; then
- libc_version=`dpkg-query --showformat='${version}' --show libc6`
- libc_version="GNU libc $libc_version (Debian)"
- elif test -f /etc/slackware-version ; then
- slackver=`cat /etc/slackware-version`
- libc_version=`/lib/libc.so.6|head -1|cut -d ' ' -f7|tr -d ,`
- if test "x$libc_version" = "x"; then
- libc_version=`/lib64/libc.so.6|head -1|cut -d ' ' -f7|tr -d ,`
- fi
- libc_version="GNU libc $libc_version ($slackver)"
- dnl need SuSE et al checks here...
- fi
- dnl #### Tested on Debian, does this actually work elsewhere? ;-)
- dnl #### NO! -hroptatyr
- dnl if test -z "$libc_version"; then
- dnl libc_version=`ls /lib/libc-*.so | sed -e 's,/lib/libc-\(.*\)\.so,\1,'`
- dnl fi
-
- if test -z "$libc_version"; then