Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alberta3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ians-nmh-siebert
alberta
alberta3
Commits
35b6bc64
Commit
35b6bc64
authored
Jun 18, 2003
by
Claus-Justus Heine
Browse files
Options
Downloads
Patches
Plain Diff
Initial revision.
parent
b7d3ea72
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
m4/check-qt.m4
+63
-0
63 additions, 0 deletions
m4/check-qt.m4
with
63 additions
and
0 deletions
m4/check-qt.m4
0 → 100644
+
63
−
0
View file @
35b6bc64
AC_DEFUN([ALBERT_CHECK_QT],
[AC_ARG_WITH([qtdir],
[ --with-qtdir=QTDIR Attempt to use the QT toolkit located in QTDIR.
Default: ${QTDIR}.],
[case "$withval" in
yes)
;;
no)
AC_MSG_ERROR([Nope, we _need_ QT])
;;
*)
QTDIR=${withval}
;;
esac],
[for i in /usr/lib/qt3 /usr/qt/3; do
if test -d $i; then
QTDIR=$i
break
fi
done
])
AC_LANG_PUSH([C++])
ALBERT_CHECK_PACKAGE(Qt, qt-mt, ${QTDIR}/lib, ${X_LIBS} -lX11,
qgl.h, ${QTDIR}/include, required)
AC_LANG_POP
dnl
dnl check for QGLWidget
dnl
AC_CACHE_CHECK([whether class QGLWidget compiles and links],
[ac_cv_qglwidget_links],
[ac_cv_qglwidget_links=no
ac_save_LDFLAGS=${LDFLAGS}
LDFLAGS="${Qt_LIB} ${OpenGL_LIB} ${LDFLAGS}"
AC_LANG_PUSH([C++])
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_QGL_H
# include <qgl.h>
#endif]],
[[QGLWidget qgl;]])],
[ac_cv_qglwidget_links=yes],
[AC_MSG_FAILURE([Unable to compile and link a "QGLWidget"])
])
AC_LANG_POP
LDFLAGS="${ac_save_LDFLAGS}"
])
dnl
dnl the meta-object compiler
dnl
AC_ARG_WITH([moc],
[ --with-moc=PATH_TO_MOC Path to the "moc" program. Default: ${QTDIR}/bin/],
[case "$withval" in
yes)
;;
no)
AC_MSG_ERROR([Nope, we need moc])
;;
*)
MOCPATH=${withval}
;;
esac],
[MOCPATH=${QTDIR}/bin])
AC_PATH_PROG([MOC], moc, , [$MOCPATH:$QTDIR/bin:$PATH])
])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment