1dnl Process this file with autoconf to produce a configure script. 2m4_include([../config/override.m4]) 3AC_PREREQ(2.59)dnl 4AC_INIT(Makefile.in) 5 6AC_PROG_CC 7AC_PROG_INSTALL 8AC_CHECK_TOOL(AR, ar) 9AC_CHECK_TOOL(RANLIB, ranlib, :) 10 11AC_CANONICAL_SYSTEM 12AC_ARG_PROGRAM 13AC_PROG_CC 14AC_SUBST(CFLAGS) 15AC_SUBST(HDEFINES) 16AR=${AR-ar} 17AC_SUBST(AR) 18AC_PROG_RANLIB 19 20# Put a plausible default for CC_FOR_BUILD in Makefile. 21if test "x$cross_compiling" = "xno"; then 22 CC_FOR_BUILD='$(CC)' 23else 24 CC_FOR_BUILD=gcc 25fi 26AC_SUBST(CC_FOR_BUILD) 27CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} 28AC_SUBST(CFLAGS_FOR_BUILD) 29 30# If a cpu ever has more than one simulator to choose from, use 31# --enable-sim=... to choose. 32AC_ARG_ENABLE(sim, 33[AS_HELP_STRING([--enable-sim], [Enable the GNU simulator])], 34[case "${enableval}" in 35yes | no) ;; 36*) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;; 37esac]) 38 39m4_define([SIM_ARCH], [ 40 sim_arch=$1 41 AC_CONFIG_SUBDIRS($1) 42]) 43if test "${enable_sim}" != no; then 44 sinclude(configure.tgt) 45 AC_CONFIG_SUBDIRS(testsuite) 46 if test "$sim_igen" = yes; then 47 AC_CONFIG_SUBDIRS(igen) 48 fi 49fi 50 51AC_OUTPUT(Makefile) 52 53exit 0 54