* mips-opc.c (mips_builtin_opcodes): Update vmtir syntax.
[deliverable/binutils-gdb.git] / opcodes / configure.in
index b47326b3bfc7598d1c0e1353bd78b6d662979c28..f7a25a95253aebf9b0caccd92cd1e6d0eec24d40 100644 (file)
@@ -5,6 +5,7 @@ AC_PREREQ(2.5)
 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
@@ -49,9 +50,6 @@ if test -z "$target" ; then
 fi
 AC_ARG_PROGRAM
 
-ALL_LINGUAS=
-CY_GNU_GETTEXT
-
 AM_MAINTAINER_MODE
 AM_CYGWIN32
 AM_EXEEXT
@@ -60,6 +58,9 @@ AM_EXEEXT
 
 AC_PROG_CC
 
+ALL_LINGUAS=
+CY_GNU_GETTEXT
+
 . ${srcdir}/../bfd/configure.host
 
 AC_SUBST(HDEFINES)
@@ -68,29 +69,42 @@ AM_PROG_INSTALL
 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
@@ -148,9 +162,8 @@ if test x${all_targets} = xfalse ; then
        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" ;;
@@ -183,7 +196,7 @@ if test x${all_targets} = xfalse ; then
        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" ;;
This page took 0.024036 seconds and 4 git commands to generate.