X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77e13408408c1fb6a9e9042c97bc97dd823f53bf..69108ccb4e8de4279ffa0fdd4e23ea3666f84e92:/wx-config.in diff --git a/wx-config.in b/wx-config.in index c52a0b11a4..878c325284 100755 --- a/wx-config.in +++ b/wx-config.in @@ -4,16 +4,38 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ exec_prefix_set=no 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 <