AC_INIT(z8k-dis.c)
AC_CANONICAL_SYSTEM
+AC_ISC_POSIX
# We currently only use the version number for the name of any shared
# library. For user convenience, we always use the same version
fi
AC_ARG_PROGRAM
-ALL_LINGUAS=
-CY_GNU_GETTEXT
-
AM_MAINTAINER_MODE
AM_CYGWIN32
AM_EXEEXT
AC_PROG_CC
+ALL_LINGUAS=
+CY_GNU_GETTEXT
+
. ${srcdir}/../bfd/configure.host
AC_SUBST(HDEFINES)
AC_CHECK_HEADERS(string.h strings.h stdlib.h)
# start-sanitize-cygnus
-use_cgen=no
-if test ${USE_MAINTAINER_MODE} = yes ; then
- for targ in $target $canon_targets
- do
- case $targ in
- all) use_cgen=yes ;;
- m32r-*-*) use_cgen=yes ;;
- esac
- done
-fi
-if test $use_cgen = yes ; then
- AC_CHECK_PROG(SCHEME, guile, guile, guile)
-fi
+cgen_maint=no
+# Default is to use one in build tree.
+cgen=../cgen/cgen
+cgendir='$(srcdir)/../cgen'
+# Having --enable-maintainer-mode take arguments is another way to go.
+# ??? One can argue --with is more appropriate if one wants to specify
+# a directory name, but what we're doing here is an enable/disable kind
+# of thing and specifying both --enable and --with is klunky.
+# If you reeely want this to be --with, go ahead and change it.
+AC_ARG_ENABLE(cgen-maint,
+[ --enable-cgen-maint[=dir] build cgen generated files],
+[case "${enableval}" in
+ yes) cgen_maint=yes ;;
+ no) cgen_maint=no ;;
+ *)
+ # argument is cgen install directory (not implemented yet).
+ # Having a `share' directory might be more appropriate for the .scm,
+ # .cpu, etc. files.
+ cgen_maint=yes
+ cgendir=${cgen_maint}/lib/cgen
+ cgen=${cgendir}/bin/cgen
+ ;;
+esac])dnl
+AM_CONDITIONAL(CGEN_MAINT, test x${cgen_maint} = xyes)
+AC_SUBST(cgendir)
+AC_SUBST(cgen)
# end-sanitize-cygnus
# Horrible hacks to build DLLs on Windows.
WIN32LDFLAGS=
WIN32LIBADD=
case "${host}" in
-*-*-cygwin32*)
+*-*-cygwin*)
if test "$enable_shared" = "yes"; then
WIN32LDFLAGS="-no-undefined"
- WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -lcygwin"
+ WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
fi
;;
esac
bfd_arm_arch) ta="$ta arm-dis.lo" ;;
bfd_convex_arch) ;;
bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
-# start-sanitize-d30v
bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
-# end-sanitize-d30v
+ bfd_fr30_arch) ta="$ta $cgen_files fr30-opc.lo fr30-asm.lo fr30-dis.lo" ;;
bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
# end-sanitize-v850e
- bfd_vax_arch) ;;
+ bfd_vax_arch) ta="$ta vax-dis.lo" ;;
bfd_w65_arch) ta="$ta w65-dis.lo" ;;
bfd_we32k_arch) ;;
bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;