File: configure.ac

package info (click to toggle)
gambas2 2.7-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 58,240 kB
  • ctags: 21,340
  • sloc: cpp: 88,591; ansic: 73,606; sh: 20,737; makefile: 1,118; perl: 184; xml: 23
file content (47 lines) | stat: -rw-r--r-- 1,138 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
dnl ---- configure.ac for gb.qt

AC_INIT(configure.ac)
GB_INIT(gb.qt)
AC_PROG_LIBTOOL

AC_ARG_ENABLE(
  qt-translation,
  [  --enable-qt-translation             use qt translation files (default: yes)],
  gb_use_qt_translation=$enableval,
  gb_use_qt_translation=yes
)

if test "$gb_use_qt_translation" = "yes"; then
  AC_DEFINE(USE_QT_TRANSLATION, 1, [Use QT translation])
fi

GB_CHECK_XWINDOW

GB_FIND_QT_MOC

GB_COMPONENT(
  qt,
  QT,
  [QT component],
  [src],
  [GB_FIND(qptrlist.h X11/Xlib.h, /usr/local/lib /usr/local /opt /usr/lib /usr/X11 /usr/X11R6 /usr/pkg /usr, include qt*/include qt/*/include)],
  [GB_FIND(libqt-mt.$SHLIBEXT, /usr/local /opt /usr/X11 /usr/X11R6 /usr/pkg /usr, lib qt*/lib qt/*/lib, libqt-mt.so.3)],
  [$CXX_LIB $THREAD_LIB $X_LIBS -lqt-mt],
  [$X_INC $THREAD_INC])

GB_COMPONENT(
  qtopengl,
  QTOPENGL,
  [QT OpenGL component],
  [opengl],
  [GB_FIND(gl.h glu.h, /usr /usr/X11R6 /usr/local, include/GL)],
  [GB_FIND(libGL.$SHLIBEXT libGLU.$SHLIBEXT, /usr /usr/X11R6 /usr/local, lib)],
  [-lGL -lGLU])

AC_OUTPUT( \
Makefile \
src/Makefile \
src/share/Makefile \
src/ext/Makefile \
src/opengl/Makefile \
)