diff options
author | XTZGZoReX <xtzgzorex@gmail.com> | 2011-07-19 16:02:05 +0400 |
---|---|---|
committer | XTZGZoReX <xtzgzorex@gmail.com> | 2011-07-19 16:03:54 +0400 |
commit | 0426a24b8f0a804331e2a7cc4cebd7267b081d5e (patch) | |
tree | dbf5e4e660b611b108524752a051f884841b6091 /configure | |
parent | 522513aec0fc6f522a4d2b418c44675058319d79 (diff) |
Don't copy *.pc files if they don't exist.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -173,10 +173,12 @@ create_local_config () # Copy the .pc file to local-config, and set the base lib directory mkdir -p local-config builddir=`pwd`/$path/build - for f in `ls $1/*.pc.in` ; do - pcfile=`echo $f | sed s,.*/,, | sed s/\.in$//` - sed -e s,libdir=.*,libdir=$builddir, -e s/@VERSION@/$ver/g $f> local-config/$pcfile - done + if test -a $1/*.pc.in; then + for f in `ls $1/*.pc.in` ; do + pcfile=`echo $f | sed s,.*/,, | sed s/\.in$//` + sed -e s,libdir=.*,libdir=$builddir, -e s/@VERSION@/$ver/g $f> local-config/$pcfile + done + fi # Generate the .addins file for the package addins=local-config/`echo $path | sed s,/,_,`.addins |