~oif-packaging/grail/raring

« back to all changes in this revision

Viewing changes to m4/xorg-gtest.m4

  • Committer: Chase Douglas
  • Date: 2012-06-21 20:30:14 UTC
  • mto: This revision was merged to the branch mainline in revision 234.
  • Revision ID: chase.douglas@ubuntu.com-20120621203014-g2uhy6mg779aufop
Rename utouch-grail to grail

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# serial 1
 
1
# serial 2
2
2
 
3
3
# Copyright (C) 2012 Canonical, Ltd.
4
4
#
27
27
# source location respectively.
28
28
AC_DEFUN([_CHECK_GTEST],
29
29
[
 
30
  AC_ARG_WITH([gtest-source-path],
 
31
              [AS_HELP_STRING([--with-gtest-source-path],
 
32
                              [location of the Google test sources, defaults to /usr/src/gtest])],
 
33
              [GTEST_SOURCE="$withval"; GTEST_CPPFLAGS="-I$withval/include"],
 
34
              [GTEST_SOURCE="/usr/src/gtest"])
 
35
 
30
36
  AC_ARG_WITH([gtest-include-path],
31
37
              [AS_HELP_STRING([--with-gtest-include-path],
32
38
                              [location of the Google test headers])],
33
39
              [GTEST_CPPFLAGS="-I$withval"])
34
40
 
35
 
  AC_ARG_WITH([gtest-source-path],
36
 
              [AS_HELP_STRING([--with-gtest-source-path],
37
 
                              [location of the Google test sources, defaults to /usr/src/gtest])],
38
 
              [GTEST_SOURCE="$withval"],
39
 
              [GTEST_SOURCE="/usr/src/gtest"])
40
 
 
41
41
  GTEST_CPPFLAGS="$GTEST_CPPFLAGS -I$GTEST_SOURCE"
42
42
 
43
43
  AC_CHECK_FILES([$GTEST_SOURCE/src/gtest-all.cc]
74
74
 
75
75
  PKG_CHECK_MODULES(X11, [x11], [have_x11=yes], [have_x11=no])
76
76
 
77
 
  # Check if we should include support for utouch-evemu
 
77
  # Check if we should include support for evemu
78
78
  AC_ARG_WITH([evemu],
79
79
              [AS_HELP_STRING([--with-evemu],
80
80
                              [support Linux input device recording playback
83
83
              [with_evemu=check])
84
84
 
85
85
  AS_IF([test "x$with_evemu" = xyes],
86
 
        [PKG_CHECK_MODULES(EVEMU, [utouch-evemu], [have_xorg_gtest_evemu=yes])],
 
86
        [PKG_CHECK_MODULES(EVEMU, [evemu], [have_xorg_gtest_evemu=yes])],
87
87
        [test "x$with_evemu" = xcheck],
88
88
        [PKG_CHECK_MODULES(EVEMU,
89
 
                           [utouch-evemu],
 
89
                           [evemu],
90
90
                           [have_xorg_gtest_evemu=yes],
91
91
                           [have_xorg_gtest_evemu=no])])
92
92
  AS_IF([test "x$have_xorg_gtest_evemu" = xyes],