ACLTX_CLASS(CLASSNAME,VARIABLETOSET[,ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) ,
2006年07月16日
Boretti Mathieu <boretti@eig.unige.ch>
lgpl
cryp.to ac-archive's LaTeX Support (released)
This macros test is class CLASSNAME exists and work and set VARIABLETOSET to yes or no If ACTION-IF-FOUND (and ACTION-IF-NOT-FOUND) are set, do the correct action
AC_DEFUN([ACLTX_CLASS],[
ACLTX_PACKAGE_LOCATION(1ドル.cls,2ドル_location)
if test "[$]2ドル_location" = "no" ; then
AC_MSG_WARN([Unable to locate the 1ドル.cls file])
[ac_cv_latex_class_]translit(1,ドル[-],[_])="no";
else
AC_CACHE_CHECK([for usability of class 1ドル],[ac_cv_latex_class_]translit(1,ドル[-],[_]),[
_ACLTX_TEST([\documentclass{1ドル}
\begin{document}
\end{document}],[ac_cv_latex_class_]translit(1,ドル[-],[_]))
])
fi
2ドル=$[ac_cv_latex_class_]translit(1,ドル[-],[_]) ; export 2ドル;
AC_SUBST(2ドル)
ifelse($#,2,[],$#,3,[
if test "[$]2ドル" = "yes" ;
then
3ドル
fi
],$#,4,[
ifelse(3,ドル[],[
if test "[$]2ドル" = "no" ;
then
4ドル
fi
],[
if test "[$]2ドル" = "yes" ;
then
3ドル
else
4ドル
fi
])
])
])