aboutsummaryrefslogtreecommitdiff
path: root/am/proctitle.m4
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2023-10-28 21:32:31 +0300
committerSergey Poznyakoff <gray@gnu.org>2023-10-28 21:32:31 +0300
commit014e64192bef7619ac4d4fc2200395661a60e02d (patch)
treeff58a23097416c75f5f402da59a07d1ca14c8c27 /am/proctitle.m4
parentc7ccd22853fa6115aade72dfefa02846c5acc515 (diff)
downloadpies-master.tar.gz
pies-master.tar.bz2
Update autotools requirements. Upgrade gnulib and grecs.HEADmaster
Diffstat (limited to 'am/proctitle.m4')
-rw-r--r--am/proctitle.m420
1 files changed, 11 insertions, 9 deletions
diff --git a/am/proctitle.m4 b/am/proctitle.m4
index 3035efd..73afd87 100644
--- a/am/proctitle.m4
+++ b/am/proctitle.m4
@@ -25,8 +25,8 @@ AC_DEFUN([MF_PROCTITLE],[
])
- AC_SUBST(MF_PROCTITLE_LIBS)
+ AC_SUBST([MF_PROCTITLE_LIBS])
- AC_TRY_LINK([extern char *__progname, *__progname_full;],
- [__progname = "foo"; __progname_full = "foo bar";],
- [AC_DEFINE(HAVE___PROGNAME, 1,
- [Define to 1 if libc has __progname])])
+ AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM([[extern char *__progname, *__progname_full;]],
+ [[__progname = "foo"; __progname_full = "foo bar";]])],
+ [AC_DEFINE(HAVE___PROGNAME, 1, [Define to 1 if libc has __progname])])
@@ -46,5 +46,6 @@ AC_DEFUN([MF_PROCTITLE],[
if test "$mf_proctitle_type" = no; then
- AC_TRY_COMPILE([#include <machine/vmparam.h>
- #include <sys/exec.h>],
- [
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM([[#include <machine/vmparam.h>
+ #include <sys/exec.h>]],
+ [[
#include <sys/types.h>
@@ -56,2 +57,3 @@ AC_DEFUN([MF_PROCTITLE],[
+int
main()
@@ -60,3 +62,3 @@ main()
}
-],
+]])],
[mf_proctitle_type=MF_PROCTITLE_PSSTRINGS])

Return to:

Send suggestions and report system problems to the System administrator.