~ubuntu-branches/ubuntu/karmic/recordmydesktop/karmic

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): José L. Redrejo Rodríguez
  • Date: 2007-04-25 11:54:22 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070425115422-5jvf144ln0c44afr
Tags: 0.3.4-1
* New upstream release
* debian/control: conflicts with previous gtk-recordmydesktop versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
AC_PREREQ(2.59)
5
5
AC_INIT(src/recordmydesktop.c)
6
 
AM_INIT_AUTOMAKE(recordmydesktop,0.3.1,)
 
6
AM_INIT_AUTOMAKE(recordmydesktop,0.3.4,)
7
7
 
8
8
AC_CONFIG_SRCDIR([src/recordmydesktop.c])
9
9
AM_CONFIG_HEADER(config.h)
32
32
    CFLAGS="-I$x_includes  $CFLAGS";
33
33
fi
34
34
 
 
35
AC_ARG_ENABLE(oss,
 
36
     [  --enable-oss[=yes]    compile with OSS(don't check for ALSA)],
 
37
     [case "${enableval}" in
 
38
       yes) oss=true ;;
 
39
       no)  oss=false ;;
 
40
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-oss) ;;
 
41
     esac],[oss=false])
35
42
 
 
43
AC_ARG_ENABLE(jack,
 
44
     [  --enable-jack[=yes]    compile with Jack support],
 
45
     [case "${enableval}" in
 
46
       yes) jack=true ;;
 
47
       no)  jack=false ;;
 
48
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-jack) ;;
 
49
     esac],[jack=true])
36
50
 
37
51
AC_CHECK_HEADER([alsa/asoundlib.h])
38
 
AC_CHECK_HEADERS([sys/time.h unistd.h vorbis/vorbisfile.h ])
 
52
AC_CHECK_HEADER([endian.h],default_endian=true)
 
53
if test x$default_endian != xtrue; then
 
54
AC_CHECK_HEADER([machine/endian.h],
 
55
                AC_DEFINE([HAVE_MACHINE_ENDIAN_H],1,
 
56
                            endian.h in $include_path/machine/ subdirectory))
 
57
fi
 
58
 
 
59
AC_CHECK_HEADER([sys/soundcard.h])
 
60
AC_CHECK_HEADER([dlfcn.h],[dlfcn_header=true])
 
61
 
 
62
if test x$jack = xtrue && test x$dlfcn_header = xtrue; then
 
63
AC_CHECK_HEADER([jack/jack.h],
 
64
                jack_headers_present=true)
 
65
fi
 
66
AC_CHECK_HEADERS([sys/time.h unistd.h vorbis/vorbisfile.h fcntl.h])
 
67
 
 
68
 
 
69
 
 
70
AC_CHECK_TYPES([u_int16_t],,AC_MSG_ERROR([Type u_int16_t must be available!]))
 
71
AC_CHECK_TYPES([u_int32_t],,AC_MSG_ERROR([Type u_int32_t must be available!]))
 
72
AC_CHECK_TYPES([u_int64_t],,)
39
73
 
40
74
# Checks for libraries.
41
75
 
42
76
AC_CHECK_LIB([m],[isnan],,)
43
 
AC_CHECK_LIB([z],[deflate],,)
 
77
AC_CHECK_LIB([z],[deflate],,AC_MSG_ERROR([Can't find zlib]))
44
78
AC_CHECK_LIB([ICE],[IceOpenConnection],,AC_MSG_ERROR([Can't find libICE]),)
45
79
AC_CHECK_LIB([SM],[SmcOpenConnection],,AC_MSG_ERROR([Can't find libSM]),)
46
80
AC_CHECK_LIB([X11],[XOpenDisplay],,AC_MSG_ERROR([Can't find libX11]),
47
81
            -L$x_libraries $X_PRE_LIBS)
48
82
AC_CHECK_LIB([Xext],[XShmQueryVersion],,AC_MSG_ERROR([Can't find libXext]))
49
 
AC_CHECK_LIB([Xfixes], [XFixesQueryExtension],,AC_MSG_ERROR([Can't find libXfixes]))
50
 
AC_CHECK_LIB([Xdamage], [XDamageQueryExtension],,AC_MSG_ERROR([Can't find libXdamage]))
51
 
AC_CHECK_LIB([vorbis],[vorbis_info_clear],,AC_MSG_ERROR([Can't find libvorbis]))
52
 
AC_CHECK_LIB([vorbisfile],[ov_open],,AC_MSG_ERROR([Can't find libvorbisfile]),-lvorbis)
53
 
AC_CHECK_LIB([vorbisenc],[vorbis_encode_init],,AC_MSG_ERROR([Can't find libvorbisenc]),-lvorbis)
 
83
AC_CHECK_LIB([Xfixes], [XFixesQueryExtension],,
 
84
             AC_MSG_ERROR([Can't find libXfixes]))
 
85
AC_CHECK_LIB([Xdamage], [XDamageQueryExtension],,
 
86
             AC_MSG_ERROR([Can't find libXdamage]))
 
87
AC_CHECK_LIB([vorbis],[vorbis_info_clear],,
 
88
             AC_MSG_ERROR([Can't find libvorbis]))
 
89
AC_CHECK_LIB([vorbisfile],[ov_open],,
 
90
             AC_MSG_ERROR([Can't find libvorbisfile]),-lvorbis)
 
91
AC_CHECK_LIB([vorbisenc],[vorbis_encode_init],,
 
92
             AC_MSG_ERROR([Can't find libvorbisenc]),-lvorbis)
54
93
AC_CHECK_LIB([ogg],[ogg_stream_init],,AC_MSG_ERROR([Can't find libogg]))
55
 
AC_CHECK_LIB([theora],[theora_encode_YUVin],,AC_MSG_ERROR([Can't find libtheora]))
56
 
AC_CHECK_LIB([pthread],[pthread_mutex_lock],,AC_MSG_ERROR([Can't find libpthread]))
57
 
AC_CHECK_LIB([asound],[snd_pcm_drain],,AC_MSG_ERROR([Can't find libasound]))
58
 
 
 
94
AC_CHECK_LIB([theora],[theora_encode_YUVin],,
 
95
             AC_MSG_ERROR([Can't find libtheora]))
 
96
AC_CHECK_LIB([pthread],[pthread_mutex_lock],,
 
97
             AC_MSG_ERROR([Can't find libpthread]))
 
98
 
 
99
if test x$oss = xfalse; then
 
100
    AC_CHECK_LIB([asound],[snd_pcm_drain],,
 
101
                audio_backend="OSS")
 
102
else
 
103
    audio_backend="OSS"
 
104
fi
 
105
 
 
106
if test x$jack_headers_present = xtrue; then
 
107
    AC_CHECK_LIB([dl],[dlopen],,libdl_np=true)
 
108
    if test x$libdl_np != xtrue; then
 
109
        AC_DEFINE([HAVE_JACK_H],1,
 
110
                define to 1 if <jack/jack.h> exists)
 
111
    fi
 
112
fi
59
113
 
60
114
 
61
115
# Checks for typedefs, structures, and compiler characteristics.
70
124
        doc/Makefile ])
71
125
AC_OUTPUT
72
126
 
 
127
if test x$audio_backend != xOSS; then
 
128
    audio_backend="ALSA"
 
129
fi
 
130
if test x$jack_headers_present = xtrue && test x$libdl_np != xtrue; then
 
131
    jack_support="Enabled"
 
132
else
 
133
    jack_support="Disabled"
 
134
fi
 
135
echo ""
 
136
echo ""
 
137
echo "****************************************"
 
138
echo ""
 
139
echo "Audio driver that will be used: $audio_backend"
 
140
echo ""
 
141
echo "Compile with Jack support: $jack_support"
 
142
echo ""
 
143
echo "****************************************"
 
144
echo ""
 
145
echo ""