dnl Configuration for the gettext-runtime directory of GNU gettext
-dnl Copyright (C) 1995-1999, 2000-2010 Free Software Foundation, Inc.
+dnl Copyright (C) 1995-2010, 2015 Free Software Foundation, Inc.
dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.62])
-AC_INIT
+AC_INIT([gettext-runtime],
+ m4_esyscmd([../build-aux/git-version-gen ../.tarball-version]),
+ [bug-gnu-gettext@gnu.org])
AC_CONFIG_SRCDIR([intl/dcigettext.c])
AC_CONFIG_AUX_DIR([../build-aux])
-. $srcdir/../version.sh
-gl_INIT_PACKAGE([gettext-runtime], [$VERSION_NUMBER])
AM_INIT_AUTOMAKE([1.11.1 silent-rules parallel-tests])
AC_CONFIG_HEADERS([config.h])
dnl Installation directories.
-test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext'
+test "$docdir" != '${datarootdir}/doc/${PACKAGE_TARNAME}' || docdir='${datarootdir}/doc/gettext'
dnl Checks for programs.
AC_PROG_CC
dnl Make sure we see all GNU and Solaris extensions.
gl_EARLY
+AM_PROG_CC_C_O
dnl Check for build configuration.
#endif
/* Extra OS/2 (emx+gcc) defines. */
-#ifdef __EMX__
+#if defined __EMX__ && !defined __KLIBC__
# include "intl/os2compat.h"
#endif
])
SUBDIR_libasprintf=
fi
], [SUBDIR_libasprintf=libasprintf])
-if test "$CXX" = ":"; then
+if test "$CXX" = "no"; then
SUBDIR_libasprintf=
fi
AM_CONDITIONAL([ENABLE_LIBASPRINTF], [test -n "$SUBDIR_libasprintf"])