-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
32 lines (27 loc) · 793 Bytes
/
configure.ac
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.62)
AC_INIT([xprintidle], [2.1])
AM_INIT_AUTOMAKE([dist-bzip2 -Wall])
AC_CONFIG_SRCDIR([xprintidle.c])
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
# Checks for header files.
AC_PATH_X
if test "$no_x" = yes; then
AC_MSG_ERROR([X not found])
fi
AC_SUBST([x_includes])
AC_SUBST([x_libraries])
LIBS="$LIBS -lX11 -lXss -lXext"
# Checks for libraries.
user_LIBS=$LIBS
if test $x_libraries; then
LIBS="$LIBS -L$x_libraries"
fi
AC_CHECK_LIB([X11], [XOpenDisplay], , [AC_MSG_ERROR([libX11 not found])])
AC_CHECK_LIB([Xss], [XScreenSaverQueryExtension], , [AC_MSG_ERROR([libXss not found])])
LIBS=$user_LIBS
AC_CONFIG_FILES([Makefile])
AC_OUTPUT