You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0 KiB

  1. dnl @synopsis XERCES_FILEMGR_SELECTION
  2. dnl
  3. dnl Determines the which filemgr to use
  4. dnl
  5. dnl @category C
  6. dnl @author James Berry
  7. dnl @version 2005-05-25
  8. dnl @license AllPermissive
  9. dnl
  10. dnl $Id: xerces_filemgr_selection.m4 676848 2008-07-15 09:22:54Z borisk $
  11. AC_DEFUN([XERCES_FILEMGR_SELECTION],
  12. [
  13. AC_MSG_CHECKING([for which File Manager to use])
  14. filemgr=
  15. # Platform specific checks
  16. case $host_os in
  17. windows* | mingw*)
  18. filemgr=Windows;
  19. AC_DEFINE([XERCES_USE_FILEMGR_WINDOWS], 1, [Define to use the Windows file mgr])
  20. ;;
  21. esac
  22. # Fall back to using posix files
  23. AS_IF([test -z "$filemgr"],
  24. [filemgr=POSIX;
  25. AC_DEFINE([XERCES_USE_FILEMGR_POSIX], 1, [Define to use the POSIX file mgr])
  26. ])
  27. AC_MSG_RESULT($filemgr)
  28. # Define the auto-make conditionals which determine what actually gets compiled
  29. # Note that these macros can't be executed conditionally, which is why they're here, not above.
  30. AM_CONDITIONAL([XERCES_USE_FILEMGR_POSIX], [test x"$filemgr" = xPOSIX])
  31. AM_CONDITIONAL([XERCES_USE_FILEMGR_WINDOWS],[test x"$filemgr" = xWindows])
  32. ]
  33. )