X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fd10v%2Fconfigure.in;h=033b0bc161589179292b5f77768f827967a6f272;hb=aa49c64f3e93a777b3938daac491bbc983f93cf4;hp=cd1700a1b8beb472ac19c430b8029974a6b1371d;hpb=7eebfc6296f0830a435a21be0ab37a076c8566bd;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/d10v/configure.in b/sim/d10v/configure.in index cd1700a1b8..033b0bc161 100644 --- a/sim/d10v/configure.in +++ b/sim/d10v/configure.in @@ -1,42 +1,10 @@ dnl Process this file with autoconf to produce a configure script. +sinclude(../common/aclocal.m4) AC_PREREQ(2.5)dnl AC_INIT(Makefile.in) -AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..) -AC_CANONICAL_SYSTEM -AC_ARG_PROGRAM -AC_PROG_CC -AC_PROG_INSTALL -AC_C_BIGENDIAN +SIM_AC_COMMON -. ${srcdir}/../../bfd/configure.host +AC_CHECK_HEADERS(unistd.h) -AC_ARG_ENABLE(sim-cflags, -[ --enable-sim-cflags=opts Extra CFLAGS for use in building simulator], -[case "${enableval}" in - yes) sim_cflags="-O2";; - trace) sim_cflags="-O2 -DDEBUG=3";; - no) sim_cflags="";; - *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; -esac -if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then - echo "Setting sim cflags = $sim_cflags" 6>&1 -fi],[sim_cflags=""])dnl - -AC_SUBST(CFLAGS) -AC_SUBST(HDEFINES) -AR=${AR-ar} -AC_SUBST(AR) -AC_PROG_RANLIB -AC_SUBST(sim_cflags) - -# Put a plausible default for CC_FOR_BUILD in Makefile. -AC_C_CROSS -if test "x$cross_compiling" = "xno"; then - CC_FOR_BUILD='$(CC)' -else - CC_FOR_BUILD=gcc -fi -AC_SUBST(CC_FOR_BUILD) - -AC_OUTPUT(Makefile) +SIM_AC_OUTPUT