root/branches/protocol_plugin_1_3_0/qt-gui/configure.in

Revision 3414, 4.2 kB (checked in by emostar, 6 years ago)

New version

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
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.2.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
25AC_PROG_INSTALL
26dnl AC_PATH_PROG(PROG_STRIP,strip,:)
27dnl AC_PATH_PROG(PROG_SIZE,size,:)
28
29dnl Set up some operating system specific options
30case "$host" in
31    *-*-openbsd*)
32        CFLAGS="$CFLAGS -pthread"
33        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
34        CXXFLAGS="$CXXFLAGS -pthread"
35        echo "Setting OpenBSD compilation options"
36        ;;
37    *-*-freebsd*)
38        CFLAGS="$CFLAGS -pthread"
39        CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
40        CXXFLAGS="$CXXFLAGS -pthread"
41        echo "Setting FreeBSD compilation options"
42        ;;
43    *-*-solaris*)
44        CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DPIC -fPIC"
45        LDFLAGS="$LDFLAGS -mimpure-text"
46        echo "Setting Solaris compilation options"
47        ;;
48    *-*-linux*)
49        CPPFLAGS="$CPPFLAGS -fPIC -DPIC -D_REENTRANT"
50        echo "Setting Linux compilation options"
51        ;;
52  *-*-aix*)
53    CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
54    LIBS="$LIBS -lc_r"
55    echo "Setting AIX compilation options"
56    ;;
57  *-*-irix*)
58    LDFLAGS="$LDFLAGS -L/usr/lib32"
59    echo "Setting Irix compilation options"
60    ;;
61    *)
62        echo "Licq may not compile on this system. Good luck :-)"
63        ;;
64esac
65
66
67dnl libtool stuff
68AC_LIBTOOL_DLOPEN
69AC_DISABLE_STATIC
70AM_PROG_LIBTOOL
71AC_LIBTOOL_CXX
72LIBTOOL="$LIBTOOL --silent"
73dnl AC_SUBST(LIBTOOL)
74
75dnl Checks for header files.
76AC_HEADER_STDC
77AC_CHECK_HEADERS(errno.h locale.h)
78AC_HEADER_TIME
79LICQ_SYS_ERRLIST
80LICQ_CHECK_LICQ
81
82dnl Check for X and extra X libs needed
83AC_PATH_XTRA
84if test "$no_x" = yes; then
85  AC_MSG_ERROR(You need to have the X11 libraries and headers installed)
86fi
87
88dnl solaris has broken x11 headers, lets check for them
89LICQ_CHECK_X11HEADERS
90
91XSS_LIBS="no"
92AC_CHECK_X_LIB(Xext, XScreenSaverRegister,[XSS_LIBS=""],[], [-lX11 -lXext -lm])
93AC_CHECK_X_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="-lXss"],[],[-lX11 -lXext -lm])
94if test \! "$XSS_LIBS" = "no"; then
95  AC_CHECK_X_HEADER(X11/extensions/scrnsaver.h,[AC_DEFINE(USE_SCRNSAVER, 1, [use X screensaver support])])
96else
97  dnl Don't include the screensaver libs if we can't find the header.
98  XSS_LIBS=""
99fi
100AC_SUBST(XSS_LIBS)
101
102dnl Check for QT & KDE
103AC_PATH_QT
104AC_PATH_QT_INC
105
106if test "$have_qt_inc" = "no"; then
107  AC_MSG_ERROR([
108
109I can't find the QT header files.
110
111Install the QT development package, or if you have them installed, override
112this check with the --with-qt-includes argument, and I'll take your word for
113it.
114])
115
116fi
117
118AC_PATH_KDE
119AC_PATH_KDE_INCLUDES
120
121AC_PATH_QT_LIB
122
123if test "$have_qt_lib" = "no"; then
124  AC_MSG_ERROR([
125
126I can't find the QT libraries. It is recommended to set the QTDIR environment
127variable.
128
129Install the QT libraries, or if you have them installed, override this check
130with the --with-qt-libraries argument, and I'll take your word for it.
131])
132
133fi
134
135dnl Check for QT version
136AC_CHECK_QT_SETUP
137
138AC_PATH_QT_MOC
139AC_PATH_QT_FINDTR
140AC_PATH_QT_MSGTOQM
141AC_PATH_QT_MERGETR
142
143AC_PATH_KDE_LIBRARIES
144
145dnl Switch to C++ mode and check for needed C++ headers
146AC_LANG_SAVE
147AC_LANG_CPLUSPLUS
148
149AC_CHECK_HEADER(vector,,
150  AC_MSG_ERROR(You need to have the libstdc++ headers installed))
151
152AC_LANG_RESTORE
153
154dnl Check for qinterlacestyle.h
155LICQ_CHECK_QT_HEADER
156
157dnl Checks for typedefs, structures, and compiler characteristics.
158dnl AC_C_SOCKLEN_T
159
160AC_OUTPUT(
161  po/Makefile \
162  src/Makefile \
163  share/Makefile \
164  Makefile)
165
166echo ""
167echo "Please remember to use GNU make, often installed as gmake."
168echo ""
169echo "Install prefix : $prefix"
170echo "Licq Includes  : $LICQ_INCLUDES"
171if test "$have_kde" = yes; then
172  echo "KDE            : includes in $kde_includes, libs in $kde_libraries"
173else
174  echo "KDE            : disabled."
175fi
176echo "Qt includes    : $ac_cv_header_qtinc"
177echo "Qt libraries   : $ac_qt_libdir, $ac_qt_libname"
178echo "Qt moc         : $MOC"
179echo ""
Note: See TracBrowser for help on using the browser.