configure.in 1.56 KB
AC_INIT([Makefile.in])

AC_PROG_INSTALL
AC_CANONICAL_SYSTEM

if test -d ${srcdir}/spu ; then
  configdirs="spu"
fi

case "${target}" in
  sparclite-*-*)
    if test -d ${srcdir}/sparclite ; then
      configdirs="$configdirs sparclite"
    fi
    ;;
  *mips*-*-pe* | *sh*-*-pe* | *arm*-*-wince | *arm*-wince-pe* )
    if test -d ${srcdir}/wince ; then
      configdirs="$configdirs wince"
    fi
    ;;
esac

all_subdirs=""
install_subdirs=""
mostlyclean_subdirs=""
clean_subdirs=""
distclean_subdirs=""
maintainer_clean_subdirs=""

for dir in $configdirs ; do
    all_subdirs="${all_subdirs} all-$dir"
    install_subdirs="${install_subdirs} install-$dir"
    mostlyclean_subdirs="${mostlyclean_subdirs} mostlyclean-$dir"
    clean_subdirs="${clean_subdirs} clean-$dir"
    distclean_subdirs="${distclean_subdirs} distclean-$dir"
    maintainer_clean_subdirs="${maintainer_clean_subdirs} maintainer-clean-$dir"
done

AC_SUBST([all_subdirs])
AC_SUBST([install_subdirs])
AC_SUBST([mostlyclean_subdirs])
AC_SUBST([clean_subdirs])
AC_SUBST([distclean_subdirs])
AC_SUBST([maintainer_clean_subdirs])

case "${srcdir}" in
  [[\\/]]* | ?:[[\\/]]* ) # Absolute
    abs_srcdir=${srcdir}
    ;;
  *) 
    abs_srcdir="../${srcdir}"
    ;;
esac
AC_SUBST([abs_srcdir])

case "${cache_file}" in
  [[\\/]]* | ?:[[\\/]]* ) # Absolute
    abs_cache_file=${cache_file}
    ;;
  *) 
    abs_cache_file="../${cache_file}"
    ;;
esac
subconfigure_args=${ac_configure_args}
subconfigure_args="${subconfigure_args} --cache-file=${abs_cache_file} --srcdir=${abs_srcdir}"
AC_SUBST([subconfigure_args])

AC_OUTPUT([Makefile])