mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
autoconf
This commit is contained in:
parent
ce4f39d414
commit
0bd6cc30bc
@ -4,8 +4,7 @@ AC_DEFUN([QT_TRY_LINK],
|
|||||||
SAVE_LIBS="$LIBS"
|
SAVE_LIBS="$LIBS"
|
||||||
LIBS="$LIBS $1"
|
LIBS="$LIBS $1"
|
||||||
AC_TRY_LINK([
|
AC_TRY_LINK([
|
||||||
#include <qglobal.h>
|
#include <QtCore/QString>
|
||||||
#include <qstring.h>
|
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
QString s("mangle_failure");
|
QString s("mangle_failure");
|
||||||
@ -104,7 +103,7 @@ AC_DEFUN([QT_GET_VERSION],
|
|||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line __oline__ "configure"
|
#line __oline__ "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <qglobal.h>
|
#include <QtCore/qglobal.h>
|
||||||
"%%%"QT_VERSION_STR"%%%"
|
"%%%"QT_VERSION_STR"%%%"
|
||||||
EOF
|
EOF
|
||||||
lyx_cv_qtversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \
|
lyx_cv_qtversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \
|
||||||
@ -193,7 +192,7 @@ AC_DEFUN([QT_DO_IT_ALL],
|
|||||||
[AC_MSG_RESULT(no)])
|
[AC_MSG_RESULT(no)])
|
||||||
else
|
else
|
||||||
AC_PREPROC_IFELSE([AC_LANG_SOURCE([
|
AC_PREPROC_IFELSE([AC_LANG_SOURCE([
|
||||||
[#include <qglobal.h>],
|
[#include <QtCore/qglobal.h>],
|
||||||
[#ifndef Q_WS_X11],
|
[#ifndef Q_WS_X11],
|
||||||
[#error Fail],
|
[#error Fail],
|
||||||
[#endif]])],
|
[#endif]])],
|
||||||
|
Loading…
Reference in New Issue
Block a user