Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit26520a0

Browse files
committed
Merge pull requestfsharp#157 from knocte/small_fixes
configure: improve the prefix warning, and simplify some bits
2 parents19507b9 +d55062e commit26520a0

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

‎configure.ac‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,10 @@ AC_ARG_WITH([gacdir],
5353
[with_gacdir=no]
5454
)
5555

56+
MONOPREFIX=$(cd `$PKG_CONFIG --variable=prefix mono` && pwd)
57+
5658
if test "x$with_gacdir" = "xno"; then
57-
MONODIR=`$PKG_CONFIG --variable=libdir mono`/mono
58-
if ! test -e $MONODIR/2.0/mscorlib.dll; then
59-
MONODIR=`$PKG_CONFIG --variable=prefix mono`/lib/mono
60-
fi
59+
MONODIR="$MONOPREFIX"/lib/mono
6160
else
6261
MONODIR=$(cd "$with_gacdir/.." && pwd)
6362
fi
@@ -104,10 +103,7 @@ src/fsharp/policy.4.3.FSharp.Core/Makefile
104103
])
105104
AC_OUTPUT
106105

107-
CANON_MONODIR=`cd $MONODIR/../..; pwd`
108-
109-
if ! test -e $prefix/bin/mono; then
110-
AC_WARN($prefix/bin/mono not found. Prefix should normally be set to the mono installation path. Consider using
111-
./autogen.sh --prefix=$CANON_MONODIR
112-
)
106+
if ! test "x$MONOPREFIX" = "x$prefix"; then
107+
AC_WARN([Prefix to use is not the same as mono's: $prefix
108+
Consider using: ./autogen.sh --prefix=$MONOPREFIX])
113109
fi

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp