dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.13) AC_INIT(src/msgfmt.c) AM_INIT_AUTOMAKE(gettext, 0.11) RELEASE_DATE=2001-05-23 dnl in "date +%Y-%m-%d" format AM_CONFIG_HEADER(config.h) dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_PROG_YACC gt_PROG_LEX dnl Check for host type. AC_CANONICAL_HOST dnl Checks for UNIX variants that set DEFS, AC_ISC_POSIX dnl Checks for compiler output filename suffixes. AC_OBJEXT AC_EXEEXT dnl Check for build configuration. AM_PROG_LIBTOOL AC_DEFINE(_GNU_SOURCE, 1, [Make sure we see all GNU extensions.]) dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(limits.h malloc.h string.h unistd.h values.h) gt_STDBOOL_H dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE bh_C_SIGNED AC_C_BACKSLASH_A jm_AC_TYPE_UNSIGNED_LONG_LONG AC_TYPE_OFF_T AC_TYPE_SIZE_T AM_TYPE_PTRDIFF_T jm_AC_TYPE_UINTMAX_T gt_TYPE_SSIZE_T AC_TYPE_PID_T dnl Checks for library functions. AC_FUNC_ALLOCA AC_FUNC_VPRINTF AC_CHECK_FUNCS([getcwd mblen memcpy posix_spawn select strchr strerror uname]) AC_REPLACE_FUNCS([memmove memset stpcpy stpncpy strcspn \ strcasecmp strncasecmp strpbrk strstr strtoul vasprintf]) AM_FUNC_GETLINE if test $am_cv_func_working_getline != yes; then AC_CHECK_FUNCS(getdelim) fi jm_PREREQ_MBSWIDTH AC_FUNC_VFORK gt_UNION_WAIT gt_TMPDIR gt_FUNC_MKDTEMP gt_FUNC_SETENV AM_FUNC_ERROR_AT_LINE gt_SETLOCALE dnl These are the only lines required to internationalize the package. dnl (OK, not quite, the AC_OUTPUT has also some parts.) AM_GNU_GETTEXT(use-libtool, need-ngettext) dnl Check for Emacs and where to install .elc files. AM_PATH_LISPDIR aclocaldir='${datadir}/aclocal' AC_SUBST(aclocaldir) dnl Check for tools needed for formatting the documentation. ac_aux_dir_abs=`cd $ac_aux_dir && pwd` AC_PATH_PROG(DVIPS, dvips, $ac_aux_dir_abs/missing dvips) AC_PATH_PROG(TEXI2PDF, texi2pdf, $ac_aux_dir_abs/missing texi2pdf) AC_PATH_PROG(TEXI2HTML, texi2html, $ac_aux_dir_abs/missing texi2html) dnl Check for tools needed for formatting man pages. CROSS_COMPILING=$cross_compiling AC_SUBST(CROSS_COMPILING) AC_PATH_PROG(PERL, perl, $ac_aux_dir_abs/missing perl) dnl Generate the version information file in the intl/ directory. test -d intl || mkdir intl echo "GNU gettext library from $PACKAGE-$VERSION" > intl/VERSION cat > intl/ChangeLog.inst < * Version $VERSION released. EOF AC_OUTPUT([Makefile lib/Makefile intl/Makefile src/Makefile po/Makefile.in \ doc/Makefile man/Makefile man/x-to-1 tests/Makefile m4/Makefile \ misc/Makefile misc/gettextize])