not POSIX compliant test(1) usage in configure.in

Report bugs, bug fixes and workarounds here.
Topic author
salo

not POSIX compliant test(1) usage in configure.in

Post #1by salo » 07.05.2003, 18:19

there are several places in configure.in (and in configure script generated from the former) where test(1) utility is used in a way which breaks POSIX compliant test(1). POSIX (http://www.opengroup.org/onlinepubs/007904975/utilities/test.html) requires test(1) to use single = for string comparisions yet celestia's configure.in uses ==, which results in breaks on systems which don't use bash(1) as a /bin/sh (e.g. *BSD or SVr4 systems).

here is the patch for 1.3.0 release: http://Xtrmntr.org/salo/celestia-1.3.0-configure.in.diff

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 4 months
Location: Lyon (France)

Post #2by Christophe » 07.05.2003, 20:19

I've commited your patch, thanks for taking the time to provide it.
Christophe

Topic author
salo

Post #3by salo » 07.05.2003, 20:24

you're welcome. i discovered this issue while working on (soon to be committed) celestia packages for NetBSD. thanks for the fast reply.


Return to “Bugs”