]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix compilation error on Cygwin.
authorBruno Haible <bruno@clisp.org>
Fri, 10 Feb 2023 01:36:22 +0000 (02:36 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 11 Feb 2023 10:32:45 +0000 (11:32 +0100)
The error occurred because Gnulib's error.h currently does not
and HAVE_ERROR=0. In this case we shouldn't force the creation of error.h.

* gettext-tools/configure.ac: Don't set ac_cv_lib_error_at_line=no. This reverts
a workaround from 2012-12-25.

gettext-tools/configure.ac

index 08e24c8bc152bbf9fda34cae6312bbb52757a7f4..449cd284fcf7ab1f43970592eb81210b4ed25a44 100644 (file)
@@ -1,5 +1,5 @@
 dnl Configuration for the gettext-tools directory of GNU gettext
-dnl Copyright (C) 1995-2022 Free Software Foundation, Inc.
+dnl Copyright (C) 1995-2023 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
@@ -126,13 +126,6 @@ case "$host_os" in
 esac
 AM_CONDITIONAL([WINDOWS_NATIVE], [test $is_windows_native = yes])
 
-dnl On Cygwin 1.7.10-1 or later, error_* variables are defined in the
-dnl Cygwin DLL.  To avoid any conflict with gettext DLLs, always link
-dnl to gnulib's error.c.  See GETTEXTLIB_EXPORTS_FLAGS setting below.
-case "$host_os" in
-  cygwin*) ac_cv_lib_error_at_line=no ;;
-esac
-
 dnl Checks for libraries.
 
 dnl These are the only lines required to internationalize the package.