Commit | Line | Data |
---|---|---|
e746645a JH |
1 | ?RCS: $Id$ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1999, Jarkko Hietaniemi | |
65a32477 MBT |
4 | ?RCS: |
5 | ?RCS: You may redistribute only under the terms of the Artistic License, | |
e746645a JH |
6 | ?RCS: as specified in the README file that comes with the distribution. |
7 | ?RCS: You may reuse parts of this distribution only within the terms of | |
65a32477 | 8 | ?RCS: that same Artistic License; a copy of which may be found at the root |
e746645a JH |
9 | ?RCS: of the source tree for dist 3.0. |
10 | ?RCS: | |
2cb64bf6 | 11 | ?MAKE:d_int64_t: Inhdr cat rm_try Setvar Compile i_inttypes |
e746645a | 12 | ?MAKE: -pick add $@ %< |
9544e06a | 13 | ?S:d_int64_t: |
e746645a JH |
14 | ?S: This symbol will be defined if the C compiler supports int64_t. |
15 | ?S:. | |
16 | ?C:HAS_INT64_T: | |
17 | ?C: This symbol will defined if the C compiler supports int64_t. | |
18 | ?C: Usually the <inttypes.h> needs to be included, but sometimes | |
19 | ?C: <sys/types.h> is enough. | |
20 | ?C:. | |
9544e06a | 21 | ?H:#$d_int64_t HAS_INT64_T /**/ |
e746645a | 22 | ?H:. |
9544e06a | 23 | ?LINT:set d_int64_t |
e746645a JH |
24 | : check for int64_t |
25 | echo " " | |
840deeaa | 26 | echo "Checking to see if you have int64_t..." >&4 |
e746645a JH |
27 | $cat >try.c <<EOCP |
28 | #include <sys/types.h> | |
29 | #$i_inttypes I_INTTYPES | |
30 | #ifdef I_INTTYPES | |
31 | #include <inttypes.h> | |
32 | #endif | |
33 | int main() { int64_t x = 7; } | |
34 | EOCP | |
35 | set try | |
36 | if eval $compile; then | |
37 | val="$define" | |
1da6d93e | 38 | echo "You have int64_t." |
e746645a JH |
39 | else |
40 | val="$undef" | |
1da6d93e | 41 | echo "You do not have int64_t." |
e746645a | 42 | fi |
2cb64bf6 | 43 | $rm_try |
9544e06a | 44 | set d_int64_t |
e746645a JH |
45 | eval $setvar |
46 |