summaryrefslogtreecommitdiff
path: root/Build/source/texk/cjkutils
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-03-19 13:59:30 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-03-19 13:59:30 +0000
commit0b7b2c69ec83497d9accab064da0f4ad07662d42 (patch)
treee8f22a2acecbf3035850f56beb1c8161c53cdf2d /Build/source/texk/cjkutils
parentee507bbd1fc483c58acb33cca25509a4dd81df9b (diff)
prepare for new build system
git-svn-id: svn://tug.org/texlive/trunk@12429 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/cjkutils')
-rw-r--r--Build/source/texk/cjkutils/Makefile.in.orig14
-rw-r--r--Build/source/texk/cjkutils/ac/withenable.ac3
-rw-r--r--Build/source/texk/cjkutils/configure.in.orig58
3 files changed, 75 insertions, 0 deletions
diff --git a/Build/source/texk/cjkutils/Makefile.in.orig b/Build/source/texk/cjkutils/Makefile.in.orig
new file mode 100644
index 00000000000..bf6c3b3108b
--- /dev/null
+++ b/Build/source/texk/cjkutils/Makefile.in.orig
@@ -0,0 +1,14 @@
+# @configure_input@
+
+RM = @RM@
+
+all_subdirs = conv scripts hbf2gf
+
+all check clean configclean default depend dvi extraclean \
+info install install-data install-exec mostlyclean realclean uninstall \
+uninstall-data uninstall-exec:
+ for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done
+
+distclean::
+ for d in $(all_subdirs); do (test -f $$d/Makefile && { cd $$d && $(MAKE) $@; } || true); done
+ $(RM) -f config.cache config.log stamp-auto config.status Makefile
diff --git a/Build/source/texk/cjkutils/ac/withenable.ac b/Build/source/texk/cjkutils/ac/withenable.ac
new file mode 100644
index 00000000000..9bbe9162d29
--- /dev/null
+++ b/Build/source/texk/cjkutils/ac/withenable.ac
@@ -0,0 +1,3 @@
+## texk/cjkutils/ac/withenable.ac
+## configure options and TL libraries required for cjkutils
+KPSE_WITH_PROG([cjkutils], [kpathsea])
diff --git a/Build/source/texk/cjkutils/configure.in.orig b/Build/source/texk/cjkutils/configure.in.orig
new file mode 100644
index 00000000000..9e190434224
--- /dev/null
+++ b/Build/source/texk/cjkutils/configure.in.orig
@@ -0,0 +1,58 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(hbf2gf/hbf.h)
+
+AC_CONFIG_HEADERS([hbf2gf/c-auto.h:hbf2gf/c-auto.in])
+
+dnl check host
+AC_CANONICAL_SYSTEM
+AC_PROG_MAKE_SET
+
+
+dnl Checks for programs.
+AC_PROG_CC
+
+
+dnl Checks for header files.
+AC_HEADER_STDC
+
+
+dnl get Compiler flags right.
+if test "x$CC" = xgcc; then
+ XX_CFLAGS="-Wall"
+else
+ case "$host" in
+ alpha-dec-osf*)
+ XX_CFLAGS="-std1 -O2 -g3"
+ ;;
+ *)
+ XX_CFLAGS=
+ ;;
+ esac
+fi
+AC_SUBST(XX_CFLAGS)
+
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_STRUCT_TM
+
+
+dnl Checks for library functions.
+AC_FUNC_VPRINTF
+AC_CHECK_FUNCS(strdup strstr strtol strtoul)
+
+dnl we need this for hbf.c
+if test "x$ac_cv_func_strdup" = xno; then
+ no_strdup=-DNO_STRDUP
+fi
+AC_SUBST(no_strdup)
+
+AC_CHECK_PROG(RM, rm, rm)
+AC_PROG_INSTALL
+
+sinclude(../kpathsea/withenable.ac)
+
+AC_CONFIG_FILES([Makefile])
+KPSE_CONFIG_FILES([conv/Makefile hbf2gf/Makefile scripts/Makefile])
+AC_OUTPUT
+date >stamp-auto