17 AM_CONDITIONAL(AIX, test "$aix" != no)dnl
18 AM_CONDITIONAL(AIX4, test "$aix" = 4)
21 AC_ARG_ENABLE(dynamic-afs,
22 AC_HELP_STRING([--disable-dynamic-afs],
23 [do not use loaded AFS library with AIX]))
25 if test "$aix" != no; then
26 if test "$enable_dynamic_afs" != no; then
27 AC_REQUIRE([rk_DLOPEN])
28 if test "$ac_cv_func_dlopen" = no; then
29 AC_FIND_FUNC_NO_LIBS(loadquery, ld)
31 if test "$ac_cv_func_dlopen" != no; then
32 AIX_EXTRA_KAFS='$(LIB_dlopen)'
33 elif test "$ac_cv_func_loadquery" != no; then
34 AIX_EXTRA_KAFS='$(LIB_loadquery)'
36 AC_MSG_NOTICE([not using dynloaded AFS library])
45 AM_CONDITIONAL(AIX_DYNAMIC_AFS, test "$enable_dynamic_afs" != no)dnl
46 AC_SUBST(AIX_EXTRA_KAFS)dnl
50 /* XXX this is gross, but kills about a gazillion warnings */