* ./src/video_output/vout_pictures.c: workaround for a bug in the dummy vout.
[vlc.git] / configure
blobb923a88403a71b6282b88679f5cae14fc8d852bc
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
16 ac_help="$ac_help
17 --disable-nls do not use Native Language Support"
18 ac_help="$ac_help
19 --with-included-gettext use the GNU gettext library included here"
20 ac_help="$ac_help
22 ac_help="$ac_help
23 Optimization options:"
24 ac_help="$ac_help
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
27 ac_help="$ac_help
28 --disable-optimizations disable compiler optimizations (default enabled)"
29 ac_help="$ac_help
30 --disable-altivec disable altivec optimizations (default enabled on PPC)"
31 ac_help="$ac_help
32 --enable-debug debug mode (default disabled)"
33 ac_help="$ac_help
34 --enable-release activate extra optimizations (default disabled)"
35 ac_help="$ac_help
36 Input plugins:"
37 ac_help="$ac_help
38 --enable-dvd DVD input module (default enabled)"
39 ac_help="$ac_help
40 --with-dvdcss=PATH libdvdcss headers and libraries"
41 ac_help="$ac_help
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
43 ac_help="$ac_help
44 --enable-dvdread dvdread input module (default disabled)"
45 ac_help="$ac_help
46 --with-dvdread=PATH libdvdread headers and libraries"
47 ac_help="$ac_help
48 --enable-dvbpsi dvbpsi ts demux module (default disabled)"
49 ac_help="$ac_help
50 --with-dvbpsi=PATH libdvbpsi headers and libraries"
51 ac_help="$ac_help
52 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
53 ac_help="$ac_help
54 --enable-satellite satellite card support (default disabled)"
55 ac_help="$ac_help
56 --enable-avi AVI demux module (default enabled)"
57 ac_help="$ac_help
58 Codec plugins:"
59 ac_help="$ac_help
60 --enable-mad libmad module (default disabled)"
61 ac_help="$ac_help
62 --with-mad=PATH path to libmad"
63 ac_help="$ac_help
64 --with-mad-tree=PATH mad tree for static linking"
65 ac_help="$ac_help
66 --enable-ffmpeg ffmpeg codec (default disabled)"
67 ac_help="$ac_help
68 --with-ffmpeg=PATH path to ffmpeg installation"
69 ac_help="$ac_help
70 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
71 ac_help="$ac_help
72 --enable-a52 AC3 support with liba52 (default enabled)"
73 ac_help="$ac_help
74 --with-a52-tree=PATH a52dec tree for static linking "
75 ac_help="$ac_help
76 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
77 ac_help="$ac_help
78 Video plugins:"
79 ac_help="$ac_help
80 --enable-x11 X11 support (default enabled)"
81 ac_help="$ac_help
82 --enable-xvideo XVideo support (default enabled)"
83 ac_help="$ac_help
84 --enable-sdl SDL support (default enabled)"
85 ac_help="$ac_help
86 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
87 ac_help="$ac_help
88 --enable-directx Win32 DirectX support (default enabled on Win32)"
89 ac_help="$ac_help
90 --with-directx=PATH Win32 DirectX headers and libraries"
91 ac_help="$ac_help
92 --enable-fb Linux framebuffer support (default enabled on Linux)"
93 ac_help="$ac_help
94 --enable-mga Linux kernel Matrox support (default disabled)"
95 ac_help="$ac_help
96 --enable-ggi GGI support (default disabled)"
97 ac_help="$ac_help
98 --with-ggi=PATH path to libggi"
99 ac_help="$ac_help
100 --enable-glide Glide (3dfx) support (default disabled)"
101 ac_help="$ac_help
102 --with-glide=PATH path to libglide"
103 ac_help="$ac_help
104 --enable-aa aalib output (default disabled)"
105 ac_help="$ac_help
106 Audio plugins:"
107 ac_help="$ac_help
108 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
109 ac_help="$ac_help
110 --enable-esd Esound library support (default disabled)"
111 ac_help="$ac_help
112 --enable-arts aRts sound server (default disabled)"
113 ac_help="$ac_help
114 --enable-alsa ALSA sound support for Linux (default disabled)"
115 ac_help="$ac_help
116 --enable-waveout Win32 waveOut module (default enabled on Win32)"
117 ac_help="$ac_help
118 Interface plugins:"
119 ac_help="$ac_help
120 --enable-gtk Gtk+ support (default enabled)"
121 ac_help="$ac_help
122 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
123 ac_help="$ac_help
124 --enable-gnome Gnome interface support (default disabled)"
125 ac_help="$ac_help
126 --enable-qt Qt interface support (default disabled)"
127 ac_help="$ac_help
128 --enable-kde KDE interface support (default disabled)"
129 ac_help="$ac_help
130 --enable-macosx MacOS X support (default enabled on MacOS X)"
131 ac_help="$ac_help
132 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
133 ac_help="$ac_help
134 --enable-intfwin Win32 interface support (default disabled)"
135 ac_help="$ac_help
136 --with-bcbuilder=PATH Borland C++ Builder installation path"
137 ac_help="$ac_help
138 --enable-ncurses ncurses interface support (default disabled)"
139 ac_help="$ac_help
140 --enable-lirc lirc support (default disabled)"
141 ac_help="$ac_help
142 Misc options:"
143 ac_help="$ac_help
144 --with-words=endianness set endianness (big or little)"
145 ac_help="$ac_help
146 --enable-gprof gprof profiling (default disabled)"
147 ac_help="$ac_help
148 --enable-cprof cprof profiling (default disabled)"
149 ac_help="$ac_help
150 --enable-pth GNU Pth support (default disabled)"
151 ac_help="$ac_help
152 --enable-st State Threads (default disabled)"
153 ac_help="$ac_help
154 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
156 # Initialize some variables set by options.
157 # The variables have the same names as the options, with
158 # dashes changed to underlines.
159 build=NONE
160 cache_file=./config.cache
161 exec_prefix=NONE
162 host=NONE
163 no_create=
164 nonopt=NONE
165 no_recursion=
166 prefix=NONE
167 program_prefix=NONE
168 program_suffix=NONE
169 program_transform_name=s,x,x,
170 silent=
171 site=
172 srcdir=
173 target=NONE
174 verbose=
175 x_includes=NONE
176 x_libraries=NONE
177 bindir='${exec_prefix}/bin'
178 sbindir='${exec_prefix}/sbin'
179 libexecdir='${exec_prefix}/libexec'
180 datadir='${prefix}/share'
181 sysconfdir='${prefix}/etc'
182 sharedstatedir='${prefix}/com'
183 localstatedir='${prefix}/var'
184 libdir='${exec_prefix}/lib'
185 includedir='${prefix}/include'
186 oldincludedir='/usr/include'
187 infodir='${prefix}/info'
188 mandir='${prefix}/man'
190 # Initialize some other variables.
191 subdirs=
192 MFLAGS= MAKEFLAGS=
193 SHELL=${CONFIG_SHELL-/bin/sh}
194 # Maximum number of lines to put in a shell here document.
195 ac_max_here_lines=12
197 ac_prev=
198 for ac_option
201 # If the previous option needs an argument, assign it.
202 if test -n "$ac_prev"; then
203 eval "$ac_prev=\$ac_option"
204 ac_prev=
205 continue
208 case "$ac_option" in
209 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
210 *) ac_optarg= ;;
211 esac
213 # Accept the important Cygnus configure options, so we can diagnose typos.
215 case "$ac_option" in
217 -bindir | --bindir | --bindi | --bind | --bin | --bi)
218 ac_prev=bindir ;;
219 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
220 bindir="$ac_optarg" ;;
222 -build | --build | --buil | --bui | --bu)
223 ac_prev=build ;;
224 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
225 build="$ac_optarg" ;;
227 -cache-file | --cache-file | --cache-fil | --cache-fi \
228 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
229 ac_prev=cache_file ;;
230 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
231 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
232 cache_file="$ac_optarg" ;;
234 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
235 ac_prev=datadir ;;
236 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
237 | --da=*)
238 datadir="$ac_optarg" ;;
240 -disable-* | --disable-*)
241 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
242 # Reject names that are not valid shell variable names.
243 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
244 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
246 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
247 eval "enable_${ac_feature}=no" ;;
249 -enable-* | --enable-*)
250 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
251 # Reject names that are not valid shell variable names.
252 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
253 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
255 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
256 case "$ac_option" in
257 *=*) ;;
258 *) ac_optarg=yes ;;
259 esac
260 eval "enable_${ac_feature}='$ac_optarg'" ;;
262 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
263 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
264 | --exec | --exe | --ex)
265 ac_prev=exec_prefix ;;
266 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
267 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
268 | --exec=* | --exe=* | --ex=*)
269 exec_prefix="$ac_optarg" ;;
271 -gas | --gas | --ga | --g)
272 # Obsolete; use --with-gas.
273 with_gas=yes ;;
275 -help | --help | --hel | --he)
276 # Omit some internal or obsolete options to make the list less imposing.
277 # This message is too long to be a string in the A/UX 3.1 sh.
278 cat << EOF
279 Usage: configure [options] [host]
280 Options: [defaults in brackets after descriptions]
281 Configuration:
282 --cache-file=FILE cache test results in FILE
283 --help print this message
284 --no-create do not create output files
285 --quiet, --silent do not print \`checking...' messages
286 --version print the version of autoconf that created configure
287 Directory and file names:
288 --prefix=PREFIX install architecture-independent files in PREFIX
289 [$ac_default_prefix]
290 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
291 [same as prefix]
292 --bindir=DIR user executables in DIR [EPREFIX/bin]
293 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
294 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
295 --datadir=DIR read-only architecture-independent data in DIR
296 [PREFIX/share]
297 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
298 --sharedstatedir=DIR modifiable architecture-independent data in DIR
299 [PREFIX/com]
300 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
301 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
302 --includedir=DIR C header files in DIR [PREFIX/include]
303 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
304 --infodir=DIR info documentation in DIR [PREFIX/info]
305 --mandir=DIR man documentation in DIR [PREFIX/man]
306 --srcdir=DIR find the sources in DIR [configure dir or ..]
307 --program-prefix=PREFIX prepend PREFIX to installed program names
308 --program-suffix=SUFFIX append SUFFIX to installed program names
309 --program-transform-name=PROGRAM
310 run sed PROGRAM on installed program names
312 cat << EOF
313 Host type:
314 --build=BUILD configure for building on BUILD [BUILD=HOST]
315 --host=HOST configure for HOST [guessed]
316 --target=TARGET configure for TARGET [TARGET=HOST]
317 Features and packages:
318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
320 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
321 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
322 --x-includes=DIR X include files are in DIR
323 --x-libraries=DIR X library files are in DIR
325 if test -n "$ac_help"; then
326 echo "--enable and --with options recognized:$ac_help"
328 exit 0 ;;
330 -host | --host | --hos | --ho)
331 ac_prev=host ;;
332 -host=* | --host=* | --hos=* | --ho=*)
333 host="$ac_optarg" ;;
335 -includedir | --includedir | --includedi | --included | --include \
336 | --includ | --inclu | --incl | --inc)
337 ac_prev=includedir ;;
338 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
339 | --includ=* | --inclu=* | --incl=* | --inc=*)
340 includedir="$ac_optarg" ;;
342 -infodir | --infodir | --infodi | --infod | --info | --inf)
343 ac_prev=infodir ;;
344 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
345 infodir="$ac_optarg" ;;
347 -libdir | --libdir | --libdi | --libd)
348 ac_prev=libdir ;;
349 -libdir=* | --libdir=* | --libdi=* | --libd=*)
350 libdir="$ac_optarg" ;;
352 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
353 | --libexe | --libex | --libe)
354 ac_prev=libexecdir ;;
355 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
356 | --libexe=* | --libex=* | --libe=*)
357 libexecdir="$ac_optarg" ;;
359 -localstatedir | --localstatedir | --localstatedi | --localstated \
360 | --localstate | --localstat | --localsta | --localst \
361 | --locals | --local | --loca | --loc | --lo)
362 ac_prev=localstatedir ;;
363 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
364 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
365 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
366 localstatedir="$ac_optarg" ;;
368 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
369 ac_prev=mandir ;;
370 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
371 mandir="$ac_optarg" ;;
373 -nfp | --nfp | --nf)
374 # Obsolete; use --without-fp.
375 with_fp=no ;;
377 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
378 | --no-cr | --no-c)
379 no_create=yes ;;
381 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
382 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
383 no_recursion=yes ;;
385 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
386 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
387 | --oldin | --oldi | --old | --ol | --o)
388 ac_prev=oldincludedir ;;
389 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
390 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
391 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
392 oldincludedir="$ac_optarg" ;;
394 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
395 ac_prev=prefix ;;
396 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
397 prefix="$ac_optarg" ;;
399 -program-prefix | --program-prefix | --program-prefi | --program-pref \
400 | --program-pre | --program-pr | --program-p)
401 ac_prev=program_prefix ;;
402 -program-prefix=* | --program-prefix=* | --program-prefi=* \
403 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
404 program_prefix="$ac_optarg" ;;
406 -program-suffix | --program-suffix | --program-suffi | --program-suff \
407 | --program-suf | --program-su | --program-s)
408 ac_prev=program_suffix ;;
409 -program-suffix=* | --program-suffix=* | --program-suffi=* \
410 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
411 program_suffix="$ac_optarg" ;;
413 -program-transform-name | --program-transform-name \
414 | --program-transform-nam | --program-transform-na \
415 | --program-transform-n | --program-transform- \
416 | --program-transform | --program-transfor \
417 | --program-transfo | --program-transf \
418 | --program-trans | --program-tran \
419 | --progr-tra | --program-tr | --program-t)
420 ac_prev=program_transform_name ;;
421 -program-transform-name=* | --program-transform-name=* \
422 | --program-transform-nam=* | --program-transform-na=* \
423 | --program-transform-n=* | --program-transform-=* \
424 | --program-transform=* | --program-transfor=* \
425 | --program-transfo=* | --program-transf=* \
426 | --program-trans=* | --program-tran=* \
427 | --progr-tra=* | --program-tr=* | --program-t=*)
428 program_transform_name="$ac_optarg" ;;
430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
431 | -silent | --silent | --silen | --sile | --sil)
432 silent=yes ;;
434 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
435 ac_prev=sbindir ;;
436 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
437 | --sbi=* | --sb=*)
438 sbindir="$ac_optarg" ;;
440 -sharedstatedir | --sharedstatedir | --sharedstatedi \
441 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
442 | --sharedst | --shareds | --shared | --share | --shar \
443 | --sha | --sh)
444 ac_prev=sharedstatedir ;;
445 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
446 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
447 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
448 | --sha=* | --sh=*)
449 sharedstatedir="$ac_optarg" ;;
451 -site | --site | --sit)
452 ac_prev=site ;;
453 -site=* | --site=* | --sit=*)
454 site="$ac_optarg" ;;
456 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
457 ac_prev=srcdir ;;
458 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
459 srcdir="$ac_optarg" ;;
461 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
462 | --syscon | --sysco | --sysc | --sys | --sy)
463 ac_prev=sysconfdir ;;
464 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
465 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
466 sysconfdir="$ac_optarg" ;;
468 -target | --target | --targe | --targ | --tar | --ta | --t)
469 ac_prev=target ;;
470 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
471 target="$ac_optarg" ;;
473 -v | -verbose | --verbose | --verbos | --verbo | --verb)
474 verbose=yes ;;
476 -version | --version | --versio | --versi | --vers)
477 echo "configure generated by autoconf version 2.13"
478 exit 0 ;;
480 -with-* | --with-*)
481 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
482 # Reject names that are not valid shell variable names.
483 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
484 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
486 ac_package=`echo $ac_package| sed 's/-/_/g'`
487 case "$ac_option" in
488 *=*) ;;
489 *) ac_optarg=yes ;;
490 esac
491 eval "with_${ac_package}='$ac_optarg'" ;;
493 -without-* | --without-*)
494 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
495 # Reject names that are not valid shell variable names.
496 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
497 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
499 ac_package=`echo $ac_package| sed 's/-/_/g'`
500 eval "with_${ac_package}=no" ;;
502 --x)
503 # Obsolete; use --with-x.
504 with_x=yes ;;
506 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
507 | --x-incl | --x-inc | --x-in | --x-i)
508 ac_prev=x_includes ;;
509 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
510 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
511 x_includes="$ac_optarg" ;;
513 -x-libraries | --x-libraries | --x-librarie | --x-librari \
514 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
515 ac_prev=x_libraries ;;
516 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
517 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
518 x_libraries="$ac_optarg" ;;
520 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
524 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
525 echo "configure: warning: $ac_option: invalid host type" 1>&2
527 if test "x$nonopt" != xNONE; then
528 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
530 nonopt="$ac_option"
533 esac
534 done
536 if test -n "$ac_prev"; then
537 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
540 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
542 # File descriptor usage:
543 # 0 standard input
544 # 1 file creation
545 # 2 errors and warnings
546 # 3 some systems may open it to /dev/tty
547 # 4 used on the Kubota Titan
548 # 6 checking for... messages and results
549 # 5 compiler messages saved in config.log
550 if test "$silent" = yes; then
551 exec 6>/dev/null
552 else
553 exec 6>&1
555 exec 5>./config.log
557 echo "\
558 This file contains any messages produced by compilers while
559 running configure, to aid debugging if configure makes a mistake.
560 " 1>&5
562 # Strip out --no-create and --no-recursion so they do not pile up.
563 # Also quote any args containing shell metacharacters.
564 ac_configure_args=
565 for ac_arg
567 case "$ac_arg" in
568 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
569 | --no-cr | --no-c) ;;
570 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
571 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
572 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
573 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
574 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
575 esac
576 done
578 # NLS nuisances.
579 # Only set these to C if already set. These must not be set unconditionally
580 # because not all systems understand e.g. LANG=C (notably SCO).
581 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
582 # Non-C LC_CTYPE values break the ctype check.
583 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
584 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
585 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
586 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
588 # confdefs.h avoids OS command line length limits that DEFS can exceed.
589 rm -rf conftest* confdefs.h
590 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
591 echo > confdefs.h
593 # A filename unique to this package, relative to the directory that
594 # configure is in, which we can look for to find out if srcdir is correct.
595 ac_unique_file=include/main.h
597 # Find the source files, if location was not specified.
598 if test -z "$srcdir"; then
599 ac_srcdir_defaulted=yes
600 # Try the directory containing this script, then its parent.
601 ac_prog=$0
602 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
603 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
604 srcdir=$ac_confdir
605 if test ! -r $srcdir/$ac_unique_file; then
606 srcdir=..
608 else
609 ac_srcdir_defaulted=no
611 if test ! -r $srcdir/$ac_unique_file; then
612 if test "$ac_srcdir_defaulted" = yes; then
613 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
614 else
615 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
618 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
620 # Prefer explicitly selected file to automatically selected ones.
621 if test -z "$CONFIG_SITE"; then
622 if test "x$prefix" != xNONE; then
623 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
624 else
625 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
628 for ac_site_file in $CONFIG_SITE; do
629 if test -r "$ac_site_file"; then
630 echo "loading site script $ac_site_file"
631 . "$ac_site_file"
633 done
635 if test -r "$cache_file"; then
636 echo "loading cache $cache_file"
637 . $cache_file
638 else
639 echo "creating cache $cache_file"
640 > $cache_file
643 ac_ext=c
644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
645 ac_cpp='$CPP $CPPFLAGS'
646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
647 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
648 cross_compiling=$ac_cv_prog_cc_cross
650 ac_exeext=
651 ac_objext=o
652 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
653 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
654 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
655 ac_n= ac_c='
656 ' ac_t=' '
657 else
658 ac_n=-n ac_c= ac_t=
660 else
661 ac_n= ac_c='\c' ac_t=
666 ac_aux_dir=
667 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
668 if test -f $ac_dir/install-sh; then
669 ac_aux_dir=$ac_dir
670 ac_install_sh="$ac_aux_dir/install-sh -c"
671 break
672 elif test -f $ac_dir/install.sh; then
673 ac_aux_dir=$ac_dir
674 ac_install_sh="$ac_aux_dir/install.sh -c"
675 break
677 done
678 if test -z "$ac_aux_dir"; then
679 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
681 ac_config_guess=$ac_aux_dir/config.guess
682 ac_config_sub=$ac_aux_dir/config.sub
683 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
686 # Do some error checking and defaulting for the host and target type.
687 # The inputs are:
688 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
690 # The rules are:
691 # 1. You are not allowed to specify --host, --target, and nonopt at the
692 # same time.
693 # 2. Host defaults to nonopt.
694 # 3. If nonopt is not specified, then host defaults to the current host,
695 # as determined by config.guess.
696 # 4. Target and build default to nonopt.
697 # 5. If nonopt is not specified, then target and build default to host.
699 # The aliases save the names the user supplied, while $host etc.
700 # will get canonicalized.
701 case $host---$target---$nonopt in
702 NONE---*---* | *---NONE---* | *---*---NONE) ;;
703 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
704 esac
707 # Make sure we can run config.sub.
708 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
709 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
712 echo $ac_n "checking host system type""... $ac_c" 1>&6
713 echo "configure:714: checking host system type" >&5
715 host_alias=$host
716 case "$host_alias" in
717 NONE)
718 case $nonopt in
719 NONE)
720 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
721 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
722 fi ;;
723 *) host_alias=$nonopt ;;
724 esac ;;
725 esac
727 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
728 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
729 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
730 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
731 echo "$ac_t""$host" 1>&6
733 echo $ac_n "checking target system type""... $ac_c" 1>&6
734 echo "configure:735: checking target system type" >&5
736 target_alias=$target
737 case "$target_alias" in
738 NONE)
739 case $nonopt in
740 NONE) target_alias=$host_alias ;;
741 *) target_alias=$nonopt ;;
742 esac ;;
743 esac
745 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
746 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
749 echo "$ac_t""$target" 1>&6
751 echo $ac_n "checking build system type""... $ac_c" 1>&6
752 echo "configure:753: checking build system type" >&5
754 build_alias=$build
755 case "$build_alias" in
756 NONE)
757 case $nonopt in
758 NONE) build_alias=$host_alias ;;
759 *) build_alias=$nonopt ;;
760 esac ;;
761 esac
763 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
764 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
765 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
766 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
767 echo "$ac_t""$build" 1>&6
769 test "$host_alias" != "$target_alias" &&
770 test "$program_prefix$program_suffix$program_transform_name" = \
771 NONENONEs,x,x, &&
772 program_prefix=${target_alias}-
775 PACKAGE="vlc"
776 VERSION="0.3.1"
777 CODENAME=Ourumov
779 save_CFLAGS="${CFLAGS}"
780 save_CPPFLAGS="${CPPFLAGS}"
781 save_LDFLAGS="${LDFLAGS}"
783 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
784 echo "configure:785: checking whether ${MAKE-make} sets \${MAKE}" >&5
785 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
786 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
788 else
789 cat > conftestmake <<\EOF
790 all:
791 @echo 'ac_maketemp="${MAKE}"'
793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
794 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
795 if test -n "$ac_maketemp"; then
796 eval ac_cv_prog_make_${ac_make}_set=yes
797 else
798 eval ac_cv_prog_make_${ac_make}_set=no
800 rm -f conftestmake
802 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
803 echo "$ac_t""yes" 1>&6
804 SET_MAKE=
805 else
806 echo "$ac_t""no" 1>&6
807 SET_MAKE="MAKE=${MAKE-make}"
810 # Extract the first word of "gcc", so it can be a program name with args.
811 set dummy gcc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
816 else
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
819 else
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
821 ac_dummy="$PATH"
822 for ac_dir in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir=.
824 if test -f $ac_dir/$ac_word; then
825 ac_cv_prog_CC="gcc"
826 break
828 done
829 IFS="$ac_save_ifs"
832 CC="$ac_cv_prog_CC"
833 if test -n "$CC"; then
834 echo "$ac_t""$CC" 1>&6
835 else
836 echo "$ac_t""no" 1>&6
839 if test -z "$CC"; then
840 # Extract the first word of "cc", so it can be a program name with args.
841 set dummy cc; ac_word=$2
842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
843 echo "configure:844: checking for $ac_word" >&5
844 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
846 else
847 if test -n "$CC"; then
848 ac_cv_prog_CC="$CC" # Let the user override the test.
849 else
850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
851 ac_prog_rejected=no
852 ac_dummy="$PATH"
853 for ac_dir in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir=.
855 if test -f $ac_dir/$ac_word; then
856 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
857 ac_prog_rejected=yes
858 continue
860 ac_cv_prog_CC="cc"
861 break
863 done
864 IFS="$ac_save_ifs"
865 if test $ac_prog_rejected = yes; then
866 # We found a bogon in the path, so make sure we never use it.
867 set dummy $ac_cv_prog_CC
868 shift
869 if test $# -gt 0; then
870 # We chose a different compiler from the bogus one.
871 # However, it has the same basename, so the bogon will be chosen
872 # first if we set CC to just the basename; use the full file name.
873 shift
874 set dummy "$ac_dir/$ac_word" "$@"
875 shift
876 ac_cv_prog_CC="$@"
881 CC="$ac_cv_prog_CC"
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
884 else
885 echo "$ac_t""no" 1>&6
888 if test -z "$CC"; then
889 case "`uname -s`" in
890 *win32* | *WIN32*)
891 # Extract the first word of "cl", so it can be a program name with args.
892 set dummy cl; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
897 else
898 if test -n "$CC"; then
899 ac_cv_prog_CC="$CC" # Let the user override the test.
900 else
901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
902 ac_dummy="$PATH"
903 for ac_dir in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
906 ac_cv_prog_CC="cl"
907 break
909 done
910 IFS="$ac_save_ifs"
913 CC="$ac_cv_prog_CC"
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
916 else
917 echo "$ac_t""no" 1>&6
920 esac
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
928 ac_ext=c
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cc_cross
935 cat > conftest.$ac_ext << EOF
937 #line 938 "configure"
938 #include "confdefs.h"
940 main(){return(0);}
942 if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
943 ac_cv_prog_cc_works=yes
944 # If we can't run a trivial program, we are probably using a cross compiler.
945 if (./conftest; exit) 2>/dev/null; then
946 ac_cv_prog_cc_cross=no
947 else
948 ac_cv_prog_cc_cross=yes
950 else
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
953 ac_cv_prog_cc_works=no
955 rm -fr conftest*
956 ac_ext=c
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling=$ac_cv_prog_cc_cross
963 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
964 if test $ac_cv_prog_cc_works = no; then
965 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
970 cross_compiling=$ac_cv_prog_cc_cross
972 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
976 else
977 cat > conftest.c <<EOF
978 #ifdef __GNUC__
979 yes;
980 #endif
982 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
983 ac_cv_prog_gcc=yes
984 else
985 ac_cv_prog_gcc=no
989 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
991 if test $ac_cv_prog_gcc = yes; then
992 GCC=yes
993 else
994 GCC=
997 ac_test_CFLAGS="${CFLAGS+set}"
998 ac_save_CFLAGS="$CFLAGS"
999 CFLAGS=
1000 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${CC-cc} accepts -g" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1004 else
1005 echo 'void f(){}' > conftest.c
1006 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1007 ac_cv_prog_cc_g=yes
1008 else
1009 ac_cv_prog_cc_g=no
1011 rm -f conftest*
1015 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1016 if test "$ac_test_CFLAGS" = set; then
1017 CFLAGS="$ac_save_CFLAGS"
1018 elif test $ac_cv_prog_cc_g = yes; then
1019 if test "$GCC" = yes; then
1020 CFLAGS="-g -O2"
1021 else
1022 CFLAGS="-g"
1024 else
1025 if test "$GCC" = yes; then
1026 CFLAGS="-O2"
1027 else
1028 CFLAGS=
1032 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1033 echo "configure:1034: checking how to run the C preprocessor" >&5
1034 # On Suns, sometimes $CPP names a directory.
1035 if test -n "$CPP" && test -d "$CPP"; then
1036 CPP=
1038 if test -z "$CPP"; then
1039 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1041 else
1042 # This must be in double quotes, not single quotes, because CPP may get
1043 # substituted into the Makefile and "${CC-cc}" will confuse make.
1044 CPP="${CC-cc} -E"
1045 # On the NeXT, cc -E runs the code through the compiler's parser,
1046 # not just through cpp.
1047 cat > conftest.$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1050 #include <assert.h>
1051 Syntax Error
1053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1054 { (eval echo configure:1055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1056 if test -z "$ac_err"; then
1058 else
1059 echo "$ac_err" >&5
1060 echo "configure: failed program was:" >&5
1061 cat conftest.$ac_ext >&5
1062 rm -rf conftest*
1063 CPP="${CC-cc} -E -traditional-cpp"
1064 cat > conftest.$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1067 #include <assert.h>
1068 Syntax Error
1070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1071 { (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1073 if test -z "$ac_err"; then
1075 else
1076 echo "$ac_err" >&5
1077 echo "configure: failed program was:" >&5
1078 cat conftest.$ac_ext >&5
1079 rm -rf conftest*
1080 CPP="${CC-cc} -nologo -E"
1081 cat > conftest.$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1084 #include <assert.h>
1085 Syntax Error
1087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1088 { (eval echo configure:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1090 if test -z "$ac_err"; then
1092 else
1093 echo "$ac_err" >&5
1094 echo "configure: failed program was:" >&5
1095 cat conftest.$ac_ext >&5
1096 rm -rf conftest*
1097 CPP=/lib/cpp
1099 rm -f conftest*
1101 rm -f conftest*
1103 rm -f conftest*
1104 ac_cv_prog_CPP="$CPP"
1106 CPP="$ac_cv_prog_CPP"
1107 else
1108 ac_cv_prog_CPP="$CPP"
1110 echo "$ac_t""$CPP" 1>&6
1113 if test $host != $build; then
1114 ac_tool_prefix=${host_alias}-
1115 else
1116 ac_tool_prefix=
1119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1125 else
1126 if test -n "$RANLIB"; then
1127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1128 else
1129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1130 ac_dummy="$PATH"
1131 for ac_dir in $ac_dummy; do
1132 test -z "$ac_dir" && ac_dir=.
1133 if test -f $ac_dir/$ac_word; then
1134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1135 break
1137 done
1138 IFS="$ac_save_ifs"
1141 RANLIB="$ac_cv_prog_RANLIB"
1142 if test -n "$RANLIB"; then
1143 echo "$ac_t""$RANLIB" 1>&6
1144 else
1145 echo "$ac_t""no" 1>&6
1149 if test -z "$ac_cv_prog_RANLIB"; then
1150 if test -n "$ac_tool_prefix"; then
1151 # Extract the first word of "ranlib", so it can be a program name with args.
1152 set dummy ranlib; ac_word=$2
1153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 echo "configure:1155: checking for $ac_word" >&5
1155 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1157 else
1158 if test -n "$RANLIB"; then
1159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1160 else
1161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1162 ac_dummy="$PATH"
1163 for ac_dir in $ac_dummy; do
1164 test -z "$ac_dir" && ac_dir=.
1165 if test -f $ac_dir/$ac_word; then
1166 ac_cv_prog_RANLIB="ranlib"
1167 break
1169 done
1170 IFS="$ac_save_ifs"
1171 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1174 RANLIB="$ac_cv_prog_RANLIB"
1175 if test -n "$RANLIB"; then
1176 echo "$ac_t""$RANLIB" 1>&6
1177 else
1178 echo "$ac_t""no" 1>&6
1181 else
1182 RANLIB=":"
1186 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1187 set dummy ${ac_tool_prefix}strip; ac_word=$2
1188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189 echo "configure:1190: checking for $ac_word" >&5
1190 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1192 else
1193 if test -n "$STRIP"; then
1194 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1195 else
1196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1197 ac_dummy="$PATH"
1198 for ac_dir in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir=.
1200 if test -f $ac_dir/$ac_word; then
1201 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1202 break
1204 done
1205 IFS="$ac_save_ifs"
1208 STRIP="$ac_cv_prog_STRIP"
1209 if test -n "$STRIP"; then
1210 echo "$ac_t""$STRIP" 1>&6
1211 else
1212 echo "$ac_t""no" 1>&6
1216 if test -z "$ac_cv_prog_STRIP"; then
1217 if test -n "$ac_tool_prefix"; then
1218 # Extract the first word of "strip", so it can be a program name with args.
1219 set dummy strip; ac_word=$2
1220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1221 echo "configure:1222: checking for $ac_word" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1224 else
1225 if test -n "$STRIP"; then
1226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1227 else
1228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1229 ac_dummy="$PATH"
1230 for ac_dir in $ac_dummy; do
1231 test -z "$ac_dir" && ac_dir=.
1232 if test -f $ac_dir/$ac_word; then
1233 ac_cv_prog_STRIP="strip"
1234 break
1236 done
1237 IFS="$ac_save_ifs"
1238 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1241 STRIP="$ac_cv_prog_STRIP"
1242 if test -n "$STRIP"; then
1243 echo "$ac_t""$STRIP" 1>&6
1244 else
1245 echo "$ac_t""no" 1>&6
1248 else
1249 STRIP=":"
1254 # Extract the first word of "gmake", so it can be a program name with args.
1255 set dummy gmake; ac_word=$2
1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_word" >&5
1258 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1260 else
1261 case "$GMAKE" in
1263 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1265 ?:/*)
1266 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1270 ac_dummy="$PATH"
1271 for ac_dir in $ac_dummy; do
1272 test -z "$ac_dir" && ac_dir=.
1273 if test -f $ac_dir/$ac_word; then
1274 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1275 break
1277 done
1278 IFS="$ac_save_ifs"
1279 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1281 esac
1283 GMAKE="$ac_cv_path_GMAKE"
1284 if test -n "$GMAKE"; then
1285 echo "$ac_t""$GMAKE" 1>&6
1286 else
1287 echo "$ac_t""no" 1>&6
1290 if test "x$GMAKE" = "xno"; then
1291 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1292 echo "configure:1293: checking whether GNU make is installed" >&5
1293 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1295 else
1296 if make --version | grep -q -i gnu; then
1297 ac_cv_gmake="yes"
1298 else
1299 echo "This software needs you to install GNU make to compile properly."
1300 echo "You can get it from http://www.gnu.org/."
1301 exit
1305 echo "$ac_t""$ac_cv_gmake" 1>&6
1306 VLC_MAKE="make"
1307 else
1308 VLC_MAKE="gmake"
1311 ALL_LINGUAS="de en_GB fr ja no ru nl"
1313 cat >> confdefs.h <<EOF
1314 #define VLC_PACKAGE "$PACKAGE"
1317 cat >> confdefs.h <<EOF
1318 #define VLC_VERSION "$VERSION"
1321 # Extract the first word of "ranlib", so it can be a program name with args.
1322 set dummy ranlib; ac_word=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328 if test -n "$RANLIB"; then
1329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1330 else
1331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1332 ac_dummy="$PATH"
1333 for ac_dir in $ac_dummy; do
1334 test -z "$ac_dir" && ac_dir=.
1335 if test -f $ac_dir/$ac_word; then
1336 ac_cv_prog_RANLIB="ranlib"
1337 break
1339 done
1340 IFS="$ac_save_ifs"
1341 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1344 RANLIB="$ac_cv_prog_RANLIB"
1345 if test -n "$RANLIB"; then
1346 echo "$ac_t""$RANLIB" 1>&6
1347 else
1348 echo "$ac_t""no" 1>&6
1352 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1353 echo "configure:1354: checking for strerror in -lcposix" >&5
1354 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1357 else
1358 ac_save_LIBS="$LIBS"
1359 LIBS="-lcposix $LIBS"
1360 cat > conftest.$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1363 /* Override any gcc2 internal prototype to avoid an error. */
1364 /* We use char because int might match the return type of a gcc2
1365 builtin and then its argument prototype would still apply. */
1366 char strerror();
1368 int main() {
1369 strerror()
1370 ; return 0; }
1372 if { (eval echo configure:1373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1373 rm -rf conftest*
1374 eval "ac_cv_lib_$ac_lib_var=yes"
1375 else
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1378 rm -rf conftest*
1379 eval "ac_cv_lib_$ac_lib_var=no"
1381 rm -f conftest*
1382 LIBS="$ac_save_LIBS"
1385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1386 echo "$ac_t""yes" 1>&6
1387 LIBS="$LIBS -lcposix"
1388 else
1389 echo "$ac_t""no" 1>&6
1394 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1395 echo "configure:1396: checking for ANSI C header files" >&5
1396 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1398 else
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1402 #include <stdlib.h>
1403 #include <stdarg.h>
1404 #include <string.h>
1405 #include <float.h>
1407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1408 { (eval echo configure:1409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1410 if test -z "$ac_err"; then
1411 rm -rf conftest*
1412 ac_cv_header_stdc=yes
1413 else
1414 echo "$ac_err" >&5
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1417 rm -rf conftest*
1418 ac_cv_header_stdc=no
1420 rm -f conftest*
1422 if test $ac_cv_header_stdc = yes; then
1423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1427 #include <string.h>
1429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1430 egrep "memchr" >/dev/null 2>&1; then
1432 else
1433 rm -rf conftest*
1434 ac_cv_header_stdc=no
1436 rm -f conftest*
1440 if test $ac_cv_header_stdc = yes; then
1441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1442 cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1445 #include <stdlib.h>
1447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1448 egrep "free" >/dev/null 2>&1; then
1450 else
1451 rm -rf conftest*
1452 ac_cv_header_stdc=no
1454 rm -f conftest*
1458 if test $ac_cv_header_stdc = yes; then
1459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1460 if test "$cross_compiling" = yes; then
1462 else
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466 #include <ctype.h>
1467 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1468 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1470 int main () { int i; for (i = 0; i < 256; i++)
1471 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1472 exit (0); }
1475 if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1476 then
1478 else
1479 echo "configure: failed program was:" >&5
1480 cat conftest.$ac_ext >&5
1481 rm -fr conftest*
1482 ac_cv_header_stdc=no
1484 rm -fr conftest*
1490 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1491 if test $ac_cv_header_stdc = yes; then
1492 cat >> confdefs.h <<\EOF
1493 #define STDC_HEADERS 1
1498 echo $ac_n "checking for working const""... $ac_c" 1>&6
1499 echo "configure:1500: checking for working const" >&5
1500 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1502 else
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1507 int main() {
1509 /* Ultrix mips cc rejects this. */
1510 typedef int charset[2]; const charset x;
1511 /* SunOS 4.1.1 cc rejects this. */
1512 char const *const *ccp;
1513 char **p;
1514 /* NEC SVR4.0.2 mips cc rejects this. */
1515 struct point {int x, y;};
1516 static struct point const zero = {0,0};
1517 /* AIX XL C 1.02.0.0 rejects this.
1518 It does not let you subtract one const X* pointer from another in an arm
1519 of an if-expression whose if-part is not a constant expression */
1520 const char *g = "string";
1521 ccp = &g + (g ? g-g : 0);
1522 /* HPUX 7.0 cc rejects these. */
1523 ++ccp;
1524 p = (char**) ccp;
1525 ccp = (char const *const *) p;
1526 { /* SCO 3.2v4 cc rejects this. */
1527 char *t;
1528 char const *s = 0 ? (char *) 0 : (char const *) 0;
1530 *t++ = 0;
1532 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1533 int x[] = {25, 17};
1534 const int *foo = &x[0];
1535 ++foo;
1537 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1538 typedef const int *iptr;
1539 iptr p = 0;
1540 ++p;
1542 { /* AIX XL C 1.02.0.0 rejects this saying
1543 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1544 struct s { int j; const int *ap[3]; };
1545 struct s *b; b->j = 5;
1547 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1548 const int foo = 10;
1551 ; return 0; }
1553 if { (eval echo configure:1554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1554 rm -rf conftest*
1555 ac_cv_c_const=yes
1556 else
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1559 rm -rf conftest*
1560 ac_cv_c_const=no
1562 rm -f conftest*
1565 echo "$ac_t""$ac_cv_c_const" 1>&6
1566 if test $ac_cv_c_const = no; then
1567 cat >> confdefs.h <<\EOF
1568 #define const
1573 echo $ac_n "checking for inline""... $ac_c" 1>&6
1574 echo "configure:1575: checking for inline" >&5
1575 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1577 else
1578 ac_cv_c_inline=no
1579 for ac_kw in inline __inline__ __inline; do
1580 cat > conftest.$ac_ext <<EOF
1581 #line 1582 "configure"
1582 #include "confdefs.h"
1584 int main() {
1585 } $ac_kw foo() {
1586 ; return 0; }
1588 if { (eval echo configure:1589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1589 rm -rf conftest*
1590 ac_cv_c_inline=$ac_kw; break
1591 else
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1595 rm -f conftest*
1596 done
1600 echo "$ac_t""$ac_cv_c_inline" 1>&6
1601 case "$ac_cv_c_inline" in
1602 inline | yes) ;;
1603 no) cat >> confdefs.h <<\EOF
1604 #define inline
1607 *) cat >> confdefs.h <<EOF
1608 #define inline $ac_cv_c_inline
1611 esac
1613 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1614 echo "configure:1615: checking for off_t" >&5
1615 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1617 else
1618 cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1621 #include <sys/types.h>
1622 #if STDC_HEADERS
1623 #include <stdlib.h>
1624 #include <stddef.h>
1625 #endif
1627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1628 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1629 rm -rf conftest*
1630 ac_cv_type_off_t=yes
1631 else
1632 rm -rf conftest*
1633 ac_cv_type_off_t=no
1635 rm -f conftest*
1638 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1639 if test $ac_cv_type_off_t = no; then
1640 cat >> confdefs.h <<\EOF
1641 #define off_t long
1646 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1647 echo "configure:1648: checking for size_t" >&5
1648 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1650 else
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 #include <sys/types.h>
1655 #if STDC_HEADERS
1656 #include <stdlib.h>
1657 #include <stddef.h>
1658 #endif
1660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1661 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1662 rm -rf conftest*
1663 ac_cv_type_size_t=yes
1664 else
1665 rm -rf conftest*
1666 ac_cv_type_size_t=no
1668 rm -f conftest*
1671 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1672 if test $ac_cv_type_size_t = no; then
1673 cat >> confdefs.h <<\EOF
1674 #define size_t unsigned
1679 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1680 # for constant arguments. Useless!
1681 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1682 echo "configure:1683: checking for working alloca.h" >&5
1683 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1685 else
1686 cat > conftest.$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1689 #include <alloca.h>
1690 int main() {
1691 char *p = alloca(2 * sizeof(int));
1692 ; return 0; }
1694 if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695 rm -rf conftest*
1696 ac_cv_header_alloca_h=yes
1697 else
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1700 rm -rf conftest*
1701 ac_cv_header_alloca_h=no
1703 rm -f conftest*
1706 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1707 if test $ac_cv_header_alloca_h = yes; then
1708 cat >> confdefs.h <<\EOF
1709 #define HAVE_ALLOCA_H 1
1714 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1715 echo "configure:1716: checking for alloca" >&5
1716 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1718 else
1719 cat > conftest.$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1723 #ifdef __GNUC__
1724 # define alloca __builtin_alloca
1725 #else
1726 # ifdef _MSC_VER
1727 # include <malloc.h>
1728 # define alloca _alloca
1729 # else
1730 # if HAVE_ALLOCA_H
1731 # include <alloca.h>
1732 # else
1733 # ifdef _AIX
1734 #pragma alloca
1735 # else
1736 # ifndef alloca /* predefined by HP cc +Olibcalls */
1737 char *alloca ();
1738 # endif
1739 # endif
1740 # endif
1741 # endif
1742 #endif
1744 int main() {
1745 char *p = (char *) alloca(1);
1746 ; return 0; }
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1749 rm -rf conftest*
1750 ac_cv_func_alloca_works=yes
1751 else
1752 echo "configure: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1754 rm -rf conftest*
1755 ac_cv_func_alloca_works=no
1757 rm -f conftest*
1760 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1761 if test $ac_cv_func_alloca_works = yes; then
1762 cat >> confdefs.h <<\EOF
1763 #define HAVE_ALLOCA 1
1768 if test $ac_cv_func_alloca_works = no; then
1769 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1770 # that cause trouble. Some versions do not even contain alloca or
1771 # contain a buggy version. If you still want to use their alloca,
1772 # use ar to extract alloca.o from them instead of compiling alloca.c.
1773 ALLOCA=alloca.${ac_objext}
1774 cat >> confdefs.h <<\EOF
1775 #define C_ALLOCA 1
1779 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether alloca needs Cray hooks" >&5
1781 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1783 else
1784 cat > conftest.$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 #if defined(CRAY) && ! defined(CRAY2)
1788 webecray
1789 #else
1790 wenotbecray
1791 #endif
1794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1795 egrep "webecray" >/dev/null 2>&1; then
1796 rm -rf conftest*
1797 ac_cv_os_cray=yes
1798 else
1799 rm -rf conftest*
1800 ac_cv_os_cray=no
1802 rm -f conftest*
1806 echo "$ac_t""$ac_cv_os_cray" 1>&6
1807 if test $ac_cv_os_cray = yes; then
1808 for ac_func in _getb67 GETB67 getb67; do
1809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_func" >&5
1811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1813 else
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 /* System header to define __stub macros and hopefully few prototypes,
1818 which can conflict with char $ac_func(); below. */
1819 #include <assert.h>
1820 /* Override any gcc2 internal prototype to avoid an error. */
1821 /* We use char because int might match the return type of a gcc2
1822 builtin and then its argument prototype would still apply. */
1823 char $ac_func();
1825 int main() {
1827 /* The GNU C library defines this for functions which it implements
1828 to always fail with ENOSYS. Some functions are actually named
1829 something starting with __ and the normal name is an alias. */
1830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1831 choke me
1832 #else
1833 $ac_func();
1834 #endif
1836 ; return 0; }
1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1839 rm -rf conftest*
1840 eval "ac_cv_func_$ac_func=yes"
1841 else
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1844 rm -rf conftest*
1845 eval "ac_cv_func_$ac_func=no"
1847 rm -f conftest*
1850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1851 echo "$ac_t""yes" 1>&6
1852 cat >> confdefs.h <<EOF
1853 #define CRAY_STACKSEG_END $ac_func
1856 break
1857 else
1858 echo "$ac_t""no" 1>&6
1861 done
1864 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1865 echo "configure:1866: checking stack direction for C alloca" >&5
1866 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1868 else
1869 if test "$cross_compiling" = yes; then
1870 ac_cv_c_stack_direction=0
1871 else
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1875 find_stack_direction ()
1877 static char *addr = 0;
1878 auto char dummy;
1879 if (addr == 0)
1881 addr = &dummy;
1882 return find_stack_direction ();
1884 else
1885 return (&dummy > addr) ? 1 : -1;
1887 main ()
1889 exit (find_stack_direction() < 0);
1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1893 then
1894 ac_cv_c_stack_direction=1
1895 else
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1898 rm -fr conftest*
1899 ac_cv_c_stack_direction=-1
1901 rm -fr conftest*
1906 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1907 cat >> confdefs.h <<EOF
1908 #define STACK_DIRECTION $ac_cv_c_stack_direction
1913 for ac_hdr in unistd.h
1915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_hdr" >&5
1918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 #include <$ac_hdr>
1926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1927 { (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1929 if test -z "$ac_err"; then
1930 rm -rf conftest*
1931 eval "ac_cv_header_$ac_safe=yes"
1932 else
1933 echo "$ac_err" >&5
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1936 rm -rf conftest*
1937 eval "ac_cv_header_$ac_safe=no"
1939 rm -f conftest*
1941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1942 echo "$ac_t""yes" 1>&6
1943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1944 cat >> confdefs.h <<EOF
1945 #define $ac_tr_hdr 1
1948 else
1949 echo "$ac_t""no" 1>&6
1951 done
1953 for ac_func in getpagesize
1955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1956 echo "configure:1957: checking for $ac_func" >&5
1957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1959 else
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963 /* System header to define __stub macros and hopefully few prototypes,
1964 which can conflict with char $ac_func(); below. */
1965 #include <assert.h>
1966 /* Override any gcc2 internal prototype to avoid an error. */
1967 /* We use char because int might match the return type of a gcc2
1968 builtin and then its argument prototype would still apply. */
1969 char $ac_func();
1971 int main() {
1973 /* The GNU C library defines this for functions which it implements
1974 to always fail with ENOSYS. Some functions are actually named
1975 something starting with __ and the normal name is an alias. */
1976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1977 choke me
1978 #else
1979 $ac_func();
1980 #endif
1982 ; return 0; }
1984 if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1985 rm -rf conftest*
1986 eval "ac_cv_func_$ac_func=yes"
1987 else
1988 echo "configure: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 rm -rf conftest*
1991 eval "ac_cv_func_$ac_func=no"
1993 rm -f conftest*
1996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1997 echo "$ac_t""yes" 1>&6
1998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1999 cat >> confdefs.h <<EOF
2000 #define $ac_tr_func 1
2003 else
2004 echo "$ac_t""no" 1>&6
2006 done
2008 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2009 echo "configure:2010: checking for working mmap" >&5
2010 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2012 else
2013 if test "$cross_compiling" = yes; then
2014 ac_cv_func_mmap_fixed_mapped=no
2015 else
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2020 /* Thanks to Mike Haertel and Jim Avera for this test.
2021 Here is a matrix of mmap possibilities:
2022 mmap private not fixed
2023 mmap private fixed at somewhere currently unmapped
2024 mmap private fixed at somewhere already mapped
2025 mmap shared not fixed
2026 mmap shared fixed at somewhere currently unmapped
2027 mmap shared fixed at somewhere already mapped
2028 For private mappings, we should verify that changes cannot be read()
2029 back from the file, nor mmap's back from the file at a different
2030 address. (There have been systems where private was not correctly
2031 implemented like the infamous i386 svr4.0, and systems where the
2032 VM page cache was not coherent with the filesystem buffer cache
2033 like early versions of FreeBSD and possibly contemporary NetBSD.)
2034 For shared mappings, we should conversely verify that changes get
2035 propogated back to all the places they're supposed to be.
2037 Grep wants private fixed already mapped.
2038 The main things grep needs to know about mmap are:
2039 * does it exist and is it safe to write into the mmap'd area
2040 * how to use it (BSD variants) */
2041 #include <sys/types.h>
2042 #include <fcntl.h>
2043 #include <sys/mman.h>
2045 /* This mess was copied from the GNU getpagesize.h. */
2046 #ifndef HAVE_GETPAGESIZE
2047 # ifdef HAVE_UNISTD_H
2048 # include <unistd.h>
2049 # endif
2051 /* Assume that all systems that can run configure have sys/param.h. */
2052 # ifndef HAVE_SYS_PARAM_H
2053 # define HAVE_SYS_PARAM_H 1
2054 # endif
2056 # ifdef _SC_PAGESIZE
2057 # define getpagesize() sysconf(_SC_PAGESIZE)
2058 # else /* no _SC_PAGESIZE */
2059 # ifdef HAVE_SYS_PARAM_H
2060 # include <sys/param.h>
2061 # ifdef EXEC_PAGESIZE
2062 # define getpagesize() EXEC_PAGESIZE
2063 # else /* no EXEC_PAGESIZE */
2064 # ifdef NBPG
2065 # define getpagesize() NBPG * CLSIZE
2066 # ifndef CLSIZE
2067 # define CLSIZE 1
2068 # endif /* no CLSIZE */
2069 # else /* no NBPG */
2070 # ifdef NBPC
2071 # define getpagesize() NBPC
2072 # else /* no NBPC */
2073 # ifdef PAGESIZE
2074 # define getpagesize() PAGESIZE
2075 # endif /* PAGESIZE */
2076 # endif /* no NBPC */
2077 # endif /* no NBPG */
2078 # endif /* no EXEC_PAGESIZE */
2079 # else /* no HAVE_SYS_PARAM_H */
2080 # define getpagesize() 8192 /* punt totally */
2081 # endif /* no HAVE_SYS_PARAM_H */
2082 # endif /* no _SC_PAGESIZE */
2084 #endif /* no HAVE_GETPAGESIZE */
2086 #ifdef __cplusplus
2087 extern "C" { void *malloc(unsigned); }
2088 #else
2089 char *malloc();
2090 #endif
2093 main()
2095 char *data, *data2, *data3;
2096 int i, pagesize;
2097 int fd;
2099 pagesize = getpagesize();
2102 * First, make a file with some known garbage in it.
2104 data = malloc(pagesize);
2105 if (!data)
2106 exit(1);
2107 for (i = 0; i < pagesize; ++i)
2108 *(data + i) = rand();
2109 umask(0);
2110 fd = creat("conftestmmap", 0600);
2111 if (fd < 0)
2112 exit(1);
2113 if (write(fd, data, pagesize) != pagesize)
2114 exit(1);
2115 close(fd);
2118 * Next, try to mmap the file at a fixed address which
2119 * already has something else allocated at it. If we can,
2120 * also make sure that we see the same garbage.
2122 fd = open("conftestmmap", O_RDWR);
2123 if (fd < 0)
2124 exit(1);
2125 data2 = malloc(2 * pagesize);
2126 if (!data2)
2127 exit(1);
2128 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2129 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2130 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2131 exit(1);
2132 for (i = 0; i < pagesize; ++i)
2133 if (*(data + i) != *(data2 + i))
2134 exit(1);
2137 * Finally, make sure that changes to the mapped area
2138 * do not percolate back to the file as seen by read().
2139 * (This is a bug on some variants of i386 svr4.0.)
2141 for (i = 0; i < pagesize; ++i)
2142 *(data2 + i) = *(data2 + i) + 1;
2143 data3 = malloc(pagesize);
2144 if (!data3)
2145 exit(1);
2146 if (read(fd, data3, pagesize) != pagesize)
2147 exit(1);
2148 for (i = 0; i < pagesize; ++i)
2149 if (*(data + i) != *(data3 + i))
2150 exit(1);
2151 close(fd);
2152 unlink("conftestmmap");
2153 exit(0);
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2158 then
2159 ac_cv_func_mmap_fixed_mapped=yes
2160 else
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2163 rm -fr conftest*
2164 ac_cv_func_mmap_fixed_mapped=no
2166 rm -fr conftest*
2171 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2172 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2173 cat >> confdefs.h <<\EOF
2174 #define HAVE_MMAP 1
2180 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2181 echo "configure:2182: checking whether we are using the GNU C Library 2.1 or newer" >&5
2182 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184 else
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2189 #include <features.h>
2190 #ifdef __GNU_LIBRARY__
2191 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2192 Lucky GNU user
2193 #endif
2194 #endif
2197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2198 egrep "Lucky GNU user" >/dev/null 2>&1; then
2199 rm -rf conftest*
2200 ac_cv_gnu_library_2_1=yes
2201 else
2202 rm -rf conftest*
2203 ac_cv_gnu_library_2_1=no
2205 rm -f conftest*
2211 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2213 GLIBC21="$ac_cv_gnu_library_2_1"
2217 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2218 stdlib.h string.h unistd.h sys/param.h
2220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_hdr" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 #include <$ac_hdr>
2231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2232 { (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2234 if test -z "$ac_err"; then
2235 rm -rf conftest*
2236 eval "ac_cv_header_$ac_safe=yes"
2237 else
2238 echo "$ac_err" >&5
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2241 rm -rf conftest*
2242 eval "ac_cv_header_$ac_safe=no"
2244 rm -f conftest*
2246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2249 cat >> confdefs.h <<EOF
2250 #define $ac_tr_hdr 1
2253 else
2254 echo "$ac_t""no" 1>&6
2256 done
2258 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2259 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2260 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_func" >&5
2264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2266 else
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 /* System header to define __stub macros and hopefully few prototypes,
2271 which can conflict with char $ac_func(); below. */
2272 #include <assert.h>
2273 /* Override any gcc2 internal prototype to avoid an error. */
2274 /* We use char because int might match the return type of a gcc2
2275 builtin and then its argument prototype would still apply. */
2276 char $ac_func();
2278 int main() {
2280 /* The GNU C library defines this for functions which it implements
2281 to always fail with ENOSYS. Some functions are actually named
2282 something starting with __ and the normal name is an alias. */
2283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2284 choke me
2285 #else
2286 $ac_func();
2287 #endif
2289 ; return 0; }
2291 if { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2292 rm -rf conftest*
2293 eval "ac_cv_func_$ac_func=yes"
2294 else
2295 echo "configure: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2297 rm -rf conftest*
2298 eval "ac_cv_func_$ac_func=no"
2300 rm -f conftest*
2303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2304 echo "$ac_t""yes" 1>&6
2305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2306 cat >> confdefs.h <<EOF
2307 #define $ac_tr_func 1
2310 else
2311 echo "$ac_t""no" 1>&6
2313 done
2318 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2319 if test "${with_libiconv_prefix+set}" = set; then
2320 withval="$with_libiconv_prefix"
2322 for dir in `echo "$withval" | tr : ' '`; do
2323 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2324 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2325 done
2330 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2331 echo "configure:2332: checking for iconv" >&5
2332 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2336 am_cv_func_iconv="no, consider installing GNU libiconv"
2337 am_cv_lib_iconv=no
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 #include <stdlib.h>
2342 #include <iconv.h>
2343 int main() {
2344 iconv_t cd = iconv_open("","");
2345 iconv(cd,NULL,NULL,NULL,NULL);
2346 iconv_close(cd);
2347 ; return 0; }
2349 if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2350 rm -rf conftest*
2351 am_cv_func_iconv=yes
2352 else
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2356 rm -f conftest*
2357 if test "$am_cv_func_iconv" != yes; then
2358 am_save_LIBS="$LIBS"
2359 LIBS="$LIBS -liconv"
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2363 #include <stdlib.h>
2364 #include <iconv.h>
2365 int main() {
2366 iconv_t cd = iconv_open("","");
2367 iconv(cd,NULL,NULL,NULL,NULL);
2368 iconv_close(cd);
2369 ; return 0; }
2371 if { (eval echo configure:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2372 rm -rf conftest*
2373 am_cv_lib_iconv=yes
2374 am_cv_func_iconv=yes
2375 else
2376 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2379 rm -f conftest*
2380 LIBS="$am_save_LIBS"
2385 echo "$ac_t""$am_cv_func_iconv" 1>&6
2386 if test "$am_cv_func_iconv" = yes; then
2387 cat >> confdefs.h <<\EOF
2388 #define HAVE_ICONV 1
2391 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2392 echo "configure:2393: checking for iconv declaration" >&5
2393 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2395 else
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2401 #include <stdlib.h>
2402 #include <iconv.h>
2403 extern
2404 #ifdef __cplusplus
2406 #endif
2407 #if defined(__STDC__) || defined(__cplusplus)
2408 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2409 #else
2410 size_t iconv();
2411 #endif
2413 int main() {
2415 ; return 0; }
2417 if { (eval echo configure:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2418 rm -rf conftest*
2419 am_cv_proto_iconv_arg1=""
2420 else
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 rm -rf conftest*
2424 am_cv_proto_iconv_arg1="const"
2426 rm -f conftest*
2427 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2430 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2431 echo "$ac_t""${ac_t:-
2432 }$am_cv_proto_iconv" 1>&6
2433 cat >> confdefs.h <<EOF
2434 #define ICONV_CONST $am_cv_proto_iconv_arg1
2438 LIBICONV=
2439 if test "$am_cv_lib_iconv" = yes; then
2440 LIBICONV="-liconv"
2445 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2446 echo "configure:2447: checking for nl_langinfo and CODESET" >&5
2447 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2449 else
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 #include <langinfo.h>
2454 int main() {
2455 char* cs = nl_langinfo(CODESET);
2456 ; return 0; }
2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2459 rm -rf conftest*
2460 am_cv_langinfo_codeset=yes
2461 else
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2464 rm -rf conftest*
2465 am_cv_langinfo_codeset=no
2467 rm -f conftest*
2471 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2472 if test $am_cv_langinfo_codeset = yes; then
2473 cat >> confdefs.h <<\EOF
2474 #define HAVE_LANGINFO_CODESET 1
2479 if test $ac_cv_header_locale_h = yes; then
2480 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2481 echo "configure:2482: checking for LC_MESSAGES" >&5
2482 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2484 else
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <locale.h>
2489 int main() {
2490 return LC_MESSAGES
2491 ; return 0; }
2493 if { (eval echo configure:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2494 rm -rf conftest*
2495 am_cv_val_LC_MESSAGES=yes
2496 else
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2499 rm -rf conftest*
2500 am_cv_val_LC_MESSAGES=no
2502 rm -f conftest*
2505 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2506 if test $am_cv_val_LC_MESSAGES = yes; then
2507 cat >> confdefs.h <<\EOF
2508 #define HAVE_LC_MESSAGES 1
2513 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2514 echo "configure:2515: checking whether NLS is requested" >&5
2515 # Check whether --enable-nls or --disable-nls was given.
2516 if test "${enable_nls+set}" = set; then
2517 enableval="$enable_nls"
2518 USE_NLS=$enableval
2519 else
2520 USE_NLS=yes
2523 echo "$ac_t""$USE_NLS" 1>&6
2526 BUILD_INCLUDED_LIBINTL=no
2527 USE_INCLUDED_LIBINTL=no
2528 INTLLIBS=
2530 if test "$USE_NLS" = "yes"; then
2531 cat >> confdefs.h <<\EOF
2532 #define ENABLE_NLS 1
2535 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2536 echo "configure:2537: checking whether included gettext is requested" >&5
2537 # Check whether --with-included-gettext or --without-included-gettext was given.
2538 if test "${with_included_gettext+set}" = set; then
2539 withval="$with_included_gettext"
2540 nls_cv_force_use_gnu_gettext=$withval
2541 else
2542 nls_cv_force_use_gnu_gettext=no
2545 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2547 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2548 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2549 CATOBJEXT=NONE
2554 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2555 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2556 echo "configure:2557: checking for libintl.h" >&5
2557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2559 else
2560 cat > conftest.$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2563 #include <libintl.h>
2565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2566 { (eval echo configure:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2568 if test -z "$ac_err"; then
2569 rm -rf conftest*
2570 eval "ac_cv_header_$ac_safe=yes"
2571 else
2572 echo "$ac_err" >&5
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2575 rm -rf conftest*
2576 eval "ac_cv_header_$ac_safe=no"
2578 rm -f conftest*
2580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2582 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2583 echo "configure:2584: checking for GNU gettext in libc" >&5
2584 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2586 else
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <libintl.h>
2591 extern int _nl_msg_cat_cntr;
2592 int main() {
2593 bindtextdomain ("", "");
2594 return (int) gettext ("") + _nl_msg_cat_cntr
2595 ; return 0; }
2597 if { (eval echo configure:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2598 rm -rf conftest*
2599 gt_cv_func_gnugettext1_libc=yes
2600 else
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2603 rm -rf conftest*
2604 gt_cv_func_gnugettext1_libc=no
2606 rm -f conftest*
2609 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2611 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2612 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2613 echo "configure:2614: checking for GNU gettext in libintl" >&5
2614 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2616 else
2617 gt_save_LIBS="$LIBS"
2618 LIBS="$LIBS -lintl $LIBICONV"
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 #include <libintl.h>
2623 extern int _nl_msg_cat_cntr;
2624 int main() {
2625 bindtextdomain ("", "");
2626 return (int) gettext ("") + _nl_msg_cat_cntr
2627 ; return 0; }
2629 if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2630 rm -rf conftest*
2631 gt_cv_func_gnugettext1_libintl=yes
2632 else
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2635 rm -rf conftest*
2636 gt_cv_func_gnugettext1_libintl=no
2638 rm -f conftest*
2639 LIBS="$gt_save_LIBS"
2642 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2645 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2646 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2647 && test "$PACKAGE" != gettext; }; then
2648 cat >> confdefs.h <<\EOF
2649 #define HAVE_GETTEXT 1
2653 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2654 INTLLIBS="-lintl $LIBICONV"
2657 gt_save_LIBS="$LIBS"
2658 LIBS="$LIBS $INTLLIBS"
2659 for ac_func in dcgettext
2661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2662 echo "configure:2663: checking for $ac_func" >&5
2663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2665 else
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 /* System header to define __stub macros and hopefully few prototypes,
2670 which can conflict with char $ac_func(); below. */
2671 #include <assert.h>
2672 /* Override any gcc2 internal prototype to avoid an error. */
2673 /* We use char because int might match the return type of a gcc2
2674 builtin and then its argument prototype would still apply. */
2675 char $ac_func();
2677 int main() {
2679 /* The GNU C library defines this for functions which it implements
2680 to always fail with ENOSYS. Some functions are actually named
2681 something starting with __ and the normal name is an alias. */
2682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2683 choke me
2684 #else
2685 $ac_func();
2686 #endif
2688 ; return 0; }
2690 if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2691 rm -rf conftest*
2692 eval "ac_cv_func_$ac_func=yes"
2693 else
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2696 rm -rf conftest*
2697 eval "ac_cv_func_$ac_func=no"
2699 rm -f conftest*
2702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2703 echo "$ac_t""yes" 1>&6
2704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2705 cat >> confdefs.h <<EOF
2706 #define $ac_tr_func 1
2709 else
2710 echo "$ac_t""no" 1>&6
2712 done
2714 LIBS="$gt_save_LIBS"
2716 # Extract the first word of "msgfmt", so it can be a program name with args.
2717 set dummy msgfmt; ac_word=$2
2718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2719 echo "configure:2720: checking for $ac_word" >&5
2720 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2722 else
2723 case "$MSGFMT" in
2725 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2729 for ac_dir in $PATH; do
2730 test -z "$ac_dir" && ac_dir=.
2731 if test -f $ac_dir/$ac_word; then
2732 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2733 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2734 break
2737 done
2738 IFS="$ac_save_ifs"
2739 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2741 esac
2743 MSGFMT="$ac_cv_path_MSGFMT"
2744 if test "$MSGFMT" != ":"; then
2745 echo "$ac_t""$MSGFMT" 1>&6
2746 else
2747 echo "$ac_t""no" 1>&6
2750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2751 set dummy gmsgfmt; ac_word=$2
2752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_word" >&5
2754 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2756 else
2757 case "$GMSGFMT" in
2759 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2761 ?:/*)
2762 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2766 ac_dummy="$PATH"
2767 for ac_dir in $ac_dummy; do
2768 test -z "$ac_dir" && ac_dir=.
2769 if test -f $ac_dir/$ac_word; then
2770 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2771 break
2773 done
2774 IFS="$ac_save_ifs"
2775 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2777 esac
2779 GMSGFMT="$ac_cv_path_GMSGFMT"
2780 if test -n "$GMSGFMT"; then
2781 echo "$ac_t""$GMSGFMT" 1>&6
2782 else
2783 echo "$ac_t""no" 1>&6
2787 # Extract the first word of "xgettext", so it can be a program name with args.
2788 set dummy xgettext; ac_word=$2
2789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_word" >&5
2791 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2793 else
2794 case "$XGETTEXT" in
2796 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2800 for ac_dir in $PATH; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2803 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2804 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2805 break
2808 done
2809 IFS="$ac_save_ifs"
2810 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2812 esac
2814 XGETTEXT="$ac_cv_path_XGETTEXT"
2815 if test "$XGETTEXT" != ":"; then
2816 echo "$ac_t""$XGETTEXT" 1>&6
2817 else
2818 echo "$ac_t""no" 1>&6
2822 CATOBJEXT=.gmo
2825 else
2826 echo "$ac_t""no" 1>&6
2830 if test "$CATOBJEXT" = "NONE"; then
2831 nls_cv_use_gnu_gettext=yes
2835 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2836 INTLOBJS="\$(GETTOBJS)"
2837 # Extract the first word of "msgfmt", so it can be a program name with args.
2838 set dummy msgfmt; ac_word=$2
2839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2840 echo "configure:2841: checking for $ac_word" >&5
2841 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2843 else
2844 case "$MSGFMT" in
2846 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2850 for ac_dir in $PATH; do
2851 test -z "$ac_dir" && ac_dir=.
2852 if test -f $ac_dir/$ac_word; then
2853 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2854 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2855 break
2858 done
2859 IFS="$ac_save_ifs"
2860 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2862 esac
2864 MSGFMT="$ac_cv_path_MSGFMT"
2865 if test "$MSGFMT" != ":"; then
2866 echo "$ac_t""$MSGFMT" 1>&6
2867 else
2868 echo "$ac_t""no" 1>&6
2871 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2872 set dummy gmsgfmt; ac_word=$2
2873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_word" >&5
2875 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2877 else
2878 case "$GMSGFMT" in
2880 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2882 ?:/*)
2883 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2887 ac_dummy="$PATH"
2888 for ac_dir in $ac_dummy; do
2889 test -z "$ac_dir" && ac_dir=.
2890 if test -f $ac_dir/$ac_word; then
2891 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2892 break
2894 done
2895 IFS="$ac_save_ifs"
2896 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2898 esac
2900 GMSGFMT="$ac_cv_path_GMSGFMT"
2901 if test -n "$GMSGFMT"; then
2902 echo "$ac_t""$GMSGFMT" 1>&6
2903 else
2904 echo "$ac_t""no" 1>&6
2907 # Extract the first word of "xgettext", so it can be a program name with args.
2908 set dummy xgettext; ac_word=$2
2909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_word" >&5
2911 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2913 else
2914 case "$XGETTEXT" in
2916 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2920 for ac_dir in $PATH; do
2921 test -z "$ac_dir" && ac_dir=.
2922 if test -f $ac_dir/$ac_word; then
2923 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2924 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2925 break
2928 done
2929 IFS="$ac_save_ifs"
2930 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2932 esac
2934 XGETTEXT="$ac_cv_path_XGETTEXT"
2935 if test "$XGETTEXT" != ":"; then
2936 echo "$ac_t""$XGETTEXT" 1>&6
2937 else
2938 echo "$ac_t""no" 1>&6
2942 BUILD_INCLUDED_LIBINTL=yes
2943 USE_INCLUDED_LIBINTL=yes
2944 CATOBJEXT=.gmo
2945 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2946 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2949 if test "$GMSGFMT" != ":"; then
2950 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2952 else
2953 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2954 GMSGFMT=":"
2958 if test "$XGETTEXT" != ":"; then
2959 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2961 else
2962 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2963 XGETTEXT=":"
2967 POSUB=po
2972 if test "$PACKAGE" = gettext; then
2973 BUILD_INCLUDED_LIBINTL=yes
2976 for ac_prog in bison
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2981 echo "configure:2982: checking for $ac_word" >&5
2982 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2984 else
2985 if test -n "$INTLBISON"; then
2986 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2987 else
2988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2989 ac_dummy="$PATH"
2990 for ac_dir in $ac_dummy; do
2991 test -z "$ac_dir" && ac_dir=.
2992 if test -f $ac_dir/$ac_word; then
2993 ac_cv_prog_INTLBISON="$ac_prog"
2994 break
2996 done
2997 IFS="$ac_save_ifs"
3000 INTLBISON="$ac_cv_prog_INTLBISON"
3001 if test -n "$INTLBISON"; then
3002 echo "$ac_t""$INTLBISON" 1>&6
3003 else
3004 echo "$ac_t""no" 1>&6
3007 test -n "$INTLBISON" && break
3008 done
3010 if test -z "$INTLBISON"; then
3011 ac_verc_fail=yes
3012 else
3013 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3014 echo "configure:3015: checking version of bison" >&5
3015 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3016 case $ac_prog_version in
3017 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3018 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3019 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3020 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3021 esac
3022 echo "$ac_t""$ac_prog_version" 1>&6
3024 if test $ac_verc_fail = yes; then
3025 INTLBISON=:
3028 for lang in $ALL_LINGUAS; do
3029 GMOFILES="$GMOFILES $lang.gmo"
3030 POFILES="$POFILES $lang.po"
3031 done
3043 nls_cv_header_intl=
3044 nls_cv_header_libgt=
3046 DATADIRNAME=share
3049 INSTOBJEXT=.mo
3052 GENCAT=gencat
3056 if test "x$CATOBJEXT" != "x"; then
3057 if test "x$ALL_LINGUAS" = "x"; then
3058 LINGUAS=
3059 else
3060 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3061 echo "configure:3062: checking for catalogs to be installed" >&5
3062 NEW_LINGUAS=
3063 for presentlang in $ALL_LINGUAS; do
3064 useit=no
3065 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3066 # Use the presentlang catalog if desiredlang is
3067 # a. equal to presentlang, or
3068 # b. a variant of presentlang (because in this case,
3069 # presentlang can be used as a fallback for messages
3070 # which are not translated in the desiredlang catalog).
3071 case "$desiredlang" in
3072 "$presentlang"*) useit=yes;;
3073 esac
3074 done
3075 if test $useit = yes; then
3076 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3078 done
3079 LINGUAS=$NEW_LINGUAS
3080 echo "$ac_t""$LINGUAS" 1>&6
3083 if test -n "$LINGUAS"; then
3084 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3088 MKINSTALLDIRS=
3089 if test -n "$ac_aux_dir"; then
3090 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3092 if test -z "$MKINSTALLDIRS"; then
3093 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3097 INTL_LIBTOOL_SUFFIX_PREFIX=
3101 # Find a good install program. We prefer a C program (faster),
3102 # so one script is as good as another. But avoid the broken or
3103 # incompatible versions:
3104 # SysV /etc/install, /usr/sbin/install
3105 # SunOS /usr/etc/install
3106 # IRIX /sbin/install
3107 # AIX /bin/install
3108 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3109 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3110 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3111 # ./install, which can be erroneously created by make from ./install.sh.
3112 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3113 echo "configure:3114: checking for a BSD compatible install" >&5
3114 if test -z "$INSTALL"; then
3115 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3117 else
3118 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3119 for ac_dir in $PATH; do
3120 # Account for people who put trailing slashes in PATH elements.
3121 case "$ac_dir/" in
3122 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3124 # OSF1 and SCO ODT 3.0 have their own names for install.
3125 # Don't use installbsd from OSF since it installs stuff as root
3126 # by default.
3127 for ac_prog in ginstall scoinst install; do
3128 if test -f $ac_dir/$ac_prog; then
3129 if test $ac_prog = install &&
3130 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3131 # AIX install. It has an incompatible calling convention.
3133 else
3134 ac_cv_path_install="$ac_dir/$ac_prog -c"
3135 break 2
3138 done
3140 esac
3141 done
3142 IFS="$ac_save_IFS"
3145 if test "${ac_cv_path_install+set}" = set; then
3146 INSTALL="$ac_cv_path_install"
3147 else
3148 # As a last resort, use the slow shell script. We don't cache a
3149 # path for INSTALL within a source directory, because that will
3150 # break other packages using the cache if that directory is
3151 # removed, or if the path is relative.
3152 INSTALL="$ac_install_sh"
3155 echo "$ac_t""$INSTALL" 1>&6
3157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3158 # It thinks the first close brace ends the variable substitution.
3159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3161 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3163 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3166 case x"${target_os}" in
3168 SYS=unknown
3170 xlinux*)
3171 SYS=linux
3173 xbsdi*)
3174 SYS=bsdi
3175 save_CFLAGS="${save_CFLAGS} -pthread"
3176 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3177 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3179 x*bsd*)
3180 SYS="${target_os}"
3181 save_CFLAGS="${save_CFLAGS} -pthread"
3183 xdarwin*)
3184 SYS=darwin
3185 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3187 x*mingw32*)
3188 SYS=mingw32
3189 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}windres; ac_word=$2
3191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_word" >&5
3193 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3195 else
3196 if test -n "$WINDRES"; then
3197 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3198 else
3199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3200 ac_dummy="$PATH"
3201 for ac_dir in $ac_dummy; do
3202 test -z "$ac_dir" && ac_dir=.
3203 if test -f $ac_dir/$ac_word; then
3204 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3205 break
3207 done
3208 IFS="$ac_save_ifs"
3211 WINDRES="$ac_cv_prog_WINDRES"
3212 if test -n "$WINDRES"; then
3213 echo "$ac_t""$WINDRES" 1>&6
3214 else
3215 echo "$ac_t""no" 1>&6
3219 if test -z "$ac_cv_prog_WINDRES"; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "windres", so it can be a program name with args.
3222 set dummy windres; ac_word=$2
3223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3224 echo "configure:3225: checking for $ac_word" >&5
3225 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3227 else
3228 if test -n "$WINDRES"; then
3229 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3230 else
3231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3232 ac_dummy="$PATH"
3233 for ac_dir in $ac_dummy; do
3234 test -z "$ac_dir" && ac_dir=.
3235 if test -f $ac_dir/$ac_word; then
3236 ac_cv_prog_WINDRES="windres"
3237 break
3239 done
3240 IFS="$ac_save_ifs"
3241 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3244 WINDRES="$ac_cv_prog_WINDRES"
3245 if test -n "$WINDRES"; then
3246 echo "$ac_t""$WINDRES" 1>&6
3247 else
3248 echo "$ac_t""no" 1>&6
3251 else
3252 WINDRES=":"
3256 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3257 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3258 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3259 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3260 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3262 x*nto*)
3263 SYS=nto
3264 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3265 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3267 xbeos)
3268 SYS=beos
3269 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3270 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3271 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3272 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3273 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3276 SYS="${target_os}"
3278 esac
3280 if test x"${SYS}" = xmingw32
3281 then
3282 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3283 else
3284 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3287 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3289 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3292 echo "configure:3293: checking for $ac_func" >&5
3293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3295 else
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 /* System header to define __stub macros and hopefully few prototypes,
3300 which can conflict with char $ac_func(); below. */
3301 #include <assert.h>
3302 /* Override any gcc2 internal prototype to avoid an error. */
3303 /* We use char because int might match the return type of a gcc2
3304 builtin and then its argument prototype would still apply. */
3305 char $ac_func();
3307 int main() {
3309 /* The GNU C library defines this for functions which it implements
3310 to always fail with ENOSYS. Some functions are actually named
3311 something starting with __ and the normal name is an alias. */
3312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3313 choke me
3314 #else
3315 $ac_func();
3316 #endif
3318 ; return 0; }
3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3321 rm -rf conftest*
3322 eval "ac_cv_func_$ac_func=yes"
3323 else
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3326 rm -rf conftest*
3327 eval "ac_cv_func_$ac_func=no"
3329 rm -f conftest*
3332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3333 echo "$ac_t""yes" 1>&6
3334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3335 cat >> confdefs.h <<EOF
3336 #define $ac_tr_func 1
3339 else
3340 echo "$ac_t""no" 1>&6
3342 done
3345 echo $ac_n "checking for connect""... $ac_c" 1>&6
3346 echo "configure:3347: checking for connect" >&5
3347 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3349 else
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 /* System header to define __stub macros and hopefully few prototypes,
3354 which can conflict with char connect(); below. */
3355 #include <assert.h>
3356 /* Override any gcc2 internal prototype to avoid an error. */
3357 /* We use char because int might match the return type of a gcc2
3358 builtin and then its argument prototype would still apply. */
3359 char connect();
3361 int main() {
3363 /* The GNU C library defines this for functions which it implements
3364 to always fail with ENOSYS. Some functions are actually named
3365 something starting with __ and the normal name is an alias. */
3366 #if defined (__stub_connect) || defined (__stub___connect)
3367 choke me
3368 #else
3369 connect();
3370 #endif
3372 ; return 0; }
3374 if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3375 rm -rf conftest*
3376 eval "ac_cv_func_connect=yes"
3377 else
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3380 rm -rf conftest*
3381 eval "ac_cv_func_connect=no"
3383 rm -f conftest*
3386 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3387 echo "$ac_t""yes" 1>&6
3389 else
3390 echo "$ac_t""no" 1>&6
3392 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3393 echo "configure:3394: checking for connect in -lsocket" >&5
3394 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3397 else
3398 ac_save_LIBS="$LIBS"
3399 LIBS="-lsocket $LIBS"
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3406 char connect();
3408 int main() {
3409 connect()
3410 ; return 0; }
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3413 rm -rf conftest*
3414 eval "ac_cv_lib_$ac_lib_var=yes"
3415 else
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3418 rm -rf conftest*
3419 eval "ac_cv_lib_$ac_lib_var=no"
3421 rm -f conftest*
3422 LIBS="$ac_save_LIBS"
3425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3428 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3430 else
3431 echo "$ac_t""no" 1>&6
3436 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3437 echo "configure:3438: checking for gethostbyname" >&5
3438 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3440 else
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 /* System header to define __stub macros and hopefully few prototypes,
3445 which can conflict with char gethostbyname(); below. */
3446 #include <assert.h>
3447 /* Override any gcc2 internal prototype to avoid an error. */
3448 /* We use char because int might match the return type of a gcc2
3449 builtin and then its argument prototype would still apply. */
3450 char gethostbyname();
3452 int main() {
3454 /* The GNU C library defines this for functions which it implements
3455 to always fail with ENOSYS. Some functions are actually named
3456 something starting with __ and the normal name is an alias. */
3457 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3458 choke me
3459 #else
3460 gethostbyname();
3461 #endif
3463 ; return 0; }
3465 if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3466 rm -rf conftest*
3467 eval "ac_cv_func_gethostbyname=yes"
3468 else
3469 echo "configure: failed program was:" >&5
3470 cat conftest.$ac_ext >&5
3471 rm -rf conftest*
3472 eval "ac_cv_func_gethostbyname=no"
3474 rm -f conftest*
3477 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3478 echo "$ac_t""yes" 1>&6
3480 else
3481 echo "$ac_t""no" 1>&6
3483 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3484 echo "configure:3485: checking for gethostbyname in -lnsl" >&5
3485 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3488 else
3489 ac_save_LIBS="$LIBS"
3490 LIBS="-lnsl $LIBS"
3491 cat > conftest.$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3494 /* Override any gcc2 internal prototype to avoid an error. */
3495 /* We use char because int might match the return type of a gcc2
3496 builtin and then its argument prototype would still apply. */
3497 char gethostbyname();
3499 int main() {
3500 gethostbyname()
3501 ; return 0; }
3503 if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3504 rm -rf conftest*
3505 eval "ac_cv_lib_$ac_lib_var=yes"
3506 else
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3509 rm -rf conftest*
3510 eval "ac_cv_lib_$ac_lib_var=no"
3512 rm -f conftest*
3513 LIBS="$ac_save_LIBS"
3516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3518 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3519 else
3520 echo "$ac_t""no" 1>&6
3526 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3527 echo "configure:3528: checking for gethostbyname" >&5
3528 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3530 else
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 /* System header to define __stub macros and hopefully few prototypes,
3535 which can conflict with char gethostbyname(); below. */
3536 #include <assert.h>
3537 /* Override any gcc2 internal prototype to avoid an error. */
3538 /* We use char because int might match the return type of a gcc2
3539 builtin and then its argument prototype would still apply. */
3540 char gethostbyname();
3542 int main() {
3544 /* The GNU C library defines this for functions which it implements
3545 to always fail with ENOSYS. Some functions are actually named
3546 something starting with __ and the normal name is an alias. */
3547 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3548 choke me
3549 #else
3550 gethostbyname();
3551 #endif
3553 ; return 0; }
3555 if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3556 rm -rf conftest*
3557 eval "ac_cv_func_gethostbyname=yes"
3558 else
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3561 rm -rf conftest*
3562 eval "ac_cv_func_gethostbyname=no"
3564 rm -f conftest*
3567 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3570 else
3571 echo "$ac_t""no" 1>&6
3573 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3574 echo "configure:3575: checking for gethostbyname in -lbind" >&5
3575 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3578 else
3579 ac_save_LIBS="$LIBS"
3580 LIBS="-lbind $LIBS"
3581 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 /* Override any gcc2 internal prototype to avoid an error. */
3585 /* We use char because int might match the return type of a gcc2
3586 builtin and then its argument prototype would still apply. */
3587 char gethostbyname();
3589 int main() {
3590 gethostbyname()
3591 ; return 0; }
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3594 rm -rf conftest*
3595 eval "ac_cv_lib_$ac_lib_var=yes"
3596 else
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 rm -rf conftest*
3600 eval "ac_cv_lib_$ac_lib_var=no"
3602 rm -f conftest*
3603 LIBS="$ac_save_LIBS"
3606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3608 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3609 else
3610 echo "$ac_t""no" 1>&6
3616 for ac_func in nanosleep
3618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3619 echo "configure:3620: checking for $ac_func" >&5
3620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3622 else
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char $ac_func(); below. */
3628 #include <assert.h>
3629 /* Override any gcc2 internal prototype to avoid an error. */
3630 /* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3632 char $ac_func();
3634 int main() {
3636 /* The GNU C library defines this for functions which it implements
3637 to always fail with ENOSYS. Some functions are actually named
3638 something starting with __ and the normal name is an alias. */
3639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3640 choke me
3641 #else
3642 $ac_func();
3643 #endif
3645 ; return 0; }
3647 if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3648 rm -rf conftest*
3649 eval "ac_cv_func_$ac_func=yes"
3650 else
3651 echo "configure: failed program was:" >&5
3652 cat conftest.$ac_ext >&5
3653 rm -rf conftest*
3654 eval "ac_cv_func_$ac_func=no"
3656 rm -f conftest*
3659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3660 echo "$ac_t""yes" 1>&6
3661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3662 cat >> confdefs.h <<EOF
3663 #define $ac_tr_func 1
3666 else
3667 echo "$ac_t""no" 1>&6
3668 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3669 echo "configure:3670: checking for nanosleep in -lrt" >&5
3670 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3673 else
3674 ac_save_LIBS="$LIBS"
3675 LIBS="-lrt $LIBS"
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 /* Override any gcc2 internal prototype to avoid an error. */
3680 /* We use char because int might match the return type of a gcc2
3681 builtin and then its argument prototype would still apply. */
3682 char nanosleep();
3684 int main() {
3685 nanosleep()
3686 ; return 0; }
3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3689 rm -rf conftest*
3690 eval "ac_cv_lib_$ac_lib_var=yes"
3691 else
3692 echo "configure: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3694 rm -rf conftest*
3695 eval "ac_cv_lib_$ac_lib_var=no"
3697 rm -f conftest*
3698 LIBS="$ac_save_LIBS"
3701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3702 echo "$ac_t""yes" 1>&6
3703 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3704 else
3705 echo "$ac_t""no" 1>&6
3706 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3707 echo "configure:3708: checking for nanosleep in -lposix4" >&5
3708 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3711 else
3712 ac_save_LIBS="$LIBS"
3713 LIBS="-lposix4 $LIBS"
3714 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3717 /* Override any gcc2 internal prototype to avoid an error. */
3718 /* We use char because int might match the return type of a gcc2
3719 builtin and then its argument prototype would still apply. */
3720 char nanosleep();
3722 int main() {
3723 nanosleep()
3724 ; return 0; }
3726 if { (eval echo configure:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3727 rm -rf conftest*
3728 eval "ac_cv_lib_$ac_lib_var=yes"
3729 else
3730 echo "configure: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3732 rm -rf conftest*
3733 eval "ac_cv_lib_$ac_lib_var=no"
3735 rm -f conftest*
3736 LIBS="$ac_save_LIBS"
3739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3740 echo "$ac_t""yes" 1>&6
3741 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3742 else
3743 echo "$ac_t""no" 1>&6
3751 done
3753 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3754 echo "configure:3755: checking for inet_aton" >&5
3755 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3757 else
3758 cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 /* System header to define __stub macros and hopefully few prototypes,
3762 which can conflict with char inet_aton(); below. */
3763 #include <assert.h>
3764 /* Override any gcc2 internal prototype to avoid an error. */
3765 /* We use char because int might match the return type of a gcc2
3766 builtin and then its argument prototype would still apply. */
3767 char inet_aton();
3769 int main() {
3771 /* The GNU C library defines this for functions which it implements
3772 to always fail with ENOSYS. Some functions are actually named
3773 something starting with __ and the normal name is an alias. */
3774 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3775 choke me
3776 #else
3777 inet_aton();
3778 #endif
3780 ; return 0; }
3782 if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3783 rm -rf conftest*
3784 eval "ac_cv_func_inet_aton=yes"
3785 else
3786 echo "configure: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3788 rm -rf conftest*
3789 eval "ac_cv_func_inet_aton=no"
3791 rm -f conftest*
3794 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3797 else
3798 echo "$ac_t""no" 1>&6
3800 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3801 echo "configure:3802: checking for inet_aton in -lresolv" >&5
3802 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3805 else
3806 ac_save_LIBS="$LIBS"
3807 LIBS="-lresolv $LIBS"
3808 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3811 /* Override any gcc2 internal prototype to avoid an error. */
3812 /* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3814 char inet_aton();
3816 int main() {
3817 inet_aton()
3818 ; return 0; }
3820 if { (eval echo configure:3821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3821 rm -rf conftest*
3822 eval "ac_cv_lib_$ac_lib_var=yes"
3823 else
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3826 rm -rf conftest*
3827 eval "ac_cv_lib_$ac_lib_var=no"
3829 rm -f conftest*
3830 LIBS="$ac_save_LIBS"
3833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3836 else
3837 echo "$ac_t""no" 1>&6
3843 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3844 echo "configure:3845: checking for textdomain" >&5
3845 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3847 else
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3851 /* System header to define __stub macros and hopefully few prototypes,
3852 which can conflict with char textdomain(); below. */
3853 #include <assert.h>
3854 /* Override any gcc2 internal prototype to avoid an error. */
3855 /* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3857 char textdomain();
3859 int main() {
3861 /* The GNU C library defines this for functions which it implements
3862 to always fail with ENOSYS. Some functions are actually named
3863 something starting with __ and the normal name is an alias. */
3864 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3865 choke me
3866 #else
3867 textdomain();
3868 #endif
3870 ; return 0; }
3872 if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3873 rm -rf conftest*
3874 eval "ac_cv_func_textdomain=yes"
3875 else
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3878 rm -rf conftest*
3879 eval "ac_cv_func_textdomain=no"
3881 rm -f conftest*
3884 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3885 echo "$ac_t""yes" 1>&6
3887 else
3888 echo "$ac_t""no" 1>&6
3890 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3891 echo "configure:3892: checking for textdomain in -lintl" >&5
3892 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3895 else
3896 ac_save_LIBS="$LIBS"
3897 LIBS="-lintl $LIBS"
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3901 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3904 char textdomain();
3906 int main() {
3907 textdomain()
3908 ; return 0; }
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 rm -rf conftest*
3912 eval "ac_cv_lib_$ac_lib_var=yes"
3913 else
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 rm -rf conftest*
3917 eval "ac_cv_lib_$ac_lib_var=no"
3919 rm -f conftest*
3920 LIBS="$ac_save_LIBS"
3923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3924 echo "$ac_t""yes" 1>&6
3925 save_LDFLAGS="${save_LDFLAGS} -lintl"
3926 else
3927 echo "$ac_t""no" 1>&6
3934 NEED_GETOPT=0
3935 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3936 echo "configure:3937: checking for getopt_long" >&5
3937 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3939 else
3940 cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 /* System header to define __stub macros and hopefully few prototypes,
3944 which can conflict with char getopt_long(); below. */
3945 #include <assert.h>
3946 /* Override any gcc2 internal prototype to avoid an error. */
3947 /* We use char because int might match the return type of a gcc2
3948 builtin and then its argument prototype would still apply. */
3949 char getopt_long();
3951 int main() {
3953 /* The GNU C library defines this for functions which it implements
3954 to always fail with ENOSYS. Some functions are actually named
3955 something starting with __ and the normal name is an alias. */
3956 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3957 choke me
3958 #else
3959 getopt_long();
3960 #endif
3962 ; return 0; }
3964 if { (eval echo configure:3965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3965 rm -rf conftest*
3966 eval "ac_cv_func_getopt_long=yes"
3967 else
3968 echo "configure: failed program was:" >&5
3969 cat conftest.$ac_ext >&5
3970 rm -rf conftest*
3971 eval "ac_cv_func_getopt_long=no"
3973 rm -f conftest*
3976 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3977 echo "$ac_t""yes" 1>&6
3978 cat >> confdefs.h <<\EOF
3979 #define HAVE_GETOPT_LONG 1
3982 else
3983 echo "$ac_t""no" 1>&6
3984 # FreeBSD has a gnugetopt library for this:
3985 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3986 echo "configure:3987: checking for getopt_long in -lgnugetopt" >&5
3987 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3990 else
3991 ac_save_LIBS="$LIBS"
3992 LIBS="-lgnugetopt $LIBS"
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996 /* Override any gcc2 internal prototype to avoid an error. */
3997 /* We use char because int might match the return type of a gcc2
3998 builtin and then its argument prototype would still apply. */
3999 char getopt_long();
4001 int main() {
4002 getopt_long()
4003 ; return 0; }
4005 if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4006 rm -rf conftest*
4007 eval "ac_cv_lib_$ac_lib_var=yes"
4008 else
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4011 rm -rf conftest*
4012 eval "ac_cv_lib_$ac_lib_var=no"
4014 rm -f conftest*
4015 LIBS="$ac_save_LIBS"
4018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4019 echo "$ac_t""yes" 1>&6
4020 cat >> confdefs.h <<\EOF
4021 #define HAVE_GETOPT_LONG 1
4023 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4024 else
4025 echo "$ac_t""no" 1>&6
4026 NEED_GETOPT=1
4032 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4033 echo "configure:4034: checking return type of signal handlers" >&5
4034 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4036 else
4037 cat > conftest.$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4040 #include <sys/types.h>
4041 #include <signal.h>
4042 #ifdef signal
4043 #undef signal
4044 #endif
4045 #ifdef __cplusplus
4046 extern "C" void (*signal (int, void (*)(int)))(int);
4047 #else
4048 void (*signal ()) ();
4049 #endif
4051 int main() {
4052 int i;
4053 ; return 0; }
4055 if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4056 rm -rf conftest*
4057 ac_cv_type_signal=void
4058 else
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 rm -rf conftest*
4062 ac_cv_type_signal=int
4064 rm -f conftest*
4067 echo "$ac_t""$ac_cv_type_signal" 1>&6
4068 cat >> confdefs.h <<EOF
4069 #define RETSIGTYPE $ac_cv_type_signal
4073 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4074 echo "configure:4075: checking for dlopen in -ldl" >&5
4075 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4078 else
4079 ac_save_LIBS="$LIBS"
4080 LIBS="-ldl $LIBS"
4081 cat > conftest.$ac_ext <<EOF
4082 #line 4083 "configure"
4083 #include "confdefs.h"
4084 /* Override any gcc2 internal prototype to avoid an error. */
4085 /* We use char because int might match the return type of a gcc2
4086 builtin and then its argument prototype would still apply. */
4087 char dlopen();
4089 int main() {
4090 dlopen()
4091 ; return 0; }
4093 if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4094 rm -rf conftest*
4095 eval "ac_cv_lib_$ac_lib_var=yes"
4096 else
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4099 rm -rf conftest*
4100 eval "ac_cv_lib_$ac_lib_var=no"
4102 rm -f conftest*
4103 LIBS="$ac_save_LIBS"
4106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4107 echo "$ac_t""yes" 1>&6
4108 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4109 else
4110 echo "$ac_t""no" 1>&6
4113 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4114 echo "configure:4115: checking for cos in -lm" >&5
4115 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4118 else
4119 ac_save_LIBS="$LIBS"
4120 LIBS="-lm $LIBS"
4121 cat > conftest.$ac_ext <<EOF
4122 #line 4123 "configure"
4123 #include "confdefs.h"
4124 /* Override any gcc2 internal prototype to avoid an error. */
4125 /* We use char because int might match the return type of a gcc2
4126 builtin and then its argument prototype would still apply. */
4127 char cos();
4129 int main() {
4130 cos()
4131 ; return 0; }
4133 if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4134 rm -rf conftest*
4135 eval "ac_cv_lib_$ac_lib_var=yes"
4136 else
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4139 rm -rf conftest*
4140 eval "ac_cv_lib_$ac_lib_var=no"
4142 rm -f conftest*
4143 LIBS="$ac_save_LIBS"
4146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4147 echo "$ac_t""yes" 1>&6
4148 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4149 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4150 else
4151 echo "$ac_t""no" 1>&6
4154 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4155 echo "configure:4156: checking for pow in -lm" >&5
4156 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4159 else
4160 ac_save_LIBS="$LIBS"
4161 LIBS="-lm $LIBS"
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 /* Override any gcc2 internal prototype to avoid an error. */
4166 /* We use char because int might match the return type of a gcc2
4167 builtin and then its argument prototype would still apply. */
4168 char pow();
4170 int main() {
4171 pow()
4172 ; return 0; }
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4175 rm -rf conftest*
4176 eval "ac_cv_lib_$ac_lib_var=yes"
4177 else
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4180 rm -rf conftest*
4181 eval "ac_cv_lib_$ac_lib_var=no"
4183 rm -f conftest*
4184 LIBS="$ac_save_LIBS"
4187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4188 echo "$ac_t""yes" 1>&6
4189 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4190 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4191 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4192 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4194 else
4195 echo "$ac_t""no" 1>&6
4199 THREAD_LIB=error
4200 if test "x${THREAD_LIB}" = xerror; then
4201 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4202 echo "configure:4203: checking for pthread_attr_init in -lpthread" >&5
4203 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4206 else
4207 ac_save_LIBS="$LIBS"
4208 LIBS="-lpthread $LIBS"
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4212 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4215 char pthread_attr_init();
4217 int main() {
4218 pthread_attr_init()
4219 ; return 0; }
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4222 rm -rf conftest*
4223 eval "ac_cv_lib_$ac_lib_var=yes"
4224 else
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4227 rm -rf conftest*
4228 eval "ac_cv_lib_$ac_lib_var=no"
4230 rm -f conftest*
4231 LIBS="$ac_save_LIBS"
4234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4235 echo "$ac_t""yes" 1>&6
4236 THREAD_LIB="-lpthread"
4237 else
4238 echo "$ac_t""no" 1>&6
4242 if test "x${THREAD_LIB}" = xerror; then
4243 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4244 echo "configure:4245: checking for pthread_attr_init in -lpthreads" >&5
4245 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4248 else
4249 ac_save_LIBS="$LIBS"
4250 LIBS="-lpthreads $LIBS"
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 /* Override any gcc2 internal prototype to avoid an error. */
4255 /* We use char because int might match the return type of a gcc2
4256 builtin and then its argument prototype would still apply. */
4257 char pthread_attr_init();
4259 int main() {
4260 pthread_attr_init()
4261 ; return 0; }
4263 if { (eval echo configure:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4264 rm -rf conftest*
4265 eval "ac_cv_lib_$ac_lib_var=yes"
4266 else
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 rm -rf conftest*
4270 eval "ac_cv_lib_$ac_lib_var=no"
4272 rm -f conftest*
4273 LIBS="$ac_save_LIBS"
4276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4277 echo "$ac_t""yes" 1>&6
4278 THREAD_LIB="-lpthreads"
4279 else
4280 echo "$ac_t""no" 1>&6
4284 if test "x${THREAD_LIB}" = xerror; then
4285 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4286 echo "configure:4287: checking for pthread_attr_init in -lc_r" >&5
4287 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4290 else
4291 ac_save_LIBS="$LIBS"
4292 LIBS="-lc_r $LIBS"
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4299 char pthread_attr_init();
4301 int main() {
4302 pthread_attr_init()
4303 ; return 0; }
4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4306 rm -rf conftest*
4307 eval "ac_cv_lib_$ac_lib_var=yes"
4308 else
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4311 rm -rf conftest*
4312 eval "ac_cv_lib_$ac_lib_var=no"
4314 rm -f conftest*
4315 LIBS="$ac_save_LIBS"
4318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 THREAD_LIB="-lc_r"
4321 else
4322 echo "$ac_t""no" 1>&6
4326 if test "x${THREAD_LIB}" = xerror; then
4327 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4328 echo "configure:4329: checking for pthread_attr_init" >&5
4329 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4331 else
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 /* System header to define __stub macros and hopefully few prototypes,
4336 which can conflict with char pthread_attr_init(); below. */
4337 #include <assert.h>
4338 /* Override any gcc2 internal prototype to avoid an error. */
4339 /* We use char because int might match the return type of a gcc2
4340 builtin and then its argument prototype would still apply. */
4341 char pthread_attr_init();
4343 int main() {
4345 /* The GNU C library defines this for functions which it implements
4346 to always fail with ENOSYS. Some functions are actually named
4347 something starting with __ and the normal name is an alias. */
4348 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4349 choke me
4350 #else
4351 pthread_attr_init();
4352 #endif
4354 ; return 0; }
4356 if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4357 rm -rf conftest*
4358 eval "ac_cv_func_pthread_attr_init=yes"
4359 else
4360 echo "configure: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4362 rm -rf conftest*
4363 eval "ac_cv_func_pthread_attr_init=no"
4365 rm -f conftest*
4368 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4369 echo "$ac_t""yes" 1>&6
4371 else
4372 echo "$ac_t""no" 1>&6
4375 THREAD_LIB=""
4378 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4379 echo "configure:4380: checking for cthread_fork in -lthreads" >&5
4380 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4383 else
4384 ac_save_LIBS="$LIBS"
4385 LIBS="-lthreads $LIBS"
4386 cat > conftest.$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4389 /* Override any gcc2 internal prototype to avoid an error. */
4390 /* We use char because int might match the return type of a gcc2
4391 builtin and then its argument prototype would still apply. */
4392 char cthread_fork();
4394 int main() {
4395 cthread_fork()
4396 ; return 0; }
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4399 rm -rf conftest*
4400 eval "ac_cv_lib_$ac_lib_var=yes"
4401 else
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4404 rm -rf conftest*
4405 eval "ac_cv_lib_$ac_lib_var=no"
4407 rm -f conftest*
4408 LIBS="$ac_save_LIBS"
4411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4412 echo "$ac_t""yes" 1>&6
4413 THREAD_LIB="-lthreads"
4414 else
4415 echo "$ac_t""no" 1>&6
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 #include <pthread.h>
4424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4425 egrep "pthread_cond_t" >/dev/null 2>&1; then
4426 rm -rf conftest*
4428 cat >> confdefs.h <<\EOF
4429 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4433 rm -f conftest*
4435 cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4438 #include <strings.h>
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 egrep "strncasecmp" >/dev/null 2>&1; then
4442 rm -rf conftest*
4444 cat >> confdefs.h <<\EOF
4445 #define STRNCASECMP_IN_STRINGS_H 1
4449 rm -f conftest*
4452 for ac_hdr in getopt.h strings.h
4454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4456 echo "configure:4457: checking for $ac_hdr" >&5
4457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4459 else
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 #include <$ac_hdr>
4465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4466 { (eval echo configure:4467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4468 if test -z "$ac_err"; then
4469 rm -rf conftest*
4470 eval "ac_cv_header_$ac_safe=yes"
4471 else
4472 echo "$ac_err" >&5
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4475 rm -rf conftest*
4476 eval "ac_cv_header_$ac_safe=no"
4478 rm -f conftest*
4480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4483 cat >> confdefs.h <<EOF
4484 #define $ac_tr_hdr 1
4487 else
4488 echo "$ac_t""no" 1>&6
4490 done
4492 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4496 echo "configure:4497: checking for $ac_hdr" >&5
4497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4499 else
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4503 #include <$ac_hdr>
4505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4506 { (eval echo configure:4507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4508 if test -z "$ac_err"; then
4509 rm -rf conftest*
4510 eval "ac_cv_header_$ac_safe=yes"
4511 else
4512 echo "$ac_err" >&5
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4515 rm -rf conftest*
4516 eval "ac_cv_header_$ac_safe=no"
4518 rm -f conftest*
4520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4521 echo "$ac_t""yes" 1>&6
4522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4523 cat >> confdefs.h <<EOF
4524 #define $ac_tr_hdr 1
4527 else
4528 echo "$ac_t""no" 1>&6
4530 done
4532 for ac_hdr in dlfcn.h image.h
4534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4536 echo "configure:4537: checking for $ac_hdr" >&5
4537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4539 else
4540 cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4543 #include <$ac_hdr>
4545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4546 { (eval echo configure:4547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4548 if test -z "$ac_err"; then
4549 rm -rf conftest*
4550 eval "ac_cv_header_$ac_safe=yes"
4551 else
4552 echo "$ac_err" >&5
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4555 rm -rf conftest*
4556 eval "ac_cv_header_$ac_safe=no"
4558 rm -f conftest*
4560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4563 cat >> confdefs.h <<EOF
4564 #define $ac_tr_hdr 1
4567 else
4568 echo "$ac_t""no" 1>&6
4570 done
4572 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4576 echo "configure:4577: checking for $ac_hdr" >&5
4577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4579 else
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4583 #include <$ac_hdr>
4585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4586 { (eval echo configure:4587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4588 if test -z "$ac_err"; then
4589 rm -rf conftest*
4590 eval "ac_cv_header_$ac_safe=yes"
4591 else
4592 echo "$ac_err" >&5
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4595 rm -rf conftest*
4596 eval "ac_cv_header_$ac_safe=no"
4598 rm -f conftest*
4600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4601 echo "$ac_t""yes" 1>&6
4602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4603 cat >> confdefs.h <<EOF
4604 #define $ac_tr_hdr 1
4607 else
4608 echo "$ac_t""no" 1>&6
4610 done
4612 for ac_hdr in machine/param.h sys/shm.h
4614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4616 echo "configure:4617: checking for $ac_hdr" >&5
4617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4619 else
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 #include <$ac_hdr>
4625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4626 { (eval echo configure:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4628 if test -z "$ac_err"; then
4629 rm -rf conftest*
4630 eval "ac_cv_header_$ac_safe=yes"
4631 else
4632 echo "$ac_err" >&5
4633 echo "configure: failed program was:" >&5
4634 cat conftest.$ac_ext >&5
4635 rm -rf conftest*
4636 eval "ac_cv_header_$ac_safe=no"
4638 rm -f conftest*
4640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4643 cat >> confdefs.h <<EOF
4644 #define $ac_tr_hdr 1
4647 else
4648 echo "$ac_t""no" 1>&6
4650 done
4652 for ac_hdr in linux/version.h
4654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4656 echo "configure:4657: checking for $ac_hdr" >&5
4657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4659 else
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 #include <$ac_hdr>
4665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4666 { (eval echo configure:4667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4668 if test -z "$ac_err"; then
4669 rm -rf conftest*
4670 eval "ac_cv_header_$ac_safe=yes"
4671 else
4672 echo "$ac_err" >&5
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 rm -rf conftest*
4676 eval "ac_cv_header_$ac_safe=no"
4678 rm -f conftest*
4680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4683 cat >> confdefs.h <<EOF
4684 #define $ac_tr_hdr 1
4687 else
4688 echo "$ac_t""no" 1>&6
4690 done
4693 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4694 echo "configure:4695: checking whether time.h and sys/time.h may both be included" >&5
4695 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4697 else
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4701 #include <sys/types.h>
4702 #include <sys/time.h>
4703 #include <time.h>
4704 int main() {
4705 struct tm *tp;
4706 ; return 0; }
4708 if { (eval echo configure:4709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4709 rm -rf conftest*
4710 ac_cv_header_time=yes
4711 else
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4714 rm -rf conftest*
4715 ac_cv_header_time=no
4717 rm -f conftest*
4720 echo "$ac_t""$ac_cv_header_time" 1>&6
4721 if test $ac_cv_header_time = yes; then
4722 cat >> confdefs.h <<\EOF
4723 #define TIME_WITH_SYS_TIME 1
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4732 #include <time.h>
4734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4735 egrep "nanosleep" >/dev/null 2>&1; then
4736 rm -rf conftest*
4738 cat >> confdefs.h <<\EOF
4739 #define HAVE_DECL_NANOSLEEP 1
4744 rm -f conftest*
4747 cat > conftest.$ac_ext <<EOF
4748 #line 4749 "configure"
4749 #include "confdefs.h"
4750 #include <sys/time.h>
4752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753 egrep "timespec" >/dev/null 2>&1; then
4754 rm -rf conftest*
4756 cat >> confdefs.h <<\EOF
4757 #define HAVE_STRUCT_TIMESPEC 1
4762 rm -f conftest*
4765 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4769 echo "configure:4770: checking for $ac_hdr" >&5
4770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4772 else
4773 cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4776 #include <$ac_hdr>
4778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4779 { (eval echo configure:4780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4781 if test -z "$ac_err"; then
4782 rm -rf conftest*
4783 eval "ac_cv_header_$ac_safe=yes"
4784 else
4785 echo "$ac_err" >&5
4786 echo "configure: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
4788 rm -rf conftest*
4789 eval "ac_cv_header_$ac_safe=no"
4791 rm -f conftest*
4793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4794 echo "$ac_t""yes" 1>&6
4795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4796 cat >> confdefs.h <<EOF
4797 #define $ac_tr_hdr 1
4800 else
4801 echo "$ac_t""no" 1>&6
4803 done
4806 if test x$SYS != xmingw32
4807 then
4808 if test x$x_includes = xNONE; then
4809 x_includes=/usr/X11R6/include
4811 if test x$x_libraries = xNONE; then
4812 x_libraries=/usr/X11R6/lib
4814 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4815 for ac_hdr in X11/extensions/dpms.h
4817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4819 echo "configure:4820: checking for $ac_hdr" >&5
4820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4822 else
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4826 #include <$ac_hdr>
4828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4829 { (eval echo configure:4830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4831 if test -z "$ac_err"; then
4832 rm -rf conftest*
4833 eval "ac_cv_header_$ac_safe=yes"
4834 else
4835 echo "$ac_err" >&5
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4838 rm -rf conftest*
4839 eval "ac_cv_header_$ac_safe=no"
4841 rm -f conftest*
4843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4846 cat >> confdefs.h <<EOF
4847 #define $ac_tr_hdr 1
4850 cat > conftest.$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4853 #include <X11/extensions/dpms.h>
4855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4856 egrep "DPMSInfo" >/dev/null 2>&1; then
4857 rm -rf conftest*
4859 cat >> confdefs.h <<\EOF
4860 #define DPMSINFO_IN_DPMS_H 1
4865 rm -f conftest*
4868 else
4869 echo "$ac_t""no" 1>&6
4871 done
4873 CPPFLAGS="$save_CPPFLAGS"
4876 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4877 echo "configure:4878: checking for ntohl in sys/param.h" >&5
4878 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4880 else
4881 CFLAGS="${save_CFLAGS} -Wall -Werror"
4882 cat > conftest.$ac_ext <<EOF
4883 #line 4884 "configure"
4884 #include "confdefs.h"
4885 #include <sys/param.h>
4886 int main() {
4887 void foo() { int meuh; ntohl(meuh); }
4888 ; return 0; }
4890 if { (eval echo configure:4891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4891 rm -rf conftest*
4892 ac_cv_c_ntohl_sys_param_h=yes
4893 else
4894 echo "configure: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4896 rm -rf conftest*
4897 ac_cv_c_ntohl_sys_param_h=no
4899 rm -f conftest*
4902 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4903 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4904 cat >> confdefs.h <<\EOF
4905 #define NTOHL_IN_SYS_PARAM_H 1
4910 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4911 echo "configure:4912: checking if \$CC accepts -finline-limit" >&5
4912 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4914 else
4915 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4916 cat > conftest.$ac_ext <<EOF
4917 #line 4918 "configure"
4918 #include "confdefs.h"
4920 int main() {
4922 ; return 0; }
4924 if { (eval echo configure:4925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4925 rm -rf conftest*
4926 ac_cv_c_inline_limit=yes
4927 else
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4930 rm -rf conftest*
4931 ac_cv_c_inline_limit=no
4933 rm -f conftest*
4936 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4937 if test x"$ac_cv_c_inline_limit" != x"no"; then
4938 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4941 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4942 echo "configure:4943: checking if \$CC accepts -Wall -Winline" >&5
4943 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4945 else
4946 CFLAGS="${save_CFLAGS} -Wall -Winline"
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4951 int main() {
4953 ; return 0; }
4955 if { (eval echo configure:4956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4956 rm -rf conftest*
4957 ac_cv_c_Wall_Winline=yes
4958 else
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4961 rm -rf conftest*
4962 ac_cv_c_Wall_Winline=no
4964 rm -f conftest*
4967 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4968 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4969 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4970 else
4971 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4972 echo "configure:4973: checking if \$CC accepts -wall -winline" >&5
4973 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4975 else
4976 CFLAGS="${save_CFLAGS} -wall -winline"
4977 cat > conftest.$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4981 int main() {
4983 ; return 0; }
4985 if { (eval echo configure:4986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4986 rm -rf conftest*
4987 ac_cv_c_wall_winline=yes
4988 else
4989 echo "configure: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4991 rm -rf conftest*
4992 ac_cv_c_wall_winline=no
4994 rm -f conftest*
4997 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4998 if test x"$ac_cv_c_wall_winline" != x"no"; then
4999 save_CFLAGS="${save_CFLAGS} -wall -winline"
5003 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5004 echo "configure:5005: checking if \$CC accepts -pipe" >&5
5005 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5007 else
5008 CFLAGS="${save_CFLAGS} -pipe"
5009 cat > conftest.$ac_ext <<EOF
5010 #line 5011 "configure"
5011 #include "confdefs.h"
5013 int main() {
5015 ; return 0; }
5017 if { (eval echo configure:5018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5018 rm -rf conftest*
5019 ac_cv_c_pipe=yes
5020 else
5021 echo "configure: failed program was:" >&5
5022 cat conftest.$ac_ext >&5
5023 rm -rf conftest*
5024 ac_cv_c_pipe=no
5026 rm -f conftest*
5029 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5030 if test x"$ac_cv_c_pipe" != x"no"; then
5031 save_CFLAGS="${save_CFLAGS} -pipe"
5034 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5035 echo "configure:5036: checking if \$CC accepts -O3" >&5
5036 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5038 else
5039 CFLAGS="${save_CFLAGS} -O3"
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5044 int main() {
5046 ; return 0; }
5048 if { (eval echo configure:5049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5049 rm -rf conftest*
5050 ac_cv_c_o3=yes
5051 else
5052 echo "configure: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5054 rm -rf conftest*
5055 ac_cv_c_o3=no
5057 rm -f conftest*
5060 echo "$ac_t""$ac_cv_c_o3" 1>&6
5061 if test x"$ac_cv_c_o3" != x"no"; then
5062 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5063 else
5064 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5065 echo "configure:5066: checking if \$CC accepts -O2" >&5
5066 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5068 else
5069 CFLAGS="${save_CFLAGS} -O2"
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5074 int main() {
5076 ; return 0; }
5078 if { (eval echo configure:5079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5079 rm -rf conftest*
5080 ac_cv_c_o2=yes
5081 else
5082 echo "configure: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5084 rm -rf conftest*
5085 ac_cv_c_o2=no
5087 rm -f conftest*
5090 echo "$ac_t""$ac_cv_c_o2" 1>&6
5091 if test x"$ac_cv_c_o2" != x"no"; then
5092 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5093 else
5094 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5095 echo "configure:5096: checking if \$CC accepts -O" >&5
5096 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5098 else
5099 CFLAGS="${save_CFLAGS} -O"
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5104 int main() {
5106 ; return 0; }
5108 if { (eval echo configure:5109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5109 rm -rf conftest*
5110 ac_cv_c_o=yes
5111 else
5112 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5114 rm -rf conftest*
5115 ac_cv_c_o=no
5117 rm -f conftest*
5120 echo "$ac_t""$ac_cv_c_o" 1>&6
5121 if test x"$ac_cv_c_o" != x"no"; then
5122 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5127 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5128 echo "configure:5129: checking if \$CC accepts -ffast-math" >&5
5129 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5131 else
5132 CFLAGS="${save_CFLAGS} -ffast-math"
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5137 int main() {
5139 ; return 0; }
5141 if { (eval echo configure:5142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5142 rm -rf conftest*
5143 ac_cv_c_fast_math=yes
5144 else
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 rm -rf conftest*
5148 ac_cv_c_fast_math=no
5150 rm -f conftest*
5153 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5154 if test x"$ac_cv_c_fast_math" != x"no"; then
5155 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5158 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5159 echo "configure:5160: checking if \$CC accepts -funroll-loops" >&5
5160 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5161 echo $ac_n "(cached) $ac_c" 1>&6
5162 else
5163 CFLAGS="${save_CFLAGS} -funroll-loops"
5164 cat > conftest.$ac_ext <<EOF
5165 #line 5166 "configure"
5166 #include "confdefs.h"
5168 int main() {
5170 ; return 0; }
5172 if { (eval echo configure:5173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5173 rm -rf conftest*
5174 ac_cv_c_unroll_loops=yes
5175 else
5176 echo "configure: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5178 rm -rf conftest*
5179 ac_cv_c_unroll_loops=no
5181 rm -f conftest*
5184 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5185 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5186 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5189 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5190 echo "configure:5191: checking if \$CC accepts -fomit-frame-pointer" >&5
5191 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5192 echo $ac_n "(cached) $ac_c" 1>&6
5193 else
5194 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5195 cat > conftest.$ac_ext <<EOF
5196 #line 5197 "configure"
5197 #include "confdefs.h"
5199 int main() {
5201 ; return 0; }
5203 if { (eval echo configure:5204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5204 rm -rf conftest*
5205 ac_cv_c_omit_frame_pointer=yes
5206 else
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5209 rm -rf conftest*
5210 ac_cv_c_omit_frame_pointer=no
5212 rm -f conftest*
5215 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5216 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5217 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5220 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5221 echo "configure:5222: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5222 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5224 else
5225 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5226 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5230 int main() {
5232 ; return 0; }
5234 if { (eval echo configure:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5235 rm -rf conftest*
5236 ac_cv_ld_darwin=yes
5237 else
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5240 rm -rf conftest*
5241 ac_cv_ld_darwin=no
5243 rm -f conftest*
5246 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5247 if test x"$ac_cv_ld_darwin" != x"no"; then
5248 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5251 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5252 echo "configure:5253: checking if \$CC accepts -shared" >&5
5253 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5255 else
5256 CFLAGS="${save_CFLAGS} -shared"
5257 cat > conftest.$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5261 int main() {
5263 ; return 0; }
5265 if { (eval echo configure:5266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5266 rm -rf conftest*
5267 ac_cv_ld_plugins=yes
5268 else
5269 echo "configure: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5271 rm -rf conftest*
5272 ac_cv_ld_plugins=no
5274 rm -f conftest*
5277 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5278 if test x"$ac_cv_ld_plugins" != x"no"; then
5279 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5282 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5283 echo "configure:5284: checking for variadic cpp macros" >&5
5284 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5286 else
5287 CFLAGS="${save_CFLAGS}"
5288 cat > conftest.$ac_ext <<EOF
5289 #line 5290 "configure"
5290 #include "confdefs.h"
5291 #include <stdio.h>
5292 #define a(b,c...) printf(b,##c)
5293 int main() {
5294 a("foo");a("%s","bar");a("%s%s","baz","quux");
5295 ; return 0; }
5297 if { (eval echo configure:5298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5298 rm -rf conftest*
5299 ac_cv_cpp_variadic_macros=yes
5300 else
5301 echo "configure: failed program was:" >&5
5302 cat conftest.$ac_ext >&5
5303 rm -rf conftest*
5304 ac_cv_cpp_variadic_macros=no
5306 rm -f conftest*
5309 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5310 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5311 cat >> confdefs.h <<\EOF
5312 #define HAVE_VARIADIC_MACROS 1
5317 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5318 echo "configure:5319: checking __attribute__ ((aligned ())) support" >&5
5319 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5321 else
5322 ac_cv_c_attribute_aligned=0
5323 CFLAGS="${save_CFLAGS} -Werror"
5324 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5329 int main() {
5330 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5331 ; return 0; }
5333 if { (eval echo configure:5334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5334 rm -rf conftest*
5335 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5336 else
5337 echo "configure: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5340 rm -f conftest*
5341 done
5344 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5345 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5346 cat >> confdefs.h <<EOF
5347 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5352 CFLAGS="${save_CFLAGS}"
5353 CPPFLAGS="${save_CPPFLAGS}"
5354 LDFLAGS="${save_LDFLAGS}"
5356 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5357 echo "configure:5358: checking for boolean_t in sys/types.h" >&5
5358 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5359 echo $ac_n "(cached) $ac_c" 1>&6
5360 else
5361 cat > conftest.$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5364 #include <sys/types.h>
5365 int main() {
5366 boolean_t foo;
5367 ; return 0; }
5369 if { (eval echo configure:5370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5370 rm -rf conftest*
5371 ac_cv_c_boolean_t_sys_types_h=yes
5372 else
5373 echo "configure: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5375 rm -rf conftest*
5376 ac_cv_c_boolean_t_sys_types_h=no
5378 rm -f conftest*
5381 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5382 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5383 cat >> confdefs.h <<\EOF
5384 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5389 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5390 echo "configure:5391: checking for boolean_t in pthread.h" >&5
5391 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5393 else
5394 cat > conftest.$ac_ext <<EOF
5395 #line 5396 "configure"
5396 #include "confdefs.h"
5397 #include <pthread.h>
5398 int main() {
5399 boolean_t foo;
5400 ; return 0; }
5402 if { (eval echo configure:5403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5403 rm -rf conftest*
5404 ac_cv_c_boolean_t_pthread_h=yes
5405 else
5406 echo "configure: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5408 rm -rf conftest*
5409 ac_cv_c_boolean_t_pthread_h=no
5411 rm -f conftest*
5414 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5415 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5416 cat >> confdefs.h <<\EOF
5417 #define BOOLEAN_T_IN_PTHREAD_H 1
5422 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5423 echo "configure:5424: checking for boolean_t in cthreads.h" >&5
5424 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5426 else
5427 cat > conftest.$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 #include <cthreads.h>
5431 int main() {
5432 boolean_t foo;
5433 ; return 0; }
5435 if { (eval echo configure:5436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5436 rm -rf conftest*
5437 ac_cv_c_boolean_t_cthreads_h=yes
5438 else
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5441 rm -rf conftest*
5442 ac_cv_c_boolean_t_cthreads_h=no
5444 rm -f conftest*
5447 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5448 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5449 cat >> confdefs.h <<\EOF
5450 #define BOOLEAN_T_IN_CTHREADS_H 1
5455 case x"${target_cpu}" in
5457 ARCH=unknown
5460 ARCH="${target_cpu}"
5462 esac
5464 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
5465 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone fx_scope"
5467 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5468 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5469 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5470 SSE_MODULES="imdctsse downmixsse"
5471 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5473 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5474 echo "configure:5475: checking if \$CC groks MMX inline assembly" >&5
5475 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5477 else
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5482 int main() {
5483 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5484 ; return 0; }
5486 if { (eval echo configure:5487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5487 rm -rf conftest*
5488 ac_cv_mmx_inline=yes
5489 else
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5492 rm -rf conftest*
5493 ac_cv_mmx_inline=no
5495 rm -f conftest*
5498 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5499 if test x"$ac_cv_mmx_inline" != x"no"; then
5500 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5503 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5504 echo "configure:5505: checking if \$CC groks MMX EXT inline assembly" >&5
5505 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5506 echo $ac_n "(cached) $ac_c" 1>&6
5507 else
5508 cat > conftest.$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5512 int main() {
5513 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5514 ; return 0; }
5516 if { (eval echo configure:5517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5517 rm -rf conftest*
5518 ac_cv_mmxext_inline=yes
5519 else
5520 echo "configure: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5522 rm -rf conftest*
5523 ac_cv_mmxext_inline=no
5525 rm -f conftest*
5528 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5529 if test x"$ac_cv_mmxext_inline" != x"no"; then
5530 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5533 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5534 echo "configure:5535: checking if \$CC groks 3D Now! inline assembly" >&5
5535 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5536 echo $ac_n "(cached) $ac_c" 1>&6
5537 else
5538 cat > conftest.$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5542 int main() {
5543 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5544 ; return 0; }
5546 if { (eval echo configure:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5547 rm -rf conftest*
5548 ac_cv_3dnow_inline=yes
5549 else
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5552 rm -rf conftest*
5553 ac_cv_3dnow_inline=no
5555 rm -f conftest*
5558 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5559 if test x"$ac_cv_3dnow_inline" != x"no"; then
5560 cat >> confdefs.h <<\EOF
5561 #define CAN_COMPILE_3DNOW 1
5564 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5567 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5568 echo "configure:5569: checking if \$CC groks SSE inline assembly" >&5
5569 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5571 else
5572 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5576 int main() {
5577 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5578 ; return 0; }
5580 if { (eval echo configure:5581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5581 rm -rf conftest*
5582 ac_cv_sse_inline=yes
5583 else
5584 echo "configure: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5586 rm -rf conftest*
5587 ac_cv_sse_inline=no
5589 rm -f conftest*
5592 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5593 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5594 cat >> confdefs.h <<\EOF
5595 #define CAN_COMPILE_SSE 1
5598 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5601 # don't try to grok altivec with native mingw32 it doesn't work right now
5602 # we should be able to remove this test with future versions of mingw32
5603 if test x$SYS != xmingw32; then
5604 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5605 echo "configure:5606: checking if \$CC groks Altivec inline assembly" >&5
5606 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5608 else
5609 cat > conftest.$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5613 int main() {
5614 asm volatile("vperm 0,1,2,3");
5615 ; return 0; }
5617 if { (eval echo configure:5618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5618 rm -rf conftest*
5619 ac_cv_altivec_inline=yes
5620 else
5621 echo "configure: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5623 rm -rf conftest*
5624 save_CFLAGS=$CFLAGS
5625 CFLAGS="$CFLAGS -Wa,-m7400"
5626 cat > conftest.$ac_ext <<EOF
5627 #line 5628 "configure"
5628 #include "confdefs.h"
5630 int main() {
5631 asm volatile("vperm 0,1,2,3");
5632 ; return 0; }
5634 if { (eval echo configure:5635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5635 rm -rf conftest*
5636 ac_cv_altivec_inline="-Wa,-m7400"
5637 else
5638 echo "configure: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5640 rm -rf conftest*
5641 ac_cv_altivec_inline=no
5643 rm -f conftest*
5644 CFLAGS=$save_CFLAGS
5647 rm -f conftest*
5650 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5651 if test x"$ac_cv_altivec_inline" != x"no"; then
5652 cat >> confdefs.h <<\EOF
5653 #define CAN_COMPILE_ALTIVEC 1
5656 if test x"$ac_cv_altivec_inline" != x"yes"; then
5657 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5658 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5659 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5660 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5662 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5665 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5666 echo "configure:5667: checking if \$CC groks Altivec C extensions" >&5
5667 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5669 else
5670 save_CFLAGS=$CFLAGS
5671 CFLAGS="$CFLAGS -faltivec"
5672 # Darwin test
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5677 int main() {
5678 vec_mtvscr((vector unsigned int)(0));
5679 ; return 0; }
5681 if { (eval echo configure:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5682 rm -rf conftest*
5683 ac_cv_c_altivec=-faltivec
5684 else
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5687 rm -rf conftest*
5689 # Linux/PPC test
5690 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5695 int main() {
5696 vec_mtvscr((vector unsigned int)(0));
5697 ; return 0; }
5699 if { (eval echo configure:5700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5700 rm -rf conftest*
5701 ac_cv_c_altivec="-fvec"
5702 else
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5705 rm -rf conftest*
5706 ac_cv_c_altivec=no
5708 rm -f conftest*
5711 rm -f conftest*
5712 CFLAGS=$save_CFLAGS
5716 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5717 if test x"$ac_cv_c_altivec" != x"no"; then
5718 cat >> confdefs.h <<\EOF
5719 #define CAN_COMPILE_C_ALTIVEC 1
5722 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5723 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5724 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5725 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5726 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5729 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5730 echo "configure:5731: checking if linker needs -framework vecLib" >&5
5731 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5733 else
5734 save_LDFLAGS=$LDFLAGS
5735 LDFLAGS="$LDFLAGS -framework vecLib"
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5740 int main() {
5742 ; return 0; }
5744 if { (eval echo configure:5745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5745 rm -rf conftest*
5746 ac_cv_ld_altivec=yes
5747 else
5748 echo "configure: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5750 rm -rf conftest*
5751 ac_cv_ld_altivec=no
5753 rm -f conftest*
5754 LDFLAGS=$save_LDFLAGS
5758 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5759 if test x"$ac_cv_ld_altivec" != x"no"; then
5760 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5761 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5762 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5763 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5765 fi # end if mingw32
5768 # Check whether --with- or --without- was given.
5769 if test "${with_+set}" = set; then
5770 withval="$with_"
5774 # Check whether --with- or --without- was given.
5775 if test "${with_+set}" = set; then
5776 withval="$with_"
5781 # Check whether --with-tuning or --without-tuning was given.
5782 if test "${with_tuning+set}" = set; then
5783 withval="$with_tuning"
5787 if test "x$with_tuning" != "x"; then
5788 TUNING="$with_tuning"
5789 else
5790 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5791 else
5792 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5796 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5797 then
5798 ARCH="${ARCH} mmx"
5799 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5802 # Check whether --enable-optimizations or --disable-optimizations was given.
5803 if test "${enable_optimizations+set}" = set; then
5804 enableval="$enable_optimizations"
5805 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5806 else
5807 OPTIMS=1
5811 # Check whether --enable-altivec or --disable-altivec was given.
5812 if test "${enable_altivec+set}" = set; then
5813 enableval="$enable_altivec"
5814 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5815 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5816 else
5817 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5818 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5822 DEBUG=0
5823 # Check whether --enable-debug or --disable-debug was given.
5824 if test "${enable_debug+set}" = set; then
5825 enableval="$enable_debug"
5826 if test x$enable_debug = xyes; then DEBUG=1; fi
5830 RELEASE=0
5831 # Check whether --enable-release or --disable-release was given.
5832 if test "${enable_release+set}" = set; then
5833 enableval="$enable_release"
5834 if test x$enable_release = xyes; then RELEASE=1; fi
5835 else
5836 VERSION="${VERSION}_`date +%Y-%m-%d`"
5841 # Check whether --with- or --without- was given.
5842 if test "${with_+set}" = set; then
5843 withval="$with_"
5848 # Check whether --enable-dvd or --disable-dvd was given.
5849 if test "${enable_dvd+set}" = set; then
5850 enableval="$enable_dvd"
5854 if test "x$enable_dvd" != "xno"
5855 then
5856 # Check whether --with-dvdcss or --without-dvdcss was given.
5857 if test "${with_dvdcss+set}" = set; then
5858 withval="$with_dvdcss"
5862 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5863 if test "${with_dvdcss_tree+set}" = set; then
5864 withval="$with_dvdcss_tree"
5868 case "x$with_dvdcss" in
5869 x|xyes)
5870 if test "x$with_dvdcss_tree" = x
5871 then
5872 for ac_hdr in dvdcss/dvdcss.h
5874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5876 echo "configure:5877: checking for $ac_hdr" >&5
5877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5878 echo $ac_n "(cached) $ac_c" 1>&6
5879 else
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5883 #include <$ac_hdr>
5885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5886 { (eval echo configure:5887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5888 if test -z "$ac_err"; then
5889 rm -rf conftest*
5890 eval "ac_cv_header_$ac_safe=yes"
5891 else
5892 echo "$ac_err" >&5
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5895 rm -rf conftest*
5896 eval "ac_cv_header_$ac_safe=no"
5898 rm -f conftest*
5900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5901 echo "$ac_t""yes" 1>&6
5902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5903 cat >> confdefs.h <<EOF
5904 #define $ac_tr_hdr 1
5906 PLUGINS="${PLUGINS} dvd"
5907 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5908 else
5909 echo "$ac_t""no" 1>&6
5910 echo "configure: warning: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." 1>&2
5911 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5913 done
5915 else
5916 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5917 echo "configure:5918: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5918 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5919 if test "x$real_dvdcss_tree" = x
5920 then
5921 echo "$ac_t""no" 1>&6
5922 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5924 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5925 then
5926 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5927 BUILTINS="${BUILTINS} dvd"
5928 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5929 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5930 else
5931 echo "$ac_t""no" 1>&6
5932 { echo "configure: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" 1>&2; exit 1; }
5936 xno)
5937 PLUGINS="${PLUGINS} dvd"
5938 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5939 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5942 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5943 echo "configure:5944: checking for dvdcss headers in ${with_dvdcss}" >&5
5944 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5945 then
5946 echo "$ac_t""yes" 1>&6
5947 PLUGINS="${PLUGINS} dvd"
5948 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5949 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5950 else
5951 echo "$ac_t""no" 1>&6
5952 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5955 esac
5958 # Check whether --enable-dvdread or --disable-dvdread was given.
5959 if test "${enable_dvdread+set}" = set; then
5960 enableval="$enable_dvdread"
5964 if test "x$enable_dvdread" != "xno"
5965 then
5966 # Check whether --with-dvdread or --without-dvdread was given.
5967 if test "${with_dvdread+set}" = set; then
5968 withval="$with_dvdread"
5972 if test "x$with_dvdread" = x
5973 then
5974 test_LDFLAGS=""
5975 test_CFLAGS=""
5976 else
5977 test_LDFLAGS="-L${with_dvdread}/lib"
5978 test_CFLAGS="-I${with_dvdread}/include"
5980 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5981 for ac_hdr in dvdread/dvd_reader.h
5983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5985 echo "configure:5986: checking for $ac_hdr" >&5
5986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5987 echo $ac_n "(cached) $ac_c" 1>&6
5988 else
5989 cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5992 #include <$ac_hdr>
5994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5995 { (eval echo configure:5996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5997 if test -z "$ac_err"; then
5998 rm -rf conftest*
5999 eval "ac_cv_header_$ac_safe=yes"
6000 else
6001 echo "$ac_err" >&5
6002 echo "configure: failed program was:" >&5
6003 cat conftest.$ac_ext >&5
6004 rm -rf conftest*
6005 eval "ac_cv_header_$ac_safe=no"
6007 rm -f conftest*
6009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6010 echo "$ac_t""yes" 1>&6
6011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6012 cat >> confdefs.h <<EOF
6013 #define $ac_tr_hdr 1
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 #include <dvdread/dvd_reader.h>
6020 int main() {
6021 void foo() { int i=DVD_VIDEO_LB_LEN; }
6022 ; return 0; }
6024 if { (eval echo configure:6025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6025 rm -rf conftest*
6027 PLUGINS="${PLUGINS} dvdread"
6028 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6029 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6031 else
6032 echo "configure: failed program was:" >&5
6033 cat conftest.$ac_ext >&5
6034 rm -rf conftest*
6036 if test "x$enable_dvdread" != x
6037 then
6038 { echo "configure: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" 1>&2; exit 1; }
6042 rm -f conftest*
6044 else
6045 echo "$ac_t""no" 1>&6
6046 if test "x$enable_dvdread" != x
6047 then
6048 if test "x$with_dvdread" != x
6049 then
6050 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6051 else
6052 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6057 done
6059 CPPFLAGS="$save_CPPFLAGS"
6062 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6063 if test "${enable_dvbpsi+set}" = set; then
6064 enableval="$enable_dvbpsi"
6068 if test "x$enable_dvbpsi" != "xno"
6069 then
6070 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6071 if test "${with_dvbpsi+set}" = set; then
6072 withval="$with_dvbpsi"
6076 if test "x$with_dvbpsi" = x
6077 then
6078 test_LDFLAGS=""
6079 test_CFLAGS=""
6080 else
6081 test_LDFLAGS="-L${with_dvbpsi}/lib"
6082 test_CFLAGS="-I${with_dvbpsi}/include"
6084 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6085 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6086 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6087 echo "configure:6088: checking for dvbpsi/dr.h" >&5
6088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6090 else
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 #include <dvbpsi/dr.h>
6096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6097 { (eval echo configure:6098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6099 if test -z "$ac_err"; then
6100 rm -rf conftest*
6101 eval "ac_cv_header_$ac_safe=yes"
6102 else
6103 echo "$ac_err" >&5
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6106 rm -rf conftest*
6107 eval "ac_cv_header_$ac_safe=no"
6109 rm -f conftest*
6111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6112 echo "$ac_t""yes" 1>&6
6114 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6115 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6116 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6118 else
6119 echo "$ac_t""no" 1>&6
6121 if test "x$enable_dvbpsi" != x
6122 then
6123 { echo "configure: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" 1>&2; exit 1; }
6128 CPPFLAGS="$save_CPPFLAGS"
6131 # Check whether --enable-vcd or --disable-vcd was given.
6132 if test "${enable_vcd+set}" = set; then
6133 enableval="$enable_vcd"
6138 if test x$enable_vcd != xno
6139 then
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 #include <linux/cdrom.h>
6145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6146 egrep "cdrom_msf0" >/dev/null 2>&1; then
6147 rm -rf conftest*
6149 PLUGINS="${PLUGINS} vcd"
6152 rm -f conftest*
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 #include <sys/cdio.h>
6160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6161 egrep "ioc_toc_header " >/dev/null 2>&1; then
6162 rm -rf conftest*
6164 PLUGINS="${PLUGINS} vcd"
6165 cat >> confdefs.h <<\EOF
6166 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6171 rm -f conftest*
6174 if test "x${SYS}" = "xbsdi"
6175 then
6176 PLUGINS="${PLUGINS} vcd"
6179 if test "x${SYS}" = "xdarwin"
6180 then
6181 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6182 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6186 # Check whether --enable-satellite or --disable-satellite was given.
6187 if test "${enable_satellite+set}" = set; then
6188 enableval="$enable_satellite"
6189 if test x$enable_satellite = xyes
6190 then
6191 PLUGINS="${PLUGINS} satellite"
6196 if test x$SYS != xnto
6197 then
6198 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6199 echo "configure:6200: checking for inet_pton" >&5
6200 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6202 else
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 /* System header to define __stub macros and hopefully few prototypes,
6207 which can conflict with char inet_pton(); below. */
6208 #include <assert.h>
6209 /* Override any gcc2 internal prototype to avoid an error. */
6210 /* We use char because int might match the return type of a gcc2
6211 builtin and then its argument prototype would still apply. */
6212 char inet_pton();
6214 int main() {
6216 /* The GNU C library defines this for functions which it implements
6217 to always fail with ENOSYS. Some functions are actually named
6218 something starting with __ and the normal name is an alias. */
6219 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6220 choke me
6221 #else
6222 inet_pton();
6223 #endif
6225 ; return 0; }
6227 if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6228 rm -rf conftest*
6229 eval "ac_cv_func_inet_pton=yes"
6230 else
6231 echo "configure: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6233 rm -rf conftest*
6234 eval "ac_cv_func_inet_pton=no"
6236 rm -f conftest*
6239 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6240 echo "$ac_t""yes" 1>&6
6241 PLUGINS="${PLUGINS} ipv6"
6242 else
6243 echo "$ac_t""no" 1>&6
6248 # Check whether --enable-avi or --disable-avi was given.
6249 if test "${enable_avi+set}" = set; then
6250 enableval="$enable_avi"
6254 if test x$enable_avi != xno
6255 then
6256 PLUGINS="${PLUGINS} avi"
6260 # Check whether --with- or --without- was given.
6261 if test "${with_+set}" = set; then
6262 withval="$with_"
6267 # Check whether --enable-mad or --disable-mad was given.
6268 if test "${enable_mad+set}" = set; then
6269 enableval="$enable_mad"
6273 if test x$enable_mad = xyes
6274 then
6275 # Check whether --with-mad or --without-mad was given.
6276 if test "${with_mad+set}" = set; then
6277 withval="$with_mad"
6281 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6282 then
6283 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6284 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6287 # Check whether --with-mad-tree or --without-mad-tree was given.
6288 if test "${with_mad_tree+set}" = set; then
6289 withval="$with_mad_tree"
6293 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6294 then
6295 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6296 if test "x$real_mad_tree" = x
6297 then
6298 echo "$ac_t""no" 1>&6
6299 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6301 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6302 echo "configure:6303: checking for mad.h in ${real_mad_tree}/libmad" >&5
6303 if test -f ${real_mad_tree}/libmad/mad.h
6304 then
6305 echo "$ac_t""yes" 1>&6
6306 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6307 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6308 save_LDFLAGS=$LDFLAGS
6309 LDFLAGS=$mad_LDFLAGS
6310 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6311 echo "configure:6312: checking for mad_bit_init in -lmad" >&5
6312 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6314 echo $ac_n "(cached) $ac_c" 1>&6
6315 else
6316 ac_save_LIBS="$LIBS"
6317 LIBS="-lmad $LIBS"
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6321 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6324 char mad_bit_init();
6326 int main() {
6327 mad_bit_init()
6328 ; return 0; }
6330 if { (eval echo configure:6331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6331 rm -rf conftest*
6332 eval "ac_cv_lib_$ac_lib_var=yes"
6333 else
6334 echo "configure: failed program was:" >&5
6335 cat conftest.$ac_ext >&5
6336 rm -rf conftest*
6337 eval "ac_cv_lib_$ac_lib_var=no"
6339 rm -f conftest*
6340 LIBS="$ac_save_LIBS"
6343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6344 echo "$ac_t""yes" 1>&6
6346 BUILTINS="${BUILTINS} mad"
6347 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6349 else
6350 echo "$ac_t""no" 1>&6
6351 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6355 LDFLAGS=$save_LDFLAGS
6356 else
6357 echo "$ac_t""no" 1>&6
6358 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6360 else
6361 save_CFLAGS=$CFLAGS
6362 save_LDFLAGS=$LDFLAGS
6363 CFLAGS="$CFLAGS $mad_CFLAGS"
6364 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6365 for ac_hdr in mad.h
6367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6369 echo "configure:6370: checking for $ac_hdr" >&5
6370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6372 else
6373 cat > conftest.$ac_ext <<EOF
6374 #line 6375 "configure"
6375 #include "confdefs.h"
6376 #include <$ac_hdr>
6378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6379 { (eval echo configure:6380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6381 if test -z "$ac_err"; then
6382 rm -rf conftest*
6383 eval "ac_cv_header_$ac_safe=yes"
6384 else
6385 echo "$ac_err" >&5
6386 echo "configure: failed program was:" >&5
6387 cat conftest.$ac_ext >&5
6388 rm -rf conftest*
6389 eval "ac_cv_header_$ac_safe=no"
6391 rm -f conftest*
6393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6396 cat >> confdefs.h <<EOF
6397 #define $ac_tr_hdr 1
6400 else
6401 echo "$ac_t""no" 1>&6
6402 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6404 done
6406 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6407 echo "configure:6408: checking for mad_bit_init in -lmad" >&5
6408 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6410 echo $ac_n "(cached) $ac_c" 1>&6
6411 else
6412 ac_save_LIBS="$LIBS"
6413 LIBS="-lmad $LIBS"
6414 cat > conftest.$ac_ext <<EOF
6415 #line 6416 "configure"
6416 #include "confdefs.h"
6417 /* Override any gcc2 internal prototype to avoid an error. */
6418 /* We use char because int might match the return type of a gcc2
6419 builtin and then its argument prototype would still apply. */
6420 char mad_bit_init();
6422 int main() {
6423 mad_bit_init()
6424 ; return 0; }
6426 if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6427 rm -rf conftest*
6428 eval "ac_cv_lib_$ac_lib_var=yes"
6429 else
6430 echo "configure: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6432 rm -rf conftest*
6433 eval "ac_cv_lib_$ac_lib_var=no"
6435 rm -f conftest*
6436 LIBS="$ac_save_LIBS"
6439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6440 echo "$ac_t""yes" 1>&6
6442 PLUGINS="${PLUGINS} mad"
6443 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6444 else
6445 echo "$ac_t""no" 1>&6
6446 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6449 CFLAGS=$save_CFLAGS
6450 LDFLAGS=$save_LDFLAGS
6454 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6455 if test "${enable_ffmpeg+set}" = set; then
6456 enableval="$enable_ffmpeg"
6460 if test "x$enable_ffmpeg" = "xyes"
6461 then
6462 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6463 if test "${with_ffmpeg+set}" = set; then
6464 withval="$with_ffmpeg"
6468 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6469 then
6470 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6471 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6474 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6475 if test "${with_ffmpeg_tree+set}" = set; then
6476 withval="$with_ffmpeg_tree"
6480 if test "x$with_ffmpeg_tree" != "x"
6481 then
6482 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6483 echo "configure:6484: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6484 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6485 if test "x$real_ffmpeg_tree" = x
6486 then
6487 echo "$ac_t""no" 1>&6
6488 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6490 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6491 then
6492 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6493 BUILTINS="${BUILTINS} ffmpeg"
6494 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6495 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6496 else
6497 echo "$ac_t""no" 1>&6
6498 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6500 else
6501 save_CFLAGS=$CFLAGS
6502 save_LDFLAGS=$LDFLAGS
6503 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6504 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS"
6505 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6506 echo "configure:6507: checking for avcodec_init in -lavcodec" >&5
6507 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6510 else
6511 ac_save_LIBS="$LIBS"
6512 LIBS="-lavcodec $LIBS"
6513 cat > conftest.$ac_ext <<EOF
6514 #line 6515 "configure"
6515 #include "confdefs.h"
6516 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6519 char avcodec_init();
6521 int main() {
6522 avcodec_init()
6523 ; return 0; }
6525 if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6526 rm -rf conftest*
6527 eval "ac_cv_lib_$ac_lib_var=yes"
6528 else
6529 echo "configure: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6531 rm -rf conftest*
6532 eval "ac_cv_lib_$ac_lib_var=no"
6534 rm -f conftest*
6535 LIBS="$ac_save_LIBS"
6538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6541 BUILTINS="${BUILTINS} ffmpeg"
6542 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
6543 else
6544 echo "$ac_t""no" 1>&6
6545 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6548 CFLAGS=$save_CFLAGS
6549 LDFLAGS=$save_LDFLAGS
6554 if test x$SYS = xbeos
6555 then
6556 PLUGINS="${PLUGINS} beos"
6559 # Check whether --enable-a52 or --disable-a52 was given.
6560 if test "${enable_a52+set}" = set; then
6561 enableval="$enable_a52"
6565 if test "x$enable_a52" != "xno"
6566 then
6567 # Check whether --with-a52-tree or --without-a52-tree was given.
6568 if test "${with_a52_tree+set}" = set; then
6569 withval="$with_a52_tree"
6573 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6574 then
6575 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6576 if test "x$real_a52_tree" = x
6577 then
6578 echo "$ac_t""no" 1>&6
6579 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6581 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6582 echo "configure:6583: checking for a52.h in ${real_a52_tree}/include" >&5
6583 if test -f ${real_a52_tree}/include/a52.h
6584 then
6585 echo "$ac_t""yes" 1>&6
6586 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6587 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6588 save_LDFLAGS=$LDFLAGS
6589 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6590 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6591 echo "configure:6592: checking for a52_free in -la52" >&5
6592 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6594 echo $ac_n "(cached) $ac_c" 1>&6
6595 else
6596 ac_save_LIBS="$LIBS"
6597 LIBS="-la52 -lm $LIBS"
6598 cat > conftest.$ac_ext <<EOF
6599 #line 6600 "configure"
6600 #include "confdefs.h"
6601 /* Override any gcc2 internal prototype to avoid an error. */
6602 /* We use char because int might match the return type of a gcc2
6603 builtin and then its argument prototype would still apply. */
6604 char a52_free();
6606 int main() {
6607 a52_free()
6608 ; return 0; }
6610 if { (eval echo configure:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 rm -rf conftest*
6612 eval "ac_cv_lib_$ac_lib_var=yes"
6613 else
6614 echo "configure: failed program was:" >&5
6615 cat conftest.$ac_ext >&5
6616 rm -rf conftest*
6617 eval "ac_cv_lib_$ac_lib_var=no"
6619 rm -f conftest*
6620 LIBS="$ac_save_LIBS"
6623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6624 echo "$ac_t""yes" 1>&6
6626 BUILTINS="${BUILTINS} a52"
6627 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6628 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6630 else
6631 echo "$ac_t""no" 1>&6
6633 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6634 then
6635 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6636 else
6637 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6642 LDFLAGS=$save_LDFLAGS
6643 else
6644 echo "$ac_t""no" 1>&6
6645 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6647 else for ac_hdr in a52dec/a52.h
6649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6651 echo "configure:6652: checking for $ac_hdr" >&5
6652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6654 else
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 #include <$ac_hdr>
6660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6661 { (eval echo configure:6662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6663 if test -z "$ac_err"; then
6664 rm -rf conftest*
6665 eval "ac_cv_header_$ac_safe=yes"
6666 else
6667 echo "$ac_err" >&5
6668 echo "configure: failed program was:" >&5
6669 cat conftest.$ac_ext >&5
6670 rm -rf conftest*
6671 eval "ac_cv_header_$ac_safe=no"
6673 rm -f conftest*
6675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6678 cat >> confdefs.h <<EOF
6679 #define $ac_tr_hdr 1
6682 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6683 echo "configure:6684: checking for a52_free in -la52" >&5
6684 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6687 else
6688 ac_save_LIBS="$LIBS"
6689 LIBS="-la52 -lm $LIBS"
6690 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* Override any gcc2 internal prototype to avoid an error. */
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6696 char a52_free();
6698 int main() {
6699 a52_free()
6700 ; return 0; }
6702 if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6703 rm -rf conftest*
6704 eval "ac_cv_lib_$ac_lib_var=yes"
6705 else
6706 echo "configure: failed program was:" >&5
6707 cat conftest.$ac_ext >&5
6708 rm -rf conftest*
6709 eval "ac_cv_lib_$ac_lib_var=no"
6711 rm -f conftest*
6712 LIBS="$ac_save_LIBS"
6715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6716 echo "$ac_t""yes" 1>&6
6718 BUILTINS="${BUILTINS} a52"
6719 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6720 a52_CFLAGS="${a52_CFLAGS}"
6722 else
6723 echo "$ac_t""no" 1>&6
6727 else
6728 echo "$ac_t""no" 1>&6
6730 done
6735 # Check whether --enable-vorbis or --disable-vorbis was given.
6736 if test "${enable_vorbis+set}" = set; then
6737 enableval="$enable_vorbis"
6741 if test "x$enable_vorbis" != "xno"
6742 then
6743 for ac_hdr in ogg/ogg.h
6745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6747 echo "configure:6748: checking for $ac_hdr" >&5
6748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6749 echo $ac_n "(cached) $ac_c" 1>&6
6750 else
6751 cat > conftest.$ac_ext <<EOF
6752 #line 6753 "configure"
6753 #include "confdefs.h"
6754 #include <$ac_hdr>
6756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6757 { (eval echo configure:6758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6759 if test -z "$ac_err"; then
6760 rm -rf conftest*
6761 eval "ac_cv_header_$ac_safe=yes"
6762 else
6763 echo "$ac_err" >&5
6764 echo "configure: failed program was:" >&5
6765 cat conftest.$ac_ext >&5
6766 rm -rf conftest*
6767 eval "ac_cv_header_$ac_safe=no"
6769 rm -f conftest*
6771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6772 echo "$ac_t""yes" 1>&6
6773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6774 cat >> confdefs.h <<EOF
6775 #define $ac_tr_hdr 1
6778 #PLUGINS="${PLUGINS} vorbis"
6779 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6781 else
6782 echo "$ac_t""no" 1>&6
6784 done
6789 # Check whether --with- or --without- was given.
6790 if test "${with_+set}" = set; then
6791 withval="$with_"
6796 # Check whether --enable-x11 or --disable-x11 was given.
6797 if test "${enable_x11+set}" = set; then
6798 enableval="$enable_x11"
6802 if test x$enable_x11 != xno &&
6803 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6804 if test x$x_includes = xNONE; then
6805 x_includes=/usr/X11R6/include
6807 if test x$x_libraries = xNONE; then
6808 x_libraries=/usr/X11R6/lib
6810 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6811 for ac_hdr in X11/Xlib.h
6813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6815 echo "configure:6816: checking for $ac_hdr" >&5
6816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6818 else
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6822 #include <$ac_hdr>
6824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6825 { (eval echo configure:6826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6827 if test -z "$ac_err"; then
6828 rm -rf conftest*
6829 eval "ac_cv_header_$ac_safe=yes"
6830 else
6831 echo "$ac_err" >&5
6832 echo "configure: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6834 rm -rf conftest*
6835 eval "ac_cv_header_$ac_safe=no"
6837 rm -f conftest*
6839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6840 echo "$ac_t""yes" 1>&6
6841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6842 cat >> confdefs.h <<EOF
6843 #define $ac_tr_hdr 1
6846 PLUGINS="${PLUGINS} x11"
6847 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6848 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6850 else
6851 echo "$ac_t""no" 1>&6
6853 done
6855 CPPFLAGS="$save_CPPFLAGS"
6858 # Check whether --enable-xvideo or --disable-xvideo was given.
6859 if test "${enable_xvideo+set}" = set; then
6860 enableval="$enable_xvideo"
6864 if test x$enable_xvideo != xno &&
6865 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6866 if test x$x_includes = xNONE; then
6867 x_includes=/usr/X11R6/include
6869 if test x$x_libraries = xNONE; then
6870 x_libraries=/usr/X11R6/lib
6872 save_CPPFLAGS=$CPPFLAGS
6873 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6874 for ac_hdr in X11/extensions/Xv.h
6876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6878 echo "configure:6879: checking for $ac_hdr" >&5
6879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6880 echo $ac_n "(cached) $ac_c" 1>&6
6881 else
6882 cat > conftest.$ac_ext <<EOF
6883 #line 6884 "configure"
6884 #include "confdefs.h"
6885 #include <$ac_hdr>
6887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6888 { (eval echo configure:6889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6890 if test -z "$ac_err"; then
6891 rm -rf conftest*
6892 eval "ac_cv_header_$ac_safe=yes"
6893 else
6894 echo "$ac_err" >&5
6895 echo "configure: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6897 rm -rf conftest*
6898 eval "ac_cv_header_$ac_safe=no"
6900 rm -f conftest*
6902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6903 echo "$ac_t""yes" 1>&6
6904 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6905 cat >> confdefs.h <<EOF
6906 #define $ac_tr_hdr 1
6909 save_CFLAGS=$CFLAGS
6910 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6911 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6912 echo "configure:6913: checking for XvSetPortAttribute in -lXv_pic" >&5
6913 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6915 echo $ac_n "(cached) $ac_c" 1>&6
6916 else
6917 ac_save_LIBS="$LIBS"
6918 LIBS="-lXv_pic $LIBS"
6919 cat > conftest.$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6922 /* Override any gcc2 internal prototype to avoid an error. */
6923 /* We use char because int might match the return type of a gcc2
6924 builtin and then its argument prototype would still apply. */
6925 char XvSetPortAttribute();
6927 int main() {
6928 XvSetPortAttribute()
6929 ; return 0; }
6931 if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6932 rm -rf conftest*
6933 eval "ac_cv_lib_$ac_lib_var=yes"
6934 else
6935 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6937 rm -rf conftest*
6938 eval "ac_cv_lib_$ac_lib_var=no"
6940 rm -f conftest*
6941 LIBS="$ac_save_LIBS"
6944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6945 echo "$ac_t""yes" 1>&6
6946 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6947 PLUGINS="${PLUGINS} xvideo"
6948 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6949 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6950 else
6951 echo "$ac_t""no" 1>&6
6952 # We don't have Xv_pic, let's make xvideo.a as builtin
6953 BUILTINS="${BUILTINS} xvideo"
6954 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6955 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6958 CFLAGS="$save_CFLAGS"
6960 CPPFLAGS="$save_CPPFLAGS"
6961 else
6962 echo "$ac_t""no" 1>&6
6964 done
6968 # Check whether --enable-sdl or --disable-sdl was given.
6969 if test "${enable_sdl+set}" = set; then
6970 enableval="$enable_sdl"
6974 if test "x$enable_sdl" != "xno"
6975 then
6976 SDL_PATH=$PATH
6977 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6978 if test "${with_sdl_config_path+set}" = set; then
6979 withval="$with_sdl_config_path"
6980 if test "x$with_sdl_config_path" != "xno"
6981 then
6982 SDL_PATH="$with_sdl_config_path:$PATH"
6986 # Extract the first word of "sdl12-config", so it can be a program name with args.
6987 set dummy sdl12-config; ac_word=$2
6988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6989 echo "configure:6990: checking for $ac_word" >&5
6990 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6991 echo $ac_n "(cached) $ac_c" 1>&6
6992 else
6993 case "$SDL12_CONFIG" in
6995 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6997 ?:/*)
6998 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7002 ac_dummy="$SDL_PATH"
7003 for ac_dir in $ac_dummy; do
7004 test -z "$ac_dir" && ac_dir=.
7005 if test -f $ac_dir/$ac_word; then
7006 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7007 break
7009 done
7010 IFS="$ac_save_ifs"
7011 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7013 esac
7015 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7016 if test -n "$SDL12_CONFIG"; then
7017 echo "$ac_t""$SDL12_CONFIG" 1>&6
7018 else
7019 echo "$ac_t""no" 1>&6
7022 SDL_CONFIG=${SDL12_CONFIG}
7023 SDL_HEADER="SDL12/SDL.h"
7024 if test x${SDL_CONFIG} = xno
7025 then
7026 # Extract the first word of "sdl11-config", so it can be a program name with args.
7027 set dummy sdl11-config; ac_word=$2
7028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7029 echo "configure:7030: checking for $ac_word" >&5
7030 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7031 echo $ac_n "(cached) $ac_c" 1>&6
7032 else
7033 case "$SDL11_CONFIG" in
7035 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7037 ?:/*)
7038 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7042 ac_dummy="$SDL_PATH"
7043 for ac_dir in $ac_dummy; do
7044 test -z "$ac_dir" && ac_dir=.
7045 if test -f $ac_dir/$ac_word; then
7046 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7047 break
7049 done
7050 IFS="$ac_save_ifs"
7051 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7053 esac
7055 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7056 if test -n "$SDL11_CONFIG"; then
7057 echo "$ac_t""$SDL11_CONFIG" 1>&6
7058 else
7059 echo "$ac_t""no" 1>&6
7062 SDL_CONFIG=${SDL11_CONFIG}
7063 SDL_HEADER="SDL11/SDL.h"
7065 if test x${SDL_CONFIG} = xno
7066 then
7067 # Extract the first word of "sdl-config", so it can be a program name with args.
7068 set dummy sdl-config; ac_word=$2
7069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7070 echo "configure:7071: checking for $ac_word" >&5
7071 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7072 echo $ac_n "(cached) $ac_c" 1>&6
7073 else
7074 case "$SDL_CONFIG" in
7076 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7078 ?:/*)
7079 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7083 ac_dummy="$SDL_PATH"
7084 for ac_dir in $ac_dummy; do
7085 test -z "$ac_dir" && ac_dir=.
7086 if test -f $ac_dir/$ac_word; then
7087 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7088 break
7090 done
7091 IFS="$ac_save_ifs"
7092 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7094 esac
7096 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7097 if test -n "$SDL_CONFIG"; then
7098 echo "$ac_t""$SDL_CONFIG" 1>&6
7099 else
7100 echo "$ac_t""no" 1>&6
7103 SDL_HEADER="SDL/SDL.h"
7105 if test x${SDL_CONFIG} != xno
7106 then
7107 PLUGINS="${PLUGINS} sdl"
7108 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7109 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7110 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7111 for ac_hdr in ${SDL_HEADER}
7113 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7115 echo "configure:7116: checking for $ac_hdr" >&5
7116 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7117 echo $ac_n "(cached) $ac_c" 1>&6
7118 else
7119 cat > conftest.$ac_ext <<EOF
7120 #line 7121 "configure"
7121 #include "confdefs.h"
7122 #include <$ac_hdr>
7124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7125 { (eval echo configure:7126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7127 if test -z "$ac_err"; then
7128 rm -rf conftest*
7129 eval "ac_cv_header_$ac_safe=yes"
7130 else
7131 echo "$ac_err" >&5
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7134 rm -rf conftest*
7135 eval "ac_cv_header_$ac_safe=no"
7137 rm -f conftest*
7139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7140 echo "$ac_t""yes" 1>&6
7141 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7142 cat >> confdefs.h <<EOF
7143 #define $ac_tr_hdr 1
7145 cat >> confdefs.h <<EOF
7146 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7149 else
7150 echo "$ac_t""no" 1>&6
7151 { echo "configure: error: The development package for SDL is not installed.
7152 Please install it and try again. Alternatively you can also configure with
7153 --disable-sdl." 1>&2; exit 1; }
7156 done
7158 CPPFLAGS="$save_CPPFLAGS"
7159 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7160 then
7161 { echo "configure: error: The development package for SDL is not installed.
7162 Please install it and try again. Alternatively you can also configure with
7163 --disable-sdl." 1>&2; exit 1; }
7165 elif test "x$enable_sdl" = "xyes"
7166 then
7167 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7168 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7169 " 1>&2; exit 1; }
7173 # Check whether --enable-directx or --disable-directx was given.
7174 if test "${enable_directx+set}" = set; then
7175 enableval="$enable_directx"
7179 if test "x$enable_directx" != "xno"
7180 then
7181 if test x$SYS = xmingw32
7182 then
7183 # Check whether --with-directx or --without-directx was given.
7184 if test "${with_directx+set}" = set; then
7185 withval="$with_directx"
7189 if test "x$with_directx" = "x"
7190 then
7191 for ac_hdr in ddraw.h
7193 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7194 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7195 echo "configure:7196: checking for $ac_hdr" >&5
7196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7197 echo $ac_n "(cached) $ac_c" 1>&6
7198 else
7199 cat > conftest.$ac_ext <<EOF
7200 #line 7201 "configure"
7201 #include "confdefs.h"
7202 #include <$ac_hdr>
7204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7205 { (eval echo configure:7206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7207 if test -z "$ac_err"; then
7208 rm -rf conftest*
7209 eval "ac_cv_header_$ac_safe=yes"
7210 else
7211 echo "$ac_err" >&5
7212 echo "configure: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7214 rm -rf conftest*
7215 eval "ac_cv_header_$ac_safe=no"
7217 rm -f conftest*
7219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7220 echo "$ac_t""yes" 1>&6
7221 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7222 cat >> confdefs.h <<EOF
7223 #define $ac_tr_hdr 1
7225 PLUGINS="${PLUGINS} directx"
7226 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7227 else
7228 echo "$ac_t""no" 1>&6
7230 done
7232 else
7233 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7234 echo "configure:7235: checking for directX headers in ${with_directx}" >&5
7235 if test -f ${with_directx}/ddraw.h
7236 then
7237 PLUGINS="${PLUGINS} directx"
7238 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7239 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7240 echo "$ac_t""yes" 1>&6
7241 else
7242 echo "$ac_t""no" 1>&6
7243 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7249 # Check whether --enable-fb or --disable-fb was given.
7250 if test "${enable_fb+set}" = set; then
7251 enableval="$enable_fb"
7255 if test x$enable_fb != xno
7256 then
7257 for ac_hdr in linux/fb.h
7259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7261 echo "configure:7262: checking for $ac_hdr" >&5
7262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7263 echo $ac_n "(cached) $ac_c" 1>&6
7264 else
7265 cat > conftest.$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7268 #include <$ac_hdr>
7270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7271 { (eval echo configure:7272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7273 if test -z "$ac_err"; then
7274 rm -rf conftest*
7275 eval "ac_cv_header_$ac_safe=yes"
7276 else
7277 echo "$ac_err" >&5
7278 echo "configure: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7280 rm -rf conftest*
7281 eval "ac_cv_header_$ac_safe=no"
7283 rm -f conftest*
7285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7286 echo "$ac_t""yes" 1>&6
7287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7288 cat >> confdefs.h <<EOF
7289 #define $ac_tr_hdr 1
7292 PLUGINS="${PLUGINS} fb"
7294 else
7295 echo "$ac_t""no" 1>&6
7297 done
7301 # Check whether --enable-mga or --disable-mga was given.
7302 if test "${enable_mga+set}" = set; then
7303 enableval="$enable_mga"
7304 if test x$enable_mga = xyes
7305 then
7306 PLUGINS="${PLUGINS} mga xmga"
7311 # Check whether --enable-ggi or --disable-ggi was given.
7312 if test "${enable_ggi+set}" = set; then
7313 enableval="$enable_ggi"
7317 if test x$enable_ggi = xyes
7318 then
7319 PLUGINS="${PLUGINS} ggi"
7320 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7321 # Check whether --with-ggi or --without-ggi was given.
7322 if test "${with_ggi+set}" = set; then
7323 withval="$with_ggi"
7324 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7325 then
7326 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7327 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7333 # Check whether --enable-glide or --disable-glide was given.
7334 if test "${enable_glide+set}" = set; then
7335 enableval="$enable_glide"
7339 if test x$enable_glide = xyes
7340 then
7341 PLUGINS="${PLUGINS} glide"
7342 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7343 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7344 # Check whether --with-glide or --without-glide was given.
7345 if test "${with_glide+set}" = set; then
7346 withval="$with_glide"
7347 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7348 then
7349 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7350 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7356 # Check whether --enable-aa or --disable-aa was given.
7357 if test "${enable_aa+set}" = set; then
7358 enableval="$enable_aa"
7362 if test x$enable_aa = xyes
7363 then
7364 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7365 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7366 echo "configure:7367: checking for aalib.h" >&5
7367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7368 echo $ac_n "(cached) $ac_c" 1>&6
7369 else
7370 cat > conftest.$ac_ext <<EOF
7371 #line 7372 "configure"
7372 #include "confdefs.h"
7373 #include <aalib.h>
7375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7376 { (eval echo configure:7377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7378 if test -z "$ac_err"; then
7379 rm -rf conftest*
7380 eval "ac_cv_header_$ac_safe=yes"
7381 else
7382 echo "$ac_err" >&5
7383 echo "configure: failed program was:" >&5
7384 cat conftest.$ac_ext >&5
7385 rm -rf conftest*
7386 eval "ac_cv_header_$ac_safe=no"
7388 rm -f conftest*
7390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7391 echo "$ac_t""yes" 1>&6
7392 have_aa="true"
7393 else
7394 echo "$ac_t""no" 1>&6
7395 have_aa="false"
7398 if test x$have_aa = xtrue
7399 then
7400 PLUGINS="${PLUGINS} aa"
7401 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7406 # Check whether --with- or --without- was given.
7407 if test "${with_+set}" = set; then
7408 withval="$with_"
7413 # Check whether --enable-dsp or --disable-dsp was given.
7414 if test "${enable_dsp+set}" = set; then
7415 enableval="$enable_dsp"
7420 if test x$enable_dsp != xno &&
7421 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7422 then
7423 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7427 echo "configure:7428: checking for $ac_hdr" >&5
7428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7429 echo $ac_n "(cached) $ac_c" 1>&6
7430 else
7431 cat > conftest.$ac_ext <<EOF
7432 #line 7433 "configure"
7433 #include "confdefs.h"
7434 #include <$ac_hdr>
7436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7437 { (eval echo configure:7438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7439 if test -z "$ac_err"; then
7440 rm -rf conftest*
7441 eval "ac_cv_header_$ac_safe=yes"
7442 else
7443 echo "$ac_err" >&5
7444 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7446 rm -rf conftest*
7447 eval "ac_cv_header_$ac_safe=no"
7449 rm -f conftest*
7451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7452 echo "$ac_t""yes" 1>&6
7453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7454 cat >> confdefs.h <<EOF
7455 #define $ac_tr_hdr 1
7458 PLUGINS="${PLUGINS} dsp"
7459 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7460 echo "configure:7461: checking for main in -lossaudio" >&5
7461 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7464 else
7465 ac_save_LIBS="$LIBS"
7466 LIBS="-lossaudio $LIBS"
7467 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7471 int main() {
7472 main()
7473 ; return 0; }
7475 if { (eval echo configure:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7476 rm -rf conftest*
7477 eval "ac_cv_lib_$ac_lib_var=yes"
7478 else
7479 echo "configure: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7481 rm -rf conftest*
7482 eval "ac_cv_lib_$ac_lib_var=no"
7484 rm -f conftest*
7485 LIBS="$ac_save_LIBS"
7488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7489 echo "$ac_t""yes" 1>&6
7490 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7491 else
7492 echo "$ac_t""no" 1>&6
7496 else
7497 echo "$ac_t""no" 1>&6
7499 done
7503 # Check whether --enable-esd or --disable-esd was given.
7504 if test "${enable_esd+set}" = set; then
7505 enableval="$enable_esd"
7506 if test x$enable_esd = xyes
7507 then
7508 # Extract the first word of "esd-config", so it can be a program name with args.
7509 set dummy esd-config; ac_word=$2
7510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7511 echo "configure:7512: checking for $ac_word" >&5
7512 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7513 echo $ac_n "(cached) $ac_c" 1>&6
7514 else
7515 case "$ESD_CONFIG" in
7517 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7519 ?:/*)
7520 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7524 ac_dummy="$PATH"
7525 for ac_dir in $ac_dummy; do
7526 test -z "$ac_dir" && ac_dir=.
7527 if test -f $ac_dir/$ac_word; then
7528 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7529 break
7531 done
7532 IFS="$ac_save_ifs"
7533 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7535 esac
7537 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7538 if test -n "$ESD_CONFIG"; then
7539 echo "$ac_t""$ESD_CONFIG" 1>&6
7540 else
7541 echo "$ac_t""no" 1>&6
7544 if test x${ESD_CONFIG} != xno
7545 then
7546 PLUGINS="${PLUGINS} esd"
7547 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7548 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7554 # Check whether --enable-arts or --disable-arts was given.
7555 if test "${enable_arts+set}" = set; then
7556 enableval="$enable_arts"
7557 if test x$enable_arts = xyes
7558 then
7559 # Extract the first word of "artsc-config", so it can be a program name with args.
7560 set dummy artsc-config; ac_word=$2
7561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7562 echo "configure:7563: checking for $ac_word" >&5
7563 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7565 else
7566 case "$ARTS_CONFIG" in
7568 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7570 ?:/*)
7571 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7575 ac_dummy="$PATH"
7576 for ac_dir in $ac_dummy; do
7577 test -z "$ac_dir" && ac_dir=.
7578 if test -f $ac_dir/$ac_word; then
7579 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7580 break
7582 done
7583 IFS="$ac_save_ifs"
7584 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7586 esac
7588 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7589 if test -n "$ARTS_CONFIG"; then
7590 echo "$ac_t""$ARTS_CONFIG" 1>&6
7591 else
7592 echo "$ac_t""no" 1>&6
7595 if test x${ARTS_CONFIG} != xno
7596 then
7597 PLUGINS="${PLUGINS} arts"
7598 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7599 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7605 # Check whether --enable-alsa or --disable-alsa was given.
7606 if test "${enable_alsa+set}" = set; then
7607 enableval="$enable_alsa"
7608 if test x$enable_alsa = xyes
7609 then
7610 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7611 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7612 echo "configure:7613: checking for alsa/asoundlib.h" >&5
7613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7615 else
7616 cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 #include <alsa/asoundlib.h>
7621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7622 { (eval echo configure:7623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7624 if test -z "$ac_err"; then
7625 rm -rf conftest*
7626 eval "ac_cv_header_$ac_safe=yes"
7627 else
7628 echo "$ac_err" >&5
7629 echo "configure: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7631 rm -rf conftest*
7632 eval "ac_cv_header_$ac_safe=no"
7634 rm -f conftest*
7636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7637 echo "$ac_t""yes" 1>&6
7638 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7639 echo "configure:7640: checking for main in -lasound" >&5
7640 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7643 else
7644 ac_save_LIBS="$LIBS"
7645 LIBS="-lasound $LIBS"
7646 cat > conftest.$ac_ext <<EOF
7647 #line 7648 "configure"
7648 #include "confdefs.h"
7650 int main() {
7651 main()
7652 ; return 0; }
7654 if { (eval echo configure:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7655 rm -rf conftest*
7656 eval "ac_cv_lib_$ac_lib_var=yes"
7657 else
7658 echo "configure: failed program was:" >&5
7659 cat conftest.$ac_ext >&5
7660 rm -rf conftest*
7661 eval "ac_cv_lib_$ac_lib_var=no"
7663 rm -f conftest*
7664 LIBS="$ac_save_LIBS"
7667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7668 echo "$ac_t""yes" 1>&6
7669 have_alsa="true"
7670 else
7671 echo "$ac_t""no" 1>&6
7672 have_alsa="false"
7675 else
7676 echo "$ac_t""no" 1>&6
7677 have_alsa="false"
7680 if test x$have_alsa = xtrue
7681 then
7682 PLUGINS="${PLUGINS} alsa"
7683 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7689 # Check whether --enable-waveout or --disable-waveout was given.
7690 if test "${enable_waveout+set}" = set; then
7691 enableval="$enable_waveout"
7695 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7696 then
7697 PLUGINS="${PLUGINS} waveout"
7698 waveout_LDFLAGS="-lwinmm"
7702 # Check whether --with- or --without- was given.
7703 if test "${with_+set}" = set; then
7704 withval="$with_"
7709 # Check whether --enable-gtk or --disable-gtk was given.
7710 if test "${enable_gtk+set}" = set; then
7711 enableval="$enable_gtk"
7715 if test x$enable_gtk != xno
7716 then
7717 GTK_PATH=$PATH
7718 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7719 if test "${with_gtk_config_path+set}" = set; then
7720 withval="$with_gtk_config_path"
7721 if test "x$with_gtk_config_path" != "xno"
7722 then
7723 GTK_PATH="$with_gtk_config_path:$PATH"
7727 # look for gtk-config
7728 # Extract the first word of "gtk12-config", so it can be a program name with args.
7729 set dummy gtk12-config; ac_word=$2
7730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7731 echo "configure:7732: checking for $ac_word" >&5
7732 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7734 else
7735 case "$GTK12_CONFIG" in
7737 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7739 ?:/*)
7740 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7744 ac_dummy="$GTK_PATH"
7745 for ac_dir in $ac_dummy; do
7746 test -z "$ac_dir" && ac_dir=.
7747 if test -f $ac_dir/$ac_word; then
7748 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7749 break
7751 done
7752 IFS="$ac_save_ifs"
7753 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7755 esac
7757 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7758 if test -n "$GTK12_CONFIG"; then
7759 echo "$ac_t""$GTK12_CONFIG" 1>&6
7760 else
7761 echo "$ac_t""no" 1>&6
7764 GTK_CONFIG=${GTK12_CONFIG}
7765 if test x${GTK_CONFIG} = xno
7766 then
7767 # Extract the first word of "gtk-config", so it can be a program name with args.
7768 set dummy gtk-config; ac_word=$2
7769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7770 echo "configure:7771: checking for $ac_word" >&5
7771 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7772 echo $ac_n "(cached) $ac_c" 1>&6
7773 else
7774 case "$GTK_CONFIG" in
7776 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7778 ?:/*)
7779 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7783 ac_dummy="$GTK_PATH"
7784 for ac_dir in $ac_dummy; do
7785 test -z "$ac_dir" && ac_dir=.
7786 if test -f $ac_dir/$ac_word; then
7787 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7788 break
7790 done
7791 IFS="$ac_save_ifs"
7792 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7794 esac
7796 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7797 if test -n "$GTK_CONFIG"; then
7798 echo "$ac_t""$GTK_CONFIG" 1>&6
7799 else
7800 echo "$ac_t""no" 1>&6
7804 if test x${GTK_CONFIG} != xno
7805 then
7806 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7807 then
7808 { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." 1>&2; exit 1; }
7810 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7811 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7812 # now look for the gtk.h header
7813 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7814 ac_cv_gtk_headers=yes
7815 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7819 echo "configure:7820: checking for $ac_hdr" >&5
7820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7822 else
7823 cat > conftest.$ac_ext <<EOF
7824 #line 7825 "configure"
7825 #include "confdefs.h"
7826 #include <$ac_hdr>
7828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7829 { (eval echo configure:7830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7831 if test -z "$ac_err"; then
7832 rm -rf conftest*
7833 eval "ac_cv_header_$ac_safe=yes"
7834 else
7835 echo "$ac_err" >&5
7836 echo "configure: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7838 rm -rf conftest*
7839 eval "ac_cv_header_$ac_safe=no"
7841 rm -f conftest*
7843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7844 echo "$ac_t""yes" 1>&6
7845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7846 cat >> confdefs.h <<EOF
7847 #define $ac_tr_hdr 1
7850 else
7851 echo "$ac_t""no" 1>&6
7852 ac_cv_gtk_headers=no
7853 echo "Cannot find gtk development headers."
7856 done
7858 if test "x$ac_cv_gtk_headers" = xyes
7859 then
7860 PLUGINS="${PLUGINS} gtk"
7861 ALIASES="${ALIASES} gvlc"
7863 CPPFLAGS="$save_CPPFLAGS"
7867 # Check whether --enable-gnome or --disable-gnome was given.
7868 if test "${enable_gnome+set}" = set; then
7869 enableval="$enable_gnome"
7870 if test x$enable_gnome = xyes; then
7871 # look for gnome-config
7872 # Extract the first word of "gnome-config", so it can be a program name with args.
7873 set dummy gnome-config; ac_word=$2
7874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7875 echo "configure:7876: checking for $ac_word" >&5
7876 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7877 echo $ac_n "(cached) $ac_c" 1>&6
7878 else
7879 case "$GNOME_CONFIG" in
7881 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7883 ?:/*)
7884 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7888 ac_dummy="$PATH"
7889 for ac_dir in $ac_dummy; do
7890 test -z "$ac_dir" && ac_dir=.
7891 if test -f $ac_dir/$ac_word; then
7892 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7893 break
7895 done
7896 IFS="$ac_save_ifs"
7897 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7899 esac
7901 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7902 if test -n "$GNOME_CONFIG"; then
7903 echo "$ac_t""$GNOME_CONFIG" 1>&6
7904 else
7905 echo "$ac_t""no" 1>&6
7908 if test -x ${GNOME_CONFIG}
7909 then
7910 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7911 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7913 # now look for the gnome.h header
7914 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
7915 for ac_hdr in gnome.h
7917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7919 echo "configure:7920: checking for $ac_hdr" >&5
7920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7921 echo $ac_n "(cached) $ac_c" 1>&6
7922 else
7923 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7926 #include <$ac_hdr>
7928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7929 { (eval echo configure:7930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7931 if test -z "$ac_err"; then
7932 rm -rf conftest*
7933 eval "ac_cv_header_$ac_safe=yes"
7934 else
7935 echo "$ac_err" >&5
7936 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7938 rm -rf conftest*
7939 eval "ac_cv_header_$ac_safe=no"
7941 rm -f conftest*
7943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7944 echo "$ac_t""yes" 1>&6
7945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7946 cat >> confdefs.h <<EOF
7947 #define $ac_tr_hdr 1
7950 PLUGINS="${PLUGINS} gnome"
7951 ALIASES="${ALIASES} gnome-vlc"
7953 else
7954 echo "$ac_t""no" 1>&6
7955 { echo "configure: error: Can't find gnome headers. Please install the gnome
7956 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7959 done
7961 CPPFLAGS="$save_CPPFLAGS"
7966 # Check whether --enable-qt or --disable-qt was given.
7967 if test "${enable_qt+set}" = set; then
7968 enableval="$enable_qt"
7969 if test x$enable_qt = xyes; then
7970 PLUGINS="${PLUGINS} qt"
7971 ALIASES="${ALIASES} qvlc"
7972 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7973 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7974 if test -x ${QTDIR}/bin/moc
7975 then
7976 MOC=${QTDIR}/bin/moc
7977 else
7978 MOC=moc
7984 # Check whether --enable-kde or --disable-kde was given.
7985 if test "${enable_kde+set}" = set; then
7986 enableval="$enable_kde"
7987 if test x$enable_kde = xyes; then
7988 PLUGINS="${PLUGINS} kde"
7989 ALIASES="${ALIASES} kvlc"
7990 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
7991 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
7992 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
7993 if test -x ${QTDIR}/bin/moc
7994 then
7995 MOC=${QTDIR}/bin/moc
7996 else
7997 MOC=moc
8003 # Check whether --enable-macosx or --disable-macosx was given.
8004 if test "${enable_macosx+set}" = set; then
8005 enableval="$enable_macosx"
8006 if test x$enable_macosx = xyes
8007 then
8008 BUILTINS="${BUILTINS} macosx"
8009 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8011 else
8012 for ac_hdr in Cocoa/Cocoa.h
8014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8016 echo "configure:8017: checking for $ac_hdr" >&5
8017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8018 echo $ac_n "(cached) $ac_c" 1>&6
8019 else
8020 cat > conftest.$ac_ext <<EOF
8021 #line 8022 "configure"
8022 #include "confdefs.h"
8023 #include <$ac_hdr>
8025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8026 { (eval echo configure:8027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8028 if test -z "$ac_err"; then
8029 rm -rf conftest*
8030 eval "ac_cv_header_$ac_safe=yes"
8031 else
8032 echo "$ac_err" >&5
8033 echo "configure: failed program was:" >&5
8034 cat conftest.$ac_ext >&5
8035 rm -rf conftest*
8036 eval "ac_cv_header_$ac_safe=no"
8038 rm -f conftest*
8040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8041 echo "$ac_t""yes" 1>&6
8042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8043 cat >> confdefs.h <<EOF
8044 #define $ac_tr_hdr 1
8046 BUILTINS="${BUILTINS} macosx"
8047 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8049 else
8050 echo "$ac_t""no" 1>&6
8052 done
8057 # Check whether --enable-qnx or --disable-qnx was given.
8058 if test "${enable_qnx+set}" = set; then
8059 enableval="$enable_qnx"
8063 if test x$enable_qnx != xno
8064 then
8065 for ac_hdr in Ph.h
8067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8069 echo "configure:8070: checking for $ac_hdr" >&5
8070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8072 else
8073 cat > conftest.$ac_ext <<EOF
8074 #line 8075 "configure"
8075 #include "confdefs.h"
8076 #include <$ac_hdr>
8078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8079 { (eval echo configure:8080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8081 if test -z "$ac_err"; then
8082 rm -rf conftest*
8083 eval "ac_cv_header_$ac_safe=yes"
8084 else
8085 echo "$ac_err" >&5
8086 echo "configure: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8088 rm -rf conftest*
8089 eval "ac_cv_header_$ac_safe=no"
8091 rm -f conftest*
8093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8094 echo "$ac_t""yes" 1>&6
8095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8096 cat >> confdefs.h <<EOF
8097 #define $ac_tr_hdr 1
8100 PLUGINS="${PLUGINS} qnx"
8101 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8103 else
8104 echo "$ac_t""no" 1>&6
8106 done
8110 # Check whether --enable-intfwin or --disable-intfwin was given.
8111 if test "${enable_intfwin+set}" = set; then
8112 enableval="$enable_intfwin"
8113 if test "x$enable_intfwin" != "xno"
8114 then
8115 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8116 if test "${with_bcbuilder+set}" = set; then
8117 withval="$with_bcbuilder"
8121 if test "x$with_bcbuilder" != "x"
8122 then
8123 BCBUILDER="$with_bcbuilder"
8125 PLUGINS="${PLUGINS} intfwin"
8130 # Check whether --enable-ncurses or --disable-ncurses was given.
8131 if test "${enable_ncurses+set}" = set; then
8132 enableval="$enable_ncurses"
8133 if test x$enable_ncurses = xyes; then
8134 PLUGINS="${PLUGINS} ncurses"
8135 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8140 # Check whether --enable-lirc or --disable-lirc was given.
8141 if test "${enable_lirc+set}" = set; then
8142 enableval="$enable_lirc"
8146 if test x$enable_lirc = xyes
8147 then
8148 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8149 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8150 echo "configure:8151: checking for lirc/lirc_client.h" >&5
8151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8152 echo $ac_n "(cached) $ac_c" 1>&6
8153 else
8154 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8157 #include <lirc/lirc_client.h>
8159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8160 { (eval echo configure:8161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8162 if test -z "$ac_err"; then
8163 rm -rf conftest*
8164 eval "ac_cv_header_$ac_safe=yes"
8165 else
8166 echo "$ac_err" >&5
8167 echo "configure: failed program was:" >&5
8168 cat conftest.$ac_ext >&5
8169 rm -rf conftest*
8170 eval "ac_cv_header_$ac_safe=no"
8172 rm -f conftest*
8174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8175 echo "$ac_t""yes" 1>&6
8176 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8177 echo "configure:8178: checking for lirc_init in -llirc_client" >&5
8178 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8180 echo $ac_n "(cached) $ac_c" 1>&6
8181 else
8182 ac_save_LIBS="$LIBS"
8183 LIBS="-llirc_client $LIBS"
8184 cat > conftest.$ac_ext <<EOF
8185 #line 8186 "configure"
8186 #include "confdefs.h"
8187 /* Override any gcc2 internal prototype to avoid an error. */
8188 /* We use char because int might match the return type of a gcc2
8189 builtin and then its argument prototype would still apply. */
8190 char lirc_init();
8192 int main() {
8193 lirc_init()
8194 ; return 0; }
8196 if { (eval echo configure:8197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8197 rm -rf conftest*
8198 eval "ac_cv_lib_$ac_lib_var=yes"
8199 else
8200 echo "configure: failed program was:" >&5
8201 cat conftest.$ac_ext >&5
8202 rm -rf conftest*
8203 eval "ac_cv_lib_$ac_lib_var=no"
8205 rm -f conftest*
8206 LIBS="$ac_save_LIBS"
8209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8210 echo "$ac_t""yes" 1>&6
8211 have_lirc="true"
8212 else
8213 echo "$ac_t""no" 1>&6
8214 have_lirc="false"
8217 else
8218 echo "$ac_t""no" 1>&6
8219 have_lirc="false"
8222 if test x$have_lirc = xtrue
8223 then
8224 PLUGINS="${PLUGINS} lirc"
8225 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8229 # Check whether --with- or --without- was given.
8230 if test "${with_+set}" = set; then
8231 withval="$with_"
8236 # Check whether --with-words or --without-words was given.
8237 if test "${with_words+set}" = set; then
8238 withval="$with_words"
8242 case "x$with_words" in
8243 xbig)
8244 ac_cv_c_bigendian=yes
8246 xlittle)
8247 ac_cv_c_bigendian=no
8250 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8251 echo "configure:8252: checking whether the byte order is big-endian" >&5
8252 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8253 echo $ac_n "(cached) $ac_c" 1>&6
8254 else
8255 ac_cv_c_bigendian=unknown
8256 cat >conftest.c <<EOF
8257 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8258 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8259 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8260 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8261 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8262 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8263 int main(void) { _a(); _e(); return 0; }
8266 if test -f conftest.c
8267 then
8268 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8269 && test -f conftest.o
8270 then
8271 if test "`strings conftest.o | grep BIGenDianSyS`"
8272 then
8273 ac_cv_c_bigendian=yes
8275 if test "`strings conftest.o | grep LiTTleEnDian`"
8276 then
8277 ac_cv_c_bigendian=no
8284 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8285 if test x$ac_cv_c_bigendian = xunknown
8286 then
8287 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8290 esac
8291 if test $ac_cv_c_bigendian = yes
8292 then
8293 cat >> confdefs.h <<\EOF
8294 #define WORDS_BIGENDIAN 1
8299 GPROF=0
8300 # Check whether --enable-gprof or --disable-gprof was given.
8301 if test "${enable_gprof+set}" = set; then
8302 enableval="$enable_gprof"
8303 if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
8307 CPROF=0
8308 # Check whether --enable-cprof or --disable-cprof was given.
8309 if test "${enable_cprof+set}" = set; then
8310 enableval="$enable_cprof"
8311 if test "x$enable_cprof" = "xyes";
8312 then
8313 LDFLAGS="${LDFLAGS} -lcprof"
8314 CPROF=1
8320 # Check whether --enable-pth or --disable-pth was given.
8321 if test "${enable_pth+set}" = set; then
8322 enableval="$enable_pth"
8323 if test "x$enable_pth" = "xyes"; then
8324 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8325 echo "configure:8326: checking for pth_init in -lpth" >&5
8326 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8328 echo $ac_n "(cached) $ac_c" 1>&6
8329 else
8330 ac_save_LIBS="$LIBS"
8331 LIBS="-lpth $LIBS"
8332 cat > conftest.$ac_ext <<EOF
8333 #line 8334 "configure"
8334 #include "confdefs.h"
8335 /* Override any gcc2 internal prototype to avoid an error. */
8336 /* We use char because int might match the return type of a gcc2
8337 builtin and then its argument prototype would still apply. */
8338 char pth_init();
8340 int main() {
8341 pth_init()
8342 ; return 0; }
8344 if { (eval echo configure:8345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8345 rm -rf conftest*
8346 eval "ac_cv_lib_$ac_lib_var=yes"
8347 else
8348 echo "configure: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8350 rm -rf conftest*
8351 eval "ac_cv_lib_$ac_lib_var=no"
8353 rm -f conftest*
8354 LIBS="$ac_save_LIBS"
8357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8358 echo "$ac_t""yes" 1>&6
8359 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8360 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8361 cat >> confdefs.h <<EOF
8362 #define $ac_tr_lib 1
8365 LIBS="-lpth $LIBS"
8367 else
8368 echo "$ac_t""no" 1>&6
8371 cat > conftest.$ac_ext <<EOF
8372 #line 8373 "configure"
8373 #include "confdefs.h"
8374 #include <pth.h>
8376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8377 egrep "pth_init" >/dev/null 2>&1; then
8378 rm -rf conftest*
8380 cat >> confdefs.h <<\EOF
8381 #define PTH_INIT_IN_PTH_H 1
8384 THREAD_LIB="-lpth"
8387 rm -f conftest*
8393 # Check whether --enable-st or --disable-st was given.
8394 if test "${enable_st+set}" = set; then
8395 enableval="$enable_st"
8396 if test "x$enable_st" = "xyes"; then
8397 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8398 echo "configure:8399: checking for st_init in -lst" >&5
8399 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8401 echo $ac_n "(cached) $ac_c" 1>&6
8402 else
8403 ac_save_LIBS="$LIBS"
8404 LIBS="-lst $LIBS"
8405 cat > conftest.$ac_ext <<EOF
8406 #line 8407 "configure"
8407 #include "confdefs.h"
8408 /* Override any gcc2 internal prototype to avoid an error. */
8409 /* We use char because int might match the return type of a gcc2
8410 builtin and then its argument prototype would still apply. */
8411 char st_init();
8413 int main() {
8414 st_init()
8415 ; return 0; }
8417 if { (eval echo configure:8418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8418 rm -rf conftest*
8419 eval "ac_cv_lib_$ac_lib_var=yes"
8420 else
8421 echo "configure: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 rm -rf conftest*
8424 eval "ac_cv_lib_$ac_lib_var=no"
8426 rm -f conftest*
8427 LIBS="$ac_save_LIBS"
8430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8431 echo "$ac_t""yes" 1>&6
8432 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8434 cat >> confdefs.h <<EOF
8435 #define $ac_tr_lib 1
8438 LIBS="-lst $LIBS"
8440 else
8441 echo "$ac_t""no" 1>&6
8444 cat > conftest.$ac_ext <<EOF
8445 #line 8446 "configure"
8446 #include "confdefs.h"
8447 #include <st.h>
8449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8450 egrep "st_init" >/dev/null 2>&1; then
8451 rm -rf conftest*
8453 cat >> confdefs.h <<\EOF
8454 #define ST_INIT_IN_ST_H 1
8457 THREAD_LIB="-lst"
8460 rm -f conftest*
8466 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
8468 # Check whether --enable-plugins or --disable-plugins was given.
8469 if test "${enable_plugins+set}" = set; then
8470 enableval="$enable_plugins"
8471 if test x$enable_plugins = xno
8472 then
8473 BUILTINS="${BUILTINS} ${PLUGINS}"
8474 PLUGINS=
8479 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8480 then
8481 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8482 echo "as built-in"
8483 BUILTINS="${BUILTINS} ${PLUGINS}"
8484 PLUGINS=
8487 cat >> confdefs.h <<EOF
8488 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8491 cat >> confdefs.h <<EOF
8492 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8496 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8497 cat >> confdefs.h <<EOF
8498 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8501 cat >> confdefs.h <<EOF
8502 #define MODULE_SYMBOL $VLC_SYMBOL
8506 DATA_PATH="${ac_tool_prefix}/share/videolan"
8508 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8604 trap '' 1 2 15
8605 cat > confcache <<\EOF
8606 # This file is a shell script that caches the results of configure
8607 # tests run on this system so they can be shared between configure
8608 # scripts and configure runs. It is not useful on other systems.
8609 # If it contains results you don't want to keep, you may remove or edit it.
8611 # By default, configure uses ./config.cache as the cache file,
8612 # creating it if it does not exist already. You can give configure
8613 # the --cache-file=FILE option to use a different cache file; that is
8614 # what configure does when it calls configure scripts in
8615 # subdirectories, so they share the cache.
8616 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8617 # config.status only pays attention to the cache file if you give it the
8618 # --recheck option to rerun configure.
8621 # The following way of writing the cache mishandles newlines in values,
8622 # but we know of no workaround that is simple, portable, and efficient.
8623 # So, don't put newlines in cache variables' values.
8624 # Ultrix sh set writes to stderr and can't be redirected directly,
8625 # and sets the high bit in the cache file unless we assign to the vars.
8626 (set) 2>&1 |
8627 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8628 *ac_space=\ *)
8629 # `set' does not quote correctly, so add quotes (double-quote substitution
8630 # turns \\\\ into \\, and sed turns \\ into \).
8631 sed -n \
8632 -e "s/'/'\\\\''/g" \
8633 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8636 # `set' quotes correctly as required by POSIX, so do not add quotes.
8637 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8639 esac >> confcache
8640 if cmp -s $cache_file confcache; then
8642 else
8643 if test -w $cache_file; then
8644 echo "updating cache $cache_file"
8645 cat confcache > $cache_file
8646 else
8647 echo "not updating unwritable cache $cache_file"
8650 rm -f confcache
8652 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8654 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8655 # Let make expand exec_prefix.
8656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8658 # Any assignment to VPATH causes Sun make to only execute
8659 # the first set of double-colon rules, so remove it if not needed.
8660 # If there is a colon in the path, we need to keep it.
8661 if test "x$srcdir" = x.; then
8662 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8665 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8667 DEFS=-DHAVE_CONFIG_H
8669 # Without the "./", some shells look in PATH for config.status.
8670 : ${CONFIG_STATUS=./config.status}
8672 echo creating $CONFIG_STATUS
8673 rm -f $CONFIG_STATUS
8674 cat > $CONFIG_STATUS <<EOF
8675 #! /bin/sh
8676 # Generated automatically by configure.
8677 # Run this file to recreate the current configuration.
8678 # This directory was configured as follows,
8679 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8681 # $0 $ac_configure_args
8683 # Compiler output produced by configure, useful for debugging
8684 # configure, is in ./config.log if it exists.
8686 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8687 for ac_option
8689 case "\$ac_option" in
8690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8691 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8692 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8693 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8694 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8695 exit 0 ;;
8696 -help | --help | --hel | --he | --h)
8697 echo "\$ac_cs_usage"; exit 0 ;;
8698 *) echo "\$ac_cs_usage"; exit 1 ;;
8699 esac
8700 done
8702 ac_given_srcdir=$srcdir
8703 ac_given_INSTALL="$INSTALL"
8705 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8707 cat >> $CONFIG_STATUS <<EOF
8709 # Protect against being on the right side of a sed subst in config.status.
8710 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8711 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8712 $ac_vpsub
8713 $extrasub
8714 s%@SHELL@%$SHELL%g
8715 s%@CFLAGS@%$CFLAGS%g
8716 s%@CPPFLAGS@%$CPPFLAGS%g
8717 s%@CXXFLAGS@%$CXXFLAGS%g
8718 s%@FFLAGS@%$FFLAGS%g
8719 s%@DEFS@%$DEFS%g
8720 s%@LDFLAGS@%$LDFLAGS%g
8721 s%@LIBS@%$LIBS%g
8722 s%@exec_prefix@%$exec_prefix%g
8723 s%@prefix@%$prefix%g
8724 s%@program_transform_name@%$program_transform_name%g
8725 s%@bindir@%$bindir%g
8726 s%@sbindir@%$sbindir%g
8727 s%@libexecdir@%$libexecdir%g
8728 s%@datadir@%$datadir%g
8729 s%@sysconfdir@%$sysconfdir%g
8730 s%@sharedstatedir@%$sharedstatedir%g
8731 s%@localstatedir@%$localstatedir%g
8732 s%@libdir@%$libdir%g
8733 s%@includedir@%$includedir%g
8734 s%@oldincludedir@%$oldincludedir%g
8735 s%@infodir@%$infodir%g
8736 s%@mandir@%$mandir%g
8737 s%@host@%$host%g
8738 s%@host_alias@%$host_alias%g
8739 s%@host_cpu@%$host_cpu%g
8740 s%@host_vendor@%$host_vendor%g
8741 s%@host_os@%$host_os%g
8742 s%@target@%$target%g
8743 s%@target_alias@%$target_alias%g
8744 s%@target_cpu@%$target_cpu%g
8745 s%@target_vendor@%$target_vendor%g
8746 s%@target_os@%$target_os%g
8747 s%@build@%$build%g
8748 s%@build_alias@%$build_alias%g
8749 s%@build_cpu@%$build_cpu%g
8750 s%@build_vendor@%$build_vendor%g
8751 s%@build_os@%$build_os%g
8752 s%@SET_MAKE@%$SET_MAKE%g
8753 s%@CC@%$CC%g
8754 s%@CPP@%$CPP%g
8755 s%@RANLIB@%$RANLIB%g
8756 s%@STRIP@%$STRIP%g
8757 s%@GMAKE@%$GMAKE%g
8758 s%@ALLOCA@%$ALLOCA%g
8759 s%@GLIBC21@%$GLIBC21%g
8760 s%@LIBICONV@%$LIBICONV%g
8761 s%@USE_NLS@%$USE_NLS%g
8762 s%@MSGFMT@%$MSGFMT%g
8763 s%@GMSGFMT@%$GMSGFMT%g
8764 s%@XGETTEXT@%$XGETTEXT%g
8765 s%@INTLBISON@%$INTLBISON%g
8766 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8767 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8768 s%@CATALOGS@%$CATALOGS%g
8769 s%@CATOBJEXT@%$CATOBJEXT%g
8770 s%@GMOFILES@%$GMOFILES%g
8771 s%@INTLLIBS@%$INTLLIBS%g
8772 s%@INTLOBJS@%$INTLOBJS%g
8773 s%@POFILES@%$POFILES%g
8774 s%@POSUB@%$POSUB%g
8775 s%@DATADIRNAME@%$DATADIRNAME%g
8776 s%@INSTOBJEXT@%$INSTOBJEXT%g
8777 s%@GENCAT@%$GENCAT%g
8778 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8779 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8780 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8781 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8782 s%@INSTALL_DATA@%$INSTALL_DATA%g
8783 s%@WINDRES@%$WINDRES%g
8784 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8785 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8786 s%@SDL_CONFIG@%$SDL_CONFIG%g
8787 s%@ESD_CONFIG@%$ESD_CONFIG%g
8788 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8789 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8790 s%@GTK_CONFIG@%$GTK_CONFIG%g
8791 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8792 s%@DATA_PATH@%$DATA_PATH%g
8793 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8794 s%@SYS@%$SYS%g
8795 s%@ARCH@%$ARCH%g
8796 s%@PLUGINS@%$PLUGINS%g
8797 s%@BUILTINS@%$BUILTINS%g
8798 s%@ALIASES@%$ALIASES%g
8799 s%@DEBUG@%$DEBUG%g
8800 s%@ASM@%$ASM%g
8801 s%@CPROF@%$CPROF%g
8802 s%@GPROF@%$GPROF%g
8803 s%@OPTIMS@%$OPTIMS%g
8804 s%@TUNING@%$TUNING%g
8805 s%@RELEASE@%$RELEASE%g
8806 s%@MOC@%$MOC%g
8807 s%@BCBUILDER@%$BCBUILDER%g
8808 s%@PACKAGE@%$PACKAGE%g
8809 s%@VERSION@%$VERSION%g
8810 s%@NEED_GETOPT@%$NEED_GETOPT%g
8811 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8812 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8813 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8814 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8815 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8816 s%@a52_CFLAGS@%$a52_CFLAGS%g
8817 s%@arts_CFLAGS@%$arts_CFLAGS%g
8818 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8819 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8820 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8821 s%@directx_CFLAGS@%$directx_CFLAGS%g
8822 s%@esd_CFLAGS@%$esd_CFLAGS%g
8823 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8824 s%@glide_CFLAGS@%$glide_CFLAGS%g
8825 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8826 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8827 s%@kde_CFLAGS@%$kde_CFLAGS%g
8828 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8829 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8830 s%@mad_CFLAGS@%$mad_CFLAGS%g
8831 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8832 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8833 s%@qt_CFLAGS@%$qt_CFLAGS%g
8834 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8835 s%@x11_CFLAGS@%$x11_CFLAGS%g
8836 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8837 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8838 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8839 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8840 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8841 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8842 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8843 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8844 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8845 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8846 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8847 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8848 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8849 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8850 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8851 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8852 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8853 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8854 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8855 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8856 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8857 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8858 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8859 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8860 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8861 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8862 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8863 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8864 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8865 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8866 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8867 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8868 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8869 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8870 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8871 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8872 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8873 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8874 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8875 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8876 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8877 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8878 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8880 CEOF
8883 cat >> $CONFIG_STATUS <<\EOF
8885 # Split the substitutions into bite-sized pieces for seds with
8886 # small command number limits, like on Digital OSF/1 and HP-UX.
8887 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8888 ac_file=1 # Number of current file.
8889 ac_beg=1 # First line for current file.
8890 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8891 ac_more_lines=:
8892 ac_sed_cmds=""
8893 while $ac_more_lines; do
8894 if test $ac_beg -gt 1; then
8895 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8896 else
8897 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8899 if test ! -s conftest.s$ac_file; then
8900 ac_more_lines=false
8901 rm -f conftest.s$ac_file
8902 else
8903 if test -z "$ac_sed_cmds"; then
8904 ac_sed_cmds="sed -f conftest.s$ac_file"
8905 else
8906 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8908 ac_file=`expr $ac_file + 1`
8909 ac_beg=$ac_end
8910 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8912 done
8913 if test -z "$ac_sed_cmds"; then
8914 ac_sed_cmds=cat
8918 cat >> $CONFIG_STATUS <<EOF
8920 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
8922 cat >> $CONFIG_STATUS <<\EOF
8923 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8924 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8925 case "$ac_file" in
8926 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8927 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8928 *) ac_file_in="${ac_file}.in" ;;
8929 esac
8931 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8933 # Remove last slash and all that follows it. Not all systems have dirname.
8934 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8935 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8936 # The file is in a subdirectory.
8937 test ! -d "$ac_dir" && mkdir "$ac_dir"
8938 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8939 # A "../" for each directory in $ac_dir_suffix.
8940 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8941 else
8942 ac_dir_suffix= ac_dots=
8945 case "$ac_given_srcdir" in
8946 .) srcdir=.
8947 if test -z "$ac_dots"; then top_srcdir=.
8948 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8949 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8950 *) # Relative path.
8951 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8952 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8953 esac
8955 case "$ac_given_INSTALL" in
8956 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8957 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8958 esac
8960 echo creating "$ac_file"
8961 rm -f "$ac_file"
8962 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8963 case "$ac_file" in
8964 *Makefile*) ac_comsub="1i\\
8965 # $configure_input" ;;
8966 *) ac_comsub= ;;
8967 esac
8969 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8970 sed -e "$ac_comsub
8971 s%@configure_input@%$configure_input%g
8972 s%@srcdir@%$srcdir%g
8973 s%@top_srcdir@%$top_srcdir%g
8974 s%@INSTALL@%$INSTALL%g
8975 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8976 fi; done
8977 rm -f conftest.s*
8979 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8980 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8982 # ac_d sets the value in "#define NAME VALUE" lines.
8983 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8984 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8985 ac_dC='\3'
8986 ac_dD='%g'
8987 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8988 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8989 ac_uB='\([ ]\)%\1#\2define\3'
8990 ac_uC=' '
8991 ac_uD='\4%g'
8992 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8993 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8994 ac_eB='$%\1#\2define\3'
8995 ac_eC=' '
8996 ac_eD='%g'
8998 if test "${CONFIG_HEADERS+set}" != set; then
9000 cat >> $CONFIG_STATUS <<EOF
9001 CONFIG_HEADERS="include/defs.h"
9003 cat >> $CONFIG_STATUS <<\EOF
9005 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9007 case "$ac_file" in
9008 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9009 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9010 *) ac_file_in="${ac_file}.in" ;;
9011 esac
9013 echo creating $ac_file
9015 rm -f conftest.frag conftest.in conftest.out
9016 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9017 cat $ac_file_inputs > conftest.in
9021 # Transform confdefs.h into a sed script conftest.vals that substitutes
9022 # the proper values into config.h.in to produce config.h. And first:
9023 # Protect against being on the right side of a sed subst in config.status.
9024 # Protect against being in an unquoted here document in config.status.
9025 rm -f conftest.vals
9026 cat > conftest.hdr <<\EOF
9027 s/[\\&%]/\\&/g
9028 s%[\\$`]%\\&%g
9029 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9030 s%ac_d%ac_u%gp
9031 s%ac_u%ac_e%gp
9033 sed -n -f conftest.hdr confdefs.h > conftest.vals
9034 rm -f conftest.hdr
9036 # This sed command replaces #undef with comments. This is necessary, for
9037 # example, in the case of _POSIX_SOURCE, which is predefined and required
9038 # on some systems where configure will not decide to define it.
9039 cat >> conftest.vals <<\EOF
9040 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9043 # Break up conftest.vals because some shells have a limit on
9044 # the size of here documents, and old seds have small limits too.
9046 rm -f conftest.tail
9047 while :
9049 ac_lines=`grep -c . conftest.vals`
9050 # grep -c gives empty output for an empty file on some AIX systems.
9051 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9052 # Write a limited-size here document to conftest.frag.
9053 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9054 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9055 echo 'CEOF
9056 sed -f conftest.frag conftest.in > conftest.out
9057 rm -f conftest.in
9058 mv conftest.out conftest.in
9059 ' >> $CONFIG_STATUS
9060 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9061 rm -f conftest.vals
9062 mv conftest.tail conftest.vals
9063 done
9064 rm -f conftest.vals
9066 cat >> $CONFIG_STATUS <<\EOF
9067 rm -f conftest.frag conftest.h
9068 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9069 cat conftest.in >> conftest.h
9070 rm -f conftest.in
9071 if cmp -s $ac_file conftest.h 2>/dev/null; then
9072 echo "$ac_file is unchanged"
9073 rm -f conftest.h
9074 else
9075 # Remove last slash and all that follows it. Not all systems have dirname.
9076 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9077 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9078 # The file is in a subdirectory.
9079 test ! -d "$ac_dir" && mkdir "$ac_dir"
9081 rm -f $ac_file
9082 mv conftest.h $ac_file
9084 fi; done
9087 cat >> $CONFIG_STATUS <<EOF
9091 cat >> $CONFIG_STATUS <<\EOF
9092 for ac_file in $CONFIG_FILES; do
9093 # Support "outfile[:infile[:infile...]]"
9094 case "$ac_file" in
9095 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9096 esac
9097 # PO directories have a Makefile.in generated from Makefile.in.in.
9098 case "$ac_file" in */Makefile.in)
9099 # Adjust a relative srcdir.
9100 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9101 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9102 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9103 # In autoconf-2.13 it is called $ac_given_srcdir.
9104 # In autoconf-2.50 it is called $srcdir.
9105 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9106 case "$ac_given_srcdir" in
9107 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9108 /*) top_srcdir="$ac_given_srcdir" ;;
9109 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9110 esac
9111 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9112 rm -f "$ac_dir/POTFILES"
9113 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9114 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9115 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9116 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9119 esac
9120 done
9122 exit 0
9124 chmod +x $CONFIG_STATUS
9125 rm -fr confdefs* $ac_clean_files
9126 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9129 echo "
9130 vlc configuration
9131 --------------------
9132 vlc version : ${VERSION}
9133 system : ${SYS}
9134 architecture : ${ARCH}
9135 optimizations : ${OPTIMS}
9136 tuning : ${TUNING}
9137 debug mode : ${DEBUG}
9138 release : ${RELEASE}
9139 cprof/gprof support : ${CPROF}/${GPROF}
9140 need builtin getopt : ${NEED_GETOPT}
9141 built-in modules :${BUILTINS}
9142 plug-in modules :${PLUGINS}
9143 vlc aliases :${ALIASES}
9145 You may now tune Makefile.opts at your convenience, for instance to choose
9146 which modules get compiled as plugins.
9148 To build vlc and its plugins, type \`$VLC_MAKE'.