ac_check_rqrd_class.m4 (1013B)
1 dnl @synopsis AC_CHECK_RQRD_CLASS 2 dnl 3 dnl AC_CHECK_RQRD_CLASS tests the existence of a given Java class, either in 4 dnl a jar or in a '.class' file and fails if it doesn't exist. 5 dnl 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 programs. 9 dnl It is VERY IMPORTANT that you download the whole set, some 10 dnl macros depend on other. Unfortunately, the autoconf archive does not 11 dnl support the concept of set of macros, so I had to break it for 12 dnl submission. 13 dnl The general documentation, as well as the sample configure.in, is 14 dnl included in the AC_PROG_JAVA macro. 15 dnl 16 dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr> 17 dnl @version $Id: ac_check_rqrd_class.m4,v 1.1 1999/12/29 09:22:26 bortz Exp $ 18 dnl 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 ])