diff options
author | Mathieu Trossevin <mathieu.trossevin@gmail.com> | 2021-06-12 20:41:15 +0200 |
---|---|---|
committer | Tomáš Mráz <tm@t8m.info> | 2021-06-14 18:22:04 +0200 |
commit | b4f0e2e1f7a18169938eedeff8180e0c75473bb5 (patch) | |
tree | 007a46df1c1b22561b1f485ad1d37f4917c2a66e /libpamc | |
parent | 530c9f9e2d746e1d168c6b17863debda7664ac7c (diff) | |
download | pam-b4f0e2e1f7a18169938eedeff8180e0c75473bb5.tar.gz pam-b4f0e2e1f7a18169938eedeff8180e0c75473bb5.tar.bz2 pam-b4f0e2e1f7a18169938eedeff8180e0c75473bb5.zip |
Add pkgconfig files for provided libraries
* .gitignore: Add .pc files as they are generated by autoconf.
* configure.ac: Generate .pc files for libpam, libpam_misc and libpamc.
* libpam/Makefile.am: Install pam.pc.
* libpam/pam.pc.in: New file.
* libpam_misc/Makefile.am: Install pam_misc.pc
* libpam_misc/pam_misc.pc.in: New file.
* libpamc/Makefile.am: Install pamc.pc
This allow applications and PAM modules to automatically find libpam,
libpam_misc and libpamc if they are installed instead of having to
manually search for them.
Diffstat (limited to 'libpamc')
-rw-r--r-- | libpamc/Makefile.am | 4 | ||||
-rw-r--r-- | libpamc/pamc.pc.in | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/libpamc/Makefile.am b/libpamc/Makefile.am index 85c9ce7f..2ebeadca 100644 --- a/libpamc/Makefile.am +++ b/libpamc/Makefile.am @@ -22,3 +22,7 @@ endif lib_LTLIBRARIES = libpamc.la libpamc_la_SOURCES = pamc_client.c pamc_converse.c pamc_load.c + +# Pkg-config script. +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = pamc.pc diff --git a/libpamc/pamc.pc.in b/libpamc/pamc.pc.in new file mode 100644 index 00000000..25a63854 --- /dev/null +++ b/libpamc/pamc.pc.in @@ -0,0 +1,9 @@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libpamc +URL: http://www.linux-pam.org/ +Description: The PAM client API library and binary prompt support. Rarely used. +Version: @VERSION@ +Cflags: -I${includedir} +Libs: -L${libdir} -lpamc |