r8829: Generate hash rather then a lot of globals.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 28 Jul 2005 13:37:21 +0000 (13:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:30:10 +0000 (13:30 -0500)
(This used to be commit 19d383259fa6af8e24f53dec3664aefe09310401)

source4/configure.in

index f678d9c7e8c70edf7bb0612c59bcc8e37a0d1a83..dd93d8af2a8b8daafcb2573879daa683de79d391 100644 (file)
@@ -91,14 +91,19 @@ cat >config.pm<<CEOF
 # config.pm - Autogenerate by configure. DO NOT EDIT!
 
 package config;
+require Exporter;
+@ISA = qw(Exporter);
+@EXPORT_OK = qw(%enabled %config);
 use strict;
 
-use vars qw(%enabled AC_FOREACH([AC_Var], m4_defn([_AC_SUBST_VARS]), [\$AC_Var ]));
+use vars qw(%enabled %config);
 
-AC_FOREACH([AC_Var], m4_defn([_AC_SUBST_VARS]), [
-\$AC_Var = "$AC_Var";])
+%config = (AC_FOREACH([AC_Var], m4_defn([_AC_SUBST_VARS]), [
+       AC_Var => '$AC_Var',])
+);
 
 $SMB_INFO_ENABLES
+1;
 CEOF
 
 echo "configure: creating config.mk"