annotate m4/stdint_h.m4 @ 6479:913b40e88d1a

Update
author Sergey Poznyakoff <gray@gnu.org.ua>
date Fri, 09 Dec 2005 12:34:04 +0000
parents adff74659d81
children 90f5608d1c64
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5019
3c49e2a96a18 jm_ac_ -> gl_
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
1 # stdint_h.m4 serial 5
5016
7141ea4946af Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
Jim Meyering <jim@meyering.net>
parents: 4334
diff changeset
2 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
5585
adff74659d81 Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents: 5019
diff changeset
3 dnl This file is free software; the Free Software Foundation
adff74659d81 Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents: 5019
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
adff74659d81 Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents: 5019
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 dnl From Paul Eggert.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 # Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 # doesn't clash with <sys/types.h>, and declares uintmax_t.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11
5016
7141ea4946af Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
Jim Meyering <jim@meyering.net>
parents: 4334
diff changeset
12 AC_DEFUN([gl_AC_HEADER_STDINT_H],
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 [
5019
3c49e2a96a18 jm_ac_ -> gl_
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
14 AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h,
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 [AC_TRY_COMPILE(
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 [#include <sys/types.h>
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 #include <stdint.h>],
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 [uintmax_t i = (uintmax_t) -1;],
5019
3c49e2a96a18 jm_ac_ -> gl_
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
19 gl_cv_header_stdint_h=yes,
3c49e2a96a18 jm_ac_ -> gl_
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
20 gl_cv_header_stdint_h=no)])
3c49e2a96a18 jm_ac_ -> gl_
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
21 if test $gl_cv_header_stdint_h = yes; then
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 and declares uintmax_t. ])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 ])