1 dnl ---------------------------------------------------------------------------
2 dnl check if compiler compiles correctly something like this :
3 dnl class A { virtual A* me(); };
5 dnl class B : public X, public A { virtual B* me(); };
6 dnl stupid gcc doesn't even bother to warn it can't do it correctly
7 dnl ---------------------------------------------------------------------------
9 AC_MSG_CHECKING(if covariant return works)
10 AC_CACHE_VAL(kde_cv_covariant_return,
12 kde_cv_covariant_return=no
17 class A { public: virtual A* me(); };
18 class X { public: int x; virtual void ff() {}; };
19 class B : public X, public A { public: virtual B* me(); };
30 A* A::me() { return this; }
31 B* B::me() { return this; }
33 [ kde_cv_covariant_return=yes ])
37 if test "$kde_cv_covariant_return" = "no"; then
39 AC_DEFINE(COVARIANT_RETURN_BROKEN, 1,
40 [Define if covariant return in virtual methods works])
46 dnl ---------------------------------------------------------------------------
47 dnl check if compiler can compile something like this :
48 dnl class A { public: void foo( int ); };
49 dnl class B : public A { public: using A::foo; void foo( char ); }
50 dnl gcc 2.95.x fails with an error message
51 dnl ---------------------------------------------------------------------------
53 AC_MSG_CHECKING(for working using)
54 AC_CACHE_VAL(kde_cv_working_using,
56 kde_cv_working_using=no
61 class A { public: void foo( int ); };
62 class B : public A { public: using A::foo; void foo( char ); };
64 [ kde_cv_working_using=yes ])
68 if test "$kde_cv_working_using" = "yes"; then
70 AC_DEFINE(HAVE_WORKING_USING, 1,
71 [Define if the using keyword works correctly])
77 dnl ---------------------------------------------------------------------------
78 dnl check for arts for speech recognition
79 dnl ---------------------------------------------------------------------------
82 artsc_config_test_path=$prefix/bin:$exec_prefix/bin:$KDEDIR/bin:$PATH
83 AC_PATH_PROG(ARTSCCONFIG, artsc-config, no, $artsc_config_test_path)
85 if test "x$build_arts" = "xyes" && test "x$ARTSCCONFIG" != "xno" ; then
87 ARTS_PREFIX=[`$ARTSCCONFIG --arts-prefix`]
88 ARTS_CFLAGS="-I$ARTS_PREFIX/include/arts"
89 AC_DEFINE(HAVE_ARTS, 1, [Defined for arts support in khotkeys])
90 KHOTKEYS_ARTS_SUBDIR=arts
99 AC_SUBST(KHOTKEYS_ARTS_SUBDIR)