2004-08-31  Greg Troxel  <gdt@poblano.ir.bbn.com>

	* Rename scripts to *.sh.in, and use autoconf-style substitution
	  for prefix and localstatedir.
diff --git a/configure.ac b/configure.ac
index df819ed..b44befa 100755
--- a/configure.ac
+++ b/configure.ac
@@ -5,7 +5,7 @@
 ##  Copyright (c) 1996, 97, 98, 99, 2000 Kunihiro Ishiguro <kunihiro@zebra.org>
 ##  Portions Copyright (c) 2003 Paul Jakma <paul@dishone.st>
 ##
-## $Id: configure.ac,v 1.61 2004/08/27 15:57:35 gdt Exp $
+## $Id: configure.ac,v 1.62 2004/08/31 18:16:36 gdt Exp $
 AC_PREREQ(2.53)
 
 AC_INIT(quagga, 0.96.5, [http://bugzilla.quagga.net])
@@ -22,6 +22,17 @@
 dnl XXX add --exampledir to autoconf standard directory list somehow
 AC_SUBST(exampledir)
 
+dnl default is to match previous behavior
+pkgsrcrcdir=""
+pkgsrcdir=""
+AC_ARG_ENABLE([pkgsrcrcdir],
+	  AC_HELP_STRING([--enable-pkgsrcrcdir],
+			 [specify directory for rc.d scripts]),
+			 pkgsrcrcdir="$enableval"; pkgsrcdir="pkgsrc",)
+dnl XXX add --pkgsrcrcdir to autoconf standard directory list somehow
+AC_SUBST(pkgsrcdir)
+AC_SUBST(pkgsrcrcdir)
+
 dnl -----------------------------------
 dnl Get hostname and other information.
 dnl -----------------------------------
@@ -1127,6 +1138,8 @@
 	  redhat/Makefile redhat/quagga.spec
 	  lib/version.h
 	  tests/Makefile
+	  pkgsrc/bgpd.sh pkgsrc/ospf6d.sh pkgsrc/ospfd.sh
+	  pkgsrc/ripd.sh pkgsrc/ripngd.sh pkgsrc/zebra.sh
 	  ,
 	  [chmod +x vtysh/extract.pl])