|
1 | 1 | #! /bin/sh |
2 | | -# From configure.in Revision: 1.364 . |
| 2 | +# From configure.in Revision: 1.365 . |
3 | 3 | # Guess values for system-dependent variables and create Makefiles. |
4 | 4 | # Generated by GNU Autoconf 2.53 for python 2.3. |
5 | 5 | # |
@@ -1254,10 +1254,8 @@ _ACEOF |
1254 | 1254 | # of _XOPEN_SOURCE. So define it only conditionally. |
1255 | 1255 |
|
1256 | 1256 |
|
1257 | | -cat >>confdefs.h <<\_ACEOF |
1258 | | -#define _XOPEN_SOURCE 500 |
1259 | | -_ACEOF |
1260 | 1257 |
|
| 1258 | +define_xopen_source=yes |
1261 | 1259 |
|
1262 | 1260 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires definition |
1263 | 1261 | # of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else several APIs |
@@ -1347,6 +1345,30 @@ then |
1347 | 1345 | esac |
1348 | 1346 | fi |
1349 | 1347 |
|
| 1348 | +# Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1349 | +# disable features if it is defined, without any means to access these |
| 1350 | +# features as extensions. For these systems, we skip the definition of |
| 1351 | +# _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1352 | +# some feature, make sure there is no alternative way to access this |
| 1353 | +# feature. Also, when using wildcards, make sure you have verified the |
| 1354 | +# need for not defining _XOPEN_SOURCE on all systems matching the |
| 1355 | +# wildcard, and that the wildcard does not include future systems |
| 1356 | +# (which may remove their limitations). |
| 1357 | +case $ac_sys_system/$ac_sys_release in |
| 1358 | + # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1359 | + # even though select is a POSIX function. Reported by J. Ribbens. |
| 1360 | + OpenBSD/2.* | OpenBSD/3.[012]) |
| 1361 | + define_xopen_source=no;; |
| 1362 | +esac |
| 1363 | +
|
| 1364 | +if test $define_xopen_source = yes |
| 1365 | +then |
| 1366 | + cat >>confdefs.h <<\_ACEOF |
| 1367 | +#define _XOPEN_SOURCE 500 |
| 1368 | +_ACEOF |
| 1369 | +
|
| 1370 | +fi |
| 1371 | +
|
1350 | 1372 | # |
1351 | 1373 | # SGI compilers allow the specification of the both the ABI and the |
1352 | 1374 | # ISA on the command line. Depending on the values of these switches, |
|
0 commit comments