Index: /trunk/glueforge/glueforge.in
===================================================================
--- /trunk/glueforge/glueforge.in	(revision 3732)
+++ /trunk/glueforge/glueforge.in	(revision 3733)
@@ -3,5 +3,5 @@
 # Copyright (C) 2005  Joshua Hoblitt
 #
-# $Id: glueforge.in,v 1.5 2005-04-21 02:07:18 jhoblitt Exp $
+# $Id: glueforge.in,v 1.6 2005-04-21 03:29:20 jhoblitt Exp $
 
 use strict;
@@ -77,25 +77,21 @@
 $data{columns} = \@items;
 
+$output = $data{lib_name} unless defined $output;
+
 my %tt = (
-    'autogen_sh.tt'     => "$output/autogen.sh",
-    'configure_ac.tt'   => "$output/configure.ac",
-    'top_makefile_am.tt'=> "$output/Makefile.am",
-    'src_makefile_am.tt'=> "$output/src/Makefile.am",
-    'header.tt'         => "$output/src/$data{file_name}.h",
-    'code.tt'           => "$output/src/$data{file_name}.c",
+    'autogen_sh.tt'         => "$output/autogen.sh",
+    'configure_ac.tt'       => "$output/configure.ac",
+    'pkgconfig_pc_in.tt'    => "$output/$data{lib_name}.pc.in",
+    'top_makefile_am.tt'    => "$output/Makefile.am",
+    'src_makefile_am.tt'    => "$output/src/Makefile.am",
+    'header.tt'             => "$output/src/$data{file_name}.h",
+    'code.tt'               => "$output/src/$data{file_name}.c",
 );
 
 my $mangler = Template->new({ INCLUDE_PATH => $template });
 
-if ( $output ) {
-    foreach my $t ( keys %tt ) {
-        $mangler->process( $t, \%data, $tt{$t})
-            or die $mangler->error;
-    }
-} else {
-    foreach my $t ( keys %tt ) {
-        $mangler->process( $t, \%data )
-            or die $mangler->error;
-    }
+foreach my $t ( keys %tt ) {
+    $mangler->process( $t, \%data, $tt{$t})
+        or die $mangler->error;
 }
 
