diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-11-23 18:03:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:28:27 -0500 |
commit | 60e7b4d995e83176647c3199ef31c6bb6558ab83 (patch) | |
tree | 3ef623d0437c91dceee970247936b4d3996d3ff5 /source4/build/smb_build/env.pm | |
parent | 0b4bd706160bf68cfd5dac7f494f3d308b25a5da (diff) | |
download | samba-60e7b4d995e83176647c3199ef31c6bb6558ab83.tar.gz samba-60e7b4d995e83176647c3199ef31c6bb6558ab83.tar.bz2 samba-60e7b4d995e83176647c3199ef31c6bb6558ab83.zip |
r19863: Create -uninstalled.pc files. This should reenable compilation and running
of the pidl testsuite as part of the testsuite.
(This used to be commit db237ad52f3a42c7b35753df99549ed6d540cec2)
Diffstat (limited to 'source4/build/smb_build/env.pm')
-rw-r--r-- | source4/build/smb_build/env.pm | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/source4/build/smb_build/env.pm b/source4/build/smb_build/env.pm index 8a34f40ad6..1466a8679c 100644 --- a/source4/build/smb_build/env.pm +++ b/source4/build/smb_build/env.pm @@ -53,9 +53,9 @@ sub _set_config($$) $self->{automatic_deps} = ($self->{config}->{automatic_dependencies} eq "yes"); } -sub PkgConfig($$$$$$$$$$) +sub PkgConfig($$$$$$$$$$$) { - my ($self,$path,$name,$libs,$cflags,$version,$desc,$hasmodules,$pubdep,$privdep) = @_; + my ($self,$path,$name,$libs,$cflags,$version,$desc,$hasmodules,$pubdep,$privdep,$dirs) = @_; print __FILE__.": creating $path\n"; @@ -66,13 +66,9 @@ sub PkgConfig($$$$$$$$$$) mkpath(dirname($path),0,0755); open(OUT, ">$path") or die("Can't open $path: $!"); - print OUT <<"__EOF__"; -prefix=$self->{config}->{prefix} -exec_prefix=$self->{config}->{exec_prefix} -libdir=$self->{config}->{libdir} -includedir=$self->{config}->{includedir} -__EOF__ - + foreach (keys %$dirs) { + print OUT "$_=" . $dirs->{$_} . "\n"; + } if ($hasmodules) { print OUT "modulesdir=$self->{config}->{modulesdir}/$name\n" ; } @@ -86,7 +82,7 @@ __EOF__ print OUT "Requires: $pubdep\n" if defined($pubdep); print OUT "Requires.private: $privdep\n" if defined($privdep); print OUT "Version: $version\n"; - print OUT "Libs: -L\${libdir} $libs\n"; + print OUT "Libs: $libs\n"; print OUT "Cflags: -I\${includedir} $cflags\n"; close(OUT); |