Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with autoconf 2.72 #232

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 31 additions & 9 deletions common/source/configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AC_PREREQ([2.60])
AC_INIT([globus_common], [18.14], [https://github.com/gridcf/gct/issues])
AC_INIT([globus_common], [18.15], [https://github.com/gridcf/gct/issues])
AC_CONFIG_MACRO_DIR([m4])
AC_SUBST([MAJOR_VERSION], [${PACKAGE_VERSION%%.*}])
AC_SUBST([MINOR_VERSION], [${PACKAGE_VERSION##*.}])
Expand All @@ -24,18 +24,40 @@ AC_SUBST(DIRT_TIMESTAMP)
AC_SUBST(DIRT_BRANCH_ID)

AC_SYS_LARGEFILE

if test X"$ac_cv_sys_largefile_opts" != "X"; then

# New version (autoconf >= 2.72

case $ac_cv_sys_largefile_opts in
"none needed") :
;;
"supported through gnulib") :
;;
"support not detected") :
;;
*)
LARGEFILE_CFLAGS="$ac_cv_sys_largefile_opts"
;;
esac

else

# Old version (autoconf < 2.72

if test X"$ac_cv_sys_largefile_CC" != "Xno"; then
LARGEFILE_CFLAGS="$ac_cv_sys_largefile_CC"
AC_SUBST(LARGEFILE_CFLAGS)
fi
if test X"$ac_cv_sys_file_offset_bits" != "Xno" && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this (i.e. [...]file_offset_bits) is no longer relevant for autoconf 2.72, I guess?

test X"$ac_cv_sys_file_offset_bits" != "Xunknown"; then
LARGEFILE_CFLAGS="${LARGEFILE_CFLAGS} -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
fi

if test X"$ac_cv_sys_large_files" = "X1"; then
LARGEFILE_CFLAGS="${LARGEFILE_CFLAGS} -D_LARGE_FILES=$ac_cv_sys_large_files"
fi

fi

AC_SUBST(LARGEFILE_CFLAGS)

LAC_THREADS
Expand Down Expand Up @@ -174,15 +196,15 @@ fi


AC_CONFIG_FILES([
Makefile
Makefile
globus-common.pc
globus-common-uninstalled.pc
library/Makefile
library/Doxyfile
library/Makefile
library/Doxyfile
library/globus_l_common_paths.h
programs/Makefile
programs/Makefile
programs/globus-sh-exec
scripts/Makefile
scripts/Makefile
scripts/Paths.pm
scripts/globus-sh-tools.sh
scripts/globus-sh-tools-vars.sh
Expand All @@ -192,7 +214,7 @@ AC_CONFIG_FILES([
scripts/globus-script-initializer.$host_cpu-$host_vendor-$host_os:scripts/globus-script-initializer-host.in
test/Makefile
manpages/Makefile
version.h])
version.h])
AC_CONFIG_FILES([programs/globus-version], [chmod a+x programs/globus-version])
AC_CONFIG_FILES([scripts/globus-domainname:scripts/globus-hostname.in],
[chmod a+x scripts/globus-domainname])
Expand Down
6 changes: 6 additions & 0 deletions packaging/debian/globus-common/debian/changelog.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
globus-common (18.15-1+gct.@distro@) @distro@; urgency=medium

* Compatibility with autoconf 2.72

-- Mattias Ellert <[email protected]> Wed, 30 Oct 2024 12:26:59 +0100

globus-common (18.14-1+gct.@distro@) @distro@; urgency=medium

* Remove register qualifier that is incompatible with C++ 17
Expand Down
5 changes: 4 additions & 1 deletion packaging/fedora/globus-common.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Name: globus-common
%global soname 0
%global _name %(echo %{name} | tr - _)
Version: 18.14
Version: 18.15
Release: 1%{?dist}
Summary: Grid Community Toolkit - Common Library

Expand Down Expand Up @@ -239,6 +239,9 @@ make %{?_smp_mflags} check VERBOSE=1 NO_EXTERNAL_NET=1
%doc %{_pkgdocdir}/GLOBUS_LICENSE

%changelog
* Wed Oct 30 2024 Mattias Ellert <[email protected]> - 18.15-1
- Compatibility with autoconf 2.72

* Thu Feb 16 2023 Mattias Ellert <[email protected]> - 18.14-1
- Remove register qualifier that is incompatible with C++ 17

Expand Down
Loading