Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1398 closed defect (invalid)

configure script uses option -E on wrong grep

Reported by: g.s@… Owned by: diego@…
Priority: normal Component: build system
Version: 1.0rc2 Severity: minor
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

On Solaris, /usr/bin/grep does not support the -E option, however, the configure script just calls grep which usually is /usr/bin/grep.
Possible solutions:

  1. Rewrite to using -e
  2. Use ggrep (/usr/sfw/bin might not be in the PATH, though)
  3. Use /usr/xpg4/bin/grep (which probably isn't in the users' PATH, either)

Change History (6)

comment:1 by g.s@…, 15 years ago

In snapshot 2009-01-31, grep is also called with -q, which once again is only a GNU grep option.

comment:2 by diego@…, 15 years ago

Resolution: invalid
Status: newclosed

These options are not GNU, but POSIX. Your Solaris userland is right out of the stone age and does not support standards. You don't have to take my word for it, look it up yourself:

http://www.opengroup.org/onlinepubs/009695399/utilities/grep.html

comment:3 by g.s@…, 15 years ago

Resolution: invalid
Status: closedreopened

There are several greps available on Solaris, however the configure script doesn't check if it's using the right one, but that's waht configure was meant for.

comment:4 by diego@…, 15 years ago

Resolution: invalid
Status: reopenedclosed

configure neither is nor was meant to be a sanity check for your system. A POSIX-compatible system is required and assumed. Now go complain to your vendor.

comment:5 by g.s@…, 15 years ago

FYIO:

http://en.wikipedia.org/wiki/GNU_build_system:

Autoconf is used to attempt to work around the quirks found in various Unix-like operating systems. For example, some Unix-like systems may have certain facilities that are known to be broken or missing entirely. Autoconf creates a shell script which can detect these, and the program can work around them.

comment:6 by diego@…, 15 years ago

FYI: We do not use auto*, nor do we intend to in the future. It's even in the FAQ. Auto* is the devil incarnate.

Note: See TracTickets for help on using tickets.