dnl @synopsis AX_SPEC_FILE [(rpmspecfile [,subdirpath])] dnl dnl set the specfile - if no argument has been given then check whether dnl the ac_unique_file looks like a .spec file and use it. This macro dnl is ac_REQUIRED by many AX_SPEC_ routines. dnl dnl the AX_SPEC_EXTRACT macro is a helper used by many AX_SPEC_ dnl routines and therefore placed here to be automatically included in dnl the macro set of (older) aclocal/acinclude. dnl dnl AX_SPEC_EXTRACT(shellvar [,specvar [,defaultvalue]]) dnl dnl @category Misc dnl @author Guido U. Draheim dnl @version 2005-01-21 dnl @license GPLWithACException AC_DEFUN([AX_SPEC_FILE], [ AC_MSG_CHECKING([rpm spec file]) if test ".$1" != "." ; then ax_spec_file_="$1" ax_spec_file=`basename $1` else case ".$ac_unique_file" in *.spec) ax_spec_file="$ac_unique_file" ax_spec_file_="$ac_unique_file" ;; *) ax_spec_file="TODO" if test ".$PACKAGE" != "." then ax_spec_file_="$PACKAGE.spec" else ax_spec_file_="README" fi cat m4_ifset([AS_MESSAGE_LOG_FD],[>&AS_MESSAGE_LOG_FD],[>>config.log]) <