summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-01-31 05:29:34 +0000
committerJim Meyering <jim@meyering.net>1999-01-31 05:29:34 +0000
commit1cccef65ea35adf675c18e0359d98932201b3668 (patch)
treedfebfdf1752bfe89e54c87b1b8a23393e91bf11a
parenta73b9c8f273a886c3189e792c34d53e8378a7610 (diff)
downloadgnulib-1cccef65ea35adf675c18e0359d98932201b3668.tar.gz
Use 3-arg form of AC_DEFINE.
-rw-r--r--m4/check-type.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/check-type.m4 b/m4/check-type.m4
index 3eb9dbb235..717fc87fda 100644
--- a/m4/check-type.m4
+++ b/m4/check-type.m4
@@ -1,7 +1,8 @@
-#serial 1
+#serial 2
dnl Just like AC_CHECK_TYPE from autoconf-2.12, but also checks in unistd.h
dnl on systems that have it. Fujitsu UXP/V needs this for ssize_t.
+dnl Now, also uses the three-argument form of AC_DEFINE.
undefine([AC_CHECK_TYPE])
dnl AC_CHECK_TYPE(TYPE, DEFAULT)
@@ -23,6 +24,7 @@ changequote([,]), [#include <sys/types.h>
#endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
AC_MSG_RESULT($ac_cv_type_$1)
if test $ac_cv_type_$1 = no; then
- AC_DEFINE($1, $2)
+ AC_DEFINE($1, $2,
+ [ Define to \`$2' if certain system header files doesn't define it.])
fi
])