Skip to content

Commit

Permalink
Merge pull request mono/mono#1064 from ranma42/fix-config-paths
Browse files Browse the repository at this point in the history
Improve handling of lib paths for libMonoPosixHelper and libgdiplus. Fixes mono/mono#18555.

Commit migrated from mono/mono@cdd3d2b
  • Loading branch information
alexischr committed Jul 14, 2014
2 parents 7c774ae + 5daa9a0 commit 979af80
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions src/mono/configure.ac
Expand Up @@ -650,18 +650,6 @@ if test "x$USE_NLS" = "xyes"; then
fi
fi

AC_ARG_WITH([libgdiplus],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to installed)],
[], [with_libgdiplus=installed])

case $with_libgdiplus in
no|installed) libgdiplus_loc= ;;
yes|sibling) libgdiplus_loc=`cd ../libgdiplus && pwd`/src/libgdiplus.la ;;
/*) libgdiplus_loc=$with_libgdiplus ;;
*) libgdiplus_loc=`pwd`/$with_libgdiplus ;;
esac
AC_SUBST([libgdiplus_loc])

AC_PATH_PROG(PKG_CONFIG, pkg-config, no)

pkg_config_path=
Expand Down Expand Up @@ -3011,6 +2999,33 @@ esac

AC_SUBST(libsuffix)

AC_ARG_WITH([libgdiplus],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to installed)],
[], [with_libgdiplus=installed])

# default install location
libgdiplus_install_loc=libgdiplus${libsuffix}
case $with_libgdiplus in
no|installed)
libgdiplus_loc=
;;

yes|sibling)
libgdiplus_loc=`cd ../libgdiplus && pwd`/src/libgdiplus.la
;;

/*) # absolute path, assume it is an install location
libgdiplus_loc=$with_libgdiplus
libgdiplus_install_loc=$with_libgdiplus
;;

*)
libgdiplus_loc=`pwd`/$with_libgdiplus
;;
esac
AC_SUBST([libgdiplus_loc])
AC_SUBST([libgdiplus_install_loc])

AC_ARG_ENABLE(icall-symbol-map,[ --enable-icall-symbol-map Generate tables which map icall functions to their C symbols], icall_symbol_map=$enableval, icall_symbol_map=no)
if test "x$icall_symbol_map" = "xyes"; then
AC_DEFINE(ENABLE_ICALL_SYMBOL_MAP, 1, [Icall symbol map enabled])
Expand Down

0 comments on commit 979af80

Please sign in to comment.