[project @ 2001-12-13 09:23:22 by sof]
authorsof <unknown>
Thu, 13 Dec 2001 09:23:23 +0000 (09:23 +0000)
committersof <unknown>
Thu, 13 Dec 2001 09:23:23 +0000 (09:23 +0000)
new option, --enable-src-tree-happy, which forces the use of happy/src/happy-inplace as HAPPY

aclocal.m4
configure.in

index 4e3ff09..b38227f 100644 (file)
@@ -1,4 +1,4 @@
-dnl $Id: aclocal.m4,v 1.89 2001/12/10 01:21:17 sebc Exp $
+dnl $Id: aclocal.m4,v 1.90 2001/12/13 09:23:23 sof Exp $
 dnl 
 dnl Extra autoconf macros for the Glasgow fptools
 dnl
@@ -197,7 +197,11 @@ AC_DEFUN(FPTOOLS_HAPPY,
 if test -d $srcdir/happy; then
    SrcTreeHappyCmd=$hardtop/happy/src/happy-inplace
 fi
-AC_PATH_PROG(HappyCmd,happy,$SrcTreeHappyCmd)
+if test x"$UseSrcTreeHappy" = xYES; then
+  HappyCmd=$SrcTreeHappyCmd
+else
+  AC_PATH_PROG(HappyCmd,happy,$SrcTreeHappyCmd)
+fi
 AC_CACHE_CHECK([for version of happy], fptools_cv_happy_version,
 changequote(, )dnl
 [if test x"$HappyCmd" = x"$SrcTreeHappyCmd"; then
index 0e24d30..0f124a6 100644 (file)
@@ -629,6 +629,13 @@ fi
 AC_SUBST(CompressCmd)
 AC_SUBST(CompressSuffix)
 
+AC_ARG_ENABLE(src-tree-happy,
+[  --enable-src-tree-happy
+        Build and use source tree (fptools/happy) version of happy.
+],
+[UseSrcTreeHappy=YES],
+[UseSrcTreeHappy=NO]
+)
 dnl ** check for installed happy binary + version
 dnl    (don't do it if we're booting from .hc files though.)
 if test "$BootingFromHc" = "NO"; then