configure.in 12.1 KB
Newer Older
1
2
3
dnl Autoconf settings for vlc
AC_INIT(src/interface/main.c)
AC_CONFIG_HEADER(include/defs.h)
4

5
6
AC_CANONICAL_HOST

Sam Hocevar's avatar
   
Sam Hocevar committed
7
VLC_VERSION=0.2.72
8
AC_SUBST(VLC_VERSION)
Sam Hocevar's avatar
   
Sam Hocevar committed
9
VLC_CODENAME=Ourumov
10
11
12
13
AC_SUBST(VLC_CODENAME)

dnl Check for tools
AC_PROG_MAKE_SET
Sam Hocevar's avatar
Sam Hocevar committed
14
15
16
17
18
19
if test -z "$CC"; then
  AC_PROG_CC
fi
if test -z "$CPP"; then
  AC_PROG_CPP
fi
20
21
22
23
24
25
26
27
28
29
30

dnl AM_PROG_LIBTOOL
AC_PROG_INSTALL

dnl Check for compiler environment
AC_C_CONST
AC_C_BIGENDIAN

dnl Check for system libs needed
AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol)
AC_CHECK_FUNCS(setenv putenv)
Sam Hocevar's avatar
   
Sam Hocevar committed
31
32
33
AC_CHECK_FUNC(connect,,[AC_CHECK_LIB(socket,connect,LIB=${LIB}" -lsocket")])
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname,LIB=${LIB}" -lnsl")])
AC_CHECK_FUNC(nanosleep,,[AC_CHECK_LIB(rt,nanosleep,LIB=${LIB}" -lrt",[AC_CHECK_LIB(posix4,nanosleep,LIB=${LIB}" -lposix4")])])
34
AC_CHECK_FUNCS(usleep)
Sam Hocevar's avatar
   
Sam Hocevar committed
35
AC_CHECK_FUNC(inet_aton,,[AC_CHECK_LIB(resolv,inet_aton,LIB=${LIB}" -lresolv")])
Sam Hocevar's avatar
   
Sam Hocevar committed
36
AC_CHECK_FUNCS(vasprintf)
Sam Hocevar's avatar
   
Sam Hocevar committed
37
38
39
40
41

AC_CHECK_FUNC(getopt_long,[AC_DEFINE(HAVE_GETOPT_LONG,1,long getopt support)],
[ # FreeBSD has a gnugetopt library for this:
  AC_CHECK_LIB([gnugetopt],[getopt_long],
    [AC_DEFINE(HAVE_GETOPT_LONG,1,getopt support) LIB=${LIB}" -lgnugetopt"],
Sam Hocevar's avatar
   
Sam Hocevar committed
42
    [GETOPT=1])])
Sam Hocevar's avatar
   
Sam Hocevar committed
43
44
AC_SUBST(GETOPT)

45
46
AC_FUNC_MMAP
AC_TYPE_SIGNAL
Sam Hocevar's avatar
   
Sam Hocevar committed
47
AC_CHECK_LIB(dl,dlopen,LIB=${LIB}" -ldl")
Sam Hocevar's avatar
   
Sam Hocevar committed
48
AC_CHECK_LIB(m,pow,LIB_YUV=${LIB_YUV}" -lm")
Sam Hocevar's avatar
   
Sam Hocevar committed
49
50
AC_CHECK_LIB(pthread,pthread_create,LIB=${LIB}" -lpthread")
AC_CHECK_LIB(threads,thread_create,LIB=${LIB}" -lthreads")
51

Christophe Massiot's avatar
Christophe Massiot committed
52
53
CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
AC_CHECK_HEADERS(stddef.h)
Benoit Steiner's avatar
   
Benoit Steiner committed
54
55
AC_CHECK_HEADERS(getopt.h)
AC_CHECK_HEADERS(sys/sockio.h)
Sam Hocevar's avatar
   
Sam Hocevar committed
56
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)
57
AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h)
58
59
AC_CHECK_HEADERS(dlfcn.h image.h)
AC_CHECK_HEADERS(arpa/inet.h net/if.h netinet/in.h sys/socket.h)
Christophe Massiot's avatar
Christophe Massiot committed
60
AC_CHECK_HEADERS(machine/param.h)
61
62

dnl Check for threads library
63
AC_CHECK_HEADERS(cthreads.h pthread.h kernel/scheduler.h kernel/OS.h)
64

Sam Hocevar's avatar
   
Sam Hocevar committed
65
dnl Do a series of bizarre compilation tests
Christophe Massiot's avatar
Christophe Massiot committed
66
save_CFLAGS=$CFLAGS
Sam Hocevar's avatar
   
Sam Hocevar committed
67
68

dnl Check for ntohl, etc.
Christophe Massiot's avatar
Christophe Massiot committed
69
70
71
72
CFLAGS="${CFLAGS} -Wall -Werror"
AC_MSG_CHECKING([for ntohl in sys/param.h])
AC_TRY_COMPILE([#include <sys/param.h>
void foo() { int meuh; ntohl(meuh); }],,
Sam Hocevar's avatar
   
Sam Hocevar committed
73
74
75
76
 AC_DEFINE(NTOHL_IN_SYS_PARAM_H, 1, Define if ntohl is in <sys/param.h>.)
 AC_MSG_RESULT(yes), AC_MSG_RESULT(no))

dnl Check for -rdynamic flag
77
CFLAGS="${CFLAGS} -rdynamic -Wall -Werror"
Sam Hocevar's avatar
   
Sam Hocevar committed
78
79
AC_MSG_CHECKING([if \$CC accepts -rdynamic])
AC_TRY_COMPILE([],,
Sam Hocevar's avatar
   
Sam Hocevar committed
80
 LCFLAGS=${LCFLAGS}" -rdynamic"
Christophe Massiot's avatar
Christophe Massiot committed
81
 AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
Sam Hocevar's avatar
   
Sam Hocevar committed
82
83

dnl End of the bizarre compilation tests
Christophe Massiot's avatar
Christophe Massiot committed
84
85
CFLAGS=$save_CFLAGS

86
dnl Check for boolean_t
Sam Hocevar's avatar
   
Sam Hocevar committed
87
88
89
90
91
AC_MSG_CHECKING([for boolean_t in sys/types.h])
AC_TRY_COMPILE([#include <sys/types.h>
void quux() { boolean_t foo; }],,
 AC_DEFINE(BOOLEAN_T_IN_SYS_TYPES_H, 1, Define if <sys/types.h> defines boolean_t.)
 AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
92
93
94
95
96
AC_MSG_CHECKING([for boolean_t in pthread.h])
AC_TRY_COMPILE([#include <pthread.h>
void quux() { boolean_t foo; }],,
 AC_DEFINE(BOOLEAN_T_IN_PTHREAD_H, 1, Define if <pthread.h> defines boolean_t.)
 AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
Sam Hocevar's avatar
   
Sam Hocevar committed
97

98
99
100
101
102
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_TIME

Sam Hocevar's avatar
   
Sam Hocevar committed
103
104
105
106
107
ARCH=${host_cpu}

dnl
dnl  default modules
dnl
Sam Hocevar's avatar
   
Sam Hocevar committed
108
109
#PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
BUILTINS=${BUILTINS}"ps ts yuv idct idctclassic motion "
Jean-Marc Dressler's avatar
   
Jean-Marc Dressler committed
110
111
112
113
114
if test x$host_os = xbeos; then
    ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
else
    ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
fi
115

Sam Hocevar's avatar
   
Sam Hocevar committed
116
117
118
119
120
121
122
123
124
125
126
127
128
129
dnl
dnl  DVD module: check for DVD ioctls
dnl
AC_CHECK_HEADERS(sys/ioctl.h,[
  BUILTINS=${BUILTINS}"dvd "
  AC_CHECK_HEADERS(linux/cdrom.h)
  AC_EGREP_HEADER(dvd,linux/cdrom.h,[
    AC_DEFINE(LINUX_DVD,1, DVD support for linux)
  ])
])

dnl
dnl  dummy plugin
dnl
Sam Hocevar's avatar
   
Sam Hocevar committed
130
131
AC_ARG_ENABLE(dummy,
  [  --disable-dummy         dummy module (default enabled)])
Sam Hocevar's avatar
   
Sam Hocevar committed
132
133
if test x$enable_dummy != xno; then
  BUILTINS=${BUILTINS}"dummy "; fi
Sam Hocevar's avatar
   
Sam Hocevar committed
134
135
136
137

dnl
dnl  null plugin
dnl
Sam Hocevar's avatar
   
Sam Hocevar committed
138
139
AC_ARG_ENABLE(null,
  [  --disable-null          Null module (default enabled)])
Sam Hocevar's avatar
   
Sam Hocevar committed
140
141
if test x$enable_null != xno; then
  BUILTINS=${BUILTINS}"null "; fi
Sam Hocevar's avatar
   
Sam Hocevar committed
142
143
144
145

dnl
dnl  PentiumPro acceleration
dnl
146
AC_ARG_ENABLE(ppro,
147
[  --disable-ppro          Disable PentiumPro optimizations (default enabled for x86)],
148
149
[ if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi ],
[ if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi ])
Sam Hocevar's avatar
   
Sam Hocevar committed
150
151
152
153

dnl
dnl  MMX acceleration
dnl
154
AC_ARG_ENABLE(mmx,
Christophe Massiot's avatar
Christophe Massiot committed
155
[  --disable-mmx           Disable MMX optimizations (default enabled for x86)],
Sam Hocevar's avatar
   
Sam Hocevar committed
156
[ if test x$enableval = xyes; then ARCH=${ARCH}" mmx";
Sam Hocevar's avatar
   
Sam Hocevar committed
157
  BUILTINS=${BUILTINS}${ACCEL_PLUGINS}; fi ],
Sam Hocevar's avatar
   
Sam Hocevar committed
158
159
[ if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86; then ARCH=${ARCH}" mmx";
  BUILTINS=${BUILTINS}${ACCEL_PLUGINS}; fi ])
Sam Hocevar's avatar
   
Sam Hocevar committed
160
161
162
163

dnl
dnl  AltiVec acceleration
dnl
164
AC_ARG_ENABLE(altivec,
165
[  --enable-altivec        Enable altivec optimizations (default disabled since it is broken)],
Sam Hocevar's avatar
   
Sam Hocevar committed
166
[ if test x$enableval = xyes; then ARCH=${ARCH}" altivec";
Sam Hocevar's avatar
   
Sam Hocevar committed
167
168
169
    BUILTINS=${BUILTINS}"idctaltivec "
    LIB_IDCTALTIVEC="-framework vecLib"
  fi ])
170
#[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH=${ARCH}" altivec"; PLUGINS=${PLUGINS}"idctaltivec "; fi ])
Sam Hocevar's avatar
   
Sam Hocevar committed
171
172
173
174

dnl
dnl  CSS DVD decryption
dnl
Sam Hocevar's avatar
   
Sam Hocevar committed
175
176
177
178
AC_ARG_ENABLE(css,
[  --disable-css           Disable DVD CSS decryption (default enabled)],
[ if test x$enableval = xyes; then CSS=1; else CSS=0; fi ], [ CSS=1; ])
if test x${CSS} = x1; then AC_DEFINE(HAVE_CSS, 1, Define if you want DVD CSS decryption.) fi
Sam Hocevar's avatar
   
Sam Hocevar committed
179
180
181
182

dnl
dnl  Debugging mode
dnl
183
AC_ARG_ENABLE(debug,
184
[  --enable-debug          Enable debug mode (default disabled)],
185
[ if test x$enableval = xyes; then DEBUG=1; fi ])
Sam Hocevar's avatar
   
Sam Hocevar committed
186
187
188
189

dnl
dnl  Enable/disable statistics
dnl
190
AC_ARG_ENABLE(stats,
191
[  --enable-stats          Enable printing of statistics (default disabled)],
192
[ if test x$enableval = xyes; then STATS=1; fi ])
Sam Hocevar's avatar
   
Sam Hocevar committed
193
194
195
196

dnl
dnl  Enable/disable optimizations
dnl
197
AC_ARG_ENABLE(optimizations,
198
[  --disable-optimizations Disable compiler optimizations (default enabled)],
199
200
[ if test x$enableval = xno; then OPTIMS=0; fi ],
[ OPTIMS=1 ])
201
202
203

SYS=${host_os}

Sam Hocevar's avatar
   
Sam Hocevar committed
204
dnl special case for BeOS
205
if test x$host_os = xbeos; then
Sam Hocevar's avatar
   
Sam Hocevar committed
206
207
    BUILTINS=${BUILTINS}"beos "
    LIB_BEOS="-lbe -lgame -lroot -ltracker"
208
209
210
211

dnl default case
else

Sam Hocevar's avatar
   
Sam Hocevar committed
212
213
214
dnl
dnl  OSS /dev/dsp module
dnl
215
AC_ARG_ENABLE(dsp,
216
  [  --disable-dsp           Linux /dev/dsp support (default enabled)])
217
if test x$enable_dsp != xno; then
218
  if test -c /dev/dsp; then
219
220
221
    PLUGINS=${PLUGINS}"dsp "
  fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
222
223
224
225

dnl
dnl  Esound module
dnl
226
AC_ARG_ENABLE(esd,
227
  [  --enable-esd            Esound library support (default disabled)],
Sam Hocevar's avatar
   
Sam Hocevar committed
228
229
230
231
232
233
234
235
  [if test x$enable_esd = xyes; then
     PLUGINS=${PLUGINS}"esd "
     LIB_ESD="`esd-config --libs`"
   fi])

dnl
dnl  Darwin module
dnl
Sam Hocevar's avatar
   
Sam Hocevar committed
236
237
AC_ARG_ENABLE(darwin,
  [  --enable-darwin         Darwin sound support (default disabled)],
Sam Hocevar's avatar
   
Sam Hocevar committed
238
239
240
241
242
243
244
245
  [if test x$enable_darwin = xyes; then
     PLUGINS=${PLUGINS}"darwin "
     LIB_DARWIN="-framework CoreAudio"
   fi])

dnl
dnl  MacOS X module
dnl
Sam Hocevar's avatar
   
Sam Hocevar committed
246
AC_ARG_ENABLE(macosx,
247
  [  --enable-macosx         Mac OS X interface support (default enabled in Mac OS X)],
Sam Hocevar's avatar
   
Sam Hocevar committed
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
  [if test x$enable_macosx = xyes; then
     BUILTINS=${BUILTINS}"macosx "
     LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
     LIB_TS=${LIB_TS}" -framework AGL -framework Carbon"
     LIB_SDL=${LIB_SDL}" -framework AGL -framework Carbon"
   fi],
  [AC_CHECK_HEADERS(Carbon/Carbon.h,
     BUILTINS=${BUILTINS}"macosx "
     LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
     LIB_TS=${LIB_TS}" -framework AGL -framework Carbon"
     LIB_SDL=${LIB_SDL}" -framework AGL -framework Carbon"
   )])

dnl
dnl  Linux framebuffer module
dnl
264
265
AC_ARG_ENABLE(fb,
  [  --enable-fb             Linux framebuffer support (default disabled)],
Sam Hocevar's avatar
   
Sam Hocevar committed
266
  [if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi])
Sam Hocevar's avatar
   
Sam Hocevar committed
267
268
269
270

dnl
dnl  GGI module
dnl
Christophe Massiot's avatar
Christophe Massiot committed
271
272
AC_ARG_WITH(ggi,
  [  --with-ggi[=name]       GGI support (default disabled)],
Sam Hocevar's avatar
   
Sam Hocevar committed
273
  [ if test "x$withval" != "xno";
Christophe Massiot's avatar
Christophe Massiot committed
274
    then
Sam Hocevar's avatar
   
Sam Hocevar committed
275
276
277
278
279
280
281
      PLUGINS=${PLUGINS}"ggi ";
      if test "x$withval" != "xyes";
      then
        LIB_GGI="-l"$withval
      else
        LIB_GGI="-lggi"
      fi
Christophe Massiot's avatar
Christophe Massiot committed
282
    fi ])
Sam Hocevar's avatar
   
Sam Hocevar committed
283
284
285
286

dnl
dnl  SDL module
dnl
Christophe Massiot's avatar
Christophe Massiot committed
287
AC_ARG_WITH(sdl,
Sam Hocevar's avatar
   
Sam Hocevar committed
288
  [  --with-sdl[=name]       SDL support (default enabled)],
Sam Hocevar's avatar
   
Sam Hocevar committed
289
  [ if test "x$withval" != "xno";
Christophe Massiot's avatar
Christophe Massiot committed
290
    then
Sam Hocevar's avatar
   
Sam Hocevar committed
291
292
293
      PLUGINS=${PLUGINS}"sdl ";
      if test "x$withval" != "xyes";
      then
Sam Hocevar's avatar
   
Sam Hocevar committed
294
        LIB_SDL=${LIB_SDL}" -L/usr/X11R6/lib -L"$withval"/lib -l"$withval
Sam Hocevar's avatar
   
Sam Hocevar committed
295
        INCLUDE=${INCLUDE}" -I"$withval"/include"
Sam Hocevar's avatar
   
Sam Hocevar committed
296
      else
297
        AC_CHECK_HEADERS(SDL/SDL.h, , [echo "Cannot find SDL headers !"; exit])
Sam Hocevar's avatar
   
Sam Hocevar committed
298
        LIB_SDL=${LIB_SDL}" -L/usr/X11R6/lib -lSDL"
Sam Hocevar's avatar
   
Sam Hocevar committed
299
      fi
Christophe Massiot's avatar
Christophe Massiot committed
300
    fi ])
301
    if test "x$withval" = "x";
Sam Hocevar's avatar
   
Sam Hocevar committed
302
    then
303
304
      AC_CHECK_HEADERS(SDL/SDL.h,
      [PLUGINS=${PLUGINS}"sdl "
Sam Hocevar's avatar
   
Sam Hocevar committed
305
       LIB_SDL=${LIB_SDL}" -L/usr/X11R6/lib -lSDL"])
Sam Hocevar's avatar
   
Sam Hocevar committed
306
    fi
Sam Hocevar's avatar
   
Sam Hocevar committed
307
308
309
310

dnl
dnl  Glide module
dnl
Christophe Massiot's avatar
Christophe Massiot committed
311
312
AC_ARG_WITH(glide,
  [  --with-glide[=name]     Glide (3dfx) support (default disabled)],
Sam Hocevar's avatar
   
Sam Hocevar committed
313
  [ if test "x$withval" != "xno";
Christophe Massiot's avatar
Christophe Massiot committed
314
    then
Sam Hocevar's avatar
   
Sam Hocevar committed
315
316
317
318
319
320
321
      PLUGINS=${PLUGINS}"glide ";
      if test "x$withval" != "xyes";
      then
        LIB_GLIDE="-l"$withval
      else
        LIB_GLIDE="-lglide2x"
      fi
Christophe Massiot's avatar
Christophe Massiot committed
322
    fi ])
Sam Hocevar's avatar
   
Sam Hocevar committed
323
324
325
326

dnl
dnl  ncurses module
dnl
Sam Hocevar's avatar
   
Sam Hocevar committed
327
328
AC_ARG_ENABLE(ncurses,
  [  --enable-ncurses        ncurses interface support (default disabled)],
Sam Hocevar's avatar
   
Sam Hocevar committed
329
330
331
332
333
334
335
336
  [if test x$enable_ncurses = xyes; then
     PLUGINS=${PLUGINS}"ncurses "
     LIB_NCURSES="-lncurses"
   fi])

dnl
dnl  Qt module
dnl
Sam Hocevar's avatar
   
Sam Hocevar committed
337
338
AC_ARG_ENABLE(qt,
  [  --enable-qt             Qt interface support (default disabled)],
Sam Hocevar's avatar
   
Sam Hocevar committed
339
340
341
342
343
344
345
346
347
  [if test x$enable_qt = xyes; then
     PLUGINS=${PLUGINS}"qt "
     ALIASES=${ALIASES}"qvlc "
     LIB_QT="-lqt -L${QTDIR}/lib"
   fi])

dnl 
dnl  KDE module
dnl
348
349
AC_ARG_ENABLE(kde,
  [  --enable-kde            KDE interface support (default disabled)],
Sam Hocevar's avatar
   
Sam Hocevar committed
350
  [if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; ALIASES=${ALIASES}"kvlc "; fi])
Sam Hocevar's avatar
   
Sam Hocevar committed
351
352
353
354

dnl
dnl  Gnome module
dnl
355
AC_ARG_ENABLE(gnome,
Sam Hocevar's avatar
   
Sam Hocevar committed
356
  [  --enable-gnome          Gnome interface support (default disabled)],
Sam Hocevar's avatar
   
Sam Hocevar committed
357
358
359
360
361
362
363
364
365
  [if test x$enable_gnome = xyes; then
     PLUGINS=${PLUGINS}"gnome "
     ALIASES=${ALIASES}"gnome-vlc "
     LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
   fi])

dnl
dnl  Gtk+ module
dnl
Sam Hocevar's avatar
   
Sam Hocevar committed
366
367
AC_ARG_ENABLE(gtk,
  [  --disable-gtk           Gtk+ support (default enabled)])
368
369
if test x$enable_gtk != xno; then
  if which gtk-config; then
Sam Hocevar's avatar
   
Sam Hocevar committed
370
371
372
    PLUGINS=${PLUGINS}"gtk "
    ALIASES=${ALIASES}"gvlc "
    LIB_GTK="`gtk-config --libs gtk | sed 's,-rdynamic,,'`"
373
374
  fi
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
375
376
377
378

dnl
dnl  X11 module
dnl
379
AC_ARG_ENABLE(x11,
Sam Hocevar's avatar
   
Sam Hocevar committed
380
  [  --disable-x11           X11 support (default enabled)])
381
if test x$enable_x11 != xno; then
Sam Hocevar's avatar
   
Sam Hocevar committed
382
383
384
385
  AC_CHECK_HEADERS(X11/Xlib.h, [
    PLUGINS=${PLUGINS}"x11 "
    LIB_X11="-L/usr/X11R6/lib -lX11 -lXext"
  ])
386
fi
Sam Hocevar's avatar
   
Sam Hocevar committed
387
388
389
390

dnl
dnl  XVideo module
dnl
Sam Hocevar's avatar
   
Sam Hocevar committed
391
392
AC_ARG_ENABLE(xvideo,
  [  --enable-xvideo         XVideo interface support (default disabled)],
Sam Hocevar's avatar
   
Sam Hocevar committed
393
394
  [if test x$enable_xvideo = xyes; then
     PLUGINS=${PLUGINS}"xvideo "
Sam Hocevar's avatar
   
Sam Hocevar committed
395
     LIB_XVIDEO="-L/usr/X11R6/lib -lX11 -lXext -lXv"
Sam Hocevar's avatar
   
Sam Hocevar committed
396
397
398
399
400
   fi])

dnl
dnl  ALSA module
dnl
Henri Fallon's avatar
   
Henri Fallon committed
401
AC_ARG_ENABLE(alsa,
402
  [  --enable-alsa           Alsa sound drivers support (Only for linux) (default disabled)],
Sam Hocevar's avatar
   
Sam Hocevar committed
403
404
405
406
  [if test x$enable_alsa = xyes; then AC_CHECK_HEADER(sys/asoundlib.h, AC_CHECK_LIB(asound, main, have_alsa="true", have_alsa="false"),have_alsa="false") if test $have_alsa = true; then
     PLUGINS=${PLUGINS}"alsa "
     LIB_ALSA="-lasound"
   fi; fi])
Sam Hocevar's avatar
   
Sam Hocevar committed
407

Sam Hocevar's avatar
   
Sam Hocevar committed
408
dnl  end of non-BeOS stuff
409
410
fi

Sam Hocevar's avatar
   
Sam Hocevar committed
411
412
413
dnl 
dnl  Configuration is finished
dnl
414
415
AC_SUBST(SYS)
AC_SUBST(ARCH)
416
AC_SUBST(PLUGINS)
Sam Hocevar's avatar
   
Sam Hocevar committed
417
AC_SUBST(BUILTINS)
418
AC_SUBST(ALIASES)
Sam Hocevar's avatar
   
Sam Hocevar committed
419
AC_SUBST(INCLUDE)
420
421
422
AC_SUBST(DEBUG)
AC_SUBST(STATS)
AC_SUBST(OPTIMS)
Sam Hocevar's avatar
   
Sam Hocevar committed
423
AC_SUBST(CSS)
Sam Hocevar's avatar
   
Sam Hocevar committed
424
425
426
427

AC_SUBST(LCFLAGS)
AC_SUBST(LIB)

Sam Hocevar's avatar
   
Sam Hocevar committed
428
429
430
431
AC_SUBST(LIB_ALSA)
AC_SUBST(LIB_BEOS)
AC_SUBST(LIB_DARWIN)
AC_SUBST(LIB_ESD)
Christophe Massiot's avatar
Christophe Massiot committed
432
AC_SUBST(LIB_GGI)
Sam Hocevar's avatar
   
Sam Hocevar committed
433
434
435
436
437
438
439
440
441
442
443
444
AC_SUBST(LIB_GLIDE)
AC_SUBST(LIB_GNOME)
AC_SUBST(LIB_GTK)
AC_SUBST(LIB_IDCTALTIVEC)
AC_SUBST(LIB_MACOSX)
AC_SUBST(LIB_NCURSES)
AC_SUBST(LIB_QT)
AC_SUBST(LIB_TS)
AC_SUBST(LIB_SDL)
AC_SUBST(LIB_X11)
AC_SUBST(LIB_XVIDEO)
AC_SUBST(LIB_YUV)
445

Sam Hocevar's avatar
   
Sam Hocevar committed
446
AC_OUTPUT([Makefile.opts include/config.h])
447

448
449
450
451
452
453
echo "
vlc configuration
-----------------
vlc version           : ${VLC_VERSION}
system                : ${SYS}
architecture          : ${ARCH}
454
455
456
debug mode            : ${DEBUG}
statistics            : ${STATS}
optimizations         : ${OPTIMS}
Sam Hocevar's avatar
   
Sam Hocevar committed
457
CSS decryption        : ${CSS}
Sam Hocevar's avatar
   
Sam Hocevar committed
458
459
460
need builtin getopt   : ${GETOPT}
plugin modules        : ${PLUGINS}
built-in modules      : ${BUILTINS}
461
vlc aliases           : ${ALIASES}
Sam Hocevar's avatar
   
Sam Hocevar committed
462
463

You may now tune Makefile.opts at your convenience."
464