* On some misconfigured systems, libgpm is required along with ncurses.
I haven't been able to figure out the correct way to figure out these
dependencies without resorting to using external tools like 'nm'. So
for the moment, if libgpm is not found, at least warn the user that
the build might fail later.
* Ncurses on OS X does not require libgpm, so there is no need to test
for it.
* There seems to be an 'AC_DEFINE' _BSD_SOURCE which does not seem to be
used anywhere. Removing this for now.
* Remove some artifacts left behind by Emacs.
In some cases, tinfo is not required to build but the library still gets
linked in because it's present on the system. There should be an
explicit way to disable linking with tinfo.
The current macro does not seem to honor the CFLAGS and LDFLAGS
variables if '--with-sqlite3=yes' is used. Fix this and some of
the other cruft in the macro.
Initialize retval to SQLITE_ERROR during declaration at the beggining of
the method. I could technically go with SQLITE_OK but if this is going
to be unintentially returned without being initialized, I would much
rather it return an error than success.
The function is not really used anywhere and does not really do what the
name suggests it should. It leads to compiler warnings about 'unused'
function. Removing this for now.
On FreeBSD variant, readline functionality is provided by editline which
is almost compatible but not quite. We could do a specific check for
editline but if editline adds the functionality in the future, this
check will still continue to fail. Instead look for one of the symbols
currently missing in editline as a sanity check.
The macro does not track the include directory when it is passed in
using the '--with-readline=/foo/bar' invocation of '--with-readline'
flag.
This change should fix the problem. I've tried to keep the functionality
exactly the same as before and converted the script to pure M4sh, which
should produce a more portable configure script.