libtool
[Top][All Lists]
Advanced

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

libtool/config.status issue on IRIX


From: Joe Orton
Subject: libtool/config.status issue on IRIX
Date: Thu, 1 Jan 2004 22:01:07 +0000
User-agent: Mutt/1.4.1i

Following up on the issue reported by Bob Friesenhahn here:

http://mail.gnu.org/archive/html/libtool/2003-11/msg00131.html

The suspect eval line in config.status has lost some of the necessary
backslashes:

IRIX config.status:
...
  # Now quote all the things that may contain metacharacters while being
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  # variables and quote the copies for generation of the libtool script.
  for var in SED SHELL echo AR AR_FLAGS LTCC EGREP RANLIB LN_S NM ...

....
    *)
      eval "lt_$var=\\"\`\$echo "X\$$var" | \$Xsed -e "\$sed_quote_subst"\`\\""
      ;;
    esac
  done

where the same fragment from a config.status created on Linux looks
like:

    *)
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e 
\"\$sed_quote_subst\"\`\\\""
      ;;
    esac
  done

configure selects ksh on this platform (at least using autoconf HEAD).

a minimal repro case for the different quoting, comparing sh with ksh:

whisk 45% uname -a
IRIX whisk 6.2 03131015 IP22
whisk 46% cat frag.sh
#! /bin/sh
cat >foo.out <<_ACEOF
eval "lt_\$var=\\\\\"\\\`\\\$echo \"X\\\$\$var\" | \\\$Xsed -e 
\"\\\$sed_quote_subst\"\\\`\\\\\""
_ACEOF
cat foo.out
whisk 47% sh ./frag.sh
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
whisk 48% ksh ./frag.sh
eval "lt_$var=\\"\`\$echo "X\$$var" | \$Xsed -e "\$sed_quote_subst"\`\\""





reply via email to

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