Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2020-01-22 23:23:54 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2020-01-22 23:23:54 +0300
commitb278d88a5f13f2a53bdb342e0936eddb3500595e (patch)
treeb3de6ee6f4120a8c7e4db33eed5493561869a3d4 /configure.ac
parentc4aa3277375f62eeba7d13d862f2c563cb10a285 (diff)
configure.ac: Don't look for X11 in netcore mode
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac30
1 files changed, 16 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac
index 86993d83184..7a038f59e9f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5024,21 +5024,23 @@ case "$host" in
SQLITE3="libsqlite3.so"
;;
*-*-*linux*)
- AC_PATH_X
- dlsearch_path=`(libtool --config ; echo eval echo \\$sys_lib_dlsearch_path_spec) | sh`
- AC_MSG_CHECKING(for the soname of libX11.so)
- for i in $x_libraries $dlsearch_path; do
- for r in 4 5 6; do
- if test -f $i/libX11.so.$r; then
- X11=libX11.so.$r
- AC_MSG_RESULT($X11)
- fi
+ if test "x$with_core" != "xonly"; then
+ AC_PATH_X
+ dlsearch_path=`(libtool --config ; echo eval echo \\$sys_lib_dlsearch_path_spec) | sh`
+ AC_MSG_CHECKING(for the soname of libX11.so)
+ for i in $x_libraries $dlsearch_path; do
+ for r in 4 5 6; do
+ if test -f $i/libX11.so.$r; then
+ X11=libX11.so.$r
+ AC_MSG_RESULT($X11)
+ fi
+ done
done
- done
-
- if test "x$X11" = "xlibX11.so"; then
- AC_MSG_WARN([Could not find libX11.so. Do you have X.org or XFree86 installed? Assuming libX11.so.6...]);
- X11=libX11.so.6
+
+ if test "x$X11" = "xlibX11.so"; then
+ AC_MSG_WARN([Could not find libX11.so. Do you have X.org or XFree86 installed? Assuming libX11.so.6...]);
+ X11=libX11.so.6
+ fi
fi
;;
esac