1 dnl Process this file with autoconf to produce a configure script.
6 AC_CONFIG_SRCDIR(memprof.glade)
8 dnl $Format: "AM_INIT_AUTOMAKE(MemProf, $ReleaseVersion$)" $
9 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
11 dnl Specify a configuration file
12 AM_CONFIG_HEADER(config.h)
14 dnl Initialize libtool
17 dnl Initialize maintainer mode
27 if test "x$GCC" = "xyes"; then
29 *[\ \ ]-Wall[\ \ ]*) ;;
30 *) CFLAGS="$CFLAGS -Wall" ;;
35 debugdir=${libdir}/debug
37 AC_ARG_WITH(separate-debug-dir,
38 [ --with-separate-debug-dir=path Look for global separate debug info in this path [LIBDIR/debug]],
39 [debugdir="${withval}"])
41 AC_DEFINE_DIR(DEBUGDIR, debugdir,
42 [Look for global separate debug info in this path])
44 dnl GNOME checks (using pkg-config macros) and getting cflags and libs
46 LIBGLADE_REQUIRED=1.99.9
48 PKG_CHECK_MODULES(MEMPROF,
50 gtk+-2.0 >= $GTK_REQUIRED
51 libglade-2.0 >= $LIBGLADE_REQUIRED
54 AC_SUBST(MEMPROF_CFLAGS)
56 if ! uname | grep Linux > /dev/null ; then
57 AC_MSG_ERROR([*** MemProf only works on linux])
60 AC_SUBST(MEMPROF_LIBS)
62 dnl Initialize gettext
63 GETTEXT_PACKAGE=memprof
64 AC_SUBST(GETTEXT_PACKAGE)
65 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
66 [Identifier for message catalog files])
68 ALL_LINGUAS="am ar az be ca cs da de dz el en_CA en_GB es et eu fi fr hr hu it ja ko lv mk ml ms nb ne nl oc pa pl pt pt_BR ru rw sk sl sr sr@Latn sv ta tr uk vi zh_CN zh_TW"
71 AC_HAVE_HEADERS(execinfo.h)
72 AC_CHECK_FUNCS(bind_textdomain_codeset backtrace)
75 dnl Remember ACLOCAL_FLAGS for automatic reautogen.
76 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
78 dnl Output the Makefiles