[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN configure configure.ac
From: |
Edward Rosten |
Subject: |
[Toon-members] TooN configure configure.ac |
Date: |
Sat, 27 Jun 2009 12:27:15 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Edward Rosten <edrosten> 09/06/27 12:27:15
Modified files:
. : configure configure.ac
Log message:
Prefer __typeof__ to typeof. This allows user code to be compiled with
-ansi.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/configure?cvsroot=toon&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/TooN/configure.ac?cvsroot=toon&r1=1.6&r2=1.7
Patches:
Index: configure
===================================================================
RCS file: /cvsroot/toon/TooN/configure,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- configure 24 Jun 2009 15:15:43 -0000 1.6
+++ configure 27 Jun 2009 12:27:14 -0000 1.7
@@ -2522,14 +2522,14 @@
if test "$typeof" == check
then
- { $as_echo "$as_me:$LINENO: checking for typeof" >&5
-$as_echo_n "checking for typeof... " >&6; }
+ { $as_echo "$as_me:$LINENO: checking for __typeof__" >&5
+$as_echo_n "checking for __typeof__... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
int main()
{
- typedef typeof(int()*double()) foo;
+ typedef __typeof__(int()*double()) foo;
}
_ACEOF
@@ -2552,7 +2552,7 @@
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
{ $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; };typeof=typeof
+$as_echo "yes" >&6; };typeof=__typeof__
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
@@ -2567,14 +2567,14 @@
if test "$typeof" == check
then
- { $as_echo "$as_me:$LINENO: checking for __typeof__" >&5
-$as_echo_n "checking for __typeof__... " >&6; }
+ { $as_echo "$as_me:$LINENO: checking for typeof" >&5
+$as_echo_n "checking for typeof... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
int main()
{
- typedef __typeof__(int()*double()) foo;
+ typedef typeof(int()*double()) foo;
}
_ACEOF
@@ -2597,7 +2597,7 @@
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
{ $as_echo "$as_me:$LINENO: result: yes" >&5
-$as_echo "yes" >&6; };typeof=__typeof__
+$as_echo "yes" >&6; };typeof=typeof
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
Index: configure.ac
===================================================================
RCS file: /cvsroot/toon/TooN/configure.ac,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- configure.ac 24 Jun 2009 15:15:43 -0000 1.6
+++ configure.ac 27 Jun 2009 12:27:15 -0000 1.7
@@ -34,8 +34,8 @@
])
TYPEOF_TEST(decltype, decltype)
-TYPEOF_TEST(typeof, typeof)
TYPEOF_TEST(__typeof__, __typeof__)
+TYPEOF_TEST(typeof, typeof)
TYPEOF_TEST(boost, BOOST_TYPEOF, [#include<boost/typeof/typeof.hpp>])
if test "$typeof" == typeof
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Toon-members] TooN configure configure.ac,
Edward Rosten <=