-#serial 1
+#serial 2
dnl From Paul Eggert.
+AC_PREREQ(2.13)
+
# Define uintmax_t to `unsigned long' or `unsigned long long'
# if <inttypes.h> does not exist.
[unsigned long long i = (unsigned long long) -1;],
ac_cv_type_unsigned_long_long=yes,
ac_cv_type_unsigned_long_long=no)])
- if test $ac_cv_type_unsigned_long_long = yes; then
- AC_DEFINE(uintmax_t, unsigned long long)
- else
- AC_DEFINE(uintmax_t, unsigned long)
- fi
+ test $ac_cv_type_unsigned_long_long = yes \
+ && ac_type='unsigned long long' \
+ || ac_type='unsigned long'
+ AC_DEFINE(uintmax_t, $ac_type,
+ [ Define to \`unsigned long' or \`unsigned long long'
+ if <inttypes.h> doesn't define.])
fi
])