File: configure.ac

package info (click to toggle)
hsetroot 1.0.2-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 696 kB
  • ctags: 83
  • sloc: sh: 7,144; ansic: 613; makefile: 10
file content (65 lines) | stat: -rw-r--r-- 1,954 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
# hsetroot - an imlib2 powered wallpaper application
# Copyright (C) 2003 Hyriand - See COPYING
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# Process this file with autoconf to produce a configure script.
# 

AC_PREREQ(2.52)
AC_INIT(hsetroot, 1.0.2, hyriand@thegraveyard.org)
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE(hsetroot, 1.0.2)
AM_MAINTAINER_MODE

# Checks for programs.
AC_PROG_CC

# default set of CFLAGS (override this with ./configure CFLAGS=foo)
CFLAGS=${CFLAGS:=-O2 -g -Wall}

# Checks for header files.
AC_PATH_X
AC_HEADER_STDC
AC_CHECK_HEADERS([string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

# Check for imlib2
AC_CHECK_PROGS(imlib2config_cmd, imlib2-config)
if test x$imlib2config_cmd = "x"; then
  AC_MSG_ERROR([error. Imlib2 is required to compile.])
fi

IMLIB2_CFLAGS=`$imlib2config_cmd --cflags`
AC_SUBST(IMLIB2_CFLAGS)

IMLIB2_LIBS=`$imlib2config_cmd --libs`
AC_SUBST(IMLIB2_LIBS)

X11_CFLAGS=`pkg-config x11 --cflags`
AC_SUBST(X11_CFLAGS)

X11_LIBS=`pkg-config x11 --libs`
AC_SUBST(X11_LIBS)

# Some extra definitions for config.h
AC_DEFINE(DESCRIPTION, "yet another wallpaper application", [single line package description])

AM_CONFIG_HEADER(config/config.h)
AC_CONFIG_FILES([Makefile src/Makefile config/Makefile])

AC_OUTPUT