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

build: address warnings from autogen.sh #179

Merged
merged 8 commits into from
Sep 28, 2023

Conversation

garlick
Copy link
Member

@garlick garlick commented Sep 28, 2023

Here are some fixes autoreconf warnings noted in #178. Much of this is just pulling over what others have already done in flux-core.

Fixes #178

Problem: autoreconf complains about AC_CANONICAL_SYSTEM:

warning: The macro `AC_CANONICAL_SYSTEM' is obsolete

Use AC_CANONICAL_TARGET instead.
Problem: autoreconf complains about AM_CONFIG_HEADER

warning: 'AM_CONFIG_HEADER': this macro is obsolete

Use AC_CONFIG_HEADERS instead.
Problem: autoreconf complains about AC_PROG_CC_C99

warning: The macro `AC_PROG_CC_C99' is obsolete

Borrow logic from flux-core to conditionally use AC_PROG_CC.
Problem: autoreconf complains about AC_HEADER_STDC:

warning: The macro `AC_HEADER_STDC' is obsolete

Drop it.
Problem: autoreconf complains of duplicate EXTRA_DIST

src/libtomlc99/Makefile.am:54: warning: EXTRA_DIST multiply defined in condition TRUE ...
src/libtomlc99/Makefile.am:12: ... 'EXTRA_DIST' previously defined here

Change second EXTRA_DIST definition to an append.
Problem: autoreconf complains of

configure.ac:152: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:152: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
config/ac_pkgconfig.m4:3: AC_PKGCONFIG is expanded from...
configure.ac:152: the top level

Copy over the macro from flux-core.
Problem: autoreconf complains of

configure.ac:77: warning: The macro `AC_FD_CC' is obsolete.
configure.ac:77: You should run autoupdate.
./lib/autoconf/general.m4:399: AC_FD_CC is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
config/am_check_pymod.m4:3: AM_CHECK_PYMOD is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
configure.ac:77: the top level

Copy am_check_pymod.m4 from flux-core.
Problem: configure.ac includes an XXX comment that no longer
applies.

I can't tell if this is just a flag that the version comes from
git now, or if it's a note to do it that way, which is already done.

Either way, comment be gone!
@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

Merging #179 (07c8392) into master (3e011e0) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #179      +/-   ##
==========================================
- Coverage   85.92%   85.88%   -0.05%     
==========================================
  Files          36       36              
  Lines        4918     4918              
==========================================
- Hits         4226     4224       -2     
- Misses        692      694       +2     

see 1 file with indirect coverage changes

Copy link
Member

@chu11 chu11 left a comment

Choose a reason for hiding this comment

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

LGTM

@garlick
Copy link
Member Author

garlick commented Sep 28, 2023

Thanks! I'll set MWP.

@mergify mergify bot merged commit f8074d4 into flux-framework:master Sep 28, 2023
16 of 17 checks passed
@garlick garlick deleted the build_update branch June 6, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

autogen.sh emits warnings on ubuntu 22.04
2 participants