Additionally, Solaris m4 doesn't support --version either (my test below
was unintentionally using /usr/gnu/bin/m4).
So even if *BSD isn't a supported target, I know Solaris is.

-Paul

On Wed, Nov 14, 2012 at 6:50 PM, Ralph Castain <r...@open-mpi.org> wrote:

> Ick - usually tools support some kind of version option. :-(
>
> I'll give Nathan a chance to work on this tonight. If we can't resolve the
> problem, I'll revert the m4 check as well.
>
>
> On Nov 14, 2012, at 5:41 PM, Paul Hargrove <phhargr...@lbl.gov> wrote:
>
> On Wed, Nov 14, 2012 at 6:26 PM, Larry Baker <ba...@usgs.gov> wrote:
>
>> m4 --version | sed -n -E -e
>> '1s/^.*[^A-Za-z0-9_-]?([0-9]+[.][0-9]+[.][0-9]+)[^A-Za-z0-9_-]?.*$/\1/p'
>>
>
>
> There are STILL problems with this approach as it is TWICE specific to GNU
> software:
>
> 1) M4 on OpenBSD (maybe others) doesn't support a "--version" flag:
> $ m4 --version | sed -n -E -e
> '1s/^.*[^A-Za-z0-9_-]?([0-9]+[.][0-9]+[.][0-9]+)[^A-Za-z0-9_-]?.*$/\1/p'
> m4: unknown option -- -
> usage: m4 [-gPs] [-Dname[=value]] [-d flags] [-I dirname] [-o filename]
>         [-t macro] [-Uname] [file ...]
>
> 2) sed on Solaris (maybe others) doesn't support a "-E" flag:
> $ m4 --version | sed -n -E -e
> '1s/^.*[^A-Za-z0-9_-]?([0-9]+[.][0-9]+[.][0-9]+)[^A-Za-z0-9_-]?.*$/\1/p'
> /bin/sed: illegal option -- E
>
> -Paul
>
> --
> Paul H. Hargrove                          phhargr...@lbl.gov
> Future Technologies Group
> Computer and Data Sciences Department     Tel: +1-510-495-2352
> Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
>
>  _______________________________________________
> devel mailing list
> de...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/devel
>
>
>
> _______________________________________________
> devel mailing list
> de...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/devel
>



-- 
Paul H. Hargrove                          phhargr...@lbl.gov
Future Technologies Group
Computer and Data Sciences Department     Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

Reply via email to