diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-11-19 17:10:36 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-11-19 17:10:36 +0000 |
commit | 1f64ebf232ac6c6938794179dceb9045f7662788 (patch) | |
tree | 22f283d8c94a97910f81faa8fac4fb9121a1eb11 /cpukit/aclocal/sysv-ipc.m4 | |
parent | 2002-11-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-1f64ebf232ac6c6938794179dceb9045f7662788.tar.bz2 |
2002-11-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/sysv-ipc.m4: Adaptation to autoconf-2.5x.
* aclocal/check-newlib.m4: Sync with ../aclocal/check-newlib.m4.
Diffstat (limited to 'cpukit/aclocal/sysv-ipc.m4')
-rw-r--r-- | cpukit/aclocal/sysv-ipc.m4 | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/cpukit/aclocal/sysv-ipc.m4 b/cpukit/aclocal/sysv-ipc.m4 index 5b3fff738a..b73f515073 100644 --- a/cpukit/aclocal/sysv-ipc.m4 +++ b/cpukit/aclocal/sysv-ipc.m4 @@ -20,13 +20,10 @@ AC_DEFUN(RTEMS_UNION_SEMUN, [ AC_CACHE_CHECK([whether $host defines union semun], rtems_cv_HAS_UNION_SEMUN, - [AC_TRY_COMPILE([ + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> #include <sys/ipc.h> -#include <sys/sem.h>], -[union semun arg ;], -[rtems_cv_HAS_UNION_SEMUN="yes"], -[rtems_cv_HAS_UNION_SEMUN="no"]) +#include <sys/sem.h>]], [[union semun arg ;]])],[rtems_cv_HAS_UNION_SEMUN="yes"],[rtems_cv_HAS_UNION_SEMUN="no"]) ]) if test "$rtems_cv_HAS_UNION_SEMUN" = "yes"; then AC_DEFINE(HAS_UNION_SEMUN,[1],[if having union semum]) @@ -39,8 +36,7 @@ AC_DEFUN(RTEMS_SYSV_SEM, AC_CACHE_CHECK(whether $host supports System V semaphores, rtems_cv_sysv_sem, [ -AC_TRY_RUN( -[ +AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <sys/types.h> #include <sys/ipc.h> #include <sys/sem.h> @@ -62,8 +58,7 @@ int main () { exit(1); exit(0); } -], -rtems_cv_sysv_sem="yes", rtems_cv_sysv_sem="no", :) +]])],[rtems_cv_sysv_sem="yes"],[rtems_cv_sysv_sem="no"],[:]) ]) ]) @@ -73,7 +68,7 @@ AC_DEFUN(RTEMS_SYSV_SHM, AC_CACHE_CHECK(whether $host supports System V shared memory, rtems_cv_sysv_shm, [ -AC_TRY_RUN([ +AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <sys/types.h> #include <sys/ipc.h> #include <sys/shm.h> @@ -85,8 +80,7 @@ int main () { exit(1); exit(0); } -], -rtems_cv_sysv_shm="yes", rtems_cv_sysv_shm="no", :) +]])],[rtems_cv_sysv_shm="yes"],[rtems_cv_sysv_shm="no"],[:]) ]) ]) @@ -96,7 +90,7 @@ AC_DEFUN(RTEMS_SYSV_MSG, AC_CACHE_CHECK(whether $host supports System V messages, rtems_cv_sysv_msg, [ -AC_TRY_RUN([ +AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> @@ -108,8 +102,7 @@ int main () { exit(1); exit(0); } -], -rtems_cv_sysv_msg="yes", rtems_cv_sysv_msg="no", :) +]])],[rtems_cv_sysv_msg="yes"],[rtems_cv_sysv_msg="no"],[:]) ]) ]) |