From 1a5c4c691c8da077fd744c747c65c582173561ed Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Tue, 7 Sep 2004 00:48:49 +0000 Subject: [PATCH] when calling AC_TRY_RUN() to test for a broken regexec() function, set the fourth parameter to default to "no" (since it apparently only occurs on glibc 2.2.3-based systems) so that cross-compiling will work git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1929 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 9 +++++++-- configure.ac | 4 +++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ce624480..1abbdf37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -106,6 +106,11 @@ CVS code - - Don't bother assigning the value of get_mouseinput() to anything. Since allow_shortcuts is FALSE, its return value will always be FALSE. (DLR) +- configure.ac: + - When calling AC_TRY_RUN() to test for a broken regexec() + function, set the fourth parameter to default to "no" (since + it apparently only occurs on glibc 2.2.3-based systems) so + that cross-compiling will work. (DLR, found by Mike Frysinger) - nanorc.sample: - Remove specific references to control key shortcuts other than XON and XOFF. (DLR) @@ -1574,8 +1579,8 @@ GNU nano 1.2.1 - 2003.04.19 - General: - Translation updates (see po/ChangeLog for details). - Work around broken regexec() on some systems that segfaults - when passed an empty string. New function regexec_safe(). - (David Benbennick) + when passed an empty string. This is known to be in glibc + 2.2.3. New function regexec_safe(). (David Benbennick) - Fix various bugs with search string history logging: don't print a broken error message and freeze if ~/.nano_history is unreadable, actually show an error message in save_history() diff --git a/configure.ac b/configure.ac index 2abcf854..b34534e1 100644 --- a/configure.ac +++ b/configure.ac @@ -56,7 +56,9 @@ int main(void) return 0; }], AC_MSG_RESULT(no), - AC_MSG_RESULT(yes); AC_DEFINE(BROKEN_REGEXEC, 1, [Define this if your regexec() function segfaults when passed an empty string under certain conditions.]) + AC_MSG_RESULT(yes) + AC_DEFINE(BROKEN_REGEXEC, 1, [Define this if your regexec() function segfaults when passed an empty string under certain conditions.]), + AC_MSG_RESULT([cross-compiling; assuming no]) ) ) -- 2.39.5