1
# Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
2
# Copyright (C) 2001 Internet Software Consortium.
1
# Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
2
# Copyright (C) 2001, 2003 Internet Software Consortium.
4
# Permission to use, copy, modify, and distribute this software for any
4
# Permission to use, copy, modify, and/or distribute this software for any
5
5
# purpose with or without fee is hereby granted, provided that the above
6
6
# copyright notice and this permission notice appear in all copies.
323
if test "X$GCC" = "Xyes"; then
327
CCOPT="$CCOPT -pthread"
328
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
332
CCOPT="$CCOPT -pthread"
335
LIBS="$LIBS -lthread"
338
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
345
CCOPT="$CCOPT -pthread"
352
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
356
CCOPT="$CCOPT -Kthread"
360
AC_DEFINE(_REENTRANT)
361
ALWAYS_DEFINES="-D_REENTRANT"
362
DO_PTHREADS="#define DO_PTHREADS 1"
363
WANT_IRS_THREADSGR_OBJS="\${WANT_IRS_THREADSGR_OBJS}"
364
WANT_IRS_THREADSPW_OBJS="\${WANT_IRS_THREADSPW_OBJS}"
367
WANT_IRS_THREADS_OBJS="";;
369
WANT_IRS_THREADS_OBJS="\${WANT_IRS_THREADS_OBJS}";;
371
WANT_THREADS_OBJS="\${WANT_THREADS_OBJS}"
323
375
# We'd like to use sigwait() too
325
AC_CHECK_LIB(c, sigwait,
326
AC_DEFINE(HAVE_SIGWAIT),
327
AC_CHECK_LIB(pthread, sigwait,
328
AC_DEFINE(HAVE_SIGWAIT),
329
AC_CHECK_LIB(pthread, _Psigwait,
330
AC_DEFINE(HAVE_SIGWAIT),))
377
AC_CHECK_FUNC(sigwait,
378
AC_DEFINE(HAVE_SIGWAIT),
379
AC_CHECK_LIB(c, sigwait,
380
AC_DEFINE(HAVE_SIGWAIT),
381
AC_CHECK_LIB(pthread, sigwait,
382
AC_DEFINE(HAVE_SIGWAIT),
383
AC_CHECK_LIB(pthread, _Psigwait,
384
AC_DEFINE(HAVE_SIGWAIT),))))
333
386
AC_CHECK_FUNC(pthread_attr_getstacksize,
334
387
AC_DEFINE(HAVE_PTHREAD_ATTR_GETSTACKSIZE),)
389
442
AC_CHECK_FUNC(sysconf, AC_DEFINE(HAVE_SYSCONF),)
391
if test "X$GCC" = "Xyes"; then
395
CCOPT="$CCOPT -pthread"
396
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
400
CCOPT="$CCOPT -pthread"
403
LIBS="$LIBS -lthread"
406
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
413
CCOPT="$CCOPT -pthread"
420
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
424
CCOPT="$CCOPT -Kthread"
428
AC_DEFINE(_REENTRANT)
429
ALWAYS_DEFINES="-D_REENTRANT"
430
DO_PTHREADS="#define DO_PTHREADS 1"
431
WANT_IRS_THREADSGR_OBJS="\${WANT_IRS_THREADSGR_OBJS}"
432
WANT_IRS_THREADSPW_OBJS="\${WANT_IRS_THREADSPW_OBJS}"
435
WANT_IRS_THREADS_OBJS="";;
437
WANT_IRS_THREADS_OBJS="\${WANT_IRS_THREADS_OBJS}";;
439
WANT_THREADS_OBJS="\${WANT_THREADS_OBJS}"
442
445
ALWAYS_DEFINES=""
443
446
DO_PTHREADS="#undef DO_PTHREADS"
456
459
AC_SUBST(WANT_THREADS_OBJS)
458
461
AC_CHECK_FUNC(strlcat, AC_DEFINE(HAVE_STRLCAT))
462
AC_CHECK_FUNC(memmove, AC_DEFINE(HAVE_MEMMOVE))
463
AC_CHECK_FUNC(memchr, AC_DEFINE(HAVE_MEMCHR))
464
AC_CHECK_FUNC(strtoul, , AC_DEFINE(NEED_STRTOUL))
460
466
AC_CHECK_FUNC(if_nametoindex,
461
467
[USE_IFNAMELINKID="#define USE_IFNAMELINKID 1"],
485
491
[NEED_STRERROR="#define NEED_STRERROR 1"])
486
492
AC_SUBST(NEED_STRERROR)
494
if test -n "$NEED_STRERROR"
496
AC_MSG_CHECKING([for extern char * sys_errlist[]])
497
AC_TRY_LINK([ extern int sys_nerr; extern char *sys_errlist[]; ],
498
[ const char *p = sys_errlist[0]; ],
500
AC_DEFINE(USE_SYSERROR_LIST),
489
505
# flockfile is usually provided by pthreads, but we may want to use it
490
506
# even if compiled with --disable-threads.
513
529
IRIX_DNSSEC_WARNINGS_HACK=""
515
531
if test "X$GCC" = "Xyes"; then
516
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings"
532
AC_MSG_CHECKING(if "$CC" supports -fno-strict-aliasing)
534
CFLAGS=-fno-strict-aliasing
535
AC_TRY_COMPILE(,, [FNOSTRICTALIASING=yes],[FNOSTRICTALIASING=no])
537
if test "$FNOSTRICTALIASING" = "yes"; then
539
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
542
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
866
901
ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"],
867
902
[AC_MSG_RESULT(no -- disabling runtime ipv6 support)
868
903
ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"])
870
AC_MSG_CHECKING(for sockaddr_storage)
872
#include <sys/types.h>
873
#include <sys/socket.h>
874
#include <netinet/in.h>
876
$isc_netinet6in6_hack
878
[struct sockaddr_storage xyzzy; return (0);],
880
HAVE_SOCKADDR_STORAGE="#define HAVE_SOCKADDR_STORAGE 1"],
882
HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE"])
885
906
HAS_INET6_STRUCTS="#undef HAS_INET6_STRUCTS"
886
907
NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY"
887
908
ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
888
909
HAVE_SIN6_SCOPE_ID="#define HAVE_SIN6_SCOPE_ID 1"
889
HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE"
890
910
ISC_IPV6_H="ipv6.h"
891
911
ISC_IPV6_O="ipv6.$O"
892
912
ISC_ISCIPV6_O="unix/ipv6.$O"
917
AC_MSG_CHECKING(for sockaddr_storage)
919
#include <sys/types.h>
920
#include <sys/socket.h>
921
#include <netinet/in.h>
923
[struct sockaddr_storage xyzzy; return (0);],
925
HAVE_SOCKADDR_STORAGE="#define HAVE_SOCKADDR_STORAGE 1"],
927
HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE"])
897
929
AC_SUBST(HAS_INET6_STRUCTS)
898
930
AC_SUBST(ISC_PLATFORM_NEEDNETINETIN6H)
899
931
AC_SUBST(ISC_PLATFORM_NEEDNETINET6IN6H)
1104
1139
ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"])
1105
1140
AC_SUBST(ISC_PLATFORM_NEEDPORTT)
1142
AC_MSG_CHECKING(for struct timespec)
1144
#include <sys/types.h>
1146
[struct timespec ts = { 0, 0 }; return (0);],
1148
ISC_PLATFORM_NEEDTIMESPEC="#undef ISC_PLATFORM_NEEDTIMESPEC"],
1150
ISC_PLATFORM_NEEDTIMESPEC="#define ISC_PLATFORM_NEEDTIMESPEC 1"])
1151
AC_SUBST(ISC_PLATFORM_NEEDTIMESPEC)
1108
1154
# Check for addrinfo
1222
1268
AC_CHECK_FUNC(strsep,
1223
1269
[ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"],
1224
1270
[ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"])
1273
AC_MSG_CHECKING(for char *sprintf)
1277
[ char buf[2]; return(*sprintf(buf,"x"));],
1278
AC_DEFINE(SPRINTF_CHAR)
1284
AC_MSG_CHECKING(for char *vsprintf)
1286
*sunos4*) # not decared in any header file.
1287
AC_DEFINE(VSPRINTF_CHAR)
1294
[ char buf[2]; return(*vsprintf(buf,"x"));],
1295
AC_DEFINE(VSPRINTF_CHAR)
1225
1303
AC_CHECK_FUNC(vsnprintf,
1226
1304
[ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"],
1227
1305
[ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
1397
1470
#undef __USE_MISC
1398
1471
#define __USE_MISC
1399
1472
[#include <netdb.h>
1473
int getnetbyaddr_r (in_addr_t, int, struct netent *, struct netent_data *);
1477
NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr"
1478
NET_R_BAD="#define NET_R_BAD (-1)"
1479
NET_R_COPY="#define NET_R_COPY ndptr"
1480
NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr"
1481
NET_R_OK="#define NET_R_OK 0"
1482
NET_R_SETANSWER="#undef NET_R_SETANSWER"
1483
NET_R_RETURN="#define NET_R_RETURN int"
1484
GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"
1485
NETENT_DATA="#define NETENT_DATA 1"
1400
1491
int getnetbyaddr_r (long, int, struct netent *, struct netent_data *);
1824
1916
ia64-hp-hpux11.*)
1917
NGR_R_CONST="#define NGR_R_CONST"
1921
# HPUX doesn't have a prototype for getnetgrent_r().
1923
NGR_R_CONST="#define NGR_R_CONST"
1924
NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
1925
NGR_R_BAD="#define NGR_R_BAD (0)"
1926
NGR_R_COPY="#define NGR_R_COPY buf, buflen"
1927
NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
1928
NGR_R_OK="#define NGR_R_OK 1"
1929
NGR_R_RETURN="#define NGR_R_RETURN int"
1827
1933
AC_CHECK_FUNC(getnetgrent_r,
1828
1934
AC_TRY_COMPILE(
1830
1936
#undef __USE_MISC
1831
1937
#define __USE_MISC
1832
1940
#include <netdb.h>
1833
1942
int getnetgrent_r(char **m, char **u, char **d, char *b, int l) {}
1947
NGR_R_CONST="#define NGR_R_CONST"
1838
1948
NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
1839
1949
NGR_R_BAD="#define NGR_R_BAD (0)"
1840
1950
NGR_R_COPY="#define NGR_R_COPY buf, buflen"
1848
1958
#undef __USE_MISC
1849
1959
#define __USE_MISC
1850
1962
#include <netdb.h>
1851
1964
int getnetgrent_r(char **m, char **u, char **d, char *b, size_t l) {}
1969
NGR_R_CONST="#define NGR_R_CONST"
1856
1970
NGR_R_ARGS="#define NGR_R_ARGS char *buf, size_t buflen"
1857
1971
NGR_R_BAD="#define NGR_R_BAD (0)"
1858
1972
NGR_R_COPY="#define NGR_R_COPY buf, buflen"
1866
1980
#undef __USE_MISC
1867
1981
#define __USE_MISC
1868
1984
#include <netdb.h>
1869
extern int getnetgrent_r( char **, char **, char **, void **);
1986
extern int getnetgrent_r(char **, char **, char **, void **);
1991
NGR_R_CONST="#define NGR_R_CONST"
1874
1992
NGR_R_ARGS="#define NGR_R_ARGS void **buf"
1875
1993
NGR_R_BAD="#define NGR_R_BAD (0)"
1876
1994
NGR_R_COPY="#define NGR_R_COPY buf"
1880
1998
NGR_R_PRIVATE="#define NGR_R_PRIVATE 1"
2009
extern int getnetgrent_r(const char **, const char **, const char **, void *);
2014
NGR_R_CONST="#define NGR_R_CONST const"
2015
NGR_R_ARGS="#define NGR_R_ARGS void *buf"
2016
NGR_R_BAD="#define NGR_R_BAD (0)"
2017
NGR_R_COPY="#define NGR_R_COPY buf"
2018
NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"
2019
NGR_R_OK="#define NGR_R_OK 1"
2020
NGR_R_RETURN="#define NGR_R_RETURN int"
2021
NGR_R_PRIVATE="#define NGR_R_PRIVATE 2"
2029
NGR_R_CONST="#define NGR_R_CONST"
1887
2030
NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"
1888
2031
NGR_R_BAD="#define NGR_R_BAD (0)"
1889
2032
NGR_R_COPY="#define NGR_R_COPY buf, buflen"
1901
2045
AC_SUBST(NGR_R_PRIVATE)
1903
2047
AC_CHECK_FUNC(endnetgrent_r,
2056
void endnetgrent_r(void **ptr);
2062
NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /* empty */"
2063
NGR_R_END_RETURN="#define NGR_R_END_RETURN void"
2064
NGR_R_END_ARGS="#define NGR_R_END_ARGS NGR_R_ARGS"
2075
void endnetgrent_r(void *ptr);
2081
NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /* empty */"
2082
NGR_R_END_RETURN="#define NGR_R_END_RETURN void"
2083
NGR_R_END_ARGS="#define NGR_R_END_ARGS void *buf"
1904
2087
NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) return (x)"
1905
2088
NGR_R_END_RETURN="#define NGR_R_END_RETURN int"
1906
NGR_R_ENT_ARGS="#define NGR_R_ENT_ARGS NGR_R_ARGS"
2089
NGR_R_END_ARGS="#define NGR_R_END_ARGS NGR_R_ARGS"
1908
2094
NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /*empty*/"
1909
2095
NGR_R_END_RETURN="#define NGR_R_END_RETURN void"
1910
NGR_R_ENT_ARGS="#undef NGR_R_ENT_ARGS /*empty*/"
2096
NGR_R_END_ARGS="#undef NGR_R_END_ARGS /*empty*/"
1911
2097
AC_DEFINE(NEED_ENDNETGRENT_R)
1913
2099
AC_SUBST(NGR_R_END_RESULT)
1914
2100
AC_SUBST(NGR_R_END_RETURN)
1915
AC_SUBST(NGR_R_ENT_ARGS)
2101
AC_SUBST(NGR_R_END_ARGS)
1917
2103
AC_CHECK_FUNC(setnetgrent_r,
1919
2105
case "$host" in
1921
2110
NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/"
1922
2111
NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void"
2112
NGR_R_SET_ARGS="#define NGR_R_SET_ARGS NGR_R_ARGS"
2113
NGR_R_SET_CONST="#define NGR_R_SET_CONST"
1925
2119
NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK"
1926
2120
NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int"
2121
NGR_R_SET_ARGS="#undef NGR_R_SET_ARGS /* empty */"
2122
NGR_R_SET_CONST="#define NGR_R_SET_CONST"
2133
void setnetgrent_r(void **ptr);
2139
NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /* empty */"
2140
NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void"
2141
NGR_R_SET_ARGS="#define NGR_R_SET_ARGS void **buf"
2142
NGR_R_SET_CONST="#define NGR_R_SET_CONST"
2153
extern int setnetgrent_r(char *, void **);
2159
NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK"
2160
NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int"
2161
NGR_R_SET_ARGS="#define NGR_R_SET_ARGS void **buf"
2162
NGR_R_SET_CONST="#define NGR_R_SET_CONST"
2166
NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK"
2167
NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int"
2168
NGR_R_SET_ARGS="#undef NGR_R_SET_ARGS"
2169
NGR_R_SET_CONST="#define NGR_R_SET_CONST const"
1931
2176
NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/"
1932
2177
NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void"
2178
NGR_R_SET_ARGS="#undef NGR_R_SET_ARGS"
2179
NGR_R_SET_CONST="#define NGR_R_SET_CONST const"
1934
2182
AC_SUBST(NGR_R_SET_RESULT)
1935
2183
AC_SUBST(NGR_R_SET_RETURN)
2184
AC_SUBST(NGR_R_SET_ARGS)
2185
AC_SUBST(NGR_R_SET_CONST)
1937
2187
AC_CHECK_FUNC(innetgr_r,,AC_DEFINE(NEED_INNETGR_R))
1981
2232
PROTO_R_OK="#define PROTO_R_OK 0"
1982
2233
PROTO_R_SETANSWER="#define PROTO_R_SETANSWER 1"
1983
2234
PROTO_R_RETURN="#define PROTO_R_RETURN int"
2235
PROTOENT_DATA="#undef PROTOENT_DATA"
2243
int getprotoent_r (struct protoent *, struct protoent_data *prot_data);
2250
PROTO_R_ARGS="#define PROTO_R_ARGS struct protoent_data *prot_data"
2251
PROTO_R_BAD="#define PROTO_R_BAD (-1)"
2252
PROTO_R_COPY="#define PROTO_R_COPY prot_data"
2253
PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS struct protoent_data *pdptr"
2254
PROTO_R_OK="#define PROTO_R_OK 0"
2255
PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"
2256
PROTO_R_RETURN="#define PROTO_R_RETURN int"
2257
PROTOENT_DATA="#define PROTOENT_DATA 1"
2022
2300
PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
2023
2301
PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
2024
2302
PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS"
2303
PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED"
2313
void endprotoent_r(struct protoent_data *);
2317
PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
2318
PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
2319
PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data"
2320
PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)"
2330
int endprotoent_r(struct protoent_data *);
2334
PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) return(0)"
2335
PROTO_R_END_RETURN="#define PROTO_R_END_RETURN int"
2336
PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data"
2337
PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)"
2029
2344
PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"
2030
2345
PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"
2031
2346
PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS /*empty*/"
2347
PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED"
2034
2350
AC_SUBST(PROTO_R_END_RESULT)
2035
2351
AC_SUBST(PROTO_R_END_RETURN)
2036
2352
AC_SUBST(PROTO_R_ENT_ARGS)
2353
AC_SUBST(PROTO_R_ENT_UNUSED)
2039
2356
ia64-hp-hpux11.*)
2186
2516
SERV_R_RETURN="#define SERV_R_RETURN int"
2524
getservent_r (struct servent *, struct servent_data *serv_data);
2527
SERV_R_ARGS="#define SERV_R_ARGS struct servent_data *serv_data"
2528
SERV_R_BAD="#define SERV_R_BAD (-1)"
2529
SERV_R_COPY="#define SERV_R_COPY serv_data"
2530
SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS struct servent_data *sdptr"
2531
SERV_R_OK="#define SERV_R_OK (0)"
2532
SERV_R_SETANSWER="#undef SERV_R_SETANSWER"
2533
SERV_R_RETURN="#define SERV_R_RETURN int"
2534
SERVENT_DATA="#define SERVENT_DATA 1"
2226
2576
SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
2227
2577
SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
2228
2578
SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"
2579
SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/"
2589
void endservent_r(struct servent_data *serv_data);
2594
SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
2595
SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
2596
SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data"
2597
SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)"
2607
int endservent_r(struct servent_data *serv_data);
2612
SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) return(x)"
2613
SERV_R_END_RETURN="#define SERV_R_END_RETURN int "
2614
SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data"
2615
SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)"
2233
2622
SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/"
2234
2623
SERV_R_END_RETURN="#define SERV_R_END_RETURN void "
2235
2624
SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/"
2625
SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/"
2238
2628
AC_SUBST(SERV_R_END_RESULT)
2239
2629
AC_SUBST(SERV_R_END_RETURN)
2240
2630
AC_SUBST(SERV_R_ENT_ARGS)
2631
AC_SUBST(SERV_R_ENT_UNUSED)
2243
2634
ia64-hp-hpux11.*)