Remove obsolete Makefile(s) and configure scripts Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
Add pkgconfig support to PPP project (#270) This adds pppd.pc into $(INSTROOT)/$(LIBDIR)/pkgconfig. On some distributions this would be /lib/pkgconfig, or /usr/lib/pkgconfig, but other distributions may consider specifying --libdir=/usr/lib/x86_x64-linux-gnu/ and the pkgconfig directory would be under that. Allowing --libdir to be specified at configure time fixes #223, providing pkgconfig support fixes #19 and allows third party packages pickup the plugin directory. Manually cherry picking parts of two commits by @lkundrak from: https://github.com/NetworkManager/ppp/tree/lr/pkgconfig Mainly, the difference between the original commit is not to replace DESTDIR with "prefix". Leave DESTDIR alone, and add needed pkgconfig (pppd.pc.in) as a part of the linux distribution (previously in pppd/plugin directory). This fixes GitHub issues: #19 #47 and #223 Signed-off-by: Eivind Naess <eivnaes@yahoo.com>
Add cross-compilation support on Linux This adds three new command-line options to the configure script: --cross_compile=<prefix> (default "") --cc=<compiler> (default cc) --cflags=<compile flags> (default -g -O2 -pipe) These get propagated to the Makefiles in the subdirectories. The cross-compile prefix is prepended to the CC value, so for example if you do "./configure --cross_compile=powerpc64le-linux-" then everything gets compiled and linked using powerpc64le-linux-cc. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Allow overriding the optimization level with CFLAGS (#197) Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Co-authored-by: Marco d'Itri <md@linux.it>
Revert "pppdump: support building with the system zlib (#189)" This reverts commit c98cc28f128dffc456488c74b600640057da6994 because of compile errors in pppdump: cc -o pppdump pppdump.o deflate.o bsd-comp.o -lz /usr/bin/ld: deflate.o: in function `z_incomp': deflate.c:(.text+0x99): undefined reference to `inflateIncomp' /usr/bin/ld: deflate.o: in function `z_decomp_alloc': deflate.c:(.text+0x355): undefined reference to `inflateInit2' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:38: pppdump] Error 1 The copy of zlib here is not the same as the standard upstream zlib; this version has some extra functions added. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppdump: support building with the system zlib (#189) Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Co-authored-by: Marco d'Itri <md@linux.it>
Do not strip installed binaries (#186) This should be done by the packaging system, to be able to separate out debugging symbols into separate packages. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Honor LDFLAGS This makes the makefiles include $(LDFLAGS) as a parameter when linking executables. Distros use this as a way of applying linker flags across all the executables they build. [paulus@ozlabs.org - supplied the patch description] Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Add $(INSTDIR) to installation paths in Linux makefiles. Patch from Robert Vogelgesang. This patch re-introduces the possibility for package maintainers to install into a different filesystem tree. This is done by adding $(INSTROOT) at various places; the package maintainers can then issue a make install INSTROOT=/some/where/else when they package pppd for their distribution. In previous versions of the ppp package this was possible using the variable DESTDIR, but this variable is now used for a different purpose and cannot be changed via additional parameters of the make command.
Put man pages in /usr/share/man under Linux.
Add --prefix and --sysconfdir options to configure, and put @DESTDIR@ and @SYSCONF@ tags in various Makefile.linux files. These tags get expanded by configure.
use $(INSTALL) not install
add man page for pppdump and add it to the list of things to be installed on linux, sol2, svr4, sunos4