set cfg_file=configure.ac
if ( ! -e ${module_src}/${cfg_file} ) then
set cfg_file=configure.in.base
+ endif
+ if ( -e ${module_src}/${cfg_file} ) then
set vx=`grep -e "^VERSION=" ${module_src}/${cfg_file} | awk -F= '{ if (NF>1) print $NF; }' | tr -d '[:space:]'`
if ( "$vx" == "" ) then
set vx=`grep -e "^AC_INIT" ${module_src}/${cfg_file} | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
endif
- else
- set vx=`grep -e "^AC_INIT" ${module_src}/${cfg_file} | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
endif
set px=${BUILD_DIR}/${module}
if ( "$prefix" != "" ) then
cfg_file=configure.ac
if [ ! -e ${module_src}/${cfg_file} ] ; then
cfg_file=configure.in.base
+ fi
+ if [ -e ${module_src}/${cfg_file} ] ; then
vx=`grep -e "^VERSION=" ${module_src}/${cfg_file} | awk -F= '{ if (NF>1) print $NF; }' | tr -d '[:space:]'`
if [ "$vx" == "" ] ; then
vx=`grep -e "^AC_INIT" ${module_src}/${cfg_file} | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
fi
- else
- vx=`grep -e "^AC_INIT" ${module_src}/${cfg_file} | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
fi
px=${BUILD_DIR}/${module}
if [ "$prefix" != "" ] ; then