w3rdparty/acedb-config
raw| 1 | #!/bin/csh |
| 2 | |
| 3 | # Use system-wide one identified by $1 |
| 4 | |
| 5 | set pkg_config = 'pkg-config' |
| 6 | |
| 7 | if ("$1" == '-local') then # quotes protect the "-" in -local |
| 8 | set local_path = $2 |
| 9 | shift ; shift |
| 10 | set pkg_config = $local_path/bin/$pkg_config |
| 11 | setenv PKG_CONFIG_PATH $local_path/lib/pkgconfig |
| 12 | endif |
| 13 | |
| 14 | |
| 15 | setenv PKG_CONFIG_PATH $1/lib/pkgconfig |
| 16 | $pkg_config --libs $1 $2 |
| 17 | |
| 18 | exit 0 |