diff options
Diffstat (limited to 'gl/m4/getprogname.m4')
| -rw-r--r-- | gl/m4/getprogname.m4 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gl/m4/getprogname.m4 b/gl/m4/getprogname.m4 index 90f34c74..d60f3efb 100644 --- a/gl/m4/getprogname.m4 +++ b/gl/m4/getprogname.m4 | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # getprogname.m4 | 1 | # getprogname.m4 |
| 2 | # serial 8 | 2 | # serial 9 |
| 3 | dnl Copyright (C) 2016-2025 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2016-2026 Free Software Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| @@ -12,6 +12,12 @@ AC_DEFUN([gl_FUNC_GETPROGNAME], | |||
| 12 | [ | 12 | [ |
| 13 | AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) | 13 | AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) |
| 14 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) | 14 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) |
| 15 | AC_CHECK_HEADERS_ONCE([sys/process.h]) | ||
| 16 | if test $ac_cv_header_sys_process_h = yes; then | ||
| 17 | HAVE_SYS_PROCESS_H=1 | ||
| 18 | else | ||
| 19 | HAVE_SYS_PROCESS_H=0 | ||
| 20 | fi | ||
| 15 | gl_CHECK_FUNCS_ANDROID([getprogname], [[#include <stdlib.h>]]) | 21 | gl_CHECK_FUNCS_ANDROID([getprogname], [[#include <stdlib.h>]]) |
| 16 | if test $ac_cv_func_getprogname = no; then | 22 | if test $ac_cv_func_getprogname = no; then |
| 17 | HAVE_GETPROGNAME=0 | 23 | HAVE_GETPROGNAME=0 |
