Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Fix configure.ac to not to treate [ ] as quotes when using them in case
- X-seq: zsh-workers 23762
- From: Roy Marples <roy@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: [PATCH] Fix configure.ac to not to treate [ ] as quotes when using them in case
- Date: Thu, 16 Aug 2007 10:59:23 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi list.
Attached is a patch to fix configure on FreeBSD.
This is needed as it uses a shell case statement to test for specific
FreeBSD versions. When run through autotools, it strips the [ ] bit as
it thinks they are quotes.
This fixes Gentoo bug #188930.
http://bugs.gentoo.org/show_bug.cgi?id=188930
Thanks
Roy Marples
PS - I'm not subscribed to this list, so email me directly if you have
queries.
diff -ur a/configure.ac b/configure.ac
--- a/configure.ac 2007-01-05 13:58:04 +0000
+++ b/configure.ac 2007-08-16 09:17:29 +0100
@@ -2249,6 +2249,10 @@
zsh_cv_sys_elf=yes,
zsh_cv_sys_elf=no,
zsh_cv_sys_elf=yes)])
+
+ # We use [0-9]* in case statements, so need to change quoting
+ changequote(, )
+
DL_EXT="${DL_EXT=so}"
if test x$zsh_cv_sys_elf = xyes; then
case "$host" in
@@ -2352,6 +2356,10 @@
esac
;;
esac
+
+ # Done with our shell code, so restore autotools quoting
+ changequote([, ])
+
AC_CACHE_CHECK(if your dlsym() needs a leading underscore,
zsh_cv_func_dlsym_needs_underscore,
[echo failed >conftestval && cat >conftest.c <<EOM
Messages sorted by:
Reverse Date,
Date,
Thread,
Author