config: Fix check for argp_parse to pass &argv
authorFilipe Brandenburger <filbranden@google.com>
Mon, 2 May 2016 19:18:47 +0000 (12:18 -0700)
committerMark Wielaard <mjw@redhat.com>
Mon, 2 May 2016 19:45:09 +0000 (21:45 +0200)
commitafeccd48a738ebae5645dded4dd13f053747d008
tree3bc569a74fca75093b98cb654f379c47a490c6a2
parentf46ba1e7211f4ae884f234a37e16bc5feafa2b1c
config: Fix check for argp_parse to pass &argv

Right now it's passing a char* when it expects a char** instead.

This usually produces a warning that may go unnoticed, but if CFLAGS
contains -Werror, that breaks the ./configure run with the following
error:

  $ ./configure CFLAGS=-Werror
  ...
  configure: WARNING: "libc does not have argp"
  checking for argp_parse in -largp... no
  configure: error: "no libargp found"

Tested: Checked that after this fix, running ./configure CFLAGS=-Werror
works as expected and argp_parse is correctly detected.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
ChangeLog
configure.ac