You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
1.9 KiB
83 lines
1.9 KiB
15 years ago
|
|
||
|
AC_HAVE_GL
|
||
|
KDE_HAVE_GL=yes;
|
||
|
if test "X$GLLIB" = "X"; then
|
||
|
KDE_HAVE_GL=no
|
||
|
fi
|
||
|
|
||
|
AC_SUBST(KDE_HAVE_GL)
|
||
|
|
||
|
AC_ARG_WITH(
|
||
|
threshold,
|
||
11 years ago
|
[ --with-threshold@<:@=0..15@:>@ Smoke: TQt tests threshold Default:15 Lower=more tests],
|
||
15 years ago
|
[ qt_test_threshold="$withval" ],
|
||
|
[ qt_test_threshold=15 ]
|
||
|
)
|
||
|
AC_SUBST(qt_test_threshold)
|
||
|
|
||
11 years ago
|
if test "X$kde_build_libsmoke" = "Xtqt" -o "X$kde_build_libsmoke" = "Xtqt tde"; then
|
||
15 years ago
|
|
||
11 years ago
|
AC_CONFIG_FILES([ smoke/tqt/qtguess.pl ], [
|
||
|
cd smoke/tqt
|
||
15 years ago
|
perl qtguess.pl
|
||
|
cd ../..
|
||
|
])
|
||
11 years ago
|
AC_CONFIG_FILES([ smoke/tqt/generate.pl ], [
|
||
15 years ago
|
])
|
||
|
fi
|
||
|
|
||
|
dnl -------
|
||
13 years ago
|
dnl Test for libqscintilla (TQScintilla support)
|
||
15 years ago
|
dnl -------
|
||
|
|
||
|
AC_ARG_ENABLE(
|
||
|
qscintilla,
|
||
13 years ago
|
[ --enable-qscintilla@<:@=yes|no@:>@ Smoke: build Smoke with TQScintilla extention for qt @<:@default:no@:>@],
|
||
15 years ago
|
[ qtextscintilla="$enableval" ],
|
||
|
[ qtextscintilla="no" ]
|
||
|
)
|
||
|
AC_SUBST(qtextscintilla)
|
||
|
|
||
|
AC_DEFUN([AC_FIND_QSCINTILLA],
|
||
|
[
|
||
|
AC_MSG_CHECKING([for libqscintilla])
|
||
|
AC_CACHE_VAL(ac_cv_lib_qscintilla,
|
||
|
[
|
||
|
kde_ldflags_save="$LDFLAGS"
|
||
|
kde_libs_save="$LIBS"
|
||
|
kde_cxxflags_save="$CXXFLAGS"
|
||
|
|
||
|
LIBS="-lqscintilla $LIBQT $LIBS"
|
||
|
CXXFLAGS="$CXXFLAGS $all_includes"
|
||
|
LDFLAGS="$LDFLAGS $all_libraries $USER_LDFLAGS"
|
||
|
|
||
|
AC_TRY_LINK([
|
||
|
#include <qextscintillabase.h>
|
||
|
],
|
||
|
[
|
||
|
QextScintillaBase s;
|
||
|
],
|
||
|
eval "ac_cv_lib_qscintilla='-lqscintilla'",
|
||
|
eval "ac_cv_lib_qscintilla=no")
|
||
|
|
||
|
LDFLAGS=$kde_ldflags_save
|
||
|
LIBS=$kde_libs_save
|
||
|
CXXFLAGS=$kde_cxxflags_save
|
||
|
])
|
||
|
|
||
|
if test ! "$ac_cv_lib_qscintilla" = no; then
|
||
13 years ago
|
AC_DEFINE_UNQUOTED(HAVE_LIBTQSCINTILLA, 1, [Define if you have libqscintilla])
|
||
13 years ago
|
LIBTQSCINTILLA="$ac_cv_lib_qscintilla"
|
||
15 years ago
|
AC_MSG_RESULT($ac_cv_lib_qscintilla)
|
||
|
else
|
||
|
AC_MSG_ERROR(not found.
|
||
|
Check your installation and look into config.log)
|
||
13 years ago
|
LIBTQSCINTILLA=""
|
||
15 years ago
|
fi
|
||
13 years ago
|
AC_SUBST(LIBTQSCINTILLA)
|
||
15 years ago
|
])
|
||
|
|
||
|
if test "X$qtextscintilla" = "Xyes" ; then
|
||
|
AC_FIND_QSCINTILLA
|
||
|
fi
|