Skip to content

build: fix autoreconf warnings - #1021

Closed
vszakats wants to merge 7 commits into
libssh2:masterfrom
vszakats:01-autotools-warnings
Closed

vszakats wants to merge 7 commits into
libssh2:masterfrom
vszakats:01-autotools-warnings

Conversation

@vszakats

@vszakats vszakats commented May 3, 2023 •

Copy link
Copy Markdown
Member
  • update AC_HELP_STRING' to 'AS_HELP_STRING:

    configure.ac:[...]: warning: The macro `AC_HELP_STRING' is obsolete.
    

    "AC_HELP_STRING is deprecated in 2.70+ and I believe AS_HELP_STRING works
    already since 2.59 so bump the minimum required version to that."

    Ref: curl/curl@a59f046

  • simplify to avoid:

    src/Makefile.inc:48: warning: variable 'EXTRA_DIST_SOURCES' is defined but no program or
    src/Makefile.inc:48: library has 'DIST' as canonical name (possible typo)
    

    Regression from 2c18b6f

  • AC_TRY_LINK/AC_TRY_COMPILE:

    configure.ac:335: warning: The macro `AC_TRY_COMPILE' is obsolete.
    configure.ac:335: warning: The macro `AC_TRY_LINK' is obsolete.
    
  • libtool-related ones:

    configure.ac:70: warning: The macro `AC_LIBTOOL_WIN32_DLL' is obsolete.
    configure.ac:70: warning: AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you
    configure.ac:70: put the 'win32-dll' option into LT_INIT's first parameter.
    configure.ac:71: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
    

    Using code copied from curl:
    https://github.com/curl/curl/blob/9ce7eee07042605045dcfd02a6f5b38ad5c8a05d/m4/xc-lt-iface.m4#L157-L163

  • delete commented and obsolete AC_HEADER_STDC.

  • formatting.

Most cherry picked from autoupdate updates.

Cherry-picked from #1017
Closes #1021

vszakats added 7 commits May 3, 2023 00:33
Ref: curl/curl@a59f046

"AC_HELP_STRING is deprecated in 2.70+ and I believe AS_HELP_STRING works
already since 2.59 so bump the minimum required version to that."

Fixes warnings:
```
configure.ac:[...]: warning: The macro `AC_HELP_STRING' is obsolete.
```
```
src/Makefile.inc:48: warning: variable 'EXTRA_DIST_SOURCES' is defined but no program or
src/Makefile.inc:48: library has 'DIST' as canonical name (possible typo)
src/Makefile.am:4:   'src/Makefile.inc' included from here
```

Regression from 2c18b6f
Adopted from an `autoupdate` run.
cherry picked from `autoupdate` changes.

Remaining warnings:
```
configure.ac:70: warning: The macro `AC_LIBTOOL_WIN32_DLL' is obsolete.
configure.ac:70: You should run autoupdate.

configure.ac:70: warning: AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you
configure.ac:70: put the 'win32-dll' option into LT_INIT's first parameter.

configure.ac:71: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:71: You should run autoupdate.

configure.ac:335: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:335: You should run autoupdate.

configure.ac:335: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:335: You should run autoupdate.

configure.ac:335: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:335: You should run autoupdate.

configure.ac:335: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:335: You should run autoupdate.
```
```
configure.ac:70: warning: The macro `AC_LIBTOOL_WIN32_DLL' is obsolete.
configure.ac:70: warning: AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you
configure.ac:70: put the 'win32-dll' option into LT_INIT's first parameter.
configure.ac:71: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
```

Using code copied from curl:
https://github.com/curl/curl/blob/9ce7eee07042605045dcfd02a6f5b38ad5c8a05d/m4/xc-lt-iface.m4#L157-L163
@vszakats vszakats added the build label May 3, 2023
@vszakats vszakats closed this in 7aab5bd May 3, 2023
@vszakats
vszakats deleted the 01-autotools-warnings branch May 3, 2023 02:02
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
- update `AC_HELP_STRING' to 'AS_HELP_STRING`:
  ```
  configure.ac:[...]: warning: The macro `AC_HELP_STRING' is obsolete.
  ```
  "AC_HELP_STRING is deprecated in 2.70+ and I believe AS_HELP_STRING works
  already since 2.59 so bump the minimum required version to that."

  Ref: curl/curl@a59f046

- simplify to avoid:
  ```
  src/Makefile.inc:48: warning: variable 'EXTRA_DIST_SOURCES' is defined but no program or
  src/Makefile.inc:48: library has 'DIST' as canonical name (possible typo)
  ```
  Regression from 2c18b6f

- `AC_TRY_LINK`/`AC_TRY_COMPILE`:
  ```
  configure.ac:335: warning: The macro `AC_TRY_COMPILE' is obsolete.
  configure.ac:335: warning: The macro `AC_TRY_LINK' is obsolete.
  ```

- `libtool`-related ones:
  ```
  configure.ac:70: warning: The macro `AC_LIBTOOL_WIN32_DLL' is obsolete.
  configure.ac:70: warning: AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you
  configure.ac:70: put the 'win32-dll' option into LT_INIT's first parameter.
  configure.ac:71: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
  ```
  Using code copied from curl:
  https://github.com/curl/curl/blob/9ce7eee07042605045dcfd02a6f5b38ad5c8a05d/m4/xc-lt-iface.m4#L157-L163

- delete commented and obsolete `AC_HEADER_STDC`.

- formatting.

Most cherry-picked from `autoupdate` updates.

Cherry-picked from libssh2#1017
Closes libssh2#1021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant