Prepare autotools for gettext

This commit is contained in:
Bandie 2018-09-21 22:28:32 +02:00
parent 7497d4c1fa
commit 11597d0539
Signed by: Bandie
GPG Key ID: C1E133BC65A822DD
4 changed files with 10 additions and 3 deletions

View File

@ -1,8 +1,8 @@
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -I src AM_CFLAGS = -I src
SUBDIRS = src/pam_panic src/pam_panic_pw SUBDIRS = po src/pam_panic src/pam_panic_pw
.PHONY: all test clean .PHONY: all test clean

View File

@ -1,6 +1,6 @@
AC_INIT( AC_INIT(
[pam_panic], [pam_panic],
[0.1.0], [0.2.0],
[https://github.com/pampanic/pam_panic/issues], [https://github.com/pampanic/pam_panic/issues],
[pam_panic]) [pam_panic])
AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_AUX_DIR([build-aux])
@ -20,6 +20,8 @@ CFLAGS+=" -std=gnu11"
AM_PROG_AR AM_PROG_AR
AM_GNU_GETTEXT_VERSION(0.19.8)
AM_GNU_GETTEXT([external])
AC_PATH_PROG([REBOOT], [reboot]) AC_PATH_PROG([REBOOT], [reboot])
AC_DEFINE_UNQUOTED([REBOOT], "$REBOOT", AC_DEFINE_UNQUOTED([REBOOT], "$REBOOT",
@ -51,6 +53,7 @@ AC_ENABLE_SHARED([yes])
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile
po/Makefile.in
src/pam_panic/Makefile src/pam_panic/Makefile
src/pam_panic/man/Makefile src/pam_panic/man/Makefile
src/pam_panic_pw/Makefile src/pam_panic_pw/Makefile

View File

@ -3,6 +3,8 @@ SUBDIRS = man
securelibdir = $(SECUREDIR) securelibdir = $(SECUREDIR)
securelibexecdir = $(securelibdir) securelibexecdir = $(securelibdir)
AM_CFLAGS = -DLOCALEDIR='"$(localedir)"'
securelibexec_LTLIBRARIES = pam_panic.la securelibexec_LTLIBRARIES = pam_panic.la
pam_panic_la_SOURCES = \ pam_panic_la_SOURCES = \
pam_panic.c \ pam_panic.c \

View File

@ -1,5 +1,7 @@
SUBDIRS = man SUBDIRS = man
AM_CFLAGS = -DLOCALEDIR='"$(localedir)"'
bin_PROGRAMS = pam_panic_pw bin_PROGRAMS = pam_panic_pw
pam_panic_pw_SOURCES = pam_panic_pw.c pam_panic_pw.h pam_panic_pw_SOURCES = pam_panic_pw.c pam_panic_pw.h
pam_panic_pw_LDFLAGS = -lcrypt pam_panic_pw_LDFLAGS = -lcrypt