X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57764418a4449a7e616cb0b802f4e5e06db4253c..772513d82432ecf323bca55251551fd5c8a7562d:/wx-config-inplace.in?ds=sidebyside diff --git a/wx-config-inplace.in b/wx-config-inplace.in index 06b0742631..4a948d37ad 100644 --- a/wx-config-inplace.in +++ b/wx-config-inplace.in @@ -3,9 +3,8 @@ # Name: wx-config-inplace # Purpose: wx configuration in tree search and query tool # Author: Ron -# Modified by: VZ on 2005-09-21 to actually work with Bourne shell +# Modified by: VZ on 2005-09-20 to make it work with Bourne shell # Created: 14/9/2004 -# RCS-ID: $Id$ # Copyright: (c) 2004 Ron # Licence: wxWindows licence ############################################################################ @@ -21,10 +20,19 @@ check_dirname() printf " no longer exists.\n\n" 1>&2 exit 1 fi + ( cd $1 && pwd ) } -check_dirname "@abs_top_srcdir@" -check_dirname "@abs_top_builddir@" +# set the variables which allow the real wx-config to check if we're using it +# in place or after installation +this_prefix=`check_dirname "@abs_top_srcdir@"` +if [ "x$this_prefix" = "x" ]; then + exit 1 +fi +this_exec_prefix=`check_dirname "@abs_top_builddir@"` +if [ "x$this_exec_prefix" = "x" ]; then + exit 1 +fi -. "@abs_top_builddir@/lib/wx/config/@TOOLCHAIN_FULLNAME@" +. "$this_exec_prefix/lib/wx/config/@TOOLCHAIN_FULLNAME@"