X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=enscript.git;a=blobdiff_plain;f=configure.ac;h=dbb84d2f365c29b409da79716603398ce5c45f21;hp=465100a509cf93b33300543d80f3de6fcd116fd8;hb=f2eef583ed81cdedf91e8a54e2ff7feb4b331784;hpb=0b6eabf156d0b83110b521e589d67b0d98666be0 diff --git a/configure.ac b/configure.ac index 465100a..dbb84d2 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,6 @@ AC_PROG_INSTALL AC_PROG_CC AC_USE_SYSTEM_EXTENSIONS -AM_C_PROTOTYPES AC_C_CONST AC_FUNC_ALLOCA @@ -66,6 +65,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) @@ -143,6 +159,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 ""