ac-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_PKG_MICO patch


From: jfasch
Subject: AC_PKG_MICO patch
Date: Wed, 01 Dec 2004 09:28:20 +0100 (CET)

I found that AC_PKG_MICO does not work in every case. There were two
problems which I fixed in confix.sf.net's vendor import of the
archive. I append a patch below.

1. configure.in:1309: /usr/bin/m4: Bad regular expression `[[[\([[[[]]]]\)]]]': 
Unmatched ) or \)

   I'm not really sure what's happening, but the first region of the
   patch definitely solves this (in a brute force approach
   however). (Note that quoting the AC_MSG_ERROR argument with current
   quotes (changequote(<<, >>) happened before) does not help.)

2. checking mico dependencies... tr: invalid backslash escape `\"'

   This happens when I use bash and POSIXLY_CORRECT is set to 1, and
   is solved by the second region of the patch. I tested `tr '"' 'x'`
   (without escaping '"') under bash (Linux), and SunOS 5.9, HP-UX
   10.20, and AIX 5.2 Bourne shell. Other I don't have access to.

Joerg

Index: ac_pkg_mico.m4
===================================================================
RCS file: 
/cvsroot/confix/confix/share/confix/ac-m4/autoconf-archive2/m4source/ac_pkg_mico.m4,v
retrieving revision 1.1.1.1
retrieving revision 1.3
diff -u -r1.1.1.1 -r1.3
--- ac_pkg_mico.m4      17 Nov 2004 10:20:43 -0000      1.1.1.1
+++ ac_pkg_mico.m4      30 Nov 2004 16:35:05 -0000      1.3
@@ -16,12 +16,16 @@
         x) break;;
         [0-9]*.[0-9]*.[0-9]*) MICO_REQUEST_VERSION="$a";;
         optional|required) MICO_URGENCY="$a";;
-        *) AC_MSG_ERROR("argument to the PKG_MICO macro must be one of 'X.X.X' 
'required' or 'optional'");;
+        *) argerror="argument to the PKG_MICO macro must be one of 'X.X.X' 
'required' or 'optional'";;
     esac
 done

 changequote([, ])

+if test -n "$argerror"; then
+  AC_MSG_ERROR($argerror)
+fi;
+
 AC_MSG_CHECKING(if mico is wanted)
 AC_ARG_WITH(mico,
     [  --with-mico=PATH absolute path name of mico's configuration file 
'mico-setup.sh' (default is to search in \$prefix/lib:/usr/local/lib:/usr/lib),
@@ -135,7 +139,7 @@
         AC_MSG_CHECKING(mico dependencies)

         micodeps=
-        for item in `grep -- -l $MICO_LD | tr '\"' ' '` ; do
+        for item in `grep -- -l $MICO_LD | tr '"' ' '` ; do
             case $item in
                 -l*) micodeps="$micodeps $item" ;;
             esac




reply via email to

[Prev in Thread] Current Thread [Next in Thread]