Use AC_LANG_PROGRAM in nss-crypt check.

This commit is contained in:
Roland McGrath 2011-06-10 11:09:12 -07:00
parent b350afabd9
commit b68e08db76
3 changed files with 194 additions and 154 deletions

View File

@ -1,5 +1,8 @@
2011-06-10 Roland McGrath <roland@hack.frob.com>
* configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
* configure: Regenerated.
* Makerules: Revert last change.
* elf/Makefile: Likewise.

341
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -293,10 +293,10 @@ if test x$nss_crypt = xyes; then
fi
old_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $nss_includes"
AC_COMPILE_IFELSE([typedef int PRBool;
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([typedef int PRBool;
#include <hasht.h>
#include <nsslowhash.h>
void f (void) { NSSLOW_Init (); }],
void f (void) { NSSLOW_Init (); }])],
libc_cv_nss_crypt=yes,
AC_MSG_ERROR([
cannot find NSS headers with lowlevel hash function interfaces]))