@@ -2107,116 +2107,116 @@ $as_echo "$ac_res" >&6; }
2107
2107
2108
2108
} # ac_fn_c_check_func
2109
2109
2110
- # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2111
- # ----------------------------------------------------
2112
- # Tries to find if the field MEMBER exists in type AGGR, after including
2113
- # INCLUDES, setting cache variable VAR accordingly.
2114
- ac_fn_c_check_member ()
2110
+ # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2111
+ # -------------------------------------------
2112
+ # Tests whether TYPE exists after having included INCLUDES, setting cache
2113
+ # variable VAR accordingly.
2114
+ ac_fn_c_check_type ()
2115
2115
{
2116
2116
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3 " >&5
2118
- $as_echo_n "checking for $2.$3. .. " >&6; }
2119
- if eval \${$4 +:} false; then :
2117
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118
+ $as_echo_n "checking for $2... " >&6; }
2119
+ if eval \${$3 +:} false; then :
2120
2120
$as_echo_n "(cached) " >&6
2121
2121
else
2122
+ eval "$3=no"
2122
2123
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123
2124
/* end confdefs.h. */
2124
- $5
2125
+ $4
2125
2126
int
2126
2127
main ()
2127
2128
{
2128
- static $2 ac_aggr;
2129
- if (ac_aggr.$3)
2130
- return 0;
2129
+ if (sizeof ($2))
2130
+ return 0;
2131
2131
;
2132
2132
return 0;
2133
2133
}
2134
2134
_ACEOF
2135
2135
if ac_fn_c_try_compile "$LINENO"; then :
2136
- eval "$4=yes"
2137
- else
2138
2136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139
2137
/* end confdefs.h. */
2140
- $5
2138
+ $4
2141
2139
int
2142
2140
main ()
2143
2141
{
2144
- static $2 ac_aggr;
2145
- if (sizeof ac_aggr.$3)
2146
- return 0;
2142
+ if (sizeof (($2)))
2143
+ return 0;
2147
2144
;
2148
2145
return 0;
2149
2146
}
2150
2147
_ACEOF
2151
2148
if ac_fn_c_try_compile "$LINENO"; then :
2152
- eval "$4=yes"
2149
+
2153
2150
else
2154
- eval "$4=no "
2151
+ eval "$3=yes "
2155
2152
fi
2156
2153
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157
2154
fi
2158
2155
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159
2156
fi
2160
- eval ac_res=\$$4
2157
+ eval ac_res=\$$3
2161
2158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162
2159
$as_echo "$ac_res" >&6; }
2163
2160
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164
2161
2165
- } # ac_fn_c_check_member
2162
+ } # ac_fn_c_check_type
2166
2163
2167
- # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2168
- # -------------------------------------------
2169
- # Tests whether TYPE exists after having included INCLUDES, setting cache
2170
- # variable VAR accordingly.
2171
- ac_fn_c_check_type ()
2164
+ # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2165
+ # ----------------------------------------------------
2166
+ # Tries to find if the field MEMBER exists in type AGGR, after including
2167
+ # INCLUDES, setting cache variable VAR accordingly.
2168
+ ac_fn_c_check_member ()
2172
2169
{
2173
2170
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175
- $as_echo_n "checking for $2... " >&6; }
2176
- if eval \${$3 +:} false; then :
2171
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3 " >&5
2172
+ $as_echo_n "checking for $2.$3. .. " >&6; }
2173
+ if eval \${$4 +:} false; then :
2177
2174
$as_echo_n "(cached) " >&6
2178
2175
else
2179
- eval "$3=no"
2180
2176
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181
2177
/* end confdefs.h. */
2182
- $4
2178
+ $5
2183
2179
int
2184
2180
main ()
2185
2181
{
2186
- if (sizeof ($2))
2187
- return 0;
2182
+ static $2 ac_aggr;
2183
+ if (ac_aggr.$3)
2184
+ return 0;
2188
2185
;
2189
2186
return 0;
2190
2187
}
2191
2188
_ACEOF
2192
2189
if ac_fn_c_try_compile "$LINENO"; then :
2190
+ eval "$4=yes"
2191
+ else
2193
2192
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194
2193
/* end confdefs.h. */
2195
- $4
2194
+ $5
2196
2195
int
2197
2196
main ()
2198
2197
{
2199
- if (sizeof (($2)))
2200
- return 0;
2198
+ static $2 ac_aggr;
2199
+ if (sizeof ac_aggr.$3)
2200
+ return 0;
2201
2201
;
2202
2202
return 0;
2203
2203
}
2204
2204
_ACEOF
2205
2205
if ac_fn_c_try_compile "$LINENO"; then :
2206
-
2206
+ eval "$4=yes"
2207
2207
else
2208
- eval "$3=yes "
2208
+ eval "$4=no "
2209
2209
fi
2210
2210
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211
2211
fi
2212
2212
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213
2213
fi
2214
- eval ac_res=\$$3
2214
+ eval ac_res=\$$4
2215
2215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216
2216
$as_echo "$ac_res" >&6; }
2217
2217
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218
2218
2219
- } # ac_fn_c_check_type
2219
+ } # ac_fn_c_check_member
2220
2220
2221
2221
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2222
2222
# --------------------------------------------
@@ -12305,6 +12305,100 @@ fi
12305
12305
## Header files
12306
12306
##
12307
12307
12308
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12309
+ $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12310
+ if ${ac_cv_header_stdbool_h+:} false; then :
12311
+ $as_echo_n "(cached) " >&6
12312
+ else
12313
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314
+ /* end confdefs.h. */
12315
+
12316
+ #include <stdbool.h>
12317
+ #ifndef bool
12318
+ "error: bool is not defined"
12319
+ #endif
12320
+ #ifndef false
12321
+ "error: false is not defined"
12322
+ #endif
12323
+ #if false
12324
+ "error: false is not 0"
12325
+ #endif
12326
+ #ifndef true
12327
+ "error: true is not defined"
12328
+ #endif
12329
+ #if true != 1
12330
+ "error: true is not 1"
12331
+ #endif
12332
+ #ifndef __bool_true_false_are_defined
12333
+ "error: __bool_true_false_are_defined is not defined"
12334
+ #endif
12335
+
12336
+ struct s { _Bool s: 1; _Bool t; } s;
12337
+
12338
+ char a[true == 1 ? 1 : -1];
12339
+ char b[false == 0 ? 1 : -1];
12340
+ char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12341
+ char d[(bool) 0.5 == true ? 1 : -1];
12342
+ /* See body of main program for 'e'. */
12343
+ char f[(_Bool) 0.0 == false ? 1 : -1];
12344
+ char g[true];
12345
+ char h[sizeof (_Bool)];
12346
+ char i[sizeof s.t];
12347
+ enum { j = false, k = true, l = false * true, m = true * 256 };
12348
+ /* The following fails for
12349
+ HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12350
+ _Bool n[m];
12351
+ char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12352
+ char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12353
+ /* Catch a bug in an HP-UX C compiler. See
12354
+ http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12355
+ http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12356
+ */
12357
+ _Bool q = true;
12358
+ _Bool *pq = &q;
12359
+
12360
+ int
12361
+ main ()
12362
+ {
12363
+
12364
+ bool e = &s;
12365
+ *pq |= q;
12366
+ *pq |= ! q;
12367
+ /* Refer to every declared value, to avoid compiler optimizations. */
12368
+ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12369
+ + !m + !n + !o + !p + !q + !pq);
12370
+
12371
+ ;
12372
+ return 0;
12373
+ }
12374
+ _ACEOF
12375
+ if ac_fn_c_try_compile "$LINENO"; then :
12376
+ ac_cv_header_stdbool_h=yes
12377
+ else
12378
+ ac_cv_header_stdbool_h=no
12379
+ fi
12380
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12381
+ fi
12382
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12383
+ $as_echo "$ac_cv_header_stdbool_h" >&6; }
12384
+ ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12385
+ if test "x$ac_cv_type__Bool" = xyes; then :
12386
+
12387
+ cat >>confdefs.h <<_ACEOF
12388
+ #define HAVE__BOOL 1
12389
+ _ACEOF
12390
+
12391
+
12392
+ fi
12393
+
12394
+
12395
+ if test $ac_cv_header_stdbool_h = yes; then
12396
+
12397
+ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12398
+
12399
+ fi
12400
+
12401
+
12308
12402
for ac_header in atomic.h crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/ipc.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
12309
12403
do :
12310
12404
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -14483,6 +14577,43 @@ if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
14483
14577
as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
14484
14578
fi
14485
14579
14580
+ # The cast to long int works around a bug in the HP C Compiler
14581
+ # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14582
+ # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14583
+ # This bug is HP SR number 8606223364.
14584
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
14585
+ $as_echo_n "checking size of bool... " >&6; }
14586
+ if ${ac_cv_sizeof_bool+:} false; then :
14587
+ $as_echo_n "(cached) " >&6
14588
+ else
14589
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
14590
+ #include <stdbool.h>
14591
+ #endif
14592
+ "; then :
14593
+
14594
+ else
14595
+ if test "$ac_cv_type_bool" = yes; then
14596
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14597
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14598
+ as_fn_error 77 "cannot compute sizeof (bool)
14599
+ See \`config.log' for more details" "$LINENO" 5; }
14600
+ else
14601
+ ac_cv_sizeof_bool=0
14602
+ fi
14603
+ fi
14604
+
14605
+ fi
14606
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
14607
+ $as_echo "$ac_cv_sizeof_bool" >&6; }
14608
+
14609
+
14610
+
14611
+ cat >>confdefs.h <<_ACEOF
14612
+ #define SIZEOF_BOOL $ac_cv_sizeof_bool
14613
+ _ACEOF
14614
+
14615
+
14616
+
14486
14617
14487
14618
##
14488
14619
## Functions, global variables
0 commit comments