Use TRY_LINK instead of TRY_COMPILE when testing for gnu_get_libc_version().

Thanks to Kurt <lidl@pix.net> for the patch.
Bug #74758 Fixing ports tinderbox bustage


git-svn-id: svn://10.0.0.236/trunk@91331 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cls%seawood.org
2001-04-04 21:29:20 +00:00
parent 24504c30f6
commit c2ee9a00e1
2 changed files with 3 additions and 3 deletions

4
mozilla/configure vendored
View File

@@ -2841,7 +2841,7 @@ else
echo "$ac_t""no" 1>&6
fi
for ac_prog in gawk mawk nawk awk
for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -9865,7 +9865,7 @@ int main() {
const char *glibc_version = gnu_get_libc_version();
; return 0; }
EOF
if { (eval echo configure:9869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:9869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_func_gnu_get_libc_version=yes
cat >> confdefs.h <<\EOF

View File

@@ -2453,7 +2453,7 @@ AC_CHECK_FUNCS(nl_langinfo)
AC_CACHE_CHECK(
[for gnu_get_libc_version()],
ac_cv_func_gnu_get_libc_version,
[AC_TRY_COMPILE([
[AC_TRY_LINK([
#ifdef HAVE_GNU_LIBC_VERSION_H
#include <gnu/libc-version.h>
#endif