add cache variable for -lcP test
2005-05-18 Maciej W. Rozycki <macro@linux-mips.org> * configure.ac: Use a cache variable for the libcP test. * configure: Regenerate. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-48
This commit is contained in:
1 parent
d3f8e118d5
commit
72edd0eea0
4 files changed
+16
-5
No files matched your search
@@ -1,3 +1,8 @@
|
||||
2005-05-18 Maciej W. Rozycki <macro@linux-mips.org>
|
||||
|
||||
* configure.ac: Use a cache variable for the libcP test.
|
||||
* configure: Regenerate.
|
||||
|
||||
2005-05-16 Eero Hakkinen <eero17@bigfoot.com>
|
||||
|
||||
* sed/compile.c (snarf_char_class): Fix handling of
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
Sed 4.1.5
|
||||
|
||||
* fix parsing of a negative character class not including a closed bracket,
|
||||
like [^]] or [^]a-z].
|
||||
|
||||
* output the result of commands a, r, R when a q command is found.
|
||||
|
||||
----------------------------------------------------------------------------
|
||||
|
||||
@@ -28,6 +28,7 @@ Karl Berry <karl@freefriends.org>
|
||||
Karl Heuer <kwzh@gnu.org>
|
||||
Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
Kevin Buettner <kev@cujo.geg.mot.com>
|
||||
Maciej W. Rozycki <macro@linux-mips.org>
|
||||
Mark Kettenis <kettenis@phys.uva.nl>
|
||||
Michael De La Rue <delarue@NTCCSC01WA.ntc.nokia.com>
|
||||
Michel de Ruiter <mdruiter@cs.vu.nl>
|
||||
|
||||
+7
-5
@@ -20,7 +20,7 @@ AC_ISC_POSIX
|
||||
AC_SYS_LARGEFILE
|
||||
AC_SYS_LONG_FILE_NAMES
|
||||
|
||||
AC_MSG_CHECKING([whether -lcP is needed])
|
||||
AC_CACHE_CHECK([whether -lcP is needed], [sed_cv_libcp_needed], [
|
||||
AC_TRY_RUN([
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
@@ -35,11 +35,13 @@ int main()
|
||||
result = fflush (fp) == EOF && errno == 0;
|
||||
fclose (fp);
|
||||
return result;
|
||||
}], [AC_MSG_RESULT(no)],
|
||||
[AC_MSG_RESULT(yes)
|
||||
LIBS="-lcP $LIBS"],
|
||||
[AC_MSG_RESULT([assuming no])
|
||||
}], [sed_cv_libcp_needed=no],
|
||||
[sed_cv_libcp_needed=yes],
|
||||
[sed_cv_libcp_needed="assuming no"])
|
||||
])
|
||||
if test "$sed_cv_libcp_needed" = yes; then
|
||||
LIBS="-lcP $LIBS"
|
||||
fi
|
||||
|
||||
AC_HEADER_DIRENT
|
||||
AC_CHECK_HEADERS(io.h limits.h locale.h stdarg.h alloca.h stddef.h errno.h \
|
||||
|
||||
Reference in new issue
Block a user