Drop special udev handling

We have a hard dependency so PKG_CHECK_MODULE will take care of all this.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Require udev on top of libudev

udev and libudev are two separate packages, require both of them. udev
doesn't really have cflags or libs, but use the respective defines for
consistency.

Also, split the PKG_CHECK_MODULE into two to get a better error message what
is actually missing. Most users will have udev.pc, but not libudev.pc
installed by default.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Move .pc and .sym file into src directory

This isn't documentation

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Hook up doxygen

Doesn't do much yet since we haven't documented anything yet, but in the
glorious future...

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(minor build-file coding-style changes)
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
gitignore: ignore tarballs

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
configure: check for linux/input.h

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Drop SUBDIRS from makefile

If we use a single makefile only, we don't need SUBDIRS

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
autogen: honour any value of NOCONFIGURE

From https://people.gnome.org/~walters/docs/build-api.txt
  "This tool SHOULD NOT automatically run ./configure.  If for
  historical reasons it does, then it MUST honor an environment
  variable NOCONFIGURE, which if set, suppresses the ./configure run."

There are a few sources that suggest setting NOCONFIGURE to "yes", which
would break with the current implementation.

fwiw, gnome-autogen.sh also only tests for a zero value.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
autogen: force autoreconf

Especially libtool has a habit of being annoying between versions,
requiring a autoreconf --force.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Drop a bunch of unneeded options

AM_DISTCHECK_CONFIGURE_FLAGS:
    "Still, developers are encouraged to strive to make their code buildable
    without requiring any special configure option; thus, in general, you
    shouldn’t define AM_DISTCHECK_CONFIGURE_FLAGS."
    we're not setting it to anything, so we can drop it

AUTOMAKE_OPTIONS = color-tests
    http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11855
    enabled by default as of 1.13 anyway

AC_PROG_MKDIR_P
    Do we need to care about systems that don't support mkdir -p?

AC_PROG_AWK,
    We don't use awk

AC_PROG_SED
    Looks like GNU sed 4.2 will work fine, so this test is largely for other
    versions that that. GNU sed 4.2 was released Apr 2009. The others we
    don't care about.

AC_PROG_GREP
    Only needed for grep implementations that we don't need to worry about
    (Irix, Solaris, AIX, ...)

AM_PROG_AR
    Needed by libtool, but since we use -no-portability our default ar will
    do just fine.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Makefile: clean up a bunch of variables

Instead of defining all of them empty, then adding the actual content to it,
just define it once with the content.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(also kill of "TPHONY =" initializer)
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>