~vcs-imports/gnaural/trunk

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
48
49
50
51
52
53
54
55
dnl Process this file with autoconf to produce a configure script.
#NOTE: to cross-compile for Win32, run ./configure with the following options:
# --host=i586-mingw32msvc --target=i586-mingw32msvc --build=`./config.guess`

AC_INIT
AC_CONFIG_SRCDIR([configure.in])
AM_INIT_AUTOMAKE(gnaural, 0.5.20070301)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE

AC_ISC_POSIX
AC_PROG_CC
AC_PROG_CXX
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_EXEEXT

#NOTE: only Linux needs these 4 lines:
pkg_modules="gtk+-2.0 >= 2.0.0"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)

#NOTE: platform specific stuff follows
case $host in
 *mingw32msvc*) testvar=true ;;
 *)  testvar=false ;;
esac
AM_CONDITIONAL(CCWIN32, test x$testvar = xtrue)

#NOTE: for some reason automake doesn't like conditionals determining libs, so I'll do it here:
case $host in
 *mingw32msvc*) PSPEC_LIBS=' -latk-1.0.dll -lgmodule-2.0.dll -lpango-1.0.dll -lgobject-2.0.dll -lgdk_pixbuf-2.0.dll -lgthread-2.0.dll -lpangoft2-1.0.dll -lgdk-win32-2.0.dll -lgtk-win32-2.0.dll -lpangowin32-1.0.dll -lgettextpo -liconv -lglib-2.0.dll -lwinmm -lintl' ;;
 *) PSPEC_LIBS='-lpthread -lgthread-2.0' ;;
esac
AC_SUBST([PSPEC_LIBS])
#NOTE: after that AC_SUBST, you can refer to it as @PSPEC_LIBS@ in src/Makefile.am

#NOTE: end platform specific stuff


GETTEXT_PACKAGE=gnaural
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])

dnl Add the languages which your application supports here.
ALL_LINGUAS=""
AM_GLIB_GNU_GETTEXT

AC_CONFIG_FILES([
Makefile
src/Makefile
po/Makefile.in
])
AC_OUTPUT