ppp/pppd
Eivind Næss 2883dd0710 Use autoconf/automake to configure and make ppp
This change brings in autoconf/automake scripts to configure the ppp project. Current change doesn't eliminate the previous build system, but the new script autogen.sh will overwrite configure, and generate the basic Makefile.in and Makefile files.

Features can now be enabled by command line:

  * Microsoft Extensions,
    - MSCHAP
    - MPPE
    - MS LAN Manager support
  * IPXCP protocol
  * CBCP protocol
  * PAM support
  * EAP-TLS support
  * EAP-SRP support
  * Max session lifetime by byte count
  * Plugins
  * Packet activity filter support
  * Multilink
  * IPv6 support

Control linkage with
  * OpenSSL (-lssl -lcrypto)
  * systemd (-lsystemd)
  * libatm (-latm)
  * libsrp (-lsrp)
  * pam (-lpam)

Also, the configure script is made sensitive to features of OpenSSL. Like the presence or absence of DES, SHA, MD4 and MD5 crypto support. In the cases where either of these are missing, the support will be directly compiled into pppd and plugins.

In addition, package maintainers can now control the installation paths with standard --prefix=, or --localstatedir=, or --sysconfdir= to configure. On top of that, they can now control the following directories:
  * runtime directory w/--with-runtime-dir
  * logfile directory w/--with-logfile-dir
  * plugin directory w/--with-plugin-dir

In the case where automake isn't the right solution, namely: SunOS kernel module build, the original Makefile infrastructure is preserved and reused.

Care was taken to only cosmetically touchup the source files in this change. This means:
  * Insert HAVE_CONFIG_H and include config.h in all .c files.
  * Change HAS_SHADOW to HAVE_SHADOW_H
  * Change HAVE_LOGWTMP to HAVE_UTMP_H
  * Introduce HAVE_CRYPT_H into the source code where appropriate
  * Added ifdef MPPE where appropriate
  * USE_SRP required a few changes as it didn't compile
  * Touchup some compile warning in pppstats directory on SunOS

Introduced a new pppdconf.h file that exports the appropriate defines to a module that wants to provide a module that pppd can dynamically load. This will define/undef features like MPPE, CHAPMS such that the project doesn't have to guess what features pppd is compiled with.

Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
2021-07-20 08:24:08 -07:00
..
plugins Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
.gitignore Get the repository a bit closer to what will be released 2008-07-27 17:28:29 +10:00
auth.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
cbcp.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
cbcp.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
ccp.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
ccp.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
chap_ms.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
chap_ms.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
chap-md5.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
chap-md5.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
chap-new.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
chap-new.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
demand.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
eap-tls.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
eap-tls.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
eap.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
eap.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
ecp.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
ecp.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
eui64.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
eui64.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
fsm.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
fsm.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
ipcp.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
ipcp.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
ipv6cp.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
ipv6cp.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
ipxcp.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
ipxcp.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
lcp.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
lcp.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
magic.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
magic.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
main.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
Makefile.am Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
Makefile.linux Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
Makefile.sol2 Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
md4.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
md4.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
md5.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
md5.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
mppe.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
mppe.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
multilink.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
options.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
patchlevel.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
pathnames.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
ppp.pam Add newline to ppp.pam (courtesy Frank Cusack) 2002-02-26 03:17:34 +00:00
pppcrypt.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
pppcrypt.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
pppd.8 pppd: Add support for arbitrary baud rates via BOTHER on Linux (#278) 2021-06-05 11:43:24 +10:00
pppd.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
pppd.pc.in Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
pppdconf.h.in Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
session.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
session.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
sha1.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
sha1.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
spinlock.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
spinlock.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
srp-entry.8 Correctly escape or unescape hypens in the man pages. 2004-11-13 12:22:49 +00:00
srp-entry.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
sys-linux.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
sys-solaris.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
tdb.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
tdb.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
tty.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
upap.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
upap.h Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00
utils.c Use autoconf/automake to configure and make ppp 2021-07-20 08:24:08 -07:00