|
Lines 1-7
Link Here
|
| 1 |
dnl Process this file with autoconf to produce a configure script. |
1 |
dnl Process this file with autoconf to produce a configure script. |
| 2 |
|
2 |
|
| 3 |
AC_INIT(configure.in) |
3 |
AC_INIT |
| 4 |
AM_INIT_AUTOMAKE(gyach, 0.9.2) |
4 |
AC_CONFIG_SRCDIR([configure.in]) |
|
|
5 |
AM_INIT_AUTOMAKE(gyache, 1.0.6) |
| 5 |
AM_CONFIG_HEADER(config.h) |
6 |
AM_CONFIG_HEADER(config.h) |
| 6 |
|
7 |
|
| 7 |
AC_ISC_POSIX |
8 |
AC_ISC_POSIX |
|
Lines 9-91
Link Here
|
| 9 |
AM_PROG_CC_STDC |
10 |
AM_PROG_CC_STDC |
| 10 |
AC_HEADER_STDC |
11 |
AC_HEADER_STDC |
| 11 |
|
12 |
|
| 12 |
AC_ARG_ENABLE(gtk_v2, |
13 |
dnl configure libtool. this is for adding the -lltdl linker flag. |
| 13 |
[ --disable-gtk_v2 disable gtk v2.0.x support]) |
14 |
AC_LIBLTDL_INSTALLABLE |
| 14 |
AC_ARG_ENABLE(gdk-pixbuf, |
15 |
AC_PROG_LIBTOOL |
| 15 |
[ --disable-gdk-pixbuf disable use of gdk-pixbuf (with gtk v1.x)], |
16 |
AC_SUBST(LIBLTDL) |
| 16 |
gdk_pixbuf=$enableval, gdk_pixbuf=yes) |
17 |
|
| 17 |
AC_ARG_ENABLE(pixmaps, |
18 |
dnl AC_ARG_ENABLE(gtk_v2, |
| 18 |
[ --disable-pixmaps disable remote user status pixmaps]) |
19 |
dnl [ --disable-gtk_v2 disable gtk v2.0.x support]) |
|
|
20 |
dnl AC_ARG_ENABLE(gdk-pixbuf, |
| 21 |
dnl [ --disable-gdk-pixbuf disable use of gdk-pixbuf (with gtk v1.x)], |
| 22 |
dnl gdk_pixbuf=$enableval, gdk_pixbuf=yes) |
| 23 |
dnl AC_ARG_ENABLE(pixmaps, |
| 24 |
dnl [ --disable-pixmaps disable remote user status pixmaps]) |
| 19 |
AC_ARG_ENABLE(threads, |
25 |
AC_ARG_ENABLE(threads, |
| 20 |
[ --disable-threads disable use of pthread_create]) |
26 |
[ --disable-threads disable use of pthread_create]) |
| 21 |
AC_ARG_ENABLE(debug, |
27 |
AC_ARG_ENABLE(debug, |
| 22 |
[ --enable-debug=LEVEL enable debug messages at specified level]) |
28 |
[ --enable-debug=LEVEL enable debug messages at specified level]) |
| 23 |
dnl AC_ARG_ENABLE(interface, |
|
|
| 24 |
dnl [ --enable-interface=type use "type" widget for main chat text [text/xtext/html]] ) |
| 25 |
|
29 |
|
|
|
30 |
dnl GTK_CFLAGS=`pkg-config --cflags gtk+-2.0 gthread-2.0 libgtkhtml-2.0 2>/dev/null` |
| 31 |
dnl ESD_LIBS=`esd-config --cflags` |
| 32 |
dnl ESD_LIBS=`esd-config --libs` |
| 33 |
|
| 34 |
AC_SUBST(CFLAGS) |
| 35 |
AC_SUBST(LDFLAGS) |
| 36 |
|
| 37 |
AC_DEFINE(USE_GTK2) |
| 38 |
GTK_REQUIRED_VERSION=2.0 |
| 39 |
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED_VERSION) |
| 40 |
AC_SUBST(GTK_CFLAGS) |
| 41 |
AC_SUBST(GTK_LIBS) |
| 42 |
|
| 43 |
GTHREAD_REQUIRED_VERSION=2.0 |
| 44 |
PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GTHREAD_REQUIRED_VERSION) |
| 45 |
AC_SUBST(GHTREAD_CFLAGS) |
| 46 |
AC_SUBST(GTHREAD_LIBS) |
| 47 |
|
| 48 |
GTKHTML_REQUIRED_VERSION=2.0 |
| 49 |
PKG_CHECK_MODULES(GTKHTML, libgtkhtml-2.0 >= $GTKHTML_REQUIRED_VERSION) |
| 50 |
AC_SUBST(GTKHTML_CFLAGS) |
| 51 |
AC_SUBST(GTKHTML_LIBS) |
| 52 |
|
| 53 |
dnl I honsestly dont know what version is requred of esd |
| 54 |
dnl or if it would be better to: |
| 55 |
dnl ESOUND_LIBS=`esd-config --libs` |
| 56 |
dnl AC_SUBST(ESOUND_LIBS) |
| 57 |
ESOUND_REQUIRED_VERSION=0.2 |
| 58 |
PKG_CHECK_MODULES(ESOUND, esound >= $ESOUND_REQUIRED_VERSION) |
| 59 |
AC_SUBST(ESOUND_CFLAGS) |
| 60 |
AC_SUBST(ESOUND_LIBS) |
| 61 |
|
| 62 |
dnl check for jasper here |
| 63 |
JASPER_LIBS=-ljasper |
| 64 |
AC_SUBST(JASPER_LIBS) |
| 26 |
|
65 |
|
| 27 |
if test "x$enable_gtk_v2" != "xno"; then |
66 |
if test "$enable_threads" != "no"; then |
| 28 |
printf "checking for GTK - version >= 2.0.0... " |
67 |
GTK_LIBS=`pkg-config --libs gtk+-2.0 gthread-2.0 libgtkhtml-2.0 2>/dev/null` |
| 29 |
GTK_CFLAGS=`pkg-config --cflags gtk+-2.0 gthread-2.0 2> /dev/null` |
|
|
| 30 |
else |
| 31 |
GTK_CFLAGS="" |
| 32 |
fi |
| 33 |
|
| 34 |
if test "x${GTK_CFLAGS}" != "x"; then |
| 35 |
if test "x$enable_gtk_v2" != "xno"; then |
| 36 |
echo yes |
| 37 |
fi |
| 38 |
if test "$enable_threads" != "no"; then |
| 39 |
GTK_LIBS=`pkg-config --libs gtk+-2.0 gthread-2.0 2> /dev/null` |
| 40 |
else |
| 41 |
GTK_LIBS=`pkg-config --libs gtk+-2.0 2> /dev/null` |
| 42 |
fi |
| 43 |
CFLAGS="${CFLAGS} ${GTK_CFLAGS}" |
| 44 |
LIBS="${LIBS} ${GTK_LIBS}" |
| 45 |
AC_DEFINE(USE_GTK2) |
| 46 |
else |
| 47 |
if test "x$enable_gtk_v2" != "xno"; then |
| 48 |
echo no |
| 49 |
fi |
| 50 |
AM_PATH_GTK(1.2.0, , |
| 51 |
AC_MSG_WARN(Cannot find GTK: Is gtk-config in path?), |
| 52 |
gthread) |
| 53 |
dnl AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?), gthread) |
| 54 |
|
| 55 |
if test "x${GTK_CFLAGS}" = 'x'; then |
| 56 |
echo "*** gtk-config not found, running scripts/my-gtk-config" |
| 57 |
CFLAGS="${CFLAGS} `scripts/my-gtk-config --cflags`" |
| 58 |
echo "*** CFLAGS now '${CFLAGS}'" |
| 59 |
LIBS="${LIBS} `scripts/my-gtk-config --libs`" |
| 60 |
echo "*** LIBS now '${LIBS}'" |
| 61 |
fi |
| 62 |
|
| 63 |
if test "$gdk_pixbuf" = yes; then |
| 64 |
AC_PATH_PROG(gdkpixbufpath, gdk-pixbuf-config) |
| 65 |
AC_MSG_CHECKING(for gdk-pixbuf >= 0.8) |
| 66 |
GDK_PIXBUF_CFLAGS=`$gdkpixbufpath --cflags 2>/dev/null` |
| 67 |
GDK_PIXBUF_LIBS=`$gdkpixbufpath --libs 2>/dev/null` |
| 68 |
if test "_$GDK_PIXBUF_CFLAGS" = _; then |
| 69 |
AC_MSG_RESULT([not found, will attempt to use 'convert' for images]) |
| 70 |
else |
| 71 |
vers=`$gdkpixbufpath --version` |
| 72 |
case $vers |
| 73 |
in |
| 74 |
gdk-pixbuf-0.[[01234567]]) gdk_pixbuf_ok=false ;; |
| 75 |
*) gdk_pixbuf_ok=true ;; |
| 76 |
esac |
| 77 |
if $gdk_pixbuf_ok; then |
| 78 |
AC_MSG_RESULT(found) |
| 79 |
gdk_pixbuf=yes |
| 80 |
AC_DEFINE(USE_GDK_PIXBUF) |
| 81 |
LIBS="${LIBS} $GDK_PIXBUF_LIBS" |
| 82 |
CFLAGS="${CFLAGS} $GDK_PIXBUF_CFLAGS" |
| 83 |
else |
| 84 |
gdk_pixbuf=no |
| 85 |
AC_MSG_RESULT([version too old, building without gdk-pixbuf]) |
| 86 |
fi |
| 87 |
fi |
| 88 |
fi |
| 89 |
fi |
68 |
fi |
| 90 |
|
69 |
|
| 91 |
ac_system=`uname -s | cut -c1-6` |
70 |
ac_system=`uname -s | cut -c1-6` |
|
Lines 158-165
Link Here
|
| 158 |
fi |
137 |
fi |
| 159 |
changequote([,])dnl |
138 |
changequote([,])dnl |
| 160 |
|
139 |
|
| 161 |
AC_OUTPUT([ |
140 |
AC_CONFIG_FILES([ |
| 162 |
Makefile |
141 |
Makefile |
| 163 |
src/Makefile |
142 |
src/Makefile |
|
|
143 |
src/webcam/Makefile |
| 164 |
]) |
144 |
]) |
|
|
145 |
AC_OUTPUT |
| 165 |
|
146 |
|