]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for broken --inplace, --prefix and --exec-prefix handling
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 3 Aug 2003 14:51:55 +0000 (14:51 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 3 Aug 2003 14:51:55 +0000 (14:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wx-config.in

index 8b3b02c722dd5f0cd69a26afd54c04cb630e8423..fc28a87478c24f95ae2f7a97ccff875ed8f02d41 100755 (executable)
@@ -18,10 +18,15 @@ static_flag="@STATIC_FLAG@"
 
 # Misc configuration variables:
 
+update_prefixes()
+{
+    includedir="@includedir@"
+    libdir="@libdir@"
+}
 prefix="@prefix@"
 exec_prefix="@exec_prefix@"
-includedir="@includedir@"
-libdir="@libdir@"
+update_prefixes
+
 CC="@CC@"
 GCC="@GCC@"
 CXX="@CXX@"
@@ -227,12 +232,14 @@ while test $# -gt 0; do
       prefix=`makeabs $srcdir`
       exec_prefix=`makeabs $builddir`
       exec_prefix_set=yes
+      update_prefixes
       ;;
     --prefix=*)
       prefix=$optarg
       if test $exec_prefix_set = no ; then
         exec_prefix=$optarg
       fi
+      update_prefixes
       ;;
     --prefix)
       echo $prefix
@@ -240,6 +247,7 @@ while test $# -gt 0; do
     --exec-prefix=*)
       exec_prefix=$optarg
       exec_prefix_set=yes
+      update_prefixes
       ;;
     --exec-prefix)
       echo $exec_prefix