-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
executable file
·75 lines (53 loc) · 1.5 KB
/
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
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
#AC_INIT(libUseful,colums.projects@googlemail.com,,http://sites.google.com/site/columscode)
AC_INIT(cxine.c)
VERSION="0.0.1"
AC_SUBST(VERSION)
AC_PROG_CC
AC_LANG_C
AC_PROG_MAKE_SET
AC_HEADER_STDC
AC_SYS_LARGEFILE
AC_CHECK_FILE([/usr/X11/include/X11/X.h], [X11ROOT="/usr/X11"],
AC_CHECK_FILE([/usr/X11R7/include/X11/X.h], [X11ROOT="/usr/X11R7"],
AC_CHECK_FILE([/usr/X11R6/include/X11/X.h], [X11ROOT="/usr/X11R6"])
)
)
if test "X11ROOT" != ""
then
X11INC="-I$X11ROOT/include"
X11LIB="-L$X11ROOT/lib"
fi
AC_ARG_WITH(x-includes, [ --with-x-includes path to X11 includes directory], X11INC="-I$withval" )
AC_ARG_WITH(x-libraries, [ --with-x-libraries path to X11 libraries directory], X11LIB="-L$withval" )
LDFLAGS="$LDFLAGS $X11LIB"
CFLAGS="$CFLAGS $X11INC"
AC_CHECK_LIB(m,sqrt,,)
cf_have_x11=$ac_cv_lib_m_sqrt
AC_CHECK_LIB(xine,xine_new,,)
cf_have_xine=$ac_cv_lib_xine_xine_new
if test "$cf_have_xine" = "yes"
then
AC_DEFINE([HAVE_XINE])
else
echo "ERROR: cannot find libxine"
exit
fi
AC_CHECK_LIB(X11,XOpenDisplay,,)
cf_have_x11=$ac_cv_lib_X11_XOpenDisplay
if test "$cf_have_x11" = "yes"
then
AC_DEFINE([HAVE_X11])
else
echo "ERROR: cannot find libX11"
exit
fi
AC_CHECK_LIB(Xss, XScreenSaverSuspend,,)
cf_have_xss=$ac_cv_lib_Xss_XScreenSaverSuspend
if test "$cf_have_xss" = "yes"
then
AC_DEFINE([HAVE_XSCREENSAVER])
else
echo "WARNING: cannot find libXss. Screensaver control functions will be disabled."
fi
dnl read Makefile.in and write Makefile
AC_OUTPUT(Makefile)