Remove redundant check for features.h, and cache GNU C Library test.

svn path=/trunk/yasm/; revision=219
0.3
Peter Johnson 23 years ago
parent df62b73779
commit 2f6a19295d
  1. 12
      configure.ac
  2. 12
      configure.in

@ -86,19 +86,15 @@ AC_REPLACE_FUNCS(strdup strsep strtoul)
AC_CHECK_HEADERS(limits.h sys/queue.h sys/cdefs.h) AC_CHECK_HEADERS(limits.h sys/queue.h sys/cdefs.h)
# Check for GNU C Library # Check for GNU C Library
AC_CHECK_HEADERS(features.h) AC_CACHE_CHECK([for GNU C Library], yasm_cv_header_gnulib,
if test "$ac_cv_header_features_h" = yes; then
AC_MSG_CHECKING([for GNU C Library])
AC_EGREP_CPP(gnulib, AC_EGREP_CPP(gnulib,
[#include <features.h> [#include <features.h>
#ifdef __GNU_LIBRARY__ #ifdef __GNU_LIBRARY__
gnulib gnulib
#endif #endif
], have_gnulib=yes, have_gnulib=no) ], yasm_cv_header_gnulib=yes, yasm_cv_header_gnulib=no))
AC_MSG_RESULT([$have_gnulib]) if test "$yasm_cv_header_gnulib" = yes; then
if test "$have_gnulib" = yes; then AC_DEFINE(HAVE_GNU_C_LIBRARY)
AC_DEFINE(HAVE_GNU_C_LIBRARY)
fi
fi fi
# Check for stuff wanted by the test suite. None of this is required. # Check for stuff wanted by the test suite. None of this is required.

@ -86,19 +86,15 @@ AC_REPLACE_FUNCS(strdup strsep strtoul)
AC_CHECK_HEADERS(limits.h sys/queue.h sys/cdefs.h) AC_CHECK_HEADERS(limits.h sys/queue.h sys/cdefs.h)
# Check for GNU C Library # Check for GNU C Library
AC_CHECK_HEADERS(features.h) AC_CACHE_CHECK([for GNU C Library], yasm_cv_header_gnulib,
if test "$ac_cv_header_features_h" = yes; then
AC_MSG_CHECKING([for GNU C Library])
AC_EGREP_CPP(gnulib, AC_EGREP_CPP(gnulib,
[#include <features.h> [#include <features.h>
#ifdef __GNU_LIBRARY__ #ifdef __GNU_LIBRARY__
gnulib gnulib
#endif #endif
], have_gnulib=yes, have_gnulib=no) ], yasm_cv_header_gnulib=yes, yasm_cv_header_gnulib=no))
AC_MSG_RESULT([$have_gnulib]) if test "$yasm_cv_header_gnulib" = yes; then
if test "$have_gnulib" = yes; then AC_DEFINE(HAVE_GNU_C_LIBRARY)
AC_DEFINE(HAVE_GNU_C_LIBRARY)
fi
fi fi
# Check for stuff wanted by the test suite. None of this is required. # Check for stuff wanted by the test suite. None of this is required.

Loading…
Cancel
Save