Modernize the build system.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 29 Sep 2013 16:06:13 +0000 (18:06 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 29 Sep 2013 16:10:56 +0000 (18:10 +0200)
commit68f4ca711593416d0defd81199b176ba604c6cb1
tree0ab19fa549f5d7a1c99a7345b585e2f0361b0ec9
parentfc74f52df914ac67ef27d10fa9ba4bfa11c2f40e
Modernize the build system.

Recent versions of autoconf and automake were giving a lot of warnings. This is
sort of a backport of similar build system changes from the 1.1 banch:

- Fix all autoconf/automake warnings.
- Merge lib/ into src/.
- Don't use symlinks for device.c any more, but use automake conditionals.
- Use explicit paths to local header files.
- Get rid of alloca.c/malloc.c/memcmp.c/realloc.c.
42 files changed:
Makefile.am
configure.ac [moved from configure.in with 82% similarity]
doc/Makefile.am
lib/Makefile.am [deleted file]
lib/alloca.c [deleted file]
lib/malloc.c [deleted file]
lib/memcmp.c [deleted file]
lib/realloc.c [deleted file]
src/Makefile.am
src/avl_tree.c [moved from lib/avl_tree.c with 100% similarity]
src/avl_tree.h [moved from lib/avl_tree.h with 100% similarity]
src/bsd/device.c
src/cygwin/device.c
src/dropin.c [moved from lib/dropin.c with 100% similarity]
src/dropin.h [moved from lib/dropin.h with 100% similarity]
src/ethernet.h [moved from lib/ethernet.h with 100% similarity]
src/fake-gai-errnos.h [moved from lib/fake-gai-errnos.h with 100% similarity]
src/fake-getaddrinfo.c [moved from lib/fake-getaddrinfo.c with 100% similarity]
src/fake-getaddrinfo.h [moved from lib/fake-getaddrinfo.h with 100% similarity]
src/fake-getnameinfo.c [moved from lib/fake-getnameinfo.c with 100% similarity]
src/fake-getnameinfo.h [moved from lib/fake-getnameinfo.h with 100% similarity]
src/getopt.c [moved from lib/getopt.c with 99% similarity]
src/getopt.h [moved from lib/getopt.h with 100% similarity]
src/getopt1.c [moved from lib/getopt1.c with 99% similarity]
src/graph.c
src/have.h [moved from have.h with 100% similarity]
src/ipv4.h [moved from lib/ipv4.h with 100% similarity]
src/ipv6.h [moved from lib/ipv6.h with 100% similarity]
src/linux/device.c
src/list.c [moved from lib/list.c with 100% similarity]
src/list.h [moved from lib/list.h with 100% similarity]
src/mingw/device.c
src/pidfile.c [moved from lib/pidfile.c with 100% similarity]
src/pidfile.h [moved from lib/pidfile.h with 100% similarity]
src/solaris/device.c
src/splay_tree.c [moved from lib/splay_tree.c with 100% similarity]
src/splay_tree.h [moved from lib/splay_tree.h with 100% similarity]
src/system.h [moved from system.h with 98% similarity]
src/utils.c [moved from lib/utils.c with 100% similarity]
src/utils.h [moved from lib/utils.h with 100% similarity]
src/xalloc.h [moved from lib/xalloc.h with 100% similarity]
src/xmalloc.c [moved from lib/xmalloc.c with 99% similarity]