~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to configure.in.in

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#MIN_CONFIG
 
2
 
 
3
dnl Checks for header files.
 
4
AC_HEADER_DIRENT
 
5
AC_HEADER_STDC
 
6
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h linux/awe_voice.h awe_voice.h /usr/src/sys/i386/isa/sound/awe_voice.h /usr/src/sys/gnu/i386/isa/sound/awe_voice.h linux/ucdrom.h sys/stdtypes.h sys/filio.h sys/audioio.h Alib.h sys/sem.h string.h getopt.h machine/endian.h sys/awe_voice.h)
 
7
AC_CHECK_FUNCS(usleep snprintf)
 
8
 
 
9
AC_ARG_WITH(alsa, [  --with-alsa             use an alternative driver for GUS],
 
10
[
 
11
   if test $withval = "yes"; then
 
12
     kde_with_alsa=yes
 
13
   else
 
14
     kde_with_alsa=no
 
15
  fi
 
16
], kde_with_alsa=no)
 
17
 
 
18
if test "$ac_header_sys_soundlib_h" = "no"; then
 
19
  kde_with_alsa=no
 
20
fi
 
21
 
 
22
if test "$kde_with_alsa" = "yes"; then
 
23
  AC_DEFINE(ALSA, 1, [Define if you have Alsa support])
 
24
fi
 
25
 
 
26
AC_MSG_CHECKING(machine architecture)
 
27
AC_SUBST(ARCH_TYPE)
 
28
ARCH_TYPE=`uname -m`
 
29
if test `uname -s` = "FreeBSD"
 
30
then
 
31
        HW_MODEL=`sysctl -n hw.model`
 
32
 
 
33
        case "$HW_MODEL" in
 
34
                "Pentium II/Pentium II Xeon/Celeron")
 
35
                        ARCH_TYPE="i686"
 
36
                ;;
 
37
        esac
 
38
fi;
 
39
AC_MSG_RESULT($ARCH_TYPE)
 
40
 
 
41
AC_MSG_CHECKING(for a binutils new enough to support MMX)
 
42
        as_ver=`echo|as -v 2>&1|grep ".*version.*"`
 
43
        if test -z "$as_ver"
 
44
        then
 
45
                MMX_SUPPORT="no"
 
46
        else
 
47
                as_ver=`echo $as_ver |sed -e "s/.*version //;s/ .*//"`
 
48
                as_major=`echo $as_ver |cut -d. -f1`
 
49
                if test $as_major -gt 2
 
50
                then
 
51
                        MMX_SUPPORT="yes"
 
52
                else
 
53
                        if test $as_major -lt 2
 
54
                        then
 
55
                                MMX_SUPPORT="no"
 
56
                        else
 
57
                                as_minor=`echo $as_ver |cut -d. -f2`
 
58
                                if test $as_minor -ge 10
 
59
                                then
 
60
                                        MMX_SUPPORT="yes"
 
61
                                else
 
62
                                        MMX_SUPPORT="no"
 
63
                                fi
 
64
                        fi
 
65
                fi
 
66
        fi
 
67
        AC_MSG_RESULT($MMX_SUPPORT)
 
68
 
 
69
 
 
70
dnl Checks for typedefs, structures, and compiler characteristics.
 
71
AC_HEADER_TIME
 
72
CXXFLAGS="$CXXFLAGS -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST"
 
73
 
 
74
dnl check if the assembler supports SSE instructions
 
75
AC_MSG_CHECKING([for x86 SSE instructions])
 
76
AC_CACHE_VAL(ac_cv_x86_sse,
 
77
[
 
78
AC_TRY_COMPILE(,
 
79
[
 
80
#if defined(__GNUC__) && defined(__i386__)
 
81
__asm__("movups %xmm0, (%esp)");
 
82
#else
 
83
#error Not gcc on x86
 
84
#endif
 
85
],
 
86
ac_cv_x86_sse=yes,
 
87
ac_cv_x86_sse=no)
 
88
])
 
89
AC_MSG_RESULT($ac_cv_x86_sse)
 
90
if eval "test \"`echo `$ac_cv_x86_sse\" = yes"; then
 
91
            AC_DEFINE(HAVE_X86_SSE,1,
 
92
                        [Define if your assembler supports x86 SSE instructions])
 
93
fi