root/trunk/qt-gui/configure.ac

Revision 6517, 4.5 kB (checked in by flynd, 2 months ago)

Bumped version to 1.3.6 for upcoming release. All plugins updated to have same version as daemon.

  • Property svn:eol-style set to native
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(src/licqgui.h)
3AC_CONFIG_AUX_DIR(admin)
4AC_CANONICAL_SYSTEM
5AC_ARG_PROGRAM
6
7dnl All versioning is done via the following line
8AM_INIT_AUTOMAKE(Licq-Qt-GUI, 1.3.6)
9AM_CONFIG_HEADER(config.h)
10
11dnl Chuck #defines for PACKAGE and VERSION into config.h
12AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
13AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
14AC_DEFINE_UNQUOTED(INT_VERSION,$INT_VERSION, [Qt-GUI version number as int])
15
16dnl Also substitute PACKAGE and VERSION in the AC_OUTPUT files
17AC_SUBST(PACKAGE)
18AC_SUBST(VERSION)
19
20dnl Checks for programs.
21AC_PROG_CC
22AC_PROG_CPP
23AC_PROG_CXX
24LICQDAEMON_CXX_FLAGS
25LICQ_CXX_WEXTRA
26AC_PROG_INSTALL
27dnl AC_PATH_PROG(PROG_STRIP,strip,:)
28dnl AC_PATH_PROG(PROG_SIZE,size,:)
29
30dnl Required for GPGME...
31AC_SYS_LARGEFILE
32
33dnl Set up some operating system specific options
34case "$host" in
35    *-*-openbsd*)
36        CFLAGS="$CFLAGS -pthread"
37        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
38        CXXFLAGS="$CXXFLAGS -pthread"
39        echo "Setting OpenBSD compilation options"
40        ;;
41    *-*-freebsd*)
42        CFLAGS="$CFLAGS -pthread"
43        CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
44        CXXFLAGS="$CXXFLAGS -pthread"
45        echo "Setting FreeBSD compilation options"
46        ;;
47    *-*-solaris*)
48        CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DPIC -fPIC"
49        if test $GXX != yes; then
50            LDFLAGS="$LDFLAGS -mimpure-text"
51        fi
52        echo "Setting Solaris compilation options"
53        ;;
54    *-*-linux*)
55        CPPFLAGS="$CPPFLAGS -fPIC -DPIC -D_REENTRANT"
56        echo "Setting Linux compilation options"
57        ;;
58  *-*-aix*)
59    CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
60    LIBS="$LIBS -lc_r"
61    echo "Setting AIX compilation options"
62    ;;
63  *-*-irix*)
64    LDFLAGS="$LDFLAGS -L/usr/lib32"
65    echo "Setting Irix compilation options"
66    ;;
67    *)
68        echo "Licq may not compile on this system. Good luck :-)"
69        ;;
70esac
71
72
73dnl libtool stuff
74AC_LIBTOOL_DLOPEN
75AC_DISABLE_STATIC
76m4_defun([_LT_AC_LANG_F77_CONFIG], [:])
77AM_PROG_LIBTOOL
78AC_LIBTOOL_CXX
79LIBTOOL="$LIBTOOL --silent"
80dnl AC_SUBST(LIBTOOL)
81
82dnl Checks for header files.
83AC_HEADER_STDC
84AC_CHECK_HEADERS(errno.h locale.h)
85AC_HEADER_TIME
86LICQ_SYS_ERRLIST
87LICQ_CHECK_LICQ
88AX_BOOST_BASE([1.31.1])
89
90dnl Check for X and extra X libs needed
91AC_PATH_XTRA
92if test "$no_x" = yes; then
93  AC_MSG_ERROR(You need to have the X11 libraries and headers installed)
94fi
95
96dnl solaris has broken x11 headers, lets check for them
97LICQ_CHECK_X11HEADERS
98
99XSS_LIBS="no"
100AC_CHECK_X_LIB(Xext, XScreenSaverRegister,[XSS_LIBS=""],[], [-lX11 -lXext -lm])
101AC_CHECK_X_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="-lXss"],[],[-lX11 -lXext -lm])
102if test \! "$XSS_LIBS" = "no"; then
103  AC_CHECK_X_HEADER(X11/extensions/scrnsaver.h,[AC_DEFINE(USE_SCRNSAVER, 1, [use X screensaver support])])
104else
105  dnl Don't include the screensaver libs if we can't find the header.
106  XSS_LIBS=""
107fi
108AC_SUBST(XSS_LIBS)
109
110dnl Check for Qt & KDE
111AC_PATH_QT
112AC_PATH_QT_INC
113
114if test "$have_qt_inc" = "no"; then
115  AC_MSG_ERROR([
116
117I can't find the Qt header files.
118
119Install the Qt development package, or if you have them installed, override
120this check with the --with-qt-includes argument, and I'll take your word for
121it.
122])
123
124fi
125
126AC_PATH_KDE
127AC_PATH_KDE_INCLUDES
128
129AC_PATH_QT_LIB
130
131if test "$have_qt_lib" = "no"; then
132  AC_MSG_ERROR([
133
134I can't find the Qt libraries. It is recommended to set the QTDIR environment
135variable.
136
137Install the Qt libraries, or if you have them installed, override this check
138with the --with-qt-libraries argument, and I'll take your word for it.
139])
140
141fi
142
143dnl Check for Qt version
144AC_CHECK_QT_SETUP
145
146AC_PATH_QT_MOC
147AC_PATH_QT_LUPDATE
148AC_PATH_QT_LRELEASE
149
150AC_PATH_KDE_LIBRARIES
151AC_PATH_DCOP
152AC_PATH_KDE_CONFIG
153LICQ_CHECK_GPGME
154
155dnl Switch to C++ mode and check for needed C++ headers
156AC_LANG_SAVE
157AC_LANG_CPLUSPLUS
158
159AC_CHECK_HEADER(vector,,
160  AC_MSG_ERROR(You need to have the libstdc++ headers installed))
161
162AC_LANG_RESTORE
163
164dnl Check for qinterlacestyle.h
165LICQ_CHECK_QT_HEADER
166
167dnl Checks for typedefs, structures, and compiler characteristics.
168dnl AC_C_SOCKLEN_T
169
170AC_OUTPUT(
171  po/Makefile \
172  src/Makefile \
173  share/Makefile \
174  Makefile)
175
176echo ""
177echo "Please remember to use GNU make, often installed as gmake."
178echo ""
179echo "Install prefix : $prefix"
180echo "Licq Includes  : $LICQ_INCLUDES"
181if test "$have_kde" = yes; then
182  echo "KDE            : includes in $kde_includes, libs in $kde_libraries"
183else
184  echo "KDE            : disabled."
185fi
186echo "Qt includes    : $ac_cv_header_qtinc"
187echo "Qt libraries   : $ac_qt_libdir, $ac_qt_libname"
188echo "Qt moc         : $MOC"
189if test "$WITH_GPGME" = yes; then
190  echo "GPG            : enabled."
191else
192  echo "GPG            : disabled."
193fi
194echo ""
Note: See TracBrowser for help on using the browser.