X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82a649b67c4645dd8f524bae3cb0dfc942044eec..a203834e6b662f61fa0e973783687f3eb890e2be:/wx-config.in diff --git a/wx-config.in b/wx-config.in index 0da7bf1344..1e487ad561 100755 --- a/wx-config.in +++ b/wx-config.in @@ -7,10 +7,29 @@ CC="@CC@" GCC="@GCC@" CXX="@CXX@" LD="@SHARED_LD@" +srcdir=@top_srcdir@ +builddir=@top_builddir@ cross_compiling=@cross_compiling@ target=@host_alias@ static_flag=@STATIC_FLAG@ +# return the absolute path prepending builddir to it if needed +makeabs() +{ + path=$1 + # TODO: this only works under Unix and even there it could be + # enhanced to remove ".." and "." + if [ `echo $path | sed 's/^\(.\).*/\1/'` != "/" ]; then + if [ $path = "." ]; then + path=$builddir + else + path="$builddir/$path" + fi + fi + + echo $path +} + usage() { cat <