summaryrefslogtreecommitdiffstats
path: root/gl/m4/getprogname.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/getprogname.m4')
-rw-r--r--gl/m4/getprogname.m411
1 files changed, 9 insertions, 2 deletions
diff --git a/gl/m4/getprogname.m4 b/gl/m4/getprogname.m4
index b24f4480..d60f3efb 100644
--- a/gl/m4/getprogname.m4
+++ b/gl/m4/getprogname.m4
@@ -1,9 +1,10 @@
1# getprogname.m4 1# getprogname.m4
2# serial 8 2# serial 9
3dnl Copyright (C) 2016-2024 Free Software Foundation, Inc. 3dnl Copyright (C) 2016-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
7dnl This file is offered as-is, without any warranty.
7 8
8# Check for getprogname or replacements for it 9# Check for getprogname or replacements for it
9 10
@@ -11,6 +12,12 @@ AC_DEFUN([gl_FUNC_GETPROGNAME],
11[ 12[
12 AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 13 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
13 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
14 gl_CHECK_FUNCS_ANDROID([getprogname], [[#include <stdlib.h>]]) 21 gl_CHECK_FUNCS_ANDROID([getprogname], [[#include <stdlib.h>]])
15 if test $ac_cv_func_getprogname = no; then 22 if test $ac_cv_func_getprogname = no; then
16 HAVE_GETPROGNAME=0 23 HAVE_GETPROGNAME=0