blob: 8cca23941edcb04190eb60938b56626f5b46b046 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
dnl
dnl $Id: aix.m4,v 1.9 2002/08/28 19:19:43 joda Exp $
dnl
AC_DEFUN(rk_AIX,[
aix=no
case "$host" in
*-*-aix3*)
aix=3
;;
*-*-aix4*|*-*-aix5*)
aix=4
;;
esac
AM_CONDITIONAL(AIX, test "$aix" != no)dnl
AM_CONDITIONAL(AIX4, test "$aix" = 4)
AC_ARG_ENABLE(dynamic-afs,
AC_HELP_STRING([--disable-dynamic-afs],
[do not use loaded AFS library with AIX]))
if test "$aix" != no; then
if test "$enable_dynamic_afs" != no; then
AC_REQUIRE([rk_DLOPEN])
if test "$ac_cv_func_dlopen" = no; then
AC_FIND_FUNC_NO_LIBS(loadquery, ld)
fi
if test "$ac_cv_func_dlopen" != no; then
AIX_EXTRA_KAFS='$(LIB_dlopen)'
elif test "$ac_cv_func_loadquery" != no; then
AIX_EXTRA_KAFS='$(LIB_loadquery)'
else
AC_MSG_NOTICE([not using dynloaded AFS library])
AIX_EXTRA_KAFS=
enable_dynamic_afs=no
fi
else
AIX_EXTRA_KAFS=
fi
fi
AM_CONDITIONAL(AIX_DYNAMIC_AFS, test "$enable_dynamic_afs" != no)dnl
AC_SUBST(AIX_EXTRA_KAFS)dnl
AH_BOTTOM([#if _AIX
#define _ALL_SOURCE
/* XXX this is gross, but kills about a gazillion warnings */
struct ether_addr;
struct sockaddr;
struct sockaddr_dl;
struct sockaddr_in;
#endif])
])
|