]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 26 Sep 2006 18:07:16 +0000 (18:07 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 26 Sep 2006 18:07:16 +0000 (18:07 +0000)
member.

ChangeLog
tests/semantics.at

index e2aa6630ebeafc46d445c6d0a2b7a9ecb3d61384..a94948b45733ce8cf826ba0232713a551b131e3f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
+       member.
+
 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
 
        * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
index 312e6cdad97a8291173d36d465e969d477638ed9..bb94bd2773c69c0d0b4e787bd7c2e7f8e5ba0339 100644 (file)
@@ -234,10 +234,12 @@ AT_CLEANUP([header1.h header2.h header3.h])
 # Check that it performs the correct actions.
 # Must define HAVE_STRUCT_YES_S_YES, but not HAVE_STRUCT_YES_S_NO.
 AT_CHECK_MACRO([AC_CHECK_MEMBERS],
-[[AC_CHECK_MEMBERS([struct yes_s.yes, struct yes_s.no],,,
-                  [struct yes_s { int yes ;} ;])]],
+[[AC_CHECK_MEMBERS([struct yes_s.yes, struct yes_s.no, struct yes_s.substruct],,,
+                  [struct sub { int x; };
+                   struct yes_s { int yes; struct sub substruct; };])]],
 [AT_CHECK_DEFINES(
 [/* #undef HAVE_STRUCT_YES_S_NO */
+#define HAVE_STRUCT_YES_S_SUBSTRUCT 1
 #define HAVE_STRUCT_YES_S_YES 1
 ])])