Newer
Older
Handbook / configuration / include / ac_check_rqrd_class.m4
  1. dnl @synopsis AC_CHECK_RQRD_CLASS
  2. dnl
  3. dnl AC_CHECK_RQRD_CLASS tests the existence of a given Java class,
  4. dnl either in a jar or in a '.class' file and fails if it doesn't
  5. dnl exist. Its success or failure can depend on a proper setting of the
  6. dnl CLASSPATH env. variable.
  7. dnl
  8. dnl Note: This is part of the set of autoconf M4 macros for Java
  9. dnl programs. It is VERY IMPORTANT that you download the whole set,
  10. dnl some macros depend on other. Unfortunately, the autoconf archive
  11. dnl does not support the concept of set of macros, so I had to break it
  12. dnl for submission. The general documentation, as well as the sample
  13. dnl configure.in, is included in the AC_PROG_JAVA macro.
  14. dnl
  15. dnl @category Java
  16. dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>
  17. dnl @version 2000-07-19
  18. dnl @license GPLWithACException
  19.  
  20. AC_DEFUN([AC_CHECK_RQRD_CLASS],[
  21. CLASS=`echo $1|sed 's/\./_/g'`
  22. AC_CHECK_CLASS($1)
  23. if test "$HAVE_LAST_CLASS" = "no"; then
  24. AC_MSG_ERROR([Required class $1 missing, exiting.])
  25. fi
  26. ])