]> arthur.barton.de Git - bup.git/commit
configure: check for <readline.h> vs <readline/readline.h>
authorRob Browning <rlb@defaultvalue.org>
Sun, 21 Jun 2020 16:47:02 +0000 (11:47 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 5 Jul 2020 16:16:23 +0000 (11:16 -0500)
commit5a472d6aaa2922939b28bfc8186e7341ec1fc222
tree3af828d6f6bddb7ce567d5c4a7e93745e3fb33ed
parenta8616d0366d3b0f77cdb9e68f2a8142b5a4c28e1
configure: check for <readline.h> vs <readline/readline.h>

The readline docs (man and info pages) indicate that we should use

  #include <readline/readline.h>
  #include <readline/history.h>

Unfortunately, it appears that on a number of plaforms pkg-config
--cflags actually returns a -I value that requires

  #include <readline.h>
  #include <history.h>

So make an even bigger mess in config/configure to accomodate either
possibility.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
config/configure
lib/bup/_helpers.c