- unsigned int vec[3];
- $1 test, *testptr;
-
- test = *($1 *)&vec[1];
- testptr = ($1 *)&vec[1];
- *testptr = test;
-
- exit(0);
-}
-],
-AC_CV_NAME=$ac_cv_sizeof_unsigned_int,
+ FILE *f=fopen("conftestval", "w");
+ if (!f) exit(1);
+ fprintf(f, "%d\n", offsetof(struct { char c; $1 ty;},ty));
+ exit(0);
+}],
+AC_CV_NAME=`cat conftestval`,