source: trunk/build_support/ac_c_long_long.m4 @ 564

Last change on this file since 564 was 564, checked in by Peter Johansson, 14 years ago

added test for long long, allow user to set CXXFLAGS, set properties in svndigest.m4, and minor change of generation of subversion_info.h

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 891 bytes
Line 
1# $Id: ac_c_long_long.m4 564 2008-03-07 15:55:00Z peter $
2##### http://autoconf-archive.cryp.to/ac_c_long_long.html
3#
4# SYNOPSIS
5#
6#   AC_C_LONG_LONG
7#
8# DESCRIPTION
9#
10#   Provides a test for the existence of the long long int type and
11#   defines HAVE_LONG_LONG if it is found.
12#
13# LAST MODIFICATION
14#
15#   2006-10-30
16#
17# COPYLEFT
18#
19#   Copyright (c) 2006 Caolan McNamara <caolan@skynet.ie>
20#
21#   Copying and distribution of this file, with or without
22#   modification, are permitted in any medium without royalty provided
23#   the copyright notice and this notice are preserved.
24
25AC_DEFUN([AC_C_LONG_LONG],
26[AC_CACHE_CHECK(for long long int, ac_cv_c_long_long,
27[if test "$GCC" = yes; then
28  ac_cv_c_long_long=yes
29  else
30        AC_TRY_COMPILE(,[long long int i;],
31   ac_cv_c_long_long=yes,
32   ac_cv_c_long_long=no)
33   fi])
34   if test $ac_cv_c_long_long = yes; then
35     AC_DEFINE(HAVE_LONG_LONG, 1, [compiler understands long long])
36   fi
37])
Note: See TracBrowser for help on using the repository browser.