X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=enscript.git;a=blobdiff_plain;f=configure.ac;h=d481ed02d508e82a17229826e88de16d4159438b;hp=d8659a5fa2107687a62f2aa34c9eb7ef03b8f9bf;hb=c646cf316ff39592e23ecd9ce26374c197d58ff4;hpb=a356d343aa9db52b75432cde927b6f9bad6a7c44;ds=sidebyside diff --git a/configure.ac b/configure.ac index d8659a5..d481ed0 100644 --- a/configure.ac +++ b/configure.ac @@ -14,6 +14,8 @@ AC_USE_SYSTEM_EXTENSIONS AC_C_CONST AC_FUNC_ALLOCA +dnl its save to say that in 2023 all compilers support prototypes +AC_DEFINE([PROTOTYPES], [1], [Define to 1 if your compiler supports function prototypes.]) AC_HEADER_STDC AC_CHECK_HEADERS([string.h stdlib.h unistd.h stdarg.h math.h pwd.h]) @@ -65,6 +67,23 @@ AC_ARG_WITH(media, MEDIA=$ac_cv_value_media AC_SUBST(MEDIA) +dnl Define the default input encoding. +AC_ARG_WITH(encoding, +[ --with-encoding(=ENCODING) use input encoding (ENCODING), default is latin1], + if test "X$withval" != "Xno"; then + if test "X$withval" = "Xyes"; then + ac_cv_value_encoding='latin1' + else + ac_cv_value_encoding=$withval + fi + else + ac_cv_value_encoding=${ENCODING-latin1} + fi, + ac_cv_value_encoding=${ENCODING-latin1} +) +ENCODING=$ac_cv_value_encoding +AC_SUBST(ENCODING) + dnl Find the printer spooler command. AC_CHECK_PROG(SPOOLER, lpr, lpr) @@ -95,8 +114,8 @@ AC_ARG_WITH(ps-level, AC_SUBST(PSLEVEL) dnl Internationalization. -AM_GNU_GETTEXT -AM_GNU_GETTEXT_VERSION([0.17]) +AM_GNU_GETTEXT([external]) +AM_GNU_GETTEXT_VERSION([0.21.1]) dnl Path separator character. AC_DEFINE_UNQUOTED([PATH_SEPARATOR], [':'], @@ -117,7 +136,7 @@ dnl substitutions AC_SUBST(CFLAGS) AC_SUBST(LDFLAGS) -AC_CONFIG_FILES([Makefile po/Makefile.in intl/Makefile po/Makefile \ +AC_CONFIG_FILES([Makefile po/Makefile.in\ compat/Makefile \ afm/Makefile \ afmlib/Makefile \ @@ -142,6 +161,7 @@ echo "" echo "Option Change with configure's option Current value" echo "---------------------------------------------------------" echo "Media --with-media=MEDIA $MEDIA" +echo "Encoding --with-encoding=ENCODING $ENCODING" echo "Spooler --with-spooler=SPOOLER $SPOOLER" echo "PS level --with-ps-level=LEVEL $PSLEVEL" echo ""