/configure
/depcomp
/install-sh
-/lib
/libtool
/ltmain.sh
/missing
-# Copyright © 2022-2023 Nick Bowler
+# Copyright © 2022-2024 Nick Bowler
#
# License WTFPL2: Do What The Fuck You Want To Public License, version 2.
# This is free software: you are free to do what the fuck you want to.
ACLOCAL_AMFLAGS = -I m4 -I common/m4
EXTRA_DIST =
+EXTRA_PROGRAMS =
EXTRA_LIBRARIES =
MAINTAINERCLEANFILES =
MOSTLYCLEANFILES =
-Subproject commit cf78d2aad652d3dd53a76e6651a08194a52afb6e
+Subproject commit aaaacebf1f04c364803f308c3b3e9670e216da09
-dnl Copyright © 2022-2023 Nick Bowler
+dnl Copyright © 2022-2024 Nick Bowler
dnl
dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
dnl This is free software: you are free to do what the fuck you want to.
AC_PROG_CC_C99
gl_EARLY
-LT_INIT
-gl_INIT
AC_C_FLEXIBLE_ARRAY_MEMBER
+AC_C_INLINE
+
+LT_INIT
+gl_INIT
AC_CACHE_SAVE
m4_include([lib/gnulib.mk])
-
-dnl We will provide our own makefile rules for gettext. Disable tracing of
-dnl AM_GNU_GETTEXT to prevent autoreconf from running autopoint, and to
-dnl prevent automake from growing gratuitous error conditions.
-m4_traceoff([AM_GNU_GETTEXT])
-AM_GNU_GETTEXT([external])
AH_BOTTOM([#include <conf_post.h>])
# Checks for curses
leaving this undefined may reduce the executable size somewhat.])])
AC_CONFIG_TESTDIR([.], [t:.])
-DX_PROG_AUTOTEST
-AM_CONDITIONAL([HAVE_AUTOTEST], [test x"$dx_cv_autotest_works" = x"yes"])
+DX_PROG_AUTOTEST_AM
AC_CHECK_PROGS([XPMTOPPM], [xpmtoppm])
AC_CHECK_PROGS([PNMTOPNG], [pnmtopng])
--- /dev/null
+/*
+!/.gitignore
+!/local
--- /dev/null
+Description:
+Conditionally pull in various gnulib modules for NLS support.
+
+Files:
+
+Depends-on:
+gnulib-local
+gettext-h [test x"$USE_NLS" = x"yes"]
+localcharset [test x"$USE_NLS" = x"yes"]
+mbswidth [test x"$USE_NLS" = x"yes"]
+
+configure.ac:
+m4_set_add([DX_GNULIB_LOCAL_DIST], [modules/dx-nls])dnl
+dnl We provide our own makefile rules for gettext. Avoid tracing of
+dnl AM_GNU_GETTEXT to prevent autoreconf from running autopoint, and
+dnl to prevent Automake from growing gratuitous error conditions.
+m4_indir([AM_GNU_GETTEXT], [external])
+DX_LINGUAS
+
+Makefile.am:
+
+License:
+WTFPL2
+
+Maintainer:
+Nick Bowler
--- /dev/null
+Description:
+Helper to export gnulib-tool local-dir settings to Automake and distribute
+files automatically.
+
+configure.ac:
+m4_set_add([DX_GNULIB_LOCAL_DIST], [modules/gnulib-local])dnl
+AC_REQUIRE([AC_PROG_AWK])dnl
+m4_pushdef([gl_LOCAL_DIR],
+ [m4_define([_DX_GNULIB_LOCAL_DIR_], $][@)])m4_divert_push([KILL])
+m4_include([m4/gnulib-cache.m4])
+m4_popdef([gl_LOCAL_DIR])m4_divert_pop([KILL])dnl
+AC_SUBST([DX_GNULIB_LOCAL_DIR], m4_defn([_DX_GNULIB_LOCAL_DIR_]))
+
+AC_CONFIG_COMMANDS_PRE([AC_SUBST([DX_GNULIB_LOCAL_DIST],
+ ["m4_set_dump([DX_GNULIB_LOCAL_DIST], [ ])"])])
+
+Makefile.am:
+DX_GNULIB_LOCAL_DIRS_AWK = \
+ { for (i=1; i<=NF; i++) { sub(/\/[^\/]*$$/, "", $$i); dirs[$$i]=1; } } \
+ END { for (i in dirs) print outdir "/" i; }
+
+dist-hook: dist-gnulib-local
+dist-gnulib-local:
+ save_IFS=$$IFS; \
+ IFS=:; set x $(DX_GNULIB_LOCAL_DIR); shift; \
+ IFS=$$save_IFS; \
+ outdir="$(top_distdir)/$$1"; \
+ dirs=`echo $(DX_GNULIB_LOCAL_DIST) \
+ | $(AWK) '$(DX_GNULIB_LOCAL_DIRS_AWK)' outdir="$$outdir"`; \
+ ( set -x; $(MKDIR_P) $$dirs && chmod u+w $$dirs ) || exit; \
+ for f in $(DX_GNULIB_LOCAL_DIST); do \
+ for indir; do \
+ test -f "$(top_srcdir)/$$indir/$$f" || continue; \
+ ( set -x; cp -p "$(top_srcdir)/$$indir/$$f" "$$outdir/$$f" ) || exit; \
+ break; \
+ done; \
+ done
+.PHONY: dist-gnulib-local
# Specification in the form of a command-line invocation:
-# gnulib-tool --import \
+# gnulib-tool --import --local-dir=lib/local \
# --lib=libgnu \
# --source-base=lib \
# --m4-base=m4 \
# --macro-prefix=gl \
# --no-vc-files \
# --avoid=std-gnu11 \
+# dx-nls \
# gethrxtime \
# getopt-gnu \
-# gettext-h \
-# inline \
-# localcharset \
-# mbswidth
+# gettext-h
# Specification in the form of a few gnulib-tool.m4 macro invocations:
-gl_LOCAL_DIR([])
+gl_LOCAL_DIR([lib/local])
gl_MODULES([
+ dx-nls
gethrxtime
getopt-gnu
gettext-h
- inline
- localcharset
- mbswidth
])
gl_AVOID([std-gnu11])
gl_SOURCE_BASE([lib])