dnl for JPilot support in addressbook
dnl no check for libraries: these are dynamically loaded
-AC_MSG_CHECKING([whether to use jpilot])
AC_ARG_ENABLE(jpilot,
[ --enable-jpilot Enable JPilot support [default=no]],
[ac_cv_enable_jpilot=$enableval], [ac_cv_enable_jpilot=no])
+
+AC_MSG_CHECKING([whether to use jpilot])
if test "$ac_cv_enable_jpilot" = yes; then
AC_MSG_RESULT(yes)
if test "$ac_cv_enable_jpilot" = yes; then
- AC_CHECK_HEADERS(pi-args.h pi-appinfo.h pi-address, , [ac_cv_enable_jpilot=no])
+ AC_CHECK_HEADERS(pi-args.h pi-appinfo.h pi-address.h, , [ac_cv_enable_jpilot=no])
if test "$ac_cv_enable_jpilot" = yes; then
LIBS="$LIBS -lpisock"
AC_DEFINE(USE_JPILOT)