> From: Alexandre Oliva <[EMAIL PROTECTED]>
> Date: 11 Nov 2000 04:51:04 -0200

> How about:
> 
> # Work around the problem that "expr 'a' : 'a\(\)'" outputs "0" in QNX.
> case $ac_option in
> *=?*) ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` ;;
> *) ac_optarg= ;;
> esac

Yes, that'd be even better.

> I mean, it's not like it would be too costly to add a sed-based
> fallback here.

I don't think so.

Another possibility would be for "configure" to substitute its own
"expr" if the system expr doesn't work.  config.expr would be a shell
script that invokes sed to work around the buggy cases, and invokes
the system expr in normal cases.

Reply via email to