lloyd / yajl

A fast streaming JSON parsing library in C.
http://lloyd.github.com/yajl
ISC License
2.15k stars 435 forks source link

Fixed configure script to accept "-h" and "--prefix". #157

Closed setempler closed 8 years ago

setempler commented 9 years ago

Calling ./configure --prefix PATH ignored the option (and PATH). Same with ./configure -h. Missing PATH (or additional argument) called ./configure --help which showed the error:

# ./configure -p
./configure: 29: ./configure: ./configure.sh: not found

Fixed configure script to accept -h (in addition to --help) and --prefix PATH (in addition to -p PATH) as stated in usage/help of the script. Also put usage/help into a variable and echoed when arguments were incorrect, to avoid error listed above.

setempler commented 9 years ago

See also issue https://github.com/lloyd/yajl/issues/149.