Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 68070 | Differences between
and this patch

Collapse All | Expand All

(-)audiere-1.9.4.orig/configure.in (-76 / +128 lines)
Lines 66-104 Link Here
66
    AC_MSG_ERROR(could not find pthread library))
66
    AC_MSG_ERROR(could not find pthread library))
67
67
68
dnl Look for FLAC
68
dnl Look for FLAC
69
AC_CHECK_LIB(FLAC, FLAC__seekable_stream_decoder_process_single,
69
AC_ARG_ENABLE(flac,
70
    LIBS="-lFLAC -lm $LIBS"
70
    [  --disable-flac           Disable flac support],
71
    EXTRA_LIBS="-lFLAC -lm $EXTRA_LIBS"
71
    enable_flac=$enableval,
72
    HAVE_FLAC=true
72
    enable_flac=yes)
73
  ,
73
if test "$enable_flac" = "yes"; then
74
    AC_MSG_WARN([libFLAC not found.  Install FLAC from http://flac.sourceforge.net/])
74
    AC_CHECK_LIB(FLAC, FLAC__seekable_stream_decoder_process_single,
75
    AC_MSG_WARN([Disabling FLAC support.])
75
        LIBS="-lFLAC -lm $LIBS"
76
        EXTRA_LIBS="-lFLAC -lm $EXTRA_LIBS"
77
        HAVE_FLAC=true
78
      ,
79
        AC_MSG_WARN([libFLAC not found.  Install FLAC from http://flac.sourceforge.net/])
80
        AC_MSG_WARN([Disabling FLAC support.])
81
        AC_DEFINE(NO_FLAC)
82
      ,
83
        -lm)
84
else
76
    AC_DEFINE(NO_FLAC)
85
    AC_DEFINE(NO_FLAC)
77
  ,
86
    AC_MSG_WARN([Disabling FLAC support.])
78
    -lm)
87
fi
79
AM_CONDITIONAL(HAVE_FLAC, test "x$HAVE_FLAC" = "xtrue")
88
AM_CONDITIONAL(HAVE_FLAC, test "x$HAVE_FLAC" = "xtrue")
80
89
81
dnl Look for DUMB
90
dnl Look for DUMB
82
AC_CHECK_LIB(dumb, duh_start_renderer,
91
AC_ARG_ENABLE(dumb,
83
    LIBS="-ldumb $LIBS"
92
    [  --disable-dumb           Disable dumb support],
84
    EXTRA_LIBS="-ldumb $EXTRA_LIBS"
93
    enable_dumb=$enableval,
85
    HAVE_DUMB=true
94
    enable_dumb=yes)
86
  ,
95
if test "$enable_dumb" = "yes"; then
87
    AC_MSG_WARN([libdumb not found.  Install DUMB from http://dumb.sourceforge.net/])
96
    AC_CHECK_LIB(dumb, duh_start_renderer,
97
        LIBS="-ldumb $LIBS"
98
        EXTRA_LIBS="-ldumb $EXTRA_LIBS"
99
        HAVE_DUMB=true
100
      ,
101
        AC_MSG_WARN([libdumb not found.  Install DUMB from http://dumb.sourceforge.net/])
102
        AC_MSG_WARN([Disabling DUMB support.])
103
        AC_DEFINE(NO_DUMB))
104
else
88
    AC_MSG_WARN([Disabling DUMB support.])
105
    AC_MSG_WARN([Disabling DUMB support.])
89
    AC_DEFINE(NO_DUMB))
106
    AC_DEFINE(NO_DUMB)
107
fi
90
AM_CONDITIONAL(HAVE_DUMB, test "x$HAVE_DUMB" = "xtrue")
108
AM_CONDITIONAL(HAVE_DUMB, test "x$HAVE_DUMB" = "xtrue")
91
109
92
dnl Look for libcdaudio
110
dnl Look for libcdaudio
93
AC_CHECK_LIB(cdaudio, cd_init_device,
111
AC_ARG_ENABLE(cdaudio,
94
    LIBS="-lcdaudio $LIBS"
112
    [  --disable-cdaudio           Disable libcdaudio support],
95
    EXTRA_LIBS="-lcdaudio $EXTRA_LIBS"
113
    enable_cdaudio=$enableval,
96
    HAVE_LIBCDAUDIO=true
114
    enable_cdaudio=yes)
97
  ,
115
if test "$enable_cdaudio" = "yes"; then
98
    AC_MSG_WARN([libcdaudio not found.  Install it from http://libcdaudio.sf.net/])
116
    AC_CHECK_LIB(cdaudio, cd_init_device,
99
    AC_MSG_WARN([CD audio support might still be possible through another means such as winmm.]))
117
        LIBS="-lcdaudio $LIBS"
118
        EXTRA_LIBS="-lcdaudio $EXTRA_LIBS"
119
        HAVE_LIBCDAUDIO=true
120
      ,
121
        AC_MSG_WARN([libcdaudio not found.  Install it from http://libcdaudio.sf.net/])
122
        AC_MSG_WARN([CD audio support might still be possible through another means such as winmm.]))
123
else
124
    AC_MSG_WARN([Disabling libcdaudio support.])
125
fi
100
AM_CONDITIONAL(HAVE_LIBCDAUDIO, test "x$HAVE_LIBCDAUDIO" = "xtrue")
126
AM_CONDITIONAL(HAVE_LIBCDAUDIO, test "x$HAVE_LIBCDAUDIO" = "xtrue")
101
127
128
102
dnl Look for the POSIX realtime clock
129
dnl Look for the POSIX realtime clock
103
AC_SEARCH_LIBS(clock_gettime, rt,
130
AC_SEARCH_LIBS(clock_gettime, rt,
104
    AC_DEFINE(HAVE_CLOCK_GETTIME))
131
    AC_DEFINE(HAVE_CLOCK_GETTIME))
Lines 112-157 Link Here
112
AM_CONDITIONAL(HAVE_AL, test "x$HAVE_AL" = "xtrue")
139
AM_CONDITIONAL(HAVE_AL, test "x$HAVE_AL" = "xtrue")
113
140
114
dnl Look for wxWindows
141
dnl Look for wxWindows
115
AC_PATH_PROG(WX_CONFIG, wx-config, no, $PATH:/usr/local/bin)
142
AC_ARG_ENABLE(wxwindows,
116
if [[ "$WX_CONFIG" = "no" ]] ; then
143
    [  --disable-player         Disable building the wxwindows-based player.],
117
    AC_MSG_WARN([wxWindows not found, not building wxPlayer.
144
    [ENABLE_WX=$enableval],
118
        See http://www.wxwindows.org/])
145
    [ENABLE_WX="yes"])
119
else
146
if test "$ENABLE_WX" = "yes"; then
120
    old_CXXFLAGS="$CXXFLAGS"
147
    AC_PATH_PROG(WX_CONFIG, wx-config, no, $PATH:/usr/local/bin)
121
    old_LIBS="$LIBS"
148
    if test "$WX_CONFIG" = "no"; then
122
    WXFLAGS=`$WX_CONFIG --cxxflags`
149
        AC_MSG_WARN([wxWindows not found, not building wxPlayer.
123
    WXLIBS=`$WX_CONFIG --libs`
150
            See http://www.wxwindows.org/])
124
    CXXFLAGS="$WXFLAGS $CXXFLAGS"
151
    else
125
    LIBS="$WXLIBS $LIBS"
152
        old_CXXFLAGS="$CXXFLAGS"
126
153
        old_LIBS="$LIBS"
127
    AC_MSG_CHECKING(if small wxWindows application links)
154
        WXFLAGS=`$WX_CONFIG --cxxflags`
128
    AC_LINK_IFELSE(AC_LANG_SOURCE([
155
        WXLIBS=`$WX_CONFIG --libs`
129
        #include <wx/wx.h>
156
        CXXFLAGS="$WXFLAGS $CXXFLAGS"
130
        class App : public wxApp {
157
        LIBS="$WXLIBS $LIBS"
131
        public:
158
132
          bool OnInit() {
159
        AC_MSG_CHECKING(if small wxWindows application links)
133
            return false;
160
        AC_LINK_IFELSE(AC_LANG_SOURCE([
134
          }
161
            #include <wx/wx.h>
135
        };
162
            class App : public wxApp {
136
        IMPLEMENT_APP(App)
163
            public:
137
        ])
164
              bool OnInit() {
138
    ,
165
                return false;
139
        AC_MSG_RESULT(yes)
166
              }
140
        HAVE_WXWINDOWS=true
167
            };
141
        AC_DEFINE(HAVE_WXWINDOWS)
168
            IMPLEMENT_APP(App)
142
        WX_LIBS=`$WX_CONFIG --libs`
169
            ])
143
        WX_CPPFLAGS=`$WX_CONFIG --cxxflags`
170
        ,
144
        AC_SUBST(WX_LIBS)
171
            AC_MSG_RESULT(yes)
145
        AC_SUBST(WX_CPPFLAGS)
172
            HAVE_WXWINDOWS=true
146
    ,
173
            AC_DEFINE(HAVE_WXWINDOWS)
147
        AC_MSG_RESULT(no)
174
            WX_LIBS=`$WX_CONFIG --libs`
148
        AC_MSG_WARN([wx-config found but linking with wxWindows failed.
175
            WX_CPPFLAGS=`$WX_CONFIG --cxxflags`
149
Maybe wxWindows was compiled with another compiler?]))
176
            AC_SUBST(WX_LIBS)
150
177
            AC_SUBST(WX_CPPFLAGS)
151
    CXXFLAGS="$old_CXXFLAGS"
178
        ,
152
    LIBS="$old_LIBS"
179
            AC_MSG_RESULT(no)
180
            AC_MSG_WARN([wx-config found but linking with wxWindows failed.
181
    Maybe wxWindows was compiled with another compiler?]))
182
183
        CXXFLAGS="$old_CXXFLAGS"
184
        LIBS="$old_LIBS"
185
    fi
186
else
187
    AC_MSG_WARN([wxWindows support disabled - Not building wxPlayer.])
153
fi
188
fi
154
155
AM_CONDITIONAL(HAVE_WXWINDOWS, test "x$HAVE_WXWINDOWS" = "xtrue")
189
AM_CONDITIONAL(HAVE_WXWINDOWS, test "x$HAVE_WXWINDOWS" = "xtrue")
156
190
157
dnl Checks for header files.
191
dnl Checks for header files.
Lines 163-188 Link Here
163
    AC_DEFINE(HAVE_OSS))
197
    AC_DEFINE(HAVE_OSS))
164
AM_CONDITIONAL(HAVE_OSS, test "x$HAVE_OSS" = "xtrue")
198
AM_CONDITIONAL(HAVE_OSS, test "x$HAVE_OSS" = "xtrue")
165
199
166
AC_CHECK_HEADER(vorbis/vorbisfile.h,
200
AC_ARG_WITH(vorbis,
167
    HAVE_OGG=true
201
    [  --without-vorbis           Disable oggvorbis support],
168
    LIBS="-lvorbisfile -lvorbis -logg $LIBS"
202
    with_vorbis=$withval,
169
    EXTRA_LIBS="-lvorbisfile -lvorbis -logg $EXTRA_LIBS"
203
    with_vorbis=yes)
170
  ,
204
if test "$with_vorbis" = "yes"; then
171
    AC_MSG_WARN([Could not find vorbisfile header.  You do not appear to have libvorbis installed.
205
    AC_CHECK_HEADER(vorbis/vorbisfile.h,
206
        HAVE_OGG=true
207
        LIBS="-lvorbisfile -lvorbis -logg $LIBS"
208
        EXTRA_LIBS="-lvorbisfile -lvorbis -logg $EXTRA_LIBS"
209
      ,
210
        AC_MSG_WARN([Could not find vorbisfile header.  You do not appear to have libvorbis installed.
172
Get libvorbis from http://www.vorbis.com/])
211
Get libvorbis from http://www.vorbis.com/])
212
        AC_MSG_WARN([Disabling Ogg Vorbis support.])
213
        AC_DEFINE(NO_OGG))
214
else
173
    AC_MSG_WARN([Disabling Ogg Vorbis support.])
215
    AC_MSG_WARN([Disabling Ogg Vorbis support.])
174
    AC_DEFINE(NO_OGG))
216
    AC_DEFINE(NO_OGG)
217
fi
175
AM_CONDITIONAL(HAVE_OGG, test "x$HAVE_OGG" = "xtrue")
218
AM_CONDITIONAL(HAVE_OGG, test "x$HAVE_OGG" = "xtrue")
176
219
177
AC_CHECK_HEADER(speex.h,
220
AC_ARG_WITH(speex,
178
    HAVE_SPEEX=true
221
    [  --without-speex           Disable speex support],
179
    LIBS="-lspeex $LIBS"
222
    with_speex=$withval,
180
    EXTRA_LIBS="-lspeex $EXTRA_LIBS"
223
    with_speex=yes)
181
  ,
224
if test "$with_speex" = "yes"; then
182
    AC_MSG_WARN([Could not find speex header.  You do not appear to have libspeex installed.
225
    AC_CHECK_HEADER(speex/speex.h,
226
        HAVE_SPEEX=true
227
        LIBS="-lspeex $LIBS"
228
        EXTRA_LIBS="-lspeex $EXTRA_LIBS"
229
      ,
230
        AC_MSG_WARN([Could not find speex header.  You do not appear to have libspeex installed.
183
Get libspeex from http://www.speex.org/])
231
Get libspeex from http://www.speex.org/])
232
        AC_MSG_WARN([Disabling speex support.])
233
        AC_DEFINE(NO_SPEEX))
234
else
184
    AC_MSG_WARN([Disabling speex support.])
235
    AC_MSG_WARN([Disabling speex support.])
185
    AC_DEFINE(NO_SPEEX))
236
    AC_DEFINE(NO_SPEEX)
237
fi
186
AM_CONDITIONAL(HAVE_SPEEX, test "x$HAVE_SPEEX" = "xtrue")
238
AM_CONDITIONAL(HAVE_SPEEX, test "x$HAVE_SPEEX" = "xtrue")
187
239
188
AC_CHECK_HEADER(dsound.h,
240
AC_CHECK_HEADER(dsound.h,

Return to bug 68070