]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_SIZEOF_TYPE): Remove second arg, and generate a symbol name automatically.
authorDavid MacKenzie <djm@djmnet.org>
Tue, 19 Apr 1994 03:01:11 +0000 (03:01 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Tue, 19 Apr 1994 03:01:11 +0000 (03:01 +0000)
acgeneral.m4
lib/autoconf/general.m4

index b6a463df147b7d8e8c22f1d175382e5619d15e16..aac995632ef832639cf96ac6d3336ae78becda41 100644 (file)
@@ -899,7 +899,7 @@ fi
 dnl
 define(AC_SIZEOF_TYPE,
 [AC_CHECKING(size of $1)
-$2=0
+ac_size=0
 AC_TEST_PROGRAM([#include <stdio.h>
 main()
 {
@@ -907,7 +907,8 @@ main()
   if (!f) exit(1);
   fprintf(f, "%d\n", sizeof($1));
   exit(0);
-}], $2=`cat conftestval`)])dnl
+}], ac_size=`cat conftestval`)
+AC_DEFINE_UNQUOTED(changequote(<<,>>) translit(sizeof_$1, [a-z *], [A-Z_P])<<>>changequote([,]), $ac_size))])dnl
 dnl
 dnl
 dnl The big finish
index b6a463df147b7d8e8c22f1d175382e5619d15e16..aac995632ef832639cf96ac6d3336ae78becda41 100644 (file)
@@ -899,7 +899,7 @@ fi
 dnl
 define(AC_SIZEOF_TYPE,
 [AC_CHECKING(size of $1)
-$2=0
+ac_size=0
 AC_TEST_PROGRAM([#include <stdio.h>
 main()
 {
@@ -907,7 +907,8 @@ main()
   if (!f) exit(1);
   fprintf(f, "%d\n", sizeof($1));
   exit(0);
-}], $2=`cat conftestval`)])dnl
+}], ac_size=`cat conftestval`)
+AC_DEFINE_UNQUOTED(changequote(<<,>>) translit(sizeof_$1, [a-z *], [A-Z_P])<<>>changequote([,]), $ac_size))])dnl
 dnl
 dnl
 dnl The big finish