mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
do not check for X libraries if pkg-config succeeded
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26829 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
391ba1e592
commit
ca67cfffe0
@ -182,6 +182,16 @@ AC_DEFUN([QT4_DO_PKG_CONFIG],
|
|||||||
|
|
||||||
AC_DEFUN([QT4_DO_MANUAL_CONFIG],
|
AC_DEFUN([QT4_DO_MANUAL_CONFIG],
|
||||||
[
|
[
|
||||||
|
dnl Check for X libraries
|
||||||
|
AC_PATH_X
|
||||||
|
AC_PATH_XTRA
|
||||||
|
case $have_x in
|
||||||
|
yes) LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
|
||||||
|
CPPFLAGS="$CPPFLAGS $X_CFLAGS";;
|
||||||
|
no) LYX_ERROR([Cannot find X window libraries and/or headers.]);;
|
||||||
|
disable) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
dnl flags for compilation
|
dnl flags for compilation
|
||||||
QT4_INCLUDES=
|
QT4_INCLUDES=
|
||||||
QT4_LDFLAGS=
|
QT4_LDFLAGS=
|
||||||
|
12
configure.ac
12
configure.ac
@ -164,18 +164,6 @@ AC_CHECK_HEADERS(zlib.h,
|
|||||||
[LYX_LIB_ERROR(zlib.h,zlib)])
|
[LYX_LIB_ERROR(zlib.h,zlib)])
|
||||||
|
|
||||||
|
|
||||||
### Check for X libraries
|
|
||||||
AC_PATH_XTRA
|
|
||||||
case $have_x in
|
|
||||||
yes) LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
|
|
||||||
CPPFLAGS="$CPPFLAGS $X_CFLAGS";;
|
|
||||||
no) LYX_ERROR(dnl
|
|
||||||
[Cannot find X window libraries and/or headers. Check your installation.
|
|
||||||
If you use a Linux system, check that you have installed
|
|
||||||
the development tools.]);;
|
|
||||||
disable) ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
### check which frontend we want to use
|
### check which frontend we want to use
|
||||||
|
|
||||||
dnl The code below is not in a macro, because this would cause big
|
dnl The code below is not in a macro, because this would cause big
|
||||||
|
Loading…
Reference in New Issue
Block a user