From: Ben Pfaff Date: Fri, 8 Jul 2022 22:22:24 +0000 (-0700) Subject: configure: Update autoconf and libtool macro use to fix warnings. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=99fbdf32abded5630e8840a4f4449ea2d9230f26 configure: Update autoconf and libtool macro use to fix warnings. --- diff --git a/acinclude.m4 b/acinclude.m4 index 8fba32f945..8c1d2fd851 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -347,7 +347,7 @@ dnl PSPP_ENABLE_WERROR AC_DEFUN([PSPP_ENABLE_WERROR], [AC_ARG_ENABLE( [Werror], - [AC_HELP_STRING([--enable-Werror], [Add -Werror to CFLAGS])], + [AS_HELP_STRING([--enable-Werror], [Add -Werror to CFLAGS])], [], [enable_Werror=no]) AC_CONFIG_COMMANDS_PRE( [if test "X$enable_Werror" = Xyes; then diff --git a/configure.ac b/configure.ac index 9c6f57fe7c..b8e8b7ddce 100644 --- a/configure.ac +++ b/configure.ac @@ -25,19 +25,17 @@ AC_CONFIG_TESTDIR([tests]) AM_INIT_AUTOMAKE([tar-ustar info-in-builddir]) dnl Checks for programs. -AC_GNU_SOURCE +AC_USE_SYSTEM_EXTENSIONS AC_PROG_CC gl_EARLY if test x"$cross_compiling" = x"yes"; then if test x"$srcdir" = x"."; then - AC_ERROR([Cross compiling must be done out of source.]) + AC_MSG_ERROR([Cross compiling must be done out of source.]) fi fi AM_PROG_CC_C_O -AC_LIBTOOL_WIN32_DLL -AC_LIBTOOL_DLOPEN -AC_PROG_LIBTOOL +LT_INIT([dlopen win32-dll]) AC_HEADER_TIOCGWINSZ AC_CHECK_SIZEOF([ptrdiff_t])