blob: d4e1a9f4f58c353c624cfe13a7dba559f716a163 (
plain)
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
|
#MIN_CONFIG(3)
AM_INIT_AUTOMAKE(kgamma,1.0.2)
dnl CXXFLAGS="$NOOPT_CXXFLAGS" dnl __kdevelop[noopt]__
dnl CFLAGS="$NOOPT_CFLAGS" dnl __kdevelop[noopt]__
dnl CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS" dnl __kdevelop[exc]__
dnl KDE_NEED_FLEX dnl __kdevelop__
dnl AC_PROG_YACC dnl __kdevelop__
dnl This test is taken from the aktion configure.in.in
dnl Modified by Michael v.Ostheim
dnl Checking for XFree86 VidMode Extensions
AC_MSG_CHECKING([for XFree86-VidModeExtension])
AC_CACHE_VAL(ac_cv_lib_vm,
[ac_save_LIBS="$LIBS"
kgamma_save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $all_includes"
LIBS="-L$x_libraries -lXxf86vm -lXext -lX11"
AC_TRY_LINK( [
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/extensions/xf86vmode.h>
],
[],
eval "ac_cv_lib_vm='-lXxf86vm'",
[AC_MSG_RESULT(no)
eval "ac_cv_lib_vm=no"])
LIBS="$ac_save_LIBS"
CFLAGS=$kgamma_save_CFLAGS
])
if eval "test ! \"`echo $ac_cv_lib_vm`\" = no"; then
LIBVM="$ac_cv_lib_vm"
AC_SUBST(LIBVM)
AC_MSG_RESULT($ac_cv_lib_vm)
AC_MSG_CHECKING([for gamma functions in XFree86-VidModeExtension])
AC_CACHE_VAL(ac_cv_lib_vmgamma,
[ac_save_LIBS="$LIBS"
kgamma_save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $all_includes"
LIBS="-L$x_libraries -lXxf86vm -lXext -lX11"
AC_TRY_LINK( [],
[XF86VidModeGetGamma();],
[AC_MSG_RESULT(yes)
eval "ac_cv_lib_vm='-lXxf86vm'"],
[AC_MSG_RESULT(no)
eval "ac_cv_lib_vm=no"])
LIBS="$ac_save_LIBS"
CFLAGS=$kgamma_save_CFLAGS
])
fi
if eval "test \"`echo $ac_cv_lib_vm`\" = no"; then
DO_NOT_COMPILE="$DO_NOT_COMPILE kgamma"
fi
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_HEADERS(sstream)
AC_LANG_RESTORE
|