commit 20c2019fa7a71a1430ca455d4c0350ba61ad472c from: Anna Vyalkova via: Omar Polo date: Sat Feb 25 08:53:16 2023 UTC portable: template: add AC_USE_SYSTEM_EXTENSIONS Fixes, for example, a few warnings on GNU systems where -D_GNU_SOURCE needs to be used for asprintf(3) visibility. Patch by Anna Vyalkova, thanks! commit - 22daed474b0a883316ddb34ec2e7f8ef96375540 commit + 20c2019fa7a71a1430ca455d4c0350ba61ad472c blob - 1b7251b404e02d316e345ecbe78d360ad3337423 blob + 7f25534ea982b7f593cd0ebbad332cba913405e9 --- template/configure.ac +++ template/configure.ac @@ -5,6 +5,8 @@ AM_INIT_AUTOMAKE([foreign subdir-objects]) AC_ARG_VAR(HOSTCC, [The C compiler on the host.]) AC_ARG_VAR(HOSTCFLAGS, [CFLAGS for the host compiler]) +AC_USE_SYSTEM_EXTENSIONS + # When CFLAGS isn't set at this stage and gcc is detected by the macro below, # autoconf will automatically use CFLAGS="-O2 -g". Prevent that by using an # empty default.