diff options
Diffstat (limited to 'Build/source/texk/ptexenc/configure.ac')
-rw-r--r-- | Build/source/texk/ptexenc/configure.ac | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/Build/source/texk/ptexenc/configure.ac b/Build/source/texk/ptexenc/configure.ac index 6c744bfbe38..8d2acff383a 100644 --- a/Build/source/texk/ptexenc/configure.ac +++ b/Build/source/texk/ptexenc/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org> +dnl Copyright (C) 2010 Peter Breitenlohner <tex-live@tug.org> dnl dnl This file is free software; the copyright holder dnl gives unlimited permission to copy and/or distribute it, @@ -20,13 +20,13 @@ dnl dnl After a release, set ptexenc_lib_dev to "dev", to distinguish dnl binaries built between releases. -m4_define([ptexenc_lib_major], [2])[]dnl -m4_define([ptexenc_lib_minor], [0])[]dnl -m4_define([ptexenc_lib_micro], [2])[]dnl -m4_define([ptexenc_lib_devel], [])[]dnl or "dev" +m4_define([ptexenc_lib_major], [1])[]dnl +m4_define([ptexenc_lib_minor], [1])[]dnl +m4_define([ptexenc_lib_micro], [1])[]dnl +m4_define([ptexenc_lib_devel], [dev])[]dnl or "dev" m4_define([ptexenc_version], [ptexenc_lib_major.ptexenc_lib_minor.ptexenc_lib_micro[]ptexenc_lib_devel])[]dnl -AC_INIT([ptexenc], [1.1.0]) +AC_INIT([ptexenc], [ptexenc_version], [tex-k@tug.org]) AC_PREREQ([2.63]) AC_CONFIG_SRCDIR([ptexenc.c]) AC_CONFIG_AUX_DIR([../../build-aux]) @@ -34,21 +34,18 @@ AC_CONFIG_MACRO_DIR([../../m4]) AC_SUBST([PTEXENCVERSION], [ptexenc_version]) AC_DEFINE([PTEXENCVERSION], ["ptexenc version ptexenc_version"]) -AC_SUBST([PTEXENC_LT_VERSNUM], [ptexenc_lib_major:ptexenc_lib_minor:ptexenc_lib_micro]) +AC_SUBST([PTEXENC_LT_VERSINFO], + [m4_eval(ptexenc_lib_major+ptexenc_lib_minor):ptexenc_lib_micro:ptexenc_lib_minor]) dnl Common code for all programs using libptexenc. KPSE_COMMON([ptexenc]) -dnl Replacement functions that may be required on ancient broken system. -#AC_CHECK_DECLS([putenv, strstr]) -#AC_REPLACE_FUNCS([putenv strcasecmp strtol strstr]) - KPSE_KPATHSEA_FLAGS dnl withenable.ac: --with and --enable options. -AC_MSG_CHECKING(default pTeX character encode) -AC_ARG_WITH(ptexenc-enc, -[ --with-ptexenc-enc=ENC Default pTeX character encode +AC_MSG_CHECKING([default pTeX character encoding]) +AC_ARG_WITH([ptexenc-enc], +[ --with-ptexenc-enc=ENC Default pTeX character encoding (ENC=JIS/EUC/SJIS/UTF8, default UTF8)], [case $withval in jis|JIS) PTEXENC=ENC_JIS;; @@ -56,23 +53,23 @@ AC_ARG_WITH(ptexenc-enc, sjis|SJIS) PTEXENC=ENC_SJIS;; utf8|UTF8) PTEXENC=ENC_UTF8;; *) PTEXENC=ENC_UTF8; - AC_MSG_WARN(Unknown --with-ptexenc-enc argument \`$withval';);; - esac; AC_MSG_RESULT($PTEXENC) + AC_MSG_WARN([Unknown --with-ptexenc-enc argument \`$withval';]);; + esac; AC_MSG_RESULT([$PTEXENC]) AC_DEFINE_UNQUOTED([DEFAULT_KANJI_ENC],[$PTEXENC],[Default kanji encode])], - [AC_MSG_RESULT(ENC_UTF8) + [AC_MSG_RESULT([ENC_UTF8]) AC_DEFINE_UNQUOTED([DEFAULT_KANJI_ENC],[ENC_UTF8],[Default kanji encode])]) -AC_ARG_ENABLE(kanji-iconv, +AC_ARG_ENABLE([kanji-iconv], [ --enable-kanji-iconv use iconv for kanji <=> unicode conversion], - , enable_kanji_iconv=no) + , [enable_kanji_iconv=no]) if test "x$enable_kanji_iconv" = "xyes"; then AC_DEFINE([KANJI_ICONV], 1, [Define 1 if you use iconv for kanji <=> unicode conversion]) -AC_CHECK_LIB(iconv, iconv_open,,AC_CHECK_LIB(iconv, libiconv_open)) -AC_CHECK_HEADERS(iconv.h) -AC_CHECK_FUNCS(iconv) -AC_CHECK_FUNCS(atexit on_exit, break) +AC_CHECK_LIB([iconv], [iconv_open], ,[AC_CHECK_LIB([iconv], [libiconv_open])]) +AC_CHECK_HEADERS([iconv.h]) +AC_CHECK_FUNCS([iconv]) +AC_CHECK_FUNCS([atexit on_exit], [break]) fi |