File: configure.in

package info (click to toggle)
gtkatlantic 0.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,144 kB
  • ctags: 863
  • sloc: sh: 10,807; ansic: 7,915; xml: 188; makefile: 94
file content (86 lines) | stat: -rw-r--r-- 2,556 bytes parent folder | download
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
dnl Process this file with autoconf to produce a configure script.

AC_INIT(configure.in)
AM_INIT_AUTOMAKE(gtkatlantic, 0.6.1)
AM_CONFIG_HEADER(config.h)

AC_ISC_POSIX
AC_SUBST(CFLAGS,$CFLAGS)
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
LT_INIT
AC_CONFIG_MACRO_DIR([m4])
PKG_CHECK_MODULES(GTK, gtk+-3.0 gdk-3.0 libxml-2.0,,exit)
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)
dnl Checks for programs.
dnl Checks for libraries.
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
dnl Checks for Additional stuffs.
dnl GETTEXT_PACKAGE=GnomeNET
dnl AC_SUBST(GETTEXT_PACKAGE)
dnl AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext])

AC_CHECK_HEADER([png.h], [], [AC_MSG_ERROR([Please install libpng >= 1.0.12])])

AC_DEFINE(HAVE_INET_ATON, 1, [Define if you have inet_aton])
AC_CHECK_LIB(c, inet_aton, [AC_DEFINE(HAVE_INET_ATON)])
AC_CHECK_LIB(resolv, inet_aton, [AC_DEFINE(HAVE_INET_ATON)])

AC_DEFINE_UNQUOTED(DEBUG, 0, [If you wish to see network traffic.])

dnl Needed on buggy system
AC_DEFINE_UNQUOTED(PACKAGE, "${PACKAGE}", [Package name])
AC_DEFINE_UNQUOTED(VERSION, "${VERSION}", [Package version])

dnl Languages which your application supports
dnl ALL_LINGUAS=""
dnl AM_GNU_GETTEXT
dnl AM_GNU_GETTEXT_VERSION(0.10.40)

dnl Set PACKAGE_LOCALE_DIR in config.h.
dnl if test "x${prefix}" = "xNONE"; then
dnl   AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
dnl else
dnl   AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
dnl fi

# Expand datadir
if test "x${datadir}" = 'x${datarootdir}'; then
  if test "x${datarootdir}" = 'x${prefix}/share'; then
    if test "x${prefix}" = 'xNONE'; then
      datadir="${ac_default_prefix}/share"
    else
      datadir="${prefix}/share"
    fi
  else
    datadir="${datarootdir}"
  fi
fi

dnl Set PACKAGE_DATA_DIR in config.h.
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}", [Path where data will be installed])

dnl Set ICON_DIR for subs, set ICON_DATA_DIR in config.h.
AC_ARG_WITH(icons-path,
  AC_HELP_STRING([--with-icons-path=path],
  [Complete path where icons will be installed (/usr/share/icons/hicolor)]),
  ICON_DIR=$withval,
  ICON_DIR="${datadir}/icons/hicolor")

AC_DEFINE_UNQUOTED(PACKAGE_ICON_DIR, "${ICON_DIR}", [Path where icons will be installed])
AC_SUBST(ICON_DIR)

if test "x$GCC" = "xyes"; then  \
      CFLAGS+=" -Wall -Wextra -ggdb";  \ 
fi

AC_OUTPUT([
Makefile
src/Makefile
data/Makefile
data/themes/Makefile
])