]> git.saurik.com Git - wxWidgets.git/blobdiff - wx-config.in
Add new sample project files.
[wxWidgets.git] / wx-config.in
index d1dd47920b743299b975e2a82cde254abca5a526..a59a60653f223a9fa8069e824eb8cff275aed3d1 100755 (executable)
@@ -245,6 +245,9 @@ check_yesno_option()
 }
 
 
+MAC_FRAMEWORK=
+MAC_FRAMEWORK_PREFIX=
+
 
 # Now we are ready to find out what the user wants from us.
 # --------------------------------------------------------------
@@ -1263,6 +1266,15 @@ if [ -n "$output_option_libs" ]; then
         [ "x$libdir" = "x/usr/lib" ]            ||
         _ldflags="-L$libdir"
 
+    if [ -n "$MAC_FRAMEWORK" ]; then
+       wx_libs="-framework $MAC_FRAMEWORK"
+       if [ -n "$MAC_FRAMEWORK_PREFIX" ]; then
+           _ldflags="-F$MAC_FRAMEWORK_PREFIX"
+       else
+           _ldflags=""
+       fi
+    fi
+
     is_installed || [ -n "$flag_option_no_rpath" ] || _rpath="@WXCONFIG_RPATH@"
 
     echo $_ldflags "@WXCONFIG_LDFLAGS@" $_rpath $wx_libs "@DMALLOC_LIBS@"