Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 903876 | Differences between
and this patch

Collapse All | Expand All

(-)a/autoconf/acgeneral.m4 (-2 / +5 lines)
Lines 1673-1679 AC_MSG_CHECKING([for -l[]AC_LIB_NAME]) Link Here
1673
AC_CACHE_VAL(AC_CV_NAME,
1673
AC_CACHE_VAL(AC_CV_NAME,
1674
[ac_save_LIBS="$LIBS"
1674
[ac_save_LIBS="$LIBS"
1675
LIBS="-l[]AC_LIB_NAME[] $4 $LIBS"
1675
LIBS="-l[]AC_LIB_NAME[] $4 $LIBS"
1676
AC_TRY_LINK( , [main()], AC_CV_NAME=yes, AC_CV_NAME=no)
1676
AC_TRY_LINK( , [int main()], AC_CV_NAME=yes, AC_CV_NAME=no)
1677
LIBS="$ac_save_LIBS"
1677
LIBS="$ac_save_LIBS"
1678
])dnl
1678
])dnl
1679
AC_MSG_RESULT($AC_CV_NAME)
1679
AC_MSG_RESULT($AC_CV_NAME)
Lines 2105-2114 AC_CACHE_VAL(AC_CV_NAME, Link Here
2105
#if	HAVE_STDDEF_H || STDC_HEADERS
2105
#if	HAVE_STDDEF_H || STDC_HEADERS
2106
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
2106
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
2107
#endif
2107
#endif
2108
#ifdef HAVE_STDLIB_H
2109
#include <stdlib.h>
2110
#endif
2108
#ifdef	HAVE_SYS_TYPES_H
2111
#ifdef	HAVE_SYS_TYPES_H
2109
#include <sys/types.h>
2112
#include <sys/types.h>
2110
#endif
2113
#endif
2111
main()
2114
int main()
2112
{
2115
{
2113
  FILE *f=fopen("conftestval", "w");
2116
  FILE *f=fopen("conftestval", "w");
2114
  if (!f) exit(1);
2117
  if (!f) exit(1);
(-)a/autoconf/aclocal.m4 (-9 / +102 lines)
Lines 1179-1184 dnl Defines HAVE_VAR_TIMEZONE on success. Link Here
1179
AC_DEFUN([AC_VAR_TIMEZONE],
1179
AC_DEFUN([AC_VAR_TIMEZONE],
1180
[AC_CACHE_CHECK([for working extern long timezone ], ac_cv_var_timezone,
1180
[AC_CACHE_CHECK([for working extern long timezone ], ac_cv_var_timezone,
1181
                [AC_TRY_RUN([
1181
                [AC_TRY_RUN([
1182
#ifdef HAVE_STDLIB_H
1183
#include <stdlib.h>
1184
#endif
1182
extern	long	timezone;
1185
extern	long	timezone;
1183
1186
1184
int
1187
int
Lines 1197-1202 dnl Defines HAVE_VAR___PROGNAME on success. Link Here
1197
AC_DEFUN([AC_VAR___PROGNAME],
1200
AC_DEFUN([AC_VAR___PROGNAME],
1198
[AC_CACHE_CHECK([for working extern char *__progname ], ac_cv_var___progname,
1201
[AC_CACHE_CHECK([for working extern char *__progname ], ac_cv_var___progname,
1199
                [AC_TRY_RUN([
1202
                [AC_TRY_RUN([
1203
#ifdef HAVE_STDLIB_H
1204
#include <stdlib.h>
1205
#endif
1200
extern	char	*__progname;
1206
extern	char	*__progname;
1201
1207
1202
int
1208
int
Lines 1215-1220 dnl Defines HAVE_VAR___PROGNAME_FULL on success. Link Here
1215
AC_DEFUN([AC_VAR___PROGNAME_FULL],
1221
AC_DEFUN([AC_VAR___PROGNAME_FULL],
1216
[AC_CACHE_CHECK([for working extern char *__progname_full ], ac_cv_var___progname_full,
1222
[AC_CACHE_CHECK([for working extern char *__progname_full ], ac_cv_var___progname_full,
1217
                [AC_TRY_RUN([
1223
                [AC_TRY_RUN([
1224
#ifdef HAVE_STDLIB_H
1225
#include <stdlib.h>
1226
#endif
1218
extern	char	*__progname_full;
1227
extern	char	*__progname_full;
1219
1228
1220
int
1229
int
Lines 1364-1369 AC_MSG_CHECKING(size of time_t) Link Here
1364
AC_CACHE_VAL(AC_CV_NAME,
1373
AC_CACHE_VAL(AC_CV_NAME,
1365
[AC_TRY_RUN([#include <stdio.h>
1374
[AC_TRY_RUN([#include <stdio.h>
1366
#include <sys/types.h>
1375
#include <sys/types.h>
1376
#ifdef HAVE_STDLIB_H
1377
#include <stdlib.h>
1378
#endif
1367
#ifdef	TIME_WITH_SYS_TIME_H
1379
#ifdef	TIME_WITH_SYS_TIME_H
1368
#	include <sys/time.h>
1380
#	include <sys/time.h>
1369
#	include <time.h>
1381
#	include <time.h>
Lines 1374-1380 AC_CACHE_VAL(AC_CV_NAME, Link Here
1374
#	include <time.h>
1386
#	include <time.h>
1375
#endif
1387
#endif
1376
#endif
1388
#endif
1377
main()
1389
int main()
1378
{
1390
{
1379
  FILE *f=fopen("conftestval", "w");
1391
  FILE *f=fopen("conftestval", "w");
1380
  if (!f) exit(1);
1392
  if (!f) exit(1);
Lines 1398-1404 changequote([, ])dnl Link Here
1398
AC_MSG_CHECKING(size of wchar)
1410
AC_MSG_CHECKING(size of wchar)
1399
AC_CACHE_VAL(AC_CV_NAME,
1411
AC_CACHE_VAL(AC_CV_NAME,
1400
[AC_TRY_RUN([#include <stdio.h>
1412
[AC_TRY_RUN([#include <stdio.h>
1401
main()
1413
#ifdef HAVE_STDLIB_H
1414
#include <stdlib.h>
1415
#endif
1416
int main()
1402
{
1417
{
1403
  FILE *f=fopen("conftestval", "w");
1418
  FILE *f=fopen("conftestval", "w");
1404
  if (!f) exit(1);
1419
  if (!f) exit(1);
Lines 1431-1437 AC_CACHE_VAL(AC_CV_NAME, Link Here
1431
#ifdef	HAVE_WCHAR_H
1446
#ifdef	HAVE_WCHAR_H
1432
#include <wchar.h>
1447
#include <wchar.h>
1433
#endif
1448
#endif
1434
main()
1449
int main()
1435
{
1450
{
1436
  FILE *f=fopen("conftestval", "w");
1451
  FILE *f=fopen("conftestval", "w");
1437
  if (!f) exit(1);
1452
  if (!f) exit(1);
Lines 1609-1614 dnl Defines BITFIELDS_HTOL on success. Link Here
1609
AC_DEFUN([AC_C_BITFIELDS],
1624
AC_DEFUN([AC_C_BITFIELDS],
1610
[AC_CACHE_CHECK([whether bitorder in bitfields is htol], ac_cv_c_bitfields_htol,
1625
[AC_CACHE_CHECK([whether bitorder in bitfields is htol], ac_cv_c_bitfields_htol,
1611
                [AC_TRY_RUN([
1626
                [AC_TRY_RUN([
1627
#ifdef HAVE_STDLIB_H
1628
#include <stdlib.h>
1629
#endif
1612
struct {
1630
struct {
1613
	unsigned char	x1:4;
1631
	unsigned char	x1:4;
1614
	unsigned char	x2:4;
1632
	unsigned char	x2:4;
Lines 1675-1680 dnl Defines CHAR_IS_UNSIGNED on success. Link Here
1675
AC_DEFUN([AC_TYPE_CHAR],
1693
AC_DEFUN([AC_TYPE_CHAR],
1676
[AC_CACHE_CHECK([if char is unsigned], ac_cv_type_char_unsigned,
1694
[AC_CACHE_CHECK([if char is unsigned], ac_cv_type_char_unsigned,
1677
                [AC_TRY_RUN([
1695
                [AC_TRY_RUN([
1696
#ifdef HAVE_STDLIB_H
1697
#include <stdlib.h>
1698
#endif
1678
int
1699
int
1679
main()
1700
main()
1680
{
1701
{
Lines 1783-1788 AC_DEFUN([AC_FUNC_DTOA_R], Link Here
1783
[AC_REQUIRE([AC_FUNC_DTOA])dnl
1804
[AC_REQUIRE([AC_FUNC_DTOA])dnl
1784
AC_CACHE_CHECK([for __dtoa that needs result ptr], ac_cv_func_dtoa_r,
1805
AC_CACHE_CHECK([for __dtoa that needs result ptr], ac_cv_func_dtoa_r,
1785
                [AC_TRY_RUN([
1806
                [AC_TRY_RUN([
1807
#ifdef HAVE_STDLIB_H
1808
#include <stdlib.h>
1809
#endif
1786
extern	char *__dtoa();
1810
extern	char *__dtoa();
1787
int
1811
int
1788
main()
1812
main()
Lines 1811-1816 dnl Defines HAVE_ECVT on success. Link Here
1811
AC_DEFUN([AC_FUNC_ECVT],
1835
AC_DEFUN([AC_FUNC_ECVT],
1812
[AC_CACHE_CHECK([for working ecvt() ], ac_cv_func_ecvt,
1836
[AC_CACHE_CHECK([for working ecvt() ], ac_cv_func_ecvt,
1813
                [AC_TRY_RUN([
1837
                [AC_TRY_RUN([
1838
#ifdef HAVE_STDLIB_H
1839
#include <stdlib.h>
1840
#endif
1814
extern	char *ecvt();
1841
extern	char *ecvt();
1815
1842
1816
sprintf(s)
1843
sprintf(s)
Lines 1838-1843 dnl Defines HAVE_FCVT on success. Link Here
1838
AC_DEFUN([AC_FUNC_FCVT],
1865
AC_DEFUN([AC_FUNC_FCVT],
1839
[AC_CACHE_CHECK([for working fcvt() ], ac_cv_func_fcvt,
1866
[AC_CACHE_CHECK([for working fcvt() ], ac_cv_func_fcvt,
1840
                [AC_TRY_RUN([
1867
                [AC_TRY_RUN([
1868
#ifdef HAVE_STDLIB_H
1869
#include <stdlib.h>
1870
#endif
1841
extern	char *fcvt();
1871
extern	char *fcvt();
1842
1872
1843
sprintf(s)
1873
sprintf(s)
Lines 1865-1870 dnl Defines HAVE_GCVT on success. Link Here
1865
AC_DEFUN([AC_FUNC_GCVT],
1895
AC_DEFUN([AC_FUNC_GCVT],
1866
[AC_CACHE_CHECK([for working gcvt() ], ac_cv_func_gcvt,
1896
[AC_CACHE_CHECK([for working gcvt() ], ac_cv_func_gcvt,
1867
                [AC_TRY_RUN([
1897
                [AC_TRY_RUN([
1898
#ifdef HAVE_STDLIB_H
1899
#include <stdlib.h>
1900
#endif
1868
extern	char *gcvt();
1901
extern	char *gcvt();
1869
1902
1870
sprintf(s)
1903
sprintf(s)
Lines 1909-1919 AC_CACHE_CHECK([for mlock], ac_cv_func_mlock, Link Here
1909
                [AC_TRY_RUN([
1942
                [AC_TRY_RUN([
1910
#include <sys/types.h>
1943
#include <sys/types.h>
1911
#include <errno.h>
1944
#include <errno.h>
1945
#ifdef HAVE_STDLIB_H
1946
#include <stdlib.h>
1947
#endif
1912
#ifndef	HAVE_ERRNO_DEF
1948
#ifndef	HAVE_ERRNO_DEF
1913
extern	int	errno;
1949
extern	int	errno;
1914
#endif
1950
#endif
1915
1951
1916
main()
1952
int main()
1917
{
1953
{
1918
	if (mlock(0, 0) < 0) {
1954
	if (mlock(0, 0) < 0) {
1919
		if (errno == EINVAL || errno ==  ENOMEM ||
1955
		if (errno == EINVAL || errno ==  ENOMEM ||
Lines 1940-1945 AC_CACHE_CHECK([for mlockall], ac_cv_func_mlockall, Link Here
1940
#include <sys/types.h>
1976
#include <sys/types.h>
1941
#include <sys/mman.h>
1977
#include <sys/mman.h>
1942
#include <errno.h>
1978
#include <errno.h>
1979
#ifdef HAVE_STDLIB_H
1980
#include <stdlib.h>
1981
#endif
1943
#ifndef	HAVE_ERRNO_DEF
1982
#ifndef	HAVE_ERRNO_DEF
1944
extern	int	errno;
1983
extern	int	errno;
1945
#endif
1984
#endif
Lines 1994-1999 AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped, Link Here
1994
#include <fcntl.h>
2033
#include <fcntl.h>
1995
#include <sys/mman.h>
2034
#include <sys/mman.h>
1996
2035
2036
#ifdef HAVE_STDLIB_H
2037
#include <stdlib.h>
2038
#endif
1997
/*
2039
/*
1998
 * Needed for Apollo Domain/OS and may be for others?
2040
 * Needed for Apollo Domain/OS and may be for others?
1999
 */
2041
 */
Lines 2130-2135 AC_CACHE_CHECK(for mmap that needs ptr to size, ac_cv_func_mmap_sizep, Link Here
2130
#include <signal.h>
2172
#include <signal.h>
2131
#include <setjmp.h>
2173
#include <setjmp.h>
2132
#include <sys/mman.h>
2174
#include <sys/mman.h>
2175
#ifdef HAVE_STDLIB_H
2176
#include <stdlib.h>
2177
#endif
2133
2178
2134
#ifndef MAP_FILE
2179
#ifndef MAP_FILE
2135
#define MAP_FILE   0		/* Needed on Apollo Domain/OS */
2180
#define MAP_FILE   0		/* Needed on Apollo Domain/OS */
Lines 2275-2280 AC_DEFUN([AC_FUNC_SMMAP], Link Here
2275
                [AC_TRY_RUN([
2320
                [AC_TRY_RUN([
2276
#include <sys/types.h>
2321
#include <sys/types.h>
2277
#include <sys/mman.h>
2322
#include <sys/mman.h>
2323
#ifdef HAVE_STDLIB_H
2324
#include <stdlib.h>
2325
#endif
2278
2326
2279
#ifndef	MAP_ANONYMOUS
2327
#ifndef	MAP_ANONYMOUS
2280
#	ifdef	MAP_ANON
2328
#	ifdef	MAP_ANON
Lines 2356-2361 AC_DEFUN([AC_FUNC_SHMGET], Link Here
2356
#include <sys/types.h>
2404
#include <sys/types.h>
2357
#include <sys/ipc.h>
2405
#include <sys/ipc.h>
2358
#include <sys/shm.h>
2406
#include <sys/shm.h>
2407
#ifdef HAVE_STDLIB_H
2408
#include <stdlib.h>
2409
#endif
2359
int
2410
int
2360
main()
2411
main()
2361
{
2412
{
Lines 2380-2385 dnl Defines HAVE_SYS_SIGLIST on success. Link Here
2380
AC_DEFUN([AC_FUNC_SYS_SIGLIST],
2431
AC_DEFUN([AC_FUNC_SYS_SIGLIST],
2381
[AC_CACHE_CHECK([for sys_siglist], ac_cv_func_sys_siglist,
2432
[AC_CACHE_CHECK([for sys_siglist], ac_cv_func_sys_siglist,
2382
                [AC_TRY_RUN([
2433
                [AC_TRY_RUN([
2434
#ifdef HAVE_STDLIB_H
2435
#include <stdlib.h>
2436
#endif
2383
int
2437
int
2384
main()
2438
main()
2385
{ extern char *sys_siglist[];
2439
{ extern char *sys_siglist[];
Lines 2404-2409 AC_MSG_CHECKING(bits in minor device number) Link Here
2404
AC_CACHE_VAL(AC_CV_NAME,
2458
AC_CACHE_VAL(AC_CV_NAME,
2405
[AC_TRY_RUN([#include <stdio.h>
2459
[AC_TRY_RUN([#include <stdio.h>
2406
#include <sys/types.h>
2460
#include <sys/types.h>
2461
#ifdef HAVE_STDLIB_H
2462
#include <stdlib.h>
2463
#endif
2407
#ifdef major
2464
#ifdef major
2408
#	define _FOUND_MAJOR_
2465
#	define _FOUND_MAJOR_
2409
#endif
2466
#endif
Lines 2469-2474 AC_DEFUN([AC_CHECK_MINOR_NONCONTIG], Link Here
2469
AC_CACHE_CHECK([whether bits in minor device numbers are non contiguous], ac_cv_dev_minor_noncontig,
2526
AC_CACHE_CHECK([whether bits in minor device numbers are non contiguous], ac_cv_dev_minor_noncontig,
2470
                [AC_TRY_RUN([
2527
                [AC_TRY_RUN([
2471
#include <sys/types.h>
2528
#include <sys/types.h>
2529
#ifdef HAVE_STDLIB_H
2530
#include <stdlib.h>
2531
#endif
2472
#ifdef major
2532
#ifdef major
2473
#	define _FOUND_MAJOR_
2533
#	define _FOUND_MAJOR_
2474
#endif
2534
#endif
Lines 2527-2532 dnl Defines NO_USER_MALLOC if we cannot. Link Here
2527
AC_DEFUN([AC_USER_MALLOC],
2587
AC_DEFUN([AC_USER_MALLOC],
2528
[AC_CACHE_CHECK([if we may not define our own malloc()], ac_cv_no_user_malloc,
2588
[AC_CACHE_CHECK([if we may not define our own malloc()], ac_cv_no_user_malloc,
2529
                [AC_TRY_RUN([
2589
                [AC_TRY_RUN([
2590
#ifdef HAVE_STDLIB_H
2591
#include <stdlib.h>
2592
#endif
2530
#if !defined(__CYGWIN32__) && !defined(__CYGWIN__)
2593
#if !defined(__CYGWIN32__) && !defined(__CYGWIN__)
2531
static int mcalled;
2594
static int mcalled;
2532
char *
2595
char *
Lines 2548-2554 malloc(s) Link Here
2548
free(p) char *p;{}
2611
free(p) char *p;{}
2549
#endif	/* !defined(__CYGWIN32__) && !defined(__CYGWIN__) */
2612
#endif	/* !defined(__CYGWIN32__) && !defined(__CYGWIN__) */
2550
	
2613
	
2551
main()
2614
int main()
2552
{
2615
{
2553
#if !defined(__CYGWIN32__) && !defined(__CYGWIN__)
2616
#if !defined(__CYGWIN32__) && !defined(__CYGWIN__)
2554
#ifdef	HAVE_STRDUP
2617
#ifdef	HAVE_STRDUP
Lines 2571-2576 AC_DEFUN([AC_USER_XCVT], Link Here
2571
[AC_CACHE_CHECK([if we may not define our own ecvt()/fcvt()/gcvt()], ac_cv_no_user_xcvt,
2634
[AC_CACHE_CHECK([if we may not define our own ecvt()/fcvt()/gcvt()], ac_cv_no_user_xcvt,
2572
                [AC_TRY_LINK([
2635
                [AC_TRY_LINK([
2573
#include <stdio.h>
2636
#include <stdio.h>
2637
#ifdef HAVE_STDLIB_H
2638
#include <stdlib.h>
2639
#endif
2574
2640
2575
char *
2641
char *
2576
ecvt(value, ndig, decpt, sign)
2642
ecvt(value, ndig, decpt, sign)
Lines 2639-2644 AC_DEFUN([AC_FUNC_BSD_SETPGRP], Link Here
2639
[AC_REQUIRE([AC_HEADER_ERRNO_DEF])dnl
2705
[AC_REQUIRE([AC_HEADER_ERRNO_DEF])dnl
2640
AC_CACHE_CHECK([for BSD compliant setpgrp], ac_cv_func_bsd_setpgrp,
2706
AC_CACHE_CHECK([for BSD compliant setpgrp], ac_cv_func_bsd_setpgrp,
2641
                [AC_TRY_RUN([
2707
                [AC_TRY_RUN([
2708
#ifdef HAVE_STDLIB_H
2709
#include <stdlib.h>
2710
#endif
2642
#include <errno.h>
2711
#include <errno.h>
2643
#ifndef	HAVE_ERRNO_DEF
2712
#ifndef	HAVE_ERRNO_DEF
2644
extern	int	errno;
2713
extern	int	errno;
Lines 2664-2669 AC_DEFUN([AC_FUNC_PRINTF_J], Link Here
2664
[AC_CACHE_CHECK([whether *printf() supports %jd], ac_cv_func_printf_j,
2733
[AC_CACHE_CHECK([whether *printf() supports %jd], ac_cv_func_printf_j,
2665
                [AC_TRY_RUN([
2734
                [AC_TRY_RUN([
2666
#include <inttypes.h>
2735
#include <inttypes.h>
2736
#ifdef HAVE_STDLIB_H
2737
#include <stdlib.h>
2738
#endif
2667
int
2739
int
2668
main()
2740
main()
2669
{ intmax_t m = 123456789012LL;
2741
{ intmax_t m = 123456789012LL;
Lines 2684-2689 AC_DEFUN([AC_FUNC_PRINTF_Z], Link Here
2684
[AC_CACHE_CHECK([whether *printf() supports %zd], ac_cv_func_printf_z,
2756
[AC_CACHE_CHECK([whether *printf() supports %zd], ac_cv_func_printf_z,
2685
                [AC_TRY_RUN([
2757
                [AC_TRY_RUN([
2686
#include <sys/types.h>
2758
#include <sys/types.h>
2759
#ifdef HAVE_STDLIB_H
2760
#include <stdlib.h>
2761
#endif
2687
int
2762
int
2688
main()
2763
main()
2689
{ size_t m = 1234567890;
2764
{ size_t m = 1234567890;
Lines 2703-2708 dnl Defines HAVE_PRINTF_LL on success. Link Here
2703
AC_DEFUN([AC_FUNC_PRINTF_LL],
2778
AC_DEFUN([AC_FUNC_PRINTF_LL],
2704
[AC_CACHE_CHECK([whether *printf() supports %lld], ac_cv_func_printf_ll,
2779
[AC_CACHE_CHECK([whether *printf() supports %lld], ac_cv_func_printf_ll,
2705
                [AC_TRY_RUN([
2780
                [AC_TRY_RUN([
2781
#ifdef HAVE_STDLIB_H
2782
#include <stdlib.h>
2783
#endif
2706
int
2784
int
2707
main()
2785
main()
2708
{ long long ll = 123456789012LL;
2786
{ long long ll = 123456789012LL;
Lines 2852-2858 dnl Defines HAVE_HARD_SYMLINKS on success. Link Here
2852
AC_DEFUN([AC_HARD_SYMLINKS],
2930
AC_DEFUN([AC_HARD_SYMLINKS],
2853
[AC_CACHE_CHECK([if link() allows hard links on symlinks], ac_cv_hard_symlinks,
2931
[AC_CACHE_CHECK([if link() allows hard links on symlinks], ac_cv_hard_symlinks,
2854
                [AC_TRY_RUN([
2932
                [AC_TRY_RUN([
2855
main()
2933
#ifdef HAVE_STDLIB_H
2934
#include <stdlib.h>
2935
#endif
2936
int main()
2856
{
2937
{
2857
	int	ret = 0;
2938
	int	ret = 0;
2858
2939
Lines 2884-2891 AC_DEFUN([AC_LINK_NOFOLLOW], Link Here
2884
                [AC_TRY_RUN([
2965
                [AC_TRY_RUN([
2885
#include <sys/types.h>
2966
#include <sys/types.h>
2886
#include <sys/stat.h>
2967
#include <sys/stat.h>
2968
#ifdef HAVE_STDLIB_H
2969
#include <stdlib.h>
2970
#endif
2887
2971
2888
main()
2972
int main()
2889
{
2973
{
2890
	int	ret = 0;
2974
	int	ret = 0;
2891
	int	f;
2975
	int	f;
Lines 2947-2958 AC_CACHE_CHECK([if access() does implement E_OK], ac_cv_access_e_ok, Link Here
2947
#endif
3031
#endif
2948
#endif
3032
#endif
2949
3033
3034
#ifdef HAVE_STDLIB_H
3035
#include <stdlib.h>
3036
#endif
2950
#include <errno.h>
3037
#include <errno.h>
2951
#ifndef	HAVE_ERRNO_DEF
3038
#ifndef	HAVE_ERRNO_DEF
2952
extern	int	errno;
3039
extern	int	errno;
2953
#endif
3040
#endif
2954
3041
2955
main()
3042
int main()
2956
{
3043
{
2957
#ifdef	_MSC_VER
3044
#ifdef	_MSC_VER
2958
/*
3045
/*
Lines 2989-2994 AC_CACHE_CHECK([if fnmatch() does implement FNM_IGNORECASE or FNM_CASEFOLD], ac_ Link Here
2989
#ifdef	HAVE_FNMATCH
3076
#ifdef	HAVE_FNMATCH
2990
#include <fnmatch.h>
3077
#include <fnmatch.h>
2991
#endif
3078
#endif
3079
#ifdef HAVE_STDLIB_H
3080
#include <stdlib.h>
3081
#endif
2992
3082
2993
#ifndef	FNM_IGNORECASE
3083
#ifndef	FNM_IGNORECASE
2994
#ifdef	FNM_CASEFOLD
3084
#ifdef	FNM_CASEFOLD
Lines 2996-3002 AC_CACHE_CHECK([if fnmatch() does implement FNM_IGNORECASE or FNM_CASEFOLD], ac_ Link Here
2996
#endif
3086
#endif
2997
#endif
3087
#endif
2998
3088
2999
main()
3089
int main()
3000
{
3090
{
3001
	int	ret;
3091
	int	ret;
3002
3092
Lines 3468-3473 AC_CACHE_VAL(ac_cv_file_$ac_safe, Link Here
3468
                [AC_TRY_RUN([
3558
                [AC_TRY_RUN([
3469
#include <sys/types.h>
3559
#include <sys/types.h>
3470
#include <sys/stat.h>
3560
#include <sys/stat.h>
3561
#ifdef HAVE_STDLIB_H
3562
#include <stdlib.h>
3563
#endif
3471
3564
3472
int
3565
int
3473
main()
3566
main()
(-)a/autoconf/acspecific.m4 (-14 / +51 lines)
Lines 204-210 AC_DEFUN(AC_PROG_CC_WORKS, Link Here
204
[AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works])
204
[AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works])
205
AC_LANG_SAVE
205
AC_LANG_SAVE
206
AC_LANG_C
206
AC_LANG_C
207
AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross)
207
AC_TRY_COMPILER([int main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross)
208
AC_LANG_RESTORE
208
AC_LANG_RESTORE
209
AC_MSG_RESULT($ac_cv_prog_cc_works)
209
AC_MSG_RESULT($ac_cv_prog_cc_works)
210
if test $ac_cv_prog_cc_works = no; then
210
if test $ac_cv_prog_cc_works = no; then
Lines 872-878 esac Link Here
872
AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void,
872
AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void,
873
[AC_TRY_RUN([#include <sys/types.h>
873
[AC_TRY_RUN([#include <sys/types.h>
874
#include <$ac_header_dirent>
874
#include <$ac_header_dirent>
875
int closedir(); main() { exit(closedir(opendir(".")) != 0); }],
875
#include <stdlib.h>
876
int closedir(); int main() { exit(closedir(opendir(".")) != 0); }],
876
  ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, ac_cv_func_closedir_void=yes)])
877
  ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, ac_cv_func_closedir_void=yes)])
877
if test $ac_cv_func_closedir_void = yes; then
878
if test $ac_cv_func_closedir_void = yes; then
878
  AC_DEFINE(VOID_CLOSEDIR)
879
  AC_DEFINE(VOID_CLOSEDIR)
Lines 958-969 AC_CACHE_CHECK(type of array argument to getgroups, ac_cv_type_getgroups, Link Here
958
[AC_TRY_RUN(
959
[AC_TRY_RUN(
959
changequote(<<, >>)dnl
960
changequote(<<, >>)dnl
960
<<
961
<<
962
#include <stdlib.h>
961
/* Thanks to Mike Rendell for this test.  */
963
/* Thanks to Mike Rendell for this test.  */
962
#include <sys/types.h>
964
#include <sys/types.h>
963
#define NGID 256
965
#define NGID 256
964
#undef MAX
966
#undef MAX
965
#define MAX(x, y) ((x) > (y) ? (x) : (y))
967
#define MAX(x, y) ((x) > (y) ? (x) : (y))
966
main()
968
int main()
967
{
969
{
968
  gid_t gidset[NGID];
970
  gid_t gidset[NGID];
969
  int i, n;
971
  int i, n;
Lines 1041-1047 AC_DEFUN(AC_FUNC_CLOSEDIR_VOID, Link Here
1041
AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void,
1043
AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void,
1042
[AC_TRY_RUN([#include <sys/types.h>
1044
[AC_TRY_RUN([#include <sys/types.h>
1043
#include <$ac_header_dirent>
1045
#include <$ac_header_dirent>
1044
int closedir(); main() { exit(closedir(opendir(".")) != 0); }],
1046
#include <stdlib.h>
1047
int closedir(); int main() { exit(closedir(opendir(".")) != 0); }],
1045
  ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, ac_cv_func_closedir_void=yes)])
1048
  ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, ac_cv_func_closedir_void=yes)])
1046
if test $ac_cv_func_closedir_void = yes; then
1049
if test $ac_cv_func_closedir_void = yes; then
1047
  AC_DEFINE(CLOSEDIR_VOID)
1050
  AC_DEFINE(CLOSEDIR_VOID)
Lines 1053-1059 AC_DEFUN(AC_FUNC_FNMATCH, Link Here
1053
# Some versions of Solaris or SCO have a broken fnmatch function.
1056
# Some versions of Solaris or SCO have a broken fnmatch function.
1054
# So we run a test program.  If we are cross-compiling, take no chance.
1057
# So we run a test program.  If we are cross-compiling, take no chance.
1055
# Thanks to John Oleynick and Franc,ois Pinard for this test.
1058
# Thanks to John Oleynick and Franc,ois Pinard for this test.
1056
[AC_TRY_RUN([main() { exit (fnmatch ("a*", "abc", 0) != 0); }],
1059
[AC_TRY_RUN([#include <stdlib.h>
1060
int main() { exit (fnmatch ("a*", "abc", 0) != 0); }],
1057
ac_cv_func_fnmatch_works=yes, ac_cv_func_fnmatch_works=no,
1061
ac_cv_func_fnmatch_works=yes, ac_cv_func_fnmatch_works=no,
1058
ac_cv_func_fnmatch_works=no)])
1062
ac_cv_func_fnmatch_works=no)])
1059
if test $ac_cv_func_fnmatch_works = yes; then
1063
if test $ac_cv_func_fnmatch_works = yes; then
Lines 1090-1095 AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped, Link Here
1090
#include <sys/types.h>
1094
#include <sys/types.h>
1091
#include <fcntl.h>
1095
#include <fcntl.h>
1092
#include <sys/mman.h>
1096
#include <sys/mman.h>
1097
#ifdef HAVE_STDLIB_H
1098
#include <stdlib.h>
1099
#endif
1093
1100
1094
/* This mess was copied from the GNU getpagesize.h.  */
1101
/* This mess was copied from the GNU getpagesize.h.  */
1095
#ifndef HAVE_GETPAGESIZE
1102
#ifndef HAVE_GETPAGESIZE
Lines 1219-1230 AC_DEFUN(AC_FUNC_GETPGRP, Link Here
1219
 */
1226
 */
1220
#include <stdio.h>
1227
#include <stdio.h>
1221
#include <sys/types.h>
1228
#include <sys/types.h>
1229
#ifdef HAVE_STDLIB_H
1230
#include <stdlib.h>
1231
#endif
1222
1232
1223
int     pid;
1233
int     pid;
1224
int     pg1, pg2, pg3, pg4;
1234
int     pg1, pg2, pg3, pg4;
1225
int     ng, np, s, child;
1235
int     ng, np, s, child;
1226
1236
1227
main()
1237
int main()
1228
{
1238
{
1229
        pid = getpid();
1239
        pid = getpid();
1230
        pg1 = getpgrp(0);
1240
        pg1 = getpgrp(0);
Lines 1275-1286 AC_TRY_RUN([ Link Here
1275
#ifdef HAVE_UNISTD_H
1285
#ifdef HAVE_UNISTD_H
1276
#include <unistd.h>
1286
#include <unistd.h>
1277
#endif
1287
#endif
1288
#ifdef HAVE_STDLIB_H
1289
#include <stdlib.h>
1290
#endif
1278
1291
1279
/*
1292
/*
1280
 * If this system has a BSD-style setpgrp, which takes arguments, exit
1293
 * If this system has a BSD-style setpgrp, which takes arguments, exit
1281
 * successfully.
1294
 * successfully.
1282
 */
1295
 */
1283
main()
1296
int main()
1284
{
1297
{
1285
    if (setpgrp(1,1) == -1)
1298
    if (setpgrp(1,1) == -1)
1286
	exit(0);
1299
	exit(0);
Lines 1456-1463 AC_DEFUN(AC_FUNC_WAIT3, Link Here
1456
#include <sys/time.h>
1469
#include <sys/time.h>
1457
#include <sys/resource.h>
1470
#include <sys/resource.h>
1458
#include <stdio.h>
1471
#include <stdio.h>
1472
#ifdef HAVE_STDLIB_H
1473
#include <stdlib.h>
1474
#endif
1459
/* HP-UX has wait3 but does not fill in rusage at all.  */
1475
/* HP-UX has wait3 but does not fill in rusage at all.  */
1460
main() {
1476
int main() {
1461
  struct rusage r;
1477
  struct rusage r;
1462
  int i;
1478
  int i;
1463
  /* Use a field that we can force nonzero --
1479
  /* Use a field that we can force nonzero --
Lines 1683-1689 AC_DEFUN(AC_FUNC_UTIME_NULL, Link Here
1683
# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
1699
# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
1684
AC_TRY_RUN([#include <sys/types.h>
1700
AC_TRY_RUN([#include <sys/types.h>
1685
#include <sys/stat.h>
1701
#include <sys/stat.h>
1686
main() {
1702
#ifdef HAVE_STDLIB_H
1703
#include <stdlib.h>
1704
#endif
1705
int main() {
1687
struct stat s, t;
1706
struct stat s, t;
1688
exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
1707
exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
1689
&& stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
1708
&& stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
Lines 1748-1754 LIBS="-lintl $LIBS"])])]) Link Here
1748
AC_DEFUN(AC_FUNC_MEMCMP,
1767
AC_DEFUN(AC_FUNC_MEMCMP,
1749
[AC_CACHE_CHECK(for 8-bit clean memcmp, ac_cv_func_memcmp_clean,
1768
[AC_CACHE_CHECK(for 8-bit clean memcmp, ac_cv_func_memcmp_clean,
1750
[AC_TRY_RUN([
1769
[AC_TRY_RUN([
1751
main()
1770
#ifdef HAVE_STDLIB_H
1771
#include <stdlib.h>
1772
#endif
1773
int main()
1752
{
1774
{
1753
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1775
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1754
  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1776
  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
Lines 1902-1912 AC_EGREP_CPP(yes, Link Here
1902
], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no)
1924
], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no)
1903
else
1925
else
1904
AC_TRY_RUN(
1926
AC_TRY_RUN(
1927
#ifdef HAVE_STDLIB_H
1928
#include <stdlib.h>
1929
#endif
1905
[/* volatile prevents gcc2 from optimizing the test away on sparcs.  */
1930
[/* volatile prevents gcc2 from optimizing the test away on sparcs.  */
1906
#if !defined(__STDC__) || __STDC__ != 1
1931
#if !defined(__STDC__) || __STDC__ != 1
1907
#define volatile
1932
#define volatile
1908
#endif
1933
#endif
1909
main() {
1934
int main() {
1910
  volatile char c = 255; exit(c < 0);
1935
  volatile char c = 255; exit(c < 0);
1911
}], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no)
1936
}], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no)
1912
fi])
1937
fi])
Lines 1920-1926 AC_DEFUN(AC_C_LONG_DOUBLE, Link Here
1920
[if test "$GCC" = yes; then
1945
[if test "$GCC" = yes; then
1921
  ac_cv_c_long_double=yes
1946
  ac_cv_c_long_double=yes
1922
else
1947
else
1923
AC_TRY_RUN([int main() {
1948
AC_TRY_RUN([
1949
#ifdef HAVE_STDLIB_H
1950
#include <stdlib.h>
1951
#endif
1952
int main() {
1924
/* The Stardent Vistra knows sizeof(long double), but does not support it.  */
1953
/* The Stardent Vistra knows sizeof(long double), but does not support it.  */
1925
long double foo = 0.0;
1954
long double foo = 0.0;
1926
/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
1955
/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
Lines 1935-1941 fi Link Here
1935
AC_DEFUN(AC_INT_16_BITS,
1964
AC_DEFUN(AC_INT_16_BITS,
1936
[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(int)])dnl
1965
[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(int)])dnl
1937
AC_MSG_CHECKING(whether int is 16 bits)
1966
AC_MSG_CHECKING(whether int is 16 bits)
1938
AC_TRY_RUN([main() { exit(sizeof(int) != 2); }],
1967
AC_TRY_RUN([
1968
#ifdef HAVE_STDLIB_H
1969
#include <stdlib.h>
1970
#endif
1971
int main() { exit(sizeof(int) != 2); }],
1939
 [AC_MSG_RESULT(yes)
1972
 [AC_MSG_RESULT(yes)
1940
 AC_DEFINE(INT_16_BITS)], AC_MSG_RESULT(no))
1973
 AC_DEFINE(INT_16_BITS)], AC_MSG_RESULT(no))
1941
])
1974
])
Lines 1943-1949 AC_TRY_RUN([main() { exit(sizeof(int) != 2); }], Link Here
1943
AC_DEFUN(AC_LONG_64_BITS,
1976
AC_DEFUN(AC_LONG_64_BITS,
1944
[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(long)])dnl
1977
[AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(long)])dnl
1945
AC_MSG_CHECKING(whether long int is 64 bits)
1978
AC_MSG_CHECKING(whether long int is 64 bits)
1946
AC_TRY_RUN([main() { exit(sizeof(long int) != 8); }],
1979
AC_TRY_RUN([
1980
#ifdef HAVE_STDLIB_H
1981
#include <stdlib.h>
1982
#endif
1983
int main() { exit(sizeof(long int) != 8); }],
1947
 [AC_MSG_RESULT(yes)
1984
 [AC_MSG_RESULT(yes)
1948
 AC_DEFINE(LONG_64_BITS)], AC_MSG_RESULT(no))
1985
 AC_DEFINE(LONG_64_BITS)], AC_MSG_RESULT(no))
1949
])
1986
])
(-)a/autoconf/config.guess (-1 / +2 lines)
Lines 627-634 EOF Link Here
627
		set_cc_for_build
627
		set_cc_for_build
628
		sed 's/^		//' << EOF > "$dummy.c"
628
		sed 's/^		//' << EOF > "$dummy.c"
629
		#include <sys/systemcfg.h>
629
		#include <sys/systemcfg.h>
630
		#include <stdlib.h>
630
631
631
		main()
632
		int main()
632
			{
633
			{
633
			if (!__power_pc())
634
			if (!__power_pc())
634
				exit(1);
635
				exit(1);
(-)a/autoconf/configure (-40 / +231 lines)
Lines 1216-1222 cat > conftest.$ac_ext << EOF Link Here
1216
#line 1217 "configure"
1216
#line 1217 "configure"
1217
#include "confdefs.h"
1217
#include "confdefs.h"
1218
1218
1219
main(){return(0);}
1219
int main(){return(0);}
1220
EOF
1220
EOF
1221
if { eval echo configure:1222: \"$ac_link\" 1>&5; eval $ac_link 2>&5; } && test -s conftest${ac_exeext}; then
1221
if { eval echo configure:1222: \"$ac_link\" 1>&5; eval $ac_link 2>&5; } && test -s conftest${ac_exeext}; then
1222
  ac_cv_prog_cc_works=yes
1222
  ac_cv_prog_cc_works=yes
Lines 4997-5002 else Link Here
4997
#line 4998 "configure"
4997
#line 4998 "configure"
4998
#include "confdefs.h"
4998
#include "confdefs.h"
4999
#include <stdio.h>
4999
#include <stdio.h>
5000
#ifdef HAVE_STDLIB_H
5001
# include <stdlib.h>
5002
#endif
5000
#include <sys/types.h>
5003
#include <sys/types.h>
5001
#ifdef major
5004
#ifdef major
5002
#	define _FOUND_MAJOR_
5005
#	define _FOUND_MAJOR_
Lines 5082-5087 else Link Here
5082
#line 5083 "configure"
5085
#line 5083 "configure"
5083
#include "confdefs.h"
5086
#include "confdefs.h"
5084
5087
5088
#ifdef HAVE_STDLIB_H
5089
# include <stdlib.h>
5090
#endif
5085
#include <sys/types.h>
5091
#include <sys/types.h>
5086
#ifdef major
5092
#ifdef major
5087
#	define _FOUND_MAJOR_
5093
#	define _FOUND_MAJOR_
Lines 5835-5840 else Link Here
5835
#line 5836 "configure"
5841
#line 5836 "configure"
5836
#include "confdefs.h"
5842
#include "confdefs.h"
5837
5843
5844
#ifdef HAVE_STDLIB_H
5845
#include <stdlib.h>
5846
#endif
5838
struct {
5847
struct {
5839
	unsigned char	x1:4;
5848
	unsigned char	x1:4;
5840
	unsigned char	x2:4;
5849
	unsigned char	x2:4;
Lines 6044-6055 else Link Here
6044
#line 6045 "configure"
6053
#line 6045 "configure"
6045
#include "confdefs.h"
6054
#include "confdefs.h"
6046
6055
6056
#ifdef HAVE_STDLIB_H
6057
#include <stdlib.h>
6058
#endif
6047
/* Thanks to Mike Rendell for this test.  */
6059
/* Thanks to Mike Rendell for this test.  */
6048
#include <sys/types.h>
6060
#include <sys/types.h>
6049
#define NGID 256
6061
#define NGID 256
6050
#undef MAX
6062
#undef MAX
6051
#define MAX(x, y) ((x) > (y) ? (x) : (y))
6063
#define MAX(x, y) ((x) > (y) ? (x) : (y))
6052
main()
6064
int main()
6053
{
6065
{
6054
  gid_t gidset[NGID];
6066
  gid_t gidset[NGID];
6055
  int i, n;
6067
  int i, n;
Lines 8125-8137 else Link Here
8125
#line 8126 "configure"
8137
#line 8126 "configure"
8126
#include "confdefs.h"
8138
#include "confdefs.h"
8127
#include <stdio.h>
8139
#include <stdio.h>
8140
#ifdef HAVE_STDLIB_H
8141
#include <stdlib.h>
8142
#endif
8128
#if	HAVE_STDDEF_H || STDC_HEADERS
8143
#if	HAVE_STDDEF_H || STDC_HEADERS
8129
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8144
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8130
#endif
8145
#endif
8131
#ifdef	HAVE_SYS_TYPES_H
8146
#ifdef	HAVE_SYS_TYPES_H
8132
#include <sys/types.h>
8147
#include <sys/types.h>
8133
#endif
8148
#endif
8134
main()
8149
int main()
8135
{
8150
{
8136
  FILE *f=fopen("conftestval", "w");
8151
  FILE *f=fopen("conftestval", "w");
8137
  if (!f) exit(1);
8152
  if (!f) exit(1);
Lines 8170-8182 else Link Here
8170
#line 8171 "configure"
8185
#line 8171 "configure"
8171
#include "confdefs.h"
8186
#include "confdefs.h"
8172
#include <stdio.h>
8187
#include <stdio.h>
8188
#ifdef HAVE_STDLIB_H
8189
#include <stdlib.h>
8190
#endif
8173
#if	HAVE_STDDEF_H || STDC_HEADERS
8191
#if	HAVE_STDDEF_H || STDC_HEADERS
8174
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8192
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8175
#endif
8193
#endif
8176
#ifdef	HAVE_SYS_TYPES_H
8194
#ifdef	HAVE_SYS_TYPES_H
8177
#include <sys/types.h>
8195
#include <sys/types.h>
8178
#endif
8196
#endif
8179
main()
8197
int main()
8180
{
8198
{
8181
  FILE *f=fopen("conftestval", "w");
8199
  FILE *f=fopen("conftestval", "w");
8182
  if (!f) exit(1);
8200
  if (!f) exit(1);
Lines 8215-8227 else Link Here
8215
#line 8216 "configure"
8233
#line 8216 "configure"
8216
#include "confdefs.h"
8234
#include "confdefs.h"
8217
#include <stdio.h>
8235
#include <stdio.h>
8236
#ifdef HAVE_STDLIB_H
8237
#include <stdlib.h>
8238
#endif
8218
#if	HAVE_STDDEF_H || STDC_HEADERS
8239
#if	HAVE_STDDEF_H || STDC_HEADERS
8219
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8240
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8220
#endif
8241
#endif
8221
#ifdef	HAVE_SYS_TYPES_H
8242
#ifdef	HAVE_SYS_TYPES_H
8222
#include <sys/types.h>
8243
#include <sys/types.h>
8223
#endif
8244
#endif
8224
main()
8245
int main()
8225
{
8246
{
8226
  FILE *f=fopen("conftestval", "w");
8247
  FILE *f=fopen("conftestval", "w");
8227
  if (!f) exit(1);
8248
  if (!f) exit(1);
Lines 8260-8272 else Link Here
8260
#line 8261 "configure"
8281
#line 8261 "configure"
8261
#include "confdefs.h"
8282
#include "confdefs.h"
8262
#include <stdio.h>
8283
#include <stdio.h>
8284
#ifdef HAVE_STDLIB_H
8285
#include <stdlib.h>
8286
#endif
8263
#if	HAVE_STDDEF_H || STDC_HEADERS
8287
#if	HAVE_STDDEF_H || STDC_HEADERS
8264
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8288
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8265
#endif
8289
#endif
8266
#ifdef	HAVE_SYS_TYPES_H
8290
#ifdef	HAVE_SYS_TYPES_H
8267
#include <sys/types.h>
8291
#include <sys/types.h>
8268
#endif
8292
#endif
8269
main()
8293
int main()
8270
{
8294
{
8271
  FILE *f=fopen("conftestval", "w");
8295
  FILE *f=fopen("conftestval", "w");
8272
  if (!f) exit(1);
8296
  if (!f) exit(1);
Lines 8305-8317 else Link Here
8305
#line 8306 "configure"
8329
#line 8306 "configure"
8306
#include "confdefs.h"
8330
#include "confdefs.h"
8307
#include <stdio.h>
8331
#include <stdio.h>
8332
#ifdef HAVE_STDLIB_H
8333
#include <stdlib.h>
8334
#endif
8308
#if	HAVE_STDDEF_H || STDC_HEADERS
8335
#if	HAVE_STDDEF_H || STDC_HEADERS
8309
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8336
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8310
#endif
8337
#endif
8311
#ifdef	HAVE_SYS_TYPES_H
8338
#ifdef	HAVE_SYS_TYPES_H
8312
#include <sys/types.h>
8339
#include <sys/types.h>
8313
#endif
8340
#endif
8314
main()
8341
int main()
8315
{
8342
{
8316
  FILE *f=fopen("conftestval", "w");
8343
  FILE *f=fopen("conftestval", "w");
8317
  if (!f) exit(1);
8344
  if (!f) exit(1);
Lines 8350-8362 else Link Here
8350
#line 8351 "configure"
8377
#line 8351 "configure"
8351
#include "confdefs.h"
8378
#include "confdefs.h"
8352
#include <stdio.h>
8379
#include <stdio.h>
8380
#ifdef HAVE_STDLIB_H
8381
#include <stdlib.h>
8382
#endif
8353
#if	HAVE_STDDEF_H || STDC_HEADERS
8383
#if	HAVE_STDDEF_H || STDC_HEADERS
8354
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8384
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8355
#endif
8385
#endif
8356
#ifdef	HAVE_SYS_TYPES_H
8386
#ifdef	HAVE_SYS_TYPES_H
8357
#include <sys/types.h>
8387
#include <sys/types.h>
8358
#endif
8388
#endif
8359
main()
8389
int main()
8360
{
8390
{
8361
  FILE *f=fopen("conftestval", "w");
8391
  FILE *f=fopen("conftestval", "w");
8362
  if (!f) exit(1);
8392
  if (!f) exit(1);
Lines 8395-8407 else Link Here
8395
#line 8396 "configure"
8425
#line 8396 "configure"
8396
#include "confdefs.h"
8426
#include "confdefs.h"
8397
#include <stdio.h>
8427
#include <stdio.h>
8428
#ifdef HAVE_STDLIB_H
8429
#include <stdlib.h>
8430
#endif
8398
#if	HAVE_STDDEF_H || STDC_HEADERS
8431
#if	HAVE_STDDEF_H || STDC_HEADERS
8399
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8432
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8400
#endif
8433
#endif
8401
#ifdef	HAVE_SYS_TYPES_H
8434
#ifdef	HAVE_SYS_TYPES_H
8402
#include <sys/types.h>
8435
#include <sys/types.h>
8403
#endif
8436
#endif
8404
main()
8437
int main()
8405
{
8438
{
8406
  FILE *f=fopen("conftestval", "w");
8439
  FILE *f=fopen("conftestval", "w");
8407
  if (!f) exit(1);
8440
  if (!f) exit(1);
Lines 8441-8453 else Link Here
8441
#line 8442 "configure"
8474
#line 8442 "configure"
8442
#include "confdefs.h"
8475
#include "confdefs.h"
8443
#include <stdio.h>
8476
#include <stdio.h>
8477
#ifdef HAVE_STDLIB_H
8478
#include <stdlib.h>
8479
#endif
8444
#if	HAVE_STDDEF_H || STDC_HEADERS
8480
#if	HAVE_STDDEF_H || STDC_HEADERS
8445
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8481
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8446
#endif
8482
#endif
8447
#ifdef	HAVE_SYS_TYPES_H
8483
#ifdef	HAVE_SYS_TYPES_H
8448
#include <sys/types.h>
8484
#include <sys/types.h>
8449
#endif
8485
#endif
8450
main()
8486
int main()
8451
{
8487
{
8452
  FILE *f=fopen("conftestval", "w");
8488
  FILE *f=fopen("conftestval", "w");
8453
  if (!f) exit(1);
8489
  if (!f) exit(1);
Lines 8486-8498 else Link Here
8486
#line 8487 "configure"
8522
#line 8487 "configure"
8487
#include "confdefs.h"
8523
#include "confdefs.h"
8488
#include <stdio.h>
8524
#include <stdio.h>
8525
#ifdef HAVE_STDLIB_H
8526
#include <stdlib.h>
8527
#endif
8489
#if	HAVE_STDDEF_H || STDC_HEADERS
8528
#if	HAVE_STDDEF_H || STDC_HEADERS
8490
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8529
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8491
#endif
8530
#endif
8492
#ifdef	HAVE_SYS_TYPES_H
8531
#ifdef	HAVE_SYS_TYPES_H
8493
#include <sys/types.h>
8532
#include <sys/types.h>
8494
#endif
8533
#endif
8495
main()
8534
int main()
8496
{
8535
{
8497
  FILE *f=fopen("conftestval", "w");
8536
  FILE *f=fopen("conftestval", "w");
8498
  if (!f) exit(1);
8537
  if (!f) exit(1);
Lines 8531-8543 else Link Here
8531
#line 8532 "configure"
8570
#line 8532 "configure"
8532
#include "confdefs.h"
8571
#include "confdefs.h"
8533
#include <stdio.h>
8572
#include <stdio.h>
8573
#ifdef HAVE_STDLIB_H
8574
#include <stdlib.h>
8575
#endif
8534
#if	HAVE_STDDEF_H || STDC_HEADERS
8576
#if	HAVE_STDDEF_H || STDC_HEADERS
8535
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8577
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8536
#endif
8578
#endif
8537
#ifdef	HAVE_SYS_TYPES_H
8579
#ifdef	HAVE_SYS_TYPES_H
8538
#include <sys/types.h>
8580
#include <sys/types.h>
8539
#endif
8581
#endif
8540
main()
8582
int main()
8541
{
8583
{
8542
  FILE *f=fopen("conftestval", "w");
8584
  FILE *f=fopen("conftestval", "w");
8543
  if (!f) exit(1);
8585
  if (!f) exit(1);
Lines 8576-8588 else Link Here
8576
#line 8577 "configure"
8618
#line 8577 "configure"
8577
#include "confdefs.h"
8619
#include "confdefs.h"
8578
#include <stdio.h>
8620
#include <stdio.h>
8621
#ifdef HAVE_STDLIB_H
8622
#include <stdlib.h>
8623
#endif
8579
#if	HAVE_STDDEF_H || STDC_HEADERS
8624
#if	HAVE_STDDEF_H || STDC_HEADERS
8580
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8625
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8581
#endif
8626
#endif
8582
#ifdef	HAVE_SYS_TYPES_H
8627
#ifdef	HAVE_SYS_TYPES_H
8583
#include <sys/types.h>
8628
#include <sys/types.h>
8584
#endif
8629
#endif
8585
main()
8630
int main()
8586
{
8631
{
8587
  FILE *f=fopen("conftestval", "w");
8632
  FILE *f=fopen("conftestval", "w");
8588
  if (!f) exit(1);
8633
  if (!f) exit(1);
Lines 8621-8633 else Link Here
8621
#line 8622 "configure"
8666
#line 8622 "configure"
8622
#include "confdefs.h"
8667
#include "confdefs.h"
8623
#include <stdio.h>
8668
#include <stdio.h>
8669
#ifdef HAVE_STDLIB_H
8670
#include <stdlib.h>
8671
#endif
8624
#if	HAVE_STDDEF_H || STDC_HEADERS
8672
#if	HAVE_STDDEF_H || STDC_HEADERS
8625
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8673
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8626
#endif
8674
#endif
8627
#ifdef	HAVE_SYS_TYPES_H
8675
#ifdef	HAVE_SYS_TYPES_H
8628
#include <sys/types.h>
8676
#include <sys/types.h>
8629
#endif
8677
#endif
8630
main()
8678
int main()
8631
{
8679
{
8632
  FILE *f=fopen("conftestval", "w");
8680
  FILE *f=fopen("conftestval", "w");
8633
  if (!f) exit(1);
8681
  if (!f) exit(1);
Lines 8666-8678 else Link Here
8666
#line 8667 "configure"
8714
#line 8667 "configure"
8667
#include "confdefs.h"
8715
#include "confdefs.h"
8668
#include <stdio.h>
8716
#include <stdio.h>
8717
#ifdef HAVE_STDLIB_H
8718
#include <stdlib.h>
8719
#endif
8669
#if	HAVE_STDDEF_H || STDC_HEADERS
8720
#if	HAVE_STDDEF_H || STDC_HEADERS
8670
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8721
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8671
#endif
8722
#endif
8672
#ifdef	HAVE_SYS_TYPES_H
8723
#ifdef	HAVE_SYS_TYPES_H
8673
#include <sys/types.h>
8724
#include <sys/types.h>
8674
#endif
8725
#endif
8675
main()
8726
int main()
8676
{
8727
{
8677
  FILE *f=fopen("conftestval", "w");
8728
  FILE *f=fopen("conftestval", "w");
8678
  if (!f) exit(1);
8729
  if (!f) exit(1);
Lines 8711-8723 else Link Here
8711
#line 8712 "configure"
8762
#line 8712 "configure"
8712
#include "confdefs.h"
8763
#include "confdefs.h"
8713
#include <stdio.h>
8764
#include <stdio.h>
8765
#ifdef HAVE_STDLIB_H
8766
#include <stdlib.h>
8767
#endif
8714
#if	HAVE_STDDEF_H || STDC_HEADERS
8768
#if	HAVE_STDDEF_H || STDC_HEADERS
8715
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8769
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8716
#endif
8770
#endif
8717
#ifdef	HAVE_SYS_TYPES_H
8771
#ifdef	HAVE_SYS_TYPES_H
8718
#include <sys/types.h>
8772
#include <sys/types.h>
8719
#endif
8773
#endif
8720
main()
8774
int main()
8721
{
8775
{
8722
  FILE *f=fopen("conftestval", "w");
8776
  FILE *f=fopen("conftestval", "w");
8723
  if (!f) exit(1);
8777
  if (!f) exit(1);
Lines 8756-8768 else Link Here
8756
#line 8757 "configure"
8810
#line 8757 "configure"
8757
#include "confdefs.h"
8811
#include "confdefs.h"
8758
#include <stdio.h>
8812
#include <stdio.h>
8813
#ifdef HAVE_STDLIB_H
8814
#include <stdlib.h>
8815
#endif
8759
#if	HAVE_STDDEF_H || STDC_HEADERS
8816
#if	HAVE_STDDEF_H || STDC_HEADERS
8760
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8817
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8761
#endif
8818
#endif
8762
#ifdef	HAVE_SYS_TYPES_H
8819
#ifdef	HAVE_SYS_TYPES_H
8763
#include <sys/types.h>
8820
#include <sys/types.h>
8764
#endif
8821
#endif
8765
main()
8822
int main()
8766
{
8823
{
8767
  FILE *f=fopen("conftestval", "w");
8824
  FILE *f=fopen("conftestval", "w");
8768
  if (!f) exit(1);
8825
  if (!f) exit(1);
Lines 8801-8813 else Link Here
8801
#line 8802 "configure"
8858
#line 8802 "configure"
8802
#include "confdefs.h"
8859
#include "confdefs.h"
8803
#include <stdio.h>
8860
#include <stdio.h>
8861
#ifdef HAVE_STDLIB_H
8862
#include <stdlib.h>
8863
#endif
8804
#if	HAVE_STDDEF_H || STDC_HEADERS
8864
#if	HAVE_STDDEF_H || STDC_HEADERS
8805
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8865
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8806
#endif
8866
#endif
8807
#ifdef	HAVE_SYS_TYPES_H
8867
#ifdef	HAVE_SYS_TYPES_H
8808
#include <sys/types.h>
8868
#include <sys/types.h>
8809
#endif
8869
#endif
8810
main()
8870
int main()
8811
{
8871
{
8812
  FILE *f=fopen("conftestval", "w");
8872
  FILE *f=fopen("conftestval", "w");
8813
  if (!f) exit(1);
8873
  if (!f) exit(1);
Lines 8846-8858 else Link Here
8846
#line 8847 "configure"
8906
#line 8847 "configure"
8847
#include "confdefs.h"
8907
#include "confdefs.h"
8848
#include <stdio.h>
8908
#include <stdio.h>
8909
#ifdef HAVE_STDLIB_H
8910
#include <stdlib.h>
8911
#endif
8849
#if	HAVE_STDDEF_H || STDC_HEADERS
8912
#if	HAVE_STDDEF_H || STDC_HEADERS
8850
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8913
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8851
#endif
8914
#endif
8852
#ifdef	HAVE_SYS_TYPES_H
8915
#ifdef	HAVE_SYS_TYPES_H
8853
#include <sys/types.h>
8916
#include <sys/types.h>
8854
#endif
8917
#endif
8855
main()
8918
int main()
8856
{
8919
{
8857
  FILE *f=fopen("conftestval", "w");
8920
  FILE *f=fopen("conftestval", "w");
8858
  if (!f) exit(1);
8921
  if (!f) exit(1);
Lines 8892-8904 else Link Here
8892
#line 8893 "configure"
8955
#line 8893 "configure"
8893
#include "confdefs.h"
8956
#include "confdefs.h"
8894
#include <stdio.h>
8957
#include <stdio.h>
8958
#ifdef HAVE_STDLIB_H
8959
#include <stdlib.h>
8960
#endif
8895
#if	HAVE_STDDEF_H || STDC_HEADERS
8961
#if	HAVE_STDDEF_H || STDC_HEADERS
8896
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8962
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8897
#endif
8963
#endif
8898
#ifdef	HAVE_SYS_TYPES_H
8964
#ifdef	HAVE_SYS_TYPES_H
8899
#include <sys/types.h>
8965
#include <sys/types.h>
8900
#endif
8966
#endif
8901
main()
8967
int main()
8902
{
8968
{
8903
  FILE *f=fopen("conftestval", "w");
8969
  FILE *f=fopen("conftestval", "w");
8904
  if (!f) exit(1);
8970
  if (!f) exit(1);
Lines 8937-8949 else Link Here
8937
#line 8938 "configure"
9003
#line 8938 "configure"
8938
#include "confdefs.h"
9004
#include "confdefs.h"
8939
#include <stdio.h>
9005
#include <stdio.h>
9006
#ifdef HAVE_STDLIB_H
9007
#include <stdlib.h>
9008
#endif
8940
#if	HAVE_STDDEF_H || STDC_HEADERS
9009
#if	HAVE_STDDEF_H || STDC_HEADERS
8941
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9010
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8942
#endif
9011
#endif
8943
#ifdef	HAVE_SYS_TYPES_H
9012
#ifdef	HAVE_SYS_TYPES_H
8944
#include <sys/types.h>
9013
#include <sys/types.h>
8945
#endif
9014
#endif
8946
main()
9015
int main()
8947
{
9016
{
8948
  FILE *f=fopen("conftestval", "w");
9017
  FILE *f=fopen("conftestval", "w");
8949
  if (!f) exit(1);
9018
  if (!f) exit(1);
Lines 8982-8994 else Link Here
8982
#line 8983 "configure"
9051
#line 8983 "configure"
8983
#include "confdefs.h"
9052
#include "confdefs.h"
8984
#include <stdio.h>
9053
#include <stdio.h>
9054
#ifdef HAVE_STDLIB_H
9055
#include <stdlib.h>
9056
#endif
8985
#if	HAVE_STDDEF_H || STDC_HEADERS
9057
#if	HAVE_STDDEF_H || STDC_HEADERS
8986
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9058
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
8987
#endif
9059
#endif
8988
#ifdef	HAVE_SYS_TYPES_H
9060
#ifdef	HAVE_SYS_TYPES_H
8989
#include <sys/types.h>
9061
#include <sys/types.h>
8990
#endif
9062
#endif
8991
main()
9063
int main()
8992
{
9064
{
8993
  FILE *f=fopen("conftestval", "w");
9065
  FILE *f=fopen("conftestval", "w");
8994
  if (!f) exit(1);
9066
  if (!f) exit(1);
Lines 9028-9040 else Link Here
9028
#line 9029 "configure"
9100
#line 9029 "configure"
9029
#include "confdefs.h"
9101
#include "confdefs.h"
9030
#include <stdio.h>
9102
#include <stdio.h>
9103
#ifdef HAVE_STDLIB_H
9104
#include <stdlib.h>
9105
#endif
9031
#if	HAVE_STDDEF_H || STDC_HEADERS
9106
#if	HAVE_STDDEF_H || STDC_HEADERS
9032
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9107
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9033
#endif
9108
#endif
9034
#ifdef	HAVE_SYS_TYPES_H
9109
#ifdef	HAVE_SYS_TYPES_H
9035
#include <sys/types.h>
9110
#include <sys/types.h>
9036
#endif
9111
#endif
9037
main()
9112
int main()
9038
{
9113
{
9039
  FILE *f=fopen("conftestval", "w");
9114
  FILE *f=fopen("conftestval", "w");
9040
  if (!f) exit(1);
9115
  if (!f) exit(1);
Lines 9073-9085 else Link Here
9073
#line 9074 "configure"
9148
#line 9074 "configure"
9074
#include "confdefs.h"
9149
#include "confdefs.h"
9075
#include <stdio.h>
9150
#include <stdio.h>
9151
#ifdef HAVE_STDLIB_H
9152
#include <stdlib.h>
9153
#endif
9076
#if	HAVE_STDDEF_H || STDC_HEADERS
9154
#if	HAVE_STDDEF_H || STDC_HEADERS
9077
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9155
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9078
#endif
9156
#endif
9079
#ifdef	HAVE_SYS_TYPES_H
9157
#ifdef	HAVE_SYS_TYPES_H
9080
#include <sys/types.h>
9158
#include <sys/types.h>
9081
#endif
9159
#endif
9082
main()
9160
int main()
9083
{
9161
{
9084
  FILE *f=fopen("conftestval", "w");
9162
  FILE *f=fopen("conftestval", "w");
9085
  if (!f) exit(1);
9163
  if (!f) exit(1);
Lines 9118-9130 else Link Here
9118
#line 9119 "configure"
9196
#line 9119 "configure"
9119
#include "confdefs.h"
9197
#include "confdefs.h"
9120
#include <stdio.h>
9198
#include <stdio.h>
9199
#ifdef HAVE_STDLIB_H
9200
#include <stdlib.h>
9201
#endif
9121
#if	HAVE_STDDEF_H || STDC_HEADERS
9202
#if	HAVE_STDDEF_H || STDC_HEADERS
9122
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9203
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9123
#endif
9204
#endif
9124
#ifdef	HAVE_SYS_TYPES_H
9205
#ifdef	HAVE_SYS_TYPES_H
9125
#include <sys/types.h>
9206
#include <sys/types.h>
9126
#endif
9207
#endif
9127
main()
9208
int main()
9128
{
9209
{
9129
  FILE *f=fopen("conftestval", "w");
9210
  FILE *f=fopen("conftestval", "w");
9130
  if (!f) exit(1);
9211
  if (!f) exit(1);
Lines 9163-9175 else Link Here
9163
#line 9164 "configure"
9244
#line 9164 "configure"
9164
#include "confdefs.h"
9245
#include "confdefs.h"
9165
#include <stdio.h>
9246
#include <stdio.h>
9247
#ifdef HAVE_STDLIB_H
9248
#include <stdlib.h>
9249
#endif
9166
#if	HAVE_STDDEF_H || STDC_HEADERS
9250
#if	HAVE_STDDEF_H || STDC_HEADERS
9167
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9251
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9168
#endif
9252
#endif
9169
#ifdef	HAVE_SYS_TYPES_H
9253
#ifdef	HAVE_SYS_TYPES_H
9170
#include <sys/types.h>
9254
#include <sys/types.h>
9171
#endif
9255
#endif
9172
main()
9256
int main()
9173
{
9257
{
9174
  FILE *f=fopen("conftestval", "w");
9258
  FILE *f=fopen("conftestval", "w");
9175
  if (!f) exit(1);
9259
  if (!f) exit(1);
Lines 9209-9221 else Link Here
9209
#line 9210 "configure"
9293
#line 9210 "configure"
9210
#include "confdefs.h"
9294
#include "confdefs.h"
9211
#include <stdio.h>
9295
#include <stdio.h>
9296
#ifdef HAVE_STDLIB_H
9297
#include <stdlib.h>
9298
#endif
9212
#if	HAVE_STDDEF_H || STDC_HEADERS
9299
#if	HAVE_STDDEF_H || STDC_HEADERS
9213
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9300
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9214
#endif
9301
#endif
9215
#ifdef	HAVE_SYS_TYPES_H
9302
#ifdef	HAVE_SYS_TYPES_H
9216
#include <sys/types.h>
9303
#include <sys/types.h>
9217
#endif
9304
#endif
9218
main()
9305
int main()
9219
{
9306
{
9220
  FILE *f=fopen("conftestval", "w");
9307
  FILE *f=fopen("conftestval", "w");
9221
  if (!f) exit(1);
9308
  if (!f) exit(1);
Lines 9254-9266 else Link Here
9254
#line 9255 "configure"
9341
#line 9255 "configure"
9255
#include "confdefs.h"
9342
#include "confdefs.h"
9256
#include <stdio.h>
9343
#include <stdio.h>
9344
#ifdef HAVE_STDLIB_H
9345
#include <stdlib.h>
9346
#endif
9257
#if	HAVE_STDDEF_H || STDC_HEADERS
9347
#if	HAVE_STDDEF_H || STDC_HEADERS
9258
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9348
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9259
#endif
9349
#endif
9260
#ifdef	HAVE_SYS_TYPES_H
9350
#ifdef	HAVE_SYS_TYPES_H
9261
#include <sys/types.h>
9351
#include <sys/types.h>
9262
#endif
9352
#endif
9263
main()
9353
int main()
9264
{
9354
{
9265
  FILE *f=fopen("conftestval", "w");
9355
  FILE *f=fopen("conftestval", "w");
9266
  if (!f) exit(1);
9356
  if (!f) exit(1);
Lines 9299-9311 else Link Here
9299
#line 9300 "configure"
9389
#line 9300 "configure"
9300
#include "confdefs.h"
9390
#include "confdefs.h"
9301
#include <stdio.h>
9391
#include <stdio.h>
9392
#ifdef HAVE_STDLIB_H
9393
#include <stdlib.h>
9394
#endif
9302
#if	HAVE_STDDEF_H || STDC_HEADERS
9395
#if	HAVE_STDDEF_H || STDC_HEADERS
9303
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9396
#include <stddef.h>	/* For ptrdiff_t, wchar_t, size_t */
9304
#endif
9397
#endif
9305
#ifdef	HAVE_SYS_TYPES_H
9398
#ifdef	HAVE_SYS_TYPES_H
9306
#include <sys/types.h>
9399
#include <sys/types.h>
9307
#endif
9400
#endif
9308
main()
9401
int main()
9309
{
9402
{
9310
  FILE *f=fopen("conftestval", "w");
9403
  FILE *f=fopen("conftestval", "w");
9311
  if (!f) exit(1);
9404
  if (!f) exit(1);
Lines 9345-9350 else Link Here
9345
#line 9346 "configure"
9438
#line 9346 "configure"
9346
#include "confdefs.h"
9439
#include "confdefs.h"
9347
#include <stdio.h>
9440
#include <stdio.h>
9441
#ifdef HAVE_STDLIB_H
9442
#include <stdlib.h>
9443
#endif
9348
#include <sys/types.h>
9444
#include <sys/types.h>
9349
#ifdef	TIME_WITH_SYS_TIME_H
9445
#ifdef	TIME_WITH_SYS_TIME_H
9350
#	include <sys/time.h>
9446
#	include <sys/time.h>
Lines 9356-9362 else Link Here
9356
#	include <time.h>
9452
#	include <time.h>
9357
#endif
9453
#endif
9358
#endif
9454
#endif
9359
main()
9455
int main()
9360
{
9456
{
9361
  FILE *f=fopen("conftestval", "w");
9457
  FILE *f=fopen("conftestval", "w");
9362
  if (!f) exit(1);
9458
  if (!f) exit(1);
Lines 9395-9401 else Link Here
9395
#line 9396 "configure"
9491
#line 9396 "configure"
9396
#include "confdefs.h"
9492
#include "confdefs.h"
9397
#include <stdio.h>
9493
#include <stdio.h>
9398
main()
9494
#ifdef HAVE_STDLIB_H
9495
#include <stdlib.h>
9496
#endif
9497
int main()
9399
{
9498
{
9400
  FILE *f=fopen("conftestval", "w");
9499
  FILE *f=fopen("conftestval", "w");
9401
  if (!f) exit(1);
9500
  if (!f) exit(1);
Lines 9443-9449 else Link Here
9443
#ifdef	HAVE_WCHAR_H
9542
#ifdef	HAVE_WCHAR_H
9444
#include <wchar.h>
9543
#include <wchar.h>
9445
#endif
9544
#endif
9446
main()
9545
int main()
9447
{
9546
{
9448
  FILE *f=fopen("conftestval", "w");
9547
  FILE *f=fopen("conftestval", "w");
9449
  if (!f) exit(1);
9548
  if (!f) exit(1);
Lines 9483-9488 else Link Here
9483
#line 9484 "configure"
9582
#line 9484 "configure"
9484
#include "confdefs.h"
9583
#include "confdefs.h"
9485
9584
9585
#ifdef HAVE_STDLIB_H
9586
#include <stdlib.h>
9587
#endif
9486
int
9588
int
9487
main()
9589
main()
9488
{
9590
{
Lines 11223-11230 else Link Here
11223
#include <sys/time.h>
11325
#include <sys/time.h>
11224
#include <sys/resource.h>
11326
#include <sys/resource.h>
11225
#include <stdio.h>
11327
#include <stdio.h>
11328
#ifdef HAVE_STDLIB_H
11329
#include <stdlib.h>
11330
#endif
11226
/* HP-UX has wait3 but does not fill in rusage at all.  */
11331
/* HP-UX has wait3 but does not fill in rusage at all.  */
11227
main() {
11332
int main() {
11228
  struct rusage r;
11333
  struct rusage r;
11229
  int i;
11334
  int i;
11230
  /* Use a field that we can force nonzero --
11335
  /* Use a field that we can force nonzero --
Lines 11288-11298 else Link Here
11288
11393
11289
#include <sys/types.h>
11394
#include <sys/types.h>
11290
#include <errno.h>
11395
#include <errno.h>
11396
#ifdef HAVE_STDLIB_H
11397
#include <stdlib.h>
11398
#endif
11291
#ifndef	HAVE_ERRNO_DEF
11399
#ifndef	HAVE_ERRNO_DEF
11292
extern	int	errno;
11400
extern	int	errno;
11293
#endif
11401
#endif
11294
11402
11295
main()
11403
int main()
11296
{
11404
{
11297
	if (mlock(0, 0) < 0) {
11405
	if (mlock(0, 0) < 0) {
11298
		if (errno == EINVAL || errno ==  ENOMEM ||
11406
		if (errno == EINVAL || errno ==  ENOMEM ||
Lines 11340-11345 else Link Here
11340
#include <sys/types.h>
11448
#include <sys/types.h>
11341
#include <sys/mman.h>
11449
#include <sys/mman.h>
11342
#include <errno.h>
11450
#include <errno.h>
11451
#ifdef HAVE_STDLIB_H
11452
#include <stdlib.h>
11453
#endif
11343
#ifndef	HAVE_ERRNO_DEF
11454
#ifndef	HAVE_ERRNO_DEF
11344
extern	int	errno;
11455
extern	int	errno;
11345
#endif
11456
#endif
Lines 11471-11476 else Link Here
11471
#line 11472 "configure"
11582
#line 11472 "configure"
11472
#include "confdefs.h"
11583
#include "confdefs.h"
11473
11584
11585
#ifdef HAVE_STDLIB_H
11586
#include <stdlib.h>
11587
#endif
11474
extern	char *ecvt();
11588
extern	char *ecvt();
11475
11589
11476
sprintf(s)
11590
sprintf(s)
Lines 11521-11526 else Link Here
11521
#line 11522 "configure"
11635
#line 11522 "configure"
11522
#include "confdefs.h"
11636
#include "confdefs.h"
11523
11637
11638
#ifdef HAVE_STDLIB_H
11639
#include <stdlib.h>
11640
#endif
11524
extern	char *fcvt();
11641
extern	char *fcvt();
11525
11642
11526
sprintf(s)
11643
sprintf(s)
Lines 11571-11576 else Link Here
11571
#line 11572 "configure"
11688
#line 11572 "configure"
11572
#include "confdefs.h"
11689
#include "confdefs.h"
11573
11690
11691
#ifdef HAVE_STDLIB_H
11692
#include <stdlib.h>
11693
#endif
11574
extern	char *gcvt();
11694
extern	char *gcvt();
11575
11695
11576
sprintf(s)
11696
sprintf(s)
Lines 11654-11659 else Link Here
11654
#line 11655 "configure"
11774
#line 11655 "configure"
11655
#include "confdefs.h"
11775
#include "confdefs.h"
11656
11776
11777
#ifdef HAVE_STDLIB_H
11778
#include <stdlib.h>
11779
#endif
11657
extern	char *__dtoa();
11780
extern	char *__dtoa();
11658
int
11781
int
11659
main()
11782
main()
Lines 11786-11791 else Link Here
11786
#line 11787 "configure"
11909
#line 11787 "configure"
11787
#include "confdefs.h"
11910
#include "confdefs.h"
11788
11911
11912
#ifdef HAVE_STDLIB_H
11913
#include <stdlib.h>
11914
#endif
11789
#include <sys/types.h>
11915
#include <sys/types.h>
11790
#include <fcntl.h>
11916
#include <fcntl.h>
11791
#include <signal.h>
11917
#include <signal.h>
Lines 12021-12026 else Link Here
12021
#include <sys/types.h>
12147
#include <sys/types.h>
12022
#include <fcntl.h>
12148
#include <fcntl.h>
12023
#include <sys/mman.h>
12149
#include <sys/mman.h>
12150
#ifdef HAVE_STDLIB_H
12151
#include <stdlib.h>
12152
#endif
12024
12153
12025
/*
12154
/*
12026
 * Needed for Apollo Domain/OS and may be for others?
12155
 * Needed for Apollo Domain/OS and may be for others?
Lines 12221-12226 else Link Here
12221
#include <signal.h>
12350
#include <signal.h>
12222
#include <setjmp.h>
12351
#include <setjmp.h>
12223
#include <sys/mman.h>
12352
#include <sys/mman.h>
12353
#ifdef HAVE_STDLIB_H
12354
#include <stdlib.h>
12355
#endif
12224
12356
12225
#ifndef MAP_FILE
12357
#ifndef MAP_FILE
12226
#define MAP_FILE   0		/* Needed on Apollo Domain/OS */
12358
#define MAP_FILE   0		/* Needed on Apollo Domain/OS */
Lines 12390-12395 else Link Here
12390
12522
12391
#include <sys/types.h>
12523
#include <sys/types.h>
12392
#include <sys/mman.h>
12524
#include <sys/mman.h>
12525
#ifdef HAVE_STDLIB_H
12526
#include <stdlib.h>
12527
#endif
12393
12528
12394
#ifndef	MAP_ANONYMOUS
12529
#ifndef	MAP_ANONYMOUS
12395
#	ifdef	MAP_ANON
12530
#	ifdef	MAP_ANON
Lines 12490-12495 else Link Here
12490
#line 12491 "configure"
12625
#line 12491 "configure"
12491
#include "confdefs.h"
12626
#include "confdefs.h"
12492
12627
12628
#ifdef HAVE_STDLIB_H
12629
#include <stdlib.h>
12630
#endif
12493
#include <sys/types.h>
12631
#include <sys/types.h>
12494
#include <sys/ipc.h>
12632
#include <sys/ipc.h>
12495
#include <sys/shm.h>
12633
#include <sys/shm.h>
Lines 13188-13193 else Link Here
13188
#line 13189 "configure"
13326
#line 13189 "configure"
13189
#include "confdefs.h"
13327
#include "confdefs.h"
13190
13328
13329
#ifdef HAVE_STDLIB_H
13330
#include <stdlib.h>
13331
#endif
13191
int
13332
int
13192
main()
13333
main()
13193
{ extern char *sys_siglist[];
13334
{ extern char *sys_siglist[];
Lines 13228-13233 else Link Here
13228
#line 13229 "configure"
13369
#line 13229 "configure"
13229
#include "confdefs.h"
13370
#include "confdefs.h"
13230
13371
13372
#ifdef HAVE_STDLIB_H
13373
#include <stdlib.h>
13374
#endif
13231
int
13375
int
13232
main()
13376
main()
13233
{ long p;
13377
{ long p;
Lines 13272-13277 else Link Here
13272
#line 13273 "configure"
13416
#line 13273 "configure"
13273
#include "confdefs.h"
13417
#include "confdefs.h"
13274
13418
13419
#ifdef HAVE_STDLIB_H
13420
#include <stdlib.h>
13421
#endif
13275
#include <errno.h>
13422
#include <errno.h>
13276
#ifndef	HAVE_ERRNO_DEF
13423
#ifndef	HAVE_ERRNO_DEF
13277
extern	int	errno;
13424
extern	int	errno;
Lines 13464-13469 else Link Here
13464
#line 13465 "configure"
13611
#line 13465 "configure"
13465
#include "confdefs.h"
13612
#include "confdefs.h"
13466
13613
13614
#ifdef HAVE_STDLIB_H
13615
#include <stdlib.h>
13616
#endif
13467
#include <inttypes.h>
13617
#include <inttypes.h>
13468
int
13618
int
13469
main()
13619
main()
Lines 13507-13512 else Link Here
13507
#line 13508 "configure"
13657
#line 13508 "configure"
13508
#include "confdefs.h"
13658
#include "confdefs.h"
13509
13659
13660
#ifdef HAVE_STDLIB_H
13661
#include <stdlib.h>
13662
#endif
13510
#include <sys/types.h>
13663
#include <sys/types.h>
13511
int
13664
int
13512
main()
13665
main()
Lines 13550-13555 else Link Here
13550
#line 13551 "configure"
13703
#line 13551 "configure"
13551
#include "confdefs.h"
13704
#include "confdefs.h"
13552
13705
13706
#ifdef HAVE_STDLIB_H
13707
#include <stdlib.h>
13708
#endif
13553
int
13709
int
13554
main()
13710
main()
13555
{ long long ll = 123456789012LL;
13711
{ long long ll = 123456789012LL;
Lines 19380-19385 else Link Here
19380
#line 19381 "configure"
19536
#line 19381 "configure"
19381
#include "confdefs.h"
19537
#include "confdefs.h"
19382
19538
19539
#ifdef HAVE_STDLIB_H
19540
#include <stdlib.h>
19541
#endif
19383
#if !defined(__CYGWIN32__) && !defined(__CYGWIN__)
19542
#if !defined(__CYGWIN32__) && !defined(__CYGWIN__)
19384
static int mcalled;
19543
static int mcalled;
19385
char *
19544
char *
Lines 19401-19407 malloc(s) Link Here
19401
free(p) char *p;{}
19560
free(p) char *p;{}
19402
#endif	/* !defined(__CYGWIN32__) && !defined(__CYGWIN__) */
19561
#endif	/* !defined(__CYGWIN32__) && !defined(__CYGWIN__) */
19403
	
19562
	
19404
main()
19563
int main()
19405
{
19564
{
19406
#if !defined(__CYGWIN32__) && !defined(__CYGWIN__)
19565
#if !defined(__CYGWIN32__) && !defined(__CYGWIN__)
19407
#ifdef	HAVE_STRDUP
19566
#ifdef	HAVE_STRDUP
Lines 19445-19450 else Link Here
19445
#line 19446 "configure"
19604
#line 19446 "configure"
19446
#include "confdefs.h"
19605
#include "confdefs.h"
19447
19606
19607
#ifdef HAVE_STDLIB_H
19608
#include <stdlib.h>
19609
#endif
19448
extern	long	timezone;
19610
extern	long	timezone;
19449
19611
19450
int
19612
int
Lines 19529-19534 else Link Here
19529
#line 19530 "configure"
19691
#line 19530 "configure"
19530
#include "confdefs.h"
19692
#include "confdefs.h"
19531
19693
19694
#ifdef HAVE_STDLIB_H
19695
#include <stdlib.h>
19696
#endif
19532
extern	char	*__progname;
19697
extern	char	*__progname;
19533
19698
19534
int
19699
int
Lines 19570-19575 else Link Here
19570
#line 19571 "configure"
19735
#line 19571 "configure"
19571
#include "confdefs.h"
19736
#include "confdefs.h"
19572
19737
19738
#ifdef HAVE_STDLIB_H
19739
#include <stdlib.h>
19740
#endif
19573
extern	char	*__progname_full;
19741
extern	char	*__progname_full;
19574
19742
19575
int
19743
int
Lines 19612-19618 else Link Here
19612
#line 19613 "configure"
19780
#line 19613 "configure"
19613
#include "confdefs.h"
19781
#include "confdefs.h"
19614
19782
19615
main()
19783
#ifdef HAVE_STDLIB_H
19784
#include <stdlib.h>
19785
#endif
19786
int main()
19616
{
19787
{
19617
	int	ret = 0;
19788
	int	ret = 0;
19618
19789
Lines 19664-19673 else Link Here
19664
#line 19665 "configure"
19835
#line 19665 "configure"
19665
#include "confdefs.h"
19836
#include "confdefs.h"
19666
19837
19838
#ifdef HAVE_STDLIB_H
19839
#include <stdlib.h>
19840
#endif
19667
#include <sys/types.h>
19841
#include <sys/types.h>
19668
#include <sys/stat.h>
19842
#include <sys/stat.h>
19669
19843
19670
main()
19844
int main()
19671
{
19845
{
19672
	int	ret = 0;
19846
	int	ret = 0;
19673
	int	f;
19847
	int	f;
Lines 19768-19773 else Link Here
19768
#line 19769 "configure"
19942
#line 19769 "configure"
19769
#include "confdefs.h"
19943
#include "confdefs.h"
19770
19944
19945
#ifdef HAVE_STDLIB_H
19946
#include <stdlib.h>
19947
#endif
19771
# ifdef HAVE_UNISTD_H
19948
# ifdef HAVE_UNISTD_H
19772
#  include <unistd.h>
19949
#  include <unistd.h>
19773
# endif
19950
# endif
Lines 19795-19801 else Link Here
19795
extern	int	errno;
19972
extern	int	errno;
19796
#endif
19973
#endif
19797
19974
19798
main()
19975
int main()
19799
{
19976
{
19800
#ifdef	_MSC_VER
19977
#ifdef	_MSC_VER
19801
/*
19978
/*
Lines 19891-19896 else Link Here
19891
#line 19892 "configure"
20068
#line 19892 "configure"
19892
#include "confdefs.h"
20069
#include "confdefs.h"
19893
20070
20071
#ifdef HAVE_STDLIB_H
20072
#include <stdlib.h>
20073
#endif
19894
#ifdef	HAVE_FNMATCH
20074
#ifdef	HAVE_FNMATCH
19895
#include <fnmatch.h>
20075
#include <fnmatch.h>
19896
#endif
20076
#endif
Lines 19901-19907 else Link Here
19901
#endif
20081
#endif
19902
#endif
20082
#endif
19903
20083
19904
main()
20084
int main()
19905
{
20085
{
19906
	int	ret;
20086
	int	ret;
19907
20087
Lines 23990-23995 else Link Here
23990
#line 23991 "configure"
24170
#line 23991 "configure"
23991
#include "confdefs.h"
24171
#include "confdefs.h"
23992
24172
24173
#ifdef HAVE_STDLIB_H
24174
#include <stdlib.h>
24175
#endif
23993
#include <sys/types.h>
24176
#include <sys/types.h>
23994
#include <sys/stat.h>
24177
#include <sys/stat.h>
23995
24178
Lines 24044-24049 else Link Here
24044
#line 24045 "configure"
24227
#line 24045 "configure"
24045
#include "confdefs.h"
24228
#include "confdefs.h"
24046
24229
24230
#ifdef HAVE_STDLIB_H
24231
#include <stdlib.h>
24232
#endif
24047
#include <sys/types.h>
24233
#include <sys/types.h>
24048
#include <sys/stat.h>
24234
#include <sys/stat.h>
24049
24235
Lines 24098-24103 else Link Here
24098
#line 24099 "configure"
24284
#line 24099 "configure"
24099
#include "confdefs.h"
24285
#include "confdefs.h"
24100
24286
24287
#ifdef HAVE_STDLIB_H
24288
#include <stdlib.h>
24289
#endif
24101
#include <sys/types.h>
24290
#include <sys/types.h>
24102
#include <sys/stat.h>
24291
#include <sys/stat.h>
24103
24292
Lines 24152-24157 else Link Here
24152
#line 24153 "configure"
24341
#line 24153 "configure"
24153
#include "confdefs.h"
24342
#include "confdefs.h"
24154
24343
24344
#ifdef HAVE_STDLIB_H
24345
#include <stdlib.h>
24346
#endif
24155
#include <sys/types.h>
24347
#include <sys/types.h>
24156
#include <sys/stat.h>
24348
#include <sys/stat.h>
24157
24349
24158
- 

Return to bug 903876