source: heimdal/trunk/cf/aix.m4@ 4

Last change on this file since 4 was 1, checked in by Paul Smedley, 10 years ago

Initial commit of Heimdal 1.5.3

File size: 1.2 KB
Line 
1dnl
2dnl $Id$
3dnl
4
5AC_DEFUN([rk_AIX],[
6
7aix=no
8case "$host" in
9*-*-aix3*)
10 aix=3
11 ;;
12*-*-aix[[4-9]]*)
13 aix=4
14 ;;
15esac
16
17AM_CONDITIONAL(AIX, test "$aix" != no)dnl
18AM_CONDITIONAL(AIX4, test "$aix" = 4)dnl
19
20AC_ARG_ENABLE(dynamic-afs,
21 AS_HELP_STRING([--disable-dynamic-afs],
22 [do not use loaded AFS library with AIX]))
23
24if test "$aix" != no; then
25
26 AC_DEFINE(NEED_QSORT, 1, [if your qsort is not a stable sort])
27
28 if test "$enable_dynamic_afs" != no; then
29 AC_REQUIRE([rk_DLOPEN])
30 if test "$ac_cv_func_dlopen" = no; then
31 AC_FIND_FUNC_NO_LIBS(loadquery, ld)
32 fi
33 if test "$ac_cv_func_dlopen" != no; then
34 AIX_EXTRA_KAFS='$(LIB_dlopen)'
35 elif test "$ac_cv_func_loadquery" != no; then
36 AIX_EXTRA_KAFS='$(LIB_loadquery)'
37 else
38 AC_MSG_NOTICE([not using dynloaded AFS library])
39 AIX_EXTRA_KAFS=
40 enable_dynamic_afs=no
41 fi
42 else
43 AIX_EXTRA_KAFS=
44 fi
45fi
46
47AM_CONDITIONAL(AIX_DYNAMIC_AFS, test "$enable_dynamic_afs" != no)dnl
48AC_SUBST(AIX_EXTRA_KAFS)dnl
49
50if test "$aix" != no; then
51 AC_DEFINE([_ALL_SOURCE],1,[Required for functional/sane headers on AIX])
52fi
53
54AH_BOTTOM([#if _AIX
55/* XXX this is gross, but kills about a gazillion warnings */
56struct ether_addr;
57struct sockaddr;
58struct sockaddr_dl;
59struct sockaddr_in;
60#endif])
61
62])
Note: See TracBrowser for help on using the repository browser.